Class JobMetrics.Builder (0.12.0)

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

Implements

JobMetricsOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.dataflow.v1beta3.MetricUpdate>
Returns
TypeDescription
JobMetrics.Builder

addMetrics(MetricUpdate value)

public JobMetrics.Builder addMetrics(MetricUpdate value)

All metrics for this job.

repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;

Parameter
NameDescription
valueMetricUpdate
Returns
TypeDescription
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
NameDescription
builderForValueMetricUpdate.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueMetricUpdate
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMetricUpdate.Builder
Returns
TypeDescription
JobMetrics.Builder

addMetricsBuilder()

public MetricUpdate.Builder addMetricsBuilder()

All metrics for this job.

repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;

Returns
TypeDescription
MetricUpdate.Builder

addMetricsBuilder(int index)

public MetricUpdate.Builder addMetricsBuilder(int index)

All metrics for this job.

repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
MetricUpdate.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public JobMetrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
JobMetrics.Builder
Overrides

build()

public JobMetrics build()
Returns
TypeDescription
JobMetrics

buildPartial()

public JobMetrics buildPartial()
Returns
TypeDescription
JobMetrics

clear()

public JobMetrics.Builder clear()
Returns
TypeDescription
JobMetrics.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public JobMetrics.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
JobMetrics.Builder
Overrides

clearMetricTime()

public JobMetrics.Builder clearMetricTime()

Timestamp as of which metric values are current.

.google.protobuf.Timestamp metric_time = 1;

Returns
TypeDescription
JobMetrics.Builder

clearMetrics()

public JobMetrics.Builder clearMetrics()

All metrics for this job.

repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;

Returns
TypeDescription
JobMetrics.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public JobMetrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
JobMetrics.Builder
Overrides

clone()

public JobMetrics.Builder clone()
Returns
TypeDescription
JobMetrics.Builder
Overrides

getDefaultInstanceForType()

public JobMetrics getDefaultInstanceForType()
Returns
TypeDescription
JobMetrics

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetricTime()

public Timestamp getMetricTime()

Timestamp as of which metric values are current.

.google.protobuf.Timestamp metric_time = 1;

Returns
TypeDescription
Timestamp

The metricTime.

getMetricTimeBuilder()

public Timestamp.Builder getMetricTimeBuilder()

Timestamp as of which metric values are current.

.google.protobuf.Timestamp metric_time = 1;

Returns
TypeDescription
Builder

getMetricTimeOrBuilder()

public TimestampOrBuilder getMetricTimeOrBuilder()

Timestamp as of which metric values are current.

.google.protobuf.Timestamp metric_time = 1;

Returns
TypeDescription
TimestampOrBuilder

getMetrics(int index)

public MetricUpdate getMetrics(int index)

All metrics for this job.

repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
MetricUpdate

getMetricsBuilder(int index)

public MetricUpdate.Builder getMetricsBuilder(int index)

All metrics for this job.

repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
MetricUpdate.Builder

getMetricsBuilderList()

public List<MetricUpdate.Builder> getMetricsBuilderList()

All metrics for this job.

repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;

Returns
TypeDescription
List<Builder>

getMetricsCount()

public int getMetricsCount()

All metrics for this job.

repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;

Returns
TypeDescription
int

getMetricsList()

public List<MetricUpdate> getMetricsList()

All metrics for this job.

repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;

Returns
TypeDescription
List<MetricUpdate>

getMetricsOrBuilder(int index)

public MetricUpdateOrBuilder getMetricsOrBuilder(int index)

All metrics for this job.

repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
MetricUpdateOrBuilder

getMetricsOrBuilderList()

public List<? extends MetricUpdateOrBuilder> getMetricsOrBuilderList()

All metrics for this job.

repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the metricTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(JobMetrics other)

public JobMetrics.Builder mergeFrom(JobMetrics other)
Parameter
NameDescription
otherJobMetrics
Returns
TypeDescription
JobMetrics.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public JobMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JobMetrics.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public JobMetrics.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
JobMetrics.Builder
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
NameDescription
valueTimestamp
Returns
TypeDescription
JobMetrics.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final JobMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
JobMetrics.Builder
Overrides

removeMetrics(int index)

public JobMetrics.Builder removeMetrics(int index)

All metrics for this job.

repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
JobMetrics.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public JobMetrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
JobMetrics.Builder
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
indexint
valueMetricUpdate
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMetricUpdate.Builder
Returns
TypeDescription
JobMetrics.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public JobMetrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
JobMetrics.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final JobMetrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
JobMetrics.Builder
Overrides