Class Node.Builder (0.23.0)

public static final class Node.Builder extends GeneratedMessage.Builder<Node.Builder> implements NodeOrBuilder

A resource representing a compute node managed by Cluster Director.

Protobuf type google.cloud.hypercomputecluster.v1beta.Node

Implements

NodeOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Node build()
Returns
Type Description
Node

buildPartial()

public Node buildPartial()
Returns
Type Description
Node

clear()

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

clearAcceptingJobs()

public Node.Builder clearAcceptingJobs()

Output only. Indicates whether the node is available for new job allocations.

bool accepting_jobs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Node.Builder

This builder for chaining.

clearComputeEngineDetails()

public Node.Builder clearComputeEngineDetails()

Output only. Compute Engine-specific details for the node.

.google.cloud.hypercomputecluster.v1beta.ComputeEngineNodeDetails compute_engine_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Node.Builder

clearCreateTime()

public Node.Builder clearCreateTime()

Output only. Time that the node was originally created.

.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Node.Builder

clearName()

public Node.Builder clearName()

Identifier. Relative resource name of the node, in the format projects/{project}/locations/{location}/clusters/{cluster}/nodes/{node}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
Node.Builder

This builder for chaining.

clearProvisioningModel()

public Node.Builder clearProvisioningModel()

Output only. Provisioning model of the node.

.google.cloud.hypercomputecluster.v1beta.Node.ProvisioningModel provisioning_model = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Node.Builder

This builder for chaining.

clearRunningJobs()

public Node.Builder clearRunningJobs()

Output only. Indicates whether the node is currently executing workloads.

bool running_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Node.Builder

This builder for chaining.

clearSlurmDetails()

public Node.Builder clearSlurmDetails()

Output only. Slurm-specific details for the node.

.google.cloud.hypercomputecluster.v1beta.SlurmNodeDetails slurm_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Node.Builder

clearState()

public Node.Builder clearState()

Output only. High-level lifecycle state of the node.

.google.cloud.hypercomputecluster.v1beta.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Node.Builder

This builder for chaining.

clearStateMessage()

public Node.Builder clearStateMessage()

Output only. Human-readable message providing extra information about the current state.

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

Returns
Type Description
Node.Builder

This builder for chaining.

clearUpdateTime()

public Node.Builder clearUpdateTime()

Output only. Time that the node was most recently updated.

.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Node.Builder

clearZone()

public Node.Builder clearZone()

Output only. Name of the zone in which the node is running, e.g. us-central1-a.

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

Returns
Type Description
Node.Builder

This builder for chaining.

getAcceptingJobs()

public boolean getAcceptingJobs()

Output only. Indicates whether the node is available for new job allocations.

bool accepting_jobs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The acceptingJobs.

getComputeEngineDetails()

public ComputeEngineNodeDetails getComputeEngineDetails()

Output only. Compute Engine-specific details for the node.

.google.cloud.hypercomputecluster.v1beta.ComputeEngineNodeDetails compute_engine_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ComputeEngineNodeDetails

The computeEngineDetails.

getComputeEngineDetailsBuilder()

public ComputeEngineNodeDetails.Builder getComputeEngineDetailsBuilder()

Output only. Compute Engine-specific details for the node.

.google.cloud.hypercomputecluster.v1beta.ComputeEngineNodeDetails compute_engine_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ComputeEngineNodeDetails.Builder

getComputeEngineDetailsOrBuilder()

public ComputeEngineNodeDetailsOrBuilder getComputeEngineDetailsOrBuilder()

Output only. Compute Engine-specific details for the node.

.google.cloud.hypercomputecluster.v1beta.ComputeEngineNodeDetails compute_engine_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ComputeEngineNodeDetailsOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. Time that the node was originally created.

.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time that the node was originally created.

.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time that the node was originally created.

.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Node getDefaultInstanceForType()
Returns
Type Description
Node

getDescriptorForType()

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

getName()

public String getName()

Identifier. Relative resource name of the node, in the format projects/{project}/locations/{location}/clusters/{cluster}/nodes/{node}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Relative resource name of the node, in the format projects/{project}/locations/{location}/clusters/{cluster}/nodes/{node}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getProvisioningModel()

public Node.ProvisioningModel getProvisioningModel()

Output only. Provisioning model of the node.

.google.cloud.hypercomputecluster.v1beta.Node.ProvisioningModel provisioning_model = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Node.ProvisioningModel

The provisioningModel.

getProvisioningModelValue()

public int getProvisioningModelValue()

Output only. Provisioning model of the node.

.google.cloud.hypercomputecluster.v1beta.Node.ProvisioningModel provisioning_model = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for provisioningModel.

getRunningJobs()

public boolean getRunningJobs()

Output only. Indicates whether the node is currently executing workloads.

bool running_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The runningJobs.

getSlurmDetails()

public SlurmNodeDetails getSlurmDetails()

Output only. Slurm-specific details for the node.

.google.cloud.hypercomputecluster.v1beta.SlurmNodeDetails slurm_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SlurmNodeDetails

The slurmDetails.

getSlurmDetailsBuilder()

public SlurmNodeDetails.Builder getSlurmDetailsBuilder()

Output only. Slurm-specific details for the node.

.google.cloud.hypercomputecluster.v1beta.SlurmNodeDetails slurm_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SlurmNodeDetails.Builder

getSlurmDetailsOrBuilder()

public SlurmNodeDetailsOrBuilder getSlurmDetailsOrBuilder()

Output only. Slurm-specific details for the node.

.google.cloud.hypercomputecluster.v1beta.SlurmNodeDetails slurm_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SlurmNodeDetailsOrBuilder

getState()

public Node.State getState()

Output only. High-level lifecycle state of the node.

.google.cloud.hypercomputecluster.v1beta.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Node.State

The state.

getStateMessage()

public String getStateMessage()

Output only. Human-readable message providing extra information about the current state.

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

Returns
Type Description
String

The stateMessage.

getStateMessageBytes()

public ByteString getStateMessageBytes()

Output only. Human-readable message providing extra information about the current state.

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

Returns
Type Description
ByteString

The bytes for stateMessage.

getStateValue()

public int getStateValue()

Output only. High-level lifecycle state of the node.

.google.cloud.hypercomputecluster.v1beta.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time that the node was most recently updated.

.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time that the node was most recently updated.

.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time that the node was most recently updated.

.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getZone()

public String getZone()

Output only. Name of the zone in which the node is running, e.g. us-central1-a.

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

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

Output only. Name of the zone in which the node is running, e.g. us-central1-a.

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

Returns
Type Description
ByteString

The bytes for zone.

hasComputeEngineDetails()

public boolean hasComputeEngineDetails()

Output only. Compute Engine-specific details for the node.

.google.cloud.hypercomputecluster.v1beta.ComputeEngineNodeDetails compute_engine_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the computeEngineDetails field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Time that the node was originally created.

.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasSlurmDetails()

public boolean hasSlurmDetails()

Output only. Slurm-specific details for the node.

.google.cloud.hypercomputecluster.v1beta.SlurmNodeDetails slurm_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the slurmDetails field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time that the node was most recently updated.

.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeComputeEngineDetails(ComputeEngineNodeDetails value)

public Node.Builder mergeComputeEngineDetails(ComputeEngineNodeDetails value)

Output only. Compute Engine-specific details for the node.

.google.cloud.hypercomputecluster.v1beta.ComputeEngineNodeDetails compute_engine_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ComputeEngineNodeDetails
Returns
Type Description
Node.Builder

mergeCreateTime(Timestamp value)

public Node.Builder mergeCreateTime(Timestamp value)

Output only. Time that the node was originally created.

.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Node.Builder

