Class Membership.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Membership.Builder>
com.google.cloud.gkehub.v1.Membership.Builder
All Implemented Interfaces:
MembershipOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Membership

public static final class Membership.Builder extends com.google.protobuf.GeneratedMessage.Builder<Membership.Builder> implements MembershipOrBuilder
 Membership contains information about a member cluster.
 
Protobuf type google.cloud.gkehub.v1.Membership
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Membership.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Membership.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Membership.Builder>
    • clear

      public Membership.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Membership.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Membership.Builder>
    • getDefaultInstanceForType

      public Membership getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Membership build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Membership buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Membership.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Membership.Builder>
    • mergeFrom

      public Membership.Builder mergeFrom(Membership other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Membership.Builder>
    • mergeFrom

      public Membership.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Membership.Builder>
      Throws:
      IOException
    • getTypeCase

      public Membership.TypeCase getTypeCase()
      Specified by:
      getTypeCase in interface MembershipOrBuilder
    • clearType

      public Membership.Builder clearType()
    • hasEndpoint

      public boolean hasEndpoint()
       Optional. Endpoint information to reach this member.
       
      .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasEndpoint in interface MembershipOrBuilder
      Returns:
      Whether the endpoint field is set.
    • getEndpoint

      public MembershipEndpoint getEndpoint()
       Optional. Endpoint information to reach this member.
       
      .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEndpoint in interface MembershipOrBuilder
      Returns:
      The endpoint.
    • setEndpoint

      public Membership.Builder setEndpoint(MembershipEndpoint value)
       Optional. Endpoint information to reach this member.
       
      .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setEndpoint

      public Membership.Builder setEndpoint(MembershipEndpoint.Builder builderForValue)
       Optional. Endpoint information to reach this member.
       
      .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeEndpoint

      public Membership.Builder mergeEndpoint(MembershipEndpoint value)
       Optional. Endpoint information to reach this member.
       
      .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearEndpoint

      public Membership.Builder clearEndpoint()
       Optional. Endpoint information to reach this member.
       
      .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getEndpointBuilder

      public MembershipEndpoint.Builder getEndpointBuilder()
       Optional. Endpoint information to reach this member.
       
      .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getEndpointOrBuilder

      public MembershipEndpointOrBuilder getEndpointOrBuilder()
       Optional. Endpoint information to reach this member.
       
      .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEndpointOrBuilder in interface MembershipOrBuilder
    • 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]([-a-z0-9]*[a-z0-9])?`,
       with a maximum length of 63 characters.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface MembershipOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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]([-a-z0-9]*[a-z0-9])?`,
       with a maximum length of 63 characters.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface MembershipOrBuilder
      Returns:
      The bytes for name.
    • setName

      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]([-a-z0-9]*[a-z0-9])?`,
       with a maximum length of 63 characters.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • 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]([-a-z0-9]*[a-z0-9])?`,
       with a maximum length of 63 characters.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Membership.Builder setNameBytes(com.google.protobuf.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]([-a-z0-9]*[a-z0-9])?`,
       with a maximum length of 63 characters.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: MembershipOrBuilder
       Optional. Labels for this membership.
       
      map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface MembershipOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Labels for this membership.
       
      map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface MembershipOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface MembershipOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Labels for this membership.
       
      map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface MembershipOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Labels for this membership.
       
      map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface MembershipOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Labels for this membership.
       
      map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface MembershipOrBuilder
    • clearLabels

      public Membership.Builder clearLabels()
    • removeLabels

      public Membership.Builder removeLabels(String key)
       Optional. Labels for this membership.
       
      map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public Membership.Builder putLabels(String key, String value)
       Optional. Labels for this membership.
       
      map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public Membership.Builder putAllLabels(Map<String,String> values)
       Optional. Labels for this membership.
       
      map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getDescription

      public String getDescription()
       Output only. Description of this membership, limited to 63 characters.
       Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
      
       This field is present for legacy purposes.
       
      string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDescription in interface MembershipOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Output only. Description of this membership, limited to 63 characters.
       Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
      
       This field is present for legacy purposes.
       
      string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDescriptionBytes in interface MembershipOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Membership.Builder setDescription(String value)
       Output only. Description of this membership, limited to 63 characters.
       Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
      
       This field is present for legacy purposes.
       
      string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Membership.Builder clearDescription()
       Output only. Description of this membership, limited to 63 characters.
       Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
      
       This field is present for legacy purposes.
       
      string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Membership.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Output only. Description of this membership, limited to 63 characters.
       Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
      
       This field is present for legacy purposes.
       
      string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasState

      public boolean hasState()
       Output only. State of the Membership resource.
       
      .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasState in interface MembershipOrBuilder
      Returns:
      Whether the state field is set.
    • getState

      public MembershipState getState()
       Output only. State of the Membership resource.
       
      .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface MembershipOrBuilder
      Returns:
      The state.
    • setState

      public Membership.Builder setState(MembershipState value)
       Output only. State of the Membership resource.
       
      .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setState

      public Membership.Builder setState(MembershipState.Builder builderForValue)
       Output only. State of the Membership resource.
       
      .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeState

      public Membership.Builder mergeState(MembershipState value)
       Output only. State of the Membership resource.
       
      .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearState

      public Membership.Builder clearState()
       Output only. State of the Membership resource.
       
      .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStateBuilder

      public MembershipState.Builder getStateBuilder()
       Output only. State of the Membership resource.
       
      .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStateOrBuilder

      public MembershipStateOrBuilder getStateOrBuilder()
       Output only. State of the Membership resource.
       
      .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateOrBuilder in interface MembershipOrBuilder
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. When the Membership was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface MembershipOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. When the Membership was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface MembershipOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Membership.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. When the Membership was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Membership.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. When the Membership was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Membership.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. When the Membership was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Membership.Builder clearCreateTime()
       Output only. When the Membership was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. When the Membership was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. When the Membership was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface MembershipOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. When the Membership was last updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface MembershipOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. When the Membership was last updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface MembershipOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Membership.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. When the Membership was last updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Membership.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. When the Membership was last updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Membership.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. When the Membership was last updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. When the Membership was last updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. When the Membership was last updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface MembershipOrBuilder
    • hasDeleteTime

      public boolean hasDeleteTime()
       Output only. When the Membership was deleted.
       
      .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDeleteTime in interface MembershipOrBuilder
      Returns:
      Whether the deleteTime field is set.
    • getDeleteTime

      public com.google.protobuf.Timestamp getDeleteTime()
       Output only. When the Membership was deleted.
       
      .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeleteTime in interface MembershipOrBuilder
      Returns:
      The deleteTime.
    • setDeleteTime

      public Membership.Builder setDeleteTime(com.google.protobuf.Timestamp value)
       Output only. When the Membership was deleted.
       
      .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setDeleteTime

      public Membership.Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. When the Membership was deleted.
       
      .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeDeleteTime

      public Membership.Builder mergeDeleteTime(com.google.protobuf.Timestamp value)
       Output only. When the Membership was deleted.
       
      .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearDeleteTime

      public Membership.Builder clearDeleteTime()
       Output only. When the Membership was deleted.
       
      .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDeleteTimeBuilder

      public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder()
       Output only. When the Membership was deleted.
       
      .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDeleteTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
       Output only. When the Membership was deleted.
       
      .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeleteTimeOrBuilder in interface MembershipOrBuilder
    • 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][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];
      Specified by:
      getExternalId in interface MembershipOrBuilder
      Returns:
      The externalId.
    • getExternalIdBytes

      public com.google.protobuf.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][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];
      Specified by:
      getExternalIdBytes in interface MembershipOrBuilder
      Returns:
      The bytes for externalId.
    • setExternalId

      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.
      
       The ID must match the regex: `[a-zA-Z0-9][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];
      Parameters:
      value - The externalId to set.
      Returns:
      This builder for chaining.
    • 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.
      
       The ID must match the regex: `[a-zA-Z0-9][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:
      This builder for chaining.
    • setExternalIdBytes

      public Membership.Builder setExternalIdBytes(com.google.protobuf.ByteString value)
       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][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];
      Parameters:
      value - The bytes for externalId to set.
      Returns:
      This builder for chaining.
    • 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasLastConnectionTime in interface MembershipOrBuilder
      Returns:
      Whether the lastConnectionTime field is set.
    • getLastConnectionTime

      public com.google.protobuf.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 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastConnectionTime in interface MembershipOrBuilder
      Returns:
      The lastConnectionTime.
    • setLastConnectionTime

      public Membership.Builder setLastConnectionTime(com.google.protobuf.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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setLastConnectionTime

      public Membership.Builder setLastConnectionTime(com.google.protobuf.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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeLastConnectionTime

      public Membership.Builder mergeLastConnectionTime(com.google.protobuf.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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLastConnectionTimeBuilder

      public com.google.protobuf.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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLastConnectionTimeOrBuilder

      public com.google.protobuf.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 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastConnectionTimeOrBuilder in interface MembershipOrBuilder
    • 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUniqueId in interface MembershipOrBuilder
      Returns:
      The uniqueId.
    • getUniqueIdBytes

      public com.google.protobuf.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 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUniqueIdBytes in interface MembershipOrBuilder
      Returns:
      The bytes for uniqueId.
    • setUniqueId

      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 = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The uniqueId to set.
      Returns:
      This builder for chaining.
    • 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 = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUniqueIdBytes

      public Membership.Builder setUniqueIdBytes(com.google.protobuf.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 = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for uniqueId to set.
      Returns:
      This builder for chaining.
    • 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.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAuthority in interface MembershipOrBuilder
      Returns:
      Whether the authority field is set.
    • 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.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAuthority in interface MembershipOrBuilder
      Returns:
      The authority.
    • setAuthority

      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.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL];
    • setAuthority

      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.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL];
    • mergeAuthority

      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.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL];
    • 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.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL];
    • 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.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL];
    • 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.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAuthorityOrBuilder in interface MembershipOrBuilder
    • hasMonitoringConfig

      public boolean hasMonitoringConfig()
       Optional. The monitoring config information for this membership.
       
      .google.cloud.gkehub.v1.MonitoringConfig monitoring_config = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMonitoringConfig in interface MembershipOrBuilder
      Returns:
      Whether the monitoringConfig field is set.
    • getMonitoringConfig

      public MonitoringConfig getMonitoringConfig()
       Optional. The monitoring config information for this membership.
       
      .google.cloud.gkehub.v1.MonitoringConfig monitoring_config = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMonitoringConfig in interface MembershipOrBuilder
      Returns:
      The monitoringConfig.
    • setMonitoringConfig

      public Membership.Builder setMonitoringConfig(MonitoringConfig value)
       Optional. The monitoring config information for this membership.
       
      .google.cloud.gkehub.v1.MonitoringConfig monitoring_config = 14 [(.google.api.field_behavior) = OPTIONAL];
    • setMonitoringConfig

      public Membership.Builder setMonitoringConfig(MonitoringConfig.Builder builderForValue)
       Optional. The monitoring config information for this membership.
       
      .google.cloud.gkehub.v1.MonitoringConfig monitoring_config = 14 [(.google.api.field_behavior) = OPTIONAL];
    • mergeMonitoringConfig

      public Membership.Builder mergeMonitoringConfig(MonitoringConfig value)
       Optional. The monitoring config information for this membership.
       
      .google.cloud.gkehub.v1.MonitoringConfig monitoring_config = 14 [(.google.api.field_behavior) = OPTIONAL];
    • clearMonitoringConfig

      public Membership.Builder clearMonitoringConfig()
       Optional. The monitoring config information for this membership.
       
      .google.cloud.gkehub.v1.MonitoringConfig monitoring_config = 14 [(.google.api.field_behavior) = OPTIONAL];
    • getMonitoringConfigBuilder

      public MonitoringConfig.Builder getMonitoringConfigBuilder()
       Optional. The monitoring config information for this membership.
       
      .google.cloud.gkehub.v1.MonitoringConfig monitoring_config = 14 [(.google.api.field_behavior) = OPTIONAL];
    • getMonitoringConfigOrBuilder

      public MonitoringConfigOrBuilder getMonitoringConfigOrBuilder()
       Optional. The monitoring config information for this membership.
       
      .google.cloud.gkehub.v1.MonitoringConfig monitoring_config = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMonitoringConfigOrBuilder in interface MembershipOrBuilder