Class NodeGroupAutoscalingPolicy.Builder

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

public static final class NodeGroupAutoscalingPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<NodeGroupAutoscalingPolicy.Builder> implements NodeGroupAutoscalingPolicyOrBuilder
 
Protobuf type google.cloud.compute.v1.NodeGroupAutoscalingPolicy
  • 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<NodeGroupAutoscalingPolicy.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<NodeGroupAutoscalingPolicy.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<NodeGroupAutoscalingPolicy.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public NodeGroupAutoscalingPolicy.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<NodeGroupAutoscalingPolicy.Builder>
      Throws:
      IOException
    • hasMaxNodes

      public boolean hasMaxNodes()
       The maximum number of nodes that the group should have. Must be set if
       autoscaling is enabled. Maximum value allowed is 100.
       
      optional int32 max_nodes = 297762838;
      Specified by:
      hasMaxNodes in interface NodeGroupAutoscalingPolicyOrBuilder
      Returns:
      Whether the maxNodes field is set.
    • getMaxNodes

      public int getMaxNodes()
       The maximum number of nodes that the group should have. Must be set if
       autoscaling is enabled. Maximum value allowed is 100.
       
      optional int32 max_nodes = 297762838;
      Specified by:
      getMaxNodes in interface NodeGroupAutoscalingPolicyOrBuilder
      Returns:
      The maxNodes.
    • setMaxNodes

      public NodeGroupAutoscalingPolicy.Builder setMaxNodes(int value)
       The maximum number of nodes that the group should have. Must be set if
       autoscaling is enabled. Maximum value allowed is 100.
       
      optional int32 max_nodes = 297762838;
      Parameters:
      value - The maxNodes to set.
      Returns:
      This builder for chaining.
    • clearMaxNodes

      public NodeGroupAutoscalingPolicy.Builder clearMaxNodes()
       The maximum number of nodes that the group should have. Must be set if
       autoscaling is enabled. Maximum value allowed is 100.
       
      optional int32 max_nodes = 297762838;
      Returns:
      This builder for chaining.
    • hasMinNodes

      public boolean hasMinNodes()
       The minimum number of nodes that the group should have.
       
      optional int32 min_nodes = 533370500;
      Specified by:
      hasMinNodes in interface NodeGroupAutoscalingPolicyOrBuilder
      Returns:
      Whether the minNodes field is set.
    • getMinNodes

      public int getMinNodes()
       The minimum number of nodes that the group should have.
       
      optional int32 min_nodes = 533370500;
      Specified by:
      getMinNodes in interface NodeGroupAutoscalingPolicyOrBuilder
      Returns:
      The minNodes.
    • setMinNodes

      public NodeGroupAutoscalingPolicy.Builder setMinNodes(int value)
       The minimum number of nodes that the group should have.
       
      optional int32 min_nodes = 533370500;
      Parameters:
      value - The minNodes to set.
      Returns:
      This builder for chaining.
    • clearMinNodes

      public NodeGroupAutoscalingPolicy.Builder clearMinNodes()
       The minimum number of nodes that the group should have.
       
      optional int32 min_nodes = 533370500;
      Returns:
      This builder for chaining.
    • hasMode

      public boolean hasMode()
       The autoscaling mode. Set to one of: ON, OFF,
       or ONLY_SCALE_OUT. For more information, see
       Autoscaler modes.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Specified by:
      hasMode in interface NodeGroupAutoscalingPolicyOrBuilder
      Returns:
      Whether the mode field is set.
    • getMode

      public String getMode()
       The autoscaling mode. Set to one of: ON, OFF,
       or ONLY_SCALE_OUT. For more information, see
       Autoscaler modes.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Specified by:
      getMode in interface NodeGroupAutoscalingPolicyOrBuilder
      Returns:
      The mode.
    • getModeBytes

      public com.google.protobuf.ByteString getModeBytes()
       The autoscaling mode. Set to one of: ON, OFF,
       or ONLY_SCALE_OUT. For more information, see
       Autoscaler modes.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Specified by:
      getModeBytes in interface NodeGroupAutoscalingPolicyOrBuilder
      Returns:
      The bytes for mode.
    • setMode

       The autoscaling mode. Set to one of: ON, OFF,
       or ONLY_SCALE_OUT. For more information, see
       Autoscaler modes.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Parameters:
      value - The mode to set.
      Returns:
      This builder for chaining.
    • clearMode

       The autoscaling mode. Set to one of: ON, OFF,
       or ONLY_SCALE_OUT. For more information, see
       Autoscaler modes.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Returns:
      This builder for chaining.
    • setModeBytes

      public NodeGroupAutoscalingPolicy.Builder setModeBytes(com.google.protobuf.ByteString value)
       The autoscaling mode. Set to one of: ON, OFF,
       or ONLY_SCALE_OUT. For more information, see
       Autoscaler modes.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Parameters:
      value - The bytes for mode to set.
      Returns:
      This builder for chaining.