{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-dataflow/json-schema/google-cloud-dataflow-report-work-item-status-request-schema.json",
  "title": "ReportWorkItemStatusRequest",
  "description": "Request to report the status of WorkItems.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-dataflow-dataflow-projects-api-openapi.yml#/components/schemas/ReportWorkItemStatusRequest",
  "type": "object",
  "properties": {
    "workItemStatuses": {
      "type": "array",
      "description": "The order is unimportant, except that the order of the WorkItemServiceState messages in the ReportWorkItemStatusResponse corresponds to the order of WorkItemStatus messages here.",
      "items": {
        "$ref": "#/$defs/WorkItemStatus"
      }
    },
    "workerId": {
      "type": "string",
      "description": "The ID of the worker reporting the WorkItem status. If this does not match the ID of the worker which the Dataflow service believes currently has the lease on the WorkItem, the report will be dropped (with an error response)."
    },
    "location": {
      "description": "The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the WorkItem's job.",
      "type": "string"
    },
    "unifiedWorkerRequest": {
      "additionalProperties": {
        "description": "Properties of the object. Contains field @type with type URL."
      },
      "description": "Untranslated bag-of-bytes WorkProgressUpdateRequest from UnifiedWorker.",
      "type": "object"
    },
    "currentWorkerTime": {
      "format": "google-datetime",
      "type": "string",
      "description": "The current timestamp at the worker."
    },
    "projectNumber": {
      "format": "int64",
      "description": "Optional. The project number of the project which owns the WorkItem's job.",
      "type": "string"
    }
  },
  "$defs": {
    "ApproximateProgress": {
      "description": "Obsolete in favor of ApproximateReportedProgress and ApproximateSplitRequest.",
      "properties": {
        "remainingTime": {
          "description": "Obsolete.",
          "format": "google-duration",
          "type": "string",
          "deprecated": true
        },
        "position": {
          "$ref": "#/$defs/Position",
          "description": "Obsolete."
        },
        "percentComplete": {
          "description": "Obsolete.",
          "type": "number",
          "format": "float",
          "deprecated": true
        }
      },
      "type": "object"
    },
    "ApproximateReportedProgress": {
      "properties": {
        "remainingParallelism": {
          "$ref": "#/$defs/ReportedParallelism",
          "description": "Total amount of parallelism in the input of this task that remains, (i.e. can be delegated to this task and any new tasks via dynamic splitting). Always at least 1 for non-finished work items and 0 for finished. \"Amount of parallelism\" refers to how many non-empty parts of the input can be read in parallel. This does not necessarily equal number of records. An input that can be read in parallel down to the individual records is called \"perfectly splittable\". An example of non-perfectly parallelizable input is a block-compressed file format where a block of records has to be read as a whole, but different blocks can be read in parallel. Examples: * If we are processing record #30 (starting at 1) out of 50 in a perfectly splittable 50-record input, this value should be 21 (20 remaining + 1 current). * If we are reading through block 3 in a block-compressed file consisting of 5 blocks, this value should be 3 (since blocks 4 and 5 can be processed in parallel by new tasks via dynamic splitting and the current task remains processing block 3). * If we are reading through the last block in a block-compressed file, or reading or processing the last record in a perfectly splittable input, this value should be 1, because apart from the current task, no additional remainder can be split off."
        },
        "consumedParallelism": {
          "$ref": "#/$defs/ReportedParallelism",
          "description": "Total amount of parallelism in the portion of input of this task that has already been consumed and is no longer active. In the first two examples above (see remaining_parallelism), the value should be 29 or 2 respectively. The sum of remaining_parallelism and consumed_parallelism should equal the total amount of parallelism in this work item. If specified, must be finite."
        },
        "position": {
          "$ref": "#/$defs/Position",
          "description": "A Position within the work to represent a progress."
        },
        "fractionConsumed": {
          "type": "number",
          "description": "Completion as fraction of the input consumed, from 0.0 (beginning, nothing consumed), to 1.0 (end of the input, entire input consumed).",
          "format": "double"
        }
      },
      "type": "object",
      "description": "A progress measurement of a WorkItem by a worker."
    },
    "BoundedTrie": {
      "properties": {
        "singleton": {
          "type": "array",
          "description": "A more efficient representation for metrics consisting of a single value.",
          "items": {
            "type": "string"
          }
        },
        "root": {
          "$ref": "#/$defs/BoundedTrieNode",
          "description": "A compact representation of all the elements in this trie."
        },
        "bound": {
          "format": "int32",
          "description": "The maximum number of elements to store before truncation.",
          "type": "integer"
        }
      },
      "type": "object",
      "description": "The message type used for encoding metrics of type bounded trie."
    },
    "BoundedTrieNode": {
      "type": "object",
      "description": "A single node in a BoundedTrie.",
      "properties": {
        "truncated": {
          "type": "boolean",
          "description": "Whether this node has been truncated. A truncated leaf represents possibly many children with the same prefix."
        },
        "children": {
          "type": "object",
          "description": "Children of this node. Must be empty if truncated is true.",
          "additionalProperties": {
            "$ref": "#/$defs/BoundedTrieNode"
          }
        }
      }
    },
    "ConcatPosition": {
      "properties": {
        "position": {
          "$ref": "#/$defs/Position",
          "description": "Position within the inner source."
        },
        "index": {
          "format": "int32",
          "description": "Index of the inner source.",
          "type": "integer"
        }
      },
      "description": "A position that encapsulates an inner position and an index for the inner position. A ConcatPosition can be used by a reader of a source that encapsulates a set of other sources.",
      "type": "object"
    },
    "CounterMetadata": {
      "description": "CounterMetadata includes all static non-name non-value counter attributes.",
      "type": "object",
      "properties": {
        "standardUnits": {
          "enum": [
            "BYTES",
            "BYTES_PER_SEC",
            "MILLISECONDS",
            "MICROSECONDS",
            "NANOSECONDS",
            "TIMESTAMP_MSEC",
            "TIMESTAMP_USEC",
            "TIMESTAMP_NSEC"
          ],
          "type": "string",
          "description": "System defined Units, see above enum."
        },
        "otherUnits": {
          "description": "A string referring to the unit type.",
          "type": "string"
        },
        "description": {
          "description": "Human-readable description of the counter semantics.",
          "type": "string"
        },
        "kind": {
          "enum": [
            "INVALID",
            "SUM",
            "MAX",
            "MIN",
            "MEAN",
            "OR",
            "AND",
            "SET",
            "DISTRIBUTION",
            "LATEST_VALUE"
          ],
          "type": "string",
          "description": "Counter aggregation kind."
        }
      }
    },
    "CounterStructuredName": {
      "type": "object",
      "properties": {
        "portion": {
          "description": "Portion of this counter, either key or value.",
          "enum": [
            "ALL",
            "KEY",
            "VALUE"
          ],
          "type": "string"
        },
        "originalRequestingStepName": {
          "type": "string",
          "description": "The step name requesting an operation, such as GBK. I.e. the ParDo causing a read/write from shuffle to occur, or a read from side inputs."
        },
        "name": {
          "description": "Counter name. Not necessarily globally-unique, but unique within the context of the other fields. Required.",
          "type": "string"
        },
        "originalStepName": {
          "type": "string",
          "description": "System generated name of the original step in the user's graph, before optimization."
        },
        "originNamespace": {
          "description": "A string containing a more specific namespace of the counter's origin.",
          "type": "string"
        },
        "origin": {
          "type": "string",
          "enum": [
            "SYSTEM",
            "USER"
          ],
          "description": "One of the standard Origins defined above."
        },
        "componentStepName": {
          "type": "string",
          "description": "Name of the optimized step being executed by the workers."
        },
        "executionStepName": {
          "description": "Name of the stage. An execution step contains multiple component steps.",
          "type": "string"
        },
        "workerId": {
          "description": "ID of a particular worker.",
          "type": "string"
        },
        "inputIndex": {
          "description": "Index of an input collection that's being read from/written to as a side input. The index identifies a step's side inputs starting by 1 (e.g. the first side input has input_index 1, the third has input_index 3). Side inputs are identified by a pair of (original_step_name, input_index). This field helps uniquely identify them.",
          "format": "int32",
          "type": "integer"
        }
      },
      "description": "Identifies a counter within a per-job namespace. Counters whose structured names are the same get merged into a single value for the job."
    },
    "CounterStructuredNameAndMetadata": {
      "description": "A single message which encapsulates structured name and metadata for a given counter.",
      "type": "object",
      "properties": {
        "metadata": {
          "$ref": "#/$defs/CounterMetadata",
          "description": "Metadata associated with a counter"
        },
        "name": {
          "$ref": "#/$defs/CounterStructuredName",
          "description": "Structured name of the counter."
        }
      }
    },
    "CounterUpdate": {
      "properties": {
        "cumulative": {
          "description": "True if this counter is reported as the total cumulative aggregate value accumulated since the worker started working on this WorkItem. By default this is false, indicating that this counter is reported as a delta.",
          "type": "boolean"
        },
        "floatingPointList": {
          "$ref": "#/$defs/FloatingPointList",
          "description": "List of floating point numbers, for Set."
        },
        "structuredNameAndMetadata": {
          "$ref": "#/$defs/CounterStructuredNameAndMetadata",
          "description": "Counter structured name and metadata."
        },
        "floatingPoint": {
          "format": "double",
          "description": "Floating point value for Sum, Max, Min.",
          "type": "number"
        },
        "integerList": {
          "$ref": "#/$defs/IntegerList",
          "description": "List of integers, for Set."
        },
        "integerMean": {
          "$ref": "#/$defs/IntegerMean",
          "description": "Integer mean aggregation value for Mean."
        },
        "stringList": {
          "$ref": "#/$defs/StringList",
          "description": "List of strings, for Set."
        },
        "boolean": {
          "type": "boolean",
          "description": "Boolean value for And, Or."
        },
        "floatingPointMean": {
          "$ref": "#/$defs/FloatingPointMean",
          "description": "Floating point mean aggregation value for Mean."
        },
        "integer": {
          "$ref": "#/$defs/SplitInt64",
          "description": "Integer value for Sum, Max, Min."
        },
        "integerGauge": {
          "$ref": "#/$defs/IntegerGauge",
          "description": "Gauge data"
        },
        "boundedTrie": {
          "$ref": "#/$defs/BoundedTrie",
          "description": "Bounded trie data"
        },
        "nameAndKind": {
          "$ref": "#/$defs/NameAndKind",
          "description": "Counter name and aggregation type."
        },
        "shortId": {
          "description": "The service-generated short identifier for this counter. The short_id -> (name, metadata) mapping is constant for the lifetime of a job.",
          "format": "int64",
          "type": "string"
        },
        "distribution": {
          "$ref": "#/$defs/DistributionUpdate",
          "description": "Distribution data"
        },
        "internal": {
          "description": "Value for internally-defined counters used by the Dataflow service."
        }
      },
      "type": "object",
      "description": "An update to a Counter sent from a worker. Next ID: 17"
    },
    "DerivedSource": {
      "description": "Specification of one of the bundles produced as a result of splitting a Source (e.g. when executing a SourceSplitRequest, or when splitting an active task using WorkItemStatus.dynamic_source_split), relative to the source being split.",
      "properties": {
        "derivationMode": {
          "type": "string",
          "description": "What source to base the produced source on (if any).",
          "enum": [
            "SOURCE_DERIVATION_MODE_UNKNOWN",
            "SOURCE_DERIVATION_MODE_INDEPENDENT",
            "SOURCE_DERIVATION_MODE_CHILD_OF_CURRENT",
            "SOURCE_DERIVATION_MODE_SIBLING_OF_CURRENT"
          ]
        },
        "source": {
          "$ref": "#/$defs/Source",
          "description": "Specification of the source."
        }
      },
      "type": "object"
    },
    "DistributionUpdate": {
      "type": "object",
      "description": "A metric value representing a distribution.",
      "properties": {
        "count": {
          "$ref": "#/$defs/SplitInt64",
          "description": "The count of the number of elements present in the distribution."
        },
        "min": {
          "$ref": "#/$defs/SplitInt64",
          "description": "The minimum value present in the distribution."
        },
        "sum": {
          "$ref": "#/$defs/SplitInt64",
          "description": "Use an int64 since we'd prefer the added precision. If overflow is a common problem we can detect it and use an additional int64 or a double."
        },
        "histogram": {
          "$ref": "#/$defs/Histogram",
          "description": "(Optional) Histogram of value counts for the distribution."
        },
        "max": {
          "$ref": "#/$defs/SplitInt64",
          "description": "The maximum value present in the distribution."
        },
        "sumOfSquares": {
          "description": "Use a double since the sum of squares is likely to overflow int64.",
          "type": "number",
          "format": "double"
        }
      }
    },
    "DynamicSourceSplit": {
      "type": "object",
      "properties": {
        "primary": {
          "$ref": "#/$defs/DerivedSource",
          "description": "Primary part (continued to be processed by worker). Specified relative to the previously-current source. Becomes current."
        },
        "residual": {
          "$ref": "#/$defs/DerivedSource",
          "description": "Residual part (returned to the pool of work). Specified relative to the previously-current source."
        }
      },
      "description": "When a task splits using WorkItemStatus.dynamic_source_split, this message describes the two parts of the split relative to the description of the current task's input."
    },
    "FloatingPointList": {
      "properties": {
        "elements": {
          "items": {
            "type": "number",
            "format": "double"
          },
          "description": "Elements of the list.",
          "type": "array"
        }
      },
      "type": "object",
      "description": "A metric value representing a list of floating point numbers."
    },
    "FloatingPointMean": {
      "properties": {
        "count": {
          "$ref": "#/$defs/SplitInt64",
          "description": "The number of values being aggregated."
        },
        "sum": {
          "format": "double",
          "description": "The sum of all values being aggregated.",
          "type": "number"
        }
      },
      "description": "A representation of a floating point mean metric contribution.",
      "type": "object"
    },
    "Histogram": {
      "properties": {
        "firstBucketOffset": {
          "format": "int32",
          "type": "integer",
          "description": "Starting index of first stored bucket. The non-inclusive upper-bound of the ith bucket is given by: pow(10,(i-first_bucket_offset)/3) * (1,2,5)[(i-first_bucket_offset)%3]"
        },
        "bucketCounts": {
          "items": {
            "format": "int64",
            "type": "string"
          },
          "description": "Counts of values in each bucket. For efficiency, prefix and trailing buckets with count = 0 are elided. Buckets can store the full range of values of an unsigned long, with ULLONG_MAX falling into the 59th bucket with range [1e19, 2e19).",
          "type": "array"
        }
      },
      "description": "Histogram of value counts for a distribution. Buckets have an inclusive lower bound and exclusive upper bound and use \"1,2,5 bucketing\": The first bucket range is from [0,1) and all subsequent bucket boundaries are powers of ten multiplied by 1, 2, or 5. Thus, bucket boundaries are 0, 1, 2, 5, 10, 20, 50, 100, 200, 500, 1000, ... Negative values are not supported.",
      "type": "object"
    },
    "IntegerGauge": {
      "description": "A metric value representing temporal values of a variable.",
      "type": "object",
      "properties": {
        "timestamp": {
          "format": "google-datetime",
          "description": "The time at which this value was measured. Measured as msecs from epoch.",
          "type": "string"
        },
        "value": {
          "$ref": "#/$defs/SplitInt64",
          "description": "The value of the variable represented by this gauge."
        }
      }
    },
    "IntegerList": {
      "properties": {
        "elements": {
          "items": {
            "$ref": "#/$defs/SplitInt64"
          },
          "description": "Elements of the list.",
          "type": "array"
        }
      },
      "type": "object",
      "description": "A metric value representing a list of integers."
    },
    "IntegerMean": {
      "type": "object",
      "properties": {
        "sum": {
          "$ref": "#/$defs/SplitInt64",
          "description": "The sum of all values being aggregated."
        },
        "count": {
          "$ref": "#/$defs/SplitInt64",
          "description": "The number of values being aggregated."
        }
      },
      "description": "A representation of an integer mean metric contribution."
    },
    "MetricStructuredName": {
      "description": "Identifies a metric, by describing the source which generated the metric.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Worker-defined metric name."
        },
        "origin": {
          "description": "Origin (namespace) of metric name. May be blank for user-define metrics; will be \"dataflow\" for metrics defined by the Dataflow service or SDK.",
          "type": "string"
        },
        "context": {
          "type": "object",
          "description": "Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection. For example, built-in counters associated with steps will have context['step'] = . Counters associated with PCollections in the SDK will have context['pcollection'] = .",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "type": "object"
    },
    "MetricUpdate": {
      "properties": {
        "distribution": {
          "description": "A struct value describing properties of a distribution of numeric values."
        },
        "meanCount": {
          "description": "Worker-computed aggregate value for the \"Mean\" aggregation kind. This holds the count of the aggregated values and is used in combination with mean_sum above to obtain the actual mean aggregate value. The only possible value type is Long."
        },
        "internal": {
          "description": "Worker-computed aggregate value for internal use by the Dataflow service."
        },
        "meanSum": {
          "description": "Worker-computed aggregate value for the \"Mean\" aggregation kind. This holds the sum of the aggregated values and is used in combination with mean_count below to obtain the actual mean aggregate value. The only possible value types are Long and Double."
        },
        "trie": {
          "description": "Worker-computed aggregate value for the \"Trie\" aggregation kind. The only possible value type is a BoundedTrieNode."
        },
        "cumulative": {
          "description": "True if this metric is reported as the total cumulative aggregate value accumulated since the worker started working on this WorkItem. By default this is false, indicating that this metric is reported as a delta that is not associated with any WorkItem.",
          "type": "boolean"
        },
        "updateTime": {
          "type": "string",
          "format": "google-datetime",
          "description": "Timestamp associated with the metric value. Optional when workers are reporting work progress; it will be filled in responses from the metrics API."
        },
        "gauge": {
          "description": "A struct value describing properties of a Gauge. Metrics of gauge type show the value of a metric across time, and is aggregated based on the newest value."
        },
        "boundedTrie": {
          "description": "Worker-computed aggregate value for the \"Trie\" aggregation kind. The only possible value type is a BoundedTrieNode. Introduced this field to avoid breaking older SDKs when Dataflow service starts to populate the `bounded_trie` field."
        },
        "name": {
          "$ref": "#/$defs/MetricStructuredName",
          "description": "Name of the metric."
        },
        "scalar": {
          "description": "Worker-computed aggregate value for aggregation kinds \"Sum\", \"Max\", \"Min\", \"And\", and \"Or\". The possible value types are Long, Double, and Boolean."
        },
        "set": {
          "description": "Worker-computed aggregate value for the \"Set\" aggregation kind. The only possible value type is a list of Values whose type can be Long, Double, String, or BoundedTrie according to the metric's type. All Values in the list must be of the same type."
        },
        "kind": {
          "description": "Metric aggregation kind. The possible metric aggregation kinds are \"Sum\", \"Max\", \"Min\", \"Mean\", \"Set\", \"And\", \"Or\", and \"Distribution\". The specified aggregation kind is case-insensitive. If omitted, this is not an aggregated value but instead a single metric sample value.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Describes the state of a metric."
    },
    "NameAndKind": {
      "type": "object",
      "description": "Basic metadata about a counter.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the counter."
        },
        "kind": {
          "type": "string",
          "description": "Counter aggregation kind.",
          "enum": [
            "INVALID",
            "SUM",
            "MAX",
            "MIN",
            "MEAN",
            "OR",
            "AND",
            "SET",
            "DISTRIBUTION",
            "LATEST_VALUE"
          ]
        }
      }
    },
    "Position": {
      "description": "Position defines a position within a collection of data. The value can be either the end position, a key (used with ordered collections), a byte offset, or a record index.",
      "type": "object",
      "properties": {
        "byteOffset": {
          "type": "string",
          "format": "int64",
          "description": "Position is a byte offset."
        },
        "recordIndex": {
          "description": "Position is a record index.",
          "type": "string",
          "format": "int64"
        },
        "shufflePosition": {
          "description": "CloudPosition is a base64 encoded BatchShufflePosition (with FIXED sharding).",
          "type": "string"
        },
        "end": {
          "description": "Position is past all other positions. Also useful for the end position of an unbounded range.",
          "type": "boolean"
        },
        "key": {
          "description": "Position is a string key, ordered lexicographically.",
          "type": "string"
        },
        "concatPosition": {
          "$ref": "#/$defs/ConcatPosition",
          "description": "CloudPosition is a concat position."
        }
      }
    },
    "ReportedParallelism": {
      "type": "object",
      "description": "Represents the level of parallelism in a WorkItem's input, reported by the worker.",
      "properties": {
        "isInfinite": {
          "type": "boolean",
          "description": "Specifies whether the parallelism is infinite. If true, \"value\" is ignored. Infinite parallelism means the service will assume that the work item can always be split into more non-empty work items by dynamic splitting. This is a work-around for lack of support for infinity by the current JSON-based Java RPC stack."
        },
        "value": {
          "format": "double",
          "type": "number",
          "description": "Specifies the level of parallelism in case it is finite."
        }
      }
    },
    "Source": {
      "description": "A source that records can be read and decoded from.",
      "type": "object",
      "properties": {
        "spec": {
          "type": "object",
          "additionalProperties": {
            "description": "Properties of the object."
          },
          "description": "The source to read from, plus its parameters."
        },
        "baseSpecs": {
          "type": "array",
          "items": {
            "additionalProperties": {
              "description": "Properties of the object."
            },
            "type": "object"
          },
          "description": "While splitting, sources may specify the produced bundles as differences against another source, in order to save backend-side memory and allow bigger jobs. For details, see SourceSplitRequest. To support this use case, the full set of parameters of the source is logically obtained by taking the latest explicitly specified value of each parameter in the order: base_specs (later items win), spec (overrides anything in base_specs)."
        },
        "codec": {
          "additionalProperties": {
            "description": "Properties of the object."
          },
          "description": "The codec to use to decode data read from the source.",
          "type": "object"
        },
        "metadata": {
          "$ref": "#/$defs/SourceMetadata",
          "description": "Optionally, metadata for this source can be supplied right away, avoiding a SourceGetMetadataOperation roundtrip (see SourceOperationRequest). This field is meaningful only in the Source objects populated by the user (e.g. when filling in a DerivedSource). Source objects supplied by the framework to the user don't have this field populated."
        },
        "doesNotNeedSplitting": {
          "description": "Setting this value to true hints to the framework that the source doesn't need splitting, and using SourceSplitRequest on it would yield SOURCE_SPLIT_OUTCOME_USE_CURRENT. E.g. a file splitter may set this to true when splitting a single file into a set of byte ranges of appropriate size, and set this to false when splitting a filepattern into individual files. However, for efficiency, a file splitter may decide to produce file subranges directly from the filepattern to avoid a splitting round-trip. See SourceSplitRequest for an overview of the splitting process. This field is meaningful only in the Source objects populated by the user (e.g. when filling in a DerivedSource). Source objects supplied by the framework to the user don't have this field populated.",
          "type": "boolean"
        }
      }
    },
    "SourceFork": {
      "type": "object",
      "description": "DEPRECATED in favor of DynamicSourceSplit.",
      "properties": {
        "residual": {
          "$ref": "#/$defs/SourceSplitShard",
          "description": "DEPRECATED"
        },
        "residualSource": {
          "$ref": "#/$defs/DerivedSource",
          "description": "DEPRECATED"
        },
        "primary": {
          "$ref": "#/$defs/SourceSplitShard",
          "description": "DEPRECATED"
        },
        "primarySource": {
          "$ref": "#/$defs/DerivedSource",
          "description": "DEPRECATED"
        }
      }
    },
    "SourceGetMetadataResponse": {
      "type": "object",
      "properties": {
        "metadata": {
          "$ref": "#/$defs/SourceMetadata",
          "description": "The computed metadata."
        }
      },
      "description": "The result of a SourceGetMetadataOperation."
    },
    "SourceMetadata": {
      "type": "object",
      "description": "Metadata about a Source useful for automatically optimizing and tuning the pipeline, etc.",
      "properties": {
        "estimatedSizeBytes": {
          "description": "An estimate of the total size (in bytes) of the data that would be read from this source. This estimate is in terms of external storage size, before any decompression or other processing done by the reader.",
          "type": "string",
          "format": "int64"
        },
        "infinite": {
          "type": "boolean",
          "description": "Specifies that the size of this source is known to be infinite (this is a streaming source)."
        },
        "producesSortedKeys": {
          "type": "boolean",
          "description": "Whether this source is known to produce key/value pairs with the (encoded) keys in lexicographically sorted order."
        }
      }
    },
    "SourceOperationResponse": {
      "description": "The result of a SourceOperationRequest, specified in ReportWorkItemStatusRequest.source_operation when the work item is completed.",
      "type": "object",
      "properties": {
        "getMetadata": {
          "$ref": "#/$defs/SourceGetMetadataResponse",
          "description": "A response to a request to get metadata about a source."
        },
        "split": {
          "$ref": "#/$defs/SourceSplitResponse",
          "description": "A response to a request to split a source."
        }
      }
    },
    "SourceSplitResponse": {
      "type": "object",
      "description": "The response to a SourceSplitRequest.",
      "properties": {
        "shards": {
          "description": "DEPRECATED in favor of bundles.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/SourceSplitShard"
          },
          "deprecated": true
        },
        "bundles": {
          "description": "If outcome is SPLITTING_HAPPENED, then this is a list of bundles into which the source was split. Otherwise this field is ignored. This list can be empty, which means the source represents an empty input.",
          "items": {
            "$ref": "#/$defs/DerivedSource"
          },
          "type": "array"
        },
        "outcome": {
          "description": "Indicates whether splitting happened and produced a list of bundles. If this is USE_CURRENT_SOURCE_AS_IS, the current source should be processed \"as is\" without splitting. \"bundles\" is ignored in this case. If this is SPLITTING_HAPPENED, then \"bundles\" contains a list of bundles into which the source was split.",
          "enum": [
            "SOURCE_SPLIT_OUTCOME_UNKNOWN",
            "SOURCE_SPLIT_OUTCOME_USE_CURRENT",
            "SOURCE_SPLIT_OUTCOME_SPLITTING_HAPPENED"
          ],
          "type": "string"
        }
      }
    },
    "SourceSplitShard": {
      "properties": {
        "derivationMode": {
          "description": "DEPRECATED",
          "type": "string",
          "enum": [
            "SOURCE_DERIVATION_MODE_UNKNOWN",
            "SOURCE_DERIVATION_MODE_INDEPENDENT",
            "SOURCE_DERIVATION_MODE_CHILD_OF_CURRENT",
            "SOURCE_DERIVATION_MODE_SIBLING_OF_CURRENT"
          ]
        },
        "source": {
          "$ref": "#/$defs/Source",
          "description": "DEPRECATED"
        }
      },
      "type": "object",
      "description": "DEPRECATED in favor of DerivedSource."
    },
    "SplitInt64": {
      "description": "A representation of an int64, n, that is immune to precision loss when encoded in JSON.",
      "type": "object",
      "properties": {
        "lowBits": {
          "type": "integer",
          "format": "uint32",
          "description": "The low order bits: n & 0xffffffff."
        },
        "highBits": {
          "description": "The high order bits, including the sign: n >> 32.",
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "Status": {
      "type": "object",
      "properties": {
        "message": {
          "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",
          "type": "string"
        },
        "details": {
          "items": {
            "additionalProperties": {
              "description": "Properties of the object. Contains field @type with type URL."
            },
            "type": "object"
          },
          "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
          "type": "array"
        },
        "code": {
          "format": "int32",
          "type": "integer",
          "description": "The status code, which should be an enum value of google.rpc.Code."
        }
      },
      "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors)."
    },
    "StringList": {
      "properties": {
        "elements": {
          "description": "Elements of the list.",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "type": "object",
      "description": "A metric value representing a list of strings."
    },
    "WorkItemStatus": {
      "type": "object",
      "description": "Conveys a worker's progress through the work described by a WorkItem.",
      "properties": {
        "requestedLeaseDuration": {
          "description": "Amount of time the worker requests for its lease.",
          "format": "google-duration",
          "type": "string"
        },
        "sourceOperationResponse": {
          "$ref": "#/$defs/SourceOperationResponse",
          "description": "If the work item represented a SourceOperationRequest, and the work is completed, contains the result of the operation."
        },
        "progress": {
          "$ref": "#/$defs/ApproximateProgress",
          "description": "DEPRECATED in favor of reported_progress."
        },
        "reportIndex": {
          "description": "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.",
          "type": "string",
          "format": "int64"
        },
        "stopPosition": {
          "$ref": "#/$defs/Position",
          "description": "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."
        },
        "dynamicSourceSplit": {
          "$ref": "#/$defs/DynamicSourceSplit",
          "description": "See documentation of stop_position."
        },
        "counterUpdates": {
          "items": {
            "$ref": "#/$defs/CounterUpdate"
          },
          "description": "Worker output counters for this WorkItem.",
          "type": "array"
        },
        "totalThrottlerWaitTimeSeconds": {
          "description": "Total time the worker spent being throttled by external systems.",
          "type": "number",
          "format": "double"
        },
        "reportedProgress": {
          "$ref": "#/$defs/ApproximateReportedProgress",
          "description": "The worker's progress through this WorkItem."
        },
        "workItemId": {
          "description": "Identifies the WorkItem.",
          "type": "string"
        },
        "completed": {
          "description": "True if the WorkItem was completed (successfully or unsuccessfully).",
          "type": "boolean"
        },
        "metricUpdates": {
          "items": {
            "$ref": "#/$defs/MetricUpdate"
          },
          "description": "DEPRECATED in favor of counter_updates.",
          "type": "array",
          "deprecated": true
        },
        "errors": {
          "items": {
            "$ref": "#/$defs/Status"
          },
          "description": "Specifies errors which occurred during processing. If errors are provided, and completed = true, then the WorkItem is considered to have failed.",
          "type": "array"
        },
        "sourceFork": {
          "$ref": "#/$defs/SourceFork",
          "description": "DEPRECATED in favor of dynamic_source_split."
        }
      }
    }
  }
}