# Interface QueryMetricsOrBuilder (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 QueryMetricsOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAvgCpuTime()

    public abstract Duration getAvgCpuTime()

The average execution period of the query across all runs.

`.google.protobuf.Duration avg_cpu_time = 2;`

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

### getAvgCpuTimeOrBuilder()

    public abstract DurationOrBuilder getAvgCpuTimeOrBuilder()

The average execution period of the query across all runs.

`.google.protobuf.Duration avg_cpu_time = 2;`

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

### getExecutionCount()

    public abstract long getExecutionCount()

The number of times the query was executed.

`int64 execution_count = 1;`

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

### getMetricsWindow()

    public abstract QueryMetrics.MetricsWindow getMetricsWindow()

The window over which the metrics are aggregated.

`.google.cloud.databasecenter.v1beta.QueryMetrics.MetricsWindow metrics_window = 5;`

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

### getMetricsWindowValue()

    public abstract int getMetricsWindowValue()

The window over which the metrics are aggregated.

`.google.cloud.databasecenter.v1beta.QueryMetrics.MetricsWindow metrics_window = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for metricsWindow. |

### getRowsProcessed()

    public abstract long getRowsProcessed()

The average number of rows processed by the query across all runs.

`int64 rows_processed = 4;`

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

### getTotalCpuTime()

    public abstract Duration getTotalCpuTime()

The total CPU time consumed by the query across all runs.

`.google.protobuf.Duration total_cpu_time = 3;`

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

### getTotalCpuTimeOrBuilder()

    public abstract DurationOrBuilder getTotalCpuTimeOrBuilder()

The total CPU time consumed by the query across all runs.

`.google.protobuf.Duration total_cpu_time = 3;`

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

### hasAvgCpuTime()

    public abstract boolean hasAvgCpuTime()

The average execution period of the query across all runs.

`.google.protobuf.Duration avg_cpu_time = 2;`

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

### hasTotalCpuTime()

    public abstract boolean hasTotalCpuTime()

The total CPU time consumed by the query across all runs.

`.google.protobuf.Duration total_cpu_time = 3;`

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