Class OnPremCluster.Builder (1.30.0)

public static final class OnPremCluster.Builder extends GeneratedMessageV3.Builder<OnPremCluster.Builder> implements OnPremClusterOrBuilder

OnPremCluster contains information specific to GKE On-Prem clusters.

Protobuf type google.cloud.gkehub.v1alpha2.OnPremCluster

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OnPremCluster.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OnPremCluster.Builder
Overrides

build()

public OnPremCluster build()
Returns
TypeDescription
OnPremCluster

buildPartial()

public OnPremCluster buildPartial()
Returns
TypeDescription
OnPremCluster

clear()

public OnPremCluster.Builder clear()
Returns
TypeDescription
OnPremCluster.Builder
Overrides

clearAdminCluster()

public OnPremCluster.Builder clearAdminCluster()

Immutable. Whether the cluster is an admin cluster.

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

Returns
TypeDescription
OnPremCluster.Builder

This builder for chaining.

clearClusterMissing()

public OnPremCluster.Builder clearClusterMissing()

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
OnPremCluster.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public OnPremCluster.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
OnPremCluster.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public OnPremCluster.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
OnPremCluster.Builder
Overrides
public OnPremCluster.Builder clearResourceLink()

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
OnPremCluster.Builder

This builder for chaining.

clone()

public OnPremCluster.Builder clone()
Returns
TypeDescription
OnPremCluster.Builder
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.

getDefaultInstanceForType()

public OnPremCluster getDefaultInstanceForType()
Returns
TypeDescription
OnPremCluster

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OnPremCluster other)

public OnPremCluster.Builder mergeFrom(OnPremCluster other)
Parameter
NameDescription
otherOnPremCluster
Returns
TypeDescription
OnPremCluster.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OnPremCluster.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OnPremCluster.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public OnPremCluster.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
OnPremCluster.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OnPremCluster.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OnPremCluster.Builder
Overrides

setAdminCluster(boolean value)

public OnPremCluster.Builder setAdminCluster(boolean value)

Immutable. Whether the cluster is an admin cluster.

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

Parameter
NameDescription
valueboolean

The adminCluster to set.

Returns
TypeDescription
OnPremCluster.Builder

This builder for chaining.

setClusterMissing(boolean value)

public OnPremCluster.Builder setClusterMissing(boolean value)

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];

Parameter
NameDescription
valueboolean

The clusterMissing to set.

Returns
TypeDescription
OnPremCluster.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public OnPremCluster.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OnPremCluster.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OnPremCluster.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
OnPremCluster.Builder
Overrides
public OnPremCluster.Builder setResourceLink(String value)

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];

Parameter
NameDescription
valueString

The resourceLink to set.

Returns
TypeDescription
OnPremCluster.Builder

This builder for chaining.

setResourceLinkBytes(ByteString value)

public OnPremCluster.Builder setResourceLinkBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for resourceLink to set.

Returns
TypeDescription
OnPremCluster.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final OnPremCluster.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OnPremCluster.Builder
Overrides