# Interface MetricDataOrBuilder (0.14.0)

0.14.0 (latest) 0.12.0 0.9.0 0.8.0 0.6.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface MetricDataOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getObservationTime()

    public abstract Timestamp getObservationTime()

The time the metric was observed in the metric source service.

`.google.protobuf.Timestamp observation_time = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The observationTime. |

### getObservationTimeOrBuilder()

    public abstract TimestampOrBuilder getObservationTimeOrBuilder()

The time the metric was observed in the metric source service.

`.google.protobuf.Timestamp observation_time = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getValue()

    public abstract TypedValue getValue()

The value associated with the metric.

`.google.cloud.databasecenter.v1beta.TypedValue value = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-databasecenter/latest/com.google.cloud.databasecenter.v1beta.TypedValue` | The value. |

### getValueOrBuilder()

    public abstract TypedValueOrBuilder getValueOrBuilder()

The value associated with the metric.

`.google.cloud.databasecenter.v1beta.TypedValue value = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-databasecenter/latest/com.google.cloud.databasecenter.v1beta.TypedValueOrBuilder` |   |

### hasObservationTime()

    public abstract boolean hasObservationTime()

The time the metric was observed in the metric source service.

`.google.protobuf.Timestamp observation_time = 2;`

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

### hasValue()

    public abstract boolean hasValue()

The value associated with the metric.

`.google.cloud.databasecenter.v1beta.TypedValue value = 1;`

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