Class AutoscalingConfig.AutoscalingLimits (6.65.1)

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
Type Description
int

MAX_PROCESSING_UNITS_FIELD_NUMBER

public static final int MAX_PROCESSING_UNITS_FIELD_NUMBER
Field Value
Type Description
int

MIN_NODES_FIELD_NUMBER

public static final int MIN_NODES_FIELD_NUMBER
Field Value
Type Description
int

MIN_PROCESSING_UNITS_FIELD_NUMBER

public static final int MIN_PROCESSING_UNITS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AutoscalingConfig.AutoscalingLimits getDefaultInstance()
Returns
Type Description
AutoscalingConfig.AutoscalingLimits

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AutoscalingConfig.AutoscalingLimits.Builder newBuilder()
Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder

newBuilder(AutoscalingConfig.AutoscalingLimits prototype)

public static AutoscalingConfig.AutoscalingLimits.Builder newBuilder(AutoscalingConfig.AutoscalingLimits prototype)
Parameter
Name Description
prototype AutoscalingConfig.AutoscalingLimits
Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder

parseDelimitedFrom(InputStream input)

public static AutoscalingConfig.AutoscalingLimits parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AutoscalingConfig.AutoscalingLimits
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AutoscalingConfig.AutoscalingLimits parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutoscalingConfig.AutoscalingLimits
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AutoscalingConfig.AutoscalingLimits parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AutoscalingConfig.AutoscalingLimits
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AutoscalingConfig.AutoscalingLimits parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutoscalingConfig.AutoscalingLimits
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AutoscalingConfig.AutoscalingLimits parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AutoscalingConfig.AutoscalingLimits
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AutoscalingConfig.AutoscalingLimits parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutoscalingConfig.AutoscalingLimits
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AutoscalingConfig.AutoscalingLimits parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AutoscalingConfig.AutoscalingLimits
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AutoscalingConfig.AutoscalingLimits parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutoscalingConfig.AutoscalingLimits
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AutoscalingConfig.AutoscalingLimits parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AutoscalingConfig.AutoscalingLimits
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AutoscalingConfig.AutoscalingLimits parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutoscalingConfig.AutoscalingLimits
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AutoscalingConfig.AutoscalingLimits parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AutoscalingConfig.AutoscalingLimits
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AutoscalingConfig.AutoscalingLimits parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutoscalingConfig.AutoscalingLimits
Exceptions
Type Description
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AutoscalingConfig.AutoscalingLimits getDefaultInstanceForType()
Returns
Type Description
AutoscalingConfig.AutoscalingLimits

getMaxLimitCase()

public AutoscalingConfig.AutoscalingLimits.MaxLimitCase getMaxLimitCase()
Returns
Type Description
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
Type Description
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
Type Description
int

The maxProcessingUnits.

getMinLimitCase()

public AutoscalingConfig.AutoscalingLimits.MinLimitCase getMinLimitCase()
Returns
Type Description
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
Type Description
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
Type Description
int

The minProcessingUnits.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the minProcessingUnits field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AutoscalingConfig.AutoscalingLimits.Builder newBuilderForType()
Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AutoscalingConfig.AutoscalingLimits.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AutoscalingConfig.AutoscalingLimits.Builder toBuilder()
Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException