Class NodePoolAutoscaling.Builder (2.57.0)

public static final class NodePoolAutoscaling.Builder extends GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder> implements NodePoolAutoscalingOrBuilder

NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage.

Protobuf type google.container.v1.NodePoolAutoscaling

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NodePoolAutoscaling build()
Returns
Type Description
NodePoolAutoscaling

buildPartial()

public NodePoolAutoscaling buildPartial()
Returns
Type Description
NodePoolAutoscaling

clear()

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

clearAutoprovisioned()

public NodePoolAutoscaling.Builder clearAutoprovisioned()

Can this node pool be deleted automatically.

bool autoprovisioned = 4;

Returns
Type Description
NodePoolAutoscaling.Builder

This builder for chaining.

clearEnabled()

public NodePoolAutoscaling.Builder clearEnabled()

Is autoscaling enabled for this node pool.

bool enabled = 1;

Returns
Type Description
NodePoolAutoscaling.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NodePoolAutoscaling.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NodePoolAutoscaling.Builder
Overrides

clearLocationPolicy()

public NodePoolAutoscaling.Builder clearLocationPolicy()

Location policy used when scaling up a nodepool.

.google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;

Returns
Type Description
NodePoolAutoscaling.Builder

This builder for chaining.

clearMaxNodeCount()

public NodePoolAutoscaling.Builder clearMaxNodeCount()

Maximum number of nodes for one location in the node pool. Must be >= min_node_count. There has to be enough quota to scale up the cluster.

int32 max_node_count = 3;

Returns
Type Description
NodePoolAutoscaling.Builder

This builder for chaining.

clearMinNodeCount()

public NodePoolAutoscaling.Builder clearMinNodeCount()

Minimum number of nodes for one location in the node pool. Must be greater than or equal to 0 and less than or equal to max_node_count.

int32 min_node_count = 2;

Returns
Type Description
NodePoolAutoscaling.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalMaxNodeCount()

public NodePoolAutoscaling.Builder clearTotalMaxNodeCount()

Maximum number of nodes in the node pool. Must be greater than or equal to total_min_node_count. There has to be enough quota to scale up the cluster. The total_*_node_count fields are mutually exclusive with the *_node_count fields.

int32 total_max_node_count = 7;

Returns
Type Description
NodePoolAutoscaling.Builder

This builder for chaining.

clearTotalMinNodeCount()

public NodePoolAutoscaling.Builder clearTotalMinNodeCount()

Minimum number of nodes in the node pool. Must be greater than or equal to 0 and less than or equal to total_max_node_count. The total_*_node_count fields are mutually exclusive with the *_node_count fields.

int32 total_min_node_count = 6;

Returns
Type Description
NodePoolAutoscaling.Builder

This builder for chaining.

clone()

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

getAutoprovisioned()

public boolean getAutoprovisioned()

Can this node pool be deleted automatically.

bool autoprovisioned = 4;

Returns
Type Description
boolean

The autoprovisioned.

getDefaultInstanceForType()

public NodePoolAutoscaling getDefaultInstanceForType()
Returns
Type Description
NodePoolAutoscaling

getDescriptorForType()

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

getEnabled()

public boolean getEnabled()

Is autoscaling enabled for this node pool.

bool enabled = 1;

Returns
Type Description
boolean

The enabled.

getLocationPolicy()

public NodePoolAutoscaling.LocationPolicy getLocationPolicy()

Location policy used when scaling up a nodepool.

.google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;

Returns
Type Description
NodePoolAutoscaling.LocationPolicy

The locationPolicy.

getLocationPolicyValue()

public int getLocationPolicyValue()

Location policy used when scaling up a nodepool.

.google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;

Returns
Type Description
int

The enum numeric value on the wire for locationPolicy.

getMaxNodeCount()

public int getMaxNodeCount()

Maximum number of nodes for one location in the node pool. Must be >= min_node_count. There has to be enough quota to scale up the cluster.

int32 max_node_count = 3;

Returns
Type Description
int

The maxNodeCount.

getMinNodeCount()

public int getMinNodeCount()

