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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static AutoscalingConfig.AutoscalingLimits.Builder newBuilder()
newBuilder(AutoscalingConfig.AutoscalingLimits prototype)
public static AutoscalingConfig.AutoscalingLimits.Builder newBuilder(AutoscalingConfig.AutoscalingLimits prototype)
public static AutoscalingConfig.AutoscalingLimits parseDelimitedFrom(InputStream input)
public static AutoscalingConfig.AutoscalingLimits parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static AutoscalingConfig.AutoscalingLimits parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AutoscalingConfig.AutoscalingLimits parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static AutoscalingConfig.AutoscalingLimits parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AutoscalingConfig.AutoscalingLimits parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AutoscalingConfig.AutoscalingLimits parseFrom(CodedInputStream input)
public static AutoscalingConfig.AutoscalingLimits parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AutoscalingConfig.AutoscalingLimits parseFrom(InputStream input)
public static AutoscalingConfig.AutoscalingLimits parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static AutoscalingConfig.AutoscalingLimits parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AutoscalingConfig.AutoscalingLimits parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<AutoscalingConfig.AutoscalingLimits> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public AutoscalingConfig.AutoscalingLimits getDefaultInstanceForType()
getMaxLimitCase()
public AutoscalingConfig.AutoscalingLimits.MaxLimitCase getMaxLimitCase()
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()
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()
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()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public AutoscalingConfig.AutoscalingLimits.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AutoscalingConfig.AutoscalingLimits.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public AutoscalingConfig.AutoscalingLimits.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides