Package com.google.container.v1
Class NodePoolAutoscaling.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NodePoolAutoscaling.Builder>
com.google.container.v1.NodePoolAutoscaling.Builder
- All Implemented Interfaces:
NodePoolAutoscalingOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- NodePoolAutoscaling
public static final class NodePoolAutoscaling.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Can this node pool be deleted automatically.Is autoscaling enabled for this node pool.Location policy used when scaling up a node pool.Maximum number of nodes for one location in the node pool.Minimum number of nodes for one location in the node pool.Maximum number of nodes in the node pool.Minimum number of nodes in the node pool.booleanCan this node pool be deleted automatically.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIs autoscaling enabled for this node pool.Location policy used when scaling up a node pool.intLocation policy used when scaling up a node pool.intMaximum number of nodes for one location in the node pool.intMinimum number of nodes for one location in the node pool.intMaximum number of nodes in the node pool.intMinimum number of nodes in the node pool.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(NodePoolAutoscaling other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAutoprovisioned(boolean value) Can this node pool be deleted automatically.setEnabled(boolean value) Is autoscaling enabled for this node pool.Location policy used when scaling up a node pool.setLocationPolicyValue(int value) Location policy used when scaling up a node pool.setMaxNodeCount(int value) Maximum number of nodes for one location in the node pool.setMinNodeCount(int value) Minimum number of nodes for one location in the node pool.setTotalMaxNodeCount(int value) Maximum number of nodes in the node pool.setTotalMinNodeCount(int value) Minimum number of nodes in the node pool.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<NodePoolAutoscaling.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<NodePoolAutoscaling.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<NodePoolAutoscaling.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NodePoolAutoscaling.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<NodePoolAutoscaling.Builder>
-
mergeFrom
public NodePoolAutoscaling.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NodePoolAutoscaling.Builder>- Throws:
IOException
-
getEnabled
public boolean getEnabled()Is autoscaling enabled for this node pool.
bool enabled = 1;- Specified by:
getEnabledin interfaceNodePoolAutoscalingOrBuilder- Returns:
- The enabled.
-
setEnabled
Is autoscaling enabled for this node pool.
bool enabled = 1;- Parameters:
value- The enabled to set.- Returns:
- This builder for chaining.
-
clearEnabled
Is autoscaling enabled for this node pool.
bool enabled = 1;- Returns:
- This builder for chaining.
-
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;- Specified by:
getMinNodeCountin interfaceNodePoolAutoscalingOrBuilder- Returns:
- The minNodeCount.
-
setMinNodeCount
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;- Parameters:
value- The minNodeCount to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
getMaxNodeCountin interfaceNodePoolAutoscalingOrBuilder- Returns:
- The maxNodeCount.
-
setMaxNodeCount
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;- Parameters:
value- The maxNodeCount to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getAutoprovisioned
public boolean getAutoprovisioned()Can this node pool be deleted automatically.
bool autoprovisioned = 4;- Specified by:
getAutoprovisionedin interfaceNodePoolAutoscalingOrBuilder- Returns:
- The autoprovisioned.
-
setAutoprovisioned
Can this node pool be deleted automatically.
bool autoprovisioned = 4;- Parameters:
value- The autoprovisioned to set.- Returns:
- This builder for chaining.
-
clearAutoprovisioned
Can this node pool be deleted automatically.
bool autoprovisioned = 4;- Returns:
- This builder for chaining.
-
getLocationPolicyValue
public int getLocationPolicyValue()Location policy used when scaling up a node pool.
.google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;- Specified by:
getLocationPolicyValuein interfaceNodePoolAutoscalingOrBuilder- Returns:
- The enum numeric value on the wire for locationPolicy.
-
setLocationPolicyValue
Location policy used when scaling up a node pool.
.google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;- Parameters:
value- The enum numeric value on the wire for locationPolicy to set.- Returns:
- This builder for chaining.
-
getLocationPolicy
Location policy used when scaling up a node pool.
.google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;- Specified by:
getLocationPolicyin interfaceNodePoolAutoscalingOrBuilder- Returns:
- The locationPolicy.
-
setLocationPolicy
Location policy used when scaling up a node pool.
.google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;- Parameters:
value- The locationPolicy to set.- Returns:
- This builder for chaining.
-
clearLocationPolicy
Location policy used when scaling up a node pool.
.google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;- Returns:
- This builder for chaining.
-
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;- Specified by:
getTotalMinNodeCountin interfaceNodePoolAutoscalingOrBuilder- Returns:
- The totalMinNodeCount.
-
setTotalMinNodeCount
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;- Parameters:
value- The totalMinNodeCount to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
getTotalMaxNodeCountin interfaceNodePoolAutoscalingOrBuilder- Returns:
- The totalMaxNodeCount.
-
setTotalMaxNodeCount
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;- Parameters:
value- The totalMaxNodeCount to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-