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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
NodePoolAutoscaling
build()
NodePoolAutoscaling
buildPartial()
NodePoolAutoscaling.Builder
clear()
NodePoolAutoscaling.Builder
clearAutoprovisioned()
Can this node pool be deleted automatically.NodePoolAutoscaling.Builder
clearEnabled()
Is autoscaling enabled for this node pool.NodePoolAutoscaling.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
NodePoolAutoscaling.Builder
clearLocationPolicy()
Location policy used when scaling up a nodepool.NodePoolAutoscaling.Builder
clearMaxNodeCount()
Maximum number of nodes for one location in the NodePool.NodePoolAutoscaling.Builder
clearMinNodeCount()
Minimum number of nodes for one location in the NodePool.NodePoolAutoscaling.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
NodePoolAutoscaling.Builder
clearTotalMaxNodeCount()
Maximum number of nodes in the node pool.NodePoolAutoscaling.Builder
clearTotalMinNodeCount()
Minimum number of nodes in the node pool.NodePoolAutoscaling.Builder
clone()
boolean
getAutoprovisioned()
Can this node pool be deleted automatically.NodePoolAutoscaling
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getEnabled()
Is autoscaling enabled for this node pool.NodePoolAutoscaling.LocationPolicy
getLocationPolicy()
Location policy used when scaling up a nodepool.int
getLocationPolicyValue()
Location policy used when scaling up a nodepool.int
getMaxNodeCount()
Maximum number of nodes for one location in the NodePool.int
getMinNodeCount()
Minimum number of nodes for one location in the NodePool.int
getTotalMaxNodeCount()
Maximum number of nodes in the node pool.int
getTotalMinNodeCount()
Minimum number of nodes in the node pool.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
NodePoolAutoscaling.Builder
mergeFrom(NodePoolAutoscaling other)
NodePoolAutoscaling.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
NodePoolAutoscaling.Builder
mergeFrom(com.google.protobuf.Message other)
NodePoolAutoscaling.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
NodePoolAutoscaling.Builder
setAutoprovisioned(boolean value)
Can this node pool be deleted automatically.NodePoolAutoscaling.Builder
setEnabled(boolean value)
Is autoscaling enabled for this node pool.NodePoolAutoscaling.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
NodePoolAutoscaling.Builder
setLocationPolicy(NodePoolAutoscaling.LocationPolicy value)
Location policy used when scaling up a nodepool.NodePoolAutoscaling.Builder
setLocationPolicyValue(int value)
Location policy used when scaling up a nodepool.NodePoolAutoscaling.Builder
setMaxNodeCount(int value)
Maximum number of nodes for one location in the NodePool.NodePoolAutoscaling.Builder
setMinNodeCount(int value)
Minimum number of nodes for one location in the NodePool.NodePoolAutoscaling.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
NodePoolAutoscaling.Builder
setTotalMaxNodeCount(int value)
Maximum number of nodes in the node pool.NodePoolAutoscaling.Builder
setTotalMinNodeCount(int value)
Minimum number of nodes in the node pool.NodePoolAutoscaling.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
clear
public NodePoolAutoscaling.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
getDefaultInstanceForType
public NodePoolAutoscaling getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public NodePoolAutoscaling build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public NodePoolAutoscaling buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public NodePoolAutoscaling.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
setField
public NodePoolAutoscaling.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
clearField
public NodePoolAutoscaling.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
clearOneof
public NodePoolAutoscaling.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
setRepeatedField
public NodePoolAutoscaling.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
addRepeatedField
public NodePoolAutoscaling.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
mergeFrom
public NodePoolAutoscaling.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<NodePoolAutoscaling.Builder>
-
mergeFrom
public NodePoolAutoscaling.Builder mergeFrom(NodePoolAutoscaling other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getEnabled
in 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:
getMinNodeCount
in 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:
getMaxNodeCount
in 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:
getAutoprovisioned
in 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:
getLocationPolicyValue
in 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:
getLocationPolicy
in 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:
getTotalMinNodeCount
in 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:
getTotalMaxNodeCount
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
mergeUnknownFields
public final NodePoolAutoscaling.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodePoolAutoscaling.Builder>
-
-