Class GenerateAwsAccessTokenRequest.Builder (0.41.0)

public static final class GenerateAwsAccessTokenRequest.Builder extends GeneratedMessageV3.Builder<GenerateAwsAccessTokenRequest.Builder> implements GenerateAwsAccessTokenRequestOrBuilder

Request message for AwsClusters.GenerateAwsAccessToken method.

Protobuf type google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateAwsAccessTokenRequest build()
Returns
Type Description
GenerateAwsAccessTokenRequest

buildPartial()

public GenerateAwsAccessTokenRequest buildPartial()
Returns
Type Description
GenerateAwsAccessTokenRequest

clear()

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

clearAwsCluster()

public GenerateAwsAccessTokenRequest.Builder clearAwsCluster()

Required. The name of the AwsCluster resource to authenticate to.

AwsCluster names are formatted as projects/<project-id>/locations/<region>/awsClusters/<cluster-id>.

See Resource Names for more details on Google Cloud resource names.

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

Returns
Type Description
GenerateAwsAccessTokenRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAwsCluster()

public String getAwsCluster()

Required. The name of the AwsCluster resource to authenticate to.

AwsCluster names are formatted as projects/<project-id>/locations/<region>/awsClusters/<cluster-id>.

See Resource Names for more details on Google Cloud resource names.

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

Returns
Type Description
String

The awsCluster.

getAwsClusterBytes()

public ByteString getAwsClusterBytes()

Required. The name of the AwsCluster resource to authenticate to.

AwsCluster names are formatted as projects/<project-id>/locations/<region>/awsClusters/<cluster-id>.

See Resource Names for more details on Google Cloud resource names.

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

Returns
Type Description
ByteString

The bytes for awsCluster.

getDefaultInstanceForType()

public GenerateAwsAccessTokenRequest getDefaultInstanceForType()
Returns
Type Description
GenerateAwsAccessTokenRequest

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GenerateAwsAccessTokenRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAwsCluster(String value)

public GenerateAwsAccessTokenRequest.Builder setAwsCluster(String value)

Required. The name of the AwsCluster resource to authenticate to.

AwsCluster names are formatted as projects/<project-id>/locations/<region>/awsClusters/<cluster-id>.

See Resource Names for more details on Google Cloud resource names.

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

This builder for chaining.

setAwsClusterBytes(ByteString value)

public GenerateAwsAccessTokenRequest.Builder setAwsClusterBytes(ByteString value)

Required. The name of the AwsCluster resource to authenticate to.

AwsCluster names are formatted as projects/<project-id>/locations/<region>/awsClusters/<cluster-id>.

See Resource Names for more details on Google Cloud resource names.

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

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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