Class CreateAwsClusterRequest.Builder (0.42.0)

public static final class CreateAwsClusterRequest.Builder extends GeneratedMessageV3.Builder<CreateAwsClusterRequest.Builder> implements CreateAwsClusterRequestOrBuilder

Request message for AwsClusters.CreateAwsCluster method.

Protobuf type google.cloud.gkemulticloud.v1.CreateAwsClusterRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateAwsClusterRequest build()
Returns
Type Description
CreateAwsClusterRequest

buildPartial()

public CreateAwsClusterRequest buildPartial()
Returns
Type Description
CreateAwsClusterRequest

clear()

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

clearAwsCluster()

public CreateAwsClusterRequest.Builder clearAwsCluster()

Required. The specification of the AwsCluster to create.

.google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateAwsClusterRequest.Builder

clearAwsClusterId()

public CreateAwsClusterRequest.Builder clearAwsClusterId()

Required. A client provided ID the resource. Must be unique within the parent resource.

The provided ID will be part of the AwsCluster resource name formatted as projects/<project-id>/locations/<region>/awsClusters/<cluster-id>.

Valid characters are /a-z-/. Cannot be longer than 63 characters.

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

Returns
Type Description
CreateAwsClusterRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateAwsClusterRequest.Builder clearParent()

Required. The parent location where this AwsCluster resource will be created.

Location names are formatted as projects/<project-id>/locations/<region>.

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

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

Returns
Type Description
CreateAwsClusterRequest.Builder

This builder for chaining.

clearValidateOnly()

public CreateAwsClusterRequest.Builder clearValidateOnly()

If set, only validate the request, but do not actually create the cluster.

bool validate_only = 4;

Returns
Type Description
CreateAwsClusterRequest.Builder

This builder for chaining.

clone()

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

getAwsCluster()

public AwsCluster getAwsCluster()

Required. The specification of the AwsCluster to create.

.google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AwsCluster

The awsCluster.

getAwsClusterBuilder()

public AwsCluster.Builder getAwsClusterBuilder()

Required. The specification of the AwsCluster to create.

.google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AwsCluster.Builder

getAwsClusterId()

public String getAwsClusterId()

Required. A client provided ID the resource. Must be unique within the parent resource.

The provided ID will be part of the AwsCluster resource name formatted as projects/<project-id>/locations/<region>/awsClusters/<cluster-id>.

Valid characters are /a-z-/. Cannot be longer than 63 characters.

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

Returns
Type Description
String

The awsClusterId.

getAwsClusterIdBytes()

public ByteString getAwsClusterIdBytes()

Required. A client provided ID the resource. Must be unique within the parent resource.

The provided ID will be part of the AwsCluster resource name formatted as projects/<project-id>/locations/<region>/awsClusters/<cluster-id>.

Valid characters are /a-z-/. Cannot be longer than 63 characters.

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

Returns
Type Description
ByteString

The bytes for awsClusterId.

getAwsClusterOrBuilder()

public AwsClusterOrBuilder getAwsClusterOrBuilder()

Required. The specification of the AwsCluster to create.

.google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AwsClusterOrBuilder

getDefaultInstanceForType()

public CreateAwsClusterRequest getDefaultInstanceForType()
Returns
Type Description
CreateAwsClusterRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent location where this AwsCluster resource will be created.

Location names are formatted as projects/<project-id>/locations/<region>.

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

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent location where this AwsCluster resource will be created.

Location names are formatted as projects/<project-id>/locations/<region>.

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

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

Returns
Type Description
ByteString

The bytes for parent.

getValidateOnly()

public boolean getValidateOnly()

If set, only validate the request, but do not actually create the cluster.

bool validate_only = 4;

Returns
Type Description
boolean

The validateOnly.

hasAwsCluster()

public boolean hasAwsCluster()

Required. The specification of the AwsCluster to create.

.google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the awsCluster field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAwsCluster(AwsCluster value)

public CreateAwsClusterRequest.Builder mergeAwsCluster(AwsCluster value)

Required. The specification of the AwsCluster to create.

.google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AwsCluster
Returns
Type Description
CreateAwsClusterRequest.Builder

mergeFrom(CreateAwsClusterRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAwsCluster(AwsCluster value)

public CreateAwsClusterRequest.Builder setAwsCluster(AwsCluster value)

Required. The specification of the AwsCluster to create.

.google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AwsCluster
Returns
Type Description
CreateAwsClusterRequest.Builder

setAwsCluster(AwsCluster.Builder builderForValue)

public CreateAwsClusterRequest.Builder setAwsCluster(AwsCluster.Builder builderForValue)

Required. The specification of the AwsCluster to create.

.google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue AwsCluster.Builder
Returns
Type Description
CreateAwsClusterRequest.Builder

setAwsClusterId(String value)

public CreateAwsClusterRequest.Builder setAwsClusterId(String value)

Required. A client provided ID the resource. Must be unique within the parent resource.

The provided ID will be part of the AwsCluster resource name formatted as projects/<project-id>/locations/<region>/awsClusters/<cluster-id>.

Valid characters are /a-z-/. Cannot be longer than 63 characters.

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

Parameter
Name Description
value String

The awsClusterId to set.

Returns
Type Description
CreateAwsClusterRequest.Builder

This builder for chaining.

setAwsClusterIdBytes(ByteString value)

public CreateAwsClusterRequest.Builder setAwsClusterIdBytes(ByteString value)

Required. A client provided ID the resource. Must be unique within the parent resource.

The provided ID will be part of the AwsCluster resource name formatted as projects/<project-id>/locations/<region>/awsClusters/<cluster-id>.

Valid characters are /a-z-/. Cannot be longer than 63 characters.

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

Parameter
Name Description
value ByteString

The bytes for awsClusterId to set.

Returns
Type Description
CreateAwsClusterRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateAwsClusterRequest.Builder setParent(String value)

Required. The parent location where this AwsCluster resource will be created.

Location names are formatted as projects/<project-id>/locations/<region>.

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

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateAwsClusterRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateAwsClusterRequest.Builder setParentBytes(ByteString value)

Required. The parent location where this AwsCluster resource will be created.

Location names are formatted as projects/<project-id>/locations/<region>.

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

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateAwsClusterRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

public CreateAwsClusterRequest.Builder setValidateOnly(boolean value)

If set, only validate the request, but do not actually create the cluster.

bool validate_only = 4;

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
CreateAwsClusterRequest.Builder

This builder for chaining.