Class PrivateCloud.ManagementCluster.Builder (0.35.0)

public static final class PrivateCloud.ManagementCluster.Builder extends GeneratedMessageV3.Builder<PrivateCloud.ManagementCluster.Builder> implements PrivateCloud.ManagementClusterOrBuilder

Management cluster configuration.

Protobuf type google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PrivateCloud.ManagementCluster build()
Returns
TypeDescription
PrivateCloud.ManagementCluster

buildPartial()

public PrivateCloud.ManagementCluster buildPartial()
Returns
TypeDescription
PrivateCloud.ManagementCluster

clear()

public PrivateCloud.ManagementCluster.Builder clear()
Returns
TypeDescription
PrivateCloud.ManagementCluster.Builder
Overrides

clearClusterId()

public PrivateCloud.ManagementCluster.Builder clearClusterId()

Required. The user-provided identifier of the new Cluster. The identifier must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PrivateCloud.ManagementCluster.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearNodeTypeConfigs()

public PrivateCloud.ManagementCluster.Builder clearNodeTypeConfigs()
Returns
TypeDescription
PrivateCloud.ManagementCluster.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStretchedClusterConfig()

public PrivateCloud.ManagementCluster.Builder clearStretchedClusterConfig()

Optional. Configuration of a stretched cluster. Required for STRETCHED private clouds.

.google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PrivateCloud.ManagementCluster.Builder

clone()

public PrivateCloud.ManagementCluster.Builder clone()
Returns
TypeDescription
PrivateCloud.ManagementCluster.Builder
Overrides

containsNodeTypeConfigs(String key)

public boolean containsNodeTypeConfigs(String key)

Required. The map of cluster node types in this cluster, where the key is canonical identifier of the node type (corresponds to the NodeType).

map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getClusterId()

public String getClusterId()

Required. The user-provided identifier of the new Cluster. The identifier must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The clusterId.

getClusterIdBytes()

public ByteString getClusterIdBytes()

Required. The user-provided identifier of the new Cluster. The identifier must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for clusterId.

getDefaultInstanceForType()

public PrivateCloud.ManagementCluster getDefaultInstanceForType()
Returns
TypeDescription
PrivateCloud.ManagementCluster

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableNodeTypeConfigs() (deprecated)

public Map<String,NodeTypeConfig> getMutableNodeTypeConfigs()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,NodeTypeConfig>

getNodeTypeConfigs() (deprecated)

public Map<String,NodeTypeConfig> getNodeTypeConfigs()
Returns
TypeDescription
Map<String,NodeTypeConfig>

getNodeTypeConfigsCount()

public int getNodeTypeConfigsCount()

Required. The map of cluster node types in this cluster, where the key is canonical identifier of the node type (corresponds to the NodeType).

map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getNodeTypeConfigsMap()

public Map<String,NodeTypeConfig> getNodeTypeConfigsMap()

Required. The map of cluster node types in this cluster, where the key is canonical identifier of the node type (corresponds to the NodeType).

map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Map<String,NodeTypeConfig>

getNodeTypeConfigsOrDefault(String key, NodeTypeConfig defaultValue)

public NodeTypeConfig getNodeTypeConfigsOrDefault(String key, NodeTypeConfig defaultValue)

Required. The map of cluster node types in this cluster, where the key is canonical identifier of the node type (corresponds to the NodeType).

map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
keyString
defaultValueNodeTypeConfig
Returns
TypeDescription
NodeTypeConfig

getNodeTypeConfigsOrThrow(String key)

public NodeTypeConfig getNodeTypeConfigsOrThrow(String key)

Required. The map of cluster node types in this cluster, where the key is canonical identifier of the node type (corresponds to the NodeType).

map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
keyString
Returns
TypeDescription
NodeTypeConfig

getStretchedClusterConfig()

public StretchedClusterConfig getStretchedClusterConfig()

Optional. Configuration of a stretched cluster. Required for STRETCHED private clouds.

.google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StretchedClusterConfig

The stretchedClusterConfig.

getStretchedClusterConfigBuilder()

public StretchedClusterConfig.Builder getStretchedClusterConfigBuilder()

Optional. Configuration of a stretched cluster. Required for STRETCHED private clouds.

.google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StretchedClusterConfig.Builder

getStretchedClusterConfigOrBuilder()

public StretchedClusterConfigOrBuilder getStretchedClusterConfigOrBuilder()

Optional. Configuration of a stretched cluster. Required for STRETCHED private clouds.

.google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StretchedClusterConfigOrBuilder

hasStretchedClusterConfig()

public boolean hasStretchedClusterConfig()

Optional. Configuration of a stretched cluster. Required for STRETCHED private clouds.

.google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the stretchedClusterConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PrivateCloud.ManagementCluster other)

public PrivateCloud.ManagementCluster.Builder mergeFrom(PrivateCloud.ManagementCluster other)
Parameter
NameDescription
otherPrivateCloud.ManagementCluster
Returns
TypeDescription
PrivateCloud.ManagementCluster.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStretchedClusterConfig(StretchedClusterConfig value)

public PrivateCloud.ManagementCluster.Builder mergeStretchedClusterConfig(StretchedClusterConfig value)

Optional. Configuration of a stretched cluster. Required for STRETCHED private clouds.

.google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueStretchedClusterConfig
Returns
TypeDescription
PrivateCloud.ManagementCluster.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllNodeTypeConfigs(Map<String,NodeTypeConfig> values)

public PrivateCloud.ManagementCluster.Builder putAllNodeTypeConfigs(Map<String,NodeTypeConfig> values)

Required. The map of cluster node types in this cluster, where the key is canonical identifier of the node type (corresponds to the NodeType).

map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesMap<String,NodeTypeConfig>
Returns
TypeDescription
PrivateCloud.ManagementCluster.Builder

putNodeTypeConfigs(String key, NodeTypeConfig value)

public PrivateCloud.ManagementCluster.Builder putNodeTypeConfigs(String key, NodeTypeConfig value)

Required. The map of cluster node types in this cluster, where the key is canonical identifier of the node type (corresponds to the NodeType).

map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
keyString
valueNodeTypeConfig
Returns
TypeDescription
PrivateCloud.ManagementCluster.Builder

putNodeTypeConfigsBuilderIfAbsent(String key)

public NodeTypeConfig.Builder putNodeTypeConfigsBuilderIfAbsent(String key)

Required. The map of cluster node types in this cluster, where the key is canonical identifier of the node type (corresponds to the NodeType).

map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
keyString
Returns
TypeDescription
NodeTypeConfig.Builder

removeNodeTypeConfigs(String key)

public PrivateCloud.ManagementCluster.Builder removeNodeTypeConfigs(String key)

Required. The map of cluster node types in this cluster, where the key is canonical identifier of the node type (corresponds to the NodeType).

map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
keyString
Returns
TypeDescription
PrivateCloud.ManagementCluster.Builder

setClusterId(String value)

public PrivateCloud.ManagementCluster.Builder setClusterId(String value)

Required. The user-provided identifier of the new Cluster. The identifier must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The clusterId to set.

Returns
TypeDescription
PrivateCloud.ManagementCluster.Builder

This builder for chaining.

setClusterIdBytes(ByteString value)

public PrivateCloud.ManagementCluster.Builder setClusterIdBytes(ByteString value)

Required. The user-provided identifier of the new Cluster. The identifier must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for clusterId to set.

Returns
TypeDescription
PrivateCloud.ManagementCluster.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStretchedClusterConfig(StretchedClusterConfig value)

public PrivateCloud.ManagementCluster.Builder setStretchedClusterConfig(StretchedClusterConfig value)

Optional. Configuration of a stretched cluster. Required for STRETCHED private clouds.

.google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueStretchedClusterConfig
Returns
TypeDescription
PrivateCloud.ManagementCluster.Builder

setStretchedClusterConfig(StretchedClusterConfig.Builder builderForValue)

public PrivateCloud.ManagementCluster.Builder setStretchedClusterConfig(StretchedClusterConfig.Builder builderForValue)

Optional. Configuration of a stretched cluster. Required for STRETCHED private clouds.

.google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueStretchedClusterConfig.Builder
Returns
TypeDescription
PrivateCloud.ManagementCluster.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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