() {
+ 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() {
+ return getDescriptor();
+ }
+
+ 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) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private AuthType(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType)
+ }
+
+ 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
+ public java.lang.String getUserAgent() {
+ java.lang.Object ref = userAgent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ 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() {
+ 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);
+ userAgent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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;
+ *
+ *
+ * @return The enum numeric value on the wire for authType.
+ */
+ @java.lang.Override
+ public int getAuthTypeValue() {
+ return authType_;
+ }
+ /**
+ *
+ *
+ *
+ * Authentication type.
+ *
+ *
+ * .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 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
+ public java.lang.String getOauth2Token() {
+ java.lang.Object ref = oauth2Token_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ 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() {
+ 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);
+ oauth2Token_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userAgent_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userAgent_);
+ }
+ 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_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, oauth2Token_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oauth2Token_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, oauth2Token_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest)) {
+ return super.equals(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 (authType_ != other.authType_) return false;
+ if (!getOauth2Token().equals(other.getOauth2Token())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + USER_AGENT_FIELD_NUMBER;
+ hash = (53 * hash) + getUserAgent().hashCode();
+ hash = (37 * hash) + AUTH_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + authType_;
+ hash = (37 * hash) + OAUTH2_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getOauth2Token().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom(
+ 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)
+ 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 {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom(
+ 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, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ 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, 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);
+ }
+
+ 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);
+ }
+
+ @java.lang.Override
+ 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) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Message used by AlloyDB connectors to exchange client and connection metadata
+ * with the server after a successful TLS handshake. This metadata includes an
+ * IAM token, which is used to authenticate users based on their IAM identity.
+ * The sole purpose of this message is for the use of AlloyDB connectors.
+ * Clients should not rely on this message directly as there can be breaking
+ * changes in the future.
+ *
+ *
+ * Protobuf type {@code google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest}
+ */
+ 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;
+ }
+
+ @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
+ .ensureFieldAccessorsInitialized(
+ 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() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ userAgent_ = "";
+ authType_ = 0;
+ oauth2Token_ = "";
+ return this;
+ }
+
+ @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;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest
+ getDefaultInstanceForType() {
+ return com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest build() {
+ com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @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);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.userAgent_ = userAgent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.authType_ = authType_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.oauth2Token_ = oauth2Token_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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);
+ } 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;
+ if (!other.getUserAgent().isEmpty()) {
+ userAgent_ = other.userAgent_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.authType_ != 0) {
+ setAuthTypeValue(other.getAuthTypeValue());
+ }
+ if (!other.getOauth2Token().isEmpty()) {
+ oauth2Token_ = other.oauth2Token_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ 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) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // 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;
+ java.lang.String s = bs.toStringUtf8();
+ userAgent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Connector information.
+ *
+ *
+ * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for userAgent.
+ */
+ 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);
+ userAgent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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();
+ }
+ 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() {
+ userAgent_ = getDefaultInstance().getUserAgent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ 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();
+ }
+ checkByteStringIsUtf8(value);
+ userAgent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private int authType_ = 0;
+ /**
+ *
+ *
+ *
+ * Authentication type.
+ *
+ *
+ *
+ * .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() {
+ return authType_;
+ }
+ /**
+ *
+ *
+ *
+ * Authentication type.
+ *
+ *
+ *
+ * .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.
+ */
+ public Builder setAuthTypeValue(int value) {
+ authType_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Authentication type.
+ *
+ *
+ *
+ * .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;
+ }
+ /**
+ *
+ *
+ *
+ * Authentication type.
+ *
+ *
+ *
+ * .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) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ authType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Authentication type.
+ *
+ *
+ *
+ * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2;
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAuthType() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ authType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ 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;
+ java.lang.String s = bs.toStringUtf8();
+ oauth2Token_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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() {
+ java.lang.Object ref = oauth2Token_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ oauth2Token_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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();
+ }
+ 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() {
+ oauth2Token_ = getDefaultInstance().getOauth2Token();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ 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();
+ }
+ checkByteStringIsUtf8(value);
+ oauth2Token_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.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;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest();
+ }
+
+ 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();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest
+ 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/MetadataExchangeRequestOrBuilder.java b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequestOrBuilder.java
new file mode 100644
index 000000000000..4390a205da63
--- /dev/null
+++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequestOrBuilder.java
@@ -0,0 +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
+ // @@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();
+
+ /**
+ *
+ *
+ *
+ * Authentication type.
+ *
+ *
+ * .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;
+ *
+ *
+ * @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();
+}
diff --git a/java-alloydb-connectors/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
new file mode 100644
index 000000000000..b77b94d1391a
--- /dev/null
+++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponse.java
@@ -0,0 +1,979 @@
+/*
+ * 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
+ * message directly as there can be breaking changes in the future.
+ *
+ *
+ * Protobuf type {@code google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse}
+ */
+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;
+ // Use MetadataExchangeResponse.newBuilder() to construct.
+ private MetadataExchangeResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private MetadataExchangeResponse() {
+ responseCode_ = 0;
+ error_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"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;
+ }
+
+ @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
+ .ensureFieldAccessorsInitialized(
+ 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}
+ */
+ public enum ResponseCode implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Unknown response code
+ *
+ *
+ * RESPONSE_CODE_UNSPECIFIED = 0;
+ */
+ RESPONSE_CODE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Success
+ *
+ *
+ * OK = 1;
+ */
+ OK(1),
+ /**
+ *
+ *
+ *
+ * Failure
+ *
+ *
+ * ERROR = 2;
+ */
+ ERROR(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Unknown response code
+ *
+ *
+ * RESPONSE_CODE_UNSPECIFIED = 0;
+ */
+ public static final int RESPONSE_CODE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Success
+ *
+ *
+ * OK = 1;
+ */
+ public static final int OK_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * Failure
+ *
+ *
+ * ERROR = 2;
+ */
+ public static final int ERROR_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static ResponseCode valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static ResponseCode forNumber(int value) {
+ switch (value) {
+ 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() {
+ return internalValueMap;
+ }
+
+ 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() {
+ return getDescriptor();
+ }
+
+ 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) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private ResponseCode(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode)
+ }
+
+ 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;
+ *
+ *
+ * @return The enum numeric value on the wire for responseCode.
+ */
+ @java.lang.Override
+ public int getResponseCodeValue() {
+ return responseCode_;
+ }
+ /**
+ *
+ *
+ *
+ * Response code.
+ *
+ *
+ *
+ * .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 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
+ public java.lang.String getError() {
+ java.lang.Object ref = error_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ 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() {
+ 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);
+ error_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (responseCode_
+ != com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode
+ .RESPONSE_CODE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, responseCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse)) {
+ return super.equals(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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RESPONSE_CODE_FIELD_NUMBER;
+ hash = (53 * hash) + responseCode_;
+ hash = (37 * hash) + ERROR_FIELD_NUMBER;
+ hash = (53 * hash) + getError().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom(
+ 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)
+ 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 {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom(
+ 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, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ 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, 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);
+ }
+
+ 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);
+ }
+
+ @java.lang.Override
+ 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) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Message for response to metadata exchange request. The sole purpose of this
+ * message is for the use of AlloyDB connectors. Clients should not rely on this
+ * message directly as there can be breaking changes in the future.
+ *
+ *
+ * Protobuf type {@code google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse}
+ */
+ 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;
+ }
+
+ @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
+ .ensureFieldAccessorsInitialized(
+ 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() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ responseCode_ = 0;
+ error_ = "";
+ return this;
+ }
+
+ @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;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse
+ getDefaultInstanceForType() {
+ return com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse build() {
+ com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @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);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.responseCode_ = responseCode_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.error_ = error_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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);
+ } 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;
+ if (other.responseCode_ != 0) {
+ setResponseCodeValue(other.getResponseCodeValue());
+ }
+ if (!other.getError().isEmpty()) {
+ error_ = other.error_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ 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) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private int responseCode_ = 0;
+ /**
+ *
+ *
+ *
+ * Response code.
+ *
+ *
+ *
+ * .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() {
+ return responseCode_;
+ }
+ /**
+ *
+ *
+ *
+ * Response code.
+ *
+ *
+ *
+ * .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.
+ */
+ public Builder setResponseCodeValue(int value) {
+ responseCode_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Response code.
+ *
+ *
+ *
+ * .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;
+ }
+ /**
+ *
+ *
+ *
+ * Response code.
+ *
+ *
+ *
+ * .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) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ responseCode_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Response code.
+ *
+ *
+ *
+ * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1;
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResponseCode() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ responseCode_ = 0;
+ onChanged();
+ return this;
+ }
+
+ 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;
+ java.lang.String s = bs.toStringUtf8();
+ error_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Error message.
+ *
+ *
+ * string error = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for error.
+ */
+ 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);
+ error_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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();
+ }
+ 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() {
+ error_ = getDefaultInstance().getError();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ 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();
+ }
+ checkByteStringIsUtf8(value);
+ error_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.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;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse();
+ }
+
+ 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();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.alloydb.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/pom.xml b/pom.xml
index d6c7f8215913..e83a79d356f1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -18,6 +18,7 @@
java-accesscontextmanager
java-advisorynotifications
java-aiplatform
+ java-alloydb-connectors
java-alloydb
java-analytics-admin
java-analytics-data
diff --git a/versions.txt b/versions.txt
index 1ef389426282..8848c006be14 100644
--- a/versions.txt
+++ b/versions.txt
@@ -663,3 +663,7 @@ proto-google-cloud-netapp-v1:0.1.0:0.2.0-SNAPSHOT
grpc-google-cloud-netapp-v1:0.1.0:0.2.0-SNAPSHOT
proto-google-cloud-cloudcommerceconsumerprocurement-v1:0.20.0:0.21.0-SNAPSHOT
grpc-google-cloud-cloudcommerceconsumerprocurement-v1:0.20.0:0.21.0-SNAPSHOT
+google-cloud-java-alloydb-connectors:0.0.0:0.0.1-SNAPSHOT
+proto-google-cloud-java-alloydb-connectors-v1alpha:0.0.0:0.0.1-SNAPSHOT
+google-cloud-alloydb-connectors:0.0.0:0.0.1-SNAPSHOT
+proto-google-cloud-alloydb-connectors-v1alpha:0.0.0:0.0.1-SNAPSHOT