public final class MembershipEndpoint extends GeneratedMessageV3 implements MembershipEndpointOrBuilder
MembershipEndpoint contains information needed to contact a Kubernetes API,
endpoint and any additional Kubernetes metadata.
Protobuf type google.cloud.gkehub.v1alpha2.MembershipEndpoint
Fields
GKE_CLUSTER_FIELD_NUMBER
public static final int GKE_CLUSTER_FIELD_NUMBER
Field Value
public static final int KUBERNETES_METADATA_FIELD_NUMBER
Field Value
KUBERNETES_RESOURCE_FIELD_NUMBER
public static final int KUBERNETES_RESOURCE_FIELD_NUMBER
Field Value
MULTI_CLOUD_CLUSTER_FIELD_NUMBER
public static final int MULTI_CLOUD_CLUSTER_FIELD_NUMBER
Field Value
ON_PREM_CLUSTER_FIELD_NUMBER
public static final int ON_PREM_CLUSTER_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstance()
public static MembershipEndpoint getDefaultInstance()
Returns
getDefaultInstanceForType()
public MembershipEndpoint getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
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
public KubernetesMetadata getKubernetesMetadata()
Output only. Useful Kubernetes-specific metadata.
.google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder()
Output only. Useful Kubernetes-specific metadata.
.google.cloud.gkehub.v1alpha2.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.v1alpha2.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.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
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
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
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
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
getParserForType()
public Parser<MembershipEndpoint> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTypeCase()
public MembershipEndpoint.TypeCase getTypeCase()
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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
Type | Description |
boolean | Whether the gkeCluster field is set.
|
public boolean hasKubernetesMetadata()
Output only. Useful Kubernetes-specific metadata.
.google.cloud.gkehub.v1alpha2.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.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
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
Type | Description |
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
Type | Description |
boolean | Whether the onPremCluster field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static MembershipEndpoint.Builder newBuilder()
Returns
newBuilder(MembershipEndpoint prototype)
public static MembershipEndpoint.Builder newBuilder(MembershipEndpoint prototype)
Parameter
Returns
newBuilderForType()
public MembershipEndpoint.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MembershipEndpoint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static MembershipEndpoint parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static MembershipEndpoint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static MembershipEndpoint parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MembershipEndpoint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static MembershipEndpoint parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MembershipEndpoint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MembershipEndpoint parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static MembershipEndpoint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MembershipEndpoint parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static MembershipEndpoint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static MembershipEndpoint parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MembershipEndpoint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<MembershipEndpoint> parser()
Returns
toBuilder()
public MembershipEndpoint.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions