Class NodePoolAutoscaling.Builder

  • All Implemented Interfaces:
    NodePoolAutoscalingOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    NodePoolAutoscaling

    public static final class NodePoolAutoscaling.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
    implements NodePoolAutoscalingOrBuilder
     NodePoolAutoscaling contains information required by cluster autoscaler to
     adjust the size of the node pool to the current cluster usage.
     
    Protobuf type google.container.v1beta1.NodePoolAutoscaling
    • 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<NodePoolAutoscaling.Builder>
      • clear

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

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

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

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

        public NodePoolAutoscaling.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<NodePoolAutoscaling.Builder>
      • setField

        public NodePoolAutoscaling.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<NodePoolAutoscaling.Builder>
      • clearField

        public NodePoolAutoscaling.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<NodePoolAutoscaling.Builder>
      • clearOneof

        public NodePoolAutoscaling.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<NodePoolAutoscaling.Builder>
      • setRepeatedField

        public NodePoolAutoscaling.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<NodePoolAutoscaling.Builder>
      • addRepeatedField

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

        public NodePoolAutoscaling.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<NodePoolAutoscaling.Builder>
      • isInitialized

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

        public NodePoolAutoscaling.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<NodePoolAutoscaling.Builder>
        Throws:
        IOException
      • getEnabled

        public boolean getEnabled()
         Is autoscaling enabled for this node pool.
         
        bool enabled = 1;
        Specified by:
        getEnabled in interface NodePoolAutoscalingOrBuilder
        Returns:
        The enabled.
      • setEnabled

        public NodePoolAutoscaling.Builder setEnabled​(boolean value)
         Is autoscaling enabled for this node pool.
         
        bool enabled = 1;
        Parameters:
        value - The enabled to set.
        Returns:
        This builder for chaining.
      • clearEnabled

        public NodePoolAutoscaling.Builder clearEnabled()
         Is autoscaling enabled for this node pool.
         
        bool enabled = 1;
        Returns:
        This builder for chaining.
      • getMinNodeCount

        public int getMinNodeCount()
         Minimum number of nodes for one location in the NodePool. Must be >= 1 and
         <= max_node_count.
         
        int32 min_node_count = 2;
        Specified by:
        getMinNodeCount in interface NodePoolAutoscalingOrBuilder
        Returns:
        The minNodeCount.
      • setMinNodeCount

        public NodePoolAutoscaling.Builder setMinNodeCount​(int value)
         Minimum number of nodes for one location in the NodePool. Must be >= 1 and
         <= max_node_count.
         
        int32 min_node_count = 2;
        Parameters:
        value - The minNodeCount to set.
        Returns:
        This builder for chaining.
      • clearMinNodeCount

        public NodePoolAutoscaling.Builder clearMinNodeCount()
         Minimum number of nodes for one location in the NodePool. Must be >= 1 and
         <= max_node_count.
         
        int32 min_node_count = 2;
        Returns:
        This builder for chaining.
      • getMaxNodeCount

        public int getMaxNodeCount()
         Maximum number of nodes for one location in the NodePool. Must be >=
         min_node_count. There has to be enough quota to scale up the cluster.
         
        int32 max_node_count = 3;
        Specified by:
        getMaxNodeCount in interface NodePoolAutoscalingOrBuilder
        Returns:
        The maxNodeCount.
      • setMaxNodeCount

        public NodePoolAutoscaling.Builder setMaxNodeCount​(int value)
         Maximum number of nodes for one location in the NodePool. Must be >=
         min_node_count. There has to be enough quota to scale up the cluster.
         
        int32 max_node_count = 3;
        Parameters:
        value - The maxNodeCount to set.
        Returns:
        This builder for chaining.
      • clearMaxNodeCount

        public NodePoolAutoscaling.Builder clearMaxNodeCount()
         Maximum number of nodes for one location in the NodePool. Must be >=
         min_node_count. There has to be enough quota to scale up the cluster.
         
        int32 max_node_count = 3;
        Returns:
        This builder for chaining.
      • getAutoprovisioned

        public boolean getAutoprovisioned()
         Can this node pool be deleted automatically.
         
        bool autoprovisioned = 4;
        Specified by:
        getAutoprovisioned in interface NodePoolAutoscalingOrBuilder
        Returns:
        The autoprovisioned.
      • setAutoprovisioned

        public NodePoolAutoscaling.Builder setAutoprovisioned​(boolean value)
         Can this node pool be deleted automatically.
         
        bool autoprovisioned = 4;
        Parameters:
        value - The autoprovisioned to set.
        Returns:
        This builder for chaining.
      • clearAutoprovisioned

        public NodePoolAutoscaling.Builder clearAutoprovisioned()
         Can this node pool be deleted automatically.
         
        bool autoprovisioned = 4;
        Returns:
        This builder for chaining.
      • getLocationPolicyValue

        public int getLocationPolicyValue()
         Location policy used when scaling up a nodepool.
         
        .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5;
        Specified by:
        getLocationPolicyValue in interface NodePoolAutoscalingOrBuilder
        Returns:
        The enum numeric value on the wire for locationPolicy.
      • setLocationPolicyValue

        public NodePoolAutoscaling.Builder setLocationPolicyValue​(int value)
         Location policy used when scaling up a nodepool.
         
        .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5;
        Parameters:
        value - The enum numeric value on the wire for locationPolicy to set.
        Returns:
        This builder for chaining.
      • setLocationPolicy

        public NodePoolAutoscaling.Builder setLocationPolicy​(NodePoolAutoscaling.LocationPolicy value)
         Location policy used when scaling up a nodepool.
         
        .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5;
        Parameters:
        value - The locationPolicy to set.
        Returns:
        This builder for chaining.
      • clearLocationPolicy

        public NodePoolAutoscaling.Builder clearLocationPolicy()
         Location policy used when scaling up a nodepool.
         
        .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5;
        Returns:
        This builder for chaining.
      • getTotalMinNodeCount

        public int getTotalMinNodeCount()
         Minimum number of nodes in the node pool. Must be greater than 1 less than
         total_max_node_count.
         The total_*_node_count fields are mutually exclusive with the *_node_count
         fields.
         
        int32 total_min_node_count = 6;
        Specified by:
        getTotalMinNodeCount in interface NodePoolAutoscalingOrBuilder
        Returns:
        The totalMinNodeCount.
      • setTotalMinNodeCount

        public NodePoolAutoscaling.Builder setTotalMinNodeCount​(int value)
         Minimum number of nodes in the node pool. Must be greater than 1 less than
         total_max_node_count.
         The total_*_node_count fields are mutually exclusive with the *_node_count
         fields.
         
        int32 total_min_node_count = 6;
        Parameters:
        value - The totalMinNodeCount to set.
        Returns:
        This builder for chaining.
      • clearTotalMinNodeCount

        public NodePoolAutoscaling.Builder clearTotalMinNodeCount()
         Minimum number of nodes in the node pool. Must be greater than 1 less than
         total_max_node_count.
         The total_*_node_count fields are mutually exclusive with the *_node_count
         fields.
         
        int32 total_min_node_count = 6;
        Returns:
        This builder for chaining.
      • getTotalMaxNodeCount

        public int getTotalMaxNodeCount()
         Maximum number of nodes in the node pool. Must be greater than
         total_min_node_count. There has to be enough quota to scale up the cluster.
         The total_*_node_count fields are mutually exclusive with the *_node_count
         fields.
         
        int32 total_max_node_count = 7;
        Specified by:
        getTotalMaxNodeCount in interface NodePoolAutoscalingOrBuilder
        Returns:
        The totalMaxNodeCount.
      • setTotalMaxNodeCount

        public NodePoolAutoscaling.Builder setTotalMaxNodeCount​(int value)
         Maximum number of nodes in the node pool. Must be greater than
         total_min_node_count. There has to be enough quota to scale up the cluster.
         The total_*_node_count fields are mutually exclusive with the *_node_count
         fields.
         
        int32 total_max_node_count = 7;
        Parameters:
        value - The totalMaxNodeCount to set.
        Returns:
        This builder for chaining.
      • clearTotalMaxNodeCount

        public NodePoolAutoscaling.Builder clearTotalMaxNodeCount()
         Maximum number of nodes in the node pool. Must be greater than
         total_min_node_count. There has to be enough quota to scale up the cluster.
         The total_*_node_count fields are mutually exclusive with the *_node_count
         fields.
         
        int32 total_max_node_count = 7;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final NodePoolAutoscaling.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<NodePoolAutoscaling.Builder>
      • mergeUnknownFields

        public final NodePoolAutoscaling.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<NodePoolAutoscaling.Builder>