Class MembershipEndpoint.Builder (1.33.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.v1alpha2.MembershipEndpoint

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MembershipEndpoint build()
Returns
TypeDescription
MembershipEndpoint

buildPartial()

public MembershipEndpoint buildPartial()
Returns
TypeDescription
MembershipEndpoint

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGkeCluster()

public MembershipEndpoint.Builder clearGkeCluster()

Optional. Specific information for a GKE-on-GCP cluster.

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

Returns
TypeDescription
MembershipEndpoint.Builder

clearKubernetesMetadata()

public MembershipEndpoint.Builder clearKubernetesMetadata()

Output only. Useful Kubernetes-specific metadata.

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

Returns
TypeDescription
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.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MembershipEndpoint.Builder

clearMultiCloudCluster()

public MembershipEndpoint.Builder clearMultiCloudCluster()

Optional. Specific information for a GKE Multi-Cloud cluster.

.google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MembershipEndpoint.Builder

clearOnPremCluster()

public MembershipEndpoint.Builder clearOnPremCluster()

Optional. Specific information for a GKE On-Prem cluster.

.google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MembershipEndpoint.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearType()

public MembershipEndpoint.Builder clearType()
Returns
TypeDescription
MembershipEndpoint.Builder

clone()

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

getDefaultInstanceForType()

public MembershipEndpoint getDefaultInstanceForType()
Returns
TypeDescription
MembershipEndpoint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGkeCluster()

public GkeCluster getGkeCluster()

Optional. Specific information for a GKE-on-GCP cluster.

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

Returns
TypeDescription
GkeCluster

The gkeCluster.

getGkeClusterBuilder()

public GkeCluster.Builder getGkeClusterBuilder()

Optional. Specific information for a GKE-on-GCP cluster.

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

Returns
TypeDescription
GkeCluster.Builder

getGkeClusterOrBuilder()

public GkeClusterOrBuilder getGkeClusterOrBuilder()

Optional. Specific information for a GKE-on-GCP cluster.

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

Returns
TypeDescription
GkeClusterOrBuilder

getKubernetesMetadata()

public KubernetesMetadata getKubernetesMetadata()

Output only. Useful Kubernetes-specific metadata.

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

Returns
TypeDescription
KubernetesMetadata

The kubernetesMetadata.

getKubernetesMetadataBuilder()

public KubernetesMetadata.Builder getKubernetesMetadataBuilder()

Output only. Useful Kubernetes-specific metadata.

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

Returns
TypeDescription
KubernetesMetadata.Builder

getKubernetesMetadataOrBuilder()

public KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder()

Output only. Useful Kubernetes-specific metadata.

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

Returns
TypeDescription
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.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
KubernetesResourceOrBuilder

getMultiCloudCluster()

public MultiCloudCluster getMultiCloudCluster()

Optional. Specific information for a GKE Multi-Cloud cluster.

.google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MultiCloudCluster

The multiCloudCluster.

getMultiCloudClusterBuilder()

public MultiCloudCluster.Builder getMultiCloudClusterBuilder()

Optional. Specific information for a GKE Multi-Cloud cluster.

.google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MultiCloudCluster.Builder

getMultiCloudClusterOrBuilder()

public MultiCloudClusterOrBuilder getMultiCloudClusterOrBuilder()

Optional. Specific information for a GKE Multi-Cloud cluster.

.google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MultiCloudClusterOrBuilder

getOnPremCluster()

public OnPremCluster getOnPremCluster()

Optional. Specific information for a GKE On-Prem cluster.

.google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
OnPremCluster

The onPremCluster.

getOnPremClusterBuilder()

public OnPremCluster.Builder getOnPremClusterBuilder()

Optional. Specific information for a GKE On-Prem cluster.

.google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
OnPremCluster.Builder

getOnPremClusterOrBuilder()

public OnPremClusterOrBuilder getOnPremClusterOrBuilder()

Optional. Specific information for a GKE On-Prem cluster.

.google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
OnPremClusterOrBuilder

getTypeCase()

public MembershipEndpoint.TypeCase getTypeCase()
Returns
TypeDescription
MembershipEndpoint.TypeCase

hasGkeCluster()

public boolean hasGkeCluster()

Optional. Specific information for a GKE-on-GCP cluster.

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

Returns
TypeDescription
boolean

Whether the gkeCluster field is set.

hasKubernetesMetadata()

public boolean hasKubernetesMetadata()

Output only. Useful Kubernetes-specific metadata.

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

Returns
TypeDescription
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.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the kubernetesResource field is set.

hasMultiCloudCluster()

public boolean hasMultiCloudCluster()

Optional. Specific information for a GKE Multi-Cloud cluster.

.google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the multiCloudCluster field is set.

hasOnPremCluster()

public boolean hasOnPremCluster()

Optional. Specific information for a GKE On-Prem cluster.

.google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the onPremCluster field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MembershipEndpoint other)

