Class AutoscalingConfig.AutoscalingLimits (6.62.0)

public static final class AutoscalingConfig.AutoscalingLimits extends GeneratedMessageV3 implements AutoscalingConfig.AutoscalingLimitsOrBuilder

The autoscaling limits for the instance. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and max_limit.

Protobuf type google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AutoscalingConfig.AutoscalingLimits

Static Fields

MAX_NODES_FIELD_NUMBER

public static final int MAX_NODES_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_PROCESSING_UNITS_FIELD_NUMBER

public static final int MAX_PROCESSING_UNITS_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_NODES_FIELD_NUMBER

public static final int MIN_NODES_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_PROCESSING_UNITS_FIELD_NUMBER

public static final int MIN_PROCESSING_UNITS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AutoscalingConfig.AutoscalingLimits getDefaultInstance()
Returns
TypeDescription
AutoscalingConfig.AutoscalingLimits

getDescriptor()

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

newBuilder()

public static AutoscalingConfig.AutoscalingLimits.Builder newBuilder()
Returns
TypeDescription
AutoscalingConfig.AutoscalingLimits.Builder

newBuilder(AutoscalingConfig.AutoscalingLimits prototype)

public static AutoscalingConfig.AutoscalingLimits.Builder newBuilder(AutoscalingConfig.AutoscalingLimits prototype)
Parameter
NameDescription
prototypeAutoscalingConfig.AutoscalingLimits
Returns
TypeDescription
AutoscalingConfig.AutoscalingLimits.Builder

parseDelimitedFrom(InputStream input)

public static AutoscalingConfig.AutoscalingLimits parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AutoscalingConfig.AutoscalingLimits
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static AutoscalingConfig.AutoscalingLimits parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AutoscalingConfig.AutoscalingLimits
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static AutoscalingConfig.AutoscalingLimits parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AutoscalingConfig.AutoscalingLimits
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static AutoscalingConfig.AutoscalingLimits parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AutoscalingConfig.AutoscalingLimits
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static AutoscalingConfig.AutoscalingLimits parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AutoscalingConfig.AutoscalingLimits
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<AutoscalingConfig.AutoscalingLimits> parser()
Returns
TypeDescription
Parser<AutoscalingLimits>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public AutoscalingConfig.AutoscalingLimits getDefaultInstanceForType()
Returns
TypeDescription
AutoscalingConfig.AutoscalingLimits

getMaxLimitCase()

public AutoscalingConfig.AutoscalingLimits.MaxLimitCase getMaxLimitCase()
Returns
TypeDescription
AutoscalingConfig.AutoscalingLimits.MaxLimitCase

getMaxNodes()

public int getMaxNodes()

Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.

int32 max_nodes = 3;

Returns
TypeDescription
int

The maxNodes.

getMaxProcessingUnits()

public int getMaxProcessingUnits()

Maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.

int32 max_processing_units = 4;

Returns
TypeDescription
int

The maxProcessingUnits.

getMinLimitCase()

public AutoscalingConfig.AutoscalingLimits.MinLimitCase getMinLimitCase()
Returns
TypeDescription
AutoscalingConfig.AutoscalingLimits.MinLimitCase

getMinNodes()

public int getMinNodes()

Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.

int32 min_nodes = 1;

Returns
TypeDescription
int

The minNodes.

getMinProcessingUnits()

public int getMinProcessingUnits()

Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.

int32 min_processing_units = 2;

Returns
TypeDescription
int

The minProcessingUnits.

getParserForType()

public Parser<AutoscalingConfig.AutoscalingLimits> getParserForType()
Returns
TypeDescription
Parser<AutoscalingLimits>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasMaxNodes()

public boolean hasMaxNodes()

Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.

int32 max_nodes = 3;

Returns
TypeDescription
boolean

Whether the maxNodes field is set.

hasMaxProcessingUnits()

public boolean hasMaxProcessingUnits()

Maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.

int32 max_processing_units = 4;

Returns
TypeDescription
boolean

Whether the maxProcessingUnits field is set.

hasMinNodes()

public boolean hasMinNodes()

Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.

int32 min_nodes = 1;

Returns
TypeDescription
boolean

Whether the minNodes field is set.

hasMinProcessingUnits()

public boolean hasMinProcessingUnits()

Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.

int32 min_processing_units = 2;

Returns
TypeDescription
boolean

Whether the minProcessingUnits 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 AutoscalingConfig.AutoscalingLimits.Builder newBuilderForType()
Returns
TypeDescription
AutoscalingConfig.AutoscalingLimits.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public AutoscalingConfig.AutoscalingLimits.Builder toBuilder()
Returns
TypeDescription
AutoscalingConfig.AutoscalingLimits.Builder

writeTo(CodedOutputStream output)

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