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 Summary
Modifier and TypeMethodDescriptionaddAllNodeSetIds(Iterable<String> values) Required.addNodeSetIds(String value) Required.addNodeSetIdsBytes(com.google.protobuf.ByteString value) Required.build()clear()clearId()Required.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetId()Required.com.google.protobuf.ByteStringRequired.getNodeSetIds(int index) Required.com.google.protobuf.ByteStringgetNodeSetIdsBytes(int index) Required.intRequired.com.google.protobuf.ProtocolStringListRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SlurmPartition other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.setIdBytes(com.google.protobuf.ByteString value) Required.setNodeSetIds(int index, String value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SlurmPartition.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SlurmPartition.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SlurmPartition.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SlurmPartition.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SlurmPartition.Builder>- Throws:
IOException
-
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:
getIdin interfaceSlurmPartitionOrBuilder- 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:
getIdBytesin interfaceSlurmPartitionOrBuilder- Returns:
- The bytes for id.
-
setId
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
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
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:
getNodeSetIdsListin interfaceSlurmPartitionOrBuilder- 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:
getNodeSetIdsCountin interfaceSlurmPartitionOrBuilder- Returns:
- The count of nodeSetIds.
-
getNodeSetIds
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:
getNodeSetIdsin interfaceSlurmPartitionOrBuilder- 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:
getNodeSetIdsBytesin interfaceSlurmPartitionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the nodeSetIds at the given index.
-
setNodeSetIds
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
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
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
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
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.
-