Class MultiCloudCluster.Builder (1.27.0)

public static final class MultiCloudCluster.Builder extends GeneratedMessageV3.Builder<MultiCloudCluster.Builder> implements MultiCloudClusterOrBuilder

MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.

Protobuf type google.cloud.gkehub.v1beta1.MultiCloudCluster

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MultiCloudCluster build()
Returns
TypeDescription
MultiCloudCluster

buildPartial()

public MultiCloudCluster buildPartial()
Returns
TypeDescription
MultiCloudCluster

clear()

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

clearClusterMissing()

public MultiCloudCluster.Builder clearClusterMissing()

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

bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MultiCloudCluster.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For example:

//gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsClusters/my-cluster //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azureClusters/my-cluster //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/attachedClusters/my-cluster

string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
MultiCloudCluster.Builder

This builder for chaining.

clone()

public MultiCloudCluster.Builder clone()
Returns
TypeDescription
MultiCloudCluster.Builder
Overrides

getClusterMissing()

public boolean getClusterMissing()

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

bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The clusterMissing.

getDefaultInstanceForType()

public MultiCloudCluster getDefaultInstanceForType()
Returns
TypeDescription
MultiCloudCluster

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides
public String getResourceLink()

Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For example:

//gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsClusters/my-cluster //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azureClusters/my-cluster //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/attachedClusters/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 Multi-Cloud cluster. For example:

//gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsClusters/my-cluster //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azureClusters/my-cluster //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/attachedClusters/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(MultiCloudCluster other)

public MultiCloudCluster.Builder mergeFrom(MultiCloudCluster other)
Parameter
NameDescription
otherMultiCloudCluster
Returns
TypeDescription
MultiCloudCluster.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setClusterMissing(boolean value)

public MultiCloudCluster.Builder setClusterMissing(boolean value)

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

bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueboolean

The clusterMissing to set.

Returns
TypeDescription
MultiCloudCluster.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For example:

//gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsClusters/my-cluster //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azureClusters/my-cluster //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/attachedClusters/my-cluster

string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueString

The resourceLink to set.

Returns
TypeDescription
MultiCloudCluster.Builder

This builder for chaining.

setResourceLinkBytes(ByteString value)

public MultiCloudCluster.Builder setResourceLinkBytes(ByteString value)

Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For example:

//gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsClusters/my-cluster //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azureClusters/my-cluster //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/attachedClusters/my-cluster

string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueByteString

The bytes for resourceLink to set.

Returns
TypeDescription
MultiCloudCluster.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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