Class MembershipEndpoint.Builder (0.5.4)

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

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. 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
TypeDescription
MembershipEndpoint.Builder

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
TypeDescription
MembershipEndpoint.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public MembershipEndpoint getDefaultInstanceForType()
Returns
TypeDescription
MembershipEndpoint

getDescriptor()

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

getDescriptorForType()

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

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
TypeDescription
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
TypeDescription
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
TypeDescription
KubernetesMetadataOrBuilder

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
TypeDescription
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
TypeDescription
boolean

Whether the kubernetesMetadata 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. 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
NameDescription
valueGkeCluster
Returns
TypeDescription
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
NameDescription
valueKubernetesMetadata
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. 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
NameDescription
valueGkeCluster
Returns
TypeDescription
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
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.v1.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.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueKubernetesMetadata.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