Class ReadPoolAutoScaleConfig (0.1.0)

public final class ReadPoolAutoScaleConfig extends GeneratedMessage implements ReadPoolAutoScaleConfigOrBuilder

The read pool auto-scale configuration.

Protobuf type google.cloud.sql.v1beta4.ReadPoolAutoScaleConfig

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()
Returns
Type Description
ReadPoolAutoScaleConfig

getDescriptor()

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

newBuilder()

public static ReadPoolAutoScaleConfig.Builder newBuilder()
Returns
Type Description
ReadPoolAutoScaleConfig.Builder

newBuilder(ReadPoolAutoScaleConfig prototype)

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

parseDelimitedFrom(InputStream input)

public static ReadPoolAutoScaleConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ReadPoolAutoScaleConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ReadPoolAutoScaleConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ReadPoolAutoScaleConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ReadPoolAutoScaleConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ReadPoolAutoScaleConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ReadPoolAutoScaleConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ReadPoolAutoScaleConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ReadPoolAutoScaleConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ReadPoolAutoScaleConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ReadPoolAutoScaleConfig> parser()
Returns
Type Description
Parser<ReadPoolAutoScaleConfig>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ReadPoolAutoScaleConfig getDefaultInstanceForType()
Returns
Type Description
ReadPoolAutoScaleConfig

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()
Returns
Type Description
Parser<ReadPoolAutoScaleConfig>
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
Returns
Type Description
ReadPoolAutoScaleConfig.TargetMetric

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];

Returns
Type Description
List<TargetMetric>

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
Returns
Type Description
ReadPoolAutoScaleConfig.TargetMetricOrBuilder

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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ReadPoolAutoScaleConfig.Builder newBuilderForType()
Returns
Type Description
ReadPoolAutoScaleConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ReadPoolAutoScaleConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ReadPoolAutoScaleConfig.Builder
Overrides

toBuilder()

public ReadPoolAutoScaleConfig.Builder toBuilder()
Returns
Type Description
ReadPoolAutoScaleConfig.Builder

writeTo(CodedOutputStream output)

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