    public static interface ReadPoolAutoScaleConfig.TargetMetricOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getMetric()

    public abstract String getMetric()

The metric name to be used for auto scaling.

`optional string metric = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The metric. |

### getMetricBytes()

    public abstract ByteString getMetricBytes()

The metric name to be used for auto scaling.

`optional string metric = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for metric. |

### getTargetValue()

    public abstract float getTargetValue()

The target value for the metric.

`optional float target_value = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The targetValue. |

### hasMetric()

    public abstract boolean hasMetric()

The metric name to be used for auto scaling.

`optional string metric = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the metric field is set. |

### hasTargetValue()

    public abstract boolean hasTargetValue()

The target value for the metric.

`optional float target_value = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the targetValue field is set. |