Package com.google.cloud.vmwareengine.v1
Class NodeType.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
-
- com.google.cloud.vmwareengine.v1.NodeType.Builder
-
- All Implemented Interfaces:
NodeTypeOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- NodeType
public static final class NodeType.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder> implements NodeTypeOrBuilder
Describes node type.
Protobuf typegoogle.cloud.vmwareengine.v1.NodeType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeType.Builder
addAllAvailableCustomCoreCounts(Iterable<? extends Integer> values)
Output only.NodeType.Builder
addAvailableCustomCoreCounts(int value)
Output only.NodeType.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
NodeType
build()
NodeType
buildPartial()
NodeType.Builder
clear()
NodeType.Builder
clearAvailableCustomCoreCounts()
Output only.NodeType.Builder
clearDiskSizeGb()
Output only.NodeType.Builder
clearDisplayName()
Output only.NodeType.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
NodeType.Builder
clearMemoryGb()
Output only.NodeType.Builder
clearName()
Output only.NodeType.Builder
clearNodeTypeId()
Output only.NodeType.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
NodeType.Builder
clearTotalCoreCount()
Output only.NodeType.Builder
clearVirtualCpuCount()
Output only.NodeType.Builder
clone()
int
getAvailableCustomCoreCounts(int index)
Output only.int
getAvailableCustomCoreCountsCount()
Output only.List<Integer>
getAvailableCustomCoreCountsList()
Output only.NodeType
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getDiskSizeGb()
Output only.String
getDisplayName()
Output only.com.google.protobuf.ByteString
getDisplayNameBytes()
Output only.int
getMemoryGb()
Output only.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.String
getNodeTypeId()
Output only.com.google.protobuf.ByteString
getNodeTypeIdBytes()
Output only.int
getTotalCoreCount()
Output only.int
getVirtualCpuCount()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
NodeType.Builder
mergeFrom(NodeType other)
NodeType.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
NodeType.Builder
mergeFrom(com.google.protobuf.Message other)
NodeType.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
NodeType.Builder
setAvailableCustomCoreCounts(int index, int value)
Output only.NodeType.Builder
setDiskSizeGb(int value)
Output only.NodeType.Builder
setDisplayName(String value)
Output only.NodeType.Builder
setDisplayNameBytes(com.google.protobuf.ByteString value)
Output only.NodeType.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
NodeType.Builder
setMemoryGb(int value)
Output only.NodeType.Builder
setName(String value)
Output only.NodeType.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.NodeType.Builder
setNodeTypeId(String value)
Output only.NodeType.Builder
setNodeTypeIdBytes(com.google.protobuf.ByteString value)
Output only.NodeType.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
NodeType.Builder
setTotalCoreCount(int value)
Output only.NodeType.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
NodeType.Builder
setVirtualCpuCount(int value)
Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
-
clear
public NodeType.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
-
getDefaultInstanceForType
public NodeType getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public NodeType build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public NodeType buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public NodeType.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
-
setField
public NodeType.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
-
clearField
public NodeType.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
-
clearOneof
public NodeType.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
-
setRepeatedField
public NodeType.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
-
addRepeatedField
public NodeType.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
-
mergeFrom
public NodeType.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<NodeType.Builder>
-
mergeFrom
public NodeType.Builder mergeFrom(NodeType other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
-
mergeFrom
public NodeType.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<NodeType.Builder>
- Throws:
IOException
-
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];
- Specified by:
getName
in interfaceNodeTypeOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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];
- Specified by:
getNameBytes
in interfaceNodeTypeOrBuilder
- Returns:
- The bytes for name.
-
setName
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];
- Parameters:
value
- The name to set.- Returns:
- 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:
- This builder for chaining.
-
setNameBytes
public NodeType.Builder setNameBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getNodeTypeId
in interfaceNodeTypeOrBuilder
- Returns:
- The nodeTypeId.
-
getNodeTypeIdBytes
public com.google.protobuf.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];
- Specified by:
getNodeTypeIdBytes
in interfaceNodeTypeOrBuilder
- Returns:
- The bytes for nodeTypeId.
-
setNodeTypeId
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];
- Parameters:
value
- The nodeTypeId to set.- Returns:
- 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:
- This builder for chaining.
-
setNodeTypeIdBytes
public NodeType.Builder setNodeTypeIdBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes for nodeTypeId to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getDisplayName
in interfaceNodeTypeOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.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];
- Specified by:
getDisplayNameBytes
in interfaceNodeTypeOrBuilder
- Returns:
- The bytes for displayName.
-
setDisplayName
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];
- Parameters:
value
- The displayName to set.- Returns:
- 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:
- This builder for chaining.
-
setDisplayNameBytes
public NodeType.Builder setDisplayNameBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getVirtualCpuCount
in interfaceNodeTypeOrBuilder
- Returns:
- The virtualCpuCount.
-
setVirtualCpuCount
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];
- Parameters:
value
- The virtualCpuCount to set.- Returns:
- 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:
- This builder for chaining.
-
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];
- Specified by:
getTotalCoreCount
in interfaceNodeTypeOrBuilder
- Returns:
- The totalCoreCount.
-
setTotalCoreCount
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];
- Parameters:
value
- The totalCoreCount to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];
- Specified by:
getMemoryGb
in interfaceNodeTypeOrBuilder
- Returns:
- The memoryGb.
-
setMemoryGb
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];
- Parameters:
value
- The memoryGb to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];
- Specified by:
getDiskSizeGb
in interfaceNodeTypeOrBuilder
- Returns:
- The diskSizeGb.
-
setDiskSizeGb
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];
- Parameters:
value
- The diskSizeGb to set.- Returns:
- 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:
- This builder for chaining.
-
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];
- Specified by:
getAvailableCustomCoreCountsList
in interfaceNodeTypeOrBuilder
- Returns:
- A list containing the availableCustomCoreCounts.
-
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];
- Specified by:
getAvailableCustomCoreCountsCount
in interfaceNodeTypeOrBuilder
- Returns:
- The count of availableCustomCoreCounts.
-
getAvailableCustomCoreCounts
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];
- Specified by:
getAvailableCustomCoreCounts
in interfaceNodeTypeOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The availableCustomCoreCounts at the given index.
-
setAvailableCustomCoreCounts
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:
index
- The index to set the value at.value
- The availableCustomCoreCounts to set.- Returns:
- This builder for chaining.
-
addAvailableCustomCoreCounts
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];
- Parameters:
value
- The availableCustomCoreCounts to add.- Returns:
- This builder for chaining.
-
addAllAvailableCustomCoreCounts
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];
- Parameters:
values
- The availableCustomCoreCounts to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setUnknownFields
public final NodeType.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
-
mergeUnknownFields
public final NodeType.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
-
-