Class CreateAwsNodePoolRequest.Builder (0.42.0)

public static final class CreateAwsNodePoolRequest.Builder extends GeneratedMessageV3.Builder<CreateAwsNodePoolRequest.Builder> implements CreateAwsNodePoolRequestOrBuilder

Response message for AwsClusters.CreateAwsNodePool method.

Protobuf type google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateAwsNodePoolRequest build()
Returns
Type Description
CreateAwsNodePoolRequest

buildPartial()

public CreateAwsNodePoolRequest buildPartial()
Returns
Type Description
CreateAwsNodePoolRequest

clear()

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

clearAwsNodePool()

public CreateAwsNodePoolRequest.Builder clearAwsNodePool()

Required. The specification of the AwsNodePool to create.

.google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateAwsNodePoolRequest.Builder

clearAwsNodePoolId()

public CreateAwsNodePoolRequest.Builder clearAwsNodePoolId()

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

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

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

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

Returns
Type Description
CreateAwsNodePoolRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateAwsNodePoolRequest.Builder clearParent()

Required. The AwsCluster resource where this node pool will be created.

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 parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateAwsNodePoolRequest.Builder

This builder for chaining.

clearValidateOnly()

public CreateAwsNodePoolRequest.Builder clearValidateOnly()

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

bool validate_only = 4;

Returns
Type Description
CreateAwsNodePoolRequest.Builder

This builder for chaining.

clone()

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

getAwsNodePool()

public AwsNodePool getAwsNodePool()

Required. The specification of the AwsNodePool to create.

.google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AwsNodePool

The awsNodePool.

getAwsNodePoolBuilder()

public AwsNodePool.Builder getAwsNodePoolBuilder()

Required. The specification of the AwsNodePool to create.

.google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AwsNodePool.Builder

getAwsNodePoolId()

public String getAwsNodePoolId()

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

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

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

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

Returns
Type Description
String

The awsNodePoolId.

getAwsNodePoolIdBytes()

public ByteString getAwsNodePoolIdBytes()

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

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

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

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

Returns
Type Description
ByteString

The bytes for awsNodePoolId.

getAwsNodePoolOrBuilder()

public AwsNodePoolOrBuilder getAwsNodePoolOrBuilder()

Required. The specification of the AwsNodePool to create.

.google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AwsNodePoolOrBuilder

getDefaultInstanceForType()

public CreateAwsNodePoolRequest getDefaultInstanceForType()
Returns
Type Description
CreateAwsNodePoolRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The AwsCluster resource where this node pool will be created.

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 parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The AwsCluster resource where this node pool will be created.

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 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 node pool.

bool validate_only = 4;

Returns
Type Description
boolean

The validateOnly.

hasAwsNodePool()

public boolean hasAwsNodePool()

Required. The specification of the AwsNodePool to create.

.google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the awsNodePool field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAwsNodePool(AwsNodePool value)

public CreateAwsNodePoolRequest.Builder mergeAwsNodePool(AwsNodePool value)

Required. The specification of the AwsNodePool to create.

.google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AwsNodePool
Returns
Type Description
CreateAwsNodePoolRequest.Builder

mergeFrom(CreateAwsNodePoolRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAwsNodePool(AwsNodePool value)

public CreateAwsNodePoolRequest.Builder setAwsNodePool(AwsNodePool value)

Required. The specification of the AwsNodePool to create.

.google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AwsNodePool
Returns
Type Description
CreateAwsNodePoolRequest.Builder

setAwsNodePool(AwsNodePool.Builder builderForValue)

public CreateAwsNodePoolRequest.Builder setAwsNodePool(AwsNodePool.Builder builderForValue)

Required. The specification of the AwsNodePool to create.

.google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue AwsNodePool.Builder
Returns
Type Description
CreateAwsNodePoolRequest.Builder

setAwsNodePoolId(String value)

public CreateAwsNodePoolRequest.Builder setAwsNodePoolId(String value)

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

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

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

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

Parameter
Name Description
value String

The awsNodePoolId to set.

Returns
Type Description
CreateAwsNodePoolRequest.Builder

This builder for chaining.

setAwsNodePoolIdBytes(ByteString value)

public CreateAwsNodePoolRequest.Builder setAwsNodePoolIdBytes(ByteString value)

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

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

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

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

Parameter
Name Description
value ByteString

The bytes for awsNodePoolId to set.

Returns
Type Description
CreateAwsNodePoolRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateAwsNodePoolRequest.Builder setParent(String value)

Required. The AwsCluster resource where this node pool will be created.

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 parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateAwsNodePoolRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateAwsNodePoolRequest.Builder setParentBytes(ByteString value)

Required. The AwsCluster resource where this node pool will be created.

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

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

public CreateAwsNodePoolRequest.Builder setValidateOnly(boolean value)

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

bool validate_only = 4;

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
CreateAwsNodePoolRequest.Builder

This builder for chaining.