Class MetadataExchangeRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MetadataExchangeRequest.Builder>
com.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.Builder
- All Implemented Interfaces:
MetadataExchangeRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MetadataExchangeRequest
public static final class MetadataExchangeRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MetadataExchangeRequest.Builder>
implements MetadataExchangeRequestOrBuilder
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
google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Authentication type.IAM token used for both IAM user authentiation and `alloydb.instances.connect` permission check.Optional.Authentication type.intAuthentication type.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIAM token used for both IAM user authentiation and `alloydb.instances.connect` permission check.com.google.protobuf.ByteStringIAM token used for both IAM user authentiation and `alloydb.instances.connect` permission check.Optional.com.google.protobuf.ByteStringOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(MetadataExchangeRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Authentication type.setAuthTypeValue(int value) Authentication type.setOauth2Token(String value) IAM token used for both IAM user authentiation and `alloydb.instances.connect` permission check.setOauth2TokenBytes(com.google.protobuf.ByteString value) IAM token used for both IAM user authentiation and `alloydb.instances.connect` permission check.setUserAgent(String value) Optional.setUserAgentBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MetadataExchangeRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<MetadataExchangeRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<MetadataExchangeRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MetadataExchangeRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MetadataExchangeRequest.Builder>
-
mergeFrom
public MetadataExchangeRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MetadataExchangeRequest.Builder>- Throws:
IOException
-
getUserAgent
Optional. Connector information.
string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUserAgentin interfaceMetadataExchangeRequestOrBuilder- Returns:
- The userAgent.
-
getUserAgentBytes
public com.google.protobuf.ByteString getUserAgentBytes()Optional. Connector information.
string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUserAgentBytesin interfaceMetadataExchangeRequestOrBuilder- Returns:
- The bytes for userAgent.
-
setUserAgent
Optional. Connector information.
string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The userAgent to set.- Returns:
- This builder for chaining.
-
clearUserAgent
Optional. Connector information.
string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setUserAgentBytes
Optional. Connector information.
string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for userAgent to set.- Returns:
- This builder for chaining.
-
getAuthTypeValue
public int getAuthTypeValue()Authentication type.
.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2;- Specified by:
getAuthTypeValuein interfaceMetadataExchangeRequestOrBuilder- Returns:
- The enum numeric value on the wire for authType.
-
setAuthTypeValue
Authentication type.
.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2;- Parameters:
value- The enum numeric value on the wire for authType to set.- Returns:
- This builder for chaining.
-
getAuthType
Authentication type.
.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2;- Specified by:
getAuthTypein interfaceMetadataExchangeRequestOrBuilder- Returns:
- The authType.
-
setAuthType
Authentication type.
.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2;- Parameters:
value- The authType to set.- Returns:
- This builder for chaining.
-
clearAuthType
Authentication type.
.google.cloud.alloydb.connectors.v1beta.MetadataExchangeRequest.AuthType auth_type = 2;- Returns:
- This builder for chaining.
-
getOauth2Token
IAM token used for both IAM user authentiation and `alloydb.instances.connect` permission check.
string oauth2_token = 3;- Specified by:
getOauth2Tokenin interfaceMetadataExchangeRequestOrBuilder- Returns:
- The oauth2Token.
-
getOauth2TokenBytes
public com.google.protobuf.ByteString getOauth2TokenBytes()IAM token used for both IAM user authentiation and `alloydb.instances.connect` permission check.
string oauth2_token = 3;- Specified by:
getOauth2TokenBytesin interfaceMetadataExchangeRequestOrBuilder- Returns:
- The bytes for oauth2Token.
-
setOauth2Token
IAM token used for both IAM user authentiation and `alloydb.instances.connect` permission check.
string oauth2_token = 3;- Parameters:
value- The oauth2Token to set.- Returns:
- This builder for chaining.
-
clearOauth2Token
IAM token used for both IAM user authentiation and `alloydb.instances.connect` permission check.
string oauth2_token = 3;- Returns:
- This builder for chaining.
-
setOauth2TokenBytes
IAM token used for both IAM user authentiation and `alloydb.instances.connect` permission check.
string oauth2_token = 3;- Parameters:
value- The bytes for oauth2Token to set.- Returns:
- This builder for chaining.
-