# Interface SlurmPartitionOrBuilder (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 SlurmPartitionOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getId()

    public abstract String getId()

Required. ID of the partition, which is how users will identify it. 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. ID of the partition, which is how users will identify it. 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. |

### getNodeSetIds(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The nodeSetIds at the given index. |

### getNodeSetIdsBytes(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the nodeSetIds at the given index. |

### getNodeSetIdsCount()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of nodeSetIds. |

### getNodeSetIdsList()

    public abstract List<String> 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the nodeSetIds. |