Class GenerateAwsAccessTokenResponse.Builder (0.44.0)

public static final class GenerateAwsAccessTokenResponse.Builder extends GeneratedMessageV3.Builder<GenerateAwsAccessTokenResponse.Builder> implements GenerateAwsAccessTokenResponseOrBuilder

Response message for AwsClusters.GenerateAwsAccessToken method.

Protobuf type google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GenerateAwsAccessTokenResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GenerateAwsAccessTokenResponse.Builder
Overrides

build()

public GenerateAwsAccessTokenResponse build()
Returns
Type Description
GenerateAwsAccessTokenResponse

buildPartial()

public GenerateAwsAccessTokenResponse buildPartial()
Returns
Type Description
GenerateAwsAccessTokenResponse

clear()

public GenerateAwsAccessTokenResponse.Builder clear()
Returns
Type Description
GenerateAwsAccessTokenResponse.Builder
Overrides

clearAccessToken()

public GenerateAwsAccessTokenResponse.Builder clearAccessToken()

Output only. Access token to authenticate to k8s api-server.

string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GenerateAwsAccessTokenResponse.Builder

This builder for chaining.

clearExpirationTime()

public GenerateAwsAccessTokenResponse.Builder clearExpirationTime()

Output only. Timestamp at which the token will expire.

.google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GenerateAwsAccessTokenResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public GenerateAwsAccessTokenResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GenerateAwsAccessTokenResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GenerateAwsAccessTokenResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GenerateAwsAccessTokenResponse.Builder
Overrides

clone()

public GenerateAwsAccessTokenResponse.Builder clone()
Returns
Type Description
GenerateAwsAccessTokenResponse.Builder
Overrides

getAccessToken()

public String getAccessToken()

Output only. Access token to authenticate to k8s api-server.

string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The accessToken.

getAccessTokenBytes()

public ByteString getAccessTokenBytes()

Output only. Access token to authenticate to k8s api-server.

string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for accessToken.

getDefaultInstanceForType()

public GenerateAwsAccessTokenResponse getDefaultInstanceForType()
Returns
Type Description
GenerateAwsAccessTokenResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExpirationTime()

public Timestamp getExpirationTime()

Output only. Timestamp at which the token will expire.

.google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The expirationTime.

getExpirationTimeBuilder()

public Timestamp.Builder getExpirationTimeBuilder()

Output only. Timestamp at which the token will expire.

.google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getExpirationTimeOrBuilder()

public TimestampOrBuilder getExpirationTimeOrBuilder()

Output only. Timestamp at which the token will expire.

.google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasExpirationTime()

public boolean hasExpirationTime()

Output only. Timestamp at which the token will expire.

.google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the expirationTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExpirationTime(Timestamp value)

public GenerateAwsAccessTokenResponse.Builder mergeExpirationTime(Timestamp value)

Output only. Timestamp at which the token will expire.

.google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
GenerateAwsAccessTokenResponse.Builder

mergeFrom(GenerateAwsAccessTokenResponse other)

public GenerateAwsAccessTokenResponse.Builder mergeFrom(GenerateAwsAccessTokenResponse other)
Parameter
Name Description
other GenerateAwsAccessTokenResponse
Returns
Type Description
GenerateAwsAccessTokenResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GenerateAwsAccessTokenResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateAwsAccessTokenResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GenerateAwsAccessTokenResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GenerateAwsAccessTokenResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenerateAwsAccessTokenResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerateAwsAccessTokenResponse.Builder
Overrides

setAccessToken(String value)

public GenerateAwsAccessTokenResponse.Builder setAccessToken(String value)

Output only. Access token to authenticate to k8s api-server.

string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The accessToken to set.

Returns
Type Description
GenerateAwsAccessTokenResponse.Builder

This builder for chaining.

setAccessTokenBytes(ByteString value)

public GenerateAwsAccessTokenResponse.Builder setAccessTokenBytes(ByteString value)

Output only. Access token to authenticate to k8s api-server.

string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for accessToken to set.

Returns
Type Description
GenerateAwsAccessTokenResponse.Builder

This builder for chaining.

setExpirationTime(Timestamp value)

public GenerateAwsAccessTokenResponse.Builder setExpirationTime(Timestamp value)

Output only. Timestamp at which the token will expire.

.google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
GenerateAwsAccessTokenResponse.Builder

setExpirationTime(Timestamp.Builder builderForValue)

public GenerateAwsAccessTokenResponse.Builder setExpirationTime(Timestamp.Builder builderForValue)

Output only. Timestamp at which the token will expire.

.google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
GenerateAwsAccessTokenResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GenerateAwsAccessTokenResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GenerateAwsAccessTokenResponse.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GenerateAwsAccessTokenResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GenerateAwsAccessTokenResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GenerateAwsAccessTokenResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerateAwsAccessTokenResponse.Builder
Overrides