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