Class CreateAttachedClusterRequest.Builder (0.38.0)

public static final class CreateAttachedClusterRequest.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateAttachedClusterRequest build()
Returns
TypeDescription
CreateAttachedClusterRequest

buildPartial()

public CreateAttachedClusterRequest buildPartial()
Returns
TypeDescription
CreateAttachedClusterRequest

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

This builder for chaining.

clone()

public CreateAttachedClusterRequest.Builder clone()
Returns
TypeDescription
CreateAttachedClusterRequest.Builder
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AttachedClusterOrBuilder

getDefaultInstanceForType()

public CreateAttachedClusterRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateAttachedClusterRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the attachedCluster field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAttachedCluster
Returns
TypeDescription
CreateAttachedClusterRequest.Builder

mergeFrom(CreateAttachedClusterRequest other)

public CreateAttachedClusterRequest.Builder mergeFrom(CreateAttachedClusterRequest other)
Parameter
NameDescription
otherCreateAttachedClusterRequest
Returns
TypeDescription
CreateAttachedClusterRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The attachedClusterId to set.

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

The bytes for attachedClusterId to set.

Returns
TypeDescription
CreateAttachedClusterRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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
NameDescription
valueString

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
CreateAttachedClusterRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

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
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
CreateAttachedClusterRequest.Builder

This builder for chaining.