Class GenerateAwsAccessTokenResponse.Builder (0.8.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GenerateAwsAccessTokenResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GenerateAwsAccessTokenResponse.Builder
Overrides

build()

public GenerateAwsAccessTokenResponse build()
Returns
TypeDescription
GenerateAwsAccessTokenResponse

buildPartial()

public GenerateAwsAccessTokenResponse buildPartial()
Returns
TypeDescription
GenerateAwsAccessTokenResponse

clear()

public GenerateAwsAccessTokenResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
GenerateAwsAccessTokenResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public GenerateAwsAccessTokenResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GenerateAwsAccessTokenResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GenerateAwsAccessTokenResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GenerateAwsAccessTokenResponse.Builder
Overrides

clone()

public GenerateAwsAccessTokenResponse.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for accessToken.

getDefaultInstanceForType()

public GenerateAwsAccessTokenResponse getDefaultInstanceForType()
Returns
TypeDescription
GenerateAwsAccessTokenResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the expirationTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
GenerateAwsAccessTokenResponse.Builder

mergeFrom(GenerateAwsAccessTokenResponse other)

public GenerateAwsAccessTokenResponse.Builder mergeFrom(GenerateAwsAccessTokenResponse other)
Parameter
NameDescription
otherGenerateAwsAccessTokenResponse
Returns
TypeDescription
GenerateAwsAccessTokenResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GenerateAwsAccessTokenResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GenerateAwsAccessTokenResponse.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GenerateAwsAccessTokenResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GenerateAwsAccessTokenResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenerateAwsAccessTokenResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The accessToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for accessToken to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
GenerateAwsAccessTokenResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GenerateAwsAccessTokenResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GenerateAwsAccessTokenResponse.Builder
Overrides

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

public GenerateAwsAccessTokenResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GenerateAwsAccessTokenResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GenerateAwsAccessTokenResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GenerateAwsAccessTokenResponse.Builder
Overrides