Minimum number of nodes for one location in the node pool. Must be greater than or equal to 0 and less than or equal to max_node_count.

int32 min_node_count = 2;

Returns
Type Description
int

The minNodeCount.

getTotalMaxNodeCount()

public int getTotalMaxNodeCount()

Maximum number of nodes in the node pool. Must be greater than or equal to total_min_node_count. There has to be enough quota to scale up the cluster. The total_*_node_count fields are mutually exclusive with the *_node_count fields.

int32 total_max_node_count = 7;

Returns
Type Description
int

The totalMaxNodeCount.

getTotalMinNodeCount()

public int getTotalMinNodeCount()

Minimum number of nodes in the node pool. Must be greater than or equal to 0 and less than or equal to total_max_node_count. The total_*_node_count fields are mutually exclusive with the *_node_count fields.

int32 total_min_node_count = 6;

Returns
Type Description
int

The totalMinNodeCount.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NodePoolAutoscaling other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAutoprovisioned(boolean value)

public NodePoolAutoscaling.Builder setAutoprovisioned(boolean value)

Can this node pool be deleted automatically.

bool autoprovisioned = 4;

Parameter
Name Description
value boolean

The autoprovisioned to set.

Returns
Type Description
NodePoolAutoscaling.Builder

This builder for chaining.

setEnabled(boolean value)

public NodePoolAutoscaling.Builder setEnabled(boolean value)

Is autoscaling enabled for this node pool.

bool enabled = 1;

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
NodePoolAutoscaling.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLocationPolicy(NodePoolAutoscaling.LocationPolicy value)

public NodePoolAutoscaling.Builder setLocationPolicy(NodePoolAutoscaling.LocationPolicy value)

Location policy used when scaling up a nodepool.

.google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;

Parameter
Name Description
value NodePoolAutoscaling.LocationPolicy

The locationPolicy to set.

Returns
Type Description
NodePoolAutoscaling.Builder

This builder for chaining.

setLocationPolicyValue(int value)

public NodePoolAutoscaling.Builder setLocationPolicyValue(int value)

Location policy used when scaling up a nodepool.

.google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;

Parameter
Name Description
value int

The enum numeric value on the wire for locationPolicy to set.

Returns
Type Description
NodePoolAutoscaling.Builder

This builder for chaining.

setMaxNodeCount(int value)

public NodePoolAutoscaling.Builder setMaxNodeCount(int value)

Maximum number of nodes for one location in the node pool. Must be >= min_node_count. There has to be enough quota to scale up the cluster.

int32 max_node_count = 3;

Parameter
Name Description
value int

The maxNodeCount to set.

Returns
Type Description
NodePoolAutoscaling.Builder

This builder for chaining.

setMinNodeCount(int value)

public NodePoolAutoscaling.Builder setMinNodeCount(int value)

Minimum number of nodes for one location in the node pool. Must be greater than or equal to 0 and less than or equal to max_node_count.

int32 min_node_count = 2;

Parameter
Name Description
value int

The minNodeCount to set.

Returns
Type Description
NodePoolAutoscaling.Builder

This builder for chaining.

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

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

setTotalMaxNodeCount(int value)

public NodePoolAutoscaling.Builder setTotalMaxNodeCount(int value)

Maximum number of nodes in the node pool. Must be greater than or equal to total_min_node_count. There has to be enough quota to scale up the cluster. The total_*_node_count fields are mutually exclusive with the *_node_count fields.

int32 total_max_node_count = 7;

Parameter
Name Description
value int

The totalMaxNodeCount to set.

Returns
Type Description
NodePoolAutoscaling.Builder

This builder for chaining.

setTotalMinNodeCount(int value)

public NodePoolAutoscaling.Builder setTotalMinNodeCount(int value)

Minimum number of nodes in the node pool. Must be greater than or equal to 0 and less than or equal to total_max_node_count. The total_*_node_count fields are mutually exclusive with the *_node_count fields.

int32 total_min_node_count = 6;

Parameter
Name Description
value int

The totalMinNodeCount to set.

Returns
Type Description
NodePoolAutoscaling.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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