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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
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
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
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
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
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
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
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.
|
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
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
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
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
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
Returns
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
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