📂 File Browser

/AgentAI/vendor/google/apiclient-services/src/Dataflow
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 ApproximateProgress.php
▶ Open 📄 View Source
🐘 ApproximateReportedProgress.php
▶ Open 📄 View Source
🐘 ApproximateSplitRequest.php
▶ Open 📄 View Source
🐘 AutoscalingEvent.php
▶ Open 📄 View Source
🐘 AutoscalingSettings.php
▶ Open 📄 View Source
🐘 Base2Exponent.php
▶ Open 📄 View Source
🐘 BigQueryIODetails.php
▶ Open 📄 View Source
🐘 BigTableIODetails.php
▶ Open 📄 View Source
🐘 BoundedTrie.php
▶ Open 📄 View Source
🐘 BoundedTrieNode.php
▶ Open 📄 View Source
🐘 BucketOptions.php
▶ Open 📄 View Source
🐘 CPUTime.php
▶ Open 📄 View Source
🐘 ComponentSource.php
▶ Open 📄 View Source
🐘 ComponentTransform.php
▶ Open 📄 View Source
🐘 ComputationTopology.php
▶ Open 📄 View Source
🐘 ConcatPosition.php
▶ Open 📄 View Source
🐘 ContainerSpec.php
▶ Open 📄 View Source
🐘 CounterMetadata.php
▶ Open 📄 View Source
🐘 CounterStructuredName.php
▶ Open 📄 View Source
🐘 CounterStructuredNameAndMetadata.php
▶ Open 📄 View Source
🐘 CounterUpdate.php
▶ Open 📄 View Source
🐘 CreateJobFromTemplateRequest.php
▶ Open 📄 View Source
🐘 CustomSourceLocation.php
▶ Open 📄 View Source
🐘 DataDiskAssignment.php
▶ Open 📄 View Source
🐘 DataSamplingConfig.php
▶ Open 📄 View Source
🐘 DataSamplingReport.php
▶ Open 📄 View Source
🐘 DataflowGaugeValue.php
▶ Open 📄 View Source
🐘 DataflowHistogramValue.php
▶ Open 📄 View Source
🐘 DatastoreIODetails.php
▶ Open 📄 View Source
🐘 DebugOptions.php
▶ Open 📄 View Source
🐘 DeleteSnapshotResponse.php
▶ Open 📄 View Source
🐘 DerivedSource.php
▶ Open 📄 View Source
🐘 Disk.php
▶ Open 📄 View Source
🐘 DisplayData.php
▶ Open 📄 View Source
🐘 DistributionUpdate.php
▶ Open 📄 View Source
🐘 DynamicSourceSplit.php
▶ Open 📄 View Source
🐘 Environment.php
▶ Open 📄 View Source
🐘 ExecutionStageState.php
▶ Open 📄 View Source
🐘 ExecutionStageSummary.php
▶ Open 📄 View Source
🐘 FailedLocation.php
▶ Open 📄 View Source
🐘 FileIODetails.php
▶ Open 📄 View Source
🐘 FlattenInstruction.php
▶ Open 📄 View Source
🐘 FlexTemplateRuntimeEnvironment.php
▶ Open 📄 View Source
🐘 FloatingPointList.php
▶ Open 📄 View Source
🐘 FloatingPointMean.php
▶ Open 📄 View Source
🐘 GPUUsage.php
▶ Open 📄 View Source
🐘 GPUUtilization.php
▶ Open 📄 View Source
🐘 GetDebugConfigRequest.php
▶ Open 📄 View Source
🐘 GetDebugConfigResponse.php
▶ Open 📄 View Source
🐘 GetTemplateResponse.php
▶ Open 📄 View Source
🐘 GetWorkerStacktracesRequest.php
▶ Open 📄 View Source
🐘 GetWorkerStacktracesResponse.php
▶ Open 📄 View Source
🐘 Histogram.php
▶ Open 📄 View Source
🐘 HotKeyDebuggingInfo.php
▶ Open 📄 View Source
🐘 HotKeyDetection.php
▶ Open 📄 View Source
🐘 HotKeyInfo.php
▶ Open 📄 View Source
🐘 InstructionInput.php
▶ Open 📄 View Source
🐘 InstructionOutput.php
▶ Open 📄 View Source
🐘 IntegerGauge.php
▶ Open 📄 View Source
🐘 IntegerList.php
▶ Open 📄 View Source
🐘 IntegerMean.php
▶ Open 📄 View Source
🐘 Job.php
▶ Open 📄 View Source
🐘 JobExecutionDetails.php
▶ Open 📄 View Source
🐘 JobExecutionInfo.php
▶ Open 📄 View Source
🐘 JobExecutionStageInfo.php
▶ Open 📄 View Source
🐘 JobMessage.php
▶ Open 📄 View Source
🐘 JobMetadata.php
▶ Open 📄 View Source
🐘 JobMetrics.php
▶ Open 📄 View Source
🐘 KeyRangeDataDiskAssignment.php
▶ Open 📄 View Source
🐘 KeyRangeLocation.php
▶ Open 📄 View Source
🐘 LaunchFlexTemplateParameter.php
▶ Open 📄 View Source
🐘 LaunchFlexTemplateRequest.php
▶ Open 📄 View Source
🐘 LaunchFlexTemplateResponse.php
▶ Open 📄 View Source
🐘 LaunchTemplateParameters.php
▶ Open 📄 View Source
🐘 LaunchTemplateResponse.php
▶ Open 📄 View Source
🐘 LeaseWorkItemRequest.php
▶ Open 📄 View Source
🐘 LeaseWorkItemResponse.php
▶ Open 📄 View Source
🐘 Linear.php
▶ Open 📄 View Source
🐘 ListJobMessagesResponse.php
▶ Open 📄 View Source
🐘 ListJobsResponse.php
▶ Open 📄 View Source
🐘 ListSnapshotsResponse.php
▶ Open 📄 View Source
🐘 MapTask.php
▶ Open 📄 View Source
🐘 MemInfo.php
▶ Open 📄 View Source
🐘 MetricShortId.php
▶ Open 📄 View Source
🐘 MetricStructuredName.php
▶ Open 📄 View Source
🐘 MetricUpdate.php
▶ Open 📄 View Source
🐘 MetricValue.php
▶ Open 📄 View Source
🐘 MountedDataDisk.php
▶ Open 📄 View Source
🐘 MultiOutputInfo.php
▶ Open 📄 View Source
🐘 NameAndKind.php
▶ Open 📄 View Source
🐘 OutlierStats.php
▶ Open 📄 View Source
🐘 Package.php
▶ Open 📄 View Source
🐘 ParDoInstruction.php
▶ Open 📄 View Source
🐘 ParallelInstruction.php
▶ Open 📄 View Source
🐘 Parameter.php
▶ Open 📄 View Source
🐘 ParameterMetadata.php
▶ Open 📄 View Source
🐘 ParameterMetadataEnumOption.php
▶ Open 📄 View Source
🐘 PartialGroupByKeyInstruction.php
▶ Open 📄 View Source
🐘 PerStepNamespaceMetrics.php
▶ Open 📄 View Source
🐘 PerWorkerMetrics.php
▶ Open 📄 View Source
🐘 PipelineDescription.php
▶ Open 📄 View Source
🐘 Point.php
▶ Open 📄 View Source
🐘 Position.php
▶ Open 📄 View Source
🐘 ProgressTimeseries.php
▶ Open 📄 View Source
🐘 PubSubIODetails.php
▶ Open 📄 View Source
🐘 PubsubLocation.php
▶ Open 📄 View Source
🐘 PubsubSnapshotMetadata.php
▶ Open 📄 View Source
🐘 QueryInfo.php
▶ Open 📄 View Source
🐘 ReadInstruction.php
▶ Open 📄 View Source
🐘 ReportWorkItemStatusRequest.php
▶ Open 📄 View Source
🐘 ReportWorkItemStatusResponse.php
▶ Open 📄 View Source
🐘 ReportedParallelism.php
▶ Open 📄 View Source
🐘 ResourceUtilizationReport.php
▶ Open 📄 View Source
🐘 ResourceUtilizationReportResponse.php
▶ Open 📄 View Source
🐘 RuntimeEnvironment.php
▶ Open 📄 View Source
🐘 RuntimeMetadata.php
▶ Open 📄 View Source
🐘 RuntimeUpdatableParams.php
▶ Open 📄 View Source
🐘 SDKInfo.php
▶ Open 📄 View Source
🐘 Sdk.php
▶ Open 📄 View Source
🐘 SdkBug.php
▶ Open 📄 View Source
🐘 SdkHarnessContainerImage.php
▶ Open 📄 View Source
🐘 SdkVersion.php
▶ Open 📄 View Source
🐘 SendDebugCaptureRequest.php
▶ Open 📄 View Source
🐘 SendDebugCaptureResponse.php
▶ Open 📄 View Source
🐘 SendWorkerMessagesRequest.php
▶ Open 📄 View Source
🐘 SendWorkerMessagesResponse.php
▶ Open 📄 View Source
🐘 SeqMapTask.php
▶ Open 📄 View Source
🐘 SeqMapTaskOutputInfo.php
▶ Open 📄 View Source
🐘 ServiceResources.php
▶ Open 📄 View Source
🐘 ShellTask.php
▶ Open 📄 View Source
🐘 SideInputInfo.php
▶ Open 📄 View Source
🐘 Sink.php
▶ Open 📄 View Source
🐘 Snapshot.php
▶ Open 📄 View Source
🐘 SnapshotJobRequest.php
▶ Open 📄 View Source
🐘 Source.php
▶ Open 📄 View Source
🐘 SourceFork.php
▶ Open 📄 View Source
🐘 SourceGetMetadataRequest.php
▶ Open 📄 View Source
🐘 SourceGetMetadataResponse.php
▶ Open 📄 View Source
🐘 SourceMetadata.php
▶ Open 📄 View Source
🐘 SourceOperationRequest.php
▶ Open 📄 View Source
🐘 SourceOperationResponse.php
▶ Open 📄 View Source
🐘 SourceSplitOptions.php
▶ Open 📄 View Source
🐘 SourceSplitRequest.php
▶ Open 📄 View Source
🐘 SourceSplitResponse.php
▶ Open 📄 View Source
🐘 SourceSplitShard.php
▶ Open 📄 View Source
🐘 SpannerIODetails.php
▶ Open 📄 View Source
🐘 SplitInt64.php
▶ Open 📄 View Source
🐘 Stack.php
▶ Open 📄 View Source
🐘 StageExecutionDetails.php
▶ Open 📄 View Source
🐘 StageSource.php
▶ Open 📄 View Source
🐘 StageSummary.php
▶ Open 📄 View Source
🐘 StateFamilyConfig.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 Step.php
▶ Open 📄 View Source
🐘 Straggler.php
▶ Open 📄 View Source
🐘 StragglerDebuggingInfo.php
▶ Open 📄 View Source
🐘 StragglerInfo.php
▶ Open 📄 View Source
🐘 StragglerSummary.php
▶ Open 📄 View Source
🐘 StreamLocation.php
▶ Open 📄 View Source
🐘 StreamingApplianceSnapshotConfig.php
▶ Open 📄 View Source
🐘 StreamingComputationConfig.php
▶ Open 📄 View Source
🐘 StreamingComputationRanges.php
▶ Open 📄 View Source
🐘 StreamingComputationTask.php
▶ Open 📄 View Source
🐘 StreamingConfigTask.php
▶ Open 📄 View Source
🐘 StreamingOperationalLimits.php
▶ Open 📄 View Source
🐘 StreamingScalingReport.php
▶ Open 📄 View Source
🐘 StreamingScalingReportResponse.php
▶ Open 📄 View Source
🐘 StreamingSetupTask.php
▶ Open 📄 View Source
🐘 StreamingSideInputLocation.php
▶ Open 📄 View Source
🐘 StreamingStageLocation.php
▶ Open 📄 View Source
🐘 StreamingStragglerInfo.php
▶ Open 📄 View Source
🐘 StringList.php
▶ Open 📄 View Source
🐘 StructuredMessage.php
▶ Open 📄 View Source
🐘 TaskRunnerSettings.php
▶ Open 📄 View Source
🐘 TemplateMetadata.php
▶ Open 📄 View Source
🐘 TopologyConfig.php
▶ Open 📄 View Source
🐘 TransformSummary.php
▶ Open 📄 View Source
🐘 ValidateResponse.php
▶ Open 📄 View Source
🐘 WorkItem.php
▶ Open 📄 View Source
🐘 WorkItemDetails.php
▶ Open 📄 View Source
🐘 WorkItemServiceState.php
▶ Open 📄 View Source
🐘 WorkItemStatus.php
▶ Open 📄 View Source
🐘 WorkerDetails.php
▶ Open 📄 View Source
🐘 WorkerHealthReport.php
▶ Open 📄 View Source
🐘 WorkerHealthReportResponse.php
▶ Open 📄 View Source
🐘 WorkerLifecycleEvent.php
▶ Open 📄 View Source
🐘 WorkerMessage.php
▶ Open 📄 View Source
🐘 WorkerMessageCode.php
▶ Open 📄 View Source
🐘 WorkerMessageResponse.php
▶ Open 📄 View Source
🐘 WorkerPool.php
▶ Open 📄 View Source
🐘 WorkerSettings.php
▶ Open 📄 View Source
🐘 WorkerShutdownNotice.php
▶ Open 📄 View Source
🐘 WorkerShutdownNoticeResponse.php
▶ Open 📄 View Source
🐘 WorkerThreadScalingReport.php
▶ Open 📄 View Source
🐘 WorkerThreadScalingReportResponse.php
▶ Open 📄 View Source
🐘 WriteInstruction.php
▶ Open 📄 View Source

