Class GenerateAwsClusterAgentTokenRequest.Builder (0.43.0)

public static final class GenerateAwsClusterAgentTokenRequest.Builder extends GeneratedMessageV3.Builder<GenerateAwsClusterAgentTokenRequest.Builder> implements GenerateAwsClusterAgentTokenRequestOrBuilder

Protobuf type google.cloud.gkemulticloud.v1.GenerateAwsClusterAgentTokenRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateAwsClusterAgentTokenRequest build()
Returns
Type Description
GenerateAwsClusterAgentTokenRequest

buildPartial()

public GenerateAwsClusterAgentTokenRequest buildPartial()
Returns
Type Description
GenerateAwsClusterAgentTokenRequest

clear()

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

clearAudience()

public GenerateAwsClusterAgentTokenRequest.Builder clearAudience()

Optional.

string audience = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

clearAwsCluster()

public GenerateAwsClusterAgentTokenRequest.Builder clearAwsCluster()

Required.

string aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGrantType()

public GenerateAwsClusterAgentTokenRequest.Builder clearGrantType()

Optional.

string grant_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

clearNodePoolId()

public GenerateAwsClusterAgentTokenRequest.Builder clearNodePoolId()

Optional.

string node_pool_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOptions()

public GenerateAwsClusterAgentTokenRequest.Builder clearOptions()

Optional.

string options = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

clearRequestedTokenType()

public GenerateAwsClusterAgentTokenRequest.Builder clearRequestedTokenType()

Optional.

string requested_token_type = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

clearScope()

public GenerateAwsClusterAgentTokenRequest.Builder clearScope()

Optional.

string scope = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

clearSubjectToken()

public GenerateAwsClusterAgentTokenRequest.Builder clearSubjectToken()

Required.

string subject_token = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

clearSubjectTokenType()

public GenerateAwsClusterAgentTokenRequest.Builder clearSubjectTokenType()

Required.

string subject_token_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

clearVersion()

public GenerateAwsClusterAgentTokenRequest.Builder clearVersion()

Required.

string version = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

clone()

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

getAudience()

public String getAudience()

Optional.

string audience = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The audience.

getAudienceBytes()

public ByteString getAudienceBytes()

Optional.

string audience = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for audience.

getAwsCluster()

public String getAwsCluster()

Required.

string aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The awsCluster.

getAwsClusterBytes()

public ByteString getAwsClusterBytes()

Required.

string aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for awsCluster.

getDefaultInstanceForType()

public GenerateAwsClusterAgentTokenRequest getDefaultInstanceForType()
Returns
Type Description
GenerateAwsClusterAgentTokenRequest

getDescriptorForType()

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

getGrantType()

public String getGrantType()

Optional.

string grant_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The grantType.

getGrantTypeBytes()

public ByteString getGrantTypeBytes()

Optional.

string grant_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for grantType.

getNodePoolId()

public String getNodePoolId()

Optional.

string node_pool_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The nodePoolId.

getNodePoolIdBytes()

public ByteString getNodePoolIdBytes()

Optional.

string node_pool_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for nodePoolId.

getOptions()

public String getOptions()

Optional.

string options = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The options.

getOptionsBytes()

public ByteString getOptionsBytes()

Optional.

string options = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for options.

getRequestedTokenType()

public String getRequestedTokenType()

Optional.

string requested_token_type = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The requestedTokenType.

getRequestedTokenTypeBytes()

public ByteString getRequestedTokenTypeBytes()

Optional.

string requested_token_type = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for requestedTokenType.

getScope()

public String getScope()

Optional.

string scope = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The scope.

getScopeBytes()

public ByteString getScopeBytes()

Optional.

string scope = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for scope.

getSubjectToken()

public String getSubjectToken()

Required.

string subject_token = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The subjectToken.

getSubjectTokenBytes()

public ByteString getSubjectTokenBytes()

Required.

string subject_token = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for subjectToken.

getSubjectTokenType()

public String getSubjectTokenType()

Required.

string subject_token_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The subjectTokenType.

