Class GenerateAwsAccessTokenRequest.Builder (0.20.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateAwsAccessTokenRequest build()
Returns
TypeDescription
GenerateAwsAccessTokenRequest

buildPartial()

public GenerateAwsAccessTokenRequest buildPartial()
Returns
TypeDescription
GenerateAwsAccessTokenRequest

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

The bytes for awsCluster.

getDefaultInstanceForType()

public GenerateAwsAccessTokenRequest getDefaultInstanceForType()
Returns
TypeDescription
GenerateAwsAccessTokenRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GenerateAwsAccessTokenRequest other)

public GenerateAwsAccessTokenRequest.Builder mergeFrom(GenerateAwsAccessTokenRequest other)
Parameter
NameDescription
otherGenerateAwsAccessTokenRequest
Returns
TypeDescription
GenerateAwsAccessTokenRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The awsCluster to set.

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

The bytes for awsCluster to set.

Returns
TypeDescription
GenerateAwsAccessTokenRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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