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

## Implements

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

## Methods

### getConfigCase()

    public abstract ComputeResourceConfig.ConfigCase getConfigCase()

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

### getNewFlexStartInstances()

    public abstract NewFlexStartInstancesConfig getNewFlexStartInstances()

Optional. Immutable. If set, indicates that this resource should use
flex-start VMs.

`
.google.cloud.hypercomputecluster.v1beta.NewFlexStartInstancesConfig new_flex_start_instances = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
`

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

### getNewFlexStartInstancesOrBuilder()

    public abstract NewFlexStartInstancesConfigOrBuilder getNewFlexStartInstancesOrBuilder()

Optional. Immutable. If set, indicates that this resource should use
flex-start VMs.

`
.google.cloud.hypercomputecluster.v1beta.NewFlexStartInstancesConfig new_flex_start_instances = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
`

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

### getNewOnDemandInstances()

    public abstract NewOnDemandInstancesConfig getNewOnDemandInstances()

Optional. Immutable. If set, indicates that this resource should use
on-demand VMs.

`
.google.cloud.hypercomputecluster.v1beta.NewOnDemandInstancesConfig new_on_demand_instances = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
`

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

### getNewOnDemandInstancesOrBuilder()

    public abstract NewOnDemandInstancesConfigOrBuilder getNewOnDemandInstancesOrBuilder()

Optional. Immutable. If set, indicates that this resource should use
on-demand VMs.

`
.google.cloud.hypercomputecluster.v1beta.NewOnDemandInstancesConfig new_on_demand_instances = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
`

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

### getNewReservedInstances()

    public abstract NewReservedInstancesConfig getNewReservedInstances()

Optional. Immutable. If set, indicates that this resource should use
reserved VMs.

`
.google.cloud.hypercomputecluster.v1beta.NewReservedInstancesConfig new_reserved_instances = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
`

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

### getNewReservedInstancesOrBuilder()

    public abstract NewReservedInstancesConfigOrBuilder getNewReservedInstancesOrBuilder()

Optional. Immutable. If set, indicates that this resource should use
reserved VMs.

`
.google.cloud.hypercomputecluster.v1beta.NewReservedInstancesConfig new_reserved_instances = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
`

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

### getNewSpotInstances()

    public abstract NewSpotInstancesConfig getNewSpotInstances()

Optional. Immutable. If set, indicates that this resource should use spot
VMs.

`
.google.cloud.hypercomputecluster.v1beta.NewSpotInstancesConfig new_spot_instances = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
`

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

### getNewSpotInstancesOrBuilder()

    public abstract NewSpotInstancesConfigOrBuilder getNewSpotInstancesOrBuilder()

Optional. Immutable. If set, indicates that this resource should use spot
VMs.

`
.google.cloud.hypercomputecluster.v1beta.NewSpotInstancesConfig new_spot_instances = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
`

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

### hasNewFlexStartInstances()

    public abstract boolean hasNewFlexStartInstances()

Optional. Immutable. If set, indicates that this resource should use
flex-start VMs.

`
.google.cloud.hypercomputecluster.v1beta.NewFlexStartInstancesConfig new_flex_start_instances = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
`

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

### hasNewOnDemandInstances()

    public abstract boolean hasNewOnDemandInstances()

Optional. Immutable. If set, indicates that this resource should use
on-demand VMs.

`
.google.cloud.hypercomputecluster.v1beta.NewOnDemandInstancesConfig new_on_demand_instances = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
`

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

### hasNewReservedInstances()

    public abstract boolean hasNewReservedInstances()

Optional. Immutable. If set, indicates that this resource should use
reserved VMs.

`
.google.cloud.hypercomputecluster.v1beta.NewReservedInstancesConfig new_reserved_instances = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
`

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

### hasNewSpotInstances()

    public abstract boolean hasNewSpotInstances()

Optional. Immutable. If set, indicates that this resource should use spot
VMs.

`
.google.cloud.hypercomputecluster.v1beta.NewSpotInstancesConfig new_spot_instances = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
`

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