Class WorkItemDetails.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WorkItemDetails.Builder>
com.google.dataflow.v1beta3.WorkItemDetails.Builder
All Implemented Interfaces:
WorkItemDetailsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
WorkItemDetails

public static final class WorkItemDetails.Builder extends com.google.protobuf.GeneratedMessage.Builder<WorkItemDetails.Builder> implements WorkItemDetailsOrBuilder
 Information about an individual work item execution.
 
Protobuf type google.dataflow.v1beta3.WorkItemDetails
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<WorkItemDetails.Builder>
    • clear

      public WorkItemDetails.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<WorkItemDetails.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<WorkItemDetails.Builder>
    • getDefaultInstanceForType

      public WorkItemDetails getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public WorkItemDetails build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public WorkItemDetails buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public WorkItemDetails.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WorkItemDetails.Builder>
    • mergeFrom

      public WorkItemDetails.Builder mergeFrom(WorkItemDetails other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<WorkItemDetails.Builder>
    • mergeFrom

      public WorkItemDetails.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WorkItemDetails.Builder>
      Throws:
      IOException
    • getTaskId

      public String getTaskId()
       Name of this work item.
       
      string task_id = 1;
      Specified by:
      getTaskId in interface WorkItemDetailsOrBuilder
      Returns:
      The taskId.
    • getTaskIdBytes

      public com.google.protobuf.ByteString getTaskIdBytes()
       Name of this work item.
       
      string task_id = 1;
      Specified by:
      getTaskIdBytes in interface WorkItemDetailsOrBuilder
      Returns:
      The bytes for taskId.
    • setTaskId

      public WorkItemDetails.Builder setTaskId(String value)
       Name of this work item.
       
      string task_id = 1;
      Parameters:
      value - The taskId to set.
      Returns:
      This builder for chaining.
    • clearTaskId

      public WorkItemDetails.Builder clearTaskId()
       Name of this work item.
       
      string task_id = 1;
      Returns:
      This builder for chaining.
    • setTaskIdBytes

      public WorkItemDetails.Builder setTaskIdBytes(com.google.protobuf.ByteString value)
       Name of this work item.
       
      string task_id = 1;
      Parameters:
      value - The bytes for taskId to set.
      Returns:
      This builder for chaining.
    • getAttemptId

      public String getAttemptId()
       Attempt ID of this work item
       
      string attempt_id = 2;
      Specified by:
      getAttemptId in interface WorkItemDetailsOrBuilder
      Returns:
      The attemptId.
    • getAttemptIdBytes

      public com.google.protobuf.ByteString getAttemptIdBytes()
       Attempt ID of this work item
       
      string attempt_id = 2;
      Specified by:
      getAttemptIdBytes in interface WorkItemDetailsOrBuilder
      Returns:
      The bytes for attemptId.
    • setAttemptId

      public WorkItemDetails.Builder setAttemptId(String value)
       Attempt ID of this work item
       
      string attempt_id = 2;
      Parameters:
      value - The attemptId to set.
      Returns:
      This builder for chaining.
    • clearAttemptId

      public WorkItemDetails.Builder clearAttemptId()
       Attempt ID of this work item
       
      string attempt_id = 2;
      Returns:
      This builder for chaining.
    • setAttemptIdBytes

      public WorkItemDetails.Builder setAttemptIdBytes(com.google.protobuf.ByteString value)
       Attempt ID of this work item
       
      string attempt_id = 2;
      Parameters:
      value - The bytes for attemptId to set.
      Returns:
      This builder for chaining.
    • hasStartTime

      public boolean hasStartTime()
       Start time of this work item attempt.
       
      .google.protobuf.Timestamp start_time = 3;
      Specified by:
      hasStartTime in interface WorkItemDetailsOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Timestamp getStartTime()
       Start time of this work item attempt.
       
      .google.protobuf.Timestamp start_time = 3;
      Specified by:
      getStartTime in interface WorkItemDetailsOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public WorkItemDetails.Builder setStartTime(com.google.protobuf.Timestamp value)
       Start time of this work item attempt.
       
      .google.protobuf.Timestamp start_time = 3;
    • setStartTime

      public WorkItemDetails.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Start time of this work item attempt.
       
      .google.protobuf.Timestamp start_time = 3;
    • mergeStartTime

      public WorkItemDetails.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       Start time of this work item attempt.
       
      .google.protobuf.Timestamp start_time = 3;
    • clearStartTime

      public WorkItemDetails.Builder clearStartTime()
       Start time of this work item attempt.
       
      .google.protobuf.Timestamp start_time = 3;
    • getStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
       Start time of this work item attempt.
       
      .google.protobuf.Timestamp start_time = 3;
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       Start time of this work item attempt.
       
      .google.protobuf.Timestamp start_time = 3;
      Specified by:
      getStartTimeOrBuilder in interface WorkItemDetailsOrBuilder
    • 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;
      Specified by:
      hasEndTime in interface WorkItemDetailsOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public com.google.protobuf.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;
      Specified by:
      getEndTime in interface WorkItemDetailsOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public WorkItemDetails.Builder setEndTime(com.google.protobuf.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;
    • setEndTime

      public WorkItemDetails.Builder setEndTime(com.google.protobuf.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;
    • mergeEndTime

      public WorkItemDetails.Builder mergeEndTime(com.google.protobuf.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;
    • 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;
    • getEndTimeBuilder

      public com.google.protobuf.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;
    • getEndTimeOrBuilder

      public com.google.protobuf.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;
      Specified by:
      getEndTimeOrBuilder in interface WorkItemDetailsOrBuilder
    • getStateValue

      public int getStateValue()
       State of this work item.
       
      .google.dataflow.v1beta3.ExecutionState state = 5;
      Specified by:
      getStateValue in interface WorkItemDetailsOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public WorkItemDetails.Builder setStateValue(int value)
       State of this work item.
       
      .google.dataflow.v1beta3.ExecutionState state = 5;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public ExecutionState getState()
       State of this work item.
       
      .google.dataflow.v1beta3.ExecutionState state = 5;
      Specified by:
      getState in interface WorkItemDetailsOrBuilder
      Returns:
      The state.
    • setState

      public WorkItemDetails.Builder setState(ExecutionState value)
       State of this work item.
       
      .google.dataflow.v1beta3.ExecutionState state = 5;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public WorkItemDetails.Builder clearState()
       State of this work item.
       
      .google.dataflow.v1beta3.ExecutionState state = 5;
      Returns:
      This builder for chaining.
    • hasProgress

      public boolean hasProgress()
       Progress of this work item.
       
      .google.dataflow.v1beta3.ProgressTimeseries progress = 6;
      Specified by:
      hasProgress in interface WorkItemDetailsOrBuilder
      Returns:
      Whether the progress field is set.
    • getProgress

      public ProgressTimeseries getProgress()
       Progress of this work item.
       
      .google.dataflow.v1beta3.ProgressTimeseries progress = 6;
      Specified by:
      getProgress in interface WorkItemDetailsOrBuilder
      Returns:
      The progress.
    • setProgress

      public WorkItemDetails.Builder setProgress(ProgressTimeseries value)
       Progress of this work item.
       
      .google.dataflow.v1beta3.ProgressTimeseries progress = 6;
    • setProgress

      public WorkItemDetails.Builder setProgress(ProgressTimeseries.Builder builderForValue)
       Progress of this work item.
       
      .google.dataflow.v1beta3.ProgressTimeseries progress = 6;
    • mergeProgress

      public WorkItemDetails.Builder mergeProgress(ProgressTimeseries value)
       Progress of this work item.
       
      .google.dataflow.v1beta3.ProgressTimeseries progress = 6;
    • clearProgress

      public WorkItemDetails.Builder clearProgress()
       Progress of this work item.
       
      .google.dataflow.v1beta3.ProgressTimeseries progress = 6;
    • getProgressBuilder

      public ProgressTimeseries.Builder getProgressBuilder()
       Progress of this work item.
       
      .google.dataflow.v1beta3.ProgressTimeseries progress = 6;
    • getProgressOrBuilder

      public ProgressTimeseriesOrBuilder getProgressOrBuilder()
       Progress of this work item.
       
      .google.dataflow.v1beta3.ProgressTimeseries progress = 6;
      Specified by:
      getProgressOrBuilder in interface WorkItemDetailsOrBuilder
    • getMetricsList

      public List<MetricUpdate> getMetricsList()
       Metrics for this work item.
       
      repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7;
      Specified by:
      getMetricsList in interface WorkItemDetailsOrBuilder
    • getMetricsCount

      public int getMetricsCount()
       Metrics for this work item.
       
      repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7;
      Specified by:
      getMetricsCount in interface WorkItemDetailsOrBuilder
    • getMetrics

      public MetricUpdate getMetrics(int index)
       Metrics for this work item.
       
      repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7;
      Specified by:
      getMetrics in interface WorkItemDetailsOrBuilder
    • setMetrics

      public WorkItemDetails.Builder setMetrics(int index, MetricUpdate value)
       Metrics for this work item.
       
      repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7;
    • setMetrics

      public WorkItemDetails.Builder setMetrics(int index, MetricUpdate.Builder builderForValue)
       Metrics for this work item.
       
      repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7;
    • addMetrics

      public WorkItemDetails.Builder addMetrics(MetricUpdate value)
       Metrics for this work item.
       
      repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7;
    • addMetrics

      public WorkItemDetails.Builder addMetrics(int index, MetricUpdate value)
       Metrics for this work item.
       
      repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7;
    • addMetrics

      public WorkItemDetails.Builder addMetrics(MetricUpdate.Builder builderForValue)
       Metrics for this work item.
       
      repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7;
    • addMetrics

      public WorkItemDetails.Builder addMetrics(int index, MetricUpdate.Builder builderForValue)
       Metrics for this work item.
       
      repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7;
    • addAllMetrics

      public WorkItemDetails.Builder addAllMetrics(Iterable<? extends MetricUpdate> values)
       Metrics for this work item.
       
      repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7;
    • clearMetrics

      public WorkItemDetails.Builder clearMetrics()
       Metrics for this work item.
       
      repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7;
    • removeMetrics

      public WorkItemDetails.Builder removeMetrics(int index)
       Metrics for this work item.
       
      repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7;
    • getMetricsBuilder

      public MetricUpdate.Builder getMetricsBuilder(int index)
       Metrics for this work item.
       
      repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7;
    • getMetricsOrBuilder

      public MetricUpdateOrBuilder getMetricsOrBuilder(int index)
       Metrics for this work item.
       
      repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7;
      Specified by:
      getMetricsOrBuilder in interface WorkItemDetailsOrBuilder
    • getMetricsOrBuilderList

      public List<? extends MetricUpdateOrBuilder> getMetricsOrBuilderList()
       Metrics for this work item.
       
      repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7;
      Specified by:
      getMetricsOrBuilderList in interface WorkItemDetailsOrBuilder
    • addMetricsBuilder

      public MetricUpdate.Builder addMetricsBuilder()
       Metrics for this work item.
       
      repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7;
    • addMetricsBuilder

      public MetricUpdate.Builder addMetricsBuilder(int index)
       Metrics for this work item.
       
      repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7;
    • getMetricsBuilderList

      public List<MetricUpdate.Builder> getMetricsBuilderList()
       Metrics for this work item.
       
      repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7;
    • hasStragglerInfo

      public boolean hasStragglerInfo()
       Information about straggler detections for this work item.
       
      .google.dataflow.v1beta3.StragglerInfo straggler_info = 8;
      Specified by:
      hasStragglerInfo in interface WorkItemDetailsOrBuilder
      Returns:
      Whether the stragglerInfo field is set.
    • getStragglerInfo

      public StragglerInfo getStragglerInfo()
       Information about straggler detections for this work item.
       
      .google.dataflow.v1beta3.StragglerInfo straggler_info = 8;
      Specified by:
      getStragglerInfo in interface WorkItemDetailsOrBuilder
      Returns:
      The stragglerInfo.
    • setStragglerInfo

      public WorkItemDetails.Builder setStragglerInfo(StragglerInfo value)
       Information about straggler detections for this work item.
       
      .google.dataflow.v1beta3.StragglerInfo straggler_info = 8;
    • setStragglerInfo

      public WorkItemDetails.Builder setStragglerInfo(StragglerInfo.Builder builderForValue)
       Information about straggler detections for this work item.
       
      .google.dataflow.v1beta3.StragglerInfo straggler_info = 8;
    • mergeStragglerInfo

      public WorkItemDetails.Builder mergeStragglerInfo(StragglerInfo value)
       Information about straggler detections for this work item.
       
      .google.dataflow.v1beta3.StragglerInfo straggler_info = 8;
    • clearStragglerInfo

      public WorkItemDetails.Builder clearStragglerInfo()
       Information about straggler detections for this work item.
       
      .google.dataflow.v1beta3.StragglerInfo straggler_info = 8;
    • getStragglerInfoBuilder

      public StragglerInfo.Builder getStragglerInfoBuilder()
       Information about straggler detections for this work item.
       
      .google.dataflow.v1beta3.StragglerInfo straggler_info = 8;
    • getStragglerInfoOrBuilder

      public StragglerInfoOrBuilder getStragglerInfoOrBuilder()
       Information about straggler detections for this work item.
       
      .google.dataflow.v1beta3.StragglerInfo straggler_info = 8;
      Specified by:
      getStragglerInfoOrBuilder in interface WorkItemDetailsOrBuilder