Class SlurmPartition.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SlurmPartition.Builder>
com.google.cloud.hypercomputecluster.v1.SlurmPartition.Builder
All Implemented Interfaces:
SlurmPartitionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SlurmPartition

public static final class SlurmPartition.Builder extends com.google.protobuf.GeneratedMessage.Builder<SlurmPartition.Builder> implements SlurmPartitionOrBuilder
 Configuration for Slurm partitions in the cluster. Partitions are groups of
 nodesets, and are how clients specify where their workloads should be run.
 
Protobuf type google.cloud.hypercomputecluster.v1.SlurmPartition
  • 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.Builder<SlurmPartition.Builder>
    • clear

      public SlurmPartition.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.GeneratedMessage.Builder<SlurmPartition.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.GeneratedMessage.Builder<SlurmPartition.Builder>
    • getDefaultInstanceForType

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

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

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

      public SlurmPartition.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<SlurmPartition.Builder>
    • mergeFrom

      public SlurmPartition.Builder mergeFrom(SlurmPartition other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SlurmPartition.Builder>
    • mergeFrom

      public SlurmPartition.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<SlurmPartition.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       Required. ID of the partition, which is how users will identify it. 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 SlurmPartitionOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Required. ID of the partition, which is how users will identify it. 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 SlurmPartitionOrBuilder
      Returns:
      The bytes for id.
    • setId

      public SlurmPartition.Builder setId(String value)
       Required. ID of the partition, which is how users will identify it. 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];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public SlurmPartition.Builder clearId()
       Required. ID of the partition, which is how users will identify it. 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];
      Returns:
      This builder for chaining.
    • setIdBytes

      public SlurmPartition.Builder setIdBytes(com.google.protobuf.ByteString value)
       Required. ID of the partition, which is how users will identify it. 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];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getNodeSetIdsList

      public com.google.protobuf.ProtocolStringList getNodeSetIdsList()
       Required. IDs of the nodesets that make up this partition. Values must
       match
       [SlurmNodeSet.id][google.cloud.hypercomputecluster.v1.SlurmNodeSet.id].
       
      repeated string node_set_ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNodeSetIdsList in interface SlurmPartitionOrBuilder
      Returns:
      A list containing the nodeSetIds.
    • getNodeSetIdsCount

      public int getNodeSetIdsCount()
       Required. IDs of the nodesets that make up this partition. Values must
       match
       [SlurmNodeSet.id][google.cloud.hypercomputecluster.v1.SlurmNodeSet.id].
       
      repeated string node_set_ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNodeSetIdsCount in interface SlurmPartitionOrBuilder
      Returns:
      The count of nodeSetIds.
    • getNodeSetIds

      public String getNodeSetIds(int index)
       Required. IDs of the nodesets that make up this partition. Values must
       match
       [SlurmNodeSet.id][google.cloud.hypercomputecluster.v1.SlurmNodeSet.id].
       
      repeated string node_set_ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNodeSetIds in interface SlurmPartitionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The nodeSetIds at the given index.
    • getNodeSetIdsBytes

      public com.google.protobuf.ByteString getNodeSetIdsBytes(int index)
       Required. IDs of the nodesets that make up this partition. Values must
       match
       [SlurmNodeSet.id][google.cloud.hypercomputecluster.v1.SlurmNodeSet.id].
       
      repeated string node_set_ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNodeSetIdsBytes in interface SlurmPartitionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the nodeSetIds at the given index.
    • setNodeSetIds

      public SlurmPartition.Builder setNodeSetIds(int index, String value)
       Required. IDs of the nodesets that make up this partition. Values must
       match
       [SlurmNodeSet.id][google.cloud.hypercomputecluster.v1.SlurmNodeSet.id].
       
      repeated string node_set_ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The nodeSetIds to set.
      Returns:
      This builder for chaining.
    • addNodeSetIds

      public SlurmPartition.Builder addNodeSetIds(String value)
       Required. IDs of the nodesets that make up this partition. Values must
       match
       [SlurmNodeSet.id][google.cloud.hypercomputecluster.v1.SlurmNodeSet.id].
       
      repeated string node_set_ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The nodeSetIds to add.
      Returns:
      This builder for chaining.
    • addAllNodeSetIds

      public SlurmPartition.Builder addAllNodeSetIds(Iterable<String> values)
       Required. IDs of the nodesets that make up this partition. Values must
       match
       [SlurmNodeSet.id][google.cloud.hypercomputecluster.v1.SlurmNodeSet.id].
       
      repeated string node_set_ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The nodeSetIds to add.
      Returns:
      This builder for chaining.
    • clearNodeSetIds

      public SlurmPartition.Builder clearNodeSetIds()
       Required. IDs of the nodesets that make up this partition. Values must
       match
       [SlurmNodeSet.id][google.cloud.hypercomputecluster.v1.SlurmNodeSet.id].
       
      repeated string node_set_ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addNodeSetIdsBytes

      public SlurmPartition.Builder addNodeSetIdsBytes(com.google.protobuf.ByteString value)
       Required. IDs of the nodesets that make up this partition. Values must
       match
       [SlurmNodeSet.id][google.cloud.hypercomputecluster.v1.SlurmNodeSet.id].
       
      repeated string node_set_ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the nodeSetIds to add.
      Returns:
      This builder for chaining.