Class GenerateAzureAccessTokenResponse.Builder (0.11.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateAzureAccessTokenResponse build()
Returns
TypeDescription
GenerateAzureAccessTokenResponse

buildPartial()

public GenerateAzureAccessTokenResponse buildPartial()
Returns
TypeDescription
GenerateAzureAccessTokenResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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

mergeFrom(GenerateAzureAccessTokenResponse other)

public GenerateAzureAccessTokenResponse.Builder mergeFrom(GenerateAzureAccessTokenResponse other)
Parameter
NameDescription
otherGenerateAzureAccessTokenResponse
Returns
TypeDescription
GenerateAzureAccessTokenResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The accessToken to set.

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

The bytes for accessToken to set.

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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