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

## Implements

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

## Methods

### containsLabels(String key)

    public abstract boolean containsLabels(String key)

Optional.
[Labels](https://cloud.google.com/compute/docs/labeling-resources) that
should be applied to each VM instance in the nodeset.

`map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getBootDisk()

    public abstract BootDisk getBootDisk()

Optional. Boot disk for the compute instance

`
.google.cloud.hypercomputecluster.v1beta.BootDisk boot_disk = 3 [(.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.BootDisk` | The bootDisk. |

### getBootDiskOrBuilder()

    public abstract BootDiskOrBuilder getBootDiskOrBuilder()

Optional. Boot disk for the compute instance

`
.google.cloud.hypercomputecluster.v1beta.BootDisk boot_disk = 3 [(.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.BootDiskOrBuilder` |   |

### getLabels() (deprecated)

    public abstract Map<String,String> getLabels()

Use [#getLabelsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/com.google.cloud.hypercomputecluster.v1beta.ComputeInstanceSlurmNodeSetOrBuilder#com_google_cloud_hypercomputecluster_v1beta_ComputeInstanceSlurmNodeSetOrBuilder_getLabelsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsCount()

    public abstract int getLabelsCount()

Optional.
[Labels](https://cloud.google.com/compute/docs/labeling-resources) that
should be applied to each VM instance in the nodeset.

`map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getLabelsMap()

    public abstract Map<String,String> getLabelsMap()

Optional.
[Labels](https://cloud.google.com/compute/docs/labeling-resources) that
should be applied to each VM instance in the nodeset.

`map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsOrDefault(String key, String defaultValue)

    public abstract String getLabelsOrDefault(String key, String defaultValue)

Optional.
[Labels](https://cloud.google.com/compute/docs/labeling-resources) that
should be applied to each VM instance in the nodeset.

`map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getLabelsOrThrow(String key)

    public abstract String getLabelsOrThrow(String key)

Optional.
[Labels](https://cloud.google.com/compute/docs/labeling-resources) that
should be applied to each VM instance in the nodeset.

`map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getStartupScript()

    public abstract String getStartupScript()

Optional. [Startup
script](https://cloud.google.com/compute/docs/instances/startup-scripts/linux)
to be run on each VM instance in the nodeset. Max 256KB.

`string startup_script = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### getStartupScriptBytes()

    public abstract ByteString getStartupScriptBytes()

Optional. [Startup
script](https://cloud.google.com/compute/docs/instances/startup-scripts/linux)
to be run on each VM instance in the nodeset. Max 256KB.

`string startup_script = 1 [(.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 startupScript. |

### hasBootDisk()

    public abstract boolean hasBootDisk()

Optional. Boot disk for the compute instance

`
.google.cloud.hypercomputecluster.v1beta.BootDisk boot_disk = 3 [(.google.api.field_behavior) = OPTIONAL];
`

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