getSubjectTokenTypeBytes()

public ByteString getSubjectTokenTypeBytes()

Required.

string subject_token_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for subjectTokenType.

getVersion()

public String getVersion()

Required.

string version = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Required.

string version = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for version.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GenerateAwsClusterAgentTokenRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAudience(String value)

public GenerateAwsClusterAgentTokenRequest.Builder setAudience(String value)

Optional.

string audience = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The audience to set.

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

setAudienceBytes(ByteString value)

public GenerateAwsClusterAgentTokenRequest.Builder setAudienceBytes(ByteString value)

Optional.

string audience = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for audience to set.

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

setAwsCluster(String value)

public GenerateAwsClusterAgentTokenRequest.Builder setAwsCluster(String value)

Required.

string aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The awsCluster to set.

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

setAwsClusterBytes(ByteString value)

public GenerateAwsClusterAgentTokenRequest.Builder setAwsClusterBytes(ByteString value)

Required.

string aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for awsCluster to set.

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGrantType(String value)

public GenerateAwsClusterAgentTokenRequest.Builder setGrantType(String value)

Optional.

string grant_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The grantType to set.

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

setGrantTypeBytes(ByteString value)

public GenerateAwsClusterAgentTokenRequest.Builder setGrantTypeBytes(ByteString value)

Optional.

string grant_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for grantType to set.

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

setNodePoolId(String value)

public GenerateAwsClusterAgentTokenRequest.Builder setNodePoolId(String value)

Optional.

string node_pool_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The nodePoolId to set.

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

setNodePoolIdBytes(ByteString value)

public GenerateAwsClusterAgentTokenRequest.Builder setNodePoolIdBytes(ByteString value)

Optional.

string node_pool_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for nodePoolId to set.

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

setOptions(String value)

public GenerateAwsClusterAgentTokenRequest.Builder setOptions(String value)

Optional.

string options = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The options to set.

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

setOptionsBytes(ByteString value)

public GenerateAwsClusterAgentTokenRequest.Builder setOptionsBytes(ByteString value)

Optional.

string options = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for options to set.

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

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

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

setRequestedTokenType(String value)

public GenerateAwsClusterAgentTokenRequest.Builder setRequestedTokenType(String value)

Optional.

string requested_token_type = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The requestedTokenType to set.

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

setRequestedTokenTypeBytes(ByteString value)

public GenerateAwsClusterAgentTokenRequest.Builder setRequestedTokenTypeBytes(ByteString value)

Optional.

string requested_token_type = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for requestedTokenType to set.

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

setScope(String value)

public GenerateAwsClusterAgentTokenRequest.Builder setScope(String value)

Optional.

string scope = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The scope to set.

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

setScopeBytes(ByteString value)

public GenerateAwsClusterAgentTokenRequest.Builder setScopeBytes(ByteString value)

Optional.

string scope = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for scope to set.

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

setSubjectToken(String value)

public GenerateAwsClusterAgentTokenRequest.Builder setSubjectToken(String value)

Required.

string subject_token = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The subjectToken to set.

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

setSubjectTokenBytes(ByteString value)

public GenerateAwsClusterAgentTokenRequest.Builder setSubjectTokenBytes(ByteString value)

Required.

string subject_token = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for subjectToken to set.

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

setSubjectTokenType(String value)

public GenerateAwsClusterAgentTokenRequest.Builder setSubjectTokenType(String value)

Required.

string subject_token_type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The subjectTokenType to set.

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

setSubjectTokenTypeBytes(ByteString value)

public GenerateAwsClusterAgentTokenRequest.Builder setSubjectTokenTypeBytes(ByteString value)

Required.

string subject_token_type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for subjectTokenType to set.

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public GenerateAwsClusterAgentTokenRequest.Builder setVersion(String value)

Required.

string version = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The version to set.

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public GenerateAwsClusterAgentTokenRequest.Builder setVersionBytes(ByteString value)

Required.

string version = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
GenerateAwsClusterAgentTokenRequest.Builder

This builder for chaining.