Class Membership.Builder (1.1.0)

public static final class Membership.Builder extends GeneratedMessageV3.Builder<Membership.Builder> implements MembershipOrBuilder

Membership contains information about a member cluster.

Protobuf type google.cloud.gkehub.v1alpha2.Membership

Implements

MembershipOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Membership.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Membership.Builder
Overrides

build()

public Membership build()
Returns
TypeDescription
Membership

buildPartial()

public Membership buildPartial()
Returns
TypeDescription
Membership

clear()

public Membership.Builder clear()
Returns
TypeDescription
Membership.Builder
Overrides

clearAuthority()

public Membership.Builder clearAuthority()

Optional. How to identify workloads from this Membership. See the documentation on Workload Identity for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity

.google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Membership.Builder

clearCreateTime()

public Membership.Builder clearCreateTime()

Output only. When the Membership was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Membership.Builder

clearDeleteTime()

public Membership.Builder clearDeleteTime()

Output only. When the Membership was deleted.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Membership.Builder

clearDescription()

public Membership.Builder clearDescription()

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
TypeDescription
Membership.Builder

This builder for chaining.

clearEndpoint()

public Membership.Builder clearEndpoint()

Optional. Endpoint information to reach this member.

.google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Membership.Builder

clearExternalId()

public Membership.Builder clearExternalId()

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
TypeDescription
Membership.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Membership.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Membership.Builder
Overrides

clearInfrastructureType()

public Membership.Builder clearInfrastructureType()

Optional. The infrastructure type this Membership is running on.

.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Membership.Builder

This builder for chaining.

clearLabels()

public Membership.Builder clearLabels()
Returns
TypeDescription
Membership.Builder

clearLastConnectionTime()

public Membership.Builder clearLastConnectionTime()

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
TypeDescription
Membership.Builder

clearName()

public Membership.Builder clearName()

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:

  1. At most 63 characters in length
  2. It must consist of lower case alphanumeric characters or -
  3. 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
TypeDescription
Membership.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Membership.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Membership.Builder
Overrides

clearState()

public Membership.Builder clearState()

Output only. State of the Membership resource.

.google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Membership.Builder

clearType()

public Membership.Builder clearType()
Returns
TypeDescription
Membership.Builder

clearUniqueId()

public Membership.Builder clearUniqueId()

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
TypeDescription
Membership.Builder

This builder for chaining.

clearUpdateTime()

public Membership.Builder clearUpdateTime()

Output only. When the Membership was last updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Membership.Builder

clone()

public Membership.Builder clone()
Returns
TypeDescription
Membership.Builder
Overrides

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
NameDescription
keyString
Returns
TypeDescription
boolean

getAuthority()

public Authority getAuthority()

Optional. How to identify workloads from this Membership. See the documentation on Workload Identity for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity

.google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Authority

The authority.

getAuthorityBuilder()

public Authority.Builder getAuthorityBuilder()

Optional. How to identify workloads from this Membership. See the documentation on Workload Identity for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity

.google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Authority.Builder

getAuthorityOrBuilder()

public AuthorityOrBuilder getAuthorityOrBuilder()

Optional. How to identify workloads from this Membership. See the documentation on Workload Identity for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity

.google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AuthorityOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. When the Membership was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. When the Membership was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. When the Membership was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Membership getDefaultInstanceForType()
Returns
TypeDescription
Membership

getDeleteTime()

public Timestamp getDeleteTime()

Output only. When the Membership was deleted.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The deleteTime.

getDeleteTimeBuilder()

public Timestamp.Builder getDeleteTimeBuilder()

Output only. When the Membership was deleted.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getDeleteTimeOrBuilder()

public TimestampOrBuilder getDeleteTimeOrBuilder()

Output only. When the Membership was deleted.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

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
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndpoint()

public MembershipEndpoint getEndpoint()

Optional. Endpoint information to reach this member.

.google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MembershipEndpoint

The endpoint.

getEndpointBuilder()

public MembershipEndpoint.Builder getEndpointBuilder()

Optional. Endpoint information to reach this member.

