Class MembershipEndpoint.Builder (1.51.0)

public static final class MembershipEndpoint.Builder extends GeneratedMessageV3.Builder<MembershipEndpoint.Builder> implements MembershipEndpointOrBuilder

MembershipEndpoint contains information needed to contact a Kubernetes API, endpoint and any additional Kubernetes metadata.

Protobuf type google.cloud.gkehub.v1.MembershipEndpoint

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MembershipEndpoint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MembershipEndpoint.Builder
Overrides

build()

public MembershipEndpoint build()
Returns
Type Description
MembershipEndpoint

buildPartial()

public MembershipEndpoint buildPartial()
Returns
Type Description
MembershipEndpoint

clear()

public MembershipEndpoint.Builder clear()
Returns
Type Description
MembershipEndpoint.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public MembershipEndpoint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MembershipEndpoint.Builder
Overrides

clearGkeCluster()

public MembershipEndpoint.Builder clearGkeCluster()

Optional. GKE-specific information. Only present if this Membership is a GKE cluster.

.google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MembershipEndpoint.Builder

clearGoogleManaged()

public MembershipEndpoint.Builder clearGoogleManaged()

Output only. Whether the lifecycle of this membership is managed by a google cluster platform service.

bool google_managed = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MembershipEndpoint.Builder

This builder for chaining.

clearKubernetesMetadata()

public MembershipEndpoint.Builder clearKubernetesMetadata()

Output only. Useful Kubernetes-specific metadata.

.google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MembershipEndpoint.Builder

clearKubernetesResource()

public MembershipEndpoint.Builder clearKubernetesResource()

Optional. The in-cluster Kubernetes Resources that should be applied for a correctly registered cluster, in the steady state. These resources:

  • Ensure that the cluster is exclusively registered to one and only one Hub Membership.
  • Propagate Workload Pool Information available in the Membership Authority field.
  • Ensure proper initial configuration of default Hub Features.

.google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MembershipEndpoint.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public MembershipEndpoint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MembershipEndpoint.Builder
Overrides

clone()

public MembershipEndpoint.Builder clone()
Returns
Type Description
MembershipEndpoint.Builder
Overrides

getDefaultInstanceForType()

public MembershipEndpoint getDefaultInstanceForType()
Returns
Type Description
MembershipEndpoint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGkeCluster()

public GkeCluster getGkeCluster()

Optional. GKE-specific information. Only present if this Membership is a GKE cluster.

.google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GkeCluster

The gkeCluster.

getGkeClusterBuilder()

public GkeCluster.Builder getGkeClusterBuilder()

Optional. GKE-specific information. Only present if this Membership is a GKE cluster.

.google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GkeCluster.Builder

getGkeClusterOrBuilder()

public GkeClusterOrBuilder getGkeClusterOrBuilder()

Optional. GKE-specific information. Only present if this Membership is a GKE cluster.

.google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GkeClusterOrBuilder

getGoogleManaged()

public boolean getGoogleManaged()

Output only. Whether the lifecycle of this membership is managed by a google cluster platform service.

bool google_managed = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The googleManaged.

getKubernetesMetadata()

public KubernetesMetadata getKubernetesMetadata()

Output only. Useful Kubernetes-specific metadata.

.google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KubernetesMetadata

The kubernetesMetadata.

getKubernetesMetadataBuilder()

public KubernetesMetadata.Builder getKubernetesMetadataBuilder()

Output only. Useful Kubernetes-specific metadata.

.google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KubernetesMetadata.Builder

getKubernetesMetadataOrBuilder()

public KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder()

Output only. Useful Kubernetes-specific metadata.

.google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KubernetesMetadataOrBuilder

getKubernetesResource()

public KubernetesResource getKubernetesResource()

Optional. The in-cluster Kubernetes Resources that should be applied for a correctly registered cluster, in the steady state. These resources:

  • Ensure that the cluster is exclusively registered to one and only one Hub Membership.
  • Propagate Workload Pool Information available in the Membership Authority field.
  • Ensure proper initial configuration of default Hub Features.

.google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
KubernetesResource

The kubernetesResource.

getKubernetesResourceBuilder()

public KubernetesResource.Builder getKubernetesResourceBuilder()

Optional. The in-cluster Kubernetes Resources that should be applied for a correctly registered cluster, in the steady state. These resources:

  • Ensure that the cluster is exclusively registered to one and only one Hub Membership.
  • Propagate Workload Pool Information available in the Membership Authority field.
  • Ensure proper initial configuration of default Hub Features.

.google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
KubernetesResource.Builder

getKubernetesResourceOrBuilder()

public KubernetesResourceOrBuilder getKubernetesResourceOrBuilder()

Optional. The in-cluster Kubernetes Resources that should be applied for a correctly registered cluster, in the steady state. These resources:

  • Ensure that the cluster is exclusively registered to one and only one Hub Membership.
  • Propagate Workload Pool Information available in the Membership Authority field.
  • Ensure proper initial configuration of default Hub Features.

.google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
KubernetesResourceOrBuilder

hasGkeCluster()

public boolean hasGkeCluster()

