# Interface SlurmNodeSetOrBuilder (0.13.0)

0.13.0 (latest) 0.11.0 0.8.0 0.7.0 0.5.0 0.3.0 0.2.0 0.1.0

    public interface SlurmNodeSetOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getComputeId()

    public abstract String getComputeId()

Optional. ID of the compute resource on which this nodeset will run. Must
match a key in the cluster's
[compute_resources](https://docs.cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/Cluster.compute_resources).

`string compute_id = 16 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The computeId. |

### getComputeIdBytes()

    public abstract ByteString getComputeIdBytes()

Optional. ID of the compute resource on which this nodeset will run. Must
match a key in the cluster's
[compute_resources](https://docs.cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/Cluster.compute_resources).

`string compute_id = 16 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for computeId. |

### getComputeInstance()

    public abstract ComputeInstanceSlurmNodeSet getComputeInstance()

Optional. If set, indicates that the nodeset should be backed by Compute
Engine instances.

`
.google.cloud.hypercomputecluster.v1beta.ComputeInstanceSlurmNodeSet compute_instance = 17 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/com.google.cloud.hypercomputecluster.v1beta.ComputeInstanceSlurmNodeSet` | The computeInstance. |

### getComputeInstanceOrBuilder()

    public abstract ComputeInstanceSlurmNodeSetOrBuilder getComputeInstanceOrBuilder()

Optional. If set, indicates that the nodeset should be backed by Compute
Engine instances.

`
.google.cloud.hypercomputecluster.v1beta.ComputeInstanceSlurmNodeSet compute_instance = 17 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/com.google.cloud.hypercomputecluster.v1beta.ComputeInstanceSlurmNodeSetOrBuilder` |   |

### getId()

    public abstract String getId()

Required. Identifier for the nodeset, which allows it to be referenced by
partitions. 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The id. |

### getIdBytes()

    public abstract ByteString getIdBytes()

Required. Identifier for the nodeset, which allows it to be referenced by
partitions. 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** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for id. |

### getMaxDynamicNodeCount()

    public abstract long getMaxDynamicNodeCount()

Optional. Controls how many additional nodes a cluster can bring online to
handle workloads. Set this value to enable dynamic node creation and limit
the number of additional nodes the cluster can bring online. Leave empty if
you do not want the cluster to create nodes dynamically, and instead rely
only on static nodes.

`int64 max_dynamic_node_count = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The maxDynamicNodeCount. |

### getStaticNodeCount()

    public abstract long getStaticNodeCount()

Optional. Number of nodes to be statically created for this nodeset. The
cluster will attempt to ensure that at least this many nodes exist at all
times.

`int64 static_node_count = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The staticNodeCount. |

### getStorageConfigs(int index)

    public abstract StorageConfig getStorageConfigs(int index)

Optional. How storage resources should
be mounted on each compute node.

`
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/com.google.cloud.hypercomputecluster.v1beta.StorageConfig` |   |

### getStorageConfigsCount()

    public abstract int getStorageConfigsCount()

Optional. How storage resources should
be mounted on each compute node.

`
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getStorageConfigsList()

    public abstract List<StorageConfig> getStorageConfigsList()

Optional. How storage resources should
be mounted on each compute node.

`
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/com.google.cloud.hypercomputecluster.v1beta.StorageConfig>` |   |

### getStorageConfigsOrBuilder(int index)

    public abstract StorageConfigOrBuilder getStorageConfigsOrBuilder(int index)

Optional. How storage resources should
be mounted on each compute node.

`
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/com.google.cloud.hypercomputecluster.v1beta.StorageConfigOrBuilder` |   |

### getStorageConfigsOrBuilderList()

    public abstract List<? extends StorageConfigOrBuilder> getStorageConfigsOrBuilderList()

Optional. How storage resources should
be mounted on each compute node.

`
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.hypercomputecluster.v1beta.StorageConfigOrBuilder>` |   |

### getTypeCase()

    public abstract SlurmNodeSet.TypeCase getTypeCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/com.google.cloud.hypercomputecluster.v1beta.SlurmNodeSet.TypeCase` |   |

### hasComputeInstance()

    public abstract boolean hasComputeInstance()

Optional. If set, indicates that the nodeset should be backed by Compute
Engine instances.

`
.google.cloud.hypercomputecluster.v1beta.ComputeInstanceSlurmNodeSet compute_instance = 17 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the computeInstance field is set. |