public MembershipEndpoint.Builder mergeFrom(MembershipEndpoint other)
Parameter
NameDescription
otherMembershipEndpoint
Returns
TypeDescription
MembershipEndpoint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGkeCluster(GkeCluster value)

public MembershipEndpoint.Builder mergeGkeCluster(GkeCluster value)

Optional. Specific information for a GKE-on-GCP cluster.

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

Parameter
NameDescription
valueGkeCluster
Returns
TypeDescription
MembershipEndpoint.Builder

mergeKubernetesMetadata(KubernetesMetadata value)

public MembershipEndpoint.Builder mergeKubernetesMetadata(KubernetesMetadata value)

Output only. Useful Kubernetes-specific metadata.

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

Parameter
NameDescription
valueKubernetesMetadata
Returns
TypeDescription
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.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueKubernetesResource
Returns
TypeDescription
MembershipEndpoint.Builder

mergeMultiCloudCluster(MultiCloudCluster value)

public MembershipEndpoint.Builder mergeMultiCloudCluster(MultiCloudCluster value)

Optional. Specific information for a GKE Multi-Cloud cluster.

.google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueMultiCloudCluster
Returns
TypeDescription
MembershipEndpoint.Builder

mergeOnPremCluster(OnPremCluster value)

public MembershipEndpoint.Builder mergeOnPremCluster(OnPremCluster value)

Optional. Specific information for a GKE On-Prem cluster.

.google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueOnPremCluster
Returns
TypeDescription
MembershipEndpoint.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGkeCluster(GkeCluster value)

public MembershipEndpoint.Builder setGkeCluster(GkeCluster value)

Optional. Specific information for a GKE-on-GCP cluster.

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

Parameter
NameDescription
valueGkeCluster
Returns
TypeDescription
MembershipEndpoint.Builder

setGkeCluster(GkeCluster.Builder builderForValue)

public MembershipEndpoint.Builder setGkeCluster(GkeCluster.Builder builderForValue)

Optional. Specific information for a GKE-on-GCP cluster.

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

Parameter
NameDescription
builderForValueGkeCluster.Builder
Returns
TypeDescription
MembershipEndpoint.Builder

setKubernetesMetadata(KubernetesMetadata value)

public MembershipEndpoint.Builder setKubernetesMetadata(KubernetesMetadata value)

Output only. Useful Kubernetes-specific metadata.

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

Parameter
NameDescription
valueKubernetesMetadata
Returns
TypeDescription
MembershipEndpoint.Builder

setKubernetesMetadata(KubernetesMetadata.Builder builderForValue)

public MembershipEndpoint.Builder setKubernetesMetadata(KubernetesMetadata.Builder builderForValue)

Output only. Useful Kubernetes-specific metadata.

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

Parameter
NameDescription
builderForValueKubernetesMetadata.Builder
Returns
TypeDescription
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.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueKubernetesResource
Returns
TypeDescription
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.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueKubernetesResource.Builder
Returns
TypeDescription
MembershipEndpoint.Builder

setMultiCloudCluster(MultiCloudCluster value)

public MembershipEndpoint.Builder setMultiCloudCluster(MultiCloudCluster value)

Optional. Specific information for a GKE Multi-Cloud cluster.

.google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueMultiCloudCluster
Returns
TypeDescription
MembershipEndpoint.Builder

setMultiCloudCluster(MultiCloudCluster.Builder builderForValue)

public MembershipEndpoint.Builder setMultiCloudCluster(MultiCloudCluster.Builder builderForValue)

Optional. Specific information for a GKE Multi-Cloud cluster.

.google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueMultiCloudCluster.Builder
Returns
TypeDescription
MembershipEndpoint.Builder

setOnPremCluster(OnPremCluster value)

public MembershipEndpoint.Builder setOnPremCluster(OnPremCluster value)

Optional. Specific information for a GKE On-Prem cluster.

.google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueOnPremCluster
Returns
TypeDescription
MembershipEndpoint.Builder

setOnPremCluster(OnPremCluster.Builder builderForValue)

public MembershipEndpoint.Builder setOnPremCluster(OnPremCluster.Builder builderForValue)

Optional. Specific information for a GKE On-Prem cluster.

.google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueOnPremCluster.Builder
Returns
TypeDescription
MembershipEndpoint.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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