Class NodePoolAutoscaling.Builder (2.3.8)

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.v1beta1.NodePoolAutoscaling

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NodePoolAutoscaling build()
Returns
TypeDescription
NodePoolAutoscaling

buildPartial()

public NodePoolAutoscaling buildPartial()
Returns
TypeDescription
NodePoolAutoscaling

clear()

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

clearAutoprovisioned()

public NodePoolAutoscaling.Builder clearAutoprovisioned()

Can this node pool be deleted automatically.

bool autoprovisioned = 4;

Returns
TypeDescription
NodePoolAutoscaling.Builder

This builder for chaining.

clearEnabled()

public NodePoolAutoscaling.Builder clearEnabled()

Is autoscaling enabled for this node pool.

bool enabled = 1;

Returns
TypeDescription
NodePoolAutoscaling.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NodePoolAutoscaling.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NodePoolAutoscaling.Builder
Overrides

clearMaxNodeCount()

public NodePoolAutoscaling.Builder clearMaxNodeCount()

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

int32 max_node_count = 3;

Returns
TypeDescription
NodePoolAutoscaling.Builder

This builder for chaining.

clearMinNodeCount()

public NodePoolAutoscaling.Builder clearMinNodeCount()

Minimum number of nodes for one location in the NodePool. Must be >= 1 and <= max_node_count.

int32 min_node_count = 2;

Returns
TypeDescription
NodePoolAutoscaling.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAutoprovisioned()

public boolean getAutoprovisioned()

Can this node pool be deleted automatically.

bool autoprovisioned = 4;

Returns
TypeDescription
boolean

The autoprovisioned.

getDefaultInstanceForType()

public NodePoolAutoscaling getDefaultInstanceForType()
Returns
TypeDescription
NodePoolAutoscaling

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Is autoscaling enabled for this node pool.

bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

getMaxNodeCount()

public int getMaxNodeCount()

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

int32 max_node_count = 3;

Returns
TypeDescription
int

The maxNodeCount.

getMinNodeCount()

public int getMinNodeCount()

Minimum number of nodes for one location in the NodePool. Must be >= 1 and <= max_node_count.

int32 min_node_count = 2;

Returns
TypeDescription
int

The minNodeCount.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NodePoolAutoscaling other)

public NodePoolAutoscaling.Builder mergeFrom(NodePoolAutoscaling other)
Parameter
NameDescription
otherNodePoolAutoscaling
Returns
TypeDescription
NodePoolAutoscaling.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAutoprovisioned(boolean value)

public NodePoolAutoscaling.Builder setAutoprovisioned(boolean value)

Can this node pool be deleted automatically.

bool autoprovisioned = 4;

Parameter
NameDescription
valueboolean

The autoprovisioned to set.

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

The enabled to set.

Returns
TypeDescription
NodePoolAutoscaling.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMaxNodeCount(int value)

public NodePoolAutoscaling.Builder setMaxNodeCount(int value)

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

int32 max_node_count = 3;

Parameter
NameDescription
valueint

The maxNodeCount to set.

Returns
TypeDescription
NodePoolAutoscaling.Builder

This builder for chaining.

setMinNodeCount(int value)

public NodePoolAutoscaling.Builder setMinNodeCount(int value)

Minimum number of nodes for one location in the NodePool. Must be >= 1 and <= max_node_count.

int32 min_node_count = 2;

Parameter
NameDescription
valueint

The minNodeCount to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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