- 0.61.0 (latest)
- 0.60.0
- 0.59.0
- 0.58.0
- 0.56.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.48.0
- 0.46.0
- 0.45.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.2.0
- 0.1.0
public static final class MetadataExchangeRequest.Builder extends GeneratedMessage.Builder<MetadataExchangeRequest.Builder> implements MetadataExchangeRequestOrBuilderMessage 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.v1.MetadataExchangeRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > MetadataExchangeRequest.BuilderImplements
MetadataExchangeRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public MetadataExchangeRequest build()| Returns | |
|---|---|
| Type | Description |
MetadataExchangeRequest |
|
buildPartial()
public MetadataExchangeRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
MetadataExchangeRequest |
|
clear()
public MetadataExchangeRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
MetadataExchangeRequest.Builder |
|
clearAuthType()
public MetadataExchangeRequest.Builder clearAuthType()Authentication type.
.google.cloud.alloydb.connectors.v1.MetadataExchangeRequest.AuthType auth_type = 2;
| Returns | |
|---|---|
| Type | Description |
MetadataExchangeRequest.Builder |
This builder for chaining. |
clearOauth2Token()
public MetadataExchangeRequest.Builder clearOauth2Token() IAM token used for both IAM user authentiation and
alloydb.instances.connect permission check.
string oauth2_token = 3;
| Returns | |
|---|---|
| Type | Description |
MetadataExchangeRequest.Builder |
This builder for chaining. |
clearUserAgent()
public MetadataExchangeRequest.Builder clearUserAgent()Optional. Connector information.
string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
MetadataExchangeRequest.Builder |
This builder for chaining. |
getAuthType()
public MetadataExchangeRequest.AuthType getAuthType()Authentication type.
.google.cloud.alloydb.connectors.v1.MetadataExchangeRequest.AuthType auth_type = 2;
| Returns | |
|---|---|
| Type | Description |
MetadataExchangeRequest.AuthType |
The authType. |
getAuthTypeValue()
public int getAuthTypeValue()Authentication type.
.google.cloud.alloydb.connectors.v1.MetadataExchangeRequest.AuthType auth_type = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for authType. |
getDefaultInstanceForType()
public MetadataExchangeRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
MetadataExchangeRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getOauth2Token()
public String getOauth2Token() IAM token used for both IAM user authentiation and
alloydb.instances.connect permission check.
string oauth2_token = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The oauth2Token. |
getOauth2TokenBytes()
public ByteString getOauth2TokenBytes() IAM token used for both IAM user authentiation and
alloydb.instances.connect permission check.
string oauth2_token = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for oauth2Token. |
getUserAgent()
public String getUserAgent()Optional. Connector information.
string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The userAgent. |
getUserAgentBytes()
public ByteString getUserAgentBytes()Optional. Connector information.
string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for userAgent. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(MetadataExchangeRequest other)
public MetadataExchangeRequest.Builder mergeFrom(MetadataExchangeRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
MetadataExchangeRequest |
| Returns | |
|---|---|
| Type | Description |
MetadataExchangeRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MetadataExchangeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
MetadataExchangeRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public MetadataExchangeRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
MetadataExchangeRequest.Builder |
|
setAuthType(MetadataExchangeRequest.AuthType value)
public MetadataExchangeRequest.Builder setAuthType(MetadataExchangeRequest.AuthType value)Authentication type.
.google.cloud.alloydb.connectors.v1.MetadataExchangeRequest.AuthType auth_type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
MetadataExchangeRequest.AuthTypeThe authType to set. |
| Returns | |
|---|---|
| Type | Description |
MetadataExchangeRequest.Builder |
This builder for chaining. |
setAuthTypeValue(int value)
public MetadataExchangeRequest.Builder setAuthTypeValue(int value)Authentication type.
.google.cloud.alloydb.connectors.v1.MetadataExchangeRequest.AuthType auth_type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for authType to set. |
| Returns | |
|---|---|
| Type | Description |
MetadataExchangeRequest.Builder |
This builder for chaining. |
setOauth2Token(String value)
public MetadataExchangeRequest.Builder setOauth2Token(String value) IAM token used for both IAM user authentiation and
alloydb.instances.connect permission check.
string oauth2_token = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe oauth2Token to set. |
| Returns | |
|---|---|
| Type | Description |
MetadataExchangeRequest.Builder |
This builder for chaining. |
setOauth2TokenBytes(ByteString value)
public MetadataExchangeRequest.Builder setOauth2TokenBytes(ByteString value) IAM token used for both IAM user authentiation and
alloydb.instances.connect permission check.
string oauth2_token = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for oauth2Token to set. |
| Returns | |
|---|---|
| Type | Description |
MetadataExchangeRequest.Builder |
This builder for chaining. |
setUserAgent(String value)
public MetadataExchangeRequest.Builder setUserAgent(String value)Optional. Connector information.
string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe userAgent to set. |
| Returns | |
|---|---|
| Type | Description |
MetadataExchangeRequest.Builder |
This builder for chaining. |
setUserAgentBytes(ByteString value)
public MetadataExchangeRequest.Builder setUserAgentBytes(ByteString value)Optional. Connector information.
string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for userAgent to set. |
| Returns | |
|---|---|
| Type | Description |
MetadataExchangeRequest.Builder |
This builder for chaining. |