# Interface OnPremClusterOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.gkehub.v1.OnPremClusterOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.gkehub.v1.OnPremClusterOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.gkehub.v1.OnPremClusterOrBuilder)

    public interface OnPremClusterOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAdminCluster()

    public abstract boolean getAdminCluster()

Immutable. Whether the cluster is an admin cluster.

`bool admin_cluster = 3;`

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

### getClusterMissing()

    public abstract boolean getClusterMissing()

Output only. If cluster_missing is set then it denotes that
API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
longer exists.

`bool cluster_missing = 2;`

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

### getClusterType()

    public abstract OnPremCluster.ClusterType getClusterType()

Immutable. The on prem cluster's type.

`.google.events.cloud.gkehub.v1.OnPremCluster.ClusterType cluster_type = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.gkehub.v1.OnPremCluster.ClusterType` | The clusterType. |

### getClusterTypeValue()

    public abstract int getClusterTypeValue()

Immutable. The on prem cluster's type.

`.google.events.cloud.gkehub.v1.OnPremCluster.ClusterType cluster_type = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for clusterType. |

### getResourceLink()

    public abstract String getResourceLink()

Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For
example:
//gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
//gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster

`string resource_link = 1;`

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

### getResourceLinkBytes()

    public abstract ByteString getResourceLinkBytes()

Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For
example:
//gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
//gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster

`string resource_link = 1;`

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