📄 Source: WorkItemStatus.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\Dataflow;

class WorkItemStatus extends \Google\Collection
{
  protected $collection_key = 'metricUpdates';
  /**
   * True if the WorkItem was completed (successfully or unsuccessfully).
   *
   * @var bool
   */
  public $completed;
  protected $counterUpdatesType = CounterUpdate::class;
  protected $counterUpdatesDataType = 'array';
  protected $dynamicSourceSplitType = DynamicSourceSplit::class;
  protected $dynamicSourceSplitDataType = '';
  protected $errorsType = Status::class;
  protected $errorsDataType = 'array';
  protected $metricUpdatesType = MetricUpdate::class;
  protected $metricUpdatesDataType = 'array';
  protected $progressType = ApproximateProgress::class;
  protected $progressDataType = '';
  /**
   * The report index. When a WorkItem is leased, the lease will contain an
   * initial report index. When a WorkItem's status is reported to the system,
   * the report should be sent with that report index, and the response will
   * contain the index the worker should use for the next report. Reports
   * received with unexpected index values will be rejected by the service. In
   * order to preserve idempotency, the worker should not alter the contents of
   * a report, even if the worker must submit the same report multiple times
   * before getting back a response. The worker should not submit a subsequent
   * report until the response for the previous report had been received from
   * the service.
   *
   * @var string
   */
  public $reportIndex;
  protected $reportedProgressType = ApproximateReportedProgress::class;
  protected $reportedProgressDataType = '';
  /**
   * Amount of time the worker requests for its lease.
   *
   * @var string
   */
  public $requestedLeaseDuration;
  protected $sourceForkType = SourceFork::class;
  protected $sourceForkDataType = '';
  protected $sourceOperationResponseType = SourceOperationResponse::class;
  protected $sourceOperationResponseDataType = '';
  protected $stopPositionType = Position::class;
  protected $stopPositionDataType = '';
  /**
   * Total time the worker spent being throttled by external systems.
   *
   * @var 
   */
  public $totalThrottlerWaitTimeSeconds;
  /**
   * Identifies the WorkItem.
   *
   * @var string
   */
  public $workItemId;

