From 93621d3c3320af4ae7506864153ddf053af625ab Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 12 Sep 2023 16:56:59 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20post-p?= =?UTF-8?q?rocessor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- java-alloydb-connectors/README.md | 4 +- .../pom.xml | 7 +- .../google-cloud-alloydb-connectors/pom.xml | 8 +- java-alloydb-connectors/pom.xml | 9 +- .../v1alpha/MetadataExchangeRequest.java | 603 +++++++++++------- .../MetadataExchangeRequestOrBuilder.java | 48 +- .../v1alpha/MetadataExchangeResponse.java | 535 ++++++++++------ .../MetadataExchangeResponseOrBuilder.java | 80 +++ .../connectors/v1alpha/ResourcesProto.java | 101 +++ .../clirr-ignored-differences.xml | 19 + .../pom.xml | 46 ++ .../v1beta/MetadataExchangeRequest.java | 596 ++++++++++------- .../MetadataExchangeRequestOrBuilder.java | 48 +- .../v1beta/MetadataExchangeResponse.java | 535 ++++++++++------ .../MetadataExchangeResponseOrBuilder.java | 80 +++ .../connectors/v1beta/ResourcesProto.java | 101 +++ .../alloydb/connectors/v1beta/resources.proto | 0 .../MetadataExchangeResponseOrBuilder.java | 48 -- .../connectors/v1alpha/ResourcesProto.java | 85 --- .../MetadataExchangeResponseOrBuilder.java | 48 -- .../connectors/v1beta/ResourcesProto.java | 85 --- versions.txt | 1 + 22 files changed, 1939 insertions(+), 1148 deletions(-) rename {owl-bot-staging/java-alloydb-connectors/v1alpha => java-alloydb-connectors}/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequest.java (65%) rename {owl-bot-staging/java-alloydb-connectors/v1alpha => java-alloydb-connectors}/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequestOrBuilder.java (64%) rename {owl-bot-staging/java-alloydb-connectors/v1alpha => java-alloydb-connectors}/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponse.java (61%) create mode 100644 java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponseOrBuilder.java create mode 100644 java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/ResourcesProto.java create mode 100644 java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/clirr-ignored-differences.xml create mode 100644 java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml rename {owl-bot-staging/java-alloydb-connectors/v1beta => java-alloydb-connectors}/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeRequest.java (66%) rename {owl-bot-staging/java-alloydb-connectors/v1beta => java-alloydb-connectors}/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeRequestOrBuilder.java (64%) rename {owl-bot-staging/java-alloydb-connectors/v1beta => java-alloydb-connectors}/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeResponse.java (61%) create mode 100644 java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeResponseOrBuilder.java create mode 100644 java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/ResourcesProto.java rename {owl-bot-staging/java-alloydb-connectors/v1beta => java-alloydb-connectors}/proto-google-cloud-alloydb-connectors-v1beta/src/main/proto/google/cloud/alloydb/connectors/v1beta/resources.proto (100%) delete mode 100644 owl-bot-staging/java-alloydb-connectors/v1alpha/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-alloydb-connectors/v1alpha/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/ResourcesProto.java delete mode 100644 owl-bot-staging/java-alloydb-connectors/v1beta/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-alloydb-connectors/v1beta/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/ResourcesProto.java diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md index 0b4d49be9f3a..d1f32babe36e 100644 --- a/java-alloydb-connectors/README.md +++ b/java-alloydb-connectors/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.21.0 + 26.22.0 pom import @@ -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/java-alloydb-connectors/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-alloydb-connectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/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-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml b/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml index fd39346b5e2d..fb60521c5e07 100644 --- a/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml +++ b/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml @@ -1,4 +1,4 @@ - + 4.0.0 com.google.cloud @@ -34,6 +34,11 @@ proto-google-cloud-alloydb-connectors-v1alpha 0.2.0-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-alloydb-connectors-v1beta + 0.2.0-SNAPSHOT + diff --git a/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml b/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml index 0131a9d2e193..d320b48d3ebe 100644 --- a/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml +++ b/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml @@ -1,4 +1,4 @@ - + 4.0.0 com.google.cloud @@ -41,6 +41,10 @@ proto-google-common-protos + + com.google.api.grpc + proto-google-cloud-alloydb-connectors-v1beta + com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha @@ -105,4 +109,4 @@ test - \ No newline at end of file + diff --git a/java-alloydb-connectors/pom.xml b/java-alloydb-connectors/pom.xml index 0cde469d6640..11e0ee4b4c52 100644 --- a/java-alloydb-connectors/pom.xml +++ b/java-alloydb-connectors/pom.xml @@ -31,6 +31,11 @@ google-cloud-alloydb-connectors 0.2.0-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-alloydb-connectors-v1beta + 0.2.0-SNAPSHOT + com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha @@ -42,6 +47,8 @@ google-cloud-alloydb-connectors proto-google-cloud-alloydb-connectors-v1alpha + proto-google-cloud-alloydb-connectors-v1beta google-cloud-alloydb-connectors-bom - + + diff --git a/owl-bot-staging/java-alloydb-connectors/v1alpha/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequest.java b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequest.java similarity index 65% rename from owl-bot-staging/java-alloydb-connectors/v1alpha/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequest.java rename to java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequest.java index 7539c9a5da15..d803934e01e7 100644 --- a/owl-bot-staging/java-alloydb-connectors/v1alpha/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequest.java +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/alloydb/connectors/v1alpha/resources.proto package com.google.cloud.alloydb.connectors.v1alpha; /** + * + * *
  * Message used by AlloyDB connectors to exchange client and connection metadata
  * with the server after a successful TLS handshake. This metadata includes an
@@ -15,15 +32,16 @@
  *
  * Protobuf type {@code google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest}
  */
-public final class MetadataExchangeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MetadataExchangeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest)
     MetadataExchangeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MetadataExchangeRequest.newBuilder() to construct.
   private MetadataExchangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MetadataExchangeRequest() {
     userAgent_ = "";
     authType_ = 0;
@@ -32,34 +50,38 @@ private MetadataExchangeRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MetadataExchangeRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto.internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto
+        .internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto.internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_fieldAccessorTable
+    return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto
+        .internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.class, com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.Builder.class);
+            com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.class,
+            com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * AuthType contains all supported authentication types.
    * 
* * Protobuf enum {@code google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType} */ - public enum AuthType - implements com.google.protobuf.ProtocolMessageEnum { + public enum AuthType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Authentication type is unspecified and DB_NATIVE is used by default
      * 
@@ -68,6 +90,8 @@ public enum AuthType */ AUTH_TYPE_UNSPECIFIED(0), /** + * + * *
      * Database native authentication (user/password)
      * 
@@ -76,6 +100,8 @@ public enum AuthType */ DB_NATIVE(1), /** + * + * *
      * Automatic IAM authentication
      * 
@@ -87,6 +113,8 @@ public enum AuthType ; /** + * + * *
      * Authentication type is unspecified and DB_NATIVE is used by default
      * 
@@ -95,6 +123,8 @@ public enum AuthType */ public static final int AUTH_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Database native authentication (user/password)
      * 
@@ -103,6 +133,8 @@ public enum AuthType */ public static final int DB_NATIVE_VALUE = 1; /** + * + * *
      * Automatic IAM authentication
      * 
@@ -111,7 +143,6 @@ public enum AuthType */ public static final int AUTO_IAM_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -136,49 +167,51 @@ public static AuthType valueOf(int value) { */ public static AuthType forNumber(int value) { switch (value) { - case 0: return AUTH_TYPE_UNSPECIFIED; - case 1: return DB_NATIVE; - case 2: return AUTO_IAM; - default: return null; + case 0: + return AUTH_TYPE_UNSPECIFIED; + case 1: + return DB_NATIVE; + case 2: + return AUTO_IAM; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - AuthType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AuthType findValueByNumber(int number) { - return AuthType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AuthType findValueByNumber(int number) { + return AuthType.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.getDescriptor() + .getEnumTypes() + .get(0); } private static final AuthType[] VALUES = values(); - public static AuthType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static AuthType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -196,14 +229,18 @@ private AuthType(int value) { } public static final int USER_AGENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object userAgent_ = ""; /** + * + * *
    * Optional. Connector information.
    * 
* * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userAgent. */ @java.lang.Override @@ -212,29 +249,29 @@ public java.lang.String getUserAgent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userAgent_ = s; return s; } } /** + * + * *
    * Optional. Connector information.
    * 
* * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userAgent. */ @java.lang.Override - public com.google.protobuf.ByteString - getUserAgentBytes() { + public com.google.protobuf.ByteString getUserAgentBytes() { java.lang.Object ref = userAgent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userAgent_ = b; return b; } else { @@ -245,39 +282,58 @@ public java.lang.String getUserAgent() { public static final int AUTH_TYPE_FIELD_NUMBER = 2; private int authType_ = 0; /** + * + * *
    * Authentication type.
    * 
* - * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * * @return The enum numeric value on the wire for authType. */ - @java.lang.Override public int getAuthTypeValue() { + @java.lang.Override + public int getAuthTypeValue() { return authType_; } /** + * + * *
    * Authentication type.
    * 
* - * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * * @return The authType. */ - @java.lang.Override public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType getAuthType() { - com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType result = com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType.forNumber(authType_); - return result == null ? com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType + getAuthType() { + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType result = + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType.forNumber( + authType_); + return result == null + ? com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType.UNRECOGNIZED + : result; } public static final int OAUTH2_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object oauth2Token_ = ""; /** + * + * *
    * IAM token used for both IAM user authentiation and
    * `alloydb.instances.connect` permission check.
    * 
* * string oauth2_token = 3; + * * @return The oauth2Token. */ @java.lang.Override @@ -286,30 +342,30 @@ public java.lang.String getOauth2Token() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); oauth2Token_ = s; return s; } } /** + * + * *
    * IAM token used for both IAM user authentiation and
    * `alloydb.instances.connect` permission check.
    * 
* * string oauth2_token = 3; + * * @return The bytes for oauth2Token. */ @java.lang.Override - public com.google.protobuf.ByteString - getOauth2TokenBytes() { + public com.google.protobuf.ByteString getOauth2TokenBytes() { java.lang.Object ref = oauth2Token_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); oauth2Token_ = b; return b; } else { @@ -318,6 +374,7 @@ public java.lang.String getOauth2Token() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -329,12 +386,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userAgent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userAgent_); } - if (authType_ != com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType.AUTH_TYPE_UNSPECIFIED.getNumber()) { + if (authType_ + != com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType + .AUTH_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, authType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oauth2Token_)) { @@ -352,9 +411,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userAgent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userAgent_); } - if (authType_ != com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType.AUTH_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, authType_); + if (authType_ + != com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType + .AUTH_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, authType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oauth2Token_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, oauth2Token_); @@ -367,18 +428,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest)) { return super.equals(obj); } - com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest other = (com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest) obj; + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest other = + (com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest) obj; - if (!getUserAgent() - .equals(other.getUserAgent())) return false; + if (!getUserAgent().equals(other.getUserAgent())) return false; if (authType_ != other.authType_) return false; - if (!getOauth2Token() - .equals(other.getOauth2Token())) return false; + if (!getOauth2Token().equals(other.getOauth2Token())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -402,98 +462,105 @@ public int hashCode() { } public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message used by AlloyDB connectors to exchange client and connection metadata
    * with the server after a successful TLS handshake. This metadata includes an
@@ -505,33 +572,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest)
       com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto.internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto
+          .internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto.internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_fieldAccessorTable
+      return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto
+          .internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.class, com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.Builder.class);
+              com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.class,
+              com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.Builder.class);
     }
 
