Class NodeGroupAutoscalingPolicy.Builder (1.52.0)

public static final class NodeGroupAutoscalingPolicy.Builder extends GeneratedMessageV3.Builder<NodeGroupAutoscalingPolicy.Builder> implements NodeGroupAutoscalingPolicyOrBuilder

Protobuf type google.cloud.compute.v1.NodeGroupAutoscalingPolicy

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NodeGroupAutoscalingPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NodeGroupAutoscalingPolicy.Builder
Overrides

build()

public NodeGroupAutoscalingPolicy build()
Returns
Type Description
NodeGroupAutoscalingPolicy

buildPartial()

public NodeGroupAutoscalingPolicy buildPartial()
Returns
Type Description
NodeGroupAutoscalingPolicy

clear()

public NodeGroupAutoscalingPolicy.Builder clear()
Returns
Type Description
NodeGroupAutoscalingPolicy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public NodeGroupAutoscalingPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NodeGroupAutoscalingPolicy.Builder
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
Type Description
NodeGroupAutoscalingPolicy.Builder

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
Type Description
NodeGroupAutoscalingPolicy.Builder

This builder for chaining.

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
Type Description
NodeGroupAutoscalingPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NodeGroupAutoscalingPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NodeGroupAutoscalingPolicy.Builder
Overrides

clone()

public NodeGroupAutoscalingPolicy.Builder clone()
Returns
Type Description
NodeGroupAutoscalingPolicy.Builder
Overrides

getDefaultInstanceForType()

public NodeGroupAutoscalingPolicy getDefaultInstanceForType()
Returns
Type Description
NodeGroupAutoscalingPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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;

Returns
Type Description
int

The maxNodes.

getMinNodes()

public int getMinNodes()

The minimum number of nodes that the group should have.

optional int32 min_nodes = 533370500;

Returns
Type Description
int

The minNodes.

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;

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()

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;

Returns
Type Description
boolean

Whether the mode field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NodeGroupAutoscalingPolicy other)

public NodeGroupAutoscalingPolicy.Builder mergeFrom(NodeGroupAutoscalingPolicy other)
Parameter
Name Description
other NodeGroupAutoscalingPolicy
Returns
Type Description
NodeGroupAutoscalingPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NodeGroupAutoscalingPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NodeGroupAutoscalingPolicy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NodeGroupAutoscalingPolicy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NodeGroupAutoscalingPolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NodeGroupAutoscalingPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NodeGroupAutoscalingPolicy.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public NodeGroupAutoscalingPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NodeGroupAutoscalingPolicy.Builder
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
Type Description
NodeGroupAutoscalingPolicy.Builder

This builder for chaining.

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
Type Description
NodeGroupAutoscalingPolicy.Builder

This builder for chaining.

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
Type Description
NodeGroupAutoscalingPolicy.Builder

This builder for chaining.

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
Type Description
NodeGroupAutoscalingPolicy.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NodeGroupAutoscalingPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NodeGroupAutoscalingPolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NodeGroupAutoscalingPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NodeGroupAutoscalingPolicy.Builder
Overrides