Class SlurmPartition.Builder (0.1.0)

public static final class SlurmPartition.Builder extends GeneratedMessageV3.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.v1beta.SlurmPartition

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllNodeSetIds(Iterable<String> values)

public SlurmPartition.Builder addAllNodeSetIds(Iterable<String> values)

Required. IDs of the nodesets that make up this partition. Values must match SlurmNodeSet.id.

repeated string node_set_ids = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The nodeSetIds to add.

Returns
Type Description
SlurmPartition.Builder

This builder for chaining.

addNodeSetIds(String value)

public SlurmPartition.Builder addNodeSetIds(String value)

Required. IDs of the nodesets that make up this partition. Values must match SlurmNodeSet.id.

repeated string node_set_ids = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The nodeSetIds to add.

Returns
Type Description
SlurmPartition.Builder

This builder for chaining.

addNodeSetIdsBytes(ByteString value)

public SlurmPartition.Builder addNodeSetIdsBytes(ByteString value)

Required. IDs of the nodesets that make up this partition. Values must match SlurmNodeSet.id.

repeated string node_set_ids = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the nodeSetIds to add.

Returns
Type Description
SlurmPartition.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SlurmPartition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SlurmPartition.Builder
Overrides

build()

public SlurmPartition build()
Returns
Type Description
SlurmPartition

buildPartial()

public SlurmPartition buildPartial()
Returns
Type Description
SlurmPartition

clear()

public SlurmPartition.Builder clear()
Returns
Type Description
SlurmPartition.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SlurmPartition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SlurmPartition.Builder
Overrides

clearId()

public SlurmPartition.Builder clearId()

Required. ID of the partition, which is how users will identify it. Must conform to RFC-1034 (lower-case, alphanumeric, and at most 63 characters).

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SlurmPartition.Builder

This builder for chaining.

clearNodeSetIds()

public SlurmPartition.Builder clearNodeSetIds()

Required. IDs of the nodesets that make up this partition. Values must match SlurmNodeSet.id.

repeated string node_set_ids = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SlurmPartition.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SlurmPartition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SlurmPartition.Builder
Overrides

clone()

public SlurmPartition.Builder clone()
Returns
Type Description
SlurmPartition.Builder
Overrides

getDefaultInstanceForType()

public SlurmPartition getDefaultInstanceForType()
Returns
Type Description
SlurmPartition

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getId()

public String getId()

Required. ID of the partition, which is how users will identify it. Must conform to RFC-1034 (lower-case, alphanumeric, and at most 63 characters).

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Required. ID of the partition, which is how users will identify it. Must conform to RFC-1034 (lower-case, alphanumeric, and at most 63 characters).

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for id.

getNodeSetIds(int index)

public String getNodeSetIds(int index)

Required. IDs of the nodesets that make up this partition. Values must match SlurmNodeSet.id.

repeated string node_set_ids = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The nodeSetIds at the given index.

getNodeSetIdsBytes(int index)

public ByteString getNodeSetIdsBytes(int index)

Required. IDs of the nodesets that make up this partition. Values must match SlurmNodeSet.id.

repeated string node_set_ids = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the nodeSetIds at the given index.

getNodeSetIdsCount()

public int getNodeSetIdsCount()

Required. IDs of the nodesets that make up this partition. Values must match SlurmNodeSet.id.

repeated string node_set_ids = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of nodeSetIds.

getNodeSetIdsList()

public ProtocolStringList getNodeSetIdsList()

Required. IDs of the nodesets that make up this partition. Values must match SlurmNodeSet.id.

repeated string node_set_ids = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the nodeSetIds.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SlurmPartition other)

public SlurmPartition.Builder mergeFrom(SlurmPartition other)
Parameter
Name Description
other SlurmPartition
Returns
Type Description
SlurmPartition.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SlurmPartition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SlurmPartition.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SlurmPartition.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SlurmPartition.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SlurmPartition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SlurmPartition.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SlurmPartition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SlurmPartition.Builder
Overrides

setId(String value)

public SlurmPartition.Builder setId(String value)

Required. ID of the partition, which is how users will identify it. Must conform to RFC-1034 (lower-case, alphanumeric, and at most 63 characters).

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The id to set.

Returns
Type Description
SlurmPartition.Builder

This builder for chaining.

setIdBytes(ByteString value)

public SlurmPartition.Builder setIdBytes(ByteString value)

Required. ID of the partition, which is how users will identify it. Must conform to RFC-1034 (lower-case, alphanumeric, and at most 63 characters).

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
SlurmPartition.Builder

This builder for chaining.

setNodeSetIds(int index, String value)

public SlurmPartition.Builder setNodeSetIds(int index, String value)

Required. IDs of the nodesets that make up this partition. Values must match SlurmNodeSet.id.

repeated string node_set_ids = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The nodeSetIds to set.

Returns
Type Description
SlurmPartition.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SlurmPartition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SlurmPartition.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SlurmPartition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SlurmPartition.Builder
Overrides