- 1.92.0 (latest)
- 1.91.0
- 1.90.0
- 1.88.0
- 1.86.0
- 1.85.0
- 1.84.0
- 1.83.0
- 1.82.0
- 1.80.0
- 1.78.0
- 1.77.0
- 1.74.0
- 1.73.0
- 1.72.0
- 1.70.0
- 1.69.0
- 1.68.0
- 1.67.0
- 1.66.0
- 1.65.0
- 1.64.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class NodeGroupAutoscalingPolicy.Builder extends GeneratedMessage.Builder<NodeGroupAutoscalingPolicy.Builder> implements NodeGroupAutoscalingPolicyOrBuilder Protobuf type google.cloud.compute.v1.NodeGroupAutoscalingPolicy
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > NodeGroupAutoscalingPolicy.BuilderImplements
NodeGroupAutoscalingPolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public NodeGroupAutoscalingPolicy build()| Returns | |
|---|---|
| Type | Description |
NodeGroupAutoscalingPolicy |
|
buildPartial()
public NodeGroupAutoscalingPolicy buildPartial()| Returns | |
|---|---|
| Type | Description |
NodeGroupAutoscalingPolicy |
|
clear()
public NodeGroupAutoscalingPolicy.Builder clear()| Returns | |
|---|---|
| Type | Description |
NodeGroupAutoscalingPolicy.Builder |
|
clearMaxNodes()
public NodeGroupAutoscalingPolicy.Builder clearMaxNodes()The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100.
optional int32 max_nodes = 297762838;
| Returns | |
|---|---|
| Type | Description |
NodeGroupAutoscalingPolicy.Builder |
This builder for chaining. |
clearMinNodes()
public NodeGroupAutoscalingPolicy.Builder clearMinNodes()The minimum number of nodes that the group should have.
optional int32 min_nodes = 533370500;
| Returns | |
|---|---|
| Type | Description |
NodeGroupAutoscalingPolicy.Builder |
This builder for chaining. |
clearMode()
public NodeGroupAutoscalingPolicy.Builder clearMode()The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes. Check the Mode enum for the list of possible values.
optional string mode = 3357091;
| Returns | |
|---|---|
| Type | Description |
NodeGroupAutoscalingPolicy.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public NodeGroupAutoscalingPolicy getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
NodeGroupAutoscalingPolicy |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMaxNodes()
public int getMaxNodes()The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100.
optional int32 max_nodes = 297762838;
| Returns | |
|---|---|
| Type | Description |
int |
The maxNodes. |
getMinNodes()
public int getMinNodes()The minimum number of nodes that the group should have.
optional int32 min_nodes = 533370500;
| Returns | |
|---|---|
| Type | Description |
int |
The minNodes. |
getMode()
public String getMode()The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes. Check the Mode enum for the list of possible values.
optional string mode = 3357091;
| Returns | |
|---|---|
| Type | Description |
String |
The mode. |
getModeBytes()
public ByteString getModeBytes()The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes. Check the Mode enum for the list of possible values.
optional string mode = 3357091;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for mode. |
hasMaxNodes()
public boolean hasMaxNodes()The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100.
optional int32 max_nodes = 297762838;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the maxNodes field is set. |
hasMinNodes()
public boolean hasMinNodes()The minimum number of nodes that the group should have.
optional int32 min_nodes = 533370500;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the minNodes field is set. |
hasMode()
public boolean hasMode()The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes. Check the Mode enum for the list of possible values.
optional string mode = 3357091;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the mode field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(NodeGroupAutoscalingPolicy other)
public NodeGroupAutoscalingPolicy.Builder mergeFrom(NodeGroupAutoscalingPolicy other)| Parameter | |
|---|---|
| Name | Description |
other |
NodeGroupAutoscalingPolicy |
| Returns | |
|---|---|
| Type | Description |
NodeGroupAutoscalingPolicy.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public NodeGroupAutoscalingPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NodeGroupAutoscalingPolicy.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public NodeGroupAutoscalingPolicy.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
NodeGroupAutoscalingPolicy.Builder |
|
setMaxNodes(int value)
public NodeGroupAutoscalingPolicy.Builder setMaxNodes(int value)The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100.
optional int32 max_nodes = 297762838;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe maxNodes to set. |
| Returns | |
|---|---|
| Type | Description |
NodeGroupAutoscalingPolicy.Builder |
This builder for chaining. |
setMinNodes(int value)
public NodeGroupAutoscalingPolicy.Builder setMinNodes(int value)The minimum number of nodes that the group should have.
optional int32 min_nodes = 533370500;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe minNodes to set. |
| Returns | |
|---|---|
| Type | Description |
NodeGroupAutoscalingPolicy.Builder |
This builder for chaining. |
setMode(String value)
public NodeGroupAutoscalingPolicy.Builder setMode(String value)The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes. Check the Mode enum for the list of possible values.
optional string mode = 3357091;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe mode to set. |
| Returns | |
|---|---|
| Type | Description |
NodeGroupAutoscalingPolicy.Builder |
This builder for chaining. |
setModeBytes(ByteString value)
public NodeGroupAutoscalingPolicy.Builder setModeBytes(ByteString value)The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes. Check the Mode enum for the list of possible values.
optional string mode = 3357091;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for mode to set. |
| Returns | |
|---|---|
| Type | Description |
NodeGroupAutoscalingPolicy.Builder |
This builder for chaining. |