Class SlurmPartition.Builder (0.1.0)

publicstaticfinalclass SlurmPartition.BuilderextendsGeneratedMessageV3.Builder<SlurmPartition.Builder>implementsSlurmPartitionOrBuilder

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllNodeSetIds(Iterable<String> values)

publicSlurmPartition.BuilderaddAllNodeSetIds(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)

publicSlurmPartition.BuilderaddNodeSetIds(Stringvalue)

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)

publicSlurmPartition.BuilderaddNodeSetIdsBytes(ByteStringvalue)

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)

publicSlurmPartition.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SlurmPartition.Builder
Overrides

build()

publicSlurmPartitionbuild()
Returns
Type Description
SlurmPartition

buildPartial()

publicSlurmPartitionbuildPartial()
Returns
Type Description
SlurmPartition

clear()

publicSlurmPartition.Builderclear()
Returns
Type Description
SlurmPartition.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicSlurmPartition.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SlurmPartition.Builder
Overrides

clearId()

publicSlurmPartition.BuilderclearId()

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()

publicSlurmPartition.BuilderclearNodeSetIds()

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)

publicSlurmPartition.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SlurmPartition.Builder
Overrides

clone()

publicSlurmPartition.Builderclone()
Returns
Type Description
SlurmPartition.Builder
Overrides

getDefaultInstanceForType()

publicSlurmPartitiongetDefaultInstanceForType()
Returns
Type Description
SlurmPartition

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getId()

publicStringgetId()

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()

publicByteStringgetIdBytes()

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)

publicStringgetNodeSetIds(intindex)

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)

publicByteStringgetNodeSetIdsBytes(intindex)

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()

publicintgetNodeSetIdsCount()

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()

publicProtocolStringListgetNodeSetIdsList()

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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SlurmPartition other)

publicSlurmPartition.BuildermergeFrom(SlurmPartitionother)
Parameter
Name Description
other SlurmPartition
Returns
Type Description
SlurmPartition.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicSlurmPartition.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SlurmPartition.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicSlurmPartition.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
SlurmPartition.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalSlurmPartition.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SlurmPartition.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicSlurmPartition.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SlurmPartition.Builder
Overrides

setId(String value)

publicSlurmPartition.BuildersetId(Stringvalue)

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)

publicSlurmPartition.BuildersetIdBytes(ByteStringvalue)

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)

publicSlurmPartition.BuildersetNodeSetIds(intindex,Stringvalue)

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)

publicSlurmPartition.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SlurmPartition.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalSlurmPartition.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SlurmPartition.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年12月17日 UTC.