Optional. GKE-specific information. Only present if this Membership is a GKE cluster.

.google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the gkeCluster field is set.

hasKubernetesMetadata()

public boolean hasKubernetesMetadata()

Output only. Useful Kubernetes-specific metadata.

.google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the kubernetesMetadata field is set.

hasKubernetesResource()

public boolean hasKubernetesResource()

Optional. The in-cluster Kubernetes Resources that should be applied for a correctly registered cluster, in the steady state. These resources:

  • Ensure that the cluster is exclusively registered to one and only one Hub Membership.
  • Propagate Workload Pool Information available in the Membership Authority field.
  • Ensure proper initial configuration of default Hub Features.

.google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the kubernetesResource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MembershipEndpoint other)

public MembershipEndpoint.Builder mergeFrom(MembershipEndpoint other)
Parameter
Name Description
other MembershipEndpoint
Returns
Type Description
MembershipEndpoint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MembershipEndpoint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MembershipEndpoint.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MembershipEndpoint.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MembershipEndpoint.Builder
Overrides

mergeGkeCluster(GkeCluster value)

public MembershipEndpoint.Builder mergeGkeCluster(GkeCluster value)

Optional. GKE-specific information. Only present if this Membership is a GKE cluster.

.google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value GkeCluster
Returns
Type Description
MembershipEndpoint.Builder

mergeKubernetesMetadata(KubernetesMetadata value)

public MembershipEndpoint.Builder mergeKubernetesMetadata(KubernetesMetadata value)

Output only. Useful Kubernetes-specific metadata.

.google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value KubernetesMetadata
Returns
Type Description
MembershipEndpoint.Builder

mergeKubernetesResource(KubernetesResource value)

public MembershipEndpoint.Builder mergeKubernetesResource(KubernetesResource value)

Optional. The in-cluster Kubernetes Resources that should be applied for a correctly registered cluster, in the steady state. These resources:

  • Ensure that the cluster is exclusively registered to one and only one Hub Membership.
  • Propagate Workload Pool Information available in the Membership Authority field.
  • Ensure proper initial configuration of default Hub Features.

.google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value KubernetesResource
Returns
Type Description
MembershipEndpoint.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MembershipEndpoint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MembershipEndpoint.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public MembershipEndpoint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MembershipEndpoint.Builder
Overrides

setGkeCluster(GkeCluster value)

public MembershipEndpoint.Builder setGkeCluster(GkeCluster value)

Optional. GKE-specific information. Only present if this Membership is a GKE cluster.

.google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value GkeCluster
Returns
Type Description
MembershipEndpoint.Builder

setGkeCluster(GkeCluster.Builder builderForValue)

public MembershipEndpoint.Builder setGkeCluster(GkeCluster.Builder builderForValue)

Optional. GKE-specific information. Only present if this Membership is a GKE cluster.

.google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue GkeCluster.Builder
Returns
Type Description
MembershipEndpoint.Builder

setGoogleManaged(boolean value)

public MembershipEndpoint.Builder setGoogleManaged(boolean value)

Output only. Whether the lifecycle of this membership is managed by a google cluster platform service.

bool google_managed = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The googleManaged to set.

Returns
Type Description
MembershipEndpoint.Builder

This builder for chaining.

setKubernetesMetadata(KubernetesMetadata value)

public MembershipEndpoint.Builder setKubernetesMetadata(KubernetesMetadata value)

Output only. Useful Kubernetes-specific metadata.

.google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value KubernetesMetadata
Returns
Type Description
MembershipEndpoint.Builder

setKubernetesMetadata(KubernetesMetadata.Builder builderForValue)

public MembershipEndpoint.Builder setKubernetesMetadata(KubernetesMetadata.Builder builderForValue)

Output only. Useful Kubernetes-specific metadata.

.google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue KubernetesMetadata.Builder
Returns
Type Description
MembershipEndpoint.Builder

setKubernetesResource(KubernetesResource value)

public MembershipEndpoint.Builder setKubernetesResource(KubernetesResource value)

Optional. The in-cluster Kubernetes Resources that should be applied for a correctly registered cluster, in the steady state. These resources:

  • Ensure that the cluster is exclusively registered to one and only one Hub Membership.
  • Propagate Workload Pool Information available in the Membership Authority field.
  • Ensure proper initial configuration of default Hub Features.

.google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value KubernetesResource
Returns
Type Description
MembershipEndpoint.Builder

setKubernetesResource(KubernetesResource.Builder builderForValue)

public MembershipEndpoint.Builder setKubernetesResource(KubernetesResource.Builder builderForValue)

Optional. The in-cluster Kubernetes Resources that should be applied for a correctly registered cluster, in the steady state. These resources:

  • Ensure that the cluster is exclusively registered to one and only one Hub Membership.
  • Propagate Workload Pool Information available in the Membership Authority field.
  • Ensure proper initial configuration of default Hub Features.

.google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue KubernetesResource.Builder
Returns
Type Description
MembershipEndpoint.Builder

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

public MembershipEndpoint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MembershipEndpoint.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MembershipEndpoint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MembershipEndpoint.Builder
Overrides