Class SlurmNodeDetails.Builder (0.23.0)

public static final class SlurmNodeDetails.Builder extends GeneratedMessage.Builder<SlurmNodeDetails.Builder> implements SlurmNodeDetailsOrBuilder

Slurm-specific details for a Node.

Protobuf type google.cloud.hypercomputecluster.v1beta.SlurmNodeDetails

Static Methods

getDescriptor()

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

Methods

addAllPartitions(Iterable<String> values)

public SlurmNodeDetails.Builder addAllPartitions(Iterable<String> values)

Output only. Slurm partitions this node belongs to.

repeated string partitions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The partitions to add.

Returns
Type Description
SlurmNodeDetails.Builder

This builder for chaining.

addAllStates(Iterable<String> values)

public SlurmNodeDetails.Builder addAllStates(Iterable<String> values)

Output only. Raw state flags directly from Slurm.

repeated string states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The states to add.

Returns
Type Description
SlurmNodeDetails.Builder

This builder for chaining.

addPartitions(String value)

public SlurmNodeDetails.Builder addPartitions(String value)

Output only. Slurm partitions this node belongs to.

repeated string partitions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The partitions to add.

Returns
Type Description
SlurmNodeDetails.Builder

This builder for chaining.

addPartitionsBytes(ByteString value)

public SlurmNodeDetails.Builder addPartitionsBytes(ByteString value)

Output only. Slurm partitions this node belongs to.

repeated string partitions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the partitions to add.

Returns
Type Description
SlurmNodeDetails.Builder

This builder for chaining.

addStates(String value)

public SlurmNodeDetails.Builder addStates(String value)

Output only. Raw state flags directly from Slurm.

repeated string states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The states to add.

Returns
Type Description
SlurmNodeDetails.Builder

This builder for chaining.

addStatesBytes(ByteString value)

public SlurmNodeDetails.Builder addStatesBytes(ByteString value)

Output only. Raw state flags directly from Slurm.

repeated string states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the states to add.

Returns
Type Description
SlurmNodeDetails.Builder

This builder for chaining.

build()

public SlurmNodeDetails build()
Returns
Type Description
SlurmNodeDetails

buildPartial()

public SlurmNodeDetails buildPartial()
Returns
Type Description
SlurmNodeDetails

clear()

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

clearComment()

public SlurmNodeDetails.Builder clearComment()

Output only. System comments from Slurm.

string comment = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SlurmNodeDetails.Builder

This builder for chaining.

clearNodeset()

public SlurmNodeDetails.Builder clearNodeset()

Output only. The ID of the nodeset this node belongs to.

string nodeset = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SlurmNodeDetails.Builder

This builder for chaining.

clearPartitions()

public SlurmNodeDetails.Builder clearPartitions()

Output only. Slurm partitions this node belongs to.

repeated string partitions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SlurmNodeDetails.Builder

This builder for chaining.

clearReason()

public SlurmNodeDetails.Builder clearReason()

Output only. User-readable reason for the current state.

string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SlurmNodeDetails.Builder

This builder for chaining.

clearStates()

public SlurmNodeDetails.Builder clearStates()

Output only. Raw state flags directly from Slurm.

repeated string states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SlurmNodeDetails.Builder

This builder for chaining.

getComment()

public String getComment()

Output only. System comments from Slurm.

string comment = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The comment.

getCommentBytes()

public ByteString getCommentBytes()

Output only. System comments from Slurm.

string comment = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for comment.

getDefaultInstanceForType()

public SlurmNodeDetails getDefaultInstanceForType()
Returns
Type Description
SlurmNodeDetails

getDescriptorForType()

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

getNodeset()

public String getNodeset()

Output only. The ID of the nodeset this node belongs to.

string nodeset = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The nodeset.

getNodesetBytes()

public ByteString getNodesetBytes()

Output only. The ID of the nodeset this node belongs to.

string nodeset = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for nodeset.

getPartitions(int index)

public String getPartitions(int index)

Output only. Slurm partitions this node belongs to.

repeated string partitions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The partitions at the given index.

getPartitionsBytes(int index)

public ByteString getPartitionsBytes(int index)

Output only. Slurm partitions this node belongs to.

repeated string partitions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the partitions at the given index.

getPartitionsCount()

public int getPartitionsCount()

Output only. Slurm partitions this node belongs to.

repeated string partitions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of partitions.

getPartitionsList()

public ProtocolStringList getPartitionsList()

Output only. Slurm partitions this node belongs to.

repeated string partitions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the partitions.

getReason()

public String getReason()

Output only. User-readable reason for the current state.

string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The reason.

getReasonBytes()

public ByteString getReasonBytes()

Output only. User-readable reason for the current state.

string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for reason.

getStates(int index)

public String getStates(int index)

Output only. Raw state flags directly from Slurm.

repeated string states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The states at the given index.

getStatesBytes(int index)

public ByteString getStatesBytes(int index)

Output only. Raw state flags directly from Slurm.

repeated string states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the states at the given index.

getStatesCount()

public int getStatesCount()

Output only. Raw state flags directly from Slurm.

repeated string states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of states.

getStatesList()

public ProtocolStringList getStatesList()

Output only. Raw state flags directly from Slurm.

repeated string states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the states.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SlurmNodeDetails other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setComment(String value)

public SlurmNodeDetails.Builder setComment(String value)

Output only. System comments from Slurm.

string comment = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The comment to set.

Returns
Type Description
SlurmNodeDetails.Builder

This builder for chaining.

setCommentBytes(ByteString value)

public SlurmNodeDetails.Builder setCommentBytes(ByteString value)

Output only. System comments from Slurm.

string comment = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for comment to set.

Returns
Type Description
SlurmNodeDetails.Builder

This builder for chaining.

setNodeset(String value)

public SlurmNodeDetails.Builder setNodeset(String value)

Output only. The ID of the nodeset this node belongs to.

string nodeset = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The nodeset to set.

Returns
Type Description
SlurmNodeDetails.Builder

This builder for chaining.

setNodesetBytes(ByteString value)

public SlurmNodeDetails.Builder setNodesetBytes(ByteString value)

Output only. The ID of the nodeset this node belongs to.

string nodeset = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for nodeset to set.

Returns
Type Description
SlurmNodeDetails.Builder

This builder for chaining.

setPartitions(int index, String value)

public SlurmNodeDetails.Builder setPartitions(int index, String value)

Output only. Slurm partitions this node belongs to.

repeated string partitions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The partitions to set.

Returns
Type Description
SlurmNodeDetails.Builder

This builder for chaining.

setReason(String value)

public SlurmNodeDetails.Builder setReason(String value)

Output only. User-readable reason for the current state.

string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The reason to set.

Returns
Type Description
SlurmNodeDetails.Builder

This builder for chaining.

setReasonBytes(ByteString value)

public SlurmNodeDetails.Builder setReasonBytes(ByteString value)

Output only. User-readable reason for the current state.

string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for reason to set.

Returns
Type Description
SlurmNodeDetails.Builder

This builder for chaining.

setStates(int index, String value)

public SlurmNodeDetails.Builder setStates(int index, String value)

Output only. Raw state flags directly from Slurm.

repeated string states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The states to set.

Returns
Type Description
SlurmNodeDetails.Builder

This builder for chaining.