Class NodeGroupAutoscalingPolicy.Builder (1.30.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NodeGroupAutoscalingPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NodeGroupAutoscalingPolicy.Builder
Overrides

build()

public NodeGroupAutoscalingPolicy build()
Returns
TypeDescription
NodeGroupAutoscalingPolicy

buildPartial()

public NodeGroupAutoscalingPolicy buildPartial()
Returns
TypeDescription
NodeGroupAutoscalingPolicy

clear()

public NodeGroupAutoscalingPolicy.Builder clear()
Returns
TypeDescription
NodeGroupAutoscalingPolicy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public NodeGroupAutoscalingPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
NodeGroupAutoscalingPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NodeGroupAutoscalingPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NodeGroupAutoscalingPolicy.Builder
Overrides

clone()

public NodeGroupAutoscalingPolicy.Builder clone()
Returns
TypeDescription
NodeGroupAutoscalingPolicy.Builder
Overrides

getDefaultInstanceForType()

public NodeGroupAutoscalingPolicy getDefaultInstanceForType()
Returns
TypeDescription
NodeGroupAutoscalingPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
int

The maxNodes.

getMinNodes()

public int getMinNodes()

The minimum number of nodes that the group should have.

optional int32 min_nodes = 533370500;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the mode field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NodeGroupAutoscalingPolicy other)

public NodeGroupAutoscalingPolicy.Builder mergeFrom(NodeGroupAutoscalingPolicy other)
Parameter
NameDescription
otherNodeGroupAutoscalingPolicy
Returns
TypeDescription
NodeGroupAutoscalingPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NodeGroupAutoscalingPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeGroupAutoscalingPolicy.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NodeGroupAutoscalingPolicy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NodeGroupAutoscalingPolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NodeGroupAutoscalingPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NodeGroupAutoscalingPolicy.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public NodeGroupAutoscalingPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The maxNodes to set.

Returns
TypeDescription
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
NameDescription
valueint

The minNodes to set.

Returns
TypeDescription
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
NameDescription
valueString

The mode to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for mode to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NodeGroupAutoscalingPolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NodeGroupAutoscalingPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NodeGroupAutoscalingPolicy.Builder
Overrides