Class NodeType.Builder (0.6.0)

public static final class NodeType.Builder extends GeneratedMessageV3.Builder<NodeType.Builder> implements NodeTypeOrBuilder

Describes node type.

Protobuf type google.cloud.vmwareengine.v1.NodeType

Implements

NodeTypeOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllAvailableCustomCoreCounts(Iterable<? extends Integer> values)

public NodeType.Builder addAllAvailableCustomCoreCounts(Iterable<? extends Integer> values)

Output only. List of possible values of custom core count.

repeated int32 available_custom_core_counts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends java.lang.Integer>

The availableCustomCoreCounts to add.

Returns
TypeDescription
NodeType.Builder

This builder for chaining.

addAvailableCustomCoreCounts(int value)

public NodeType.Builder addAvailableCustomCoreCounts(int value)

Output only. List of possible values of custom core count.

repeated int32 available_custom_core_counts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The availableCustomCoreCounts to add.

Returns
TypeDescription
NodeType.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NodeType build()
Returns
TypeDescription
NodeType

buildPartial()

public NodeType buildPartial()
Returns
TypeDescription
NodeType

clear()

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

clearAvailableCustomCoreCounts()

public NodeType.Builder clearAvailableCustomCoreCounts()

Output only. List of possible values of custom core count.

repeated int32 available_custom_core_counts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
NodeType.Builder

This builder for chaining.

clearDiskSizeGb()

public NodeType.Builder clearDiskSizeGb()

Output only. The amount of storage available, defined in GB.

int32 disk_size_gb = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
NodeType.Builder

This builder for chaining.

clearDisplayName()

public NodeType.Builder clearDisplayName()

Output only. The friendly name for this node type. For example: ve1-standard-72

string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
NodeType.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMemoryGb()

public NodeType.Builder clearMemoryGb()

Output only. The amount of physical memory available, defined in GB.

int32 memory_gb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
NodeType.Builder

This builder for chaining.

clearName()

public NodeType.Builder clearName()

Output only. The resource name of this node type. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-proj/locations/us-central1-a/nodeTypes/standard-72

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
NodeType.Builder

This builder for chaining.

clearNodeTypeId()

public NodeType.Builder clearNodeTypeId()

Output only. The canonical identifier of the node type (corresponds to the NodeType). For example: standard-72.

string node_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
NodeType.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalCoreCount()

public NodeType.Builder clearTotalCoreCount()

Output only. The total number of CPU cores in a single node.

int32 total_core_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
NodeType.Builder

This builder for chaining.

clearVirtualCpuCount()

public NodeType.Builder clearVirtualCpuCount()

Output only. The total number of virtual CPUs in a single node.

int32 virtual_cpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
NodeType.Builder

This builder for chaining.

clone()

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

getAvailableCustomCoreCounts(int index)

public int getAvailableCustomCoreCounts(int index)

Output only. List of possible values of custom core count.

repeated int32 available_custom_core_counts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
int

The availableCustomCoreCounts at the given index.

getAvailableCustomCoreCountsCount()

public int getAvailableCustomCoreCountsCount()

Output only. List of possible values of custom core count.

repeated int32 available_custom_core_counts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The count of availableCustomCoreCounts.

getAvailableCustomCoreCountsList()

public List<Integer> getAvailableCustomCoreCountsList()

Output only. List of possible values of custom core count.

repeated int32 available_custom_core_counts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Integer>

A list containing the availableCustomCoreCounts.

getDefaultInstanceForType()

public NodeType getDefaultInstanceForType()
Returns
TypeDescription
NodeType

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDiskSizeGb()

public int getDiskSizeGb()

Output only. The amount of storage available, defined in GB.

int32 disk_size_gb = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The diskSizeGb.

getDisplayName()

public String getDisplayName()

Output only. The friendly name for this node type. For example: ve1-standard-72

string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. The friendly name for this node type. For example: ve1-standard-72

string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for displayName.

getMemoryGb()

public int getMemoryGb()

Output only. The amount of physical memory available, defined in GB.

int32 memory_gb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The memoryGb.

getName()

public String getName()

Output only. The resource name of this node type. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-proj/locations/us-central1-a/nodeTypes/standard-72

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of this node type. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-proj/locations/us-central1-a/nodeTypes/standard-72

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getNodeTypeId()

public String getNodeTypeId()

Output only. The canonical identifier of the node type (corresponds to the NodeType). For example: standard-72.

string node_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The nodeTypeId.

getNodeTypeIdBytes()

public ByteString getNodeTypeIdBytes()

Output only. The canonical identifier of the node type (corresponds to the NodeType). For example: standard-72.

string node_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for nodeTypeId.

getTotalCoreCount()

public int getTotalCoreCount()

Output only. The total number of CPU cores in a single node.

int32 total_core_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The totalCoreCount.

getVirtualCpuCount()

public int getVirtualCpuCount()

Output only. The total number of virtual CPUs in a single node.

int32 virtual_cpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The virtualCpuCount.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NodeType other)

public NodeType.Builder mergeFrom(NodeType other)
Parameter
NameDescription
otherNodeType
Returns
TypeDescription
NodeType.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAvailableCustomCoreCounts(int index, int value)

public NodeType.Builder setAvailableCustomCoreCounts(int index, int value)

Output only. List of possible values of custom core count.

repeated int32 available_custom_core_counts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint

The index to set the value at.

valueint

The availableCustomCoreCounts to set.

Returns
TypeDescription
NodeType.Builder

This builder for chaining.

setDiskSizeGb(int value)

public NodeType.Builder setDiskSizeGb(int value)

Output only. The amount of storage available, defined in GB.

int32 disk_size_gb = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The diskSizeGb to set.

Returns
TypeDescription
NodeType.Builder

This builder for chaining.

setDisplayName(String value)

public NodeType.Builder setDisplayName(String value)

Output only. The friendly name for this node type. For example: ve1-standard-72

string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
NodeType.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public NodeType.Builder setDisplayNameBytes(ByteString value)

Output only. The friendly name for this node type. For example: ve1-standard-72

string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
NodeType.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMemoryGb(int value)

public NodeType.Builder setMemoryGb(int value)

Output only. The amount of physical memory available, defined in GB.

int32 memory_gb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The memoryGb to set.

Returns
TypeDescription
NodeType.Builder

This builder for chaining.

setName(String value)

public NodeType.Builder setName(String value)

Output only. The resource name of this node type. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-proj/locations/us-central1-a/nodeTypes/standard-72

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
NodeType.Builder

This builder for chaining.

setNameBytes(ByteString value)

public NodeType.Builder setNameBytes(ByteString value)

Output only. The resource name of this node type. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-proj/locations/us-central1-a/nodeTypes/standard-72

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
NodeType.Builder

This builder for chaining.

setNodeTypeId(String value)

public NodeType.Builder setNodeTypeId(String value)

Output only. The canonical identifier of the node type (corresponds to the NodeType). For example: standard-72.

string node_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The nodeTypeId to set.

Returns
TypeDescription
NodeType.Builder

This builder for chaining.

setNodeTypeIdBytes(ByteString value)

public NodeType.Builder setNodeTypeIdBytes(ByteString value)

Output only. The canonical identifier of the node type (corresponds to the NodeType). For example: standard-72.

string node_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for nodeTypeId to set.

Returns
TypeDescription
NodeType.Builder

This builder for chaining.

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

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

setTotalCoreCount(int value)

public NodeType.Builder setTotalCoreCount(int value)

Output only. The total number of CPU cores in a single node.

int32 total_core_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The totalCoreCount to set.

Returns
TypeDescription
NodeType.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVirtualCpuCount(int value)

public NodeType.Builder setVirtualCpuCount(int value)

Output only. The total number of virtual CPUs in a single node.

int32 virtual_cpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The virtualCpuCount to set.

Returns
TypeDescription
NodeType.Builder

This builder for chaining.