Class GenerateAzureAccessTokenResponse.Builder (0.50.0)

public static final class GenerateAzureAccessTokenResponse.Builder extends GeneratedMessageV3.Builder<GenerateAzureAccessTokenResponse.Builder> implements GenerateAzureAccessTokenResponseOrBuilder

Response message for AzureClusters.GenerateAzureAccessToken method.

Protobuf type google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateAzureAccessTokenResponse build()
Returns
Type Description
GenerateAzureAccessTokenResponse

buildPartial()

public GenerateAzureAccessTokenResponse buildPartial()
Returns
Type Description
GenerateAzureAccessTokenResponse

clear()

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

clearAccessToken()

public GenerateAzureAccessTokenResponse.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
GenerateAzureAccessTokenResponse.Builder

This builder for chaining.

clearExpirationTime()

public GenerateAzureAccessTokenResponse.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
GenerateAzureAccessTokenResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public GenerateAzureAccessTokenResponse.Builder clone()
Returns
Type Description
GenerateAzureAccessTokenResponse.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 GenerateAzureAccessTokenResponse getDefaultInstanceForType()
Returns
Type Description
GenerateAzureAccessTokenResponse

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 GenerateAzureAccessTokenResponse.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
GenerateAzureAccessTokenResponse.Builder

mergeFrom(GenerateAzureAccessTokenResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAccessToken(String value)

public GenerateAzureAccessTokenResponse.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
GenerateAzureAccessTokenResponse.Builder

This builder for chaining.

setAccessTokenBytes(ByteString value)

public GenerateAzureAccessTokenResponse.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
GenerateAzureAccessTokenResponse.Builder

This builder for chaining.

setExpirationTime(Timestamp value)

public GenerateAzureAccessTokenResponse.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
GenerateAzureAccessTokenResponse.Builder

setExpirationTime(Timestamp.Builder builderForValue)

public GenerateAzureAccessTokenResponse.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
GenerateAzureAccessTokenResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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