public final class Membership extends GeneratedMessageV3 implements MembershipOrBuilder
Membership contains information about a member cluster.
Protobuf type google.events.cloud.gkehub.v1.Membership
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
AUTHORITY_FIELD_NUMBER
public static final int AUTHORITY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DELETE_TIME_FIELD_NUMBER
public static final int DELETE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
ENDPOINT_FIELD_NUMBER
public static final int ENDPOINT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
EXTERNAL_ID_FIELD_NUMBER
public static final int EXTERNAL_ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LAST_CONNECTION_TIME_FIELD_NUMBER
public static final int LAST_CONNECTION_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
UNIQUE_ID_FIELD_NUMBER
public static final int UNIQUE_ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static Membership getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Membership.Builder newBuilder()
newBuilder(Membership prototype)
public static Membership.Builder newBuilder(Membership prototype)
public static Membership parseDelimitedFrom(InputStream input)
public static Membership parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Membership parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Membership parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Membership parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Membership parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Membership parseFrom(CodedInputStream input)
public static Membership parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Membership parseFrom(InputStream input)
public static Membership parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Membership parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Membership parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Membership> parser()
Methods
containsLabels(String key)
public boolean containsLabels(String key)
Optional. GCP labels for this membership.
map<string, string> labels = 2;
Parameter |
---|
Name | Description |
key | String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getAuthority()
public Authority getAuthority()
Returns |
---|
Type | Description |
Authority | The authority.
|
getAuthorityOrBuilder()
public AuthorityOrBuilder getAuthorityOrBuilder()
getCreateTime()
public Timestamp getCreateTime()
Output only. When the Membership was created.
.google.protobuf.Timestamp create_time = 6;
Returns |
---|
Type | Description |
Timestamp | The createTime.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. When the Membership was created.
.google.protobuf.Timestamp create_time = 6;
getDefaultInstanceForType()
public Membership getDefaultInstanceForType()
getDeleteTime()
public Timestamp getDeleteTime()
Output only. When the Membership was deleted.
.google.protobuf.Timestamp delete_time = 8;
Returns |
---|
Type | Description |
Timestamp | The deleteTime.
|
getDeleteTimeOrBuilder()
public TimestampOrBuilder getDeleteTimeOrBuilder()
Output only. When the Membership was deleted.
.google.protobuf.Timestamp delete_time = 8;
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;
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;
Returns |
---|
Type | Description |
ByteString | The bytes for description.
|
getEndpoint()
public MembershipEndpoint getEndpoint()
Optional. Endpoint information to reach this member.
.google.events.cloud.gkehub.v1.MembershipEndpoint endpoint = 4;
getEndpointOrBuilder()
public MembershipEndpointOrBuilder getEndpointOrBuilder()
Optional. Endpoint information to reach this member.
.google.events.cloud.gkehub.v1.MembershipEndpoint endpoint = 4;
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.
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;
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.
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;
Returns |
---|
Type | Description |
ByteString | The bytes for externalId.
|
getLabels()
public Map<String,String> getLabels()
getLabelsCount()
public int getLabelsCount()
Optional. GCP labels for this membership.
map<string, string> labels = 2;
Returns |
---|
Type | Description |
int | |
getLabelsMap()
public Map<String,String> getLabelsMap()
Optional. GCP labels for this membership.
map<string, string> labels = 2;
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Optional. GCP labels for this membership.
map<string, string> labels = 2;
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Optional. GCP labels for this membership.
map<string, string> labels = 2;
Parameter |
---|
Name | Description |
key | String
|
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 = 10;
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 = 10;
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;
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;
Returns |
---|
Type | Description |
ByteString | The bytes for name.
|
getParserForType()
public Parser<Membership> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getState()
public MembershipState getState()
Output only. State of the Membership resource.
.google.events.cloud.gkehub.v1.MembershipState state = 5;
getStateOrBuilder()
public MembershipStateOrBuilder getStateOrBuilder()
Output only. State of the Membership resource.
.google.events.cloud.gkehub.v1.MembershipState state = 5;
getTypeCase()
public Membership.TypeCase getTypeCase()
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 = 11;
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 = 11;
Returns |
---|
Type | Description |
ByteString | The bytes for uniqueId.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
getUpdateTime()
public Timestamp getUpdateTime()
Output only. When the Membership was last updated.
.google.protobuf.Timestamp update_time = 7;
Returns |
---|
Type | Description |
Timestamp | The updateTime.
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. When the Membership was last updated.
.google.protobuf.Timestamp update_time = 7;
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;
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;
Returns |
---|
Type | Description |
boolean | Whether the deleteTime field is set.
|
hasEndpoint()
public boolean hasEndpoint()
Optional. Endpoint information to reach this member.
.google.events.cloud.gkehub.v1.MembershipEndpoint endpoint = 4;
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 = 10;
Returns |
---|
Type | Description |
boolean | Whether the lastConnectionTime field is set.
|
hasState()
public boolean hasState()
Output only. State of the Membership resource.
.google.events.cloud.gkehub.v1.MembershipState state = 5;
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;
Returns |
---|
Type | Description |
boolean | Whether the updateTime field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Membership.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Membership.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Membership.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides