Class OnPremCluster (1.31.0)

public final class OnPremCluster extends GeneratedMessageV3 implements OnPremClusterOrBuilder

OnPremCluster contains information specific to GKE On-Prem clusters.

Protobuf type google.cloud.gkehub.v1beta1.OnPremCluster

Static Fields

ADMIN_CLUSTER_FIELD_NUMBER

public static final int ADMIN_CLUSTER_FIELD_NUMBER
Field Value
TypeDescription
int

CLUSTER_MISSING_FIELD_NUMBER

public static final int CLUSTER_MISSING_FIELD_NUMBER
Field Value
TypeDescription
int

CLUSTER_TYPE_FIELD_NUMBER

public static final int CLUSTER_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int RESOURCE_LINK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static OnPremCluster getDefaultInstance()
Returns
TypeDescription
OnPremCluster

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static OnPremCluster.Builder newBuilder()
Returns
TypeDescription
OnPremCluster.Builder

newBuilder(OnPremCluster prototype)

public static OnPremCluster.Builder newBuilder(OnPremCluster prototype)
Parameter
NameDescription
prototypeOnPremCluster
Returns
TypeDescription
OnPremCluster.Builder

parseDelimitedFrom(InputStream input)

public static OnPremCluster parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OnPremCluster
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OnPremCluster parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OnPremCluster
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static OnPremCluster parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
OnPremCluster
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OnPremCluster parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OnPremCluster
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OnPremCluster parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
OnPremCluster
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OnPremCluster parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OnPremCluster
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OnPremCluster parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
OnPremCluster
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OnPremCluster parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OnPremCluster
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static OnPremCluster parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OnPremCluster
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OnPremCluster parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OnPremCluster
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static OnPremCluster parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
OnPremCluster
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OnPremCluster parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OnPremCluster
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<OnPremCluster> parser()
Returns
TypeDescription
Parser<OnPremCluster>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAdminCluster()

public boolean getAdminCluster()

Immutable. Whether the cluster is an admin cluster.

bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
boolean

The adminCluster.

getClusterMissing()

public 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The clusterMissing.

getClusterType()

public OnPremCluster.ClusterType getClusterType()

Immutable. The on prem cluster's type.

.google.cloud.gkehub.v1beta1.OnPremCluster.ClusterType cluster_type = 4 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
OnPremCluster.ClusterType

The clusterType.

getClusterTypeValue()

public int getClusterTypeValue()

Immutable. The on prem cluster's type.

.google.cloud.gkehub.v1beta1.OnPremCluster.ClusterType cluster_type = 4 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
int

The enum numeric value on the wire for clusterType.

getDefaultInstanceForType()

public OnPremCluster getDefaultInstanceForType()
Returns
TypeDescription
OnPremCluster

getParserForType()

public Parser<OnPremCluster> getParserForType()
Returns
TypeDescription
Parser<OnPremCluster>
Overrides
public 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 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The resourceLink.

getResourceLinkBytes()

public 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 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for resourceLink.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public OnPremCluster.Builder newBuilderForType()
Returns
TypeDescription
OnPremCluster.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OnPremCluster.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
OnPremCluster.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public OnPremCluster.Builder toBuilder()
Returns
TypeDescription
OnPremCluster.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException