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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public NodeGroupAutoscalingPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public NodeGroupAutoscalingPolicy build()
Returns
buildPartial()
public NodeGroupAutoscalingPolicy buildPartial()
Returns
clear()
public NodeGroupAutoscalingPolicy.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public NodeGroupAutoscalingPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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;
Returns
clearMinNodes()
public NodeGroupAutoscalingPolicy.Builder clearMinNodes()
The minimum number of nodes that the group should have.
optional int32 min_nodes = 533370500;
Returns
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;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public NodeGroupAutoscalingPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public NodeGroupAutoscalingPolicy.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public NodeGroupAutoscalingPolicy getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(NodeGroupAutoscalingPolicy other)
public NodeGroupAutoscalingPolicy.Builder mergeFrom(NodeGroupAutoscalingPolicy other)
Parameter
Returns
public NodeGroupAutoscalingPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public NodeGroupAutoscalingPolicy.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NodeGroupAutoscalingPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public NodeGroupAutoscalingPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.
|
Returns
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.
|
Returns
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.
|
Returns
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.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public NodeGroupAutoscalingPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final NodeGroupAutoscalingPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides