Class MembershipEndpoint (1.7.0)

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.v1beta1.MembershipEndpoint

Static Fields

APPLIANCE_CLUSTER_FIELD_NUMBER

public static final int APPLIANCE_CLUSTER_FIELD_NUMBER
Field Value
TypeDescription
int

EDGE_CLUSTER_FIELD_NUMBER

public static final int EDGE_CLUSTER_FIELD_NUMBER
Field Value
TypeDescription
int

GKE_CLUSTER_FIELD_NUMBER

public static final int GKE_CLUSTER_FIELD_NUMBER
Field Value
TypeDescription
int

KUBERNETES_METADATA_FIELD_NUMBER

public static final int KUBERNETES_METADATA_FIELD_NUMBER
Field Value
TypeDescription
int

KUBERNETES_RESOURCE_FIELD_NUMBER

public static final int KUBERNETES_RESOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

MULTI_CLOUD_CLUSTER_FIELD_NUMBER

public static final int MULTI_CLOUD_CLUSTER_FIELD_NUMBER
Field Value
TypeDescription
int

ON_PREM_CLUSTER_FIELD_NUMBER

public static final int ON_PREM_CLUSTER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MembershipEndpoint getDefaultInstance()
Returns
TypeDescription
MembershipEndpoint

getDescriptor()

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

newBuilder()

public static MembershipEndpoint.Builder newBuilder()
Returns
TypeDescription
MembershipEndpoint.Builder

newBuilder(MembershipEndpoint prototype)

public static MembershipEndpoint.Builder newBuilder(MembershipEndpoint prototype)
Parameter
NameDescription
prototypeMembershipEndpoint
Returns
TypeDescription
MembershipEndpoint.Builder

parseDelimitedFrom(InputStream input)

public static MembershipEndpoint parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MembershipEndpoint
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MembershipEndpoint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MembershipEndpoint
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MembershipEndpoint parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MembershipEndpoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MembershipEndpoint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MembershipEndpoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MembershipEndpoint parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MembershipEndpoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MembershipEndpoint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MembershipEndpoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MembershipEndpoint parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MembershipEndpoint
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MembershipEndpoint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MembershipEndpoint
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MembershipEndpoint parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MembershipEndpoint
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MembershipEndpoint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MembershipEndpoint
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MembershipEndpoint parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MembershipEndpoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MembershipEndpoint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MembershipEndpoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MembershipEndpoint> parser()
Returns
TypeDescription
Parser<MembershipEndpoint>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getApplianceCluster()

public ApplianceCluster getApplianceCluster()

Optional. Specific information for a GDC Edge Appliance cluster.

.google.cloud.gkehub.v1beta1.ApplianceCluster appliance_cluster = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ApplianceCluster

The applianceCluster.

getApplianceClusterOrBuilder()

public ApplianceClusterOrBuilder getApplianceClusterOrBuilder()

Optional. Specific information for a GDC Edge Appliance cluster.

.google.cloud.gkehub.v1beta1.ApplianceCluster appliance_cluster = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ApplianceClusterOrBuilder

getDefaultInstanceForType()

public MembershipEndpoint getDefaultInstanceForType()
Returns
TypeDescription
MembershipEndpoint

getEdgeCluster()

public EdgeCluster getEdgeCluster()

Optional. Specific information for a Google Edge cluster.

.google.cloud.gkehub.v1beta1.EdgeCluster edge_cluster = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
EdgeCluster

The edgeCluster.

getEdgeClusterOrBuilder()

public EdgeClusterOrBuilder getEdgeClusterOrBuilder()

Optional. Specific information for a Google Edge cluster.

.google.cloud.gkehub.v1beta1.EdgeCluster edge_cluster = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
EdgeClusterOrBuilder

getGkeCluster()

public GkeCluster getGkeCluster()

Optional. Specific information for a GKE-on-GCP cluster.

.google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GkeCluster

The gkeCluster.

getGkeClusterOrBuilder()

public GkeClusterOrBuilder getGkeClusterOrBuilder()

Optional. Specific information for a GKE-on-GCP cluster.

.google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GkeClusterOrBuilder

getKubernetesMetadata()

public KubernetesMetadata getKubernetesMetadata()

Output only. Useful Kubernetes-specific metadata.

.google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
KubernetesMetadata

The kubernetesMetadata.

getKubernetesMetadataOrBuilder()

public KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder()

Output only. Useful Kubernetes-specific metadata.

.google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
KubernetesMetadataOrBuilder

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.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
KubernetesResource

The kubernetesResource.

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.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
KubernetesResourceOrBuilder

getMultiCloudCluster()

public MultiCloudCluster getMultiCloudCluster()

Optional. Specific information for a GKE Multi-Cloud cluster.

.google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MultiCloudCluster

The multiCloudCluster.

getMultiCloudClusterOrBuilder()

public MultiCloudClusterOrBuilder getMultiCloudClusterOrBuilder()

Optional. Specific information for a GKE Multi-Cloud cluster.

.google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MultiCloudClusterOrBuilder

getOnPremCluster()

public OnPremCluster getOnPremCluster()

Optional. Specific information for a GKE On-Prem cluster. An onprem user-cluster who has no resourceLink is not allowed to use this field, it should have a nil "type" instead.

.google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
OnPremCluster

The onPremCluster.

getOnPremClusterOrBuilder()

public OnPremClusterOrBuilder getOnPremClusterOrBuilder()

Optional. Specific information for a GKE On-Prem cluster. An onprem user-cluster who has no resourceLink is not allowed to use this field, it should have a nil "type" instead.

.google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
OnPremClusterOrBuilder

getParserForType()

public Parser<MembershipEndpoint> getParserForType()
Returns
TypeDescription
Parser<MembershipEndpoint>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTypeCase()

public MembershipEndpoint.TypeCase getTypeCase()
Returns
TypeDescription
MembershipEndpoint.TypeCase

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasApplianceCluster()

public boolean hasApplianceCluster()

Optional. Specific information for a GDC Edge Appliance cluster.

.google.cloud.gkehub.v1beta1.ApplianceCluster appliance_cluster = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the applianceCluster field is set.

hasEdgeCluster()

public boolean hasEdgeCluster()

Optional. Specific information for a Google Edge cluster.

.google.cloud.gkehub.v1beta1.EdgeCluster edge_cluster = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the edgeCluster field is set.

hasGkeCluster()

public boolean hasGkeCluster()

Optional. Specific information for a GKE-on-GCP cluster.

.google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.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.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the kubernetesResource field is set.

hasMultiCloudCluster()

public boolean hasMultiCloudCluster()

Optional. Specific information for a GKE Multi-Cloud cluster.

.google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the multiCloudCluster field is set.

hasOnPremCluster()

public boolean hasOnPremCluster()

Optional. Specific information for a GKE On-Prem cluster. An onprem user-cluster who has no resourceLink is not allowed to use this field, it should have a nil "type" instead.

.google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the onPremCluster field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MembershipEndpoint.Builder newBuilderForType()
Returns
TypeDescription
MembershipEndpoint.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MembershipEndpoint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MembershipEndpoint.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MembershipEndpoint.Builder toBuilder()
Returns
TypeDescription
MembershipEndpoint.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException