Class SlurmNodeSet

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.hypercomputecluster.v1.SlurmNodeSet
All Implemented Interfaces:
SlurmNodeSetOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class SlurmNodeSet extends com.google.protobuf.GeneratedMessage implements SlurmNodeSetOrBuilder
 Configuration for Slurm nodesets in the cluster. Nodesets are groups of
 compute nodes used by Slurm that are responsible for running workloads
 submitted to the cluster.
 
Protobuf type google.cloud.hypercomputecluster.v1.SlurmNodeSet
See Also:
  • Field Details

    • COMPUTE_INSTANCE_FIELD_NUMBER

      public static final int COMPUTE_INSTANCE_FIELD_NUMBER
      See Also:
    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • COMPUTE_ID_FIELD_NUMBER

      public static final int COMPUTE_ID_FIELD_NUMBER
      See Also:
    • STORAGE_CONFIGS_FIELD_NUMBER

      public static final int STORAGE_CONFIGS_FIELD_NUMBER
      See Also:
    • STATIC_NODE_COUNT_FIELD_NUMBER

      public static final int STATIC_NODE_COUNT_FIELD_NUMBER
      See Also:
    • MAX_DYNAMIC_NODE_COUNT_FIELD_NUMBER

      public static final int MAX_DYNAMIC_NODE_COUNT_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getTypeCase

      public SlurmNodeSet.TypeCase getTypeCase()
      Specified by:
      getTypeCase in interface SlurmNodeSetOrBuilder
    • hasComputeInstance

      public boolean hasComputeInstance()
       Optional. If set, indicates that the nodeset should be backed by Compute
       Engine instances.
       
      .google.cloud.hypercomputecluster.v1.ComputeInstanceSlurmNodeSet compute_instance = 17 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasComputeInstance in interface SlurmNodeSetOrBuilder
      Returns:
      Whether the computeInstance field is set.
    • getComputeInstance

      public ComputeInstanceSlurmNodeSet getComputeInstance()
       Optional. If set, indicates that the nodeset should be backed by Compute
       Engine instances.
       
      .google.cloud.hypercomputecluster.v1.ComputeInstanceSlurmNodeSet compute_instance = 17 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getComputeInstance in interface SlurmNodeSetOrBuilder
      Returns:
      The computeInstance.
    • getComputeInstanceOrBuilder

      public ComputeInstanceSlurmNodeSetOrBuilder getComputeInstanceOrBuilder()
       Optional. If set, indicates that the nodeset should be backed by Compute
       Engine instances.
       
      .google.cloud.hypercomputecluster.v1.ComputeInstanceSlurmNodeSet compute_instance = 17 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getComputeInstanceOrBuilder in interface SlurmNodeSetOrBuilder
    • getId

      public String getId()
       Required. Identifier for the nodeset, which allows it to be referenced by
       partitions. Must conform to
       [RFC-1034](https://datatracker.ietf.org/doc/html/rfc1034) (lower-case,
       alphanumeric, and at most 63 characters).
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getId in interface SlurmNodeSetOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Required. Identifier for the nodeset, which allows it to be referenced by
       partitions. Must conform to
       [RFC-1034](https://datatracker.ietf.org/doc/html/rfc1034) (lower-case,
       alphanumeric, and at most 63 characters).
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIdBytes in interface SlurmNodeSetOrBuilder
      Returns:
      The bytes for id.
    • getComputeId

      public String getComputeId()
       Optional. ID of the compute resource on which this nodeset will run. Must
       match a key in the cluster's
       [compute_resources][google.cloud.hypercomputecluster.v1.Cluster.compute_resources].
       
      string compute_id = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getComputeId in interface SlurmNodeSetOrBuilder
      Returns:
      The computeId.
    • getComputeIdBytes

      public com.google.protobuf.ByteString getComputeIdBytes()
       Optional. ID of the compute resource on which this nodeset will run. Must
       match a key in the cluster's
       [compute_resources][google.cloud.hypercomputecluster.v1.Cluster.compute_resources].
       
      string compute_id = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getComputeIdBytes in interface SlurmNodeSetOrBuilder
      Returns:
      The bytes for computeId.
    • getStorageConfigsList

      public List<StorageConfig> getStorageConfigsList()
       Optional. How [storage
       resources][google.cloud.hypercomputecluster.v1.StorageResource] should be
       mounted on each compute node.
       
      repeated .google.cloud.hypercomputecluster.v1.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStorageConfigsList in interface SlurmNodeSetOrBuilder
    • getStorageConfigsOrBuilderList

      public List<? extends StorageConfigOrBuilder> getStorageConfigsOrBuilderList()
       Optional. How [storage
       resources][google.cloud.hypercomputecluster.v1.StorageResource] should be
       mounted on each compute node.
       
      repeated .google.cloud.hypercomputecluster.v1.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStorageConfigsOrBuilderList in interface SlurmNodeSetOrBuilder
    • getStorageConfigsCount

      public int getStorageConfigsCount()
       Optional. How [storage
       resources][google.cloud.hypercomputecluster.v1.StorageResource] should be
       mounted on each compute node.
       
      repeated .google.cloud.hypercomputecluster.v1.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStorageConfigsCount in interface SlurmNodeSetOrBuilder
    • getStorageConfigs

      public StorageConfig getStorageConfigs(int index)
       Optional. How [storage
       resources][google.cloud.hypercomputecluster.v1.StorageResource] should be
       mounted on each compute node.
       
      repeated .google.cloud.hypercomputecluster.v1.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStorageConfigs in interface SlurmNodeSetOrBuilder
    • getStorageConfigsOrBuilder

      public StorageConfigOrBuilder getStorageConfigsOrBuilder(int index)
       Optional. How [storage
       resources][google.cloud.hypercomputecluster.v1.StorageResource] should be
       mounted on each compute node.
       
      repeated .google.cloud.hypercomputecluster.v1.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStorageConfigsOrBuilder in interface SlurmNodeSetOrBuilder
    • getStaticNodeCount

      public long getStaticNodeCount()
       Optional. Number of nodes to be statically created for this nodeset. The
       cluster will attempt to ensure that at least this many nodes exist at all
       times.
       
      int64 static_node_count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStaticNodeCount in interface SlurmNodeSetOrBuilder
      Returns:
      The staticNodeCount.
    • getMaxDynamicNodeCount

      public long getMaxDynamicNodeCount()
       Optional. Controls how many additional nodes a cluster can bring online to
       handle workloads. Set this value to enable dynamic node creation and limit
       the number of additional nodes the cluster can bring online. Leave empty if
       you do not want the cluster to create nodes dynamically, and instead rely
       only on static nodes.
       
      int64 max_dynamic_node_count = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMaxDynamicNodeCount in interface SlurmNodeSetOrBuilder
      Returns:
      The maxDynamicNodeCount.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static SlurmNodeSet parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SlurmNodeSet parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SlurmNodeSet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SlurmNodeSet parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SlurmNodeSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SlurmNodeSet parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SlurmNodeSet parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SlurmNodeSet parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SlurmNodeSet parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SlurmNodeSet parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SlurmNodeSet parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SlurmNodeSet parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public SlurmNodeSet.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static SlurmNodeSet.Builder newBuilder()
    • newBuilder

      public static SlurmNodeSet.Builder newBuilder(SlurmNodeSet prototype)
    • toBuilder

      public SlurmNodeSet.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected SlurmNodeSet.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static SlurmNodeSet getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SlurmNodeSet> parser()
    • getParserForType

      public com.google.protobuf.Parser<SlurmNodeSet> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public SlurmNodeSet getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder