Class NodeGroupAutoscalingPolicy (1.25.0)

public final class NodeGroupAutoscalingPolicy extends GeneratedMessageV3 implements NodeGroupAutoscalingPolicyOrBuilder

Protobuf type google.cloud.compute.v1.NodeGroupAutoscalingPolicy

Static Fields

MAX_NODES_FIELD_NUMBER

public static final int MAX_NODES_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_NODES_FIELD_NUMBER

public static final int MIN_NODES_FIELD_NUMBER
Field Value
TypeDescription
int

MODE_FIELD_NUMBER

public static final int MODE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NodeGroupAutoscalingPolicy getDefaultInstance()
Returns
TypeDescription
NodeGroupAutoscalingPolicy

getDescriptor()

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

newBuilder()

public static NodeGroupAutoscalingPolicy.Builder newBuilder()
Returns
TypeDescription
NodeGroupAutoscalingPolicy.Builder

newBuilder(NodeGroupAutoscalingPolicy prototype)

public static NodeGroupAutoscalingPolicy.Builder newBuilder(NodeGroupAutoscalingPolicy prototype)
Parameter
NameDescription
prototypeNodeGroupAutoscalingPolicy
Returns
TypeDescription
NodeGroupAutoscalingPolicy.Builder

parseDelimitedFrom(InputStream input)

public static NodeGroupAutoscalingPolicy parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NodeGroupAutoscalingPolicy
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NodeGroupAutoscalingPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeGroupAutoscalingPolicy
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static NodeGroupAutoscalingPolicy parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
NodeGroupAutoscalingPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NodeGroupAutoscalingPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeGroupAutoscalingPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NodeGroupAutoscalingPolicy parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
NodeGroupAutoscalingPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NodeGroupAutoscalingPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeGroupAutoscalingPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NodeGroupAutoscalingPolicy parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
NodeGroupAutoscalingPolicy
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NodeGroupAutoscalingPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeGroupAutoscalingPolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static NodeGroupAutoscalingPolicy parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NodeGroupAutoscalingPolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NodeGroupAutoscalingPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeGroupAutoscalingPolicy
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static NodeGroupAutoscalingPolicy parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
NodeGroupAutoscalingPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NodeGroupAutoscalingPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeGroupAutoscalingPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<NodeGroupAutoscalingPolicy> parser()
Returns
TypeDescription
Parser<NodeGroupAutoscalingPolicy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public NodeGroupAutoscalingPolicy getDefaultInstanceForType()
Returns
TypeDescription
NodeGroupAutoscalingPolicy

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
TypeDescription
int

The maxNodes.

getMinNodes()

public int getMinNodes()

The minimum number of nodes that the group should have.

optional int32 min_nodes = 533370500;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for mode.

getParserForType()

public Parser<NodeGroupAutoscalingPolicy> getParserForType()
Returns
TypeDescription
Parser<NodeGroupAutoscalingPolicy>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the mode field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public NodeGroupAutoscalingPolicy.Builder newBuilderForType()
Returns
TypeDescription
NodeGroupAutoscalingPolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NodeGroupAutoscalingPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
NodeGroupAutoscalingPolicy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public NodeGroupAutoscalingPolicy.Builder toBuilder()
Returns
TypeDescription
NodeGroupAutoscalingPolicy.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException