Class ReadPoolAutoScaleConfig.TargetMetric (0.1.0)

public static final class ReadPoolAutoScaleConfig.TargetMetric extends GeneratedMessage implements ReadPoolAutoScaleConfig.TargetMetricOrBuilder

Target metric for read pool auto scaling.

Protobuf type google.cloud.sql.v1beta4.ReadPoolAutoScaleConfig.TargetMetric

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ReadPoolAutoScaleConfig.TargetMetric

Static Fields

METRIC_FIELD_NUMBER

public static final int METRIC_FIELD_NUMBER
Field Value
Type Description
int

TARGET_VALUE_FIELD_NUMBER

public static final int TARGET_VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ReadPoolAutoScaleConfig.TargetMetric getDefaultInstance()
Returns
Type Description
ReadPoolAutoScaleConfig.TargetMetric

getDescriptor()

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

newBuilder()

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

newBuilder(ReadPoolAutoScaleConfig.TargetMetric prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ReadPoolAutoScaleConfig.TargetMetric getDefaultInstanceForType()
Returns
Type Description
ReadPoolAutoScaleConfig.TargetMetric

getMetric()

public String getMetric()

The metric name to be used for auto scaling.

optional string metric = 1;

Returns
Type Description
String

The metric.

getMetricBytes()

public ByteString getMetricBytes()

The metric name to be used for auto scaling.

optional string metric = 1;

Returns
Type Description
ByteString

The bytes for metric.

getParserForType()

public Parser<ReadPoolAutoScaleConfig.TargetMetric> getParserForType()
Returns
Type Description
Parser<TargetMetric>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTargetValue()

public float getTargetValue()

The target value for the metric.

optional float target_value = 2;

Returns
Type Description
float

The targetValue.

hasMetric()

public boolean hasMetric()

The metric name to be used for auto scaling.

optional string metric = 1;

Returns
Type Description
boolean

Whether the metric field is set.

hasTargetValue()

public boolean hasTargetValue()

The target value for the metric.

optional float target_value = 2;

Returns
Type Description
boolean

Whether the targetValue 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.TargetMetric.Builder newBuilderForType()
Returns
Type Description
ReadPoolAutoScaleConfig.TargetMetric.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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