Class GenerateAttachedClusterAgentTokenResponse.Builder (0.43.0)

public static final class GenerateAttachedClusterAgentTokenResponse.Builder extends GeneratedMessageV3.Builder<GenerateAttachedClusterAgentTokenResponse.Builder> implements GenerateAttachedClusterAgentTokenResponseOrBuilder

Protobuf type google.cloud.gkemulticloud.v1.GenerateAttachedClusterAgentTokenResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateAttachedClusterAgentTokenResponse build()
Returns
Type Description
GenerateAttachedClusterAgentTokenResponse

buildPartial()

public GenerateAttachedClusterAgentTokenResponse buildPartial()
Returns
Type Description
GenerateAttachedClusterAgentTokenResponse

clear()

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

clearAccessToken()

public GenerateAttachedClusterAgentTokenResponse.Builder clearAccessToken()

string access_token = 1;

Returns
Type Description
GenerateAttachedClusterAgentTokenResponse.Builder

This builder for chaining.

clearExpiresIn()

public GenerateAttachedClusterAgentTokenResponse.Builder clearExpiresIn()

int32 expires_in = 2;

Returns
Type Description
GenerateAttachedClusterAgentTokenResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTokenType()

public GenerateAttachedClusterAgentTokenResponse.Builder clearTokenType()

string token_type = 3;

Returns
Type Description
GenerateAttachedClusterAgentTokenResponse.Builder

This builder for chaining.

clone()

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

getAccessToken()

public String getAccessToken()

string access_token = 1;

Returns
Type Description
String

The accessToken.

getAccessTokenBytes()

public ByteString getAccessTokenBytes()

string access_token = 1;

Returns
Type Description
ByteString

The bytes for accessToken.

getDefaultInstanceForType()

public GenerateAttachedClusterAgentTokenResponse getDefaultInstanceForType()
Returns
Type Description
GenerateAttachedClusterAgentTokenResponse

getDescriptorForType()

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

getExpiresIn()

public int getExpiresIn()

int32 expires_in = 2;

Returns
Type Description
int

The expiresIn.

getTokenType()

public String getTokenType()

string token_type = 3;

Returns
Type Description
String

The tokenType.

getTokenTypeBytes()

public ByteString getTokenTypeBytes()

string token_type = 3;

Returns
Type Description
ByteString

The bytes for tokenType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GenerateAttachedClusterAgentTokenResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAccessToken(String value)

public GenerateAttachedClusterAgentTokenResponse.Builder setAccessToken(String value)

string access_token = 1;

Parameter
Name Description
value String

The accessToken to set.

Returns
Type Description
GenerateAttachedClusterAgentTokenResponse.Builder

This builder for chaining.

setAccessTokenBytes(ByteString value)

public GenerateAttachedClusterAgentTokenResponse.Builder setAccessTokenBytes(ByteString value)

string access_token = 1;

Parameter
Name Description
value ByteString

The bytes for accessToken to set.

Returns
Type Description
GenerateAttachedClusterAgentTokenResponse.Builder

This builder for chaining.

setExpiresIn(int value)

public GenerateAttachedClusterAgentTokenResponse.Builder setExpiresIn(int value)

int32 expires_in = 2;

Parameter
Name Description
value int

The expiresIn to set.

Returns
Type Description
GenerateAttachedClusterAgentTokenResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTokenType(String value)

public GenerateAttachedClusterAgentTokenResponse.Builder setTokenType(String value)

string token_type = 3;

Parameter
Name Description
value String

The tokenType to set.

Returns
Type Description
GenerateAttachedClusterAgentTokenResponse.Builder

This builder for chaining.

setTokenTypeBytes(ByteString value)

public GenerateAttachedClusterAgentTokenResponse.Builder setTokenTypeBytes(ByteString value)

string token_type = 3;

Parameter
Name Description
value ByteString

The bytes for tokenType to set.

Returns
Type Description
GenerateAttachedClusterAgentTokenResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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