-    // Construct using com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.newBuilder()
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -543,14 +610,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto.internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto
+          .internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest getDefaultInstanceForType() {
-      return com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.getDefaultInstance();
+    public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -564,13 +633,17 @@ public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest build
 
     @java.lang.Override
     public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest buildPartial() {
-      com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest result = new com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest result =
+          new com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest result) {
+    private void buildPartial0(
+        com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.userAgent_ = userAgent_;
@@ -587,46 +660,51 @@ private void buildPartial0(com.google.cloud.alloydb.connectors.v1alpha.MetadataE
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest) {
-        return mergeFrom((com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest)other);
+        return mergeFrom(
+            (com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest other) {
-      if (other == com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest other) {
+      if (other
+          == com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest
+              .getDefaultInstance()) return this;
       if (!other.getUserAgent().isEmpty()) {
         userAgent_ = other.userAgent_;
         bitField0_ |= 0x00000001;
@@ -666,27 +744,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              userAgent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              authType_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              oauth2Token_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                userAgent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                authType_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                oauth2Token_ = 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) {
@@ -696,22 +778,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object userAgent_ = "";
     /**
+     *
+     *
      * 
      * Optional. Connector information.
      * 
* * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userAgent. */ public java.lang.String getUserAgent() { java.lang.Object ref = userAgent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userAgent_ = s; return s; @@ -720,20 +805,21 @@ public java.lang.String getUserAgent() { } } /** + * + * *
      * Optional. Connector information.
      * 
* * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userAgent. */ - public com.google.protobuf.ByteString - getUserAgentBytes() { + public com.google.protobuf.ByteString getUserAgentBytes() { java.lang.Object ref = userAgent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userAgent_ = b; return b; } else { @@ -741,28 +827,35 @@ public java.lang.String getUserAgent() { } } /** + * + * *
      * Optional. Connector information.
      * 
* * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUserAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } userAgent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. Connector information.
      * 
* * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUserAgent() { @@ -772,17 +865,21 @@ public Builder clearUserAgent() { return this; } /** + * + * *
      * Optional. Connector information.
      * 
* * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUserAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); userAgent_ = value; bitField0_ |= 0x00000001; @@ -792,22 +889,33 @@ public Builder setUserAgentBytes( private int authType_ = 0; /** + * + * *
      * Authentication type.
      * 
* - * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * * @return The enum numeric value on the wire for authType. */ - @java.lang.Override public int getAuthTypeValue() { + @java.lang.Override + public int getAuthTypeValue() { return authType_; } /** + * + * *
      * Authentication type.
      * 
* - * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * * @param value The enum numeric value on the wire for authType to set. * @return This builder for chaining. */ @@ -818,28 +926,45 @@ public Builder setAuthTypeValue(int value) { return this; } /** + * + * *
      * Authentication type.
      * 
* - * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * * @return The authType. */ @java.lang.Override - public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType getAuthType() { - com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType result = com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType.forNumber(authType_); - return result == null ? com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType.UNRECOGNIZED : result; + public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType + getAuthType() { + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType result = + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType.forNumber( + authType_); + return result == null + ? com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType + .UNRECOGNIZED + : result; } /** + * + * *
      * Authentication type.
      * 
* - * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * * @param value The authType to set. * @return This builder for chaining. */ - public Builder setAuthType(com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType value) { + public Builder setAuthType( + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType value) { if (value == null) { throw new NullPointerException(); } @@ -849,11 +974,16 @@ public Builder setAuthType(com.google.cloud.alloydb.connectors.v1alpha.MetadataE return this; } /** + * + * *
      * Authentication type.
      * 
* - * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * * @return This builder for chaining. */ public Builder clearAuthType() { @@ -865,19 +995,21 @@ public Builder clearAuthType() { private java.lang.Object oauth2Token_ = ""; /** + * + * *
      * IAM token used for both IAM user authentiation and
      * `alloydb.instances.connect` permission check.
      * 
* * string oauth2_token = 3; + * * @return The oauth2Token. */ public java.lang.String getOauth2Token() { java.lang.Object ref = oauth2Token_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); oauth2Token_ = s; return s; @@ -886,21 +1018,22 @@ public java.lang.String getOauth2Token() { } } /** + * + * *
      * IAM token used for both IAM user authentiation and
      * `alloydb.instances.connect` permission check.
      * 
* * string oauth2_token = 3; + * * @return The bytes for oauth2Token. */ - public com.google.protobuf.ByteString - getOauth2TokenBytes() { + public com.google.protobuf.ByteString getOauth2TokenBytes() { java.lang.Object ref = oauth2Token_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); oauth2Token_ = b; return b; } else { @@ -908,30 +1041,37 @@ public java.lang.String getOauth2Token() { } } /** + * + * *
      * IAM token used for both IAM user authentiation and
      * `alloydb.instances.connect` permission check.
      * 
* * string oauth2_token = 3; + * * @param value The oauth2Token to set. * @return This builder for chaining. */ - public Builder setOauth2Token( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOauth2Token(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } oauth2Token_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * IAM token used for both IAM user authentiation and
      * `alloydb.instances.connect` permission check.
      * 
* * string oauth2_token = 3; + * * @return This builder for chaining. */ public Builder clearOauth2Token() { @@ -941,27 +1081,31 @@ public Builder clearOauth2Token() { return this; } /** + * + * *
      * IAM token used for both IAM user authentiation and
      * `alloydb.instances.connect` permission check.
      * 
* * string oauth2_token = 3; + * * @param value The bytes for oauth2Token to set. * @return This builder for chaining. */ - public Builder setOauth2TokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOauth2TokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); oauth2Token_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -971,41 +1115,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest) - private static final com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest(); } - public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest getDefaultInstance() { + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetadataExchangeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetadataExchangeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1017,9 +1163,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest getDefaultInstanceForType() { + public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-alloydb-connectors/v1alpha/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequestOrBuilder.java b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-alloydb-connectors/v1alpha/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequestOrBuilder.java rename to java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequestOrBuilder.java index dc79cf189bc0..4390a205da63 100644 --- a/owl-bot-staging/java-alloydb-connectors/v1alpha/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequestOrBuilder.java +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequestOrBuilder.java @@ -1,70 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/alloydb/connectors/v1alpha/resources.proto package com.google.cloud.alloydb.connectors.v1alpha; -public interface MetadataExchangeRequestOrBuilder extends +public interface MetadataExchangeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Connector information.
    * 
* * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userAgent. */ java.lang.String getUserAgent(); /** + * + * *
    * Optional. Connector information.
    * 
* * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userAgent. */ - com.google.protobuf.ByteString - getUserAgentBytes(); + com.google.protobuf.ByteString getUserAgentBytes(); /** + * + * *
    * Authentication type.
    * 
* - * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * * @return The enum numeric value on the wire for authType. */ int getAuthTypeValue(); /** + * + * *
    * Authentication type.
    * 
* - * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * * @return The authType. */ com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType getAuthType(); /** + * + * *
    * IAM token used for both IAM user authentiation and
    * `alloydb.instances.connect` permission check.
    * 
* * string oauth2_token = 3; + * * @return The oauth2Token. */ java.lang.String getOauth2Token(); /** + * + * *
    * IAM token used for both IAM user authentiation and
    * `alloydb.instances.connect` permission check.
    * 
* * string oauth2_token = 3; + * * @return The bytes for oauth2Token. */ - com.google.protobuf.ByteString - getOauth2TokenBytes(); + com.google.protobuf.ByteString getOauth2TokenBytes(); } diff --git a/owl-bot-staging/java-alloydb-connectors/v1alpha/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponse.java b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponse.java similarity index 61% rename from owl-bot-staging/java-alloydb-connectors/v1alpha/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponse.java rename to java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponse.java index 8ad3ccb690f8..b77b94d1391a 100644 --- a/owl-bot-staging/java-alloydb-connectors/v1alpha/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponse.java +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/alloydb/connectors/v1alpha/resources.proto package com.google.cloud.alloydb.connectors.v1alpha; /** + * + * *
  * Message for response to metadata exchange request. The sole purpose of this
  * message is for the use of AlloyDB connectors. Clients should not rely on this
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse}
  */
-public final class MetadataExchangeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MetadataExchangeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse)
     MetadataExchangeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MetadataExchangeResponse.newBuilder() to construct.
   private MetadataExchangeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MetadataExchangeResponse() {
     responseCode_ = 0;
     error_ = "";
@@ -28,34 +46,39 @@ private MetadataExchangeResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MetadataExchangeResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto.internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto
+        .internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto.internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_fieldAccessorTable
+    return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto
+        .internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.class, com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.Builder.class);
+            com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.class,
+            com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Response code.
    * 
* - * Protobuf enum {@code google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode} + * Protobuf enum {@code + * google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode} */ - public enum ResponseCode - implements com.google.protobuf.ProtocolMessageEnum { + public enum ResponseCode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unknown response code
      * 
@@ -64,6 +87,8 @@ public enum ResponseCode */ RESPONSE_CODE_UNSPECIFIED(0), /** + * + * *
      * Success
      * 
@@ -72,6 +97,8 @@ public enum ResponseCode */ OK(1), /** + * + * *
      * Failure
      * 
@@ -83,6 +110,8 @@ public enum ResponseCode ; /** + * + * *
      * Unknown response code
      * 
@@ -91,6 +120,8 @@ public enum ResponseCode */ public static final int RESPONSE_CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Success
      * 
@@ -99,6 +130,8 @@ public enum ResponseCode */ public static final int OK_VALUE = 1; /** + * + * *
      * Failure
      * 
@@ -107,7 +140,6 @@ public enum ResponseCode */ public static final int ERROR_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -132,49 +164,51 @@ public static ResponseCode valueOf(int value) { */ public static ResponseCode forNumber(int value) { switch (value) { - case 0: return RESPONSE_CODE_UNSPECIFIED; - case 1: return OK; - case 2: return ERROR; - default: return null; + case 0: + return RESPONSE_CODE_UNSPECIFIED; + case 1: + return OK; + case 2: + return ERROR; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ResponseCode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResponseCode findValueByNumber(int number) { - return ResponseCode.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResponseCode findValueByNumber(int number) { + return ResponseCode.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.getDescriptor() + .getEnumTypes() + .get(0); } private static final ResponseCode[] VALUES = values(); - public static ResponseCode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ResponseCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -194,38 +228,60 @@ private ResponseCode(int value) { public static final int RESPONSE_CODE_FIELD_NUMBER = 1; private int responseCode_ = 0; /** + * + * *
    * Response code.
    * 
* - * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * * @return The enum numeric value on the wire for responseCode. */ - @java.lang.Override public int getResponseCodeValue() { + @java.lang.Override + public int getResponseCodeValue() { return responseCode_; } /** + * + * *
    * Response code.
    * 
* - * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * * @return The responseCode. */ - @java.lang.Override public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode getResponseCode() { - com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode result = com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode.forNumber(responseCode_); - return result == null ? com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode + getResponseCode() { + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode result = + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode.forNumber( + responseCode_); + return result == null + ? com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode + .UNRECOGNIZED + : result; } public static final int ERROR_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object error_ = ""; /** + * + * *
    * Optional. Error message.
    * 
* * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The error. */ @java.lang.Override @@ -234,29 +290,29 @@ public java.lang.String getError() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } } /** + * + * *
    * Optional. Error message.
    * 
* * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for error. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorBytes() { + public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); error_ = b; return b; } else { @@ -265,6 +321,7 @@ public java.lang.String getError() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,9 +333,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (responseCode_ != com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode.RESPONSE_CODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (responseCode_ + != com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode + .RESPONSE_CODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, responseCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { @@ -293,9 +352,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (responseCode_ != com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode.RESPONSE_CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, responseCode_); + if (responseCode_ + != com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode + .RESPONSE_CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, responseCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); @@ -308,16 +369,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse)) { return super.equals(obj); } - com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse other = (com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse) obj; + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse other = + (com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse) obj; if (responseCode_ != other.responseCode_) return false; - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,98 +400,105 @@ public int hashCode() { } public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for response to metadata exchange request. The sole purpose of this
    * message is for the use of AlloyDB connectors. Clients should not rely on this
@@ -439,33 +507,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse)
       com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto.internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto
+          .internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto.internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_fieldAccessorTable
+      return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto
+          .internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.class, com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.Builder.class);
+              com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.class,
+              com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.Builder.class);
     }
 
-    // Construct using com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.newBuilder()
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -476,14 +544,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto.internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto
+          .internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse getDefaultInstanceForType() {
-      return com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.getDefaultInstance();
+    public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse
+        getDefaultInstanceForType() {
+      return com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -497,13 +567,17 @@ public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse buil
 
     @java.lang.Override
     public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse buildPartial() {
-      com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse result = new com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse result =
+          new com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse result) {
+    private void buildPartial0(
+        com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.responseCode_ = responseCode_;
@@ -517,46 +591,51 @@ private void buildPartial0(com.google.cloud.alloydb.connectors.v1alpha.MetadataE
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse) {
-        return mergeFrom((com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse)other);
+        return mergeFrom(
+            (com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse other) {
-      if (other == com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse other) {
+      if (other
+          == com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse
+              .getDefaultInstance()) return this;
       if (other.responseCode_ != 0) {
         setResponseCodeValue(other.getResponseCodeValue());
       }
@@ -591,22 +670,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              responseCode_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              error_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                responseCode_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                error_ = 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) {
@@ -616,26 +698,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private int responseCode_ = 0;
     /**
+     *
+     *
      * 
      * Response code.
      * 
* - * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * * @return The enum numeric value on the wire for responseCode. */ - @java.lang.Override public int getResponseCodeValue() { + @java.lang.Override + public int getResponseCodeValue() { return responseCode_; } /** + * + * *
      * Response code.
      * 
* - * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * * @param value The enum numeric value on the wire for responseCode to set. * @return This builder for chaining. */ @@ -646,28 +740,45 @@ public Builder setResponseCodeValue(int value) { return this; } /** + * + * *
      * Response code.
      * 
* - * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * * @return The responseCode. */ @java.lang.Override - public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode getResponseCode() { - com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode result = com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode.forNumber(responseCode_); - return result == null ? com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode.UNRECOGNIZED : result; + public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode + getResponseCode() { + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode result = + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode + .forNumber(responseCode_); + return result == null + ? com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode + .UNRECOGNIZED + : result; } /** + * + * *
      * Response code.
      * 
* - * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * * @param value The responseCode to set. * @return This builder for chaining. */ - public Builder setResponseCode(com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode value) { + public Builder setResponseCode( + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode value) { if (value == null) { throw new NullPointerException(); } @@ -677,11 +788,16 @@ public Builder setResponseCode(com.google.cloud.alloydb.connectors.v1alpha.Metad return this; } /** + * + * *
      * Response code.
      * 
* - * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * * @return This builder for chaining. */ public Builder clearResponseCode() { @@ -693,18 +809,20 @@ public Builder clearResponseCode() { private java.lang.Object error_ = ""; /** + * + * *
      * Optional. Error message.
      * 
* * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The error. */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; @@ -713,20 +831,21 @@ public java.lang.String getError() { } } /** + * + * *
      * Optional. Error message.
      * 
* * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for error. */ - public com.google.protobuf.ByteString - getErrorBytes() { + public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); error_ = b; return b; } else { @@ -734,28 +853,35 @@ public java.lang.String getError() { } } /** + * + * *
      * Optional. Error message.
      * 
* * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The error to set. * @return This builder for chaining. */ - public Builder setError( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setError(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } error_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Error message.
      * 
* * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearError() { @@ -765,26 +891,30 @@ public Builder clearError() { return this; } /** + * + * *
      * Optional. Error message.
      * 
* * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for error to set. * @return This builder for chaining. */ - public Builder setErrorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); error_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -794,41 +924,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse) - private static final com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse DEFAULT_INSTANCE; + private static final com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse(); } - public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse getDefaultInstance() { + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetadataExchangeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetadataExchangeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -840,9 +972,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse getDefaultInstanceForType() { + public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponseOrBuilder.java b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponseOrBuilder.java new file mode 100644 index 000000000000..d540924de770 --- /dev/null +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponseOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/alloydb/connectors/v1alpha/resources.proto + +package com.google.cloud.alloydb.connectors.v1alpha; + +public interface MetadataExchangeResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Response code.
+   * 
+ * + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * + * @return The enum numeric value on the wire for responseCode. + */ + int getResponseCodeValue(); + /** + * + * + *
+   * Response code.
+   * 
+ * + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * + * @return The responseCode. + */ + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode + getResponseCode(); + + /** + * + * + *
+   * Optional. Error message.
+   * 
+ * + * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The error. + */ + java.lang.String getError(); + /** + * + * + *
+   * Optional. Error message.
+   * 
+ * + * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for error. + */ + com.google.protobuf.ByteString getErrorBytes(); +} diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/ResourcesProto.java b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/ResourcesProto.java new file mode 100644 index 000000000000..0a7cfe9683d8 --- /dev/null +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/ResourcesProto.java @@ -0,0 +1,101 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/alloydb/connectors/v1alpha/resources.proto + +package com.google.cloud.alloydb.connectors.v1alpha; + +public final class ResourcesProto { + private ResourcesProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n7google/cloud/alloydb/connectors/v1alph" + + "a/resources.proto\022\'google.cloud.alloydb." + + "connectors.v1alpha\032\037google/api/field_beh" + + "avior.proto\"\353\001\n\027MetadataExchangeRequest\022" + + "\030\n\nuser_agent\030\001 \001(\tB\004\342A\001\001\022\\\n\tauth_type\030\002" + + " \001(\0162I.google.cloud.alloydb.connectors.v" + + "1alpha.MetadataExchangeRequest.AuthType\022" + + "\024\n\014oauth2_token\030\003 \001(\t\"B\n\010AuthType\022\031\n\025AUT" + + "H_TYPE_UNSPECIFIED\020\000\022\r\n\tDB_NATIVE\020\001\022\014\n\010A" + + "UTO_IAM\020\002\"\330\001\n\030MetadataExchangeResponse\022e" + + "\n\rresponse_code\030\001 \001(\0162N.google.cloud.all" + + "oydb.connectors.v1alpha.MetadataExchange" + + "Response.ResponseCode\022\023\n\005error\030\002 \001(\tB\004\342A" + + "\001\001\"@\n\014ResponseCode\022\035\n\031RESPONSE_CODE_UNSP" + + "ECIFIED\020\000\022\006\n\002OK\020\001\022\t\n\005ERROR\020\002B\216\002\n+com.goo" + + "gle.cloud.alloydb.connectors.v1alphaB\016Re" + + "sourcesProtoP\001ZKcloud.google.com/go/allo" + + "ydb/connectors/apiv1alpha/connectorspb;c" + + "onnectorspb\252\002\'Google.Cloud.AlloyDb.Conne" + + "ctors.V1Alpha\312\002\'Google\\Cloud\\AlloyDb\\Con" + + "nectors\\V1alpha\352\002+Google::Cloud::AlloyDb" + + "::Connectors::V1alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_descriptor, + new java.lang.String[] { + "UserAgent", "AuthType", "Oauth2Token", + }); + internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_descriptor, + new java.lang.String[] { + "ResponseCode", "Error", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/clirr-ignored-differences.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/clirr-ignored-differences.xml new file mode 100644 index 000000000000..12caa335a7b3 --- /dev/null +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/cloud/alloydb/connectors/v1beta/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/alloydb/connectors/v1beta/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/alloydb/connectors/v1beta/*OrBuilder + boolean has*(*) + + diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml new file mode 100644 index 000000000000..ec7d59bfb0b9 --- /dev/null +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml @@ -0,0 +1,46 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-alloydb-connectors-v1beta + 0.2.0-SNAPSHOT + proto-google-cloud-alloydb-connectors-v1beta + Proto library for google-cloud-alloydb-connectors + + com.google.cloud + google-cloud-alloydb-connectors-parent + 0.2.0-SNAPSHOT + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api + api-common + + + com.google.guava + guava + + + + + + + org.codehaus.mojo + flatten-maven-plugin + + + + diff --git a/owl-bot-staging/java-alloydb-connectors/v1beta/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeRequest.java b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeRequest.java similarity index 66% rename from owl-bot-staging/java-alloydb-connectors/v1beta/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeRequest.java rename to java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeRequest.java index 084c1766add0..fd479d4be13e 100644 --- a/owl-bot-staging/java-alloydb-connectors/v1beta/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeRequest.java +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/alloydb/connectors/v1beta/resources.proto package com.google.cloud.alloydb.connectors.v1beta; /** + * + * *
  * Message used by AlloyDB connectors to exchange client and connection metadata
  * with the server after a successful TLS handshake. This metadata includes an
@@ -15,15 +32,16 @@
  *
  * Protobuf type {@code google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest}
  */
-public final class MetadataExchangeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MetadataExchangeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest)
     MetadataExchangeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MetadataExchangeRequest.newBuilder() to construct.
   private MetadataExchangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MetadataExchangeRequest() {
     userAgent_ = "";
     authType_ = 0;
@@ -32,34 +50,38 @@ private MetadataExchangeRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MetadataExchangeRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.alloydb.connectors.v1beta.ResourcesProto.internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.alloydb.connectors.v1beta.ResourcesProto
+        .internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.alloydb.connectors.v1beta.ResourcesProto.internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeRequest_fieldAccessorTable
+    return com.google.cloud.alloydb.connectors.v1beta.ResourcesProto
+        .internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.class, com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.Builder.class);
+            com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.class,
+            com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * AuthType contains all supported authentication types.
    * 
* * Protobuf enum {@code google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType} */ - public enum AuthType - implements com.google.protobuf.ProtocolMessageEnum { + public enum AuthType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Authentication type is unspecified and DB_NATIVE is used by default
      * 
@@ -68,6 +90,8 @@ public enum AuthType */ AUTH_TYPE_UNSPECIFIED(0), /** + * + * *
      * Database native authentication (user/password)
      * 
@@ -76,6 +100,8 @@ public enum AuthType */ DB_NATIVE(1), /** + * + * *
      * Automatic IAM authentication
      * 
@@ -87,6 +113,8 @@ public enum AuthType ; /** + * + * *
      * Authentication type is unspecified and DB_NATIVE is used by default
      * 
@@ -95,6 +123,8 @@ public enum AuthType */ public static final int AUTH_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Database native authentication (user/password)
      * 
@@ -103,6 +133,8 @@ public enum AuthType */ public static final int DB_NATIVE_VALUE = 1; /** + * + * *
      * Automatic IAM authentication
      * 
@@ -111,7 +143,6 @@ public enum AuthType */ public static final int AUTO_IAM_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -136,49 +167,51 @@ public static AuthType valueOf(int value) { */ public static AuthType forNumber(int value) { switch (value) { - case 0: return AUTH_TYPE_UNSPECIFIED; - case 1: return DB_NATIVE; - case 2: return AUTO_IAM; - default: return null; + case 0: + return AUTH_TYPE_UNSPECIFIED; + case 1: + return DB_NATIVE; + case 2: + return AUTO_IAM; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - AuthType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AuthType findValueByNumber(int number) { - return AuthType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AuthType findValueByNumber(int number) { + return AuthType.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.getDescriptor() + .getEnumTypes() + .get(0); } private static final AuthType[] VALUES = values(); - public static AuthType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static AuthType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -196,14 +229,18 @@ private AuthType(int value) { } public static final int USER_AGENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object userAgent_ = ""; /** + * + * *
    * Optional. Connector information.
    * 
* * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userAgent. */ @java.lang.Override @@ -212,29 +249,29 @@ public java.lang.String getUserAgent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userAgent_ = s; return s; } } /** + * + * *
    * Optional. Connector information.
    * 
* * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userAgent. */ @java.lang.Override - public com.google.protobuf.ByteString - getUserAgentBytes() { + public com.google.protobuf.ByteString getUserAgentBytes() { java.lang.Object ref = userAgent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userAgent_ = b; return b; } else { @@ -245,39 +282,57 @@ public java.lang.String getUserAgent() { public static final int AUTH_TYPE_FIELD_NUMBER = 2; private int authType_ = 0; /** + * + * *
    * Authentication type.
    * 
* - * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2; + * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2; + * + * * @return The enum numeric value on the wire for authType. */ - @java.lang.Override public int getAuthTypeValue() { + @java.lang.Override + public int getAuthTypeValue() { return authType_; } /** + * + * *
    * Authentication type.
    * 
* - * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2; + * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2; + * + * * @return The authType. */ - @java.lang.Override public com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType getAuthType() { - com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType result = com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType.forNumber(authType_); - return result == null ? com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType getAuthType() { + com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType result = + com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType.forNumber( + authType_); + return result == null + ? com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType.UNRECOGNIZED + : result; } public static final int OAUTH2_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object oauth2Token_ = ""; /** + * + * *
    * IAM token used for both IAM user authentiation and
    * `alloydb.instances.connect` permission check.
    * 
* * string oauth2_token = 3; + * * @return The oauth2Token. */ @java.lang.Override @@ -286,30 +341,30 @@ public java.lang.String getOauth2Token() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); oauth2Token_ = s; return s; } } /** + * + * *
    * IAM token used for both IAM user authentiation and
    * `alloydb.instances.connect` permission check.
    * 
* * string oauth2_token = 3; + * * @return The bytes for oauth2Token. */ @java.lang.Override - public com.google.protobuf.ByteString - getOauth2TokenBytes() { + public com.google.protobuf.ByteString getOauth2TokenBytes() { java.lang.Object ref = oauth2Token_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); oauth2Token_ = b; return b; } else { @@ -318,6 +373,7 @@ public java.lang.String getOauth2Token() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -329,12 +385,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userAgent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userAgent_); } - if (authType_ != com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType.AUTH_TYPE_UNSPECIFIED.getNumber()) { + if (authType_ + != com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType + .AUTH_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, authType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oauth2Token_)) { @@ -352,9 +410,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userAgent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userAgent_); } - if (authType_ != com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType.AUTH_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, authType_); + if (authType_ + != com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType + .AUTH_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, authType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oauth2Token_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, oauth2Token_); @@ -367,18 +427,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest)) { return super.equals(obj); } - com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest other = (com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest) obj; + com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest other = + (com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest) obj; - if (!getUserAgent() - .equals(other.getUserAgent())) return false; + if (!getUserAgent().equals(other.getUserAgent())) return false; if (authType_ != other.authType_) return false; - if (!getOauth2Token() - .equals(other.getOauth2Token())) return false; + if (!getOauth2Token().equals(other.getOauth2Token())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -402,98 +461,105 @@ public int hashCode() { } public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message used by AlloyDB connectors to exchange client and connection metadata
    * with the server after a successful TLS handshake. This metadata includes an
@@ -505,33 +571,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest)
       com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.alloydb.connectors.v1beta.ResourcesProto.internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.alloydb.connectors.v1beta.ResourcesProto
+          .internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.alloydb.connectors.v1beta.ResourcesProto.internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeRequest_fieldAccessorTable
+      return com.google.cloud.alloydb.connectors.v1beta.ResourcesProto
+          .internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.class, com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.Builder.class);
+              com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.class,
+              com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.Builder.class);
     }
 
-    // Construct using com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.newBuilder()
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -543,14 +609,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.alloydb.connectors.v1beta.ResourcesProto.internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.alloydb.connectors.v1beta.ResourcesProto
+          .internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest getDefaultInstanceForType() {
-      return com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.getDefaultInstance();
+    public com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -564,13 +632,17 @@ public com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest build(
 
     @java.lang.Override
     public com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest buildPartial() {
-      com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest result = new com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest result =
+          new com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest result) {
+    private void buildPartial0(
+        com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.userAgent_ = userAgent_;
@@ -587,46 +659,51 @@ private void buildPartial0(com.google.cloud.alloydb.connectors.v1beta.MetadataEx
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest) {
-        return mergeFrom((com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest)other);
+        return mergeFrom(
+            (com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest other) {
-      if (other == com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest other) {
+      if (other
+          == com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest
+              .getDefaultInstance()) return this;
       if (!other.getUserAgent().isEmpty()) {
         userAgent_ = other.userAgent_;
         bitField0_ |= 0x00000001;
@@ -666,27 +743,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              userAgent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              authType_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              oauth2Token_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                userAgent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                authType_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                oauth2Token_ = 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) {
@@ -696,22 +777,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object userAgent_ = "";
     /**
+     *
+     *
      * 
      * Optional. Connector information.
      * 
* * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userAgent. */ public java.lang.String getUserAgent() { java.lang.Object ref = userAgent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userAgent_ = s; return s; @@ -720,20 +804,21 @@ public java.lang.String getUserAgent() { } } /** + * + * *
      * Optional. Connector information.
      * 
* * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userAgent. */ - public com.google.protobuf.ByteString - getUserAgentBytes() { + public com.google.protobuf.ByteString getUserAgentBytes() { java.lang.Object ref = userAgent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userAgent_ = b; return b; } else { @@ -741,28 +826,35 @@ public java.lang.String getUserAgent() { } } /** + * + * *
      * Optional. Connector information.
      * 
* * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUserAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } userAgent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. Connector information.
      * 
* * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUserAgent() { @@ -772,17 +864,21 @@ public Builder clearUserAgent() { return this; } /** + * + * *
      * Optional. Connector information.
      * 
* * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUserAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); userAgent_ = value; bitField0_ |= 0x00000001; @@ -792,22 +888,31 @@ public Builder setUserAgentBytes( private int authType_ = 0; /** + * + * *
      * Authentication type.
      * 
* - * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2; + * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2; + * + * * @return The enum numeric value on the wire for authType. */ - @java.lang.Override public int getAuthTypeValue() { + @java.lang.Override + public int getAuthTypeValue() { return authType_; } /** + * + * *
      * Authentication type.
      * 
* - * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2; + * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2; + * + * * @param value The enum numeric value on the wire for authType to set. * @return This builder for chaining. */ @@ -818,28 +923,42 @@ public Builder setAuthTypeValue(int value) { return this; } /** + * + * *
      * Authentication type.
      * 
* - * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2; + * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2; + * + * * @return The authType. */ @java.lang.Override - public com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType getAuthType() { - com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType result = com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType.forNumber(authType_); - return result == null ? com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType.UNRECOGNIZED : result; + public com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType + getAuthType() { + com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType result = + com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType.forNumber( + authType_); + return result == null + ? com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType.UNRECOGNIZED + : result; } /** + * + * *
      * Authentication type.
      * 
* - * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2; + * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2; + * + * * @param value The authType to set. * @return This builder for chaining. */ - public Builder setAuthType(com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType value) { + public Builder setAuthType( + com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType value) { if (value == null) { throw new NullPointerException(); } @@ -849,11 +968,15 @@ public Builder setAuthType(com.google.cloud.alloydb.connectors.v1beta.MetadataEx return this; } /** + * + * *
      * Authentication type.
      * 
* - * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2; + * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2; + * + * * @return This builder for chaining. */ public Builder clearAuthType() { @@ -865,19 +988,21 @@ public Builder clearAuthType() { private java.lang.Object oauth2Token_ = ""; /** + * + * *
      * IAM token used for both IAM user authentiation and
      * `alloydb.instances.connect` permission check.
      * 
* * string oauth2_token = 3; + * * @return The oauth2Token. */ public java.lang.String getOauth2Token() { java.lang.Object ref = oauth2Token_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); oauth2Token_ = s; return s; @@ -886,21 +1011,22 @@ public java.lang.String getOauth2Token() { } } /** + * + * *
      * IAM token used for both IAM user authentiation and
      * `alloydb.instances.connect` permission check.
      * 
* * string oauth2_token = 3; + * * @return The bytes for oauth2Token. */ - public com.google.protobuf.ByteString - getOauth2TokenBytes() { + public com.google.protobuf.ByteString getOauth2TokenBytes() { java.lang.Object ref = oauth2Token_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); oauth2Token_ = b; return b; } else { @@ -908,30 +1034,37 @@ public java.lang.String getOauth2Token() { } } /** + * + * *
      * IAM token used for both IAM user authentiation and
      * `alloydb.instances.connect` permission check.
      * 
* * string oauth2_token = 3; + * * @param value The oauth2Token to set. * @return This builder for chaining. */ - public Builder setOauth2Token( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOauth2Token(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } oauth2Token_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * IAM token used for both IAM user authentiation and
      * `alloydb.instances.connect` permission check.
      * 
* * string oauth2_token = 3; + * * @return This builder for chaining. */ public Builder clearOauth2Token() { @@ -941,27 +1074,31 @@ public Builder clearOauth2Token() { return this; } /** + * + * *
      * IAM token used for both IAM user authentiation and
      * `alloydb.instances.connect` permission check.
      * 
* * string oauth2_token = 3; + * * @param value The bytes for oauth2Token to set. * @return This builder for chaining. */ - public Builder setOauth2TokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOauth2TokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); oauth2Token_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -971,41 +1108,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest) - private static final com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest(); } - public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest getDefaultInstance() { + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetadataExchangeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetadataExchangeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1017,9 +1156,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest getDefaultInstanceForType() { + public com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-alloydb-connectors/v1beta/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeRequestOrBuilder.java b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-alloydb-connectors/v1beta/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeRequestOrBuilder.java rename to java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeRequestOrBuilder.java index 6119b2868f8c..6c9d0bffea82 100644 --- a/owl-bot-staging/java-alloydb-connectors/v1beta/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeRequestOrBuilder.java +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeRequestOrBuilder.java @@ -1,70 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/alloydb/connectors/v1beta/resources.proto package com.google.cloud.alloydb.connectors.v1beta; -public interface MetadataExchangeRequestOrBuilder extends +public interface MetadataExchangeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Connector information.
    * 
* * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userAgent. */ java.lang.String getUserAgent(); /** + * + * *
    * Optional. Connector information.
    * 
* * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userAgent. */ - com.google.protobuf.ByteString - getUserAgentBytes(); + com.google.protobuf.ByteString getUserAgentBytes(); /** + * + * *
    * Authentication type.
    * 
* - * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2; + * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2; + * + * * @return The enum numeric value on the wire for authType. */ int getAuthTypeValue(); /** + * + * *
    * Authentication type.
    * 
* - * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2; + * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2; + * + * * @return The authType. */ com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType getAuthType(); /** + * + * *
    * IAM token used for both IAM user authentiation and
    * `alloydb.instances.connect` permission check.
    * 
* * string oauth2_token = 3; + * * @return The oauth2Token. */ java.lang.String getOauth2Token(); /** + * + * *
    * IAM token used for both IAM user authentiation and
    * `alloydb.instances.connect` permission check.
    * 
* * string oauth2_token = 3; + * * @return The bytes for oauth2Token. */ - com.google.protobuf.ByteString - getOauth2TokenBytes(); + com.google.protobuf.ByteString getOauth2TokenBytes(); } diff --git a/owl-bot-staging/java-alloydb-connectors/v1beta/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeResponse.java b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeResponse.java similarity index 61% rename from owl-bot-staging/java-alloydb-connectors/v1beta/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeResponse.java rename to java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeResponse.java index 7f8c6011f541..72747e690e51 100644 --- a/owl-bot-staging/java-alloydb-connectors/v1beta/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeResponse.java +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/alloydb/connectors/v1beta/resources.proto package com.google.cloud.alloydb.connectors.v1beta; /** + * + * *
  * Message for response to metadata exchange request. The sole purpose of this
  * message is for the use of AlloyDB connectors. Clients should not rely on this
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse}
  */
-public final class MetadataExchangeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MetadataExchangeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse)
     MetadataExchangeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MetadataExchangeResponse.newBuilder() to construct.
   private MetadataExchangeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MetadataExchangeResponse() {
     responseCode_ = 0;
     error_ = "";
@@ -28,34 +46,39 @@ private MetadataExchangeResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MetadataExchangeResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.alloydb.connectors.v1beta.ResourcesProto.internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.alloydb.connectors.v1beta.ResourcesProto
+        .internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.alloydb.connectors.v1beta.ResourcesProto.internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeResponse_fieldAccessorTable
+    return com.google.cloud.alloydb.connectors.v1beta.ResourcesProto
+        .internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.class, com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.Builder.class);
+            com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.class,
+            com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Response code.
    * 
* - * Protobuf enum {@code google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode} + * Protobuf enum {@code + * google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode} */ - public enum ResponseCode - implements com.google.protobuf.ProtocolMessageEnum { + public enum ResponseCode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unknown response code
      * 
@@ -64,6 +87,8 @@ public enum ResponseCode */ RESPONSE_CODE_UNSPECIFIED(0), /** + * + * *
      * Success
      * 
@@ -72,6 +97,8 @@ public enum ResponseCode */ OK(1), /** + * + * *
      * Failure
      * 
@@ -83,6 +110,8 @@ public enum ResponseCode ; /** + * + * *
      * Unknown response code
      * 
@@ -91,6 +120,8 @@ public enum ResponseCode */ public static final int RESPONSE_CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Success
      * 
@@ -99,6 +130,8 @@ public enum ResponseCode */ public static final int OK_VALUE = 1; /** + * + * *
      * Failure
      * 
@@ -107,7 +140,6 @@ public enum ResponseCode */ public static final int ERROR_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -132,49 +164,51 @@ public static ResponseCode valueOf(int value) { */ public static ResponseCode forNumber(int value) { switch (value) { - case 0: return RESPONSE_CODE_UNSPECIFIED; - case 1: return OK; - case 2: return ERROR; - default: return null; + case 0: + return RESPONSE_CODE_UNSPECIFIED; + case 1: + return OK; + case 2: + return ERROR; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ResponseCode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResponseCode findValueByNumber(int number) { - return ResponseCode.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResponseCode findValueByNumber(int number) { + return ResponseCode.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.getDescriptor() + .getEnumTypes() + .get(0); } private static final ResponseCode[] VALUES = values(); - public static ResponseCode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ResponseCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -194,38 +228,60 @@ private ResponseCode(int value) { public static final int RESPONSE_CODE_FIELD_NUMBER = 1; private int responseCode_ = 0; /** + * + * *
    * Response code.
    * 
* - * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * * @return The enum numeric value on the wire for responseCode. */ - @java.lang.Override public int getResponseCodeValue() { + @java.lang.Override + public int getResponseCodeValue() { return responseCode_; } /** + * + * *
    * Response code.
    * 
* - * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * * @return The responseCode. */ - @java.lang.Override public com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode getResponseCode() { - com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode result = com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode.forNumber(responseCode_); - return result == null ? com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode + getResponseCode() { + com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode result = + com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode.forNumber( + responseCode_); + return result == null + ? com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode + .UNRECOGNIZED + : result; } public static final int ERROR_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object error_ = ""; /** + * + * *
    * Optional. Error message.
    * 
* * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The error. */ @java.lang.Override @@ -234,29 +290,29 @@ public java.lang.String getError() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } } /** + * + * *
    * Optional. Error message.
    * 
* * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for error. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorBytes() { + public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); error_ = b; return b; } else { @@ -265,6 +321,7 @@ public java.lang.String getError() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,9 +333,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (responseCode_ != com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode.RESPONSE_CODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (responseCode_ + != com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode + .RESPONSE_CODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, responseCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { @@ -293,9 +352,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (responseCode_ != com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode.RESPONSE_CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, responseCode_); + if (responseCode_ + != com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode + .RESPONSE_CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, responseCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); @@ -308,16 +369,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse)) { return super.equals(obj); } - com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse other = (com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse) obj; + com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse other = + (com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse) obj; if (responseCode_ != other.responseCode_) return false; - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,98 +400,105 @@ public int hashCode() { } public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for response to metadata exchange request. The sole purpose of this
    * message is for the use of AlloyDB connectors. Clients should not rely on this
@@ -439,33 +507,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse)
       com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.alloydb.connectors.v1beta.ResourcesProto.internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.alloydb.connectors.v1beta.ResourcesProto
+          .internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.alloydb.connectors.v1beta.ResourcesProto.internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeResponse_fieldAccessorTable
+      return com.google.cloud.alloydb.connectors.v1beta.ResourcesProto
+          .internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.class, com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.Builder.class);
+              com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.class,
+              com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.Builder.class);
     }
 
-    // Construct using com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.newBuilder()
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -476,14 +544,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.alloydb.connectors.v1beta.ResourcesProto.internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.alloydb.connectors.v1beta.ResourcesProto
+          .internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse getDefaultInstanceForType() {
-      return com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.getDefaultInstance();
+    public com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse
+        getDefaultInstanceForType() {
+      return com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -497,13 +567,17 @@ public com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse build
 
     @java.lang.Override
     public com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse buildPartial() {
-      com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse result = new com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse result =
+          new com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse result) {
+    private void buildPartial0(
+        com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.responseCode_ = responseCode_;
@@ -517,46 +591,51 @@ private void buildPartial0(com.google.cloud.alloydb.connectors.v1beta.MetadataEx
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse) {
-        return mergeFrom((com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse)other);
+        return mergeFrom(
+            (com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse other) {
-      if (other == com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse other) {
+      if (other
+          == com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse
+              .getDefaultInstance()) return this;
       if (other.responseCode_ != 0) {
         setResponseCodeValue(other.getResponseCodeValue());
       }
@@ -591,22 +670,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              responseCode_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              error_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                responseCode_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                error_ = 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) {
@@ -616,26 +698,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private int responseCode_ = 0;
     /**
+     *
+     *
      * 
      * Response code.
      * 
* - * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * * @return The enum numeric value on the wire for responseCode. */ - @java.lang.Override public int getResponseCodeValue() { + @java.lang.Override + public int getResponseCodeValue() { return responseCode_; } /** + * + * *
      * Response code.
      * 
* - * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * * @param value The enum numeric value on the wire for responseCode to set. * @return This builder for chaining. */ @@ -646,28 +740,45 @@ public Builder setResponseCodeValue(int value) { return this; } /** + * + * *
      * Response code.
      * 
* - * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * * @return The responseCode. */ @java.lang.Override - public com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode getResponseCode() { - com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode result = com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode.forNumber(responseCode_); - return result == null ? com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode.UNRECOGNIZED : result; + public com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode + getResponseCode() { + com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode result = + com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode + .forNumber(responseCode_); + return result == null + ? com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode + .UNRECOGNIZED + : result; } /** + * + * *
      * Response code.
      * 
* - * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * * @param value The responseCode to set. * @return This builder for chaining. */ - public Builder setResponseCode(com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode value) { + public Builder setResponseCode( + com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode value) { if (value == null) { throw new NullPointerException(); } @@ -677,11 +788,16 @@ public Builder setResponseCode(com.google.cloud.alloydb.connectors.v1beta.Metada return this; } /** + * + * *
      * Response code.
      * 
* - * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * * @return This builder for chaining. */ public Builder clearResponseCode() { @@ -693,18 +809,20 @@ public Builder clearResponseCode() { private java.lang.Object error_ = ""; /** + * + * *
      * Optional. Error message.
      * 
* * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The error. */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; @@ -713,20 +831,21 @@ public java.lang.String getError() { } } /** + * + * *
      * Optional. Error message.
      * 
* * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for error. */ - public com.google.protobuf.ByteString - getErrorBytes() { + public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); error_ = b; return b; } else { @@ -734,28 +853,35 @@ public java.lang.String getError() { } } /** + * + * *
      * Optional. Error message.
      * 
* * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The error to set. * @return This builder for chaining. */ - public Builder setError( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setError(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } error_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Error message.
      * 
* * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearError() { @@ -765,26 +891,30 @@ public Builder clearError() { return this; } /** + * + * *
      * Optional. Error message.
      * 
* * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for error to set. * @return This builder for chaining. */ - public Builder setErrorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); error_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -794,41 +924,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse) - private static final com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse DEFAULT_INSTANCE; + private static final com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse(); } - public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse getDefaultInstance() { + public static com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetadataExchangeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetadataExchangeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -840,9 +972,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse getDefaultInstanceForType() { + public com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeResponseOrBuilder.java b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeResponseOrBuilder.java new file mode 100644 index 000000000000..b0f85b073d60 --- /dev/null +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeResponseOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/alloydb/connectors/v1beta/resources.proto + +package com.google.cloud.alloydb.connectors.v1beta; + +public interface MetadataExchangeResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Response code.
+   * 
+ * + * + * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * + * @return The enum numeric value on the wire for responseCode. + */ + int getResponseCodeValue(); + /** + * + * + *
+   * Response code.
+   * 
+ * + * + * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * + * @return The responseCode. + */ + com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode + getResponseCode(); + + /** + * + * + *
+   * Optional. Error message.
+   * 
+ * + * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The error. + */ + java.lang.String getError(); + /** + * + * + *
+   * Optional. Error message.
+   * 
+ * + * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for error. + */ + com.google.protobuf.ByteString getErrorBytes(); +} diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/ResourcesProto.java b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/ResourcesProto.java new file mode 100644 index 000000000000..6cd993f842af --- /dev/null +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/ResourcesProto.java @@ -0,0 +1,101 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/alloydb/connectors/v1beta/resources.proto + +package com.google.cloud.alloydb.connectors.v1beta; + +public final class ResourcesProto { + private ResourcesProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/alloydb/connectors/v1beta" + + "/resources.proto\022&google.cloud.alloydb.c" + + "onnectors.v1beta\032\037google/api/field_behav" + + "ior.proto\"\352\001\n\027MetadataExchangeRequest\022\030\n" + + "\nuser_agent\030\001 \001(\tB\004\342A\001\001\022[\n\tauth_type\030\002 \001" + + "(\0162H.google.cloud.alloydb.connectors.v1b" + + "eta.MetadataExchangeRequest.AuthType\022\024\n\014" + + "oauth2_token\030\003 \001(\t\"B\n\010AuthType\022\031\n\025AUTH_T" + + "YPE_UNSPECIFIED\020\000\022\r\n\tDB_NATIVE\020\001\022\014\n\010AUTO" + + "_IAM\020\002\"\327\001\n\030MetadataExchangeResponse\022d\n\rr" + + "esponse_code\030\001 \001(\0162M.google.cloud.alloyd" + + "b.connectors.v1beta.MetadataExchangeResp" + + "onse.ResponseCode\022\023\n\005error\030\002 \001(\tB\004\342A\001\001\"@" + + "\n\014ResponseCode\022\035\n\031RESPONSE_CODE_UNSPECIF" + + "IED\020\000\022\006\n\002OK\020\001\022\t\n\005ERROR\020\002B\211\002\n*com.google." + + "cloud.alloydb.connectors.v1betaB\016Resourc" + + "esProtoP\001ZJcloud.google.com/go/alloydb/c" + + "onnectors/apiv1beta/connectorspb;connect" + + "orspb\252\002&Google.Cloud.AlloyDb.Connectors." + + "V1Beta\312\002&Google\\Cloud\\AlloyDb\\Connectors" + + "\\V1beta\352\002*Google::Cloud::AlloyDb::Connec" + + "tors::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeRequest_descriptor, + new java.lang.String[] { + "UserAgent", "AuthType", "Oauth2Token", + }); + internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeResponse_descriptor, + new java.lang.String[] { + "ResponseCode", "Error", + }); + 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/owl-bot-staging/java-alloydb-connectors/v1beta/proto-google-cloud-alloydb-connectors-v1beta/src/main/proto/google/cloud/alloydb/connectors/v1beta/resources.proto b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/src/main/proto/google/cloud/alloydb/connectors/v1beta/resources.proto similarity index 100% rename from owl-bot-staging/java-alloydb-connectors/v1beta/proto-google-cloud-alloydb-connectors-v1beta/src/main/proto/google/cloud/alloydb/connectors/v1beta/resources.proto rename to java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/src/main/proto/google/cloud/alloydb/connectors/v1beta/resources.proto diff --git a/owl-bot-staging/java-alloydb-connectors/v1alpha/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponseOrBuilder.java b/owl-bot-staging/java-alloydb-connectors/v1alpha/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponseOrBuilder.java deleted file mode 100644 index a9155a7cfceb..000000000000 --- a/owl-bot-staging/java-alloydb-connectors/v1alpha/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponseOrBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/alloydb/connectors/v1alpha/resources.proto - -package com.google.cloud.alloydb.connectors.v1alpha; - -public interface MetadataExchangeResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Response code.
-   * 
- * - * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; - * @return The enum numeric value on the wire for responseCode. - */ - int getResponseCodeValue(); - /** - *
-   * Response code.
-   * 
- * - * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; - * @return The responseCode. - */ - com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode getResponseCode(); - - /** - *
-   * Optional. Error message.
-   * 
- * - * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The error. - */ - java.lang.String getError(); - /** - *
-   * Optional. Error message.
-   * 
- * - * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for error. - */ - com.google.protobuf.ByteString - getErrorBytes(); -} diff --git a/owl-bot-staging/java-alloydb-connectors/v1alpha/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/ResourcesProto.java b/owl-bot-staging/java-alloydb-connectors/v1alpha/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/ResourcesProto.java deleted file mode 100644 index 97a349730515..000000000000 --- a/owl-bot-staging/java-alloydb-connectors/v1alpha/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/ResourcesProto.java +++ /dev/null @@ -1,85 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/alloydb/connectors/v1alpha/resources.proto - -package com.google.cloud.alloydb.connectors.v1alpha; - -public final class ResourcesProto { - private ResourcesProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n7google/cloud/alloydb/connectors/v1alph" + - "a/resources.proto\022\'google.cloud.alloydb." + - "connectors.v1alpha\032\037google/api/field_beh" + - "avior.proto\"\353\001\n\027MetadataExchangeRequest\022" + - "\030\n\nuser_agent\030\001 \001(\tB\004\342A\001\001\022\\\n\tauth_type\030\002" + - " \001(\0162I.google.cloud.alloydb.connectors.v" + - "1alpha.MetadataExchangeRequest.AuthType\022" + - "\024\n\014oauth2_token\030\003 \001(\t\"B\n\010AuthType\022\031\n\025AUT" + - "H_TYPE_UNSPECIFIED\020\000\022\r\n\tDB_NATIVE\020\001\022\014\n\010A" + - "UTO_IAM\020\002\"\330\001\n\030MetadataExchangeResponse\022e" + - "\n\rresponse_code\030\001 \001(\0162N.google.cloud.all" + - "oydb.connectors.v1alpha.MetadataExchange" + - "Response.ResponseCode\022\023\n\005error\030\002 \001(\tB\004\342A" + - "\001\001\"@\n\014ResponseCode\022\035\n\031RESPONSE_CODE_UNSP" + - "ECIFIED\020\000\022\006\n\002OK\020\001\022\t\n\005ERROR\020\002B\216\002\n+com.goo" + - "gle.cloud.alloydb.connectors.v1alphaB\016Re" + - "sourcesProtoP\001ZKcloud.google.com/go/allo" + - "ydb/connectors/apiv1alpha/connectorspb;c" + - "onnectorspb\252\002\'Google.Cloud.AlloyDb.Conne" + - "ctors.V1Alpha\312\002\'Google\\Cloud\\AlloyDb\\Con" + - "nectors\\V1alpha\352\002+Google::Cloud::AlloyDb" + - "::Connectors::V1alphab\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_descriptor, - new java.lang.String[] { "UserAgent", "AuthType", "Oauth2Token", }); - internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_descriptor, - new java.lang.String[] { "ResponseCode", "Error", }); - 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/owl-bot-staging/java-alloydb-connectors/v1beta/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeResponseOrBuilder.java b/owl-bot-staging/java-alloydb-connectors/v1beta/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeResponseOrBuilder.java deleted file mode 100644 index 54825756d3e8..000000000000 --- a/owl-bot-staging/java-alloydb-connectors/v1beta/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/MetadataExchangeResponseOrBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/alloydb/connectors/v1beta/resources.proto - -package com.google.cloud.alloydb.connectors.v1beta; - -public interface MetadataExchangeResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Response code.
-   * 
- * - * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode response_code = 1; - * @return The enum numeric value on the wire for responseCode. - */ - int getResponseCodeValue(); - /** - *
-   * Response code.
-   * 
- * - * .google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode response_code = 1; - * @return The responseCode. - */ - com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeResponse.ResponseCode getResponseCode(); - - /** - *
-   * Optional. Error message.
-   * 
- * - * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The error. - */ - java.lang.String getError(); - /** - *
-   * Optional. Error message.
-   * 
- * - * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for error. - */ - com.google.protobuf.ByteString - getErrorBytes(); -} diff --git a/owl-bot-staging/java-alloydb-connectors/v1beta/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/ResourcesProto.java b/owl-bot-staging/java-alloydb-connectors/v1beta/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/ResourcesProto.java deleted file mode 100644 index 7025f11df23f..000000000000 --- a/owl-bot-staging/java-alloydb-connectors/v1beta/proto-google-cloud-alloydb-connectors-v1beta/src/main/java/com/google/cloud/alloydb/connectors/v1beta/ResourcesProto.java +++ /dev/null @@ -1,85 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/alloydb/connectors/v1beta/resources.proto - -package com.google.cloud.alloydb.connectors.v1beta; - -public final class ResourcesProto { - private ResourcesProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/alloydb/connectors/v1beta" + - "/resources.proto\022&google.cloud.alloydb.c" + - "onnectors.v1beta\032\037google/api/field_behav" + - "ior.proto\"\352\001\n\027MetadataExchangeRequest\022\030\n" + - "\nuser_agent\030\001 \001(\tB\004\342A\001\001\022[\n\tauth_type\030\002 \001" + - "(\0162H.google.cloud.alloydb.connectors.v1b" + - "eta.MetadataExchangeRequest.AuthType\022\024\n\014" + - "oauth2_token\030\003 \001(\t\"B\n\010AuthType\022\031\n\025AUTH_T" + - "YPE_UNSPECIFIED\020\000\022\r\n\tDB_NATIVE\020\001\022\014\n\010AUTO" + - "_IAM\020\002\"\327\001\n\030MetadataExchangeResponse\022d\n\rr" + - "esponse_code\030\001 \001(\0162M.google.cloud.alloyd" + - "b.connectors.v1beta.MetadataExchangeResp" + - "onse.ResponseCode\022\023\n\005error\030\002 \001(\tB\004\342A\001\001\"@" + - "\n\014ResponseCode\022\035\n\031RESPONSE_CODE_UNSPECIF" + - "IED\020\000\022\006\n\002OK\020\001\022\t\n\005ERROR\020\002B\211\002\n*com.google." + - "cloud.alloydb.connectors.v1betaB\016Resourc" + - "esProtoP\001ZJcloud.google.com/go/alloydb/c" + - "onnectors/apiv1beta/connectorspb;connect" + - "orspb\252\002&Google.Cloud.AlloyDb.Connectors." + - "V1Beta\312\002&Google\\Cloud\\AlloyDb\\Connectors" + - "\\V1beta\352\002*Google::Cloud::AlloyDb::Connec" + - "tors::V1betab\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeRequest_descriptor, - new java.lang.String[] { "UserAgent", "AuthType", "Oauth2Token", }); - internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_alloydb_connectors_v1beta_MetadataExchangeResponse_descriptor, - new java.lang.String[] { "ResponseCode", "Error", }); - 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/versions.txt b/versions.txt index 310773484e41..4442a13eaddb 100644 --- a/versions.txt +++ b/versions.txt @@ -674,3 +674,4 @@ proto-google-cloud-infra-manager-v1:0.0.0:0.0.1-SNAPSHOT grpc-google-cloud-infra-manager-v1:0.0.0:0.0.1-SNAPSHOT proto-google-cloud-notebooks-v2:1.21.0:1.22.0-SNAPSHOT grpc-google-cloud-notebooks-v2:1.21.0:1.22.0-SNAPSHOT +proto-google-cloud-alloydb-connectors-v1beta:0.1.0:0.2.0-SNAPSHOT