Class 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.GeneratedMessageV3.Builder<MembershipState.Builder>
    implements MembershipStateOrBuilder
     **Anthos Config Management**: State for a single cluster.
     
    Protobuf type google.cloud.gkehub.configmanagement.v1.MembershipState
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public MembershipState.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<MembershipState.Builder>
      • setField

        public MembershipState.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<MembershipState.Builder>
      • clearField

        public MembershipState.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<MembershipState.Builder>
      • clearOneof

        public MembershipState.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MembershipState.Builder>
      • setRepeatedField

        public MembershipState.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MembershipState.Builder>
      • addRepeatedField

        public MembershipState.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MembershipState.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.OperatorState operator_state = 3;
      • setOperatorState

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public final MembershipState.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MembershipState.Builder>
      • mergeUnknownFields

        public final MembershipState.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MembershipState.Builder>