Class CreateAttachedClusterRequest.Builder (0.84.0)

public static final class CreateAttachedClusterRequest.Builder extends GeneratedMessage.Builder<CreateAttachedClusterRequest.Builder> implements CreateAttachedClusterRequestOrBuilder

Request message for AttachedClusters.CreateAttachedCluster method.

Protobuf type google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateAttachedClusterRequest build()
Returns
Type Description
CreateAttachedClusterRequest

buildPartial()

public CreateAttachedClusterRequest buildPartial()
Returns
Type Description
CreateAttachedClusterRequest

clear()

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

clearAttachedCluster()

public CreateAttachedClusterRequest.Builder clearAttachedCluster()

Required. The specification of the AttachedCluster to create.

.google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateAttachedClusterRequest.Builder

clearAttachedClusterId()

public CreateAttachedClusterRequest.Builder clearAttachedClusterId()

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

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

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

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

Returns
Type Description
CreateAttachedClusterRequest.Builder

This builder for chaining.

clearParent()

public CreateAttachedClusterRequest.Builder clearParent()

Required. The parent location where this AttachedCluster 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
CreateAttachedClusterRequest.Builder

This builder for chaining.

clearValidateOnly()

public CreateAttachedClusterRequest.Builder clearValidateOnly()

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

bool validate_only = 4;

Returns
Type Description
CreateAttachedClusterRequest.Builder

This builder for chaining.

getAttachedCluster()

public AttachedCluster getAttachedCluster()

Required. The specification of the AttachedCluster to create.

.google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttachedCluster

The attachedCluster.

getAttachedClusterBuilder()

public AttachedCluster.Builder getAttachedClusterBuilder()

Required. The specification of the AttachedCluster to create.

.google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttachedCluster.Builder

getAttachedClusterId()

public String getAttachedClusterId()

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

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

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

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

Returns
Type Description
String

The attachedClusterId.

getAttachedClusterIdBytes()

public ByteString getAttachedClusterIdBytes()

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

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

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

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

Returns
Type Description
ByteString

The bytes for attachedClusterId.

getAttachedClusterOrBuilder()

public AttachedClusterOrBuilder getAttachedClusterOrBuilder()

Required. The specification of the AttachedCluster to create.

.google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttachedClusterOrBuilder

getDefaultInstanceForType()

public CreateAttachedClusterRequest getDefaultInstanceForType()
Returns
Type Description
CreateAttachedClusterRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent location where this AttachedCluster 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 AttachedCluster 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.

hasAttachedCluster()

public boolean hasAttachedCluster()

Required. The specification of the AttachedCluster to create.

.google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the attachedCluster field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAttachedCluster(AttachedCluster value)

public CreateAttachedClusterRequest.Builder mergeAttachedCluster(AttachedCluster value)

Required. The specification of the AttachedCluster to create.

.google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AttachedCluster
Returns
Type Description
CreateAttachedClusterRequest.Builder

mergeFrom(CreateAttachedClusterRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAttachedCluster(AttachedCluster value)

public CreateAttachedClusterRequest.Builder setAttachedCluster(AttachedCluster value)

Required. The specification of the AttachedCluster to create.

.google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AttachedCluster
Returns
Type Description
CreateAttachedClusterRequest.Builder

setAttachedCluster(AttachedCluster.Builder builderForValue)

public CreateAttachedClusterRequest.Builder setAttachedCluster(AttachedCluster.Builder builderForValue)

Required. The specification of the AttachedCluster to create.

.google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue AttachedCluster.Builder
Returns
Type Description
CreateAttachedClusterRequest.Builder

setAttachedClusterId(String value)

public CreateAttachedClusterRequest.Builder setAttachedClusterId(String value)

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

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

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

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

Parameter
Name Description
value String

The attachedClusterId to set.

Returns
Type Description
CreateAttachedClusterRequest.Builder

This builder for chaining.

setAttachedClusterIdBytes(ByteString value)

public CreateAttachedClusterRequest.Builder setAttachedClusterIdBytes(ByteString value)

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

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

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

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

Parameter
Name Description
value ByteString

The bytes for attachedClusterId to set.

Returns
Type Description
CreateAttachedClusterRequest.Builder

This builder for chaining.

setParent(String value)

public CreateAttachedClusterRequest.Builder setParent(String value)

Required. The parent location where this AttachedCluster 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
CreateAttachedClusterRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateAttachedClusterRequest.Builder setParentBytes(ByteString value)

Required. The parent location where this AttachedCluster 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
CreateAttachedClusterRequest.Builder

This builder for chaining.

setValidateOnly(boolean value)

public CreateAttachedClusterRequest.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
CreateAttachedClusterRequest.Builder

This builder for chaining.