Class ImportAttachedClusterRequest.Builder (0.43.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportAttachedClusterRequest build()
Returns
Type Description
ImportAttachedClusterRequest

buildPartial()

public ImportAttachedClusterRequest buildPartial()
Returns
Type Description
ImportAttachedClusterRequest

clear()

public ImportAttachedClusterRequest.Builder clear()
Returns
Type Description
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
Type Description
ImportAttachedClusterRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ImportAttachedClusterRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
ImportAttachedClusterRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportAttachedClusterRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
ImportAttachedClusterRequest.Builder

This builder for chaining.

clearProxyConfig()

public ImportAttachedClusterRequest.Builder clearProxyConfig()

Optional. Proxy configuration for outbound HTTP(S) traffic.

.google.cloud.gkemulticloud.v1.AttachedProxyConfig proxy_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImportAttachedClusterRequest.Builder

clearValidateOnly()

public ImportAttachedClusterRequest.Builder clearValidateOnly()

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

bool validate_only = 2;

Returns
Type Description
ImportAttachedClusterRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ImportAttachedClusterRequest getDefaultInstanceForType()
Returns
Type Description
ImportAttachedClusterRequest

getDescriptorForType()

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

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
Type Description
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
Type Description
ByteString

The bytes for platformVersion.

getProxyConfig()

public AttachedProxyConfig getProxyConfig()

Optional. Proxy configuration for outbound HTTP(S) traffic.

.google.cloud.gkemulticloud.v1.AttachedProxyConfig proxy_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AttachedProxyConfig

The proxyConfig.

getProxyConfigBuilder()

public AttachedProxyConfig.Builder getProxyConfigBuilder()

Optional. Proxy configuration for outbound HTTP(S) traffic.

.google.cloud.gkemulticloud.v1.AttachedProxyConfig proxy_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AttachedProxyConfig.Builder

getProxyConfigOrBuilder()

public AttachedProxyConfigOrBuilder getProxyConfigOrBuilder()

Optional. Proxy configuration for outbound HTTP(S) traffic.

.google.cloud.gkemulticloud.v1.AttachedProxyConfig proxy_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AttachedProxyConfigOrBuilder

getValidateOnly()

public boolean getValidateOnly()

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

bool validate_only = 2;

Returns
Type Description
boolean

The validateOnly.

hasProxyConfig()

public boolean hasProxyConfig()

Optional. Proxy configuration for outbound HTTP(S) traffic.

.google.cloud.gkemulticloud.v1.AttachedProxyConfig proxy_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the proxyConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportAttachedClusterRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeProxyConfig(AttachedProxyConfig value)

public ImportAttachedClusterRequest.Builder mergeProxyConfig(AttachedProxyConfig value)

Optional. Proxy configuration for outbound HTTP(S) traffic.

.google.cloud.gkemulticloud.v1.AttachedProxyConfig proxy_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AttachedProxyConfig
Returns
Type Description
ImportAttachedClusterRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportAttachedClusterRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The distribution to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for distribution to set.

Returns
Type Description
ImportAttachedClusterRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ImportAttachedClusterRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The fleetMembership to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for fleetMembership to set.

Returns
Type Description
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
Name Description
value String

The parent to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
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
Name Description
value String

The platformVersion to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for platformVersion to set.

Returns
Type Description
ImportAttachedClusterRequest.Builder

This builder for chaining.

setProxyConfig(AttachedProxyConfig value)

public ImportAttachedClusterRequest.Builder setProxyConfig(AttachedProxyConfig value)

Optional. Proxy configuration for outbound HTTP(S) traffic.

.google.cloud.gkemulticloud.v1.AttachedProxyConfig proxy_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AttachedProxyConfig
Returns
Type Description
ImportAttachedClusterRequest.Builder

setProxyConfig(AttachedProxyConfig.Builder builderForValue)

public ImportAttachedClusterRequest.Builder setProxyConfig(AttachedProxyConfig.Builder builderForValue)

Optional. Proxy configuration for outbound HTTP(S) traffic.

.google.cloud.gkemulticloud.v1.AttachedProxyConfig proxy_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AttachedProxyConfig.Builder
Returns
Type Description
ImportAttachedClusterRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportAttachedClusterRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
ImportAttachedClusterRequest.Builder

This builder for chaining.