Class WorkItemDetails.Builder (0.50.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
Type Description
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
Name Description
values Iterable<? extends com.google.dataflow.v1beta3.MetricUpdate>
Returns
Type Description
WorkItemDetails.Builder

addMetrics(MetricUpdate value)

public WorkItemDetails.Builder addMetrics(MetricUpdate value)

Metrics for this work item.

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

Parameter
Name Description
value MetricUpdate
Returns
Type Description
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
Name Description
builderForValue MetricUpdate.Builder
Returns
Type Description
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
Name Description
index int
value MetricUpdate
Returns
Type Description
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
Name Description
index int
builderForValue MetricUpdate.Builder
Returns
Type Description
WorkItemDetails.Builder

addMetricsBuilder()

public MetricUpdate.Builder addMetricsBuilder()

Metrics for this work item.

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

Returns
Type Description
MetricUpdate.Builder

addMetricsBuilder(int index)

public MetricUpdate.Builder addMetricsBuilder(int index)

Metrics for this work item.

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

Parameter
Name Description
index int
Returns
Type Description
MetricUpdate.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WorkItemDetails.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WorkItemDetails.Builder
Overrides

build()

public WorkItemDetails build()
Returns
Type Description
WorkItemDetails

buildPartial()

public WorkItemDetails buildPartial()
Returns
Type Description
WorkItemDetails

clear()

public WorkItemDetails.Builder clear()
Returns
Type Description
WorkItemDetails.Builder
Overrides

clearAttemptId()

public WorkItemDetails.Builder clearAttemptId()

Attempt ID of this work item

string attempt_id = 2;

Returns
Type Description
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
Type Description
WorkItemDetails.Builder

clearField(Descriptors.FieldDescriptor field)

public WorkItemDetails.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
WorkItemDetails.Builder
Overrides

clearMetrics()

public WorkItemDetails.Builder clearMetrics()

Metrics for this work item.

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

Returns
Type Description
WorkItemDetails.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public WorkItemDetails.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
WorkItemDetails.Builder
Overrides

clearProgress()

public WorkItemDetails.Builder clearProgress()

Progress of this work item.

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

Returns
Type Description
WorkItemDetails.Builder

clearStartTime()

public WorkItemDetails.Builder clearStartTime()

Start time of this work item attempt.

.google.protobuf.Timestamp start_time = 3;

Returns
Type Description
WorkItemDetails.Builder

clearState()

public WorkItemDetails.Builder clearState()

State of this work item.

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

Returns
Type Description
WorkItemDetails.Builder

This builder for chaining.

clearTaskId()

public WorkItemDetails.Builder clearTaskId()

Name of this work item.

string task_id = 1;

Returns
Type Description
WorkItemDetails.Builder

This builder for chaining.

clone()

public WorkItemDetails.Builder clone()
Returns
Type Description
WorkItemDetails.Builder
Overrides

getAttemptId()

public String getAttemptId()

Attempt ID of this work item

string attempt_id = 2;

Returns
Type Description
String

The attemptId.

getAttemptIdBytes()

public ByteString getAttemptIdBytes()

Attempt ID of this work item

string attempt_id = 2;

Returns
Type Description
ByteString

The bytes for attemptId.

getDefaultInstanceForType()

public WorkItemDetails getDefaultInstanceForType()
Returns
Type Description
WorkItemDetails

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
TimestampOrBuilder

getMetrics(int index)

public MetricUpdate getMetrics(int index)

Metrics for this work item.

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

Parameter
Name Description
index int
Returns
Type Description
MetricUpdate

getMetricsBuilder(int index)

public MetricUpdate.Builder getMetricsBuilder(int index)

Metrics for this work item.

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

Parameter
Name Description
index int
Returns
Type Description
MetricUpdate.Builder

getMetricsBuilderList()

public List<MetricUpdate.Builder> getMetricsBuilderList()

Metrics for this work item.

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

Returns
Type Description
List<Builder>

getMetricsCount()

public int getMetricsCount()

Metrics for this work item.

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

Returns
Type Description
int

getMetricsList()

public List<MetricUpdate> getMetricsList()

Metrics for this work item.

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

Returns
Type Description
List<MetricUpdate>

getMetricsOrBuilder(int index)

public MetricUpdateOrBuilder getMetricsOrBuilder(int index)

Metrics for this work item.

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

Parameter
Name Description
index int
Returns
Type Description
MetricUpdateOrBuilder

getMetricsOrBuilderList()

public List<? extends MetricUpdateOrBuilder> getMetricsOrBuilderList()

Metrics for this work item.

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

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

getProgress()

public ProgressTimeseries getProgress()

Progress of this work item.

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

Returns
Type Description
ProgressTimeseries

The progress.

getProgressBuilder()

public ProgressTimeseries.Builder getProgressBuilder()

Progress of this work item.

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

Returns
Type Description
ProgressTimeseries.Builder

getProgressOrBuilder()

public ProgressTimeseriesOrBuilder getProgressOrBuilder()

Progress of this work item.

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

Returns
Type Description
ProgressTimeseriesOrBuilder

getStartTime()

public Timestamp getStartTime()

Start time of this work item attempt.

.google.protobuf.Timestamp start_time = 3;

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Start time of this work item attempt.

.google.protobuf.Timestamp start_time = 3;

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Start time of this work item attempt.

.google.protobuf.Timestamp start_time = 3;

Returns
Type Description
TimestampOrBuilder

getState()

public ExecutionState getState()

State of this work item.

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

Returns
Type Description
ExecutionState

The state.

getStateValue()

public int getStateValue()

State of this work item.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

getTaskId()

public String getTaskId()

Name of this work item.

string task_id = 1;

Returns
Type Description
String

The taskId.

getTaskIdBytes()

public ByteString getTaskIdBytes()

Name of this work item.

string task_id = 1;

Returns
Type Description
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
Type Description
boolean

Whether the endTime field is set.

hasProgress()

public boolean hasProgress()

Progress of this work item.

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

Returns
Type Description
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
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
WorkItemDetails.Builder

mergeFrom(WorkItemDetails other)

public WorkItemDetails.Builder mergeFrom(WorkItemDetails other)
Parameter
Name Description
other WorkItemDetails
Returns
Type Description
WorkItemDetails.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WorkItemDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkItemDetails.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public WorkItemDetails.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
WorkItemDetails.Builder
Overrides

mergeProgress(ProgressTimeseries value)

public WorkItemDetails.Builder mergeProgress(ProgressTimeseries value)

Progress of this work item.

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

Parameter
Name Description
value ProgressTimeseries
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
WorkItemDetails.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WorkItemDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
WorkItemDetails.Builder

setAttemptId(String value)

public WorkItemDetails.Builder setAttemptId(String value)

Attempt ID of this work item

string attempt_id = 2;

Parameter
Name Description
value String

The attemptId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for attemptId to set.

Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
WorkItemDetails.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public WorkItemDetails.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int
value MetricUpdate
Returns
Type Description
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
Name Description
index int
builderForValue MetricUpdate.Builder
Returns
Type Description
WorkItemDetails.Builder

setProgress(ProgressTimeseries value)

public WorkItemDetails.Builder setProgress(ProgressTimeseries value)

Progress of this work item.

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

Parameter
Name Description
value ProgressTimeseries
Returns
Type Description
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
Name Description
builderForValue ProgressTimeseries.Builder
Returns
Type Description
WorkItemDetails.Builder

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

public WorkItemDetails.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
WorkItemDetails.Builder

setState(ExecutionState value)

public WorkItemDetails.Builder setState(ExecutionState value)

State of this work item.

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

Parameter
Name Description
value ExecutionState

The state to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
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
Name Description
value String

The taskId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for taskId to set.

Returns
Type Description
WorkItemDetails.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final WorkItemDetails.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WorkItemDetails.Builder
Overrides