public static final class JobMetrics.Builder extends GeneratedMessage.Builder<JobMetrics.Builder> implements JobMetricsOrBuilderJobMetrics contains a collection of metrics describing the detailed progress of a Dataflow job. Metrics correspond to user-defined and system-defined metrics in the job. For more information, see Dataflow job metrics.
This resource captures only the most recent values of each metric; time-series data can be queried for them (under the same metric names) from Cloud Monitoring.
Protobuf type google.dataflow.v1beta3.JobMetrics
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > JobMetrics.BuilderImplements
JobMetricsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllMetrics(Iterable<? extends MetricUpdate> values)
public JobMetrics.Builder addAllMetrics(Iterable<? extends MetricUpdate> values)All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.dataflow.v1beta3.MetricUpdate> |
| Returns | |
|---|---|
| Type | Description |
JobMetrics.Builder |
|
addMetrics(MetricUpdate value)
public JobMetrics.Builder addMetrics(MetricUpdate value)All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
MetricUpdate |
| Returns | |
|---|---|
| Type | Description |
JobMetrics.Builder |
|
addMetrics(MetricUpdate.Builder builderForValue)
public JobMetrics.Builder addMetrics(MetricUpdate.Builder builderForValue)All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
MetricUpdate.Builder |
| Returns | |
|---|---|
| Type | Description |
JobMetrics.Builder |
|
addMetrics(int index, MetricUpdate value)
public JobMetrics.Builder addMetrics(int index, MetricUpdate value)All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
MetricUpdate |
| Returns | |
|---|---|
| Type | Description |
JobMetrics.Builder |
|
addMetrics(int index, MetricUpdate.Builder builderForValue)
public JobMetrics.Builder addMetrics(int index, MetricUpdate.Builder builderForValue)All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
MetricUpdate.Builder |
| Returns | |
|---|---|
| Type | Description |
JobMetrics.Builder |
|
addMetricsBuilder()
public MetricUpdate.Builder addMetricsBuilder()All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
| Returns | |
|---|---|
| Type | Description |
MetricUpdate.Builder |
|
addMetricsBuilder(int index)
public MetricUpdate.Builder addMetricsBuilder(int index)All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
MetricUpdate.Builder |
|
build()
public JobMetrics build()| Returns | |
|---|---|
| Type | Description |
JobMetrics |
|
buildPartial()
public JobMetrics buildPartial()| Returns | |
|---|---|
| Type | Description |
JobMetrics |
|
clear()
public JobMetrics.Builder clear()| Returns | |
|---|---|
| Type | Description |
JobMetrics.Builder |
|
clearMetricTime()
public JobMetrics.Builder clearMetricTime()Timestamp as of which metric values are current.
.google.protobuf.Timestamp metric_time = 1;
| Returns | |
|---|---|
| Type | Description |
JobMetrics.Builder |
|
clearMetrics()
public JobMetrics.Builder clearMetrics()All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
| Returns | |
|---|---|
| Type | Description |
JobMetrics.Builder |
|
getDefaultInstanceForType()
public JobMetrics getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
JobMetrics |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMetricTime()
public Timestamp getMetricTime()Timestamp as of which metric values are current.
.google.protobuf.Timestamp metric_time = 1;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The metricTime. |
getMetricTimeBuilder()
public Timestamp.Builder getMetricTimeBuilder()Timestamp as of which metric values are current.
.google.protobuf.Timestamp metric_time = 1;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getMetricTimeOrBuilder()
public TimestampOrBuilder getMetricTimeOrBuilder()Timestamp as of which metric values are current.
.google.protobuf.Timestamp metric_time = 1;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getMetrics(int index)
public MetricUpdate getMetrics(int index)All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
MetricUpdate |
|
getMetricsBuilder(int index)
public MetricUpdate.Builder getMetricsBuilder(int index)All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
MetricUpdate.Builder |
|
getMetricsBuilderList()
public List<MetricUpdate.Builder> getMetricsBuilderList()All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getMetricsCount()
public int getMetricsCount()All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
| Returns | |
|---|---|
| Type | Description |
int |
|
getMetricsList()
public List<MetricUpdate> getMetricsList()All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
| Returns | |
|---|---|
| Type | Description |
List<MetricUpdate> |
|
getMetricsOrBuilder(int index)
public MetricUpdateOrBuilder getMetricsOrBuilder(int index)All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
MetricUpdateOrBuilder |
|
getMetricsOrBuilderList()
public List<? extends MetricUpdateOrBuilder> getMetricsOrBuilderList()All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.dataflow.v1beta3.MetricUpdateOrBuilder> |
|
hasMetricTime()
public boolean hasMetricTime()Timestamp as of which metric values are current.
.google.protobuf.Timestamp metric_time = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the metricTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(JobMetrics other)
public JobMetrics.Builder mergeFrom(JobMetrics other)| Parameter | |
|---|---|
| Name | Description |
other |
JobMetrics |
| Returns | |
|---|---|
| Type | Description |
JobMetrics.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public JobMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
JobMetrics.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public JobMetrics.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
JobMetrics.Builder |
|
mergeMetricTime(Timestamp value)
public JobMetrics.Builder mergeMetricTime(Timestamp value)Timestamp as of which metric values are current.
.google.protobuf.Timestamp metric_time = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
JobMetrics.Builder |
|
removeMetrics(int index)
public JobMetrics.Builder removeMetrics(int index)All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
JobMetrics.Builder |
|
setMetricTime(Timestamp value)
public JobMetrics.Builder setMetricTime(Timestamp value)Timestamp as of which metric values are current.
.google.protobuf.Timestamp metric_time = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
JobMetrics.Builder |
|
setMetricTime(Timestamp.Builder builderForValue)
public JobMetrics.Builder setMetricTime(Timestamp.Builder builderForValue)Timestamp as of which metric values are current.
.google.protobuf.Timestamp metric_time = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
JobMetrics.Builder |
|
setMetrics(int index, MetricUpdate value)
public JobMetrics.Builder setMetrics(int index, MetricUpdate value)All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
MetricUpdate |
| Returns | |
|---|---|
| Type | Description |
JobMetrics.Builder |
|
setMetrics(int index, MetricUpdate.Builder builderForValue)
public JobMetrics.Builder setMetrics(int index, MetricUpdate.Builder builderForValue)All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
MetricUpdate.Builder |
| Returns | |
|---|---|
| Type | Description |
JobMetrics.Builder |
|