Class MembershipState.Builder

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

public static final class MembershipState.Builder extends com.google.protobuf.GeneratedMessage.Builder<MembershipState.Builder> implements MembershipStateOrBuilder
 **Anthos Config Management**: State for a single cluster.
 
Protobuf type google.cloud.gkehub.configmanagement.v1alpha.MembershipState
  • Method Details

    • getDescriptor

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

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

      public MembershipState.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<MembershipState.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<MembershipState.Builder>
    • getDefaultInstanceForType

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

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

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

      public MembershipState.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<MembershipState.Builder>
    • mergeFrom

      public MembershipState.Builder mergeFrom(MembershipState other)
    • isInitialized

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

      public MembershipState.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<MembershipState.Builder>
      Throws:
      IOException
    • getClusterName

      public String getClusterName()
       The user-defined name for the cluster used by ClusterSelectors to group
       clusters together. This should match Membership's membership_name,
       unless the user installed ACM on the cluster manually prior to enabling
       the ACM hub feature.
       Unique within a Anthos Config Management installation.
       
      string cluster_name = 1;
      Specified by:
      getClusterName in interface MembershipStateOrBuilder
      Returns:
      The clusterName.
    • getClusterNameBytes

      public com.google.protobuf.ByteString getClusterNameBytes()
       The user-defined name for the cluster used by ClusterSelectors to group
       clusters together. This should match Membership's membership_name,
       unless the user installed ACM on the cluster manually prior to enabling
       the ACM hub feature.
       Unique within a Anthos Config Management installation.
       
      string cluster_name = 1;
      Specified by:
      getClusterNameBytes in interface MembershipStateOrBuilder
      Returns:
      The bytes for clusterName.
    • setClusterName

      public MembershipState.Builder setClusterName(String value)
       The user-defined name for the cluster used by ClusterSelectors to group
       clusters together. This should match Membership's membership_name,
       unless the user installed ACM on the cluster manually prior to enabling
       the ACM hub feature.
       Unique within a Anthos Config Management installation.
       
      string cluster_name = 1;
      Parameters:
      value - The clusterName to set.
      Returns:
      This builder for chaining.
    • clearClusterName

      public MembershipState.Builder clearClusterName()
       The user-defined name for the cluster used by ClusterSelectors to group
       clusters together. This should match Membership's membership_name,
       unless the user installed ACM on the cluster manually prior to enabling
       the ACM hub feature.
       Unique within a Anthos Config Management installation.
       
      string cluster_name = 1;
      Returns:
      This builder for chaining.
    • setClusterNameBytes

      public MembershipState.Builder setClusterNameBytes(com.google.protobuf.ByteString value)
       The user-defined name for the cluster used by ClusterSelectors to group
       clusters together. This should match Membership's membership_name,
       unless the user installed ACM on the cluster manually prior to enabling
       the ACM hub feature.
       Unique within a Anthos Config Management installation.
       
      string cluster_name = 1;
      Parameters:
      value - The bytes for clusterName to set.
      Returns:
      This builder for chaining.
    • hasMembershipSpec

      public boolean hasMembershipSpec()
       Membership configuration in the cluster. This represents the actual state
       in the cluster, while the MembershipSpec in the FeatureSpec represents
       the intended state
       
      .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2;
      Specified by:
      hasMembershipSpec in interface MembershipStateOrBuilder
      Returns:
      Whether the membershipSpec field is set.
    • getMembershipSpec

      public MembershipSpec getMembershipSpec()
       Membership configuration in the cluster. This represents the actual state
       in the cluster, while the MembershipSpec in the FeatureSpec represents
       the intended state
       
      .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2;
      Specified by:
      getMembershipSpec in interface MembershipStateOrBuilder
      Returns:
      The membershipSpec.
    • setMembershipSpec

      public MembershipState.Builder setMembershipSpec(MembershipSpec value)
       Membership configuration in the cluster. This represents the actual state
       in the cluster, while the MembershipSpec in the FeatureSpec represents
       the intended state
       
      .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2;
    • setMembershipSpec

      public MembershipState.Builder setMembershipSpec(MembershipSpec.Builder builderForValue)
       Membership configuration in the cluster. This represents the actual state
       in the cluster, while the MembershipSpec in the FeatureSpec represents
       the intended state
       
      .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2;
    • mergeMembershipSpec

      public MembershipState.Builder mergeMembershipSpec(MembershipSpec value)
       Membership configuration in the cluster. This represents the actual state
       in the cluster, while the MembershipSpec in the FeatureSpec represents
       the intended state
       
      .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2;
    • clearMembershipSpec

      public MembershipState.Builder clearMembershipSpec()
       Membership configuration in the cluster. This represents the actual state
       in the cluster, while the MembershipSpec in the FeatureSpec represents
       the intended state
       
      .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2;
    • getMembershipSpecBuilder

      public MembershipSpec.Builder getMembershipSpecBuilder()
       Membership configuration in the cluster. This represents the actual state
       in the cluster, while the MembershipSpec in the FeatureSpec represents
       the intended state
       
      .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2;
    • getMembershipSpecOrBuilder

      public MembershipSpecOrBuilder getMembershipSpecOrBuilder()
       Membership configuration in the cluster. This represents the actual state
       in the cluster, while the MembershipSpec in the FeatureSpec represents
       the intended state
       
      .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2;
      Specified by:
      getMembershipSpecOrBuilder in interface MembershipStateOrBuilder
    • hasOperatorState

      public boolean hasOperatorState()
       Current install status of ACM's Operator
       
      .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3;
      Specified by:
      hasOperatorState in interface MembershipStateOrBuilder
      Returns:
      Whether the operatorState field is set.
    • getOperatorState

      public OperatorState getOperatorState()
       Current install status of ACM's Operator
       
      .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3;
      Specified by:
      getOperatorState in interface MembershipStateOrBuilder
      Returns:
      The operatorState.
    • setOperatorState

      public MembershipState.Builder setOperatorState(OperatorState value)
       Current install status of ACM's Operator
       
      .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3;
    • setOperatorState

      public MembershipState.Builder setOperatorState(OperatorState.Builder builderForValue)
       Current install status of ACM's Operator
       
      .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3;
    • mergeOperatorState

      public MembershipState.Builder mergeOperatorState(OperatorState value)
       Current install status of ACM's Operator
       
      .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3;
    • clearOperatorState

      public MembershipState.Builder clearOperatorState()
       Current install status of ACM's Operator
       
      .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3;
    • getOperatorStateBuilder

      public OperatorState.Builder getOperatorStateBuilder()
       Current install status of ACM's Operator
       
      .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3;
    • getOperatorStateOrBuilder

      public OperatorStateOrBuilder getOperatorStateOrBuilder()
       Current install status of ACM's Operator
       
      .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3;
      Specified by:
      getOperatorStateOrBuilder in interface MembershipStateOrBuilder
    • hasConfigSyncState

      public boolean hasConfigSyncState()
       Current sync status
       
      .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4;
      Specified by:
      hasConfigSyncState in interface MembershipStateOrBuilder
      Returns:
      Whether the configSyncState field is set.
    • getConfigSyncState

      public ConfigSyncState getConfigSyncState()
       Current sync status
       
      .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4;
      Specified by:
      getConfigSyncState in interface MembershipStateOrBuilder
      Returns:
      The configSyncState.
    • setConfigSyncState

      public MembershipState.Builder setConfigSyncState(ConfigSyncState value)
       Current sync status
       
      .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4;
    • setConfigSyncState

      public MembershipState.Builder setConfigSyncState(ConfigSyncState.Builder builderForValue)
       Current sync status
       
      .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4;
    • mergeConfigSyncState

      public MembershipState.Builder mergeConfigSyncState(ConfigSyncState value)
       Current sync status
       
      .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4;
    • clearConfigSyncState

      public MembershipState.Builder clearConfigSyncState()
       Current sync status
       
      .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4;
    • getConfigSyncStateBuilder

      public ConfigSyncState.Builder getConfigSyncStateBuilder()
       Current sync status
       
      .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4;
    • getConfigSyncStateOrBuilder

      public ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder()
       Current sync status
       
      .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4;
      Specified by:
      getConfigSyncStateOrBuilder in interface MembershipStateOrBuilder
    • hasPolicyControllerState

      public boolean hasPolicyControllerState()
       PolicyController status
       
      .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5;
      Specified by:
      hasPolicyControllerState in interface MembershipStateOrBuilder
      Returns:
      Whether the policyControllerState field is set.
    • getPolicyControllerState

      public PolicyControllerState getPolicyControllerState()
       PolicyController status
       
      .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5;
      Specified by:
      getPolicyControllerState in interface MembershipStateOrBuilder
      Returns:
      The policyControllerState.
    • setPolicyControllerState

      public MembershipState.Builder setPolicyControllerState(PolicyControllerState value)
       PolicyController status
       
      .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5;
    • setPolicyControllerState

      public MembershipState.Builder setPolicyControllerState(PolicyControllerState.Builder builderForValue)
       PolicyController status
       
      .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5;
    • mergePolicyControllerState

      public MembershipState.Builder mergePolicyControllerState(PolicyControllerState value)
       PolicyController status
       
      .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5;
    • clearPolicyControllerState

      public MembershipState.Builder clearPolicyControllerState()
       PolicyController status
       
      .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5;
    • getPolicyControllerStateBuilder

      public PolicyControllerState.Builder getPolicyControllerStateBuilder()
       PolicyController status
       
      .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5;
    • getPolicyControllerStateOrBuilder

      public PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder()
       PolicyController status
       
      .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5;
      Specified by:
      getPolicyControllerStateOrBuilder in interface MembershipStateOrBuilder
    • hasBinauthzState

      public boolean hasBinauthzState()
       Binauthz status
       
      .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6;
      Specified by:
      hasBinauthzState in interface MembershipStateOrBuilder
      Returns:
      Whether the binauthzState field is set.
    • getBinauthzState

      public BinauthzState getBinauthzState()
       Binauthz status
       
      .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6;
      Specified by:
      getBinauthzState in interface MembershipStateOrBuilder
      Returns:
      The binauthzState.
    • setBinauthzState

      public MembershipState.Builder setBinauthzState(BinauthzState value)
       Binauthz status
       
      .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6;
    • setBinauthzState

      public MembershipState.Builder setBinauthzState(BinauthzState.Builder builderForValue)
       Binauthz status
       
      .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6;
    • mergeBinauthzState

      public MembershipState.Builder mergeBinauthzState(BinauthzState value)
       Binauthz status
       
      .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6;
    • clearBinauthzState

      public MembershipState.Builder clearBinauthzState()
       Binauthz status
       
      .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6;
    • getBinauthzStateBuilder

      public BinauthzState.Builder getBinauthzStateBuilder()
       Binauthz status
       
      .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6;
    • getBinauthzStateOrBuilder

      public BinauthzStateOrBuilder getBinauthzStateOrBuilder()
       Binauthz status
       
      .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6;
      Specified by:
      getBinauthzStateOrBuilder in interface MembershipStateOrBuilder
    • hasHierarchyControllerState

      public boolean hasHierarchyControllerState()
       Hierarchy Controller status
       
      .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7;
      Specified by:
      hasHierarchyControllerState in interface MembershipStateOrBuilder
      Returns:
      Whether the hierarchyControllerState field is set.
    • getHierarchyControllerState

      public HierarchyControllerState getHierarchyControllerState()
       Hierarchy Controller status
       
      .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7;
      Specified by:
      getHierarchyControllerState in interface MembershipStateOrBuilder
      Returns:
      The hierarchyControllerState.
    • setHierarchyControllerState

      public MembershipState.Builder setHierarchyControllerState(HierarchyControllerState value)
       Hierarchy Controller status
       
      .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7;
    • setHierarchyControllerState

      public MembershipState.Builder setHierarchyControllerState(HierarchyControllerState.Builder builderForValue)
       Hierarchy Controller status
       
      .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7;
    • mergeHierarchyControllerState

      public MembershipState.Builder mergeHierarchyControllerState(HierarchyControllerState value)
       Hierarchy Controller status
       
      .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7;
    • clearHierarchyControllerState

      public MembershipState.Builder clearHierarchyControllerState()
       Hierarchy Controller status
       
      .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7;
    • getHierarchyControllerStateBuilder

      public HierarchyControllerState.Builder getHierarchyControllerStateBuilder()
       Hierarchy Controller status
       
      .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7;
    • getHierarchyControllerStateOrBuilder

      public HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder()
       Hierarchy Controller status
       
      .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7;
      Specified by:
      getHierarchyControllerStateOrBuilder in interface MembershipStateOrBuilder