public static final class QueryMetrics.Builder extends GeneratedMessage.Builder<QueryMetrics.Builder> implements QueryMetricsOrBuilderQueryMetrics contains the metrics related to the query execution.
Protobuf type google.cloud.databasecenter.v1beta.QueryMetrics
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > QueryMetrics.BuilderImplements
QueryMetricsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public QueryMetrics build()| Returns | |
|---|---|
| Type | Description |
QueryMetrics |
|
buildPartial()
public QueryMetrics buildPartial()| Returns | |
|---|---|
| Type | Description |
QueryMetrics |
|
clear()
public QueryMetrics.Builder clear()| Returns | |
|---|---|
| Type | Description |
QueryMetrics.Builder |
|
clearAvgCpuTime()
public QueryMetrics.Builder clearAvgCpuTime()The average execution period of the query across all runs.
.google.protobuf.Duration avg_cpu_time = 2;
| Returns | |
|---|---|
| Type | Description |
QueryMetrics.Builder |
|
clearExecutionCount()
public QueryMetrics.Builder clearExecutionCount()The number of times the query was executed.
int64 execution_count = 1;
| Returns | |
|---|---|
| Type | Description |
QueryMetrics.Builder |
This builder for chaining. |
clearMetricsWindow()
public QueryMetrics.Builder clearMetricsWindow()The window over which the metrics are aggregated.
.google.cloud.databasecenter.v1beta.QueryMetrics.MetricsWindow metrics_window = 5;
| Returns | |
|---|---|
| Type | Description |
QueryMetrics.Builder |
This builder for chaining. |
clearRowsProcessed()
public QueryMetrics.Builder clearRowsProcessed()The average number of rows processed by the query across all runs.
int64 rows_processed = 4;
| Returns | |
|---|---|
| Type | Description |
QueryMetrics.Builder |
This builder for chaining. |
clearTotalCpuTime()
public QueryMetrics.Builder clearTotalCpuTime()The total CPU time consumed by the query across all runs.
.google.protobuf.Duration total_cpu_time = 3;
| Returns | |
|---|---|
| Type | Description |
QueryMetrics.Builder |
|
getAvgCpuTime()
public Duration getAvgCpuTime()The average execution period of the query across all runs.
.google.protobuf.Duration avg_cpu_time = 2;
| Returns | |
|---|---|
| Type | Description |
Duration |
The avgCpuTime. |
getAvgCpuTimeBuilder()
public Duration.Builder getAvgCpuTimeBuilder()The average execution period of the query across all runs.
.google.protobuf.Duration avg_cpu_time = 2;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getAvgCpuTimeOrBuilder()
public DurationOrBuilder getAvgCpuTimeOrBuilder()The average execution period of the query across all runs.
.google.protobuf.Duration avg_cpu_time = 2;
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
getDefaultInstanceForType()
public QueryMetrics getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
QueryMetrics |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getExecutionCount()
public long getExecutionCount()The number of times the query was executed.
int64 execution_count = 1;
| Returns | |
|---|---|
| Type | Description |
long |
The executionCount. |
getMetricsWindow()
public QueryMetrics.MetricsWindow getMetricsWindow()The window over which the metrics are aggregated.
.google.cloud.databasecenter.v1beta.QueryMetrics.MetricsWindow metrics_window = 5;
| Returns | |
|---|---|
| Type | Description |
QueryMetrics.MetricsWindow |
The metricsWindow. |
getMetricsWindowValue()
public int getMetricsWindowValue()The window over which the metrics are aggregated.
.google.cloud.databasecenter.v1beta.QueryMetrics.MetricsWindow metrics_window = 5;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for metricsWindow. |
getRowsProcessed()
public long getRowsProcessed()The average number of rows processed by the query across all runs.
int64 rows_processed = 4;
| Returns | |
|---|---|
| Type | Description |
long |
The rowsProcessed. |
getTotalCpuTime()
public Duration getTotalCpuTime()The total CPU time consumed by the query across all runs.
.google.protobuf.Duration total_cpu_time = 3;
| Returns | |
|---|---|
| Type | Description |
Duration |
The totalCpuTime. |
getTotalCpuTimeBuilder()
public Duration.Builder getTotalCpuTimeBuilder()The total CPU time consumed by the query across all runs.
.google.protobuf.Duration total_cpu_time = 3;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getTotalCpuTimeOrBuilder()
public DurationOrBuilder getTotalCpuTimeOrBuilder()The total CPU time consumed by the query across all runs.
.google.protobuf.Duration total_cpu_time = 3;
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
hasAvgCpuTime()
public boolean hasAvgCpuTime()The average execution period of the query across all runs.
.google.protobuf.Duration avg_cpu_time = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the avgCpuTime field is set. |
hasTotalCpuTime()
public boolean hasTotalCpuTime()The total CPU time consumed by the query across all runs.
.google.protobuf.Duration total_cpu_time = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the totalCpuTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAvgCpuTime(Duration value)
public QueryMetrics.Builder mergeAvgCpuTime(Duration value)The average execution period of the query across all runs.
.google.protobuf.Duration avg_cpu_time = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
QueryMetrics.Builder |
|
mergeFrom(QueryMetrics other)
public QueryMetrics.Builder mergeFrom(QueryMetrics other)| Parameter | |
|---|---|
| Name | Description |
other |
QueryMetrics |
| Returns | |
|---|---|
| Type | Description |
QueryMetrics.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public QueryMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
QueryMetrics.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public QueryMetrics.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
QueryMetrics.Builder |
|
mergeTotalCpuTime(Duration value)
public QueryMetrics.Builder mergeTotalCpuTime(Duration value)The total CPU time consumed by the query across all runs.
.google.protobuf.Duration total_cpu_time = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
QueryMetrics.Builder |
|
setAvgCpuTime(Duration value)
public QueryMetrics.Builder setAvgCpuTime(Duration value)The average execution period of the query across all runs.
.google.protobuf.Duration avg_cpu_time = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
QueryMetrics.Builder |
|
setAvgCpuTime(Duration.Builder builderForValue)
public QueryMetrics.Builder setAvgCpuTime(Duration.Builder builderForValue)The average execution period of the query across all runs.
.google.protobuf.Duration avg_cpu_time = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
QueryMetrics.Builder |
|
setExecutionCount(long value)
public QueryMetrics.Builder setExecutionCount(long value)The number of times the query was executed.
int64 execution_count = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe executionCount to set. |
| Returns | |
|---|---|
| Type | Description |
QueryMetrics.Builder |
This builder for chaining. |
setMetricsWindow(QueryMetrics.MetricsWindow value)
public QueryMetrics.Builder setMetricsWindow(QueryMetrics.MetricsWindow value)The window over which the metrics are aggregated.
.google.cloud.databasecenter.v1beta.QueryMetrics.MetricsWindow metrics_window = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
QueryMetrics.MetricsWindowThe metricsWindow to set. |
| Returns | |
|---|---|
| Type | Description |
QueryMetrics.Builder |
This builder for chaining. |
setMetricsWindowValue(int value)
public QueryMetrics.Builder setMetricsWindowValue(int value)The window over which the metrics are aggregated.
.google.cloud.databasecenter.v1beta.QueryMetrics.MetricsWindow metrics_window = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for metricsWindow to set. |
| Returns | |
|---|---|
| Type | Description |
QueryMetrics.Builder |
This builder for chaining. |
setRowsProcessed(long value)
public QueryMetrics.Builder setRowsProcessed(long value)The average number of rows processed by the query across all runs.
int64 rows_processed = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe rowsProcessed to set. |
| Returns | |
|---|---|
| Type | Description |
QueryMetrics.Builder |
This builder for chaining. |
setTotalCpuTime(Duration value)
public QueryMetrics.Builder setTotalCpuTime(Duration value)The total CPU time consumed by the query across all runs.
.google.protobuf.Duration total_cpu_time = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
QueryMetrics.Builder |
|
setTotalCpuTime(Duration.Builder builderForValue)
public QueryMetrics.Builder setTotalCpuTime(Duration.Builder builderForValue)The total CPU time consumed by the query across all runs.
.google.protobuf.Duration total_cpu_time = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
QueryMetrics.Builder |
|