  /**
   * True if the WorkItem was completed (successfully or unsuccessfully).
   *
   * @param bool $completed
   */
  public function setCompleted($completed)
  {
    $this->completed = $completed;
  }
  /**
   * @return bool
   */
  public function getCompleted()
  {
    return $this->completed;
  }
  /**
   * Worker output counters for this WorkItem.
   *
   * @param CounterUpdate[] $counterUpdates
   */
  public function setCounterUpdates($counterUpdates)
  {
    $this->counterUpdates = $counterUpdates;
  }
  /**
   * @return CounterUpdate[]
   */
  public function getCounterUpdates()
  {
    return $this->counterUpdates;
  }
  /**
   * See documentation of stop_position.
   *
   * @param DynamicSourceSplit $dynamicSourceSplit
   */
  public function setDynamicSourceSplit(DynamicSourceSplit $dynamicSourceSplit)
  {
    $this->dynamicSourceSplit = $dynamicSourceSplit;
  }
  /**
   * @return DynamicSourceSplit
   */
  public function getDynamicSourceSplit()
  {
    return $this->dynamicSourceSplit;
  }
  /**
   * Specifies errors which occurred during processing. If errors are provided,
   * and completed = true, then the WorkItem is considered to have failed.
   *
   * @param Status[] $errors
   */
  public function setErrors($errors)
  {
    $this->errors = $errors;
  }
  /**
   * @return Status[]
   */
  public function getErrors()
  {
    return $this->errors;
  }
  /**
   * DEPRECATED in favor of counter_updates.
   *
   * @deprecated
   * @param MetricUpdate[] $metricUpdates
   */
  public function setMetricUpdates($metricUpdates)
  {
    $this->metricUpdates = $metricUpdates;
  }
  /**
   * @deprecated
   * @return MetricUpdate[]
   */
  public function getMetricUpdates()
  {
    return $this->metricUpdates;
  }
  /**
   * DEPRECATED in favor of reported_progress.
   *
   * @deprecated
   * @param ApproximateProgress $progress
   */
  public function setProgress(ApproximateProgress $progress)
  {
    $this->progress = $progress;
  }
  /**
   * @deprecated
   * @return ApproximateProgress
   */
  public function getProgress()
  {
    return $this->progress;
  }
  /**
   * The report index. When a WorkItem is leased, the lease will contain an
   * initial report index. When a WorkItem's status is reported to the system,
   * the report should be sent with that report index, and the response will
   * contain the index the worker should use for the next report. Reports
   * received with unexpected index values will be rejected by the service. In
   * order to preserve idempotency, the worker should not alter the contents of
   * a report, even if the worker must submit the same report multiple times
   * before getting back a response. The worker should not submit a subsequent
   * report until the response for the previous report had been received from
   * the service.
   *
   * @param string $reportIndex
   */
  public function setReportIndex($reportIndex)
  {
    $this->reportIndex = $reportIndex;
  }
  /**
   * @return string
   */
  public function getReportIndex()
  {
    return $this->reportIndex;
  }
  /**
   * The worker's progress through this WorkItem.
   *
   * @param ApproximateReportedProgress $reportedProgress
   */
  public function setReportedProgress(ApproximateReportedProgress $reportedProgress)
  {
    $this->reportedProgress = $reportedProgress;
  }
  /**
   * @return ApproximateReportedProgress
   */
  public function getReportedProgress()
  {
    return $this->reportedProgress;
  }
  /**
   * Amount of time the worker requests for its lease.
   *
   * @param string $requestedLeaseDuration
   */
  public function setRequestedLeaseDuration($requestedLeaseDuration)
  {
    $this->requestedLeaseDuration = $requestedLeaseDuration;
  }
  /**
   * @return string
   */
  public function getRequestedLeaseDuration()
  {
    return $this->requestedLeaseDuration;
  }
  /**
   * DEPRECATED in favor of dynamic_source_split.
   *
   * @deprecated
   * @param SourceFork $sourceFork
   */
  public function setSourceFork(SourceFork $sourceFork)
  {
    $this->sourceFork = $sourceFork;
  }
  /**
   * @deprecated
   * @return SourceFork
   */
  public function getSourceFork()
  {
    return $this->sourceFork;
  }
  /**
   * If the work item represented a SourceOperationRequest, and the work is
   * completed, contains the result of the operation.
   *
   * @param SourceOperationResponse $sourceOperationResponse
   */
  public function setSourceOperationResponse(SourceOperationResponse $sourceOperationResponse)
  {
    $this->sourceOperationResponse = $sourceOperationResponse;
  }
  /**
   * @return SourceOperationResponse
   */
  public function getSourceOperationResponse()
  {
    return $this->sourceOperationResponse;
  }
  /**
   * A worker may split an active map task in two parts, "primary" and
   * "residual", continuing to process the primary part and returning the
   * residual part into the pool of available work. This event is called a
   * "dynamic split" and is critical to the dynamic work rebalancing feature.
   * The two obtained sub-tasks are called "parts" of the split. The parts, if
   * concatenated, must represent the same input as would be read by the current
   * task if the split did not happen. The exact way in which the original task
   * is decomposed into the two parts is specified either as a position
   * demarcating them (stop_position), or explicitly as two DerivedSources, if
   * this task consumes a user-defined source type (dynamic_source_split). The
   * "current" task is adjusted as a result of the split: after a task with
   * range [A, B) sends a stop_position update at C, its range is considered to
   * be [A, C), e.g.: * Progress should be interpreted relative to the new
   * range, e.g. "75% completed" means "75% of [A, C) completed" * The worker
   * should interpret proposed_stop_position relative to the new range, e.g.
   * "split at 68%" should be interpreted as "split at 68% of [A, C)". * If the
   * worker chooses to split again using stop_position, only stop_positions in
   * [A, C) will be accepted. * Etc. dynamic_source_split has similar semantics:
   * e.g., if a task with source S splits using dynamic_source_split into {P, R}
   * (where P and R must be together equivalent to S), then subsequent progress
   * and proposed_stop_position should be interpreted relative to P, and in a
   * potential subsequent dynamic_source_split into {P', R'}, P' and R' must be
   * together equivalent to P, etc.
   *
   * @param Position $stopPosition
   */
  public function setStopPosition(Position $stopPosition)
  {
    $this->stopPosition = $stopPosition;
  }
  /**
   * @return Position
   */
  public function getStopPosition()
  {
    return $this->stopPosition;
  }
  public function setTotalThrottlerWaitTimeSeconds($totalThrottlerWaitTimeSeconds)
  {
    $this->totalThrottlerWaitTimeSeconds = $totalThrottlerWaitTimeSeconds;
  }
  public function getTotalThrottlerWaitTimeSeconds()
  {
    return $this->totalThrottlerWaitTimeSeconds;
  }
  /**
   * Identifies the WorkItem.
   *
   * @param string $workItemId
   */
  public function setWorkItemId($workItemId)
  {
    $this->workItemId = $workItemId;
  }
  /**
   * @return string
   */
  public function getWorkItemId()
  {
    return $this->workItemId;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WorkItemStatus::class, 'Google_Service_Dataflow_WorkItemStatus');
← Back