Class ImportAttachedClusterRequest.Builder (0.26.0)

public static final class ImportAttachedClusterRequest.Builder extends GeneratedMessageV3.Builder<ImportAttachedClusterRequest.Builder> implements ImportAttachedClusterRequestOrBuilder

Request message for AttachedClusters.ImportAttachedCluster method.

Protobuf type google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportAttachedClusterRequest build()
Returns
TypeDescription
ImportAttachedClusterRequest

buildPartial()

public ImportAttachedClusterRequest buildPartial()
Returns
TypeDescription
ImportAttachedClusterRequest

clear()

public ImportAttachedClusterRequest.Builder clear()
Returns
TypeDescription
ImportAttachedClusterRequest.Builder
Overrides

clearDistribution()

public ImportAttachedClusterRequest.Builder clearDistribution()

Required. The Kubernetes distribution of the underlying attached cluster.

Supported values: ["eks", "aks"].

string distribution = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ImportAttachedClusterRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFleetMembership()

public ImportAttachedClusterRequest.Builder clearFleetMembership()

Required. The name of the fleet membership resource to import.

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

Returns
TypeDescription
ImportAttachedClusterRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

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

This builder for chaining.

clearPlatformVersion()

public ImportAttachedClusterRequest.Builder clearPlatformVersion()

Required. The platform version for the cluster (e.g. 1.19.0-gke.1000).

You can list all supported versions on a given Google Cloud region by calling GetAttachedServerConfig.

string platform_version = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ImportAttachedClusterRequest.Builder

This builder for chaining.

clearValidateOnly()

public ImportAttachedClusterRequest.Builder clearValidateOnly()

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

bool validate_only = 2;

Returns
TypeDescription
ImportAttachedClusterRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ImportAttachedClusterRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportAttachedClusterRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDistribution()

public String getDistribution()

Required. The Kubernetes distribution of the underlying attached cluster.

Supported values: ["eks", "aks"].

string distribution = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The distribution.

getDistributionBytes()

public ByteString getDistributionBytes()

Required. The Kubernetes distribution of the underlying attached cluster.

Supported values: ["eks", "aks"].

string distribution = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for distribution.

getFleetMembership()

public String getFleetMembership()

Required. The name of the fleet membership resource to import.

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

Returns
TypeDescription
String

The fleetMembership.

getFleetMembershipBytes()

public ByteString getFleetMembershipBytes()

Required. The name of the fleet membership resource to import.

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

Returns
TypeDescription
ByteString

The bytes for fleetMembership.

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.

getPlatformVersion()

public String getPlatformVersion()

Required. The platform version for the cluster (e.g. 1.19.0-gke.1000).

You can list all supported versions on a given Google Cloud region by calling GetAttachedServerConfig.

string platform_version = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The platformVersion.

getPlatformVersionBytes()

public ByteString getPlatformVersionBytes()

Required. The platform version for the cluster (e.g. 1.19.0-gke.1000).

You can list all supported versions on a given Google Cloud region by calling GetAttachedServerConfig.

string platform_version = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for platformVersion.

getValidateOnly()

public boolean getValidateOnly()

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

bool validate_only = 2;

Returns
TypeDescription
boolean

The validateOnly.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImportAttachedClusterRequest other)

public ImportAttachedClusterRequest.Builder mergeFrom(ImportAttachedClusterRequest other)
Parameter
NameDescription
otherImportAttachedClusterRequest
Returns
TypeDescription
ImportAttachedClusterRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportAttachedClusterRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportAttachedClusterRequest.Builder
Overrides

setDistribution(String value)

public ImportAttachedClusterRequest.Builder setDistribution(String value)

Required. The Kubernetes distribution of the underlying attached cluster.

Supported values: ["eks", "aks"].

string distribution = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The distribution to set.

Returns
TypeDescription
ImportAttachedClusterRequest.Builder

This builder for chaining.

setDistributionBytes(ByteString value)

public ImportAttachedClusterRequest.Builder setDistributionBytes(ByteString value)

Required. The Kubernetes distribution of the underlying attached cluster.

Supported values: ["eks", "aks"].

string distribution = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for distribution to set.

Returns
TypeDescription
ImportAttachedClusterRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFleetMembership(String value)

public ImportAttachedClusterRequest.Builder setFleetMembership(String value)

Required. The name of the fleet membership resource to import.

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

Parameter
NameDescription
valueString

The fleetMembership to set.

Returns
TypeDescription
ImportAttachedClusterRequest.Builder

This builder for chaining.

setFleetMembershipBytes(ByteString value)

public ImportAttachedClusterRequest.Builder setFleetMembershipBytes(ByteString value)

Required. The name of the fleet membership resource to import.

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

Parameter
NameDescription
valueByteString

The bytes for fleetMembership to set.

Returns
TypeDescription
ImportAttachedClusterRequest.Builder

This builder for chaining.

setParent(String value)

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

This builder for chaining.

setParentBytes(ByteString value)

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

This builder for chaining.

setPlatformVersion(String value)

public ImportAttachedClusterRequest.Builder setPlatformVersion(String value)

Required. The platform version for the cluster (e.g. 1.19.0-gke.1000).

You can list all supported versions on a given Google Cloud region by calling GetAttachedServerConfig.

string platform_version = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The platformVersion to set.

Returns
TypeDescription
ImportAttachedClusterRequest.Builder

This builder for chaining.

setPlatformVersionBytes(ByteString value)

public ImportAttachedClusterRequest.Builder setPlatformVersionBytes(ByteString value)

Required. The platform version for the cluster (e.g. 1.19.0-gke.1000).

You can list all supported versions on a given Google Cloud region by calling GetAttachedServerConfig.

string platform_version = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for platformVersion to set.

Returns
TypeDescription
ImportAttachedClusterRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

public ImportAttachedClusterRequest.Builder setValidateOnly(boolean value)

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

bool validate_only = 2;

Parameter
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
ImportAttachedClusterRequest.Builder

This builder for chaining.