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.GeneratedMessageV3.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.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 typegoogle.container.v1.NodePoolAutoscaling
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NodePoolAutoscaling.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)NodePoolAutoscalingbuild()NodePoolAutoscalingbuildPartial()NodePoolAutoscaling.Builderclear()NodePoolAutoscaling.BuilderclearAutoprovisioned()Can this node pool be deleted automatically.NodePoolAutoscaling.BuilderclearEnabled()Is autoscaling enabled for this node pool.NodePoolAutoscaling.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)NodePoolAutoscaling.BuilderclearLocationPolicy()Location policy used when scaling up a nodepool.NodePoolAutoscaling.BuilderclearMaxNodeCount()Maximum number of nodes for one location in the NodePool.NodePoolAutoscaling.BuilderclearMinNodeCount()Minimum number of nodes for one location in the NodePool.NodePoolAutoscaling.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)NodePoolAutoscaling.BuilderclearTotalMaxNodeCount()Maximum number of nodes in the node pool.NodePoolAutoscaling.BuilderclearTotalMinNodeCount()Minimum number of nodes in the node pool.NodePoolAutoscaling.Builderclone()booleangetAutoprovisioned()Can this node pool be deleted automatically.NodePoolAutoscalinggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetEnabled()Is autoscaling enabled for this node pool.NodePoolAutoscaling.LocationPolicygetLocationPolicy()Location policy used when scaling up a nodepool.intgetLocationPolicyValue()Location policy used when scaling up a nodepool.intgetMaxNodeCount()Maximum number of nodes for one location in the NodePool.intgetMinNodeCount()Minimum number of nodes for one location in the NodePool.intgetTotalMaxNodeCount()Maximum number of nodes in the node pool.intgetTotalMinNodeCount()Minimum number of nodes in the node pool.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()NodePoolAutoscaling.BuildermergeFrom(NodePoolAutoscaling other)NodePoolAutoscaling.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)NodePoolAutoscaling.BuildermergeFrom(com.google.protobuf.Message other)NodePoolAutoscaling.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)NodePoolAutoscaling.BuildersetAutoprovisioned(boolean value)Can this node pool be deleted automatically.NodePoolAutoscaling.BuildersetEnabled(boolean value)Is autoscaling enabled for this node pool.NodePoolAutoscaling.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)NodePoolAutoscaling.BuildersetLocationPolicy(NodePoolAutoscaling.LocationPolicy value)Location policy used when scaling up a nodepool.NodePoolAutoscaling.BuildersetLocationPolicyValue(int value)Location policy used when scaling up a nodepool.NodePoolAutoscaling.BuildersetMaxNodeCount(int value)Maximum number of nodes for one location in the NodePool.NodePoolAutoscaling.BuildersetMinNodeCount(int value)Minimum number of nodes for one location in the NodePool.NodePoolAutoscaling.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)NodePoolAutoscaling.BuildersetTotalMaxNodeCount(int value)Maximum number of nodes in the node pool.NodePoolAutoscaling.BuildersetTotalMinNodeCount(int value)Minimum number of nodes in the node pool.NodePoolAutoscaling.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
clear
public NodePoolAutoscaling.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
getDefaultInstanceForType
public NodePoolAutoscaling getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public NodePoolAutoscaling build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public NodePoolAutoscaling buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public NodePoolAutoscaling.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
setField
public NodePoolAutoscaling.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
clearField
public NodePoolAutoscaling.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
clearOneof
public NodePoolAutoscaling.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
setRepeatedField
public NodePoolAutoscaling.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
addRepeatedField
public NodePoolAutoscaling.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
mergeFrom
public NodePoolAutoscaling.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NodePoolAutoscaling.Builder>
-
mergeFrom
public NodePoolAutoscaling.Builder mergeFrom(NodePoolAutoscaling other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public NodePoolAutoscaling.Builder setEnabled(boolean value)
Is autoscaling enabled for this node pool.
bool enabled = 1;- Parameters:
value- The enabled to set.- Returns:
- This builder for chaining.
-
clearEnabled
public NodePoolAutoscaling.Builder 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 NodePool. Must be >= 1 and <= max_node_count.
int32 min_node_count = 2;- Specified by:
getMinNodeCountin interfaceNodePoolAutoscalingOrBuilder- Returns:
- The minNodeCount.
-
setMinNodeCount
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;- Parameters:
value- The minNodeCount to set.- Returns:
- 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:
- This builder for chaining.
-
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;- Specified by:
getMaxNodeCountin interfaceNodePoolAutoscalingOrBuilder- Returns:
- The maxNodeCount.
-
setMaxNodeCount
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;- Parameters:
value- The maxNodeCount to set.- Returns:
- This builder for chaining.
-
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:
- 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
public NodePoolAutoscaling.Builder setAutoprovisioned(boolean value)
Can this node pool be deleted automatically.
bool autoprovisioned = 4;- Parameters:
value- The autoprovisioned to set.- Returns:
- This builder for chaining.
-
clearAutoprovisioned
public NodePoolAutoscaling.Builder 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 nodepool.
.google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;- Specified by:
getLocationPolicyValuein interfaceNodePoolAutoscalingOrBuilder- Returns:
- The enum numeric value on the wire for locationPolicy.
-
setLocationPolicyValue
public NodePoolAutoscaling.Builder setLocationPolicyValue(int value)
Location policy used when scaling up a nodepool.
.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
public NodePoolAutoscaling.LocationPolicy getLocationPolicy()
Location policy used when scaling up a nodepool.
.google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;- Specified by:
getLocationPolicyin interfaceNodePoolAutoscalingOrBuilder- Returns:
- The locationPolicy.
-
setLocationPolicy
public NodePoolAutoscaling.Builder setLocationPolicy(NodePoolAutoscaling.LocationPolicy value)
Location policy used when scaling up a nodepool.
.google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;- Parameters:
value- The locationPolicy to set.- Returns:
- This builder for chaining.
-
clearLocationPolicy
public NodePoolAutoscaling.Builder clearLocationPolicy()
Location policy used when scaling up a nodepool.
.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 1 less than 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
public NodePoolAutoscaling.Builder setTotalMinNodeCount(int value)
Minimum number of nodes in the node pool. Must be greater than 1 less than 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
public NodePoolAutoscaling.Builder clearTotalMinNodeCount()
Minimum number of nodes in the node pool. Must be greater than 1 less than 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 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
public NodePoolAutoscaling.Builder setTotalMaxNodeCount(int value)
Maximum number of nodes in the node pool. Must be greater than 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
public NodePoolAutoscaling.Builder clearTotalMaxNodeCount()
Maximum number of nodes in the node pool. Must be greater than 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.
-
setUnknownFields
public final NodePoolAutoscaling.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
mergeUnknownFields
public final NodePoolAutoscaling.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
-