public final class ReadPoolAutoScaleConfig extends GeneratedMessage implements ReadPoolAutoScaleConfigOrBuilder
The read pool auto-scale configuration.
Protobuf type google.cloud.sql.v1beta4.ReadPoolAutoScaleConfig
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
DISABLE_SCALE_IN_FIELD_NUMBER
public static final int DISABLE_SCALE_IN_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ENABLED_FIELD_NUMBER
public static final int ENABLED_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MAX_NODE_COUNT_FIELD_NUMBER
public static final int MAX_NODE_COUNT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MIN_NODE_COUNT_FIELD_NUMBER
public static final int MIN_NODE_COUNT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SCALE_IN_COOLDOWN_SECONDS_FIELD_NUMBER
public static final int SCALE_IN_COOLDOWN_SECONDS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SCALE_OUT_COOLDOWN_SECONDS_FIELD_NUMBER
public static final int SCALE_OUT_COOLDOWN_SECONDS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
TARGET_METRICS_FIELD_NUMBER
public static final int TARGET_METRICS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static ReadPoolAutoScaleConfig getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ReadPoolAutoScaleConfig.Builder newBuilder()
newBuilder(ReadPoolAutoScaleConfig prototype)
public static ReadPoolAutoScaleConfig.Builder newBuilder(ReadPoolAutoScaleConfig prototype)
public static ReadPoolAutoScaleConfig parseDelimitedFrom(InputStream input)
public static ReadPoolAutoScaleConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ReadPoolAutoScaleConfig parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ReadPoolAutoScaleConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ReadPoolAutoScaleConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ReadPoolAutoScaleConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ReadPoolAutoScaleConfig parseFrom(CodedInputStream input)
public static ReadPoolAutoScaleConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ReadPoolAutoScaleConfig parseFrom(InputStream input)
public static ReadPoolAutoScaleConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ReadPoolAutoScaleConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ReadPoolAutoScaleConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ReadPoolAutoScaleConfig> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public ReadPoolAutoScaleConfig getDefaultInstanceForType()
getDisableScaleIn()
public boolean getDisableScaleIn()
Indicates whether read pool auto scaling supports scale in operations
(removing nodes).
optional bool disable_scale_in = 5;
| Returns |
| Type |
Description |
boolean |
The disableScaleIn.
|
getEnabled()
public boolean getEnabled()
Indicates whether read pool auto scaling is enabled.
optional bool enabled = 1;
| Returns |
| Type |
Description |
boolean |
The enabled.
|
getMaxNodeCount()
public int getMaxNodeCount()
Maximum number of read pool nodes to be maintained.
optional int32 max_node_count = 3;
| Returns |
| Type |
Description |
int |
The maxNodeCount.
|
getMinNodeCount()
public int getMinNodeCount()
Minimum number of read pool nodes to be maintained.
optional int32 min_node_count = 2;
| Returns |
| Type |
Description |
int |
The minNodeCount.
|
getParserForType()
public Parser<ReadPoolAutoScaleConfig> getParserForType()
Overrides
getScaleInCooldownSeconds()
public int getScaleInCooldownSeconds()
The cooldown period for scale in operations.
optional int32 scale_in_cooldown_seconds = 6;
| Returns |
| Type |
Description |
int |
The scaleInCooldownSeconds.
|
getScaleOutCooldownSeconds()
public int getScaleOutCooldownSeconds()
The cooldown period for scale out operations.
optional int32 scale_out_cooldown_seconds = 7;
| Returns |
| Type |
Description |
int |
The scaleOutCooldownSeconds.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getTargetMetrics(int index)
public ReadPoolAutoScaleConfig.TargetMetric getTargetMetrics(int index)
Optional. Target metrics for read pool auto scaling.
repeated .google.cloud.sql.v1beta4.ReadPoolAutoScaleConfig.TargetMetric target_metrics = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getTargetMetricsCount()
public int getTargetMetricsCount()
Optional. Target metrics for read pool auto scaling.
repeated .google.cloud.sql.v1beta4.ReadPoolAutoScaleConfig.TargetMetric target_metrics = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
|
getTargetMetricsList()
public List<ReadPoolAutoScaleConfig.TargetMetric> getTargetMetricsList()
Optional. Target metrics for read pool auto scaling.
repeated .google.cloud.sql.v1beta4.ReadPoolAutoScaleConfig.TargetMetric target_metrics = 4 [(.google.api.field_behavior) = OPTIONAL];
getTargetMetricsOrBuilder(int index)
public ReadPoolAutoScaleConfig.TargetMetricOrBuilder getTargetMetricsOrBuilder(int index)
Optional. Target metrics for read pool auto scaling.
repeated .google.cloud.sql.v1beta4.ReadPoolAutoScaleConfig.TargetMetric target_metrics = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getTargetMetricsOrBuilderList()
public List<? extends ReadPoolAutoScaleConfig.TargetMetricOrBuilder> getTargetMetricsOrBuilderList()
Optional. Target metrics for read pool auto scaling.
repeated .google.cloud.sql.v1beta4.ReadPoolAutoScaleConfig.TargetMetric target_metrics = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.sql.v1beta4.ReadPoolAutoScaleConfig.TargetMetricOrBuilder> |
|
hasDisableScaleIn()
public boolean hasDisableScaleIn()
Indicates whether read pool auto scaling supports scale in operations
(removing nodes).
optional bool disable_scale_in = 5;
| Returns |
| Type |
Description |
boolean |
Whether the disableScaleIn field is set.
|
hasEnabled()
public boolean hasEnabled()
Indicates whether read pool auto scaling is enabled.
optional bool enabled = 1;
| Returns |
| Type |
Description |
boolean |
Whether the enabled field is set.
|
hasMaxNodeCount()
public boolean hasMaxNodeCount()
Maximum number of read pool nodes to be maintained.
optional int32 max_node_count = 3;
| Returns |
| Type |
Description |
boolean |
Whether the maxNodeCount field is set.
|
hasMinNodeCount()
public boolean hasMinNodeCount()
Minimum number of read pool nodes to be maintained.
optional int32 min_node_count = 2;
| Returns |
| Type |
Description |
boolean |
Whether the minNodeCount field is set.
|
hasScaleInCooldownSeconds()
public boolean hasScaleInCooldownSeconds()
The cooldown period for scale in operations.
optional int32 scale_in_cooldown_seconds = 6;
| Returns |
| Type |
Description |
boolean |
Whether the scaleInCooldownSeconds field is set.
|
hasScaleOutCooldownSeconds()
public boolean hasScaleOutCooldownSeconds()
The cooldown period for scale out operations.
optional int32 scale_out_cooldown_seconds = 7;
| Returns |
| Type |
Description |
boolean |
Whether the scaleOutCooldownSeconds field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ReadPoolAutoScaleConfig.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ReadPoolAutoScaleConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public ReadPoolAutoScaleConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides