Class GenerateAttachedClusterAgentTokenResponse.Builder (0.38.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateAttachedClusterAgentTokenResponse build()
Returns
TypeDescription
GenerateAttachedClusterAgentTokenResponse

buildPartial()

public GenerateAttachedClusterAgentTokenResponse buildPartial()
Returns
TypeDescription
GenerateAttachedClusterAgentTokenResponse

clear()

public GenerateAttachedClusterAgentTokenResponse.Builder clear()
Returns
TypeDescription
GenerateAttachedClusterAgentTokenResponse.Builder
Overrides

clearAccessToken()

public GenerateAttachedClusterAgentTokenResponse.Builder clearAccessToken()

string access_token = 1;

Returns
TypeDescription
GenerateAttachedClusterAgentTokenResponse.Builder

This builder for chaining.

clearExpiresIn()

public GenerateAttachedClusterAgentTokenResponse.Builder clearExpiresIn()

int32 expires_in = 2;

Returns
TypeDescription
GenerateAttachedClusterAgentTokenResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTokenType()

public GenerateAttachedClusterAgentTokenResponse.Builder clearTokenType()

string token_type = 3;

Returns
TypeDescription
GenerateAttachedClusterAgentTokenResponse.Builder

This builder for chaining.

clone()

public GenerateAttachedClusterAgentTokenResponse.Builder clone()
Returns
TypeDescription
GenerateAttachedClusterAgentTokenResponse.Builder
Overrides

getAccessToken()

public String getAccessToken()

string access_token = 1;

Returns
TypeDescription
String

The accessToken.

getAccessTokenBytes()

public ByteString getAccessTokenBytes()

string access_token = 1;

Returns
TypeDescription
ByteString

The bytes for accessToken.

getDefaultInstanceForType()

public GenerateAttachedClusterAgentTokenResponse getDefaultInstanceForType()
Returns
TypeDescription
GenerateAttachedClusterAgentTokenResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExpiresIn()

public int getExpiresIn()

int32 expires_in = 2;

Returns
TypeDescription
int

The expiresIn.

getTokenType()

public String getTokenType()

string token_type = 3;

Returns
TypeDescription
String

The tokenType.

getTokenTypeBytes()

public ByteString getTokenTypeBytes()

string token_type = 3;

Returns
TypeDescription
ByteString

The bytes for tokenType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GenerateAttachedClusterAgentTokenResponse other)

public GenerateAttachedClusterAgentTokenResponse.Builder mergeFrom(GenerateAttachedClusterAgentTokenResponse other)
Parameter
NameDescription
otherGenerateAttachedClusterAgentTokenResponse
Returns
TypeDescription
GenerateAttachedClusterAgentTokenResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenerateAttachedClusterAgentTokenResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GenerateAttachedClusterAgentTokenResponse.Builder
Overrides

setAccessToken(String value)

public GenerateAttachedClusterAgentTokenResponse.Builder setAccessToken(String value)

string access_token = 1;

Parameter
NameDescription
valueString

The accessToken to set.

Returns
TypeDescription
GenerateAttachedClusterAgentTokenResponse.Builder

This builder for chaining.

setAccessTokenBytes(ByteString value)

public GenerateAttachedClusterAgentTokenResponse.Builder setAccessTokenBytes(ByteString value)

string access_token = 1;

Parameter
NameDescription
valueByteString

The bytes for accessToken to set.

Returns
TypeDescription
GenerateAttachedClusterAgentTokenResponse.Builder

This builder for chaining.

setExpiresIn(int value)

public GenerateAttachedClusterAgentTokenResponse.Builder setExpiresIn(int value)

int32 expires_in = 2;

Parameter
NameDescription
valueint

The expiresIn to set.

Returns
TypeDescription
GenerateAttachedClusterAgentTokenResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTokenType(String value)

public GenerateAttachedClusterAgentTokenResponse.Builder setTokenType(String value)

string token_type = 3;

Parameter
NameDescription
valueString

The tokenType to set.

Returns
TypeDescription
GenerateAttachedClusterAgentTokenResponse.Builder

This builder for chaining.

setTokenTypeBytes(ByteString value)

public GenerateAttachedClusterAgentTokenResponse.Builder setTokenTypeBytes(ByteString value)

string token_type = 3;

Parameter
NameDescription
valueByteString

The bytes for tokenType to set.

Returns
TypeDescription
GenerateAttachedClusterAgentTokenResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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