.google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MembershipEndpoint.Builder

getEndpointOrBuilder()

public MembershipEndpointOrBuilder getEndpointOrBuilder()

Optional. Endpoint information to reach this member.

.google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MembershipEndpointOrBuilder

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
TypeDescription
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
TypeDescription
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
TypeDescription
Membership.InfrastructureType

The infrastructureType.

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
TypeDescription
int

The enum numeric value on the wire for infrastructureType.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. GCP labels for this membership.

map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. GCP labels for this membership.

map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

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
NameDescription
keyString
Returns
TypeDescription
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 = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The lastConnectionTime.

getLastConnectionTimeBuilder()

public Timestamp.Builder getLastConnectionTimeBuilder()

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
TypeDescription
Builder

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
TypeDescription
TimestampOrBuilder

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String 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:

  1. At most 63 characters in length
  2. It must consist of lower case alphanumeric characters or -
  3. 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
TypeDescription
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:

  1. At most 63 characters in length
  2. It must consist of lower case alphanumeric characters or -
  3. 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
TypeDescription
ByteString

The bytes for name.

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
TypeDescription
MembershipState

The state.

getStateBuilder()

public MembershipState.Builder getStateBuilder()

Output only. State of the Membership resource.

.google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MembershipState.Builder

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
TypeDescription
MembershipStateOrBuilder

getTypeCase()

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

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
TypeDescription
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
TypeDescription
ByteString

The bytes for uniqueId.

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
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. When the Membership was last updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

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
TypeDescription
TimestampOrBuilder

hasAuthority()

public boolean hasAuthority()

Optional. How to identify workloads from this Membership. See the documentation on Workload Identity for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity

.google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAuthority(Authority value)

public Membership.Builder mergeAuthority(Authority value)

Optional. How to identify workloads from this Membership. See the documentation on Workload Identity for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity

.google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAuthority
Returns
TypeDescription
Membership.Builder

mergeCreateTime(Timestamp value)

public Membership.Builder mergeCreateTime(Timestamp value)

Output only. When the Membership was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Membership.Builder

mergeDeleteTime(Timestamp value)

public Membership.Builder mergeDeleteTime(Timestamp value)

Output only. When the Membership was deleted.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Membership.Builder

mergeEndpoint(MembershipEndpoint value)

public Membership.Builder mergeEndpoint(MembershipEndpoint value)

Optional. Endpoint information to reach this member.

.google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueMembershipEndpoint
Returns
TypeDescription
Membership.Builder

mergeFrom(Membership other)

public Membership.Builder mergeFrom(Membership other)
Parameter
NameDescription
otherMembership
Returns
TypeDescription
Membership.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Membership.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Membership.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Membership.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Membership.Builder
Overrides

mergeLastConnectionTime(Timestamp value)

public Membership.Builder mergeLastConnectionTime(Timestamp value)

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];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Membership.Builder

mergeState(MembershipState value)

public Membership.Builder mergeState(MembershipState value)

Output only. State of the Membership resource.

.google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueMembershipState
Returns
TypeDescription
Membership.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Membership.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Membership.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Membership.Builder mergeUpdateTime(Timestamp value)

Output only. When the Membership was last updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Membership.Builder

putAllLabels(Map<String,String> values)

public Membership.Builder putAllLabels(Map<String,String> values)

Optional. GCP labels for this membership.

map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Membership.Builder

putLabels(String key, String value)

public Membership.Builder putLabels(String key, String value)

Optional. GCP labels for this membership.

map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Membership.Builder

removeLabels(String key)

public Membership.Builder removeLabels(String key)

Optional. GCP labels for this membership.

map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
Membership.Builder

setAuthority(Authority value)

public Membership.Builder setAuthority(Authority value)

Optional. How to identify workloads from this Membership. See the documentation on Workload Identity for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity

.google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAuthority
Returns
TypeDescription
Membership.Builder

setAuthority(Authority.Builder builderForValue)

public Membership.Builder setAuthority(Authority.Builder builderForValue)

Optional. How to identify workloads from this Membership. See the documentation on Workload Identity for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity

.google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueAuthority.Builder
Returns
TypeDescription
Membership.Builder

setCreateTime(Timestamp value)

public Membership.Builder setCreateTime(Timestamp value)

Output only. When the Membership was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Membership.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Membership.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. When the Membership was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Membership.Builder

setDeleteTime(Timestamp value)

public Membership.Builder setDeleteTime(Timestamp value)

Output only. When the Membership was deleted.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Membership.Builder

setDeleteTime(Timestamp.Builder builderForValue)

public Membership.Builder setDeleteTime(Timestamp.Builder builderForValue)

Output only. When the Membership was deleted.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Membership.Builder

setDescription(String value)

public Membership.Builder setDescription(String value)

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];

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Membership.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Membership.Builder setDescriptionBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Membership.Builder

This builder for chaining.

setEndpoint(MembershipEndpoint value)

public Membership.Builder setEndpoint(MembershipEndpoint value)

Optional. Endpoint information to reach this member.

.google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueMembershipEndpoint
Returns
TypeDescription
Membership.Builder

setEndpoint(MembershipEndpoint.Builder builderForValue)

public Membership.Builder setEndpoint(MembershipEndpoint.Builder builderForValue)

Optional. Endpoint information to reach this member.

.google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueMembershipEndpoint.Builder
Returns
TypeDescription
Membership.Builder

setExternalId(String value)

public Membership.Builder setExternalId(String value)

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];

Parameter
NameDescription
valueString

The externalId to set.

Returns
TypeDescription
Membership.Builder

This builder for chaining.

setExternalIdBytes(ByteString value)

public Membership.Builder setExternalIdBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for externalId to set.

Returns
TypeDescription
Membership.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Membership.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Membership.Builder
Overrides

setInfrastructureType(Membership.InfrastructureType value)

public Membership.Builder setInfrastructureType(Membership.InfrastructureType value)

Optional. The infrastructure type this Membership is running on.

.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueMembership.InfrastructureType

The infrastructureType to set.

Returns
TypeDescription
Membership.Builder

This builder for chaining.

setInfrastructureTypeValue(int value)

public Membership.Builder setInfrastructureTypeValue(int value)

Optional. The infrastructure type this Membership is running on.

.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

The enum numeric value on the wire for infrastructureType to set.

Returns
TypeDescription
Membership.Builder

This builder for chaining.

setLastConnectionTime(Timestamp value)

public Membership.Builder setLastConnectionTime(Timestamp value)

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];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Membership.Builder

setLastConnectionTime(Timestamp.Builder builderForValue)

public Membership.Builder setLastConnectionTime(Timestamp.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Membership.Builder

setName(String value)

public Membership.Builder setName(String value)

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:

  1. At most 63 characters in length
  2. It must consist of lower case alphanumeric characters or -
  3. 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];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Membership.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Membership.Builder setNameBytes(ByteString value)

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:

  1. At most 63 characters in length
  2. It must consist of lower case alphanumeric characters or -
  3. 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];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Membership.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Membership.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Membership.Builder
Overrides

setState(MembershipState value)

public Membership.Builder setState(MembershipState value)

Output only. State of the Membership resource.

.google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueMembershipState
Returns
TypeDescription
Membership.Builder

setState(MembershipState.Builder builderForValue)

public Membership.Builder setState(MembershipState.Builder builderForValue)

Output only. State of the Membership resource.

.google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueMembershipState.Builder
Returns
TypeDescription
Membership.Builder

setUniqueId(String value)

public Membership.Builder setUniqueId(String value)

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];

Parameter
NameDescription
valueString

The uniqueId to set.

Returns
TypeDescription
Membership.Builder

This builder for chaining.

setUniqueIdBytes(ByteString value)

public Membership.Builder setUniqueIdBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for uniqueId to set.

Returns
TypeDescription
Membership.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Membership.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Membership.Builder
Overrides

setUpdateTime(Timestamp value)

public Membership.Builder setUpdateTime(Timestamp value)

Output only. When the Membership was last updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Membership.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Membership.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. When the Membership was last updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Membership.Builder