Class WorkItemDetails.Builder (0.40.0)

public static final class WorkItemDetails.Builder extends GeneratedMessageV3.Builder<WorkItemDetails.Builder> implements WorkItemDetailsOrBuilder

Information about an individual work item execution.

Protobuf type google.dataflow.v1beta3.WorkItemDetails

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllMetrics(Iterable<? extends MetricUpdate> values)

public WorkItemDetails.Builder addAllMetrics(Iterable<? extends MetricUpdate> values)

Metrics for this work item.

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

Parameter
NameDescription
valuesIterable<? extends com.google.dataflow.v1beta3.MetricUpdate>
Returns
TypeDescription
WorkItemDetails.Builder

addMetrics(MetricUpdate value)

public WorkItemDetails.Builder addMetrics(MetricUpdate value)

Metrics for this work item.

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

Parameter
NameDescription
valueMetricUpdate
Returns
TypeDescription
WorkItemDetails.Builder

addMetrics(MetricUpdate.Builder builderForValue)

public WorkItemDetails.Builder addMetrics(MetricUpdate.Builder builderForValue)

Metrics for this work item.

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

Parameter
NameDescription
builderForValueMetricUpdate.Builder
Returns
TypeDescription
WorkItemDetails.Builder

addMetrics(int index, MetricUpdate value)

public WorkItemDetails.Builder addMetrics(int index, MetricUpdate value)

Metrics for this work item.

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

Parameters
NameDescription
indexint
valueMetricUpdate
Returns
TypeDescription
WorkItemDetails.Builder

addMetrics(int index, MetricUpdate.Builder builderForValue)

public WorkItemDetails.Builder addMetrics(int index, MetricUpdate.Builder builderForValue)

Metrics for this work item.

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

Parameters
NameDescription
indexint
builderForValueMetricUpdate.Builder
Returns
TypeDescription
WorkItemDetails.Builder

addMetricsBuilder()

public MetricUpdate.Builder addMetricsBuilder()

Metrics for this work item.

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

Returns
TypeDescription
MetricUpdate.Builder

addMetricsBuilder(int index)

public MetricUpdate.Builder addMetricsBuilder(int index)

Metrics for this work item.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
MetricUpdate.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WorkItemDetails build()
Returns
TypeDescription
WorkItemDetails

buildPartial()

public WorkItemDetails buildPartial()
Returns
TypeDescription
WorkItemDetails

clear()

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

clearAttemptId()

public WorkItemDetails.Builder clearAttemptId()

Attempt ID of this work item

string attempt_id = 2;

Returns
TypeDescription
WorkItemDetails.Builder

This builder for chaining.

clearEndTime()

public WorkItemDetails.Builder clearEndTime()

End time of this work item attempt.

If the work item is completed, this is the actual end time of the work item. Otherwise, it is the predicted end time.

.google.protobuf.Timestamp end_time = 4;

Returns
TypeDescription
WorkItemDetails.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMetrics()

public WorkItemDetails.Builder clearMetrics()

Metrics for this work item.

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

Returns
TypeDescription
WorkItemDetails.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProgress()

public WorkItemDetails.Builder clearProgress()

Progress of this work item.

.google.dataflow.v1beta3.ProgressTimeseries progress = 6;

Returns
TypeDescription
WorkItemDetails.Builder

clearStartTime()

public WorkItemDetails.Builder clearStartTime()

Start time of this work item attempt.

.google.protobuf.Timestamp start_time = 3;

Returns
TypeDescription
WorkItemDetails.Builder

clearState()

public WorkItemDetails.Builder clearState()

State of this work item.

.google.dataflow.v1beta3.ExecutionState state = 5;

Returns
TypeDescription
WorkItemDetails.Builder

This builder for chaining.

clearTaskId()

public WorkItemDetails.Builder clearTaskId()

Name of this work item.

string task_id = 1;

Returns
TypeDescription
WorkItemDetails.Builder

This builder for chaining.

clone()

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

getAttemptId()

public String getAttemptId()

Attempt ID of this work item

string attempt_id = 2;

Returns
TypeDescription
String

The attemptId.

getAttemptIdBytes()

public ByteString getAttemptIdBytes()

Attempt ID of this work item

string attempt_id = 2;

Returns
TypeDescription
ByteString

The bytes for attemptId.

getDefaultInstanceForType()

public WorkItemDetails getDefaultInstanceForType()
Returns
TypeDescription
WorkItemDetails

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

End time of this work item attempt.

If the work item is completed, this is the actual end time of the work item. Otherwise, it is the predicted end time.

.google.protobuf.Timestamp end_time = 4;

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

End time of this work item attempt.

If the work item is completed, this is the actual end time of the work item. Otherwise, it is the predicted end time.

.google.protobuf.Timestamp end_time = 4;

Returns
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

End time of this work item attempt.

If the work item is completed, this is the actual end time of the work item. Otherwise, it is the predicted end time.

.google.protobuf.Timestamp end_time = 4;

Returns
TypeDescription
TimestampOrBuilder

getMetrics(int index)

public MetricUpdate getMetrics(int index)

Metrics for this work item.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
MetricUpdate

getMetricsBuilder(int index)

public MetricUpdate.Builder getMetricsBuilder(int index)

Metrics for this work item.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
MetricUpdate.Builder

getMetricsBuilderList()

public List<MetricUpdate.Builder> getMetricsBuilderList()

Metrics for this work item.

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

Returns
TypeDescription
List<Builder>

getMetricsCount()

public int getMetricsCount()

Metrics for this work item.

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

Returns
TypeDescription
int

getMetricsList()

public List<MetricUpdate> getMetricsList()

Metrics for this work item.

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

Returns
TypeDescription
List<MetricUpdate>

getMetricsOrBuilder(int index)

public MetricUpdateOrBuilder getMetricsOrBuilder(int index)

Metrics for this work item.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
MetricUpdateOrBuilder

getMetricsOrBuilderList()

public List<? extends MetricUpdateOrBuilder> getMetricsOrBuilderList()

Metrics for this work item.

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

Returns
TypeDescription
List<? extends com.google.dataflow.v1beta3.MetricUpdateOrBuilder>

getProgress()

public ProgressTimeseries getProgress()

Progress of this work item.

.google.dataflow.v1beta3.ProgressTimeseries progress = 6;

Returns
TypeDescription
ProgressTimeseries

The progress.

getProgressBuilder()

public ProgressTimeseries.Builder getProgressBuilder()

Progress of this work item.

.google.dataflow.v1beta3.ProgressTimeseries progress = 6;

Returns
TypeDescription
ProgressTimeseries.Builder

getProgressOrBuilder()

public ProgressTimeseriesOrBuilder getProgressOrBuilder()

Progress of this work item.

.google.dataflow.v1beta3.ProgressTimeseries progress = 6;

Returns
TypeDescription
ProgressTimeseriesOrBuilder

getStartTime()

public Timestamp getStartTime()

Start time of this work item attempt.

.google.protobuf.Timestamp start_time = 3;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Start time of this work item attempt.

.google.protobuf.Timestamp start_time = 3;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Start time of this work item attempt.

.google.protobuf.Timestamp start_time = 3;

Returns
TypeDescription
TimestampOrBuilder

getState()

public ExecutionState getState()

State of this work item.

.google.dataflow.v1beta3.ExecutionState state = 5;

Returns
TypeDescription
ExecutionState

The state.

getStateValue()

public int getStateValue()

State of this work item.

.google.dataflow.v1beta3.ExecutionState state = 5;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getTaskId()

public String getTaskId()

Name of this work item.

string task_id = 1;

Returns
TypeDescription
String

The taskId.

getTaskIdBytes()

public ByteString getTaskIdBytes()

Name of this work item.

string task_id = 1;

Returns
TypeDescription
ByteString

The bytes for taskId.

hasEndTime()

public boolean hasEndTime()

End time of this work item attempt.

If the work item is completed, this is the actual end time of the work item. Otherwise, it is the predicted end time.

.google.protobuf.Timestamp end_time = 4;

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasProgress()

public boolean hasProgress()

Progress of this work item.

.google.dataflow.v1beta3.ProgressTimeseries progress = 6;

Returns
TypeDescription
boolean

Whether the progress field is set.

hasStartTime()

public boolean hasStartTime()

Start time of this work item attempt.

.google.protobuf.Timestamp start_time = 3;

Returns
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEndTime(Timestamp value)

public WorkItemDetails.Builder mergeEndTime(Timestamp value)

End time of this work item attempt.

If the work item is completed, this is the actual end time of the work item. Otherwise, it is the predicted end time.

.google.protobuf.Timestamp end_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
WorkItemDetails.Builder

mergeFrom(WorkItemDetails other)

public WorkItemDetails.Builder mergeFrom(WorkItemDetails other)
Parameter
NameDescription
otherWorkItemDetails
Returns
TypeDescription
WorkItemDetails.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public WorkItemDetails.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
WorkItemDetails.Builder
Overrides

mergeProgress(ProgressTimeseries value)

public WorkItemDetails.Builder mergeProgress(ProgressTimeseries value)

Progress of this work item.

.google.dataflow.v1beta3.ProgressTimeseries progress = 6;

Parameter
NameDescription
valueProgressTimeseries
Returns
TypeDescription
WorkItemDetails.Builder

mergeStartTime(Timestamp value)

public WorkItemDetails.Builder mergeStartTime(Timestamp value)

Start time of this work item attempt.

.google.protobuf.Timestamp start_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
WorkItemDetails.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMetrics(int index)

public WorkItemDetails.Builder removeMetrics(int index)

Metrics for this work item.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
WorkItemDetails.Builder

setAttemptId(String value)

public WorkItemDetails.Builder setAttemptId(String value)

Attempt ID of this work item

string attempt_id = 2;

Parameter
NameDescription
valueString

The attemptId to set.

Returns
TypeDescription
WorkItemDetails.Builder

This builder for chaining.

setAttemptIdBytes(ByteString value)

public WorkItemDetails.Builder setAttemptIdBytes(ByteString value)

Attempt ID of this work item

string attempt_id = 2;

Parameter
NameDescription
valueByteString

The bytes for attemptId to set.

Returns
TypeDescription
WorkItemDetails.Builder

This builder for chaining.

setEndTime(Timestamp value)

public WorkItemDetails.Builder setEndTime(Timestamp value)

End time of this work item attempt.

If the work item is completed, this is the actual end time of the work item. Otherwise, it is the predicted end time.

.google.protobuf.Timestamp end_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
WorkItemDetails.Builder

setEndTime(Timestamp.Builder builderForValue)

public WorkItemDetails.Builder setEndTime(Timestamp.Builder builderForValue)

End time of this work item attempt.

If the work item is completed, this is the actual end time of the work item. Otherwise, it is the predicted end time.

.google.protobuf.Timestamp end_time = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
WorkItemDetails.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetrics(int index, MetricUpdate value)

public WorkItemDetails.Builder setMetrics(int index, MetricUpdate value)

Metrics for this work item.

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

Parameters
NameDescription
indexint
valueMetricUpdate
Returns
TypeDescription
WorkItemDetails.Builder

setMetrics(int index, MetricUpdate.Builder builderForValue)

public WorkItemDetails.Builder setMetrics(int index, MetricUpdate.Builder builderForValue)

Metrics for this work item.

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

Parameters
NameDescription
indexint
builderForValueMetricUpdate.Builder
Returns
TypeDescription
WorkItemDetails.Builder

setProgress(ProgressTimeseries value)

public WorkItemDetails.Builder setProgress(ProgressTimeseries value)

Progress of this work item.

.google.dataflow.v1beta3.ProgressTimeseries progress = 6;

Parameter
NameDescription
valueProgressTimeseries
Returns
TypeDescription
WorkItemDetails.Builder

setProgress(ProgressTimeseries.Builder builderForValue)

public WorkItemDetails.Builder setProgress(ProgressTimeseries.Builder builderForValue)

Progress of this work item.

.google.dataflow.v1beta3.ProgressTimeseries progress = 6;

Parameter
NameDescription
builderForValueProgressTimeseries.Builder
Returns
TypeDescription
WorkItemDetails.Builder

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

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

setStartTime(Timestamp value)

public WorkItemDetails.Builder setStartTime(Timestamp value)

Start time of this work item attempt.

.google.protobuf.Timestamp start_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
WorkItemDetails.Builder

setStartTime(Timestamp.Builder builderForValue)

public WorkItemDetails.Builder setStartTime(Timestamp.Builder builderForValue)

Start time of this work item attempt.

.google.protobuf.Timestamp start_time = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
WorkItemDetails.Builder

setState(ExecutionState value)

public WorkItemDetails.Builder setState(ExecutionState value)

State of this work item.

.google.dataflow.v1beta3.ExecutionState state = 5;

Parameter
NameDescription
valueExecutionState

The state to set.

Returns
TypeDescription
WorkItemDetails.Builder

This builder for chaining.

setStateValue(int value)

public WorkItemDetails.Builder setStateValue(int value)

State of this work item.

.google.dataflow.v1beta3.ExecutionState state = 5;

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
WorkItemDetails.Builder

This builder for chaining.

setTaskId(String value)

public WorkItemDetails.Builder setTaskId(String value)

Name of this work item.

string task_id = 1;

Parameter
NameDescription
valueString

The taskId to set.

Returns
TypeDescription
WorkItemDetails.Builder

This builder for chaining.

setTaskIdBytes(ByteString value)

public WorkItemDetails.Builder setTaskIdBytes(ByteString value)

Name of this work item.

string task_id = 1;

Parameter
NameDescription
valueByteString

The bytes for taskId to set.

Returns
TypeDescription
WorkItemDetails.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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