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
Returns
Overrides
build()
public MembershipEndpoint build()
Returns
buildPartial()
public MembershipEndpoint buildPartial()
Returns
clear()
public MembershipEndpoint.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public MembershipEndpoint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
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
clearOneof(Descriptors.OneofDescriptor oneof)
public MembershipEndpoint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public MembershipEndpoint.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public MembershipEndpoint getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
public KubernetesMetadata getKubernetesMetadata()
Output only. Useful Kubernetes-specific metadata.
.google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
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
public KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder()
Output only. Useful Kubernetes-specific metadata.
.google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
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.
|
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(MembershipEndpoint other)
public MembershipEndpoint.Builder mergeFrom(MembershipEndpoint other)
Parameter
Returns
public MembershipEndpoint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public MembershipEndpoint.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MembershipEndpoint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public MembershipEndpoint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MembershipEndpoint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MembershipEndpoint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides