public final class Membership extends GeneratedMessageV3 implements MembershipOrBuilder
Membership contains information about a member cluster.
Protobuf type google.cloud.gkehub.v1alpha2.Membership
Fields
AUTHORITY_FIELD_NUMBER
public static final int AUTHORITY_FIELD_NUMBER
Field Value
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
DELETE_TIME_FIELD_NUMBER
public static final int DELETE_TIME_FIELD_NUMBER
Field Value
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
ENDPOINT_FIELD_NUMBER
public static final int ENDPOINT_FIELD_NUMBER
Field Value
EXTERNAL_ID_FIELD_NUMBER
public static final int EXTERNAL_ID_FIELD_NUMBER
Field Value
INFRASTRUCTURE_TYPE_FIELD_NUMBER
public static final int INFRASTRUCTURE_TYPE_FIELD_NUMBER
Field Value
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value
LAST_CONNECTION_TIME_FIELD_NUMBER
public static final int LAST_CONNECTION_TIME_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value
UNIQUE_ID_FIELD_NUMBER
public static final int UNIQUE_ID_FIELD_NUMBER
Field Value
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Methods
containsLabels(String key)
public boolean containsLabels(String key)
Optional. GCP labels for this membership.
map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAuthority()
public Authority getAuthority()
Returns
getAuthorityOrBuilder()
public AuthorityOrBuilder getAuthorityOrBuilder()
Returns
getCreateTime()
public Timestamp getCreateTime()
Output only. When the Membership was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. When the Membership was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getDefaultInstance()
public static Membership getDefaultInstance()
Returns
getDefaultInstanceForType()
public Membership getDefaultInstanceForType()
Returns
getDeleteTime()
public Timestamp getDeleteTime()
Output only. When the Membership was deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getDeleteTimeOrBuilder()
public TimestampOrBuilder getDeleteTimeOrBuilder()
Output only. When the Membership was deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getDescription()
public String getDescription()
Output only. Description of this membership, limited to 63 characters.
Must match the regex: a-zA-Z0-9*
This field is present for legacy purposes.
string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
String | The description.
|
getDescriptionBytes()
public ByteString getDescriptionBytes()
Output only. Description of this membership, limited to 63 characters.
Must match the regex: a-zA-Z0-9*
This field is present for legacy purposes.
string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
ByteString | The bytes for description.
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getEndpoint()
public MembershipEndpoint getEndpoint()
Optional. Endpoint information to reach this member.
.google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
getEndpointOrBuilder()
public MembershipEndpointOrBuilder getEndpointOrBuilder()
Optional. Endpoint information to reach this member.
.google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
getExternalId()
public String getExternalId()
Optional. An externally-generated and managed ID for this Membership. This ID may
be modified after creation, but this is not recommended. For GKE clusters,
external_id is managed by the Hub API and updates will be ignored.
The ID must match the regex: a-zA-Z0-9*
If this Membership represents a Kubernetes cluster, this value should be
set to the UID of the kube-system
namespace object.
string external_id = 9 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
String | The externalId.
|
getExternalIdBytes()
public ByteString getExternalIdBytes()
Optional. An externally-generated and managed ID for this Membership. This ID may
be modified after creation, but this is not recommended. For GKE clusters,
external_id is managed by the Hub API and updates will be ignored.
The ID must match the regex: a-zA-Z0-9*
If this Membership represents a Kubernetes cluster, this value should be
set to the UID of the kube-system
namespace object.
string external_id = 9 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
ByteString | The bytes for externalId.
|
getInfrastructureType()
public Membership.InfrastructureType getInfrastructureType()
Optional. The infrastructure type this Membership is running on.
.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL];
Returns
getInfrastructureTypeValue()
public int getInfrastructureTypeValue()
Optional. The infrastructure type this Membership is running on.
.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
int | The enum numeric value on the wire for infrastructureType.
|
getLabels()
public Map<String,String> getLabels()
Returns
getLabelsCount()
public int getLabelsCount()
Optional. GCP labels for this membership.
map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
getLabelsMap()
public Map<String,String> getLabelsMap()
Optional. GCP labels for this membership.
map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Optional. GCP labels for this membership.
map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameters
Returns
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Optional. GCP labels for this membership.
map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
getLastConnectionTime()
public Timestamp getLastConnectionTime()
Output only. For clusters using Connect, the timestamp of the most recent connection
established with Google Cloud. This time is updated every several minutes,
not continuously. For clusters that do not use GKE Connect, or that have
never connected successfully, this field will be unset.
.google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
Timestamp | The lastConnectionTime.
|
getLastConnectionTimeOrBuilder()
public TimestampOrBuilder getLastConnectionTimeOrBuilder()
Output only. For clusters using Connect, the timestamp of the most recent connection
established with Google Cloud. This time is updated every several minutes,
not continuously. For clusters that do not use GKE Connect, or that have
never connected successfully, this field will be unset.
.google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getName()
Output only. The full, unique name of this Membership resource in the format
projects/*/locations/*/memberships/{membership_id}
, set during creation.
membership_id
must be a valid RFC 1123 compliant DNS label:
- At most 63 characters in length
- It must consist of lower case alphanumeric characters or
-
- It must start and end with an alphanumeric character
Which can be expressed as the regex:
a-z0-9?
,
with a maximum length of 63 characters.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Output only. The full, unique name of this Membership resource in the format
projects/*/locations/*/memberships/{membership_id}
, set during creation.
membership_id
must be a valid RFC 1123 compliant DNS label:
- At most 63 characters in length
- It must consist of lower case alphanumeric characters or
-
- It must start and end with an alphanumeric character
Which can be expressed as the regex:
a-z0-9?
,
with a maximum length of 63 characters.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getParserForType()
public Parser<Membership> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getState()
public MembershipState getState()
Output only. State of the Membership resource.
.google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getStateOrBuilder()
public MembershipStateOrBuilder getStateOrBuilder()
Output only. State of the Membership resource.
.google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getTypeCase()
public Membership.TypeCase getTypeCase()
Returns
getUniqueId()
public String getUniqueId()
Output only. Google-generated UUID for this resource. This is unique across all
Membership resources. If a Membership resource is deleted and another
resource with the same name is created, it gets a different unique_id.
string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
String | The uniqueId.
|
getUniqueIdBytes()
public ByteString getUniqueIdBytes()
Output only. Google-generated UUID for this resource. This is unique across all
Membership resources. If a Membership resource is deleted and another
resource with the same name is created, it gets a different unique_id.
string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getUpdateTime()
public Timestamp getUpdateTime()
Output only. When the Membership was last updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. When the Membership was last updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
hasAuthority()
public boolean hasAuthority()
Returns
Type | Description |
boolean | Whether the authority field is set.
|
hasCreateTime()
public boolean hasCreateTime()
Output only. When the Membership was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the createTime field is set.
|
hasDeleteTime()
public boolean hasDeleteTime()
Output only. When the Membership was deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the deleteTime field is set.
|
hasEndpoint()
public boolean hasEndpoint()
Optional. Endpoint information to reach this member.
.google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
boolean | Whether the endpoint field is set.
|
hasLastConnectionTime()
public boolean hasLastConnectionTime()
Output only. For clusters using Connect, the timestamp of the most recent connection
established with Google Cloud. This time is updated every several minutes,
not continuously. For clusters that do not use GKE Connect, or that have
never connected successfully, this field will be unset.
.google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the lastConnectionTime field is set.
|
hasState()
public boolean hasState()
Output only. State of the Membership resource.
.google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the state field is set.
|
hasUpdateTime()
public boolean hasUpdateTime()
Output only. When the Membership was last updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the updateTime field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static Membership.Builder newBuilder()
Returns
newBuilder(Membership prototype)
public static Membership.Builder newBuilder(Membership prototype)
Parameter
Returns
newBuilderForType()
public Membership.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Membership.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static Membership parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Membership parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Membership parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Membership parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Membership parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Membership parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Membership parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Membership parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Membership parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Membership parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Membership parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Membership parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Membership> parser()
Returns
toBuilder()
public Membership.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions