Class NodeTypeConfig.Builder (0.79.0)

public static final class NodeTypeConfig.Builder extends GeneratedMessage.Builder<NodeTypeConfig.Builder> implements NodeTypeConfigOrBuilder

Information about the type and number of nodes associated with the cluster.

Protobuf type google.cloud.vmwareengine.v1.NodeTypeConfig

Static Methods

getDescriptor()

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

Methods

build()

public NodeTypeConfig build()
Returns
Type Description
NodeTypeConfig

buildPartial()

public NodeTypeConfig buildPartial()
Returns
Type Description
NodeTypeConfig

clear()

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

clearCustomCoreCount()

public NodeTypeConfig.Builder clearCustomCoreCount()

Optional. Customized number of cores available to each node of the type. This number must always be one of nodeType.availableCustomCoreCounts. If zero is provided max value from nodeType.availableCustomCoreCounts will be used.

int32 custom_core_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NodeTypeConfig.Builder

This builder for chaining.

clearNodeCount()

public NodeTypeConfig.Builder clearNodeCount()

Required. The number of nodes of this type in the cluster

int32 node_count = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NodeTypeConfig.Builder

This builder for chaining.

getCustomCoreCount()

public int getCustomCoreCount()

Optional. Customized number of cores available to each node of the type. This number must always be one of nodeType.availableCustomCoreCounts. If zero is provided max value from nodeType.availableCustomCoreCounts will be used.

int32 custom_core_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The customCoreCount.

getDefaultInstanceForType()

public NodeTypeConfig getDefaultInstanceForType()
Returns
Type Description
NodeTypeConfig

getDescriptorForType()

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

getNodeCount()

public int getNodeCount()

Required. The number of nodes of this type in the cluster

int32 node_count = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The nodeCount.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NodeTypeConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCustomCoreCount(int value)

public NodeTypeConfig.Builder setCustomCoreCount(int value)

Optional. Customized number of cores available to each node of the type. This number must always be one of nodeType.availableCustomCoreCounts. If zero is provided max value from nodeType.availableCustomCoreCounts will be used.

int32 custom_core_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The customCoreCount to set.

Returns
Type Description
NodeTypeConfig.Builder

This builder for chaining.

setNodeCount(int value)

public NodeTypeConfig.Builder setNodeCount(int value)

Required. The number of nodes of this type in the cluster

int32 node_count = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The nodeCount to set.

Returns
Type Description
NodeTypeConfig.Builder

This builder for chaining.