Send feedback Class NodeGroupAutoscalingPolicy.Builder (1.38.0) Stay organized with collections Save and categorize content based on your preferences.
Version 1.38.0keyboard_arrow_down
public static final class NodeGroupAutoscalingPolicy . Builder extends GeneratedMessageV3 . Builder<NodeGroupAutoscalingPolicy . Builder > implements NodeGroupAutoscalingPolicyOrBuilder
Protobuf type google.cloud.compute.v1.NodeGroupAutoscalingPolicy
Inherited Members com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public NodeGroupAutoscalingPolicy . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides build()
public NodeGroupAutoscalingPolicy build ()
buildPartial()
public NodeGroupAutoscalingPolicy buildPartial ()
clear()
public NodeGroupAutoscalingPolicy . Builder clear ()
Overrides clearField(Descriptors.FieldDescriptor field)
public NodeGroupAutoscalingPolicy . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides 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;
clearMinNodes()
public NodeGroupAutoscalingPolicy . Builder clearMinNodes ()
The minimum number of nodes that the group should have.
optional int32 min_nodes = 533370500;
clearMode()
public NodeGroupAutoscalingPolicy . Builder 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;
clearOneof(Descriptors.OneofDescriptor oneof)
public NodeGroupAutoscalingPolicy . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides clone()
public NodeGroupAutoscalingPolicy . Builder clone ()
Overrides getDefaultInstanceForType()
public NodeGroupAutoscalingPolicy getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides 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;
Returns Type Description int
The maxNodes.
getMinNodes() The minimum number of nodes that the group should have.
optional int32 min_nodes = 533370500;
Returns Type Description int
The minNodes.
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;
Returns Type Description String
The mode.
getModeBytes()
public 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;
Returns Type Description ByteString
The bytes for mode.
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;
Returns Type Description boolean
Whether the maxNodes field is set.
hasMinNodes()
public boolean hasMinNodes ()
The minimum number of nodes that the group should have.
optional int32 min_nodes = 533370500;
Returns Type Description boolean
Whether the minNodes field is set.
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;
Returns Type Description boolean
Whether the mode field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides isInitialized()
public final boolean isInitialized ()
Overrides mergeFrom(NodeGroupAutoscalingPolicy other)
public NodeGroupAutoscalingPolicy . Builder mergeFrom ( NodeGroupAutoscalingPolicy other )
public NodeGroupAutoscalingPolicy . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides mergeFrom(Message other)
public NodeGroupAutoscalingPolicy . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides mergeUnknownFields(UnknownFieldSet unknownFields)
public final NodeGroupAutoscalingPolicy . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides setField(Descriptors.FieldDescriptor field, Object value)
public NodeGroupAutoscalingPolicy . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides setMaxNodes(int value)
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;
Parameter Name Description value
int
The maxNodes to set.
setMinNodes(int value)
public NodeGroupAutoscalingPolicy . Builder setMinNodes ( int value )
The minimum number of nodes that the group should have.
optional int32 min_nodes = 533370500;
Parameter Name Description value
int
The minNodes to set.
setMode(String value)
public NodeGroupAutoscalingPolicy . Builder setMode ( String 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;
Parameter Name Description value
String
The mode to set.
setModeBytes(ByteString value)
public NodeGroupAutoscalingPolicy . Builder setModeBytes ( 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;
Parameter Name Description value
ByteString
The bytes for mode to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public NodeGroupAutoscalingPolicy . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides setUnknownFields(UnknownFieldSet unknownFields)
public final NodeGroupAutoscalingPolicy . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-12 UTC.
Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-12 UTC."],[],[]]