Class 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 type google.cloud.vmwareengine.v1.NodeType
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
      • clear

        public NodeType.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
      • getDefaultInstanceForType

        public NodeType getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public NodeType build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public NodeType buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public NodeType.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
      • setField

        public NodeType.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                         Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
      • clearField

        public NodeType.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
      • clearOneof

        public NodeType.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
      • addRepeatedField

        public NodeType.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
      • mergeFrom

        public NodeType.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NodeType.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface NodeTypeOrBuilder
        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 interface NodeTypeOrBuilder
        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 interface NodeTypeOrBuilder
        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 interface NodeTypeOrBuilder
        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 interface NodeTypeOrBuilder
        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 interface NodeTypeOrBuilder
        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 interface NodeTypeOrBuilder
        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 interface NodeTypeOrBuilder
        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 interface NodeTypeOrBuilder
        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 interface NodeTypeOrBuilder
        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 interface NodeTypeOrBuilder
        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 interface NodeTypeOrBuilder
        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 interface NodeTypeOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>
      • mergeUnknownFields

        public final NodeType.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NodeType.Builder>