Class NodePoolAutoscaling.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NodePoolAutoscaling.Builder>
com.google.container.v1.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.GeneratedMessage.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.v1.NodePoolAutoscaling
  • 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<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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 node pool. Must be greater
       than or equal to 0 and less than or equal to 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 node pool. Must be greater
       than or equal to 0 and less than or equal to 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 node pool. Must be greater
       than or equal to 0 and less than or equal to 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 node pool. 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 node pool. 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 node pool. 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 node pool.
       
      .google.container.v1.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 node pool.
       
      .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;
      Parameters:
      value - The enum numeric value on the wire for locationPolicy to set.
      Returns:
      This builder for chaining.
    • getLocationPolicy

      public NodePoolAutoscaling.LocationPolicy getLocationPolicy()
       Location policy used when scaling up a node pool.
       
      .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;
      Specified by:
      getLocationPolicy in interface NodePoolAutoscalingOrBuilder
      Returns:
      The locationPolicy.
    • setLocationPolicy

       Location policy used when scaling up a node pool.
       
      .google.container.v1.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 node pool.
       
      .google.container.v1.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 or equal
       to 0 and less than or equal to 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 or equal
       to 0 and less than or equal to 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 or equal
       to 0 and less than or equal to 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 or equal to
       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 or equal to
       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 or equal to
       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.