mergeFrom(Node other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSlurmDetails(SlurmNodeDetails value)

public Node.Builder mergeSlurmDetails(SlurmNodeDetails value)

Output only. Slurm-specific details for the node.

.google.cloud.hypercomputecluster.v1beta.SlurmNodeDetails slurm_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value SlurmNodeDetails
Returns
Type Description
Node.Builder

mergeUpdateTime(Timestamp value)

public Node.Builder mergeUpdateTime(Timestamp value)

Output only. Time that the node was most recently updated.

.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Node.Builder

setAcceptingJobs(boolean value)

public Node.Builder setAcceptingJobs(boolean value)

Output only. Indicates whether the node is available for new job allocations.

bool accepting_jobs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The acceptingJobs to set.

Returns
Type Description
Node.Builder

This builder for chaining.

setComputeEngineDetails(ComputeEngineNodeDetails value)

public Node.Builder setComputeEngineDetails(ComputeEngineNodeDetails value)

Output only. Compute Engine-specific details for the node.

.google.cloud.hypercomputecluster.v1beta.ComputeEngineNodeDetails compute_engine_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ComputeEngineNodeDetails
Returns
Type Description
Node.Builder

setComputeEngineDetails(ComputeEngineNodeDetails.Builder builderForValue)

public Node.Builder setComputeEngineDetails(ComputeEngineNodeDetails.Builder builderForValue)

Output only. Compute Engine-specific details for the node.

.google.cloud.hypercomputecluster.v1beta.ComputeEngineNodeDetails compute_engine_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ComputeEngineNodeDetails.Builder
Returns
Type Description
Node.Builder

setCreateTime(Timestamp value)

public Node.Builder setCreateTime(Timestamp value)

Output only. Time that the node was originally created.

.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Node.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Node.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time that the node was originally created.

.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Node.Builder

setName(String value)

public Node.Builder setName(String value)

Identifier. Relative resource name of the node, in the format projects/{project}/locations/{location}/clusters/{cluster}/nodes/{node}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Node.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Node.Builder setNameBytes(ByteString value)

Identifier. Relative resource name of the node, in the format projects/{project}/locations/{location}/clusters/{cluster}/nodes/{node}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Node.Builder

This builder for chaining.

setProvisioningModel(Node.ProvisioningModel value)

public Node.Builder setProvisioningModel(Node.ProvisioningModel value)

Output only. Provisioning model of the node.

.google.cloud.hypercomputecluster.v1beta.Node.ProvisioningModel provisioning_model = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Node.ProvisioningModel

The provisioningModel to set.

Returns
Type Description
Node.Builder

This builder for chaining.

setProvisioningModelValue(int value)

public Node.Builder setProvisioningModelValue(int value)

Output only. Provisioning model of the node.

.google.cloud.hypercomputecluster.v1beta.Node.ProvisioningModel provisioning_model = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for provisioningModel to set.

Returns
Type Description
Node.Builder

This builder for chaining.

setRunningJobs(boolean value)

public Node.Builder setRunningJobs(boolean value)

Output only. Indicates whether the node is currently executing workloads.

bool running_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The runningJobs to set.

Returns
Type Description
Node.Builder

This builder for chaining.

setSlurmDetails(SlurmNodeDetails value)

public Node.Builder setSlurmDetails(SlurmNodeDetails value)

Output only. Slurm-specific details for the node.

.google.cloud.hypercomputecluster.v1beta.SlurmNodeDetails slurm_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value SlurmNodeDetails
Returns
Type Description
Node.Builder

setSlurmDetails(SlurmNodeDetails.Builder builderForValue)

public Node.Builder setSlurmDetails(SlurmNodeDetails.Builder builderForValue)

Output only. Slurm-specific details for the node.

.google.cloud.hypercomputecluster.v1beta.SlurmNodeDetails slurm_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue SlurmNodeDetails.Builder
Returns
Type Description
Node.Builder

setState(Node.State value)

public Node.Builder setState(Node.State value)

Output only. High-level lifecycle state of the node.

.google.cloud.hypercomputecluster.v1beta.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Node.State

The state to set.

Returns
Type Description
Node.Builder

This builder for chaining.

setStateMessage(String value)

public Node.Builder setStateMessage(String value)

Output only. Human-readable message providing extra information about the current state.

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

Parameter
Name Description
value String

The stateMessage to set.

Returns
Type Description
Node.Builder

This builder for chaining.

setStateMessageBytes(ByteString value)

public Node.Builder setStateMessageBytes(ByteString value)

Output only. Human-readable message providing extra information about the current state.

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

Parameter
Name Description
value ByteString

The bytes for stateMessage to set.

Returns
Type Description
Node.Builder

This builder for chaining.

setStateValue(int value)

public Node.Builder setStateValue(int value)

Output only. High-level lifecycle state of the node.

.google.cloud.hypercomputecluster.v1beta.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Node.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public Node.Builder setUpdateTime(Timestamp value)

Output only. Time that the node was most recently updated.

.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Node.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Node.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Time that the node was most recently updated.

.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Node.Builder

setZone(String value)

public Node.Builder setZone(String value)

Output only. Name of the zone in which the node is running, e.g. us-central1-a.

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

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
Node.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public Node.Builder setZoneBytes(ByteString value)

Output only. Name of the zone in which the node is running, e.g. us-central1-a.

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

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
Node.Builder

This builder for chaining.