public static final class JobMetrics.Builder extends GeneratedMessageV3.Builder<JobMetrics.Builder> implements JobMetricsOrBuilder
JobMetrics 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.
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
addMetrics(MetricUpdate value)
public JobMetrics.Builder addMetrics(MetricUpdate value)
All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
Parameter
Returns
addMetrics(MetricUpdate.Builder builderForValue)
public JobMetrics.Builder addMetrics(MetricUpdate.Builder builderForValue)
All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
Parameter
Returns
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
Returns
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
Returns
addMetricsBuilder()
public MetricUpdate.Builder addMetricsBuilder()
All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
Returns
addMetricsBuilder(int index)
public MetricUpdate.Builder addMetricsBuilder(int index)
All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public JobMetrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public JobMetrics build()
Returns
buildPartial()
public JobMetrics buildPartial()
Returns
clear()
public JobMetrics.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public JobMetrics.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMetricTime()
public JobMetrics.Builder clearMetricTime()
Timestamp as of which metric values are current.
.google.protobuf.Timestamp metric_time = 1;
Returns
clearMetrics()
public JobMetrics.Builder clearMetrics()
All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public JobMetrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public JobMetrics.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public JobMetrics getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMetricTime()
public Timestamp getMetricTime()
Timestamp as of which metric values are current.
.google.protobuf.Timestamp metric_time = 1;
Returns
getMetricTimeBuilder()
public Timestamp.Builder getMetricTimeBuilder()
Timestamp as of which metric values are current.
.google.protobuf.Timestamp metric_time = 1;
Returns
getMetricTimeOrBuilder()
public TimestampOrBuilder getMetricTimeOrBuilder()
Timestamp as of which metric values are current.
.google.protobuf.Timestamp metric_time = 1;
Returns
getMetrics(int index)
public MetricUpdate getMetrics(int index)
All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
Parameter
Returns
getMetricsBuilder(int index)
public MetricUpdate.Builder getMetricsBuilder(int index)
All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
Parameter
Returns
getMetricsBuilderList()
public List<MetricUpdate.Builder> getMetricsBuilderList()
All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
Returns
getMetricsCount()
public int getMetricsCount()
All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
Returns
getMetricsList()
public List<MetricUpdate> getMetricsList()
All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
Returns
getMetricsOrBuilder(int index)
public MetricUpdateOrBuilder getMetricsOrBuilder(int index)
All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
Parameter
Returns
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(JobMetrics other)
public JobMetrics.Builder mergeFrom(JobMetrics other)
Parameter
Returns
public JobMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public JobMetrics.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeMetricTime(Timestamp value)
public JobMetrics.Builder mergeMetricTime(Timestamp value)
Timestamp as of which metric values are current.
.google.protobuf.Timestamp metric_time = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final JobMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeMetrics(int index)
public JobMetrics.Builder removeMetrics(int index)
All metrics for this job.
repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public JobMetrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setMetricTime(Timestamp value)
public JobMetrics.Builder setMetricTime(Timestamp value)
Timestamp as of which metric values are current.
.google.protobuf.Timestamp metric_time = 1;
Parameter
Returns
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
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public JobMetrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final JobMetrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides