"""Generated message classes for dataflow version v1b3.

Manages Google Cloud Dataflow projects on Google Cloud Platform.
"""
# NOTE: This file is autogenerated and should not be edited by hand.

from apitools.base.protorpclite import messages as _messages
from apitools.base.py import encoding
from apitools.base.py import extra_types


package = 'dataflow'


class ApproximateProgress(_messages.Message):
  r"""Obsolete in favor of ApproximateReportedProgress and
  ApproximateSplitRequest.

  Fields:
    percentComplete: Obsolete.
    position: Obsolete.
    remainingTime: Obsolete.
  """

  percentComplete = _messages.FloatField(1, variant=_messages.Variant.FLOAT)
  position = _messages.MessageField('Position', 2)
  remainingTime = _messages.StringField(3)


class ApproximateReportedProgress(_messages.Message):
  r"""A progress measurement of a WorkItem by a worker.

  Fields:
    consumedParallelism: 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.
    fractionConsumed: Completion as fraction of the input consumed, from 0.0
      (beginning, nothing consumed), to 1.0 (end of the input, entire input
      consumed).
    position: A Position within the work to represent a progress.
    remainingParallelism: 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 = _messages.MessageField('ReportedParallelism', 1)
  fractionConsumed = _messages.FloatField(2)
  position = _messages.MessageField('Position', 3)
  remainingParallelism = _messages.MessageField('ReportedParallelism', 4)


class ApproximateSplitRequest(_messages.Message):
  r"""A suggestion by the service to the worker to dynamically split the
  WorkItem.

  Fields:
    fractionConsumed: A fraction at which to split the work item, from 0.0
      (beginning of the input) to 1.0 (end of the input).
    fractionOfRemainder: The fraction of the remainder of work to split the
      work item at, from 0.0 (split at the current position) to 1.0 (end of
      the input).
    position: A Position at which to split the work item.
  """

  fractionConsumed = _messages.FloatField(1)
  fractionOfRemainder = _messages.FloatField(2)
  position = _messages.MessageField('Position', 3)


class Artifact(_messages.Message):
  r"""Job information for templates.

  Fields:
    containerSpec: Container image path set for flex Template.
    jobGraphGcsPath: job_graph_gcs_path set for legacy Template.
    metadata: Metadata set for legacy Template.
  """

  containerSpec = _messages.MessageField('ContainerSpec', 1)
  jobGraphGcsPath = _messages.StringField(2)
  metadata = _messages.MessageField('TemplateMetadata', 3)


class AutoscalingEvent(_messages.Message):
  r"""A structured message reporting an autoscaling decision made by the
  Dataflow service.

  Enums:
    EventTypeValueValuesEnum: The type of autoscaling event to report.

  Fields:
    currentNumWorkers: The current number of workers the job has.
    description: A message describing why the system decided to adjust the
      current number of workers, why it failed, or why the system decided to
      not make any changes to the number of workers.
    eventType: The type of autoscaling event to report.
    targetNumWorkers: The target number of workers the worker pool wants to
      resize to use.
    time: The time this event was emitted to indicate a new target or current
      num_workers value.
    workerPool: A short and friendly name for the worker pool this event
      refers to.
  """

  class EventTypeValueValuesEnum(_messages.Enum):
    r"""The type of autoscaling event to report.

    Values:
      TYPE_UNKNOWN: Default type for the enum. Value should never be returned.
      TARGET_NUM_WORKERS_CHANGED: The TARGET_NUM_WORKERS_CHANGED type should
        be used when the target worker pool size has changed at the start of
        an actuation. An event should always be specified as
        TARGET_NUM_WORKERS_CHANGED if it reflects a change in the
        target_num_workers.
      CURRENT_NUM_WORKERS_CHANGED: The CURRENT_NUM_WORKERS_CHANGED type should
        be used when actual worker pool size has been changed, but the
        target_num_workers has not changed.
      ACTUATION_FAILURE: The ACTUATION_FAILURE type should be used when we
        want to report an error to the user indicating why the current number
        of workers in the pool could not be changed. Displayed in the current
        status and history widgets.
      NO_CHANGE: Used when we want to report to the user a reason why we are
        not currently adjusting the number of workers. Should specify both
        target_num_workers, current_num_workers and a decision_message.
    """
    TYPE_UNKNOWN = 0
    TARGET_NUM_WORKERS_CHANGED = 1
    CURRENT_NUM_WORKERS_CHANGED = 2
    ACTUATION_FAILURE = 3
    NO_CHANGE = 4

  currentNumWorkers = _messages.IntegerField(1)
  description = _messages.MessageField('StructuredMessage', 2)
  eventType = _messages.EnumField('EventTypeValueValuesEnum', 3)
  targetNumWorkers = _messages.IntegerField(4)
  time = _messages.StringField(5)
  workerPool = _messages.StringField(6)


class AutoscalingSchedule(_messages.Message):
  r"""A schedule for autoscaling.

  Fields:
    crontab: Optional. A crontab specification of when this schedule should
      trigger applying overrides. The overrides will be applied from the
      trigger time until the specified duration elapses.
    duration: Optional. The duration for which the parameter overrides for
      this schedule will be applied when triggered by the crontab.
    name: Optional. The name of the schedule.
    parameters: Optional. The parameters to use for autoscaling when this
      schedule is active.
    priority: Optional. Specifies the priority of the schedule. If two
      schedules overlap, the one with the higher priority will be used. The
      higher the value, the higher the priority of the schedule.
    timeZone: Optional. The time zone for the schedule. The value of this
      field must be a time zone name from the [tz
      database](http://en.wikipedia.org/wiki/Tz_database). The default value
      is UTC.
    updateTime: Output only. When the customer last updated the schedule.
  """

  crontab = _messages.StringField(1)
  duration = _messages.StringField(2)
  name = _messages.StringField(3)
  parameters = _messages.MessageField('Parameters', 4)
  priority = _messages.IntegerField(5)
  timeZone = _messages.StringField(6)
  updateTime = _messages.StringField(7)


class AutoscalingSettings(_messages.Message):
  r"""Settings for WorkerPool autoscaling.

  Enums:
    AlgorithmValueValuesEnum: The algorithm to use for autoscaling.

  Fields:
    algorithm: The algorithm to use for autoscaling.
    maxNumWorkers: The maximum number of workers to cap scaling at.
  """

  class AlgorithmValueValuesEnum(_messages.Enum):
    r"""The algorithm to use for autoscaling.

    Values:
      AUTOSCALING_ALGORITHM_UNKNOWN: The algorithm is unknown, or unspecified.
      AUTOSCALING_ALGORITHM_NONE: Disable autoscaling.
      AUTOSCALING_ALGORITHM_BASIC: Increase worker count over time to reduce
        job execution time.
    """
    AUTOSCALING_ALGORITHM_UNKNOWN = 0
    AUTOSCALING_ALGORITHM_NONE = 1
    AUTOSCALING_ALGORITHM_BASIC = 2

  algorithm = _messages.EnumField('AlgorithmValueValuesEnum', 1)
  maxNumWorkers = _messages.IntegerField(2, variant=_messages.Variant.INT32)


class Base2Exponent(_messages.Message):
  r"""Exponential buckets where the growth factor between buckets is
  `2**(2**-scale)`. e.g. for `scale=1` growth factor is
  `2**(2**(-1))=sqrt(2)`. `n` buckets will have the following boundaries. -
  0th: [0, gf) - i in [1, n-1]: [gf^(i), gf^(i+1))

  Fields:
    numberOfBuckets: Must be greater than 0.
    scale: Must be between -3 and 3. This forces the growth factor of the
      bucket boundaries to be between `2^(1/8)` and `256`.
  """

  numberOfBuckets = _messages.IntegerField(1, variant=_messages.Variant.INT32)
  scale = _messages.IntegerField(2, variant=_messages.Variant.INT32)


class BigQueryIODetails(_messages.Message):
  r"""Metadata for a BigQuery connector used by the job.

  Fields:
    dataset: Dataset accessed in the connection.
    projectId: Project accessed in the connection.
    query: Query used to access data in the connection.
    table: Table accessed in the connection.
  """

  dataset = _messages.StringField(1)
  projectId = _messages.StringField(2)
  query = _messages.StringField(3)
  table = _messages.StringField(4)


class BigTableIODetails(_messages.Message):
  r"""Metadata for a Cloud Bigtable connector used by the job.

  Fields:
    instanceId: InstanceId accessed in the connection.
    projectId: ProjectId accessed in the connection.
    tableId: TableId accessed in the connection.
  """

  instanceId = _messages.StringField(1)
  projectId = _messages.StringField(2)
  tableId = _messages.StringField(3)


class BoundedTrie(_messages.Message):
  r"""The message type used for encoding metrics of type bounded trie.

  Fields:
    bound: The maximum number of elements to store before truncation.
    root: A compact representation of all the elements in this trie.
    singleton: A more efficient representation for metrics consisting of a
      single value.
  """

  bound = _messages.IntegerField(1, variant=_messages.Variant.INT32)
  root = _messages.MessageField('BoundedTrieNode', 2)
  singleton = _messages.StringField(3, repeated=True)


class BoundedTrieNode(_messages.Message):
  r"""A single node in a BoundedTrie.

  Messages:
    ChildrenValue: Children of this node. Must be empty if truncated is true.

  Fields:
    children: Children of this node. Must be empty if truncated is true.
    truncated: Whether this node has been truncated. A truncated leaf
      represents possibly many children with the same prefix.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class ChildrenValue(_messages.Message):
    r"""Children of this node. Must be empty if truncated is true.

    Messages:
      AdditionalProperty: An additional property for a ChildrenValue object.

    Fields:
      additionalProperties: Additional properties of type ChildrenValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a ChildrenValue object.

      Fields:
        key: Name of the additional property.
        value: A BoundedTrieNode attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('BoundedTrieNode', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  children = _messages.MessageField('ChildrenValue', 1)
  truncated = _messages.BooleanField(2)


class BucketOptions(_messages.Message):
  r"""`BucketOptions` describes the bucket boundaries used in the histogram.

  Fields:
    exponential: Bucket boundaries grow exponentially.
    linear: Bucket boundaries grow linearly.
  """

  exponential = _messages.MessageField('Base2Exponent', 1)
  linear = _messages.MessageField('Linear', 2)


class CPUTime(_messages.Message):
  r"""Modeled after information exposed by /proc/stat.

  Fields:
    rate: Average CPU utilization rate (% non-idle cpu / second) since
      previous sample.
    timestamp: Timestamp of the measurement.
    totalMs: Total active CPU time across all cores (ie., non-idle) in
      milliseconds since start-up.
  """

  rate = _messages.FloatField(1)
  timestamp = _messages.StringField(2)
  totalMs = _messages.IntegerField(3, variant=_messages.Variant.UINT64)


class CommitTemplateVersionRequest(_messages.Message):
  r"""Commit will add a new TemplateVersion to an existing template.

  Fields:
    templateVersion: TemplateVersion object to create.
  """

  templateVersion = _messages.MessageField('TemplateVersion', 1)


class ComponentSource(_messages.Message):
  r"""Description of an interstitial value between transforms in an execution
  stage.

  Fields:
    name: Dataflow service generated name for this source.
    originalTransformOrCollection: User name for the original user transform
      or collection with which this source is most closely associated.
    userName: Human-readable name for this transform; may be user or system
      generated.
  """

  name = _messages.StringField(1)
  originalTransformOrCollection = _messages.StringField(2)
  userName = _messages.StringField(3)


class ComponentTransform(_messages.Message):
  r"""Description of a transform executed as part of an execution stage.

  Fields:
    name: Dataflow service generated name for this source.
    originalTransform: User name for the original user transform with which
      this transform is most closely associated.
    userName: Human-readable name for this transform; may be user or system
      generated.
  """

  name = _messages.StringField(1)
  originalTransform = _messages.StringField(2)
  userName = _messages.StringField(3)


class ComputationTopology(_messages.Message):
  r"""All configuration data for a particular Computation.

  Fields:
    computationId: The ID of the computation.
    inputs: The inputs to the computation.
    keyRanges: The key ranges processed by the computation.
    outputs: The outputs from the computation.
    stateFamilies: The state family values.
    systemStageName: The system stage name.
  """

  computationId = _messages.StringField(1)
  inputs = _messages.MessageField('StreamLocation', 2, repeated=True)
  keyRanges = _messages.MessageField('KeyRangeLocation', 3, repeated=True)
  outputs = _messages.MessageField('StreamLocation', 4, repeated=True)
  stateFamilies = _messages.MessageField('StateFamilyConfig', 5, repeated=True)
  systemStageName = _messages.StringField(6)


class ConcatPosition(_messages.Message):
  r"""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.

  Fields:
    index: Index of the inner source.
    position: Position within the inner source.
  """

  index = _messages.IntegerField(1, variant=_messages.Variant.INT32)
  position = _messages.MessageField('Position', 2)


class ContainerSpec(_messages.Message):
  r"""Container Spec.

  Fields:
    defaultEnvironment: Default runtime environment for the job.
    image: Name of the docker container image. E.g., gcr.io/project/some-image
    imageRepositoryCertPath: Cloud Storage path to self-signed certificate of
      private registry.
    imageRepositoryPasswordSecretId: Secret Manager secret id for password to
      authenticate to private registry.
    imageRepositoryUsernameSecretId: Secret Manager secret id for username to
      authenticate to private registry.
    metadata: Metadata describing a template including description and
      validation rules.
    sdkInfo: Required. SDK info of the Flex Template.
  """

  defaultEnvironment = _messages.MessageField('FlexTemplateRuntimeEnvironment', 1)
  image = _messages.StringField(2)
  imageRepositoryCertPath = _messages.StringField(3)
  imageRepositoryPasswordSecretId = _messages.StringField(4)
  imageRepositoryUsernameSecretId = _messages.StringField(5)
  metadata = _messages.MessageField('TemplateMetadata', 6)
  sdkInfo = _messages.MessageField('SDKInfo', 7)


class CounterMetadata(_messages.Message):
  r"""CounterMetadata includes all static non-name non-value counter
  attributes.

  Enums:
    KindValueValuesEnum: Counter aggregation kind.
    StandardUnitsValueValuesEnum: System defined Units, see above enum.

  Fields:
    description: Human-readable description of the counter semantics.
    kind: Counter aggregation kind.
    otherUnits: A string referring to the unit type.
    standardUnits: System defined Units, see above enum.
  """

  class KindValueValuesEnum(_messages.Enum):
    r"""Counter aggregation kind.

    Values:
      INVALID: Counter aggregation kind was not set.
      SUM: Aggregated value is the sum of all contributed values.
      MAX: Aggregated value is the max of all contributed values.
      MIN: Aggregated value is the min of all contributed values.
      MEAN: Aggregated value is the mean of all contributed values.
      OR: Aggregated value represents the logical 'or' of all contributed
        values.
      AND: Aggregated value represents the logical 'and' of all contributed
        values.
      SET: Aggregated value is a set of unique contributed values.
      DISTRIBUTION: Aggregated value captures statistics about a distribution.
      LATEST_VALUE: Aggregated value tracks the latest value of a variable.
    """
    INVALID = 0
    SUM = 1
    MAX = 2
    MIN = 3
    MEAN = 4
    OR = 5
    AND = 6
    SET = 7
    DISTRIBUTION = 8
    LATEST_VALUE = 9

  class StandardUnitsValueValuesEnum(_messages.Enum):
    r"""System defined Units, see above enum.

    Values:
      BYTES: Counter returns a value in bytes.
      BYTES_PER_SEC: Counter returns a value in bytes per second.
      MILLISECONDS: Counter returns a value in milliseconds.
      MICROSECONDS: Counter returns a value in microseconds.
      NANOSECONDS: Counter returns a value in nanoseconds.
      TIMESTAMP_MSEC: Counter returns a timestamp in milliseconds.
      TIMESTAMP_USEC: Counter returns a timestamp in microseconds.
      TIMESTAMP_NSEC: Counter returns a timestamp in nanoseconds.
    """
    BYTES = 0
    BYTES_PER_SEC = 1
    MILLISECONDS = 2
    MICROSECONDS = 3
    NANOSECONDS = 4
    TIMESTAMP_MSEC = 5
    TIMESTAMP_USEC = 6
    TIMESTAMP_NSEC = 7

  description = _messages.StringField(1)
  kind = _messages.EnumField('KindValueValuesEnum', 2)
  otherUnits = _messages.StringField(3)
  standardUnits = _messages.EnumField('StandardUnitsValueValuesEnum', 4)


class CounterStructuredName(_messages.Message):
  r"""Identifies a counter within a per-job namespace. Counters whose
  structured names are the same get merged into a single value for the job.

  Enums:
    OriginValueValuesEnum: One of the standard Origins defined above.
    PortionValueValuesEnum: Portion of this counter, either key or value.

  Fields:
    componentStepName: Name of the optimized step being executed by the
      workers.
    executionStepName: Name of the stage. An execution step contains multiple
      component steps.
    inputIndex: 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.
    name: Counter name. Not necessarily globally-unique, but unique within the
      context of the other fields. Required.
    origin: One of the standard Origins defined above.
    originNamespace: A string containing a more specific namespace of the
      counter's origin.
    originalRequestingStepName: 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.
    originalStepName: System generated name of the original step in the user's
      graph, before optimization.
    portion: Portion of this counter, either key or value.
    workerId: ID of a particular worker.
  """

  class OriginValueValuesEnum(_messages.Enum):
    r"""One of the standard Origins defined above.

    Values:
      SYSTEM: Counter was created by the Dataflow system.
      USER: Counter was created by the user.
    """
    SYSTEM = 0
    USER = 1

  class PortionValueValuesEnum(_messages.Enum):
    r"""Portion of this counter, either key or value.

    Values:
      ALL: Counter portion has not been set.
      KEY: Counter reports a key.
      VALUE: Counter reports a value.
    """
    ALL = 0
    KEY = 1
    VALUE = 2

  componentStepName = _messages.StringField(1)
  executionStepName = _messages.StringField(2)
  inputIndex = _messages.IntegerField(3, variant=_messages.Variant.INT32)
  name = _messages.StringField(4)
  origin = _messages.EnumField('OriginValueValuesEnum', 5)
  originNamespace = _messages.StringField(6)
  originalRequestingStepName = _messages.StringField(7)
  originalStepName = _messages.StringField(8)
  portion = _messages.EnumField('PortionValueValuesEnum', 9)
  workerId = _messages.StringField(10)


class CounterStructuredNameAndMetadata(_messages.Message):
  r"""A single message which encapsulates structured name and metadata for a
  given counter.

  Fields:
    metadata: Metadata associated with a counter
    name: Structured name of the counter.
  """

  metadata = _messages.MessageField('CounterMetadata', 1)
  name = _messages.MessageField('CounterStructuredName', 2)


class CounterUpdate(_messages.Message):
  r"""An update to a Counter sent from a worker. Next ID: 17

  Fields:
    boolean: Boolean value for And, Or.
    boundedTrie: Bounded trie data
    cumulative: 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.
    distribution: Distribution data
    floatingPoint: Floating point value for Sum, Max, Min.
    floatingPointList: List of floating point numbers, for Set.
    floatingPointMean: Floating point mean aggregation value for Mean.
    integer: Integer value for Sum, Max, Min.
    integerGauge: Gauge data
    integerList: List of integers, for Set.
    integerMean: Integer mean aggregation value for Mean.
    internal: Value for internally-defined counters used by the Dataflow
      service.
    nameAndKind: Counter name and aggregation type.
    shortId: The service-generated short identifier for this counter. The
      short_id -> (name, metadata) mapping is constant for the lifetime of a
      job.
    stringList: List of strings, for Set.
    structuredNameAndMetadata: Counter structured name and metadata.
  """

  boolean = _messages.BooleanField(1)
  boundedTrie = _messages.MessageField('BoundedTrie', 2)
  cumulative = _messages.BooleanField(3)
  distribution = _messages.MessageField('DistributionUpdate', 4)
  floatingPoint = _messages.FloatField(5)
  floatingPointList = _messages.MessageField('FloatingPointList', 6)
  floatingPointMean = _messages.MessageField('FloatingPointMean', 7)
  integer = _messages.MessageField('SplitInt64', 8)
  integerGauge = _messages.MessageField('IntegerGauge', 9)
  integerList = _messages.MessageField('IntegerList', 10)
  integerMean = _messages.MessageField('IntegerMean', 11)
  internal = _messages.MessageField('extra_types.JsonValue', 12)
  nameAndKind = _messages.MessageField('NameAndKind', 13)
  shortId = _messages.IntegerField(14)
  stringList = _messages.MessageField('StringList', 15)
  structuredNameAndMetadata = _messages.MessageField('CounterStructuredNameAndMetadata', 16)


class CreateJobFromTemplateRequest(_messages.Message):
  r"""A request to create a Cloud Dataflow job from a template.

  Messages:
    ParametersValue: The runtime parameters to pass to the job.

  Fields:
    environment: The runtime environment for the job.
    gcsPath: Required. A Cloud Storage path to the template from which to
      create the job. Must be a valid Cloud Storage URL, beginning with
      `gs://`.
    jobName: Required. The job name to use for the created job.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
      which to direct the request.
    parameters: The runtime parameters to pass to the job.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class ParametersValue(_messages.Message):
    r"""The runtime parameters to pass to the job.

    Messages:
      AdditionalProperty: An additional property for a ParametersValue object.

    Fields:
      additionalProperties: Additional properties of type ParametersValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a ParametersValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  environment = _messages.MessageField('RuntimeEnvironment', 1)
  gcsPath = _messages.StringField(2)
  jobName = _messages.StringField(3)
  location = _messages.StringField(4)
  parameters = _messages.MessageField('ParametersValue', 5)


class CreateTemplateVersionRequest(_messages.Message):
  r"""Creates a new Template with TemplateVersions.

  Fields:
    templateVersion: The TemplateVersion object to create.
  """

  templateVersion = _messages.MessageField('TemplateVersion', 1)


class CustomSourceLocation(_messages.Message):
  r"""Identifies the location of a custom souce.

  Fields:
    stateful: Whether this source is stateful.
  """

  stateful = _messages.BooleanField(1)


class DataDiskAssignment(_messages.Message):
  r"""Data disk assignment for a given VM instance.

  Fields:
    dataDisks: Mounted data disks. The order is important a data disk's
      0-based index in this list defines which persistent directory the disk
      is mounted to, for example the list of {
      "myproject-1014-104817-4c2-harness-0-disk-0" }, {
      "myproject-1014-104817-4c2-harness-0-disk-1" }.
    vmInstance: VM instance name the data disks mounted to, for example
      "myproject-1014-104817-4c2-harness-0".
  """

  dataDisks = _messages.StringField(1, repeated=True)
  vmInstance = _messages.StringField(2)


class DataSamplingConfig(_messages.Message):
  r"""Configuration options for sampling elements.

  Enums:
    BehaviorsValueListEntryValuesEnum:

  Fields:
    behaviors: List of given sampling behaviors to enable. For example,
      specifying behaviors = [ALWAYS_ON] samples in-flight elements but does
      not sample exceptions. Can be used to specify multiple behaviors like,
      behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and
      exception sampling. If DISABLED is in the list, then sampling will be
      disabled and ignore the other given behaviors. Ordering does not matter.
  """

  class BehaviorsValueListEntryValuesEnum(_messages.Enum):
    r"""BehaviorsValueListEntryValuesEnum enum type.

    Values:
      DATA_SAMPLING_BEHAVIOR_UNSPECIFIED: If given, has no effect on sampling
        behavior. Used as an unknown or unset sentinel value.
      DISABLED: When given, disables element sampling. Has same behavior as
        not setting the behavior.
      ALWAYS_ON: When given, enables sampling in-flight from all PCollections.
      EXCEPTIONS: When given, enables sampling input elements when a user-
        defined DoFn causes an exception.
    """
    DATA_SAMPLING_BEHAVIOR_UNSPECIFIED = 0
    DISABLED = 1
    ALWAYS_ON = 2
    EXCEPTIONS = 3

  behaviors = _messages.EnumField('BehaviorsValueListEntryValuesEnum', 1, repeated=True)


class DataSamplingReport(_messages.Message):
  r"""Contains per-worker telemetry about the data sampling feature.

  Fields:
    bytesWrittenDelta: Optional. Delta of bytes written to file from previous
      report.
    elementsSampledBytes: Optional. Delta of bytes sampled from previous
      report.
    elementsSampledCount: Optional. Delta of number of elements sampled from
      previous report.
    exceptionsSampledCount: Optional. Delta of number of samples taken from
      user code exceptions from previous report.
    pcollectionsSampledCount: Optional. Delta of number of PCollections
      sampled from previous report.
    persistenceErrorsCount: Optional. Delta of errors counts from persisting
      the samples from previous report.
    translationErrorsCount: Optional. Delta of errors counts from retrieving,
      or translating the samples from previous report.
  """

  bytesWrittenDelta = _messages.IntegerField(1)
  elementsSampledBytes = _messages.IntegerField(2)
  elementsSampledCount = _messages.IntegerField(3)
  exceptionsSampledCount = _messages.IntegerField(4)
  pcollectionsSampledCount = _messages.IntegerField(5)
  persistenceErrorsCount = _messages.IntegerField(6)
  translationErrorsCount = _messages.IntegerField(7)


class DataflowClassicTemplateConfig(_messages.Message):
  r"""Dataflow Job information of Classic Template Type. More info about
  dataflow classic templates can be found here
  https://cloud.google.com/dataflow/docs/guides/templates/creating-templates.

  Messages:
    ParametersValue: The runtime parameters to pass to the job.
    TransformNameMappingsValue: Use this to pass transform_name_mappings for
      streaming update jobs. Ex:{"oldTransformName":"newTransformName",...}'.

  Fields:
    environment: The runtime environment for the job.
    gcsPath: A Cloud Storage path to the template from which to create the
      job. Must be valid Cloud Storage URL, beginning with 'gs://'.
    parameters: The runtime parameters to pass to the job.
    transformNameMappings: Use this to pass transform_name_mappings for
      streaming update jobs. Ex:{"oldTransformName":"newTransformName",...}'.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class ParametersValue(_messages.Message):
    r"""The runtime parameters to pass to the job.

    Messages:
      AdditionalProperty: An additional property for a ParametersValue object.

    Fields:
      additionalProperties: Additional properties of type ParametersValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a ParametersValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  @encoding.MapUnrecognizedFields('additionalProperties')
  class TransformNameMappingsValue(_messages.Message):
    r"""Use this to pass transform_name_mappings for streaming update jobs.
    Ex:{"oldTransformName":"newTransformName",...}'.

    Messages:
      AdditionalProperty: An additional property for a
        TransformNameMappingsValue object.

    Fields:
      additionalProperties: Additional properties of type
        TransformNameMappingsValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a TransformNameMappingsValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  environment = _messages.MessageField('RuntimeEnvironment', 1)
  gcsPath = _messages.StringField(2)
  parameters = _messages.MessageField('ParametersValue', 3)
  transformNameMappings = _messages.MessageField('TransformNameMappingsValue', 4)


class DataflowFlexTemplateConfig(_messages.Message):
  r"""Dataflow Job information of Flex Template Type. More info about dataflow
  flex templates can be found here
  https://cloud.google.com/dataflow/docs/guides/templates/using-flex-
  templates.

  Messages:
    LaunchOptionsValue: Launch options for this flex template job. This is a
      common set of options across languages and templates. This should not be
      used to pass job parameters.
    ParametersValue: The parameters for FlexTemplate. Ex. {"num_workers":"5"}
    TransformNameMappingsValue: Use this to pass transform_name_mappings for
      streaming update jobs. Ex:{"oldTransformName":"newTransformName",...}'

  Fields:
    containerSpecGcsPath: Cloud Storage path to a file with json serialized
      ContainerSpec as content.
    environment: The runtime environment for the FlexTemplate job
    launchOptions: Launch options for this flex template job. This is a common
      set of options across languages and templates. This should not be used
      to pass job parameters.
    parameters: The parameters for FlexTemplate. Ex. {"num_workers":"5"}
    transformNameMappings: Use this to pass transform_name_mappings for
      streaming update jobs. Ex:{"oldTransformName":"newTransformName",...}'
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class LaunchOptionsValue(_messages.Message):
    r"""Launch options for this flex template job. This is a common set of
    options across languages and templates. This should not be used to pass
    job parameters.

    Messages:
      AdditionalProperty: An additional property for a LaunchOptionsValue
        object.

    Fields:
      additionalProperties: Additional properties of type LaunchOptionsValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a LaunchOptionsValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  @encoding.MapUnrecognizedFields('additionalProperties')
  class ParametersValue(_messages.Message):
    r"""The parameters for FlexTemplate. Ex. {"num_workers":"5"}

    Messages:
      AdditionalProperty: An additional property for a ParametersValue object.

    Fields:
      additionalProperties: Additional properties of type ParametersValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a ParametersValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  @encoding.MapUnrecognizedFields('additionalProperties')
  class TransformNameMappingsValue(_messages.Message):
    r"""Use this to pass transform_name_mappings for streaming update jobs.
    Ex:{"oldTransformName":"newTransformName",...}'

    Messages:
      AdditionalProperty: An additional property for a
        TransformNameMappingsValue object.

    Fields:
      additionalProperties: Additional properties of type
        TransformNameMappingsValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a TransformNameMappingsValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  containerSpecGcsPath = _messages.StringField(1)
  environment = _messages.MessageField('FlexTemplateRuntimeEnvironment', 2)
  launchOptions = _messages.MessageField('LaunchOptionsValue', 3)
  parameters = _messages.MessageField('ParametersValue', 4)
  transformNameMappings = _messages.MessageField('TransformNameMappingsValue', 5)


class DataflowGaugeValue(_messages.Message):
  r"""The gauge value of a metric.

  Fields:
    measuredTime: The timestamp when the gauge was recorded.
    value: The value of the gauge.
  """

  measuredTime = _messages.StringField(1)
  value = _messages.IntegerField(2)


class DataflowHistogramValue(_messages.Message):
  r"""Summary statistics for a population of values. HistogramValue contains a
  sequence of buckets and gives a count of values that fall into each bucket.
  Bucket boundares are defined by a formula and bucket widths are either fixed
  or exponentially increasing.

  Fields:
    bucketCounts: Optional. The number of values in each bucket of the
      histogram, as described in `bucket_options`. `bucket_counts` should
      contain N values, where N is the number of buckets specified in
      `bucket_options`. If `bucket_counts` has fewer than N values, the
      remaining values are assumed to be 0.
    bucketOptions: Describes the bucket boundaries used in the histogram.
    count: Number of values recorded in this histogram.
    outlierStats: Statistics on the values recorded in the histogram that fall
      out of the bucket boundaries.
  """

  bucketCounts = _messages.IntegerField(1, repeated=True)
  bucketOptions = _messages.MessageField('BucketOptions', 2)
  count = _messages.IntegerField(3)
  outlierStats = _messages.MessageField('OutlierStats', 4)


class DataflowProjectsCatalogTemplatesCommitRequest(_messages.Message):
  r"""A DataflowProjectsCatalogTemplatesCommitRequest object.

  Fields:
    commitTemplateVersionRequest: A CommitTemplateVersionRequest resource to
      be passed as the request body.
    name: The location of the template, name includes project_id and
      display_name. Commit using project_id(pid1) and display_name(tid1).
      Format: projects/{pid1}/catalogTemplates/{tid1}
  """

  commitTemplateVersionRequest = _messages.MessageField('CommitTemplateVersionRequest', 1)
  name = _messages.StringField(2, required=True)


class DataflowProjectsCatalogTemplatesDeleteRequest(_messages.Message):
  r"""A DataflowProjectsCatalogTemplatesDeleteRequest object.

  Fields:
    name: name includes project_id and display_name. Delete by
      project_id(pid1) and display_name(tid1). Format:
      projects/{pid1}/catalogTemplates/{tid1}
  """

  name = _messages.StringField(1, required=True)


class DataflowProjectsCatalogTemplatesGetRequest(_messages.Message):
  r"""A DataflowProjectsCatalogTemplatesGetRequest object.

  Fields:
    name: Resource name includes project_id and display_name. version_id is
      optional. Get the latest TemplateVersion if version_id not set. Get by
      project_id(pid1) and display_name(tid1): Format:
      projects/{pid1}/catalogTemplates/{tid1} Get by project_id(pid1),
      display_name(tid1), and version_id(vid1): Format:
      projects/{pid1}/catalogTemplates/{tid1@vid}
  """

  name = _messages.StringField(1, required=True)


class DataflowProjectsCatalogTemplatesLabelRequest(_messages.Message):
  r"""A DataflowProjectsCatalogTemplatesLabelRequest object.

  Fields:
    modifyTemplateVersionLabelRequest: A ModifyTemplateVersionLabelRequest
      resource to be passed as the request body.
    name: Resource name includes project_id, display_name, and version_id.
      Updates by project_id(pid1), display_name(tid1), and version_id(vid1):
      Format: projects/{pid1}/catalogTemplates/{tid1@vid}
  """

  modifyTemplateVersionLabelRequest = _messages.MessageField('ModifyTemplateVersionLabelRequest', 1)
  name = _messages.StringField(2, required=True)


class DataflowProjectsCatalogTemplatesTagRequest(_messages.Message):
  r"""A DataflowProjectsCatalogTemplatesTagRequest object.

  Fields:
    modifyTemplateVersionTagRequest: A ModifyTemplateVersionTagRequest
      resource to be passed as the request body.
    name: Resource name includes project_id, display_name, and version_id.
      Updates by project_id(pid1), display_name(tid1), and version_id(vid1):
      Format: projects/{pid1}/catalogTemplates/{tid1@vid}
  """

  modifyTemplateVersionTagRequest = _messages.MessageField('ModifyTemplateVersionTagRequest', 1)
  name = _messages.StringField(2, required=True)


class DataflowProjectsCatalogTemplatesTemplateVersionsCreateRequest(_messages.Message):
  r"""A DataflowProjectsCatalogTemplatesTemplateVersionsCreateRequest object.

  Fields:
    createTemplateVersionRequest: A CreateTemplateVersionRequest resource to
      be passed as the request body.
    parent: The parent project and template that the TemplateVersion will be
      created under. Create using project_id(pid1) and display_name(tid1).
      Format: projects/{pid1}/catalogTemplates/{tid1}
  """

  createTemplateVersionRequest = _messages.MessageField('CreateTemplateVersionRequest', 1)
  parent = _messages.StringField(2, required=True)


class DataflowProjectsDeleteSnapshotsRequest(_messages.Message):
  r"""A DataflowProjectsDeleteSnapshotsRequest object.

  Fields:
    location: The location that contains this snapshot.
    projectId: The ID of the Cloud Platform project that the snapshot belongs
      to.
    snapshotId: The ID of the snapshot.
  """

  location = _messages.StringField(1)
  projectId = _messages.StringField(2, required=True)
  snapshotId = _messages.StringField(3)


class DataflowProjectsJobsAggregatedRequest(_messages.Message):
  r"""A DataflowProjectsJobsAggregatedRequest object.

  Enums:
    FilterValueValuesEnum: The kind of filter to use.
    ViewValueValuesEnum: Deprecated. ListJobs always returns summaries now.
      Use GetJob for other JobViews.

  Fields:
    filter: The kind of filter to use.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains this job.
    name: Optional. The job name.
    pageSize: If there are many jobs, limit response to at most this many. The
      actual number of jobs returned will be the lesser of max_responses and
      an unspecified server-defined limit.
    pageToken: Set this to the 'next_page_token' field of a previous response
      to request additional results in a long list.
    projectId: The project which owns the jobs.
    view: Deprecated. ListJobs always returns summaries now. Use GetJob for
      other JobViews.
  """

  class FilterValueValuesEnum(_messages.Enum):
    r"""The kind of filter to use.

    Values:
      UNKNOWN: The filter isn't specified, or is unknown. This returns all
        jobs ordered on descending `JobUuid`.
      ALL: Returns all running jobs first ordered on creation timestamp, then
        returns all terminated jobs ordered on the termination timestamp.
      TERMINATED: Filters the jobs that have a terminated state, ordered on
        the termination timestamp. Example terminated states:
        `JOB_STATE_STOPPED`, `JOB_STATE_UPDATED`, `JOB_STATE_DRAINED`, etc.
      ACTIVE: Filters the jobs that are running ordered on the creation
        timestamp.
    """
    UNKNOWN = 0
    ALL = 1
    TERMINATED = 2
    ACTIVE = 3

  class ViewValueValuesEnum(_messages.Enum):
    r"""Deprecated. ListJobs always returns summaries now. Use GetJob for
    other JobViews.

    Values:
      JOB_VIEW_UNKNOWN: The job view to return isn't specified, or is unknown.
        Responses will contain at least the `JOB_VIEW_SUMMARY` information,
        and may contain additional information.
      JOB_VIEW_SUMMARY: Request summary information only: Project ID, Job ID,
        job name, job type, job status, start/end time, and Cloud SDK version
        details.
      JOB_VIEW_ALL: Request all information available for this job. When the
        job is in `JOB_STATE_PENDING`, the job has been created but is not yet
        running, and not all job information is available. For complete job
        information, wait until the job in is `JOB_STATE_RUNNING`. For more
        information, see [JobState](https://cloud.google.com/dataflow/docs/ref
        erence/rest/v1b3/projects.jobs#jobstate).
      JOB_VIEW_DESCRIPTION: Request summary info and limited job description
        data for steps, labels and environment.
    """
    JOB_VIEW_UNKNOWN = 0
    JOB_VIEW_SUMMARY = 1
    JOB_VIEW_ALL = 2
    JOB_VIEW_DESCRIPTION = 3

  filter = _messages.EnumField('FilterValueValuesEnum', 1)
  location = _messages.StringField(2)
  name = _messages.StringField(3)
  pageSize = _messages.IntegerField(4, variant=_messages.Variant.INT32)
  pageToken = _messages.StringField(5)
  projectId = _messages.StringField(6, required=True)
  view = _messages.EnumField('ViewValueValuesEnum', 7)


class DataflowProjectsJobsCreateRequest(_messages.Message):
  r"""A DataflowProjectsJobsCreateRequest object.

  Enums:
    ViewValueValuesEnum: The level of information requested in response.

  Fields:
    job: A Job resource to be passed as the request body.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains this job.
    projectId: The ID of the Cloud Platform project that the job belongs to.
    replaceJobId: Deprecated. This field is now in the Job message.
    view: The level of information requested in response.
  """

  class ViewValueValuesEnum(_messages.Enum):
    r"""The level of information requested in response.

    Values:
      JOB_VIEW_UNKNOWN: The job view to return isn't specified, or is unknown.
        Responses will contain at least the `JOB_VIEW_SUMMARY` information,
        and may contain additional information.
      JOB_VIEW_SUMMARY: Request summary information only: Project ID, Job ID,
        job name, job type, job status, start/end time, and Cloud SDK version
        details.
      JOB_VIEW_ALL: Request all information available for this job. When the
        job is in `JOB_STATE_PENDING`, the job has been created but is not yet
        running, and not all job information is available. For complete job
        information, wait until the job in is `JOB_STATE_RUNNING`. For more
        information, see [JobState](https://cloud.google.com/dataflow/docs/ref
        erence/rest/v1b3/projects.jobs#jobstate).
      JOB_VIEW_DESCRIPTION: Request summary info and limited job description
        data for steps, labels and environment.
    """
    JOB_VIEW_UNKNOWN = 0
    JOB_VIEW_SUMMARY = 1
    JOB_VIEW_ALL = 2
    JOB_VIEW_DESCRIPTION = 3

  job = _messages.MessageField('Job', 1)
  location = _messages.StringField(2)
  projectId = _messages.StringField(3, required=True)
  replaceJobId = _messages.StringField(4)
  view = _messages.EnumField('ViewValueValuesEnum', 5)


class DataflowProjectsJobsDebugGetConfigRequest(_messages.Message):
  r"""A DataflowProjectsJobsDebugGetConfigRequest object.

  Fields:
    getDebugConfigRequest: A GetDebugConfigRequest resource to be passed as
      the request body.
    jobId: The job id.
    projectId: The project id.
  """

  getDebugConfigRequest = _messages.MessageField('GetDebugConfigRequest', 1)
  jobId = _messages.StringField(2, required=True)
  projectId = _messages.StringField(3, required=True)


class DataflowProjectsJobsDebugSendCaptureRequest(_messages.Message):
  r"""A DataflowProjectsJobsDebugSendCaptureRequest object.

  Fields:
    jobId: The job id.
    projectId: The project id.
    sendDebugCaptureRequest: A SendDebugCaptureRequest resource to be passed
      as the request body.
  """

  jobId = _messages.StringField(1, required=True)
  projectId = _messages.StringField(2, required=True)
  sendDebugCaptureRequest = _messages.MessageField('SendDebugCaptureRequest', 3)


class DataflowProjectsJobsGetMetricsRequest(_messages.Message):
  r"""A DataflowProjectsJobsGetMetricsRequest object.

  Fields:
    jobId: The job to get metrics for.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains the job specified by job_id.
    projectId: A project id.
    startTime: Return only metric data that has changed since this time.
      Default is to return all information about all metrics for the job.
  """

  jobId = _messages.StringField(1, required=True)
  location = _messages.StringField(2)
  projectId = _messages.StringField(3, required=True)
  startTime = _messages.StringField(4)


class DataflowProjectsJobsGetRequest(_messages.Message):
  r"""A DataflowProjectsJobsGetRequest object.

  Enums:
    ViewValueValuesEnum: The level of information requested in response.

  Fields:
    jobId: The job ID.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains this job.
    projectId: The ID of the Cloud Platform project that the job belongs to.
    view: The level of information requested in response.
  """

  class ViewValueValuesEnum(_messages.Enum):
    r"""The level of information requested in response.

    Values:
      JOB_VIEW_UNKNOWN: The job view to return isn't specified, or is unknown.
        Responses will contain at least the `JOB_VIEW_SUMMARY` information,
        and may contain additional information.
      JOB_VIEW_SUMMARY: Request summary information only: Project ID, Job ID,
        job name, job type, job status, start/end time, and Cloud SDK version
        details.
      JOB_VIEW_ALL: Request all information available for this job. When the
        job is in `JOB_STATE_PENDING`, the job has been created but is not yet
        running, and not all job information is available. For complete job
        information, wait until the job in is `JOB_STATE_RUNNING`. For more
        information, see [JobState](https://cloud.google.com/dataflow/docs/ref
        erence/rest/v1b3/projects.jobs#jobstate).
      JOB_VIEW_DESCRIPTION: Request summary info and limited job description
        data for steps, labels and environment.
    """
    JOB_VIEW_UNKNOWN = 0
    JOB_VIEW_SUMMARY = 1
    JOB_VIEW_ALL = 2
    JOB_VIEW_DESCRIPTION = 3

  jobId = _messages.StringField(1, required=True)
  location = _messages.StringField(2)
  projectId = _messages.StringField(3, required=True)
  view = _messages.EnumField('ViewValueValuesEnum', 4)


class DataflowProjectsJobsListRequest(_messages.Message):
  r"""A DataflowProjectsJobsListRequest object.

  Enums:
    FilterValueValuesEnum: The kind of filter to use.
    ViewValueValuesEnum: Deprecated. ListJobs always returns summaries now.
      Use GetJob for other JobViews.

  Fields:
    filter: The kind of filter to use.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains this job.
    name: Optional. The job name.
    pageSize: If there are many jobs, limit response to at most this many. The
      actual number of jobs returned will be the lesser of max_responses and
      an unspecified server-defined limit.
    pageToken: Set this to the 'next_page_token' field of a previous response
      to request additional results in a long list.
    projectId: The project which owns the jobs.
    view: Deprecated. ListJobs always returns summaries now. Use GetJob for
      other JobViews.
  """

  class FilterValueValuesEnum(_messages.Enum):
    r"""The kind of filter to use.

    Values:
      UNKNOWN: The filter isn't specified, or is unknown. This returns all
        jobs ordered on descending `JobUuid`.
      ALL: Returns all running jobs first ordered on creation timestamp, then
        returns all terminated jobs ordered on the termination timestamp.
      TERMINATED: Filters the jobs that have a terminated state, ordered on
        the termination timestamp. Example terminated states:
        `JOB_STATE_STOPPED`, `JOB_STATE_UPDATED`, `JOB_STATE_DRAINED`, etc.
      ACTIVE: Filters the jobs that are running ordered on the creation
        timestamp.
    """
    UNKNOWN = 0
    ALL = 1
    TERMINATED = 2
    ACTIVE = 3

  class ViewValueValuesEnum(_messages.Enum):
    r"""Deprecated. ListJobs always returns summaries now. Use GetJob for
    other JobViews.

    Values:
      JOB_VIEW_UNKNOWN: The job view to return isn't specified, or is unknown.
        Responses will contain at least the `JOB_VIEW_SUMMARY` information,
        and may contain additional information.
      JOB_VIEW_SUMMARY: Request summary information only: Project ID, Job ID,
        job name, job type, job status, start/end time, and Cloud SDK version
        details.
      JOB_VIEW_ALL: Request all information available for this job. When the
        job is in `JOB_STATE_PENDING`, the job has been created but is not yet
        running, and not all job information is available. For complete job
        information, wait until the job in is `JOB_STATE_RUNNING`. For more
        information, see [JobState](https://cloud.google.com/dataflow/docs/ref
        erence/rest/v1b3/projects.jobs#jobstate).
      JOB_VIEW_DESCRIPTION: Request summary info and limited job description
        data for steps, labels and environment.
    """
    JOB_VIEW_UNKNOWN = 0
    JOB_VIEW_SUMMARY = 1
    JOB_VIEW_ALL = 2
    JOB_VIEW_DESCRIPTION = 3

  filter = _messages.EnumField('FilterValueValuesEnum', 1)
  location = _messages.StringField(2)
  name = _messages.StringField(3)
  pageSize = _messages.IntegerField(4, variant=_messages.Variant.INT32)
  pageToken = _messages.StringField(5)
  projectId = _messages.StringField(6, required=True)
  view = _messages.EnumField('ViewValueValuesEnum', 7)


class DataflowProjectsJobsMessagesListRequest(_messages.Message):
  r"""A DataflowProjectsJobsMessagesListRequest object.

  Enums:
    MinimumImportanceValueValuesEnum: Filter to only get messages with
      importance >= level

  Fields:
    endTime: Return only messages with timestamps < end_time. The default is
      now (i.e. return up to the latest messages available).
    jobId: The job to get messages about.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains the job specified by job_id.
    minimumImportance: Filter to only get messages with importance >= level
    pageSize: If specified, determines the maximum number of messages to
      return. If unspecified, the service may choose an appropriate default,
      or may return an arbitrarily large number of results.
    pageToken: If supplied, this should be the value of next_page_token
      returned by an earlier call. This will cause the next page of results to
      be returned.
    projectId: A project id.
    startTime: If specified, return only messages with timestamps >=
      start_time. The default is the job creation time (i.e. beginning of
      messages).
  """

  class MinimumImportanceValueValuesEnum(_messages.Enum):
    r"""Filter to only get messages with importance >= level

    Values:
      JOB_MESSAGE_IMPORTANCE_UNKNOWN: The message importance isn't specified,
        or is unknown.
      JOB_MESSAGE_DEBUG: The message is at the 'debug' level: typically only
        useful for software engineers working on the code the job is running.
        Typically, Dataflow pipeline runners do not display log messages at
        this level by default.
      JOB_MESSAGE_DETAILED: The message is at the 'detailed' level: somewhat
        verbose, but potentially useful to users. Typically, Dataflow pipeline
        runners do not display log messages at this level by default. These
        messages are displayed by default in the Dataflow monitoring UI.
      JOB_MESSAGE_BASIC: The message is at the 'basic' level: useful for
        keeping track of the execution of a Dataflow pipeline. Typically,
        Dataflow pipeline runners display log messages at this level by
        default, and these messages are displayed by default in the Dataflow
        monitoring UI.
      JOB_MESSAGE_WARNING: The message is at the 'warning' level: indicating a
        condition pertaining to a job which may require human intervention.
        Typically, Dataflow pipeline runners display log messages at this
        level by default, and these messages are displayed by default in the
        Dataflow monitoring UI.
      JOB_MESSAGE_ERROR: The message is at the 'error' level: indicating a
        condition preventing a job from succeeding. Typically, Dataflow
        pipeline runners display log messages at this level by default, and
        these messages are displayed by default in the Dataflow monitoring UI.
    """
    JOB_MESSAGE_IMPORTANCE_UNKNOWN = 0
    JOB_MESSAGE_DEBUG = 1
    JOB_MESSAGE_DETAILED = 2
    JOB_MESSAGE_BASIC = 3
    JOB_MESSAGE_WARNING = 4
    JOB_MESSAGE_ERROR = 5

  endTime = _messages.StringField(1)
  jobId = _messages.StringField(2, required=True)
  location = _messages.StringField(3)
  minimumImportance = _messages.EnumField('MinimumImportanceValueValuesEnum', 4)
  pageSize = _messages.IntegerField(5, variant=_messages.Variant.INT32)
  pageToken = _messages.StringField(6)
  projectId = _messages.StringField(7, required=True)
  startTime = _messages.StringField(8)


class DataflowProjectsJobsSnapshotRequest(_messages.Message):
  r"""A DataflowProjectsJobsSnapshotRequest object.

  Fields:
    jobId: The job to be snapshotted.
    projectId: The project which owns the job to be snapshotted.
    snapshotJobRequest: A SnapshotJobRequest resource to be passed as the
      request body.
  """

  jobId = _messages.StringField(1, required=True)
  projectId = _messages.StringField(2, required=True)
  snapshotJobRequest = _messages.MessageField('SnapshotJobRequest', 3)


class DataflowProjectsJobsUpdateRequest(_messages.Message):
  r"""A DataflowProjectsJobsUpdateRequest object.

  Fields:
    job: A Job resource to be passed as the request body.
    jobId: The job ID.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains this job.
    projectId: The ID of the Cloud Platform project that the job belongs to.
    updateMask: The list of fields to update relative to Job. If empty, only
      RequestedJobState will be considered for update. If the FieldMask is not
      empty and RequestedJobState is none/empty, The fields specified in the
      update mask will be the only ones considered for update. If both
      RequestedJobState and update_mask are specified, an error will be
      returned as we cannot update both state and mask.
  """

  job = _messages.MessageField('Job', 1)
  jobId = _messages.StringField(2, required=True)
  location = _messages.StringField(3)
  projectId = _messages.StringField(4, required=True)
  updateMask = _messages.StringField(5)


class DataflowProjectsJobsWorkItemsLeaseRequest(_messages.Message):
  r"""A DataflowProjectsJobsWorkItemsLeaseRequest object.

  Fields:
    jobId: Identifies the workflow job this worker belongs to.
    leaseWorkItemRequest: A LeaseWorkItemRequest resource to be passed as the
      request body.
    projectId: Identifies the project this worker belongs to.
  """

  jobId = _messages.StringField(1, required=True)
  leaseWorkItemRequest = _messages.MessageField('LeaseWorkItemRequest', 2)
  projectId = _messages.StringField(3, required=True)


class DataflowProjectsJobsWorkItemsReportStatusRequest(_messages.Message):
  r"""A DataflowProjectsJobsWorkItemsReportStatusRequest object.

  Fields:
    jobId: The job which the WorkItem is part of.
    projectId: The project which owns the WorkItem's job.
    reportWorkItemStatusRequest: A ReportWorkItemStatusRequest resource to be
      passed as the request body.
  """

  jobId = _messages.StringField(1, required=True)
  projectId = _messages.StringField(2, required=True)
  reportWorkItemStatusRequest = _messages.MessageField('ReportWorkItemStatusRequest', 3)


class DataflowProjectsLocationsDeploymentsCreateRequest(_messages.Message):
  r"""A DataflowProjectsLocationsDeploymentsCreateRequest object.

  Fields:
    deployment: A Deployment resource to be passed as the request body.
    deploymentId: The ID to use for the Cloud Dataflow job deployment, which
      will become the final component of the deployment's resource name. This
      value should be 4-63 characters, and valid characters are /a-z-/.
    parent: Required. The parent resource where this deployment will be
      created. Format: projects/{project}/locations/{location}
    requestId: A unique identifier for this request. Restricted to 36 ASCII
      characters. A random UUID is recommended. This request is only
      idempotent if a `request_id` is provided.
    validateOnly: Validate an intended change to see what the result will be
      before actually making the change.
  """

  deployment = _messages.MessageField('Deployment', 1)
  deploymentId = _messages.StringField(2)
  parent = _messages.StringField(3, required=True)
  requestId = _messages.StringField(4)
  validateOnly = _messages.BooleanField(5)


class DataflowProjectsLocationsDeploymentsDeleteRequest(_messages.Message):
  r"""A DataflowProjectsLocationsDeploymentsDeleteRequest object.

  Fields:
    allowMissing: If set to true, and the `Deployment` is not found, the
      request will succeed but no action will be taken on the server.
    etag: The current etag of the Deployment. Checksum computed by the server.
      Ensure that the client has an up-to-date value before proceeding. If an
      etag is provided and does not match the current etag of the
      `Deployment`, request will be blocked and an ABORTED error will be
      returned.
    name: Required. The name of the `Deployment`. Format:
      projects/{project}/locations/{location}/deployments/{deployment_id}
    validateOnly: Validate an intended change to see what the result will be
      before actually making the change.
  """

  allowMissing = _messages.BooleanField(1)
  etag = _messages.StringField(2)
  name = _messages.StringField(3, required=True)
  validateOnly = _messages.BooleanField(4)


class DataflowProjectsLocationsDeploymentsGetRequest(_messages.Message):
  r"""A DataflowProjectsLocationsDeploymentsGetRequest object.

  Enums:
    ViewValueValuesEnum:

  Fields:
    name: Required. The name of the `Deployment`. Format:
      projects/{project}/locations/{location}/deployments/{deployment_id}
    view: A ViewValueValuesEnum attribute.
  """

  class ViewValueValuesEnum(_messages.Enum):
    r"""ViewValueValuesEnum enum type.

    Values:
      DEPLOYMENT_VIEW_UNSPECIFIED: The deployment view to return isn't
        specified, or is unknown. Responses will contain at least the
        `DEPLOYMENT_VIEW_ALL` information, and may contain additional
        information.
      DEPLOYMENT_VIEW_ALL: Request all information available for this
        deployment.
      DEPLOYMENT_VIEW_MUTABLE: Request all mutable information available for
        this deployment.
    """
    DEPLOYMENT_VIEW_UNSPECIFIED = 0
    DEPLOYMENT_VIEW_ALL = 1
    DEPLOYMENT_VIEW_MUTABLE = 2

  name = _messages.StringField(1, required=True)
  view = _messages.EnumField('ViewValueValuesEnum', 2)


class DataflowProjectsLocationsDeploymentsListRequest(_messages.Message):
  r"""A DataflowProjectsLocationsDeploymentsListRequest object.

  Fields:
    pageSize: The maximum number of deployments to return. The service may
      return fewer than this value. If unspecified, at most 50 deployments
      will be returned. The maximum value is 1000; values above 1000 will be
      coerced to 1000.
    pageToken: A page token, received from a previous `ListDeployments` call.
      Provide this to retrieve the subsequent page. When paginating, all other
      parameters provided to `ListDeployments` must match the call that
      provided the page token.
    parent: Required. The `location`, which owns this collection of
      deployments. Format: projects/{project}/locations/{location}
  """

  pageSize = _messages.IntegerField(1, variant=_messages.Variant.INT32)
  pageToken = _messages.StringField(2)
  parent = _messages.StringField(3, required=True)


class DataflowProjectsLocationsDeploymentsListRevisionsRequest(_messages.Message):
  r"""A DataflowProjectsLocationsDeploymentsListRevisionsRequest object.

  Fields:
    name: Required. The name of the `Deployment`. Format:
      projects/{project}/locations/{location}/deployments/{deployment_id}
    pageSize: The maximum number of deployments to return. The service may
      return fewer than this value. If unspecified, at most 50 deployments
      will be returned. The maximum value is 1000; values above 1000 will be
      coerced to 1000.
    pageToken: A page token, received from a previous `ListDeployments` call.
      Provide this to retrieve the subsequent page. When paginating, all other
      parameters provided to `ListDeployments` must match the call that
      provided the page token.
  """

  name = _messages.StringField(1, required=True)
  pageSize = _messages.IntegerField(2, variant=_messages.Variant.INT32)
  pageToken = _messages.StringField(3)


class DataflowProjectsLocationsDeploymentsPatchRequest(_messages.Message):
  r"""A DataflowProjectsLocationsDeploymentsPatchRequest object.

  Fields:
    allowMissing: If set to true, and the `Deployment` is not found, a new
      `Deployment` will be created.
    deployment: A Deployment resource to be passed as the request body.
    name: Required. The name of the `Deployment`. Format:
      projects/{project}/locations/{location}/deployments/{deployment_id}
    requestId: A unique identifier for this request. Restricted to 36 ASCII
      characters. A random UUID is recommended. This request is only
      idempotent if a `request_id` is provided.
    updateMask: The list of fields to update.
    validateOnly: Validate an intended change to see what the result will be
      before actually making the change.
  """

  allowMissing = _messages.BooleanField(1)
  deployment = _messages.MessageField('Deployment', 2)
  name = _messages.StringField(3, required=True)
  requestId = _messages.StringField(4)
  updateMask = _messages.StringField(5)
  validateOnly = _messages.BooleanField(6)


class DataflowProjectsLocationsDeploymentsRollbackRequest(_messages.Message):
  r"""A DataflowProjectsLocationsDeploymentsRollbackRequest object.

  Fields:
    name: Required. The name of the `Deployment`. Format:
      projects/{project}/locations/{location}/deployments/{deployment_id}
    rollbackDeploymentRequest: A RollbackDeploymentRequest resource to be
      passed as the request body.
  """

  name = _messages.StringField(1, required=True)
  rollbackDeploymentRequest = _messages.MessageField('RollbackDeploymentRequest', 2)


class DataflowProjectsLocationsFlexTemplatesLaunchRequest(_messages.Message):
  r"""A DataflowProjectsLocationsFlexTemplatesLaunchRequest object.

  Fields:
    launchFlexTemplateRequest: A LaunchFlexTemplateRequest resource to be
      passed as the request body.
    location: Required. The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
      which to direct the request. E.g., us-central1, us-west1.
    projectId: Required. The ID of the Cloud Platform project that the job
      belongs to.
  """

  launchFlexTemplateRequest = _messages.MessageField('LaunchFlexTemplateRequest', 1)
  location = _messages.StringField(2, required=True)
  projectId = _messages.StringField(3, required=True)


class DataflowProjectsLocationsJobsCreateRequest(_messages.Message):
  r"""A DataflowProjectsLocationsJobsCreateRequest object.

  Enums:
    ViewValueValuesEnum: The level of information requested in response.

  Fields:
    job: A Job resource to be passed as the request body.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains this job.
    projectId: The ID of the Cloud Platform project that the job belongs to.
    replaceJobId: Deprecated. This field is now in the Job message.
    view: The level of information requested in response.
  """

  class ViewValueValuesEnum(_messages.Enum):
    r"""The level of information requested in response.

    Values:
      JOB_VIEW_UNKNOWN: The job view to return isn't specified, or is unknown.
        Responses will contain at least the `JOB_VIEW_SUMMARY` information,
        and may contain additional information.
      JOB_VIEW_SUMMARY: Request summary information only: Project ID, Job ID,
        job name, job type, job status, start/end time, and Cloud SDK version
        details.
      JOB_VIEW_ALL: Request all information available for this job. When the
        job is in `JOB_STATE_PENDING`, the job has been created but is not yet
        running, and not all job information is available. For complete job
        information, wait until the job in is `JOB_STATE_RUNNING`. For more
        information, see [JobState](https://cloud.google.com/dataflow/docs/ref
        erence/rest/v1b3/projects.jobs#jobstate).
      JOB_VIEW_DESCRIPTION: Request summary info and limited job description
        data for steps, labels and environment.
    """
    JOB_VIEW_UNKNOWN = 0
    JOB_VIEW_SUMMARY = 1
    JOB_VIEW_ALL = 2
    JOB_VIEW_DESCRIPTION = 3

  job = _messages.MessageField('Job', 1)
  location = _messages.StringField(2, required=True)
  projectId = _messages.StringField(3, required=True)
  replaceJobId = _messages.StringField(4)
  view = _messages.EnumField('ViewValueValuesEnum', 5)


class DataflowProjectsLocationsJobsDebugGetConfigRequest(_messages.Message):
  r"""A DataflowProjectsLocationsJobsDebugGetConfigRequest object.

  Fields:
    getDebugConfigRequest: A GetDebugConfigRequest resource to be passed as
      the request body.
    jobId: The job id.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains the job specified by job_id.
    projectId: The project id.
  """

  getDebugConfigRequest = _messages.MessageField('GetDebugConfigRequest', 1)
  jobId = _messages.StringField(2, required=True)
  location = _messages.StringField(3, required=True)
  projectId = _messages.StringField(4, required=True)


class DataflowProjectsLocationsJobsDebugGetWorkerStacktracesRequest(_messages.Message):
  r"""A DataflowProjectsLocationsJobsDebugGetWorkerStacktracesRequest object.

  Fields:
    getWorkerStacktracesRequest: A GetWorkerStacktracesRequest resource to be
      passed as the request body.
    jobId: The job for which to get stacktraces.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains the job specified by job_id.
    projectId: The project id.
  """

  getWorkerStacktracesRequest = _messages.MessageField('GetWorkerStacktracesRequest', 1)
  jobId = _messages.StringField(2, required=True)
  location = _messages.StringField(3, required=True)
  projectId = _messages.StringField(4, required=True)


class DataflowProjectsLocationsJobsDebugSendCaptureRequest(_messages.Message):
  r"""A DataflowProjectsLocationsJobsDebugSendCaptureRequest object.

  Fields:
    jobId: The job id.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains the job specified by job_id.
    projectId: The project id.
    sendDebugCaptureRequest: A SendDebugCaptureRequest resource to be passed
      as the request body.
  """

  jobId = _messages.StringField(1, required=True)
  location = _messages.StringField(2, required=True)
  projectId = _messages.StringField(3, required=True)
  sendDebugCaptureRequest = _messages.MessageField('SendDebugCaptureRequest', 4)


class DataflowProjectsLocationsJobsGetExecutionDetailsRequest(_messages.Message):
  r"""A DataflowProjectsLocationsJobsGetExecutionDetailsRequest object.

  Fields:
    jobId: The job to get execution details for.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains the job specified by job_id.
    pageSize: If specified, determines the maximum number of stages to return.
      If unspecified, the service may choose an appropriate default, or may
      return an arbitrarily large number of results.
    pageToken: If supplied, this should be the value of next_page_token
      returned by an earlier call. This will cause the next page of results to
      be returned.
    projectId: A project id.
  """

  jobId = _messages.StringField(1, required=True)
  location = _messages.StringField(2, required=True)
  pageSize = _messages.IntegerField(3, variant=_messages.Variant.INT32)
  pageToken = _messages.StringField(4)
  projectId = _messages.StringField(5, required=True)


class DataflowProjectsLocationsJobsGetMetricsRequest(_messages.Message):
  r"""A DataflowProjectsLocationsJobsGetMetricsRequest object.

  Fields:
    jobId: The job to get metrics for.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains the job specified by job_id.
    projectId: A project id.
    startTime: Return only metric data that has changed since this time.
      Default is to return all information about all metrics for the job.
  """

  jobId = _messages.StringField(1, required=True)
  location = _messages.StringField(2, required=True)
  projectId = _messages.StringField(3, required=True)
  startTime = _messages.StringField(4)


class DataflowProjectsLocationsJobsGetRequest(_messages.Message):
  r"""A DataflowProjectsLocationsJobsGetRequest object.

  Enums:
    ViewValueValuesEnum: The level of information requested in response.

  Fields:
    jobId: The job ID.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains this job.
    projectId: The ID of the Cloud Platform project that the job belongs to.
    view: The level of information requested in response.
  """

  class ViewValueValuesEnum(_messages.Enum):
    r"""The level of information requested in response.

    Values:
      JOB_VIEW_UNKNOWN: The job view to return isn't specified, or is unknown.
        Responses will contain at least the `JOB_VIEW_SUMMARY` information,
        and may contain additional information.
      JOB_VIEW_SUMMARY: Request summary information only: Project ID, Job ID,
        job name, job type, job status, start/end time, and Cloud SDK version
        details.
      JOB_VIEW_ALL: Request all information available for this job. When the
        job is in `JOB_STATE_PENDING`, the job has been created but is not yet
        running, and not all job information is available. For complete job
        information, wait until the job in is `JOB_STATE_RUNNING`. For more
        information, see [JobState](https://cloud.google.com/dataflow/docs/ref
        erence/rest/v1b3/projects.jobs#jobstate).
      JOB_VIEW_DESCRIPTION: Request summary info and limited job description
        data for steps, labels and environment.
    """
    JOB_VIEW_UNKNOWN = 0
    JOB_VIEW_SUMMARY = 1
    JOB_VIEW_ALL = 2
    JOB_VIEW_DESCRIPTION = 3

  jobId = _messages.StringField(1, required=True)
  location = _messages.StringField(2, required=True)
  projectId = _messages.StringField(3, required=True)
  view = _messages.EnumField('ViewValueValuesEnum', 4)


class DataflowProjectsLocationsJobsListRequest(_messages.Message):
  r"""A DataflowProjectsLocationsJobsListRequest object.

  Enums:
    FilterValueValuesEnum: The kind of filter to use.
    ViewValueValuesEnum: Deprecated. ListJobs always returns summaries now.
      Use GetJob for other JobViews.

  Fields:
    filter: The kind of filter to use.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains this job.
    name: Optional. The job name.
    pageSize: If there are many jobs, limit response to at most this many. The
      actual number of jobs returned will be the lesser of max_responses and
      an unspecified server-defined limit.
    pageToken: Set this to the 'next_page_token' field of a previous response
      to request additional results in a long list.
    projectId: The project which owns the jobs.
    view: Deprecated. ListJobs always returns summaries now. Use GetJob for
      other JobViews.
  """

  class FilterValueValuesEnum(_messages.Enum):
    r"""The kind of filter to use.

    Values:
      UNKNOWN: The filter isn't specified, or is unknown. This returns all
        jobs ordered on descending `JobUuid`.
      ALL: Returns all running jobs first ordered on creation timestamp, then
        returns all terminated jobs ordered on the termination timestamp.
      TERMINATED: Filters the jobs that have a terminated state, ordered on
        the termination timestamp. Example terminated states:
        `JOB_STATE_STOPPED`, `JOB_STATE_UPDATED`, `JOB_STATE_DRAINED`, etc.
      ACTIVE: Filters the jobs that are running ordered on the creation
        timestamp.
    """
    UNKNOWN = 0
    ALL = 1
    TERMINATED = 2
    ACTIVE = 3

  class ViewValueValuesEnum(_messages.Enum):
    r"""Deprecated. ListJobs always returns summaries now. Use GetJob for
    other JobViews.

    Values:
      JOB_VIEW_UNKNOWN: The job view to return isn't specified, or is unknown.
        Responses will contain at least the `JOB_VIEW_SUMMARY` information,
        and may contain additional information.
      JOB_VIEW_SUMMARY: Request summary information only: Project ID, Job ID,
        job name, job type, job status, start/end time, and Cloud SDK version
        details.
      JOB_VIEW_ALL: Request all information available for this job. When the
        job is in `JOB_STATE_PENDING`, the job has been created but is not yet
        running, and not all job information is available. For complete job
        information, wait until the job in is `JOB_STATE_RUNNING`. For more
        information, see [JobState](https://cloud.google.com/dataflow/docs/ref
        erence/rest/v1b3/projects.jobs#jobstate).
      JOB_VIEW_DESCRIPTION: Request summary info and limited job description
        data for steps, labels and environment.
    """
    JOB_VIEW_UNKNOWN = 0
    JOB_VIEW_SUMMARY = 1
    JOB_VIEW_ALL = 2
    JOB_VIEW_DESCRIPTION = 3

  filter = _messages.EnumField('FilterValueValuesEnum', 1)
  location = _messages.StringField(2, required=True)
  name = _messages.StringField(3)
  pageSize = _messages.IntegerField(4, variant=_messages.Variant.INT32)
  pageToken = _messages.StringField(5)
  projectId = _messages.StringField(6, required=True)
  view = _messages.EnumField('ViewValueValuesEnum', 7)


class DataflowProjectsLocationsJobsMessagesListRequest(_messages.Message):
  r"""A DataflowProjectsLocationsJobsMessagesListRequest object.

  Enums:
    MinimumImportanceValueValuesEnum: Filter to only get messages with
      importance >= level

  Fields:
    endTime: Return only messages with timestamps < end_time. The default is
      now (i.e. return up to the latest messages available).
    jobId: The job to get messages about.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains the job specified by job_id.
    minimumImportance: Filter to only get messages with importance >= level
    pageSize: If specified, determines the maximum number of messages to
      return. If unspecified, the service may choose an appropriate default,
      or may return an arbitrarily large number of results.
    pageToken: If supplied, this should be the value of next_page_token
      returned by an earlier call. This will cause the next page of results to
      be returned.
    projectId: A project id.
    startTime: If specified, return only messages with timestamps >=
      start_time. The default is the job creation time (i.e. beginning of
      messages).
  """

  class MinimumImportanceValueValuesEnum(_messages.Enum):
    r"""Filter to only get messages with importance >= level

    Values:
      JOB_MESSAGE_IMPORTANCE_UNKNOWN: The message importance isn't specified,
        or is unknown.
      JOB_MESSAGE_DEBUG: The message is at the 'debug' level: typically only
        useful for software engineers working on the code the job is running.
        Typically, Dataflow pipeline runners do not display log messages at
        this level by default.
      JOB_MESSAGE_DETAILED: The message is at the 'detailed' level: somewhat
        verbose, but potentially useful to users. Typically, Dataflow pipeline
        runners do not display log messages at this level by default. These
        messages are displayed by default in the Dataflow monitoring UI.
      JOB_MESSAGE_BASIC: The message is at the 'basic' level: useful for
        keeping track of the execution of a Dataflow pipeline. Typically,
        Dataflow pipeline runners display log messages at this level by
        default, and these messages are displayed by default in the Dataflow
        monitoring UI.
      JOB_MESSAGE_WARNING: The message is at the 'warning' level: indicating a
        condition pertaining to a job which may require human intervention.
        Typically, Dataflow pipeline runners display log messages at this
        level by default, and these messages are displayed by default in the
        Dataflow monitoring UI.
      JOB_MESSAGE_ERROR: The message is at the 'error' level: indicating a
        condition preventing a job from succeeding. Typically, Dataflow
        pipeline runners display log messages at this level by default, and
        these messages are displayed by default in the Dataflow monitoring UI.
    """
    JOB_MESSAGE_IMPORTANCE_UNKNOWN = 0
    JOB_MESSAGE_DEBUG = 1
    JOB_MESSAGE_DETAILED = 2
    JOB_MESSAGE_BASIC = 3
    JOB_MESSAGE_WARNING = 4
    JOB_MESSAGE_ERROR = 5

  endTime = _messages.StringField(1)
  jobId = _messages.StringField(2, required=True)
  location = _messages.StringField(3, required=True)
  minimumImportance = _messages.EnumField('MinimumImportanceValueValuesEnum', 4)
  pageSize = _messages.IntegerField(5, variant=_messages.Variant.INT32)
  pageToken = _messages.StringField(6)
  projectId = _messages.StringField(7, required=True)
  startTime = _messages.StringField(8)


class DataflowProjectsLocationsJobsSnapshotRequest(_messages.Message):
  r"""A DataflowProjectsLocationsJobsSnapshotRequest object.

  Fields:
    jobId: The job to be snapshotted.
    location: The location that contains this job.
    projectId: The project which owns the job to be snapshotted.
    snapshotJobRequest: A SnapshotJobRequest resource to be passed as the
      request body.
  """

  jobId = _messages.StringField(1, required=True)
  location = _messages.StringField(2, required=True)
  projectId = _messages.StringField(3, required=True)
  snapshotJobRequest = _messages.MessageField('SnapshotJobRequest', 4)


class DataflowProjectsLocationsJobsSnapshotsListRequest(_messages.Message):
  r"""A DataflowProjectsLocationsJobsSnapshotsListRequest object.

  Fields:
    jobId: If specified, list snapshots created from this job.
    location: The location to list snapshots in.
    projectId: The project ID to list snapshots for.
  """

  jobId = _messages.StringField(1, required=True)
  location = _messages.StringField(2, required=True)
  projectId = _messages.StringField(3, required=True)


class DataflowProjectsLocationsJobsStagesGetExecutionDetailsRequest(_messages.Message):
  r"""A DataflowProjectsLocationsJobsStagesGetExecutionDetailsRequest object.

  Fields:
    endTime: Upper time bound of work items to include, by start time.
    jobId: The job to get execution details for.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains the job specified by job_id.
    pageSize: If specified, determines the maximum number of work items to
      return. If unspecified, the service may choose an appropriate default,
      or may return an arbitrarily large number of results.
    pageToken: If supplied, this should be the value of next_page_token
      returned by an earlier call. This will cause the next page of results to
      be returned.
    projectId: A project id.
    stageId: The stage for which to fetch information.
    startTime: Lower time bound of work items to include, by start time.
  """

  endTime = _messages.StringField(1)
  jobId = _messages.StringField(2, required=True)
  location = _messages.StringField(3, required=True)
  pageSize = _messages.IntegerField(4, variant=_messages.Variant.INT32)
  pageToken = _messages.StringField(5)
  projectId = _messages.StringField(6, required=True)
  stageId = _messages.StringField(7, required=True)
  startTime = _messages.StringField(8)


class DataflowProjectsLocationsJobsUpdateRequest(_messages.Message):
  r"""A DataflowProjectsLocationsJobsUpdateRequest object.

  Fields:
    job: A Job resource to be passed as the request body.
    jobId: The job ID.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains this job.
    projectId: The ID of the Cloud Platform project that the job belongs to.
    updateMask: The list of fields to update relative to Job. If empty, only
      RequestedJobState will be considered for update. If the FieldMask is not
      empty and RequestedJobState is none/empty, The fields specified in the
      update mask will be the only ones considered for update. If both
      RequestedJobState and update_mask are specified, an error will be
      returned as we cannot update both state and mask.
  """

  job = _messages.MessageField('Job', 1)
  jobId = _messages.StringField(2, required=True)
  location = _messages.StringField(3, required=True)
  projectId = _messages.StringField(4, required=True)
  updateMask = _messages.StringField(5)


class DataflowProjectsLocationsJobsWorkItemsLeaseRequest(_messages.Message):
  r"""A DataflowProjectsLocationsJobsWorkItemsLeaseRequest object.

  Fields:
    jobId: Identifies the workflow job this worker belongs to.
    leaseWorkItemRequest: A LeaseWorkItemRequest resource to be passed as the
      request body.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains the WorkItem's job.
    projectId: Identifies the project this worker belongs to.
  """

  jobId = _messages.StringField(1, required=True)
  leaseWorkItemRequest = _messages.MessageField('LeaseWorkItemRequest', 2)
  location = _messages.StringField(3, required=True)
  projectId = _messages.StringField(4, required=True)


class DataflowProjectsLocationsJobsWorkItemsReportStatusRequest(_messages.Message):
  r"""A DataflowProjectsLocationsJobsWorkItemsReportStatusRequest object.

  Fields:
    jobId: The job which the WorkItem is part of.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains the WorkItem's job.
    projectId: The project which owns the WorkItem's job.
    reportWorkItemStatusRequest: A ReportWorkItemStatusRequest resource to be
      passed as the request body.
  """

  jobId = _messages.StringField(1, required=True)
  location = _messages.StringField(2, required=True)
  projectId = _messages.StringField(3, required=True)
  reportWorkItemStatusRequest = _messages.MessageField('ReportWorkItemStatusRequest', 4)


class DataflowProjectsLocationsSnapshotsDeleteRequest(_messages.Message):
  r"""A DataflowProjectsLocationsSnapshotsDeleteRequest object.

  Fields:
    location: The location that contains this snapshot.
    projectId: The ID of the Cloud Platform project that the snapshot belongs
      to.
    snapshotId: The ID of the snapshot.
  """

  location = _messages.StringField(1, required=True)
  projectId = _messages.StringField(2, required=True)
  snapshotId = _messages.StringField(3, required=True)


class DataflowProjectsLocationsSnapshotsGetRequest(_messages.Message):
  r"""A DataflowProjectsLocationsSnapshotsGetRequest object.

  Fields:
    location: The location that contains this snapshot.
    projectId: The ID of the Cloud Platform project that the snapshot belongs
      to.
    snapshotId: The ID of the snapshot.
  """

  location = _messages.StringField(1, required=True)
  projectId = _messages.StringField(2, required=True)
  snapshotId = _messages.StringField(3, required=True)


class DataflowProjectsLocationsSnapshotsListRequest(_messages.Message):
  r"""A DataflowProjectsLocationsSnapshotsListRequest object.

  Fields:
    jobId: If specified, list snapshots created from this job.
    location: The location to list snapshots in.
    projectId: The project ID to list snapshots for.
  """

  jobId = _messages.StringField(1)
  location = _messages.StringField(2, required=True)
  projectId = _messages.StringField(3, required=True)


class DataflowProjectsLocationsTemplatesCreateRequest(_messages.Message):
  r"""A DataflowProjectsLocationsTemplatesCreateRequest object.

  Fields:
    createJobFromTemplateRequest: A CreateJobFromTemplateRequest resource to
      be passed as the request body.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
      which to direct the request.
    projectId: Required. The ID of the Cloud Platform project that the job
      belongs to.
  """

  createJobFromTemplateRequest = _messages.MessageField('CreateJobFromTemplateRequest', 1)
  location = _messages.StringField(2, required=True)
  projectId = _messages.StringField(3, required=True)


class DataflowProjectsLocationsTemplatesGetRequest(_messages.Message):
  r"""A DataflowProjectsLocationsTemplatesGetRequest object.

  Enums:
    ViewValueValuesEnum: The view to retrieve. Defaults to METADATA_ONLY.

  Fields:
    gcsPath: Required. A Cloud Storage path to the template from which to
      create the job. Must be valid Cloud Storage URL, beginning with 'gs://'.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
      which to direct the request.
    projectId: Required. The ID of the Cloud Platform project that the job
      belongs to.
    view: The view to retrieve. Defaults to METADATA_ONLY.
  """

  class ViewValueValuesEnum(_messages.Enum):
    r"""The view to retrieve. Defaults to METADATA_ONLY.

    Values:
      METADATA_ONLY: Template view that retrieves only the metadata associated
        with the template.
    """
    METADATA_ONLY = 0

  gcsPath = _messages.StringField(1)
  location = _messages.StringField(2, required=True)
  projectId = _messages.StringField(3, required=True)
  view = _messages.EnumField('ViewValueValuesEnum', 4)


class DataflowProjectsLocationsTemplatesLaunchRequest(_messages.Message):
  r"""A DataflowProjectsLocationsTemplatesLaunchRequest object.

  Fields:
    dynamicTemplate_gcsPath: Path to the dynamic template specification file
      on Cloud Storage. The file must be a JSON serialized
      `DynamicTemplateFileSpec` object.
    dynamicTemplate_stagingLocation: Cloud Storage path for staging
      dependencies. Must be a valid Cloud Storage URL, beginning with `gs://`.
    gcsPath: A Cloud Storage path to the template to use to create the job.
      Must be valid Cloud Storage URL, beginning with `gs://`.
    launchTemplateParameters: A LaunchTemplateParameters resource to be passed
      as the request body.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
      which to direct the request.
    projectId: Required. The ID of the Cloud Platform project that the job
      belongs to.
    validateOnly: If true, the request is validated but not actually executed.
      Defaults to false.
  """

  dynamicTemplate_gcsPath = _messages.StringField(1)
  dynamicTemplate_stagingLocation = _messages.StringField(2)
  gcsPath = _messages.StringField(3)
  launchTemplateParameters = _messages.MessageField('LaunchTemplateParameters', 4)
  location = _messages.StringField(5, required=True)
  projectId = _messages.StringField(6, required=True)
  validateOnly = _messages.BooleanField(7)


class DataflowProjectsLocationsWorkerMessagesRequest(_messages.Message):
  r"""A DataflowProjectsLocationsWorkerMessagesRequest object.

  Fields:
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains the job.
    projectId: The project to send the WorkerMessages to.
    sendWorkerMessagesRequest: A SendWorkerMessagesRequest resource to be
      passed as the request body.
  """

  location = _messages.StringField(1, required=True)
  projectId = _messages.StringField(2, required=True)
  sendWorkerMessagesRequest = _messages.MessageField('SendWorkerMessagesRequest', 3)


class DataflowProjectsSnapshotsGetRequest(_messages.Message):
  r"""A DataflowProjectsSnapshotsGetRequest object.

  Fields:
    location: The location that contains this snapshot.
    projectId: The ID of the Cloud Platform project that the snapshot belongs
      to.
    snapshotId: The ID of the snapshot.
  """

  location = _messages.StringField(1)
  projectId = _messages.StringField(2, required=True)
  snapshotId = _messages.StringField(3, required=True)


class DataflowProjectsSnapshotsListRequest(_messages.Message):
  r"""A DataflowProjectsSnapshotsListRequest object.

  Fields:
    jobId: If specified, list snapshots created from this job.
    location: The location to list snapshots in.
    projectId: The project ID to list snapshots for.
  """

  jobId = _messages.StringField(1)
  location = _messages.StringField(2)
  projectId = _messages.StringField(3, required=True)


class DataflowProjectsTemplateVersionsListRequest(_messages.Message):
  r"""A DataflowProjectsTemplateVersionsListRequest object.

  Fields:
    pageSize: The maximum number of TemplateVersions to return per page.
    pageToken: The page token, received from a previous ListTemplateVersions
      call. Provide this to retrieve the subsequent page.
    parent: parent includes project_id, and display_name is optional. List by
      project_id(pid1) and display_name(tid1). Format:
      projects/{pid1}/catalogTemplates/{tid1} List by project_id(pid1).
      Format: projects/{pid1}
  """

  pageSize = _messages.IntegerField(1, variant=_messages.Variant.INT32)
  pageToken = _messages.StringField(2)
  parent = _messages.StringField(3, required=True)


class DataflowProjectsTemplatesCreateRequest(_messages.Message):
  r"""A DataflowProjectsTemplatesCreateRequest object.

  Fields:
    createJobFromTemplateRequest: A CreateJobFromTemplateRequest resource to
      be passed as the request body.
    projectId: Required. The ID of the Cloud Platform project that the job
      belongs to.
  """

  createJobFromTemplateRequest = _messages.MessageField('CreateJobFromTemplateRequest', 1)
  projectId = _messages.StringField(2, required=True)


class DataflowProjectsTemplatesGetRequest(_messages.Message):
  r"""A DataflowProjectsTemplatesGetRequest object.

  Enums:
    ViewValueValuesEnum: The view to retrieve. Defaults to METADATA_ONLY.

  Fields:
    gcsPath: Required. A Cloud Storage path to the template from which to
      create the job. Must be valid Cloud Storage URL, beginning with 'gs://'.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
      which to direct the request.
    projectId: Required. The ID of the Cloud Platform project that the job
      belongs to.
    view: The view to retrieve. Defaults to METADATA_ONLY.
  """

  class ViewValueValuesEnum(_messages.Enum):
    r"""The view to retrieve. Defaults to METADATA_ONLY.

    Values:
      METADATA_ONLY: Template view that retrieves only the metadata associated
        with the template.
    """
    METADATA_ONLY = 0

  gcsPath = _messages.StringField(1)
  location = _messages.StringField(2)
  projectId = _messages.StringField(3, required=True)
  view = _messages.EnumField('ViewValueValuesEnum', 4)


class DataflowProjectsTemplatesLaunchRequest(_messages.Message):
  r"""A DataflowProjectsTemplatesLaunchRequest object.

  Fields:
    dynamicTemplate_gcsPath: Path to the dynamic template specification file
      on Cloud Storage. The file must be a JSON serialized
      `DynamicTemplateFileSpec` object.
    dynamicTemplate_stagingLocation: Cloud Storage path for staging
      dependencies. Must be a valid Cloud Storage URL, beginning with `gs://`.
    gcsPath: A Cloud Storage path to the template to use to create the job.
      Must be valid Cloud Storage URL, beginning with `gs://`.
    launchTemplateParameters: A LaunchTemplateParameters resource to be passed
      as the request body.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
      which to direct the request.
    projectId: Required. The ID of the Cloud Platform project that the job
      belongs to.
    validateOnly: If true, the request is validated but not actually executed.
      Defaults to false.
  """

  dynamicTemplate_gcsPath = _messages.StringField(1)
  dynamicTemplate_stagingLocation = _messages.StringField(2)
  gcsPath = _messages.StringField(3)
  launchTemplateParameters = _messages.MessageField('LaunchTemplateParameters', 4)
  location = _messages.StringField(5)
  projectId = _messages.StringField(6, required=True)
  validateOnly = _messages.BooleanField(7)


class DataflowProjectsWorkerMessagesRequest(_messages.Message):
  r"""A DataflowProjectsWorkerMessagesRequest object.

  Fields:
    projectId: The project to send the WorkerMessages to.
    sendWorkerMessagesRequest: A SendWorkerMessagesRequest resource to be
      passed as the request body.
  """

  projectId = _messages.StringField(1, required=True)
  sendWorkerMessagesRequest = _messages.MessageField('SendWorkerMessagesRequest', 2)


class DatastoreIODetails(_messages.Message):
  r"""Metadata for a Datastore connector used by the job.

  Fields:
    namespace: Namespace used in the connection.
    projectId: ProjectId accessed in the connection.
  """

  namespace = _messages.StringField(1)
  projectId = _messages.StringField(2)


class DebugOptions(_messages.Message):
  r"""Describes any options that have an effect on the debugging of pipelines.

  Fields:
    dataSampling: Configuration options for sampling elements from a running
      pipeline.
    enableHotKeyLogging: Optional. When true, enables the logging of the
      literal hot key to the user's Cloud Logging.
  """

  dataSampling = _messages.MessageField('DataSamplingConfig', 1)
  enableHotKeyLogging = _messages.BooleanField(2)


class DeleteSnapshotResponse(_messages.Message):
  r"""Response from deleting a snapshot."""


class Deployment(_messages.Message):
  r"""A Deployment object.

  Enums:
    DeploymentStateValueValuesEnum: Output only. `Deployment` resource
      deployment current state.

  Messages:
    AnnotationsValue: User specified annotations. See
      https://google.aip.dev/128#annotations for more details such as format
      and size limitations.

  Fields:
    annotations: User specified annotations. See
      https://google.aip.dev/128#annotations for more details such as format
      and size limitations.
    classicTemplateConfig: Required. Dataflow Job information of Classic
      Template Type.
    createTime: Output only. Time at which the request to create the
      `Deployment` was received.
    deleteTime: Output only. Time at which the request to delete the
      `Deployment` was received.
    deploymentState: Output only. `Deployment` resource deployment current
      state.
    deploymentWorkflowConfig: Dataflow job deployment workflow config.
    displayName: A user-specified, human-readable name for the `Deployment`.
      If provided, this value must be 1-63 characters.
    etag: Checksum computed by the server at the time of resource creation or
      update time. Ensure that the client has an up-to-date value before
      proceeding. If an etag is provided and does not match the current etag
      of the `Deployment`, request will be blocked and an ABORTED error will
      be returned.
    flexTemplateConfig: Required. Dataflow Job information of Flex Template
      Type.
    name: Required. The name of the `Deployment`. Format:
      projects/{project}/locations/{location}/deployments/{deployment_id}
    reconciling: Output only. A resource must set the reconciling field to
      true if the current state of the resource does not match the user's
      intended state, and the system is working to reconcile them. This is
      regardless of whether the root cause of going into reconciliation was
      user or system action.
    revisionCreateTime: Output only. The timestamp that the revision was
      created.
    revisionId: Output only. A system generated revision ID of the
      `Deployment`. A new revision is committed whenever the `Deployment` is
      changed in any way.
    uid: Output only. A unique identifier (UUID4) for the `Deployment`.
    updateTime: Output only. Time at which the request to update the
      `Deployment` was received.
  """

  class DeploymentStateValueValuesEnum(_messages.Enum):
    r"""Output only. `Deployment` resource deployment current state.

    Values:
      DEPLOYMENT_STATE_UNSPECIFIED: State of the `Deployment` is unspecified.
      DEPLOYMENT_IN_PROGRESS: `Deployment` workflow is progress.
      DEPLOYMENT_SUCCEEDED: `Deployment` workflow is finished successfully.
      DEPLOYMENT_FAILED: `Deployment` workflow failed.
      DEPLOYMENT_CANCELLING: `Deployment` workflow is cancelling.
      DEPLOYMENT_CANCELLED: `Deployment` workflow is cancelled.
    """
    DEPLOYMENT_STATE_UNSPECIFIED = 0
    DEPLOYMENT_IN_PROGRESS = 1
    DEPLOYMENT_SUCCEEDED = 2
    DEPLOYMENT_FAILED = 3
    DEPLOYMENT_CANCELLING = 4
    DEPLOYMENT_CANCELLED = 5

  @encoding.MapUnrecognizedFields('additionalProperties')
  class AnnotationsValue(_messages.Message):
    r"""User specified annotations. See https://google.aip.dev/128#annotations
    for more details such as format and size limitations.

    Messages:
      AdditionalProperty: An additional property for a AnnotationsValue
        object.

    Fields:
      additionalProperties: Additional properties of type AnnotationsValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a AnnotationsValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  annotations = _messages.MessageField('AnnotationsValue', 1)
  classicTemplateConfig = _messages.MessageField('DataflowClassicTemplateConfig', 2)
  createTime = _messages.StringField(3)
  deleteTime = _messages.StringField(4)
  deploymentState = _messages.EnumField('DeploymentStateValueValuesEnum', 5)
  deploymentWorkflowConfig = _messages.MessageField('DeploymentWorkflowConfig', 6)
  displayName = _messages.StringField(7)
  etag = _messages.StringField(8)
  flexTemplateConfig = _messages.MessageField('DataflowFlexTemplateConfig', 9)
  name = _messages.StringField(10)
  reconciling = _messages.BooleanField(11)
  revisionCreateTime = _messages.StringField(12)
  revisionId = _messages.StringField(13)
  uid = _messages.StringField(14)
  updateTime = _messages.StringField(15)


class DeploymentWorkflowConfig(_messages.Message):
  r"""Dataflow job deployment workflow config.

  Enums:
    JobTypeValueValuesEnum: Streaming or batch job.
    StopModeValueValuesEnum: Stop modes for the existent job.

  Fields:
    jobType: Streaming or batch job.
    serviceAccount: Custom service account to use for the deployment. By
      default the service account provisioned for CICD will be used.
    snapshotPolicy: Snapshot policies to take a snapshot of the existing
      dataflow job before beginning the deployment.
    stopMode: Stop modes for the existent job.
  """

  class JobTypeValueValuesEnum(_messages.Enum):
    r"""Streaming or batch job.

    Values:
      JOB_TYPE_UNSPECIFIED: Job type is unspecified.
      JOB_TYPE_BATCH: Batch job.
      JOB_TYPE_STREAMING: Streaming job.
    """
    JOB_TYPE_UNSPECIFIED = 0
    JOB_TYPE_BATCH = 1
    JOB_TYPE_STREAMING = 2

  class StopModeValueValuesEnum(_messages.Enum):
    r"""Stop modes for the existent job.

    Values:
      STOP_MODE_UNSPECIFIED: Stop mode is unspecified.
      STOP_MODE_DRAIN: Drain the job.
      STOP_MODE_CANCEL: Cancel the job.
    """
    STOP_MODE_UNSPECIFIED = 0
    STOP_MODE_DRAIN = 1
    STOP_MODE_CANCEL = 2

  jobType = _messages.EnumField('JobTypeValueValuesEnum', 1)
  serviceAccount = _messages.StringField(2)
  snapshotPolicy = _messages.MessageField('SnapshotPolicy', 3)
  stopMode = _messages.EnumField('StopModeValueValuesEnum', 4)


class DerivedSource(_messages.Message):
  r"""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.

  Enums:
    DerivationModeValueValuesEnum: What source to base the produced source on
      (if any).

  Fields:
    derivationMode: What source to base the produced source on (if any).
    source: Specification of the source.
  """

  class DerivationModeValueValuesEnum(_messages.Enum):
    r"""What source to base the produced source on (if any).

    Values:
      SOURCE_DERIVATION_MODE_UNKNOWN: The source derivation is unknown, or
        unspecified.
      SOURCE_DERIVATION_MODE_INDEPENDENT: Produce a completely independent
        Source with no base.
      SOURCE_DERIVATION_MODE_CHILD_OF_CURRENT: Produce a Source based on the
        Source being split.
      SOURCE_DERIVATION_MODE_SIBLING_OF_CURRENT: Produce a Source based on the
        base of the Source being split.
    """
    SOURCE_DERIVATION_MODE_UNKNOWN = 0
    SOURCE_DERIVATION_MODE_INDEPENDENT = 1
    SOURCE_DERIVATION_MODE_CHILD_OF_CURRENT = 2
    SOURCE_DERIVATION_MODE_SIBLING_OF_CURRENT = 3

  derivationMode = _messages.EnumField('DerivationModeValueValuesEnum', 1)
  source = _messages.MessageField('Source', 2)


class Disk(_messages.Message):
  r"""Describes the data disk used by a workflow job.

  Fields:
    diskType: Disk storage type, as defined by Google Compute Engine. This
      must be a disk type appropriate to the project and zone in which the
      workers will run. If unknown or unspecified, the service will attempt to
      choose a reasonable default. For example, the standard persistent disk
      type is a resource name typically ending in "pd-standard". If SSD
      persistent disks are available, the resource name typically ends with
      "pd-ssd". The actual valid values are defined the Google Compute Engine
      API, not by the Cloud Dataflow API; consult the Google Compute Engine
      documentation for more information about determining the set of
      available disk types for a particular project and zone. Google Compute
      Engine Disk types are local to a particular project in a particular
      zone, and so the resource name will typically look something like this:
      compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-
      standard
    mountPoint: Directory in a VM where disk is mounted.
    sizeGb: Size of disk in GB. If zero or unspecified, the service will
      attempt to choose a reasonable default.
  """

  diskType = _messages.StringField(1)
  mountPoint = _messages.StringField(2)
  sizeGb = _messages.IntegerField(3, variant=_messages.Variant.INT32)


class DisplayData(_messages.Message):
  r"""Data provided with a pipeline or transform to provide descriptive info.

  Fields:
    boolValue: Contains value if the data is of a boolean type.
    durationValue: Contains value if the data is of duration type.
    floatValue: Contains value if the data is of float type.
    int64Value: Contains value if the data is of int64 type.
    javaClassValue: Contains value if the data is of java class type.
    key: The key identifying the display data. This is intended to be used as
      a label for the display data when viewed in a dax monitoring system.
    label: An optional label to display in a dax UI for the element.
    namespace: The namespace for the key. This is usually a class name or
      programming language namespace (i.e. python module) which defines the
      display data. This allows a dax monitoring system to specially handle
      the data and perform custom rendering.
    shortStrValue: A possible additional shorter value to display. For example
      a java_class_name_value of com.mypackage.MyDoFn will be stored with
      MyDoFn as the short_str_value and com.mypackage.MyDoFn as the
      java_class_name value. short_str_value can be displayed and
      java_class_name_value will be displayed as a tooltip.
    strValue: Contains value if the data is of string type.
    timestampValue: Contains value if the data is of timestamp type.
    url: An optional full URL.
  """

  boolValue = _messages.BooleanField(1)
  durationValue = _messages.StringField(2)
  floatValue = _messages.FloatField(3, variant=_messages.Variant.FLOAT)
  int64Value = _messages.IntegerField(4)
  javaClassValue = _messages.StringField(5)
  key = _messages.StringField(6)
  label = _messages.StringField(7)
  namespace = _messages.StringField(8)
  shortStrValue = _messages.StringField(9)
  strValue = _messages.StringField(10)
  timestampValue = _messages.StringField(11)
  url = _messages.StringField(12)


class DistributionUpdate(_messages.Message):
  r"""A metric value representing a distribution.

  Fields:
    count: The count of the number of elements present in the distribution.
    histogram: (Optional) Histogram of value counts for the distribution.
    max: The maximum value present in the distribution.
    min: The minimum value present in the distribution.
    sum: 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.
    sumOfSquares: Use a double since the sum of squares is likely to overflow
      int64.
  """

  count = _messages.MessageField('SplitInt64', 1)
  histogram = _messages.MessageField('Histogram', 2)
  max = _messages.MessageField('SplitInt64', 3)
  min = _messages.MessageField('SplitInt64', 4)
  sum = _messages.MessageField('SplitInt64', 5)
  sumOfSquares = _messages.FloatField(6)


class DynamicSourceSplit(_messages.Message):
  r"""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.

  Fields:
    primary: Primary part (continued to be processed by worker). Specified
      relative to the previously-current source. Becomes current.
    residual: Residual part (returned to the pool of work). Specified relative
      to the previously-current source.
  """

  primary = _messages.MessageField('DerivedSource', 1)
  residual = _messages.MessageField('DerivedSource', 2)


class Empty(_messages.Message):
  r"""A generic empty message that you can re-use to avoid defining duplicated
  empty messages in your APIs. A typical example is to use it as the request
  or the response type of an API method. For instance: service Foo { rpc
  Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
  """



class Environment(_messages.Message):
  r"""Describes the environment in which a Dataflow Job runs.

  Enums:
    FlexResourceSchedulingGoalValueValuesEnum: Optional. Which Flexible
      Resource Scheduling mode to run in.
    ShuffleModeValueValuesEnum: Output only. The shuffle mode used for the
      job.
    StreamingModeValueValuesEnum: Optional. Specifies the Streaming Engine
      message processing guarantees. Reduces cost and latency but might result
      in duplicate messages committed to storage. Designed to run simple
      mapping streaming ETL jobs at the lowest cost. For example, Change Data
      Capture (CDC) to BigQuery is a canonical use case. For more information,
      see [Set the pipeline streaming
      mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes).

  Messages:
    InternalExperimentsValue: Experimental settings.
    SdkPipelineOptionsValue: The Cloud Dataflow SDK pipeline options specified
      by the user. These options are passed through the service and are used
      to recreate the SDK pipeline options on the worker in a language
      agnostic and platform independent way.
    UserAgentValue: Optional. A description of the process that generated the
      request.
    VersionValue: A structure describing which components and their versions
      of the service are required in order to run the job.

  Fields:
    clusterManagerApiService: The type of cluster manager API to use. If
      unknown or unspecified, the service will attempt to choose a reasonable
      default. This should be in the form of the API service name, e.g.
      "compute.googleapis.com".
    dataset: Optional. The dataset for the current project where various
      workflow related tables are stored. The supported resource type is:
      Google BigQuery: bigquery.googleapis.com/{dataset}
    debugOptions: Optional. Any debugging options to be supplied to the job.
    experiments: The list of experiments to enable. This field should be used
      for SDK related experiments and not for service related experiments. The
      proper field for service related experiments is service_options.
    flexResourceSchedulingGoal: Optional. Which Flexible Resource Scheduling
      mode to run in.
    internalExperiments: Experimental settings.
    sdkPipelineOptions: The Cloud Dataflow SDK pipeline options specified by
      the user. These options are passed through the service and are used to
      recreate the SDK pipeline options on the worker in a language agnostic
      and platform independent way.
    serviceAccountEmail: Optional. Identity to run virtual machines as.
      Defaults to the default account.
    serviceKmsKeyName: Optional. If set, contains the Cloud KMS key identifier
      used to encrypt data at rest, AKA a Customer Managed Encryption Key
      (CMEK). Format:
      projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY
    serviceOptions: Optional. The list of service options to enable. This
      field should be used for service related experiments only. These
      experiments, when graduating to GA, should be replaced by dedicated
      fields or become default (i.e. always on).
    shuffleMode: Output only. The shuffle mode used for the job.
    streamingMode: Optional. Specifies the Streaming Engine message processing
      guarantees. Reduces cost and latency but might result in duplicate
      messages committed to storage. Designed to run simple mapping streaming
      ETL jobs at the lowest cost. For example, Change Data Capture (CDC) to
      BigQuery is a canonical use case. For more information, see [Set the
      pipeline streaming
      mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes).
    tempStoragePrefix: The prefix of the resources the system should use for
      temporary storage. The system will append the suffix "/temp-{JOBNAME} to
      this resource prefix, where {JOBNAME} is the value of the job_name
      field. The resulting bucket and object prefix is used as the prefix of
      the resources used to store temporary data needed during the job
      execution. NOTE: This will override the value in taskrunner_settings.
      The supported resource type is: Google Cloud Storage:
      storage.googleapis.com/{bucket}/{object}
      bucket.storage.googleapis.com/{object}
    usePublicIps: Optional. True when any worker pool that uses public IPs is
      present.
    useStreamingEngineResourceBasedBilling: Output only. Whether the job uses
      the Streaming Engine resource-based billing model.
    userAgent: Optional. A description of the process that generated the
      request.
    version: A structure describing which components and their versions of the
      service are required in order to run the job.
    workerPools: The worker pools. At least one "harness" worker pool must be
      specified in order for the job to have workers.
    workerRegion: Optional. The Compute Engine region
      (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
      which worker processing should occur, e.g. "us-west1". Mutually
      exclusive with worker_zone. If neither worker_region nor worker_zone is
      specified, default to the control plane's region.
    workerZone: Optional. The Compute Engine zone
      (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
      which worker processing should occur, e.g. "us-west1-a". Mutually
      exclusive with worker_region. If neither worker_region nor worker_zone
      is specified, a zone in the control plane's region is chosen based on
      available capacity.
  """

  class FlexResourceSchedulingGoalValueValuesEnum(_messages.Enum):
    r"""Optional. Which Flexible Resource Scheduling mode to run in.

    Values:
      FLEXRS_UNSPECIFIED: Run in the default mode.
      FLEXRS_SPEED_OPTIMIZED: Optimize for lower execution time.
      FLEXRS_COST_OPTIMIZED: Optimize for lower cost.
    """
    FLEXRS_UNSPECIFIED = 0
    FLEXRS_SPEED_OPTIMIZED = 1
    FLEXRS_COST_OPTIMIZED = 2

  class ShuffleModeValueValuesEnum(_messages.Enum):
    r"""Output only. The shuffle mode used for the job.

    Values:
      SHUFFLE_MODE_UNSPECIFIED: Shuffle mode information is not available.
      VM_BASED: Shuffle is done on the worker VMs.
      SERVICE_BASED: Shuffle is done on the service side.
    """
    SHUFFLE_MODE_UNSPECIFIED = 0
    VM_BASED = 1
    SERVICE_BASED = 2

  class StreamingModeValueValuesEnum(_messages.Enum):
    r"""Optional. Specifies the Streaming Engine message processing
    guarantees. Reduces cost and latency but might result in duplicate
    messages committed to storage. Designed to run simple mapping streaming
    ETL jobs at the lowest cost. For example, Change Data Capture (CDC) to
    BigQuery is a canonical use case. For more information, see [Set the
    pipeline streaming
    mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes).

    Values:
      STREAMING_MODE_UNSPECIFIED: Run in the default mode.
      STREAMING_MODE_EXACTLY_ONCE: In this mode, message deduplication is
        performed against persistent state to make sure each message is
        processed and committed to storage exactly once.
      STREAMING_MODE_AT_LEAST_ONCE: Message deduplication is not performed.
        Messages might be processed multiple times, and the results are
        applied multiple times. Note: Setting this value also enables
        Streaming Engine and Streaming Engine resource-based billing.
    """
    STREAMING_MODE_UNSPECIFIED = 0
    STREAMING_MODE_EXACTLY_ONCE = 1
    STREAMING_MODE_AT_LEAST_ONCE = 2

  @encoding.MapUnrecognizedFields('additionalProperties')
  class InternalExperimentsValue(_messages.Message):
    r"""Experimental settings.

    Messages:
      AdditionalProperty: An additional property for a
        InternalExperimentsValue object.

    Fields:
      additionalProperties: Properties of the object. Contains field @type
        with type URL.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a InternalExperimentsValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  @encoding.MapUnrecognizedFields('additionalProperties')
  class SdkPipelineOptionsValue(_messages.Message):
    r"""The Cloud Dataflow SDK pipeline options specified by the user. These
    options are passed through the service and are used to recreate the SDK
    pipeline options on the worker in a language agnostic and platform
    independent way.

    Messages:
      AdditionalProperty: An additional property for a SdkPipelineOptionsValue
        object.

    Fields:
      additionalProperties: Properties of the object.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a SdkPipelineOptionsValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  @encoding.MapUnrecognizedFields('additionalProperties')
  class UserAgentValue(_messages.Message):
    r"""Optional. A description of the process that generated the request.

    Messages:
      AdditionalProperty: An additional property for a UserAgentValue object.

    Fields:
      additionalProperties: Properties of the object.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a UserAgentValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  @encoding.MapUnrecognizedFields('additionalProperties')
  class VersionValue(_messages.Message):
    r"""A structure describing which components and their versions of the
    service are required in order to run the job.

    Messages:
      AdditionalProperty: An additional property for a VersionValue object.

    Fields:
      additionalProperties: Properties of the object.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a VersionValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  clusterManagerApiService = _messages.StringField(1)
  dataset = _messages.StringField(2)
  debugOptions = _messages.MessageField('DebugOptions', 3)
  experiments = _messages.StringField(4, repeated=True)
  flexResourceSchedulingGoal = _messages.EnumField('FlexResourceSchedulingGoalValueValuesEnum', 5)
  internalExperiments = _messages.MessageField('InternalExperimentsValue', 6)
  sdkPipelineOptions = _messages.MessageField('SdkPipelineOptionsValue', 7)
  serviceAccountEmail = _messages.StringField(8)
  serviceKmsKeyName = _messages.StringField(9)
  serviceOptions = _messages.StringField(10, repeated=True)
  shuffleMode = _messages.EnumField('ShuffleModeValueValuesEnum', 11)
  streamingMode = _messages.EnumField('StreamingModeValueValuesEnum', 12)
  tempStoragePrefix = _messages.StringField(13)
  usePublicIps = _messages.BooleanField(14)
  useStreamingEngineResourceBasedBilling = _messages.BooleanField(15)
  userAgent = _messages.MessageField('UserAgentValue', 16)
  version = _messages.MessageField('VersionValue', 17)
  workerPools = _messages.MessageField('WorkerPool', 18, repeated=True)
  workerRegion = _messages.StringField(19)
  workerZone = _messages.StringField(20)


class ExecutionStageState(_messages.Message):
  r"""A message describing the state of a particular execution stage.

  Enums:
    ExecutionStageStateValueValuesEnum: Executions stage states allow the same
      set of values as JobState.

  Fields:
    currentStateTime: The time at which the stage transitioned to this state.
    executionStageName: The name of the execution stage.
    executionStageState: Executions stage states allow the same set of values
      as JobState.
  """

  class ExecutionStageStateValueValuesEnum(_messages.Enum):
    r"""Executions stage states allow the same set of values as JobState.

    Values:
      JOB_STATE_UNKNOWN: The job's run state isn't specified.
      JOB_STATE_STOPPED: `JOB_STATE_STOPPED` indicates that the job has not
        yet started to run.
      JOB_STATE_RUNNING: `JOB_STATE_RUNNING` indicates that the job is
        currently running.
      JOB_STATE_DONE: `JOB_STATE_DONE` indicates that the job has successfully
        completed. This is a terminal job state. This state may be set by the
        Cloud Dataflow service, as a transition from `JOB_STATE_RUNNING`. It
        may also be set via a Cloud Dataflow `UpdateJob` call, if the job has
        not yet reached a terminal state.
      JOB_STATE_FAILED: `JOB_STATE_FAILED` indicates that the job has failed.
        This is a terminal job state. This state may only be set by the Cloud
        Dataflow service, and only as a transition from `JOB_STATE_RUNNING`.
      JOB_STATE_CANCELLED: `JOB_STATE_CANCELLED` indicates that the job has
        been explicitly cancelled. This is a terminal job state. This state
        may only be set via a Cloud Dataflow `UpdateJob` call, and only if the
        job has not yet reached another terminal state.
      JOB_STATE_UPDATED: `JOB_STATE_UPDATED` indicates that the job was
        successfully updated, meaning that this job was stopped and another
        job was started, inheriting state from this one. This is a terminal
        job state. This state may only be set by the Cloud Dataflow service,
        and only as a transition from `JOB_STATE_RUNNING`.
      JOB_STATE_DRAINING: `JOB_STATE_DRAINING` indicates that the job is in
        the process of draining. A draining job has stopped pulling from its
        input sources and is processing any data that remains in-flight. This
        state may be set via a Cloud Dataflow `UpdateJob` call, but only as a
        transition from `JOB_STATE_RUNNING`. Jobs that are draining may only
        transition to `JOB_STATE_DRAINED`, `JOB_STATE_CANCELLED`, or
        `JOB_STATE_FAILED`.
      JOB_STATE_DRAINED: `JOB_STATE_DRAINED` indicates that the job has been
        drained. A drained job terminated by stopping pulling from its input
        sources and processing any data that remained in-flight when draining
        was requested. This state is a terminal state, may only be set by the
        Cloud Dataflow service, and only as a transition from
        `JOB_STATE_DRAINING`.
      JOB_STATE_PENDING: `JOB_STATE_PENDING` indicates that the job has been
        created but is not yet running. Jobs that are pending may only
        transition to `JOB_STATE_RUNNING`, or `JOB_STATE_FAILED`.
      JOB_STATE_CANCELLING: `JOB_STATE_CANCELLING` indicates that the job has
        been explicitly cancelled and is in the process of stopping. Jobs that
        are cancelling may only transition to `JOB_STATE_CANCELLED` or
        `JOB_STATE_FAILED`.
      JOB_STATE_QUEUED: `JOB_STATE_QUEUED` indicates that the job has been
        created but is being delayed until launch. Jobs that are queued may
        only transition to `JOB_STATE_PENDING` or `JOB_STATE_CANCELLED`.
      JOB_STATE_RESOURCE_CLEANING_UP: `JOB_STATE_RESOURCE_CLEANING_UP`
        indicates that the batch job's associated resources are currently
        being cleaned up after a successful run. Currently, this is an opt-in
        feature, please reach out to Cloud support team if you are interested.
      JOB_STATE_PAUSING: `JOB_STATE_PAUSING` indicates that the job is in the
        process of pausing. A pausing job will stop processing, archive in-
        flight Shuffle data, and transition to `JOB_STATE_PAUSED`. Jobs in
        this state can transition to `JOB_STATE_CANCELLING` if cancellation is
        requested, or can transition back to `JOB_STATE_RUNNING` if the pause
        fails to complete.
      JOB_STATE_PAUSED: `JOB_STATE_PAUSED` indicates that the job is not
        currently processing. Jobs in this state can transition back to
        `JOB_STATE_RUNNING` to continue processing where they left off, or can
        transition to `JOB_STATE_CANCELLING` if cancellation is requested.
    """
    JOB_STATE_UNKNOWN = 0
    JOB_STATE_STOPPED = 1
    JOB_STATE_RUNNING = 2
    JOB_STATE_DONE = 3
    JOB_STATE_FAILED = 4
    JOB_STATE_CANCELLED = 5
    JOB_STATE_UPDATED = 6
    JOB_STATE_DRAINING = 7
    JOB_STATE_DRAINED = 8
    JOB_STATE_PENDING = 9
    JOB_STATE_CANCELLING = 10
    JOB_STATE_QUEUED = 11
    JOB_STATE_RESOURCE_CLEANING_UP = 12
    JOB_STATE_PAUSING = 13
    JOB_STATE_PAUSED = 14

  currentStateTime = _messages.StringField(1)
  executionStageName = _messages.StringField(2)
  executionStageState = _messages.EnumField('ExecutionStageStateValueValuesEnum', 3)


class ExecutionStageSummary(_messages.Message):
  r"""Description of the composing transforms, names/ids, and input/outputs of
  a stage of execution. Some composing transforms and sources may have been
  generated by the Dataflow service during execution planning.

  Enums:
    KindValueValuesEnum: Type of transform this stage is executing.

  Fields:
    componentSource: Collections produced and consumed by component transforms
      of this stage.
    componentTransform: Transforms that comprise this execution stage.
    id: Dataflow service generated id for this stage.
    inputSource: Input sources for this stage.
    kind: Type of transform this stage is executing.
    name: Dataflow service generated name for this stage.
    outputSource: Output sources for this stage.
    prerequisiteStage: Other stages that must complete before this stage can
      run.
  """

  class KindValueValuesEnum(_messages.Enum):
    r"""Type of transform this stage is executing.

    Values:
      UNKNOWN_KIND: Unrecognized transform type.
      PAR_DO_KIND: ParDo transform.
      GROUP_BY_KEY_KIND: Group By Key transform.
      FLATTEN_KIND: Flatten transform.
      READ_KIND: Read transform.
      WRITE_KIND: Write transform.
      CONSTANT_KIND: Constructs from a constant value, such as with Create.of.
      SINGLETON_KIND: Creates a Singleton view of a collection.
      SHUFFLE_KIND: Opening or closing a shuffle session, often as part of a
        GroupByKey.
    """
    UNKNOWN_KIND = 0
    PAR_DO_KIND = 1
    GROUP_BY_KEY_KIND = 2
    FLATTEN_KIND = 3
    READ_KIND = 4
    WRITE_KIND = 5
    CONSTANT_KIND = 6
    SINGLETON_KIND = 7
    SHUFFLE_KIND = 8

  componentSource = _messages.MessageField('ComponentSource', 1, repeated=True)
  componentTransform = _messages.MessageField('ComponentTransform', 2, repeated=True)
  id = _messages.StringField(3)
  inputSource = _messages.MessageField('StageSource', 4, repeated=True)
  kind = _messages.EnumField('KindValueValuesEnum', 5)
  name = _messages.StringField(6)
  outputSource = _messages.MessageField('StageSource', 7, repeated=True)
  prerequisiteStage = _messages.StringField(8, repeated=True)


class FailedLocation(_messages.Message):
  r"""Indicates which [regional endpoint]
  (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) failed
  to respond to a request for data.

  Fields:
    name: The name of the [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that failed to respond.
  """

  name = _messages.StringField(1)


class FileIODetails(_messages.Message):
  r"""Metadata for a File connector used by the job.

  Fields:
    filePattern: File Pattern used to access files by the connector.
  """

  filePattern = _messages.StringField(1)


class FlattenInstruction(_messages.Message):
  r"""An instruction that copies its inputs (zero or more) to its (single)
  output.

  Fields:
    inputs: Describes the inputs to the flatten instruction.
  """

  inputs = _messages.MessageField('InstructionInput', 1, repeated=True)


class FlexTemplateRuntimeEnvironment(_messages.Message):
  r"""The environment values to be set at runtime for flex template.

  Enums:
    AutoscalingAlgorithmValueValuesEnum: The algorithm to use for autoscaling
    FlexrsGoalValueValuesEnum: Set FlexRS goal for the job.
      https://cloud.google.com/dataflow/docs/guides/flexrs
    IpConfigurationValueValuesEnum: Configuration for VM IPs.
    StreamingModeValueValuesEnum: Optional. Specifies the Streaming Engine
      message processing guarantees. Reduces cost and latency but might result
      in duplicate messages committed to storage. Designed to run simple
      mapping streaming ETL jobs at the lowest cost. For example, Change Data
      Capture (CDC) to BigQuery is a canonical use case. For more information,
      see [Set the pipeline streaming
      mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes).

  Messages:
    AdditionalUserLabelsValue: Additional user labels to be specified for the
      job. Keys and values must follow the restrictions specified in the
      [labeling restrictions](https://cloud.google.com/compute/docs/labeling-
      resources#restrictions) page. An object containing a list of "key":
      value pairs. Example: { "name": "wrench", "mass": "1kg", "count": "3" }.

  Fields:
    additionalExperiments: Additional experiment flags for the job.
    additionalPipelineOptions: Optional. Additional pipeline option flags for
      the job.
    additionalUserLabels: Additional user labels to be specified for the job.
      Keys and values must follow the restrictions specified in the [labeling
      restrictions](https://cloud.google.com/compute/docs/labeling-
      resources#restrictions) page. An object containing a list of "key":
      value pairs. Example: { "name": "wrench", "mass": "1kg", "count": "3" }.
    autoscalingAlgorithm: The algorithm to use for autoscaling
    diskSizeGb: Worker disk size, in gigabytes.
    dumpHeapOnOom: If true, when processing time is spent almost entirely on
      garbage collection (GC), saves a heap dump before ending the thread or
      process. If false, ends the thread or process without saving a heap
      dump. Does not save a heap dump when the Java Virtual Machine (JVM) has
      an out of memory error during processing. The location of the heap file
      is either echoed back to the user, or the user is given the opportunity
      to download the heap file.
    enableLauncherVmSerialPortLogging: If true serial port logging will be
      enabled for the launcher VM.
    enableStreamingEngine: Whether to enable Streaming Engine for the job.
    flexrsGoal: Set FlexRS goal for the job.
      https://cloud.google.com/dataflow/docs/guides/flexrs
    ipConfiguration: Configuration for VM IPs.
    kmsKeyName: Name for the Cloud KMS key for the job. Key format is:
      projects//locations//keyRings//cryptoKeys/
    launcherMachineType: The machine type to use for launching the job. If not
      set, Dataflow will select a default machine type.
    machineType: The machine type to use for the job. Defaults to the value
      from the template if not specified.
    maxWorkers: The maximum number of Google Compute Engine instances to be
      made available to your pipeline during execution, from 1 to 1000.
    network: Network to which VMs will be assigned. If empty or unspecified,
      the service will use the network "default".
    numWorkers: The initial number of Google Compute Engine instances for the
      job.
    saveHeapDumpsToGcsPath: Cloud Storage bucket (directory) to upload heap
      dumps to. Enabling this field implies that `dump_heap_on_oom` is set to
      true.
    sdkContainerImage: Docker registry location of container image to use for
      the 'worker harness. Default is the container for the version of the
      SDK. Note this field is only valid for portable pipelines.
    serviceAccountEmail: The email address of the service account to run the
      job as.
    stagingLocation: The Cloud Storage path for staging local files. Must be a
      valid Cloud Storage URL, beginning with `gs://`.
    streamingMode: Optional. Specifies the Streaming Engine message processing
      guarantees. Reduces cost and latency but might result in duplicate
      messages committed to storage. Designed to run simple mapping streaming
      ETL jobs at the lowest cost. For example, Change Data Capture (CDC) to
      BigQuery is a canonical use case. For more information, see [Set the
      pipeline streaming
      mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes).
    subnetwork: Subnetwork to which VMs will be assigned, if desired. You can
      specify a subnetwork using either a complete URL or an abbreviated path.
      Expected to be of the form "https://www.googleapis.com/compute/v1/projec
      ts/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" or
      "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in
      a Shared VPC network, you must use the complete URL.
    tempLocation: The Cloud Storage path to use for temporary files. Must be a
      valid Cloud Storage URL, beginning with `gs://`.
    workerRegion: The Compute Engine region
      (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
      which worker processing should occur, e.g. "us-west1". Mutually
      exclusive with worker_zone. If neither worker_region nor worker_zone is
      specified, default to the control plane's region.
    workerZone: The Compute Engine zone
      (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
      which worker processing should occur, e.g. "us-west1-a". Mutually
      exclusive with worker_region. If neither worker_region nor worker_zone
      is specified, a zone in the control plane's region is chosen based on
      available capacity. If both `worker_zone` and `zone` are set,
      `worker_zone` takes precedence.
    zone: The Compute Engine [availability
      zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones)
      for launching worker instances to run your pipeline. In the future,
      worker_zone will take precedence.
  """

  class AutoscalingAlgorithmValueValuesEnum(_messages.Enum):
    r"""The algorithm to use for autoscaling

    Values:
      AUTOSCALING_ALGORITHM_UNKNOWN: The algorithm is unknown, or unspecified.
      AUTOSCALING_ALGORITHM_NONE: Disable autoscaling.
      AUTOSCALING_ALGORITHM_BASIC: Increase worker count over time to reduce
        job execution time.
    """
    AUTOSCALING_ALGORITHM_UNKNOWN = 0
    AUTOSCALING_ALGORITHM_NONE = 1
    AUTOSCALING_ALGORITHM_BASIC = 2

  class FlexrsGoalValueValuesEnum(_messages.Enum):
    r"""Set FlexRS goal for the job.
    https://cloud.google.com/dataflow/docs/guides/flexrs

    Values:
      FLEXRS_UNSPECIFIED: Run in the default mode.
      FLEXRS_SPEED_OPTIMIZED: Optimize for lower execution time.
      FLEXRS_COST_OPTIMIZED: Optimize for lower cost.
    """
    FLEXRS_UNSPECIFIED = 0
    FLEXRS_SPEED_OPTIMIZED = 1
    FLEXRS_COST_OPTIMIZED = 2

  class IpConfigurationValueValuesEnum(_messages.Enum):
    r"""Configuration for VM IPs.

    Values:
      WORKER_IP_UNSPECIFIED: The configuration is unknown, or unspecified.
      WORKER_IP_PUBLIC: Workers should have public IP addresses.
      WORKER_IP_PRIVATE: Workers should have private IP addresses.
    """
    WORKER_IP_UNSPECIFIED = 0
    WORKER_IP_PUBLIC = 1
    WORKER_IP_PRIVATE = 2

  class StreamingModeValueValuesEnum(_messages.Enum):
    r"""Optional. Specifies the Streaming Engine message processing
    guarantees. Reduces cost and latency but might result in duplicate
    messages committed to storage. Designed to run simple mapping streaming
    ETL jobs at the lowest cost. For example, Change Data Capture (CDC) to
    BigQuery is a canonical use case. For more information, see [Set the
    pipeline streaming
    mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes).

    Values:
      STREAMING_MODE_UNSPECIFIED: Run in the default mode.
      STREAMING_MODE_EXACTLY_ONCE: In this mode, message deduplication is
        performed against persistent state to make sure each message is
        processed and committed to storage exactly once.
      STREAMING_MODE_AT_LEAST_ONCE: Message deduplication is not performed.
        Messages might be processed multiple times, and the results are
        applied multiple times. Note: Setting this value also enables
        Streaming Engine and Streaming Engine resource-based billing.
    """
    STREAMING_MODE_UNSPECIFIED = 0
    STREAMING_MODE_EXACTLY_ONCE = 1
    STREAMING_MODE_AT_LEAST_ONCE = 2

  @encoding.MapUnrecognizedFields('additionalProperties')
  class AdditionalUserLabelsValue(_messages.Message):
    r"""Additional user labels to be specified for the job. Keys and values
    must follow the restrictions specified in the [labeling
    restrictions](https://cloud.google.com/compute/docs/labeling-
    resources#restrictions) page. An object containing a list of "key": value
    pairs. Example: { "name": "wrench", "mass": "1kg", "count": "3" }.

    Messages:
      AdditionalProperty: An additional property for a
        AdditionalUserLabelsValue object.

    Fields:
      additionalProperties: Additional properties of type
        AdditionalUserLabelsValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a AdditionalUserLabelsValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  additionalExperiments = _messages.StringField(1, repeated=True)
  additionalPipelineOptions = _messages.StringField(2, repeated=True)
  additionalUserLabels = _messages.MessageField('AdditionalUserLabelsValue', 3)
  autoscalingAlgorithm = _messages.EnumField('AutoscalingAlgorithmValueValuesEnum', 4)
  diskSizeGb = _messages.IntegerField(5, variant=_messages.Variant.INT32)
  dumpHeapOnOom = _messages.BooleanField(6)
  enableLauncherVmSerialPortLogging = _messages.BooleanField(7)
  enableStreamingEngine = _messages.BooleanField(8)
  flexrsGoal = _messages.EnumField('FlexrsGoalValueValuesEnum', 9)
  ipConfiguration = _messages.EnumField('IpConfigurationValueValuesEnum', 10)
  kmsKeyName = _messages.StringField(11)
  launcherMachineType = _messages.StringField(12)
  machineType = _messages.StringField(13)
  maxWorkers = _messages.IntegerField(14, variant=_messages.Variant.INT32)
  network = _messages.StringField(15)
  numWorkers = _messages.IntegerField(16, variant=_messages.Variant.INT32)
  saveHeapDumpsToGcsPath = _messages.StringField(17)
  sdkContainerImage = _messages.StringField(18)
  serviceAccountEmail = _messages.StringField(19)
  stagingLocation = _messages.StringField(20)
  streamingMode = _messages.EnumField('StreamingModeValueValuesEnum', 21)
  subnetwork = _messages.StringField(22)
  tempLocation = _messages.StringField(23)
  workerRegion = _messages.StringField(24)
  workerZone = _messages.StringField(25)
  zone = _messages.StringField(26)


class FloatingPointList(_messages.Message):
  r"""A metric value representing a list of floating point numbers.

  Fields:
    elements: Elements of the list.
  """

  elements = _messages.FloatField(1, repeated=True)


class FloatingPointMean(_messages.Message):
  r"""A representation of a floating point mean metric contribution.

  Fields:
    count: The number of values being aggregated.
    sum: The sum of all values being aggregated.
  """

  count = _messages.MessageField('SplitInt64', 1)
  sum = _messages.FloatField(2)


class GPUUsage(_messages.Message):
  r"""Information about the GPU usage on the worker.

  Fields:
    timestamp: Required. Timestamp of the measurement.
    utilization: Required. Utilization info about the GPU.
  """

  timestamp = _messages.StringField(1)
  utilization = _messages.MessageField('GPUUtilization', 2)


class GPUUtilization(_messages.Message):
  r"""Utilization details about the GPU.

  Fields:
    rate: Required. GPU utilization rate of any kernel over the last sample
      period in the range of [0, 1].
  """

  rate = _messages.FloatField(1)


class GetDebugConfigRequest(_messages.Message):
  r"""Request to get updated debug configuration for component.

  Fields:
    componentId: The internal component id for which debug configuration is
      requested.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains the job specified by job_id.
    workerId: The worker id, i.e., VM hostname.
  """

  componentId = _messages.StringField(1)
  location = _messages.StringField(2)
  workerId = _messages.StringField(3)


class GetDebugConfigResponse(_messages.Message):
  r"""Response to a get debug configuration request.

  Fields:
    config: The encoded debug configuration for the requested component.
  """

  config = _messages.StringField(1)


class GetTemplateResponse(_messages.Message):
  r"""The response to a GetTemplate request.

  Enums:
    TemplateTypeValueValuesEnum: Template Type.

  Fields:
    metadata: The template metadata describing the template name, available
      parameters, etc.
    runtimeMetadata: Describes the runtime metadata with SDKInfo and available
      parameters.
    status: The status of the get template request. Any problems with the
      request will be indicated in the error_details.
    templateType: Template Type.
  """

  class TemplateTypeValueValuesEnum(_messages.Enum):
    r"""Template Type.

    Values:
      UNKNOWN: Unknown Template Type.
      LEGACY: Legacy Template.
      FLEX: Flex Template.
    """
    UNKNOWN = 0
    LEGACY = 1
    FLEX = 2

  metadata = _messages.MessageField('TemplateMetadata', 1)
  runtimeMetadata = _messages.MessageField('RuntimeMetadata', 2)
  status = _messages.MessageField('Status', 3)
  templateType = _messages.EnumField('TemplateTypeValueValuesEnum', 4)


class GetWorkerStacktracesRequest(_messages.Message):
  r"""Request to get worker stacktraces from debug capture.

  Fields:
    endTime: The end time for the stacktrace query. The returned stacktraces
      will be a recent stack trace at or shortly before this time.
    workerId: The worker for which to get stacktraces. The returned
      stacktraces will be for the SDK harness running on this worker.
  """

  endTime = _messages.StringField(1)
  workerId = _messages.StringField(2)


class GetWorkerStacktracesResponse(_messages.Message):
  r"""Response to get worker stacktraces from debug capture.

  Fields:
    sdks: Repeated as unified worker may have multiple SDK processes.
  """

  sdks = _messages.MessageField('Sdk', 1, repeated=True)


class Histogram(_messages.Message):
  r"""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.

  Fields:
    bucketCounts: 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).
    firstBucketOffset: 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 = _messages.IntegerField(1, repeated=True)
  firstBucketOffset = _messages.IntegerField(2, variant=_messages.Variant.INT32)


class HotKeyDebuggingInfo(_messages.Message):
  r"""Information useful for debugging a hot key detection.

  Messages:
    DetectedHotKeysValue: Debugging information for each detected hot key.
      Keyed by a hash of the key.

  Fields:
    detectedHotKeys: Debugging information for each detected hot key. Keyed by
      a hash of the key.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class DetectedHotKeysValue(_messages.Message):
    r"""Debugging information for each detected hot key. Keyed by a hash of
    the key.

    Messages:
      AdditionalProperty: An additional property for a DetectedHotKeysValue
        object.

    Fields:
      additionalProperties: Additional properties of type DetectedHotKeysValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a DetectedHotKeysValue object.

      Fields:
        key: Name of the additional property.
        value: A HotKeyInfo attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('HotKeyInfo', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  detectedHotKeys = _messages.MessageField('DetectedHotKeysValue', 1)


class HotKeyDetection(_messages.Message):
  r"""Proto describing a hot key detected on a given WorkItem.

  Fields:
    hotKeyAge: The age of the hot key measured from when it was first
      detected.
    systemName: System-defined name of the step containing this hot key.
      Unique across the workflow.
    userStepName: User-provided name of the step that contains this hot key.
  """

  hotKeyAge = _messages.StringField(1)
  systemName = _messages.StringField(2)
  userStepName = _messages.StringField(3)


class HotKeyInfo(_messages.Message):
  r"""Information about a hot key.

  Fields:
    hotKeyAge: The age of the hot key measured from when it was first
      detected.
    key: A detected hot key that is causing limited parallelism. This field
      will be populated only if the following flag is set to true: "--
      enable_hot_key_logging".
    keyTruncated: If true, then the above key is truncated and cannot be
      deserialized. This occurs if the key above is populated and the key size
      is >5MB.
  """

  hotKeyAge = _messages.StringField(1)
  key = _messages.StringField(2)
  keyTruncated = _messages.BooleanField(3)


class InstructionInput(_messages.Message):
  r"""An input of an instruction, as a reference to an output of a producer
  instruction.

  Fields:
    outputNum: The output index (origin zero) within the producer.
    producerInstructionIndex: The index (origin zero) of the parallel
      instruction that produces the output to be consumed by this input. This
      index is relative to the list of instructions in this input's
      instruction's containing MapTask.
  """

  outputNum = _messages.IntegerField(1, variant=_messages.Variant.INT32)
  producerInstructionIndex = _messages.IntegerField(2, variant=_messages.Variant.INT32)


class InstructionOutput(_messages.Message):
  r"""An output of an instruction.

  Messages:
    CodecValue: The codec to use to encode data being written via this output.

  Fields:
    codec: The codec to use to encode data being written via this output.
    name: The user-provided name of this output.
    onlyCountKeyBytes: For system-generated byte and mean byte metrics,
      certain instructions should only report the key size.
    onlyCountValueBytes: For system-generated byte and mean byte metrics,
      certain instructions should only report the value size.
    originalName: System-defined name for this output in the original workflow
      graph. Outputs that do not contribute to an original instruction do not
      set this.
    systemName: System-defined name of this output. Unique across the
      workflow.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class CodecValue(_messages.Message):
    r"""The codec to use to encode data being written via this output.

    Messages:
      AdditionalProperty: An additional property for a CodecValue object.

    Fields:
      additionalProperties: Properties of the object.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a CodecValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  codec = _messages.MessageField('CodecValue', 1)
  name = _messages.StringField(2)
  onlyCountKeyBytes = _messages.BooleanField(3)
  onlyCountValueBytes = _messages.BooleanField(4)
  originalName = _messages.StringField(5)
  systemName = _messages.StringField(6)


class IntegerGauge(_messages.Message):
  r"""A metric value representing temporal values of a variable.

  Fields:
    timestamp: The time at which this value was measured. Measured as msecs
      from epoch.
    value: The value of the variable represented by this gauge.
  """

  timestamp = _messages.StringField(1)
  value = _messages.MessageField('SplitInt64', 2)


class IntegerList(_messages.Message):
  r"""A metric value representing a list of integers.

  Fields:
    elements: Elements of the list.
  """

  elements = _messages.MessageField('SplitInt64', 1, repeated=True)


class IntegerMean(_messages.Message):
  r"""A representation of an integer mean metric contribution.

  Fields:
    count: The number of values being aggregated.
    sum: The sum of all values being aggregated.
  """

  count = _messages.MessageField('SplitInt64', 1)
  sum = _messages.MessageField('SplitInt64', 2)


class Job(_messages.Message):
  r"""Defines a job to be run by the Cloud Dataflow service. Do not enter
  confidential information when you supply string values using the API.

  Enums:
    CurrentStateValueValuesEnum: The current state of the job. Jobs are
      created in the `JOB_STATE_STOPPED` state unless otherwise specified. A
      job in the `JOB_STATE_RUNNING` state may asynchronously enter a terminal
      state. After a job has reached a terminal state, no further state
      updates may be made. This field might be mutated by the Dataflow
      service; callers cannot mutate it.
    RequestedStateValueValuesEnum: The job's requested state. Applies to
      `UpdateJob` requests. Set `requested_state` with `UpdateJob` requests to
      switch between the states `JOB_STATE_STOPPED` and `JOB_STATE_RUNNING`.
      You can also use `UpdateJob` requests to change a job's state from
      `JOB_STATE_RUNNING` to `JOB_STATE_CANCELLED`, `JOB_STATE_DONE`, or
      `JOB_STATE_DRAINED`. These states irrevocably terminate the job if it
      hasn't already reached a terminal state. This field has no effect on
      `CreateJob` requests.
    TypeValueValuesEnum: Optional. The type of Dataflow job.

  Messages:
    LabelsValue: User-defined labels for this job. The labels map can contain
      no more than 64 entries. Entries of the labels map are UTF8 strings that
      comply with the following restrictions: * Keys must conform to regexp:
      \p{Ll}\p{Lo}{0,62} * Values must conform to regexp:
      [\p{Ll}\p{Lo}\p{N}_-]{0,63} * Both keys and values are additionally
      constrained to be <= 128 bytes in size.
    TransformNameMappingValue: Optional. The map of transform name prefixes of
      the job to be replaced to the corresponding name prefixes of the new
      job.

  Fields:
    clientRequestId: The client's unique identifier of the job, re-used across
      retried attempts. If this field is set, the service will ensure its
      uniqueness. The request to create a job will fail if the service has
      knowledge of a previously submitted job with the same client's ID and
      job name. The caller may use this field to ensure idempotence of job
      creation across retried attempts to create a job. By default, the field
      is empty and, in that case, the service ignores it.
    createTime: The timestamp when the job was initially created. Immutable
      and set by the Cloud Dataflow service.
    createdFromSnapshotId: If this is specified, the job's initial state is
      populated from the given snapshot.
    currentState: The current state of the job. Jobs are created in the
      `JOB_STATE_STOPPED` state unless otherwise specified. A job in the
      `JOB_STATE_RUNNING` state may asynchronously enter a terminal state.
      After a job has reached a terminal state, no further state updates may
      be made. This field might be mutated by the Dataflow service; callers
      cannot mutate it.
    currentStateTime: The timestamp associated with the current state.
    environment: Optional. The environment for the job.
    executionInfo: Deprecated.
    id: The unique ID of this job. This field is set by the Dataflow service
      when the job is created, and is immutable for the life of the job.
    jobMetadata: This field is populated by the Dataflow service to support
      filtering jobs by the metadata values provided here. Populated for
      ListJobs and all GetJob views SUMMARY and higher.
    labels: User-defined labels for this job. The labels map can contain no
      more than 64 entries. Entries of the labels map are UTF8 strings that
      comply with the following restrictions: * Keys must conform to regexp:
      \p{Ll}\p{Lo}{0,62} * Values must conform to regexp:
      [\p{Ll}\p{Lo}\p{N}_-]{0,63} * Both keys and values are additionally
      constrained to be <= 128 bytes in size.
    location: Optional. The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains this job.
    name: Optional. The user-specified Dataflow job name. Only one active job
      with a given name can exist in a project within one region at any given
      time. Jobs in different regions can have the same name. If a caller
      attempts to create a job with the same name as an active job that
      already exists, the attempt returns the existing job. The name must
      match the regular expression `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?`
    pausable: Output only. Indicates whether the job can be paused.
    pipelineDescription: Preliminary field: The format of this data may change
      at any time. A description of the user pipeline and stages through which
      it is executed. Created by Cloud Dataflow service. Only retrieved with
      JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL.
    projectId: The ID of the Google Cloud project that the job belongs to.
    replaceJobId: If this job is an update of an existing job, this field is
      the job ID of the job it replaced. When sending a `CreateJobRequest`,
      you can update a job by specifying it here. The job named here is
      stopped, and its intermediate state is transferred to this job.
    replacedByJobId: If another job is an update of this job (and thus, this
      job is in `JOB_STATE_UPDATED`), this field contains the ID of that job.
    requestedState: The job's requested state. Applies to `UpdateJob`
      requests. Set `requested_state` with `UpdateJob` requests to switch
      between the states `JOB_STATE_STOPPED` and `JOB_STATE_RUNNING`. You can
      also use `UpdateJob` requests to change a job's state from
      `JOB_STATE_RUNNING` to `JOB_STATE_CANCELLED`, `JOB_STATE_DONE`, or
      `JOB_STATE_DRAINED`. These states irrevocably terminate the job if it
      hasn't already reached a terminal state. This field has no effect on
      `CreateJob` requests.
    runtimeUpdatableParams: This field may ONLY be modified at runtime using
      the projects.jobs.update method to adjust job behavior. This field has
      no effect when specified at job creation.
    satisfiesPzi: Output only. Reserved for future use. This field is set only
      in responses from the server; it is ignored if it is set in any
      requests.
    satisfiesPzs: Reserved for future use. This field is set only in responses
      from the server; it is ignored if it is set in any requests.
    serviceResources: Output only. Resources used by the Dataflow Service to
      run the job.
    stageStates: This field may be mutated by the Cloud Dataflow service;
      callers cannot mutate it.
    startTime: The timestamp when the job was started (transitioned to
      JOB_STATE_PENDING). Flexible resource scheduling jobs are started with
      some delay after job creation, so start_time is unset before start and
      is updated when the job is started by the Cloud Dataflow service. For
      other jobs, start_time always equals to create_time and is immutable and
      set by the Cloud Dataflow service.
    steps: Exactly one of step or steps_location should be specified. The top-
      level steps that constitute the entire job. Only retrieved with
      JOB_VIEW_ALL.
    stepsLocation: The Cloud Storage location where the steps are stored.
    tempFiles: A set of files the system should be aware of that are used for
      temporary storage. These temporary files will be removed on job
      completion. No duplicates are allowed. No file patterns are supported.
      The supported files are: Google Cloud Storage:
      storage.googleapis.com/{bucket}/{object}
      bucket.storage.googleapis.com/{object}
    transformNameMapping: Optional. The map of transform name prefixes of the
      job to be replaced to the corresponding name prefixes of the new job.
    type: Optional. The type of Dataflow job.
  """

  class CurrentStateValueValuesEnum(_messages.Enum):
    r"""The current state of the job. Jobs are created in the
    `JOB_STATE_STOPPED` state unless otherwise specified. A job in the
    `JOB_STATE_RUNNING` state may asynchronously enter a terminal state. After
    a job has reached a terminal state, no further state updates may be made.
    This field might be mutated by the Dataflow service; callers cannot mutate
    it.

    Values:
      JOB_STATE_UNKNOWN: The job's run state isn't specified.
      JOB_STATE_STOPPED: `JOB_STATE_STOPPED` indicates that the job has not
        yet started to run.
      JOB_STATE_RUNNING: `JOB_STATE_RUNNING` indicates that the job is
        currently running.
      JOB_STATE_DONE: `JOB_STATE_DONE` indicates that the job has successfully
        completed. This is a terminal job state. This state may be set by the
        Cloud Dataflow service, as a transition from `JOB_STATE_RUNNING`. It
        may also be set via a Cloud Dataflow `UpdateJob` call, if the job has
        not yet reached a terminal state.
      JOB_STATE_FAILED: `JOB_STATE_FAILED` indicates that the job has failed.
        This is a terminal job state. This state may only be set by the Cloud
        Dataflow service, and only as a transition from `JOB_STATE_RUNNING`.
      JOB_STATE_CANCELLED: `JOB_STATE_CANCELLED` indicates that the job has
        been explicitly cancelled. This is a terminal job state. This state
        may only be set via a Cloud Dataflow `UpdateJob` call, and only if the
        job has not yet reached another terminal state.
      JOB_STATE_UPDATED: `JOB_STATE_UPDATED` indicates that the job was
        successfully updated, meaning that this job was stopped and another
        job was started, inheriting state from this one. This is a terminal
        job state. This state may only be set by the Cloud Dataflow service,
        and only as a transition from `JOB_STATE_RUNNING`.
      JOB_STATE_DRAINING: `JOB_STATE_DRAINING` indicates that the job is in
        the process of draining. A draining job has stopped pulling from its
        input sources and is processing any data that remains in-flight. This
        state may be set via a Cloud Dataflow `UpdateJob` call, but only as a
        transition from `JOB_STATE_RUNNING`. Jobs that are draining may only
        transition to `JOB_STATE_DRAINED`, `JOB_STATE_CANCELLED`, or
        `JOB_STATE_FAILED`.
      JOB_STATE_DRAINED: `JOB_STATE_DRAINED` indicates that the job has been
        drained. A drained job terminated by stopping pulling from its input
        sources and processing any data that remained in-flight when draining
        was requested. This state is a terminal state, may only be set by the
        Cloud Dataflow service, and only as a transition from
        `JOB_STATE_DRAINING`.
      JOB_STATE_PENDING: `JOB_STATE_PENDING` indicates that the job has been
        created but is not yet running. Jobs that are pending may only
        transition to `JOB_STATE_RUNNING`, or `JOB_STATE_FAILED`.
      JOB_STATE_CANCELLING: `JOB_STATE_CANCELLING` indicates that the job has
        been explicitly cancelled and is in the process of stopping. Jobs that
        are cancelling may only transition to `JOB_STATE_CANCELLED` or
        `JOB_STATE_FAILED`.
      JOB_STATE_QUEUED: `JOB_STATE_QUEUED` indicates that the job has been
        created but is being delayed until launch. Jobs that are queued may
        only transition to `JOB_STATE_PENDING` or `JOB_STATE_CANCELLED`.
      JOB_STATE_RESOURCE_CLEANING_UP: `JOB_STATE_RESOURCE_CLEANING_UP`
        indicates that the batch job's associated resources are currently
        being cleaned up after a successful run. Currently, this is an opt-in
        feature, please reach out to Cloud support team if you are interested.
      JOB_STATE_PAUSING: `JOB_STATE_PAUSING` indicates that the job is in the
        process of pausing. A pausing job will stop processing, archive in-
        flight Shuffle data, and transition to `JOB_STATE_PAUSED`. Jobs in
        this state can transition to `JOB_STATE_CANCELLING` if cancellation is
        requested, or can transition back to `JOB_STATE_RUNNING` if the pause
        fails to complete.
      JOB_STATE_PAUSED: `JOB_STATE_PAUSED` indicates that the job is not
        currently processing. Jobs in this state can transition back to
        `JOB_STATE_RUNNING` to continue processing where they left off, or can
        transition to `JOB_STATE_CANCELLING` if cancellation is requested.
    """
    JOB_STATE_UNKNOWN = 0
    JOB_STATE_STOPPED = 1
    JOB_STATE_RUNNING = 2
    JOB_STATE_DONE = 3
    JOB_STATE_FAILED = 4
    JOB_STATE_CANCELLED = 5
    JOB_STATE_UPDATED = 6
    JOB_STATE_DRAINING = 7
    JOB_STATE_DRAINED = 8
    JOB_STATE_PENDING = 9
    JOB_STATE_CANCELLING = 10
    JOB_STATE_QUEUED = 11
    JOB_STATE_RESOURCE_CLEANING_UP = 12
    JOB_STATE_PAUSING = 13
    JOB_STATE_PAUSED = 14

  class RequestedStateValueValuesEnum(_messages.Enum):
    r"""The job's requested state. Applies to `UpdateJob` requests. Set
    `requested_state` with `UpdateJob` requests to switch between the states
    `JOB_STATE_STOPPED` and `JOB_STATE_RUNNING`. You can also use `UpdateJob`
    requests to change a job's state from `JOB_STATE_RUNNING` to
    `JOB_STATE_CANCELLED`, `JOB_STATE_DONE`, or `JOB_STATE_DRAINED`. These
    states irrevocably terminate the job if it hasn't already reached a
    terminal state. This field has no effect on `CreateJob` requests.

    Values:
      JOB_STATE_UNKNOWN: The job's run state isn't specified.
      JOB_STATE_STOPPED: `JOB_STATE_STOPPED` indicates that the job has not
        yet started to run.
      JOB_STATE_RUNNING: `JOB_STATE_RUNNING` indicates that the job is
        currently running.
      JOB_STATE_DONE: `JOB_STATE_DONE` indicates that the job has successfully
        completed. This is a terminal job state. This state may be set by the
        Cloud Dataflow service, as a transition from `JOB_STATE_RUNNING`. It
        may also be set via a Cloud Dataflow `UpdateJob` call, if the job has
        not yet reached a terminal state.
      JOB_STATE_FAILED: `JOB_STATE_FAILED` indicates that the job has failed.
        This is a terminal job state. This state may only be set by the Cloud
        Dataflow service, and only as a transition from `JOB_STATE_RUNNING`.
      JOB_STATE_CANCELLED: `JOB_STATE_CANCELLED` indicates that the job has
        been explicitly cancelled. This is a terminal job state. This state
        may only be set via a Cloud Dataflow `UpdateJob` call, and only if the
        job has not yet reached another terminal state.
      JOB_STATE_UPDATED: `JOB_STATE_UPDATED` indicates that the job was
        successfully updated, meaning that this job was stopped and another
        job was started, inheriting state from this one. This is a terminal
        job state. This state may only be set by the Cloud Dataflow service,
        and only as a transition from `JOB_STATE_RUNNING`.
      JOB_STATE_DRAINING: `JOB_STATE_DRAINING` indicates that the job is in
        the process of draining. A draining job has stopped pulling from its
        input sources and is processing any data that remains in-flight. This
        state may be set via a Cloud Dataflow `UpdateJob` call, but only as a
        transition from `JOB_STATE_RUNNING`. Jobs that are draining may only
        transition to `JOB_STATE_DRAINED`, `JOB_STATE_CANCELLED`, or
        `JOB_STATE_FAILED`.
      JOB_STATE_DRAINED: `JOB_STATE_DRAINED` indicates that the job has been
        drained. A drained job terminated by stopping pulling from its input
        sources and processing any data that remained in-flight when draining
        was requested. This state is a terminal state, may only be set by the
        Cloud Dataflow service, and only as a transition from
        `JOB_STATE_DRAINING`.
      JOB_STATE_PENDING: `JOB_STATE_PENDING` indicates that the job has been
        created but is not yet running. Jobs that are pending may only
        transition to `JOB_STATE_RUNNING`, or `JOB_STATE_FAILED`.
      JOB_STATE_CANCELLING: `JOB_STATE_CANCELLING` indicates that the job has
        been explicitly cancelled and is in the process of stopping. Jobs that
        are cancelling may only transition to `JOB_STATE_CANCELLED` or
        `JOB_STATE_FAILED`.
      JOB_STATE_QUEUED: `JOB_STATE_QUEUED` indicates that the job has been
        created but is being delayed until launch. Jobs that are queued may
        only transition to `JOB_STATE_PENDING` or `JOB_STATE_CANCELLED`.
      JOB_STATE_RESOURCE_CLEANING_UP: `JOB_STATE_RESOURCE_CLEANING_UP`
        indicates that the batch job's associated resources are currently
        being cleaned up after a successful run. Currently, this is an opt-in
        feature, please reach out to Cloud support team if you are interested.
      JOB_STATE_PAUSING: `JOB_STATE_PAUSING` indicates that the job is in the
        process of pausing. A pausing job will stop processing, archive in-
        flight Shuffle data, and transition to `JOB_STATE_PAUSED`. Jobs in
        this state can transition to `JOB_STATE_CANCELLING` if cancellation is
        requested, or can transition back to `JOB_STATE_RUNNING` if the pause
        fails to complete.
      JOB_STATE_PAUSED: `JOB_STATE_PAUSED` indicates that the job is not
        currently processing. Jobs in this state can transition back to
        `JOB_STATE_RUNNING` to continue processing where they left off, or can
        transition to `JOB_STATE_CANCELLING` if cancellation is requested.
    """
    JOB_STATE_UNKNOWN = 0
    JOB_STATE_STOPPED = 1
    JOB_STATE_RUNNING = 2
    JOB_STATE_DONE = 3
    JOB_STATE_FAILED = 4
    JOB_STATE_CANCELLED = 5
    JOB_STATE_UPDATED = 6
    JOB_STATE_DRAINING = 7
    JOB_STATE_DRAINED = 8
    JOB_STATE_PENDING = 9
    JOB_STATE_CANCELLING = 10
    JOB_STATE_QUEUED = 11
    JOB_STATE_RESOURCE_CLEANING_UP = 12
    JOB_STATE_PAUSING = 13
    JOB_STATE_PAUSED = 14

  class TypeValueValuesEnum(_messages.Enum):
    r"""Optional. The type of Dataflow job.

    Values:
      JOB_TYPE_UNKNOWN: The type of the job is unspecified, or unknown.
      JOB_TYPE_BATCH: A batch job with a well-defined end point: data is read,
        data is processed, data is written, and the job is done.
      JOB_TYPE_STREAMING: A continuously streaming job with no end: data is
        read, processed, and written continuously.
    """
    JOB_TYPE_UNKNOWN = 0
    JOB_TYPE_BATCH = 1
    JOB_TYPE_STREAMING = 2

  @encoding.MapUnrecognizedFields('additionalProperties')
  class LabelsValue(_messages.Message):
    r"""User-defined labels for this job. The labels map can contain no more
    than 64 entries. Entries of the labels map are UTF8 strings that comply
    with the following restrictions: * Keys must conform to regexp:
    \p{Ll}\p{Lo}{0,62} * Values must conform to regexp:
    [\p{Ll}\p{Lo}\p{N}_-]{0,63} * Both keys and values are additionally
    constrained to be <= 128 bytes in size.

    Messages:
      AdditionalProperty: An additional property for a LabelsValue object.

    Fields:
      additionalProperties: Additional properties of type LabelsValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a LabelsValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  @encoding.MapUnrecognizedFields('additionalProperties')
  class TransformNameMappingValue(_messages.Message):
    r"""Optional. The map of transform name prefixes of the job to be replaced
    to the corresponding name prefixes of the new job.

    Messages:
      AdditionalProperty: An additional property for a
        TransformNameMappingValue object.

    Fields:
      additionalProperties: Additional properties of type
        TransformNameMappingValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a TransformNameMappingValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  clientRequestId = _messages.StringField(1)
  createTime = _messages.StringField(2)
  createdFromSnapshotId = _messages.StringField(3)
  currentState = _messages.EnumField('CurrentStateValueValuesEnum', 4)
  currentStateTime = _messages.StringField(5)
  environment = _messages.MessageField('Environment', 6)
  executionInfo = _messages.MessageField('JobExecutionInfo', 7)
  id = _messages.StringField(8)
  jobMetadata = _messages.MessageField('JobMetadata', 9)
  labels = _messages.MessageField('LabelsValue', 10)
  location = _messages.StringField(11)
  name = _messages.StringField(12)
  pausable = _messages.BooleanField(13)
  pipelineDescription = _messages.MessageField('PipelineDescription', 14)
  projectId = _messages.StringField(15)
  replaceJobId = _messages.StringField(16)
  replacedByJobId = _messages.StringField(17)
  requestedState = _messages.EnumField('RequestedStateValueValuesEnum', 18)
  runtimeUpdatableParams = _messages.MessageField('RuntimeUpdatableParams', 19)
  satisfiesPzi = _messages.BooleanField(20)
  satisfiesPzs = _messages.BooleanField(21)
  serviceResources = _messages.MessageField('ServiceResources', 22)
  stageStates = _messages.MessageField('ExecutionStageState', 23, repeated=True)
  startTime = _messages.StringField(24)
  steps = _messages.MessageField('Step', 25, repeated=True)
  stepsLocation = _messages.StringField(26)
  tempFiles = _messages.StringField(27, repeated=True)
  transformNameMapping = _messages.MessageField('TransformNameMappingValue', 28)
  type = _messages.EnumField('TypeValueValuesEnum', 29)


class JobExecutionDetails(_messages.Message):
  r"""Information about the execution of a job.

  Fields:
    nextPageToken: If present, this response does not contain all requested
      tasks. To obtain the next page of results, repeat the request with
      page_token set to this value.
    stages: The stages of the job execution.
  """

  nextPageToken = _messages.StringField(1)
  stages = _messages.MessageField('StageSummary', 2, repeated=True)


class JobExecutionInfo(_messages.Message):
  r"""Additional information about how a Cloud Dataflow job will be executed
  that isn't contained in the submitted job.

  Messages:
    StagesValue: A mapping from each stage to the information about that
      stage.

  Fields:
    stages: A mapping from each stage to the information about that stage.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class StagesValue(_messages.Message):
    r"""A mapping from each stage to the information about that stage.

    Messages:
      AdditionalProperty: An additional property for a StagesValue object.

    Fields:
      additionalProperties: Additional properties of type StagesValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a StagesValue object.

      Fields:
        key: Name of the additional property.
        value: A JobExecutionStageInfo attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('JobExecutionStageInfo', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  stages = _messages.MessageField('StagesValue', 1)


class JobExecutionStageInfo(_messages.Message):
  r"""Contains information about how a particular google.dataflow.v1beta3.Step
  will be executed.

  Fields:
    stepName: The steps associated with the execution stage. Note that stages
      may have several steps, and that a given step might be run by more than
      one stage.
  """

  stepName = _messages.StringField(1, repeated=True)


class JobMessage(_messages.Message):
  r"""A particular message pertaining to a Dataflow job.

  Enums:
    MessageImportanceValueValuesEnum: Importance level of the message.

  Fields:
    id: Deprecated.
    messageImportance: Importance level of the message.
    messageText: The text of the message.
    time: The timestamp of the message.
  """

  class MessageImportanceValueValuesEnum(_messages.Enum):
    r"""Importance level of the message.

    Values:
      JOB_MESSAGE_IMPORTANCE_UNKNOWN: The message importance isn't specified,
        or is unknown.
      JOB_MESSAGE_DEBUG: The message is at the 'debug' level: typically only
        useful for software engineers working on the code the job is running.
        Typically, Dataflow pipeline runners do not display log messages at
        this level by default.
      JOB_MESSAGE_DETAILED: The message is at the 'detailed' level: somewhat
        verbose, but potentially useful to users. Typically, Dataflow pipeline
        runners do not display log messages at this level by default. These
        messages are displayed by default in the Dataflow monitoring UI.
      JOB_MESSAGE_BASIC: The message is at the 'basic' level: useful for
        keeping track of the execution of a Dataflow pipeline. Typically,
        Dataflow pipeline runners display log messages at this level by
        default, and these messages are displayed by default in the Dataflow
        monitoring UI.
      JOB_MESSAGE_WARNING: The message is at the 'warning' level: indicating a
        condition pertaining to a job which may require human intervention.
        Typically, Dataflow pipeline runners display log messages at this
        level by default, and these messages are displayed by default in the
        Dataflow monitoring UI.
      JOB_MESSAGE_ERROR: The message is at the 'error' level: indicating a
        condition preventing a job from succeeding. Typically, Dataflow
        pipeline runners display log messages at this level by default, and
        these messages are displayed by default in the Dataflow monitoring UI.
    """
    JOB_MESSAGE_IMPORTANCE_UNKNOWN = 0
    JOB_MESSAGE_DEBUG = 1
    JOB_MESSAGE_DETAILED = 2
    JOB_MESSAGE_BASIC = 3
    JOB_MESSAGE_WARNING = 4
    JOB_MESSAGE_ERROR = 5

  id = _messages.StringField(1)
  messageImportance = _messages.EnumField('MessageImportanceValueValuesEnum', 2)
  messageText = _messages.StringField(3)
  time = _messages.StringField(4)


class JobMetadata(_messages.Message):
  r"""Metadata available primarily for filtering jobs. Will be included in the
  ListJob response and Job SUMMARY view.

  Messages:
    UserDisplayPropertiesValue: List of display properties to help UI filter
      jobs.

  Fields:
    bigTableDetails: Identification of a Cloud Bigtable source used in the
      Dataflow job.
    bigqueryDetails: Identification of a BigQuery source used in the Dataflow
      job.
    datastoreDetails: Identification of a Datastore source used in the
      Dataflow job.
    fileDetails: Identification of a File source used in the Dataflow job.
    pubsubDetails: Identification of a Pub/Sub source used in the Dataflow
      job.
    sdkVersion: The SDK version used to run the job.
    spannerDetails: Identification of a Spanner source used in the Dataflow
      job.
    userDisplayProperties: List of display properties to help UI filter jobs.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class UserDisplayPropertiesValue(_messages.Message):
    r"""List of display properties to help UI filter jobs.

    Messages:
      AdditionalProperty: An additional property for a
        UserDisplayPropertiesValue object.

    Fields:
      additionalProperties: Additional properties of type
        UserDisplayPropertiesValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a UserDisplayPropertiesValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  bigTableDetails = _messages.MessageField('BigTableIODetails', 1, repeated=True)
  bigqueryDetails = _messages.MessageField('BigQueryIODetails', 2, repeated=True)
  datastoreDetails = _messages.MessageField('DatastoreIODetails', 3, repeated=True)
  fileDetails = _messages.MessageField('FileIODetails', 4, repeated=True)
  pubsubDetails = _messages.MessageField('PubSubIODetails', 5, repeated=True)
  sdkVersion = _messages.MessageField('SdkVersion', 6)
  spannerDetails = _messages.MessageField('SpannerIODetails', 7, repeated=True)
  userDisplayProperties = _messages.MessageField('UserDisplayPropertiesValue', 8)


class JobMetrics(_messages.Message):
  r"""JobMetrics contains a collection of metrics describing the detailed
  progress of a Dataflow job. Metrics correspond to user-defined and system-
  defined metrics in the job. For more information, see [Dataflow job metrics]
  (https://cloud.google.com/dataflow/docs/guides/using-monitoring-intf). This
  resource captures only the most recent values of each metric; time-series
  data can be queried for them (under the same metric names) from Cloud
  Monitoring.

  Fields:
    metricTime: Timestamp as of which metric values are current.
    metrics: All metrics for this job.
  """

  metricTime = _messages.StringField(1)
  metrics = _messages.MessageField('MetricUpdate', 2, repeated=True)


class KeyRangeDataDiskAssignment(_messages.Message):
  r"""Data disk assignment information for a specific key-range of a sharded
  computation. Currently we only support UTF-8 character splits to simplify
  encoding into JSON.

  Fields:
    dataDisk: The name of the data disk where data for this range is stored.
      This name is local to the Google Cloud Platform project and uniquely
      identifies the disk within that project, for example
      "myproject-1014-104817-4c2-harness-0-disk-1".
    end: The end (exclusive) of the key range.
    start: The start (inclusive) of the key range.
  """

  dataDisk = _messages.StringField(1)
  end = _messages.StringField(2)
  start = _messages.StringField(3)


class KeyRangeLocation(_messages.Message):
  r"""Location information for a specific key-range of a sharded computation.
  Currently we only support UTF-8 character splits to simplify encoding into
  JSON.

  Fields:
    dataDisk: The name of the data disk where data for this range is stored.
      This name is local to the Google Cloud Platform project and uniquely
      identifies the disk within that project, for example
      "myproject-1014-104817-4c2-harness-0-disk-1".
    deliveryEndpoint: The physical location of this range assignment to be
      used for streaming computation cross-worker message delivery.
    deprecatedPersistentDirectory: DEPRECATED. The location of the persistent
      state for this range, as a persistent directory in the worker local
      filesystem.
    end: The end (exclusive) of the key range.
    start: The start (inclusive) of the key range.
  """

  dataDisk = _messages.StringField(1)
  deliveryEndpoint = _messages.StringField(2)
  deprecatedPersistentDirectory = _messages.StringField(3)
  end = _messages.StringField(4)
  start = _messages.StringField(5)


class LaunchFlexTemplateParameter(_messages.Message):
  r"""Launch FlexTemplate Parameter.

  Messages:
    LaunchOptionsValue: Launch options for this flex template job. This is a
      common set of options across languages and templates. This should not be
      used to pass job parameters.
    ParametersValue: The parameters for FlexTemplate. Ex. {"num_workers":"5"}
    TransformNameMappingsValue: Use this to pass transform_name_mappings for
      streaming update jobs. Ex:{"oldTransformName":"newTransformName",...}'

  Fields:
    containerSpec: Spec about the container image to launch.
    containerSpecGcsPath: Cloud Storage path to a file with json serialized
      ContainerSpec as content.
    environment: The runtime environment for the FlexTemplate job
    jobName: Required. The job name to use for the created job. For update job
      request, job name should be same as the existing running job.
    launchOptions: Launch options for this flex template job. This is a common
      set of options across languages and templates. This should not be used
      to pass job parameters.
    parameters: The parameters for FlexTemplate. Ex. {"num_workers":"5"}
    transformNameMappings: Use this to pass transform_name_mappings for
      streaming update jobs. Ex:{"oldTransformName":"newTransformName",...}'
    update: Set this to true if you are sending a request to update a running
      streaming job. When set, the job name should be the same as the running
      job.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class LaunchOptionsValue(_messages.Message):
    r"""Launch options for this flex template job. This is a common set of
    options across languages and templates. This should not be used to pass
    job parameters.

    Messages:
      AdditionalProperty: An additional property for a LaunchOptionsValue
        object.

    Fields:
      additionalProperties: Additional properties of type LaunchOptionsValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a LaunchOptionsValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  @encoding.MapUnrecognizedFields('additionalProperties')
  class ParametersValue(_messages.Message):
    r"""The parameters for FlexTemplate. Ex. {"num_workers":"5"}

    Messages:
      AdditionalProperty: An additional property for a ParametersValue object.

    Fields:
      additionalProperties: Additional properties of type ParametersValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a ParametersValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  @encoding.MapUnrecognizedFields('additionalProperties')
  class TransformNameMappingsValue(_messages.Message):
    r"""Use this to pass transform_name_mappings for streaming update jobs.
    Ex:{"oldTransformName":"newTransformName",...}'

    Messages:
      AdditionalProperty: An additional property for a
        TransformNameMappingsValue object.

    Fields:
      additionalProperties: Additional properties of type
        TransformNameMappingsValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a TransformNameMappingsValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  containerSpec = _messages.MessageField('ContainerSpec', 1)
  containerSpecGcsPath = _messages.StringField(2)
  environment = _messages.MessageField('FlexTemplateRuntimeEnvironment', 3)
  jobName = _messages.StringField(4)
  launchOptions = _messages.MessageField('LaunchOptionsValue', 5)
  parameters = _messages.MessageField('ParametersValue', 6)
  transformNameMappings = _messages.MessageField('TransformNameMappingsValue', 7)
  update = _messages.BooleanField(8)


class LaunchFlexTemplateRequest(_messages.Message):
  r"""A request to launch a Cloud Dataflow job from a FlexTemplate.

  Fields:
    launchParameter: Required. Parameter to launch a job form Flex Template.
    validateOnly: If true, the request is validated but not actually executed.
      Defaults to false.
  """

  launchParameter = _messages.MessageField('LaunchFlexTemplateParameter', 1)
  validateOnly = _messages.BooleanField(2)


class LaunchFlexTemplateResponse(_messages.Message):
  r"""Response to the request to launch a job from Flex Template.

  Fields:
    job: The job that was launched, if the request was not a dry run and the
      job was successfully launched.
  """

  job = _messages.MessageField('Job', 1)


class LaunchTemplateParameters(_messages.Message):
  r"""Parameters to provide to the template being launched. Note that the
  [metadata in the pipeline code]
  (https://cloud.google.com/dataflow/docs/guides/templates/creating-
  templates#metadata) determines which runtime parameters are valid.

  Messages:
    ParametersValue: The runtime parameters to pass to the job.
    TransformNameMappingValue: Only applicable when updating a pipeline. Map
      of transform name prefixes of the job to be replaced to the
      corresponding name prefixes of the new job.

  Fields:
    environment: The runtime environment for the job.
    jobName: Required. The job name to use for the created job. The name must
      match the regular expression `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?`
    parameters: The runtime parameters to pass to the job.
    transformNameMapping: Only applicable when updating a pipeline. Map of
      transform name prefixes of the job to be replaced to the corresponding
      name prefixes of the new job.
    update: If set, replace the existing pipeline with the name specified by
      jobName with this pipeline, preserving state.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class ParametersValue(_messages.Message):
    r"""The runtime parameters to pass to the job.

    Messages:
      AdditionalProperty: An additional property for a ParametersValue object.

    Fields:
      additionalProperties: Additional properties of type ParametersValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a ParametersValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  @encoding.MapUnrecognizedFields('additionalProperties')
  class TransformNameMappingValue(_messages.Message):
    r"""Only applicable when updating a pipeline. Map of transform name
    prefixes of the job to be replaced to the corresponding name prefixes of
    the new job.

    Messages:
      AdditionalProperty: An additional property for a
        TransformNameMappingValue object.

    Fields:
      additionalProperties: Additional properties of type
        TransformNameMappingValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a TransformNameMappingValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  environment = _messages.MessageField('RuntimeEnvironment', 1)
  jobName = _messages.StringField(2)
  parameters = _messages.MessageField('ParametersValue', 3)
  transformNameMapping = _messages.MessageField('TransformNameMappingValue', 4)
  update = _messages.BooleanField(5)


class LaunchTemplateResponse(_messages.Message):
  r"""Response to the request to launch a template.

  Fields:
    job: The job that was launched, if the request was not a dry run and the
      job was successfully launched.
  """

  job = _messages.MessageField('Job', 1)


class LeaseWorkItemRequest(_messages.Message):
  r"""Request to lease WorkItems.

  Messages:
    UnifiedWorkerRequestValue: Untranslated bag-of-bytes WorkRequest from
      UnifiedWorker.

  Fields:
    currentWorkerTime: The current timestamp at the worker.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains the WorkItem's job.
    projectNumber: Optional. The project number of the project this worker
      belongs to.
    requestedLeaseDuration: The initial lease period.
    unifiedWorkerRequest: Untranslated bag-of-bytes WorkRequest from
      UnifiedWorker.
    workItemTypes: Filter for WorkItem type.
    workerCapabilities: Worker capabilities. WorkItems might be limited to
      workers with specific capabilities.
    workerId: Identifies the worker leasing work -- typically the ID of the
      virtual machine running the worker.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class UnifiedWorkerRequestValue(_messages.Message):
    r"""Untranslated bag-of-bytes WorkRequest from UnifiedWorker.

    Messages:
      AdditionalProperty: An additional property for a
        UnifiedWorkerRequestValue object.

    Fields:
      additionalProperties: Properties of the object. Contains field @type
        with type URL.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a UnifiedWorkerRequestValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  currentWorkerTime = _messages.StringField(1)
  location = _messages.StringField(2)
  projectNumber = _messages.IntegerField(3)
  requestedLeaseDuration = _messages.StringField(4)
  unifiedWorkerRequest = _messages.MessageField('UnifiedWorkerRequestValue', 5)
  workItemTypes = _messages.StringField(6, repeated=True)
  workerCapabilities = _messages.StringField(7, repeated=True)
  workerId = _messages.StringField(8)


class LeaseWorkItemResponse(_messages.Message):
  r"""Response to a request to lease WorkItems.

  Messages:
    UnifiedWorkerResponseValue: Untranslated bag-of-bytes WorkResponse for
      UnifiedWorker.

  Fields:
    unifiedWorkerResponse: Untranslated bag-of-bytes WorkResponse for
      UnifiedWorker.
    workItems: A list of the leased WorkItems.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class UnifiedWorkerResponseValue(_messages.Message):
    r"""Untranslated bag-of-bytes WorkResponse for UnifiedWorker.

    Messages:
      AdditionalProperty: An additional property for a
        UnifiedWorkerResponseValue object.

    Fields:
      additionalProperties: Properties of the object. Contains field @type
        with type URL.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a UnifiedWorkerResponseValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  unifiedWorkerResponse = _messages.MessageField('UnifiedWorkerResponseValue', 1)
  workItems = _messages.MessageField('WorkItem', 2, repeated=True)


class Linear(_messages.Message):
  r"""Linear buckets with the following boundaries for indices in 0 to n-1. -
  i in [0, n-1]: [start + (i)*width, start + (i+1)*width)

  Fields:
    numberOfBuckets: Must be greater than 0.
    start: Lower bound of the first bucket.
    width: Distance between bucket boundaries. Must be greater than 0.
  """

  numberOfBuckets = _messages.IntegerField(1, variant=_messages.Variant.INT32)
  start = _messages.FloatField(2)
  width = _messages.FloatField(3)


class ListDeploymentRevisionsResponse(_messages.Message):
  r"""Response of a request to list `Cloud Dataflow job deployment revisions`.

  Fields:
    deployments: The deployments from the specified publisher.
    nextPageToken: A token, which can be sent as `page_token` to retrieve the
      next page. If this field is omitted, there are no subsequent pages. Use
      `next_token.SerializeAsString` + `absl::WebSafeBase64Escape`.
  """

  deployments = _messages.MessageField('Deployment', 1, repeated=True)
  nextPageToken = _messages.StringField(2)


class ListDeploymentsResponse(_messages.Message):
  r"""Response of a request to list `Cloud Dataflow job deployments` in a
  project.

  Fields:
    deployments: The deployments from the specified publisher.
    nextPageToken: A token, which can be sent as `page_token` to retrieve the
      next page. If this field is omitted, there are no subsequent pages. Use
      `next_token.SerializeAsString` + `absl::WebSafeBase64Escape`.
  """

  deployments = _messages.MessageField('Deployment', 1, repeated=True)
  nextPageToken = _messages.StringField(2)


class ListJobMessagesResponse(_messages.Message):
  r"""Response to a request to list job messages.

  Fields:
    autoscalingEvents: Autoscaling events in ascending timestamp order.
    jobMessages: Messages in ascending timestamp order.
    nextPageToken: The token to obtain the next page of results if there are
      more.
  """

  autoscalingEvents = _messages.MessageField('AutoscalingEvent', 1, repeated=True)
  jobMessages = _messages.MessageField('JobMessage', 2, repeated=True)
  nextPageToken = _messages.StringField(3)


class ListJobsResponse(_messages.Message):
  r"""Response to a request to list Cloud Dataflow jobs in a project. This
  might be a partial response, depending on the page size in the
  ListJobsRequest. However, if the project does not have any jobs, an instance
  of ListJobsResponse is not returned and the requests's response body is
  empty {}.

  Fields:
    failedLocation: Zero or more messages describing the [regional endpoints]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that failed to respond.
    jobs: A subset of the requested job information.
    nextPageToken: Set if there may be more results than fit in this response.
  """

  failedLocation = _messages.MessageField('FailedLocation', 1, repeated=True)
  jobs = _messages.MessageField('Job', 2, repeated=True)
  nextPageToken = _messages.StringField(3)


class ListSnapshotsResponse(_messages.Message):
  r"""List of snapshots.

  Fields:
    snapshots: Returned snapshots.
  """

  snapshots = _messages.MessageField('Snapshot', 1, repeated=True)


class ListTemplateVersionsResponse(_messages.Message):
  r"""Respond a list of TemplateVersions.

  Fields:
    nextPageToken: A token that can be sent as `page_token` to retrieve the
      next page. If this field is omitted, there are no subsequent pages.
    templateVersions: A list of TemplateVersions.
  """

  nextPageToken = _messages.StringField(1)
  templateVersions = _messages.MessageField('TemplateVersion', 2, repeated=True)


class MapTask(_messages.Message):
  r"""MapTask consists of an ordered set of instructions, each of which
  describes one particular low-level operation for the worker to perform in
  order to accomplish the MapTask's WorkItem. Each instruction must appear in
  the list before any instructions which depends on its output.

  Fields:
    counterPrefix: Counter prefix that can be used to prefix counters. Not
      currently used in Dataflow.
    instructions: The instructions in the MapTask.
    stageName: System-defined name of the stage containing this MapTask.
      Unique across the workflow.
    systemName: System-defined name of this MapTask. Unique across the
      workflow.
  """

  counterPrefix = _messages.StringField(1)
  instructions = _messages.MessageField('ParallelInstruction', 2, repeated=True)
  stageName = _messages.StringField(3)
  systemName = _messages.StringField(4)


class MemInfo(_messages.Message):
  r"""Information about the memory usage of a worker or a container within a
  worker.

  Fields:
    currentLimitBytes: Instantenous memory limit in bytes.
    currentOoms: Number of Out of Memory (OOM) events recorded since the
      previous measurement.
    currentRssBytes: Instantenous memory (RSS) size in bytes.
    timestamp: Timestamp of the measurement.
    totalGbMs: Total memory (RSS) usage since start up in GB * ms.
  """

  currentLimitBytes = _messages.IntegerField(1, variant=_messages.Variant.UINT64)
  currentOoms = _messages.IntegerField(2)
  currentRssBytes = _messages.IntegerField(3, variant=_messages.Variant.UINT64)
  timestamp = _messages.StringField(4)
  totalGbMs = _messages.IntegerField(5, variant=_messages.Variant.UINT64)


class MetricShortId(_messages.Message):
  r"""The metric short id is returned to the user alongside an offset into
  ReportWorkItemStatusRequest

  Fields:
    metricIndex: The index of the corresponding metric in the
      ReportWorkItemStatusRequest. Required.
    shortId: The service-generated short identifier for the metric.
  """

  metricIndex = _messages.IntegerField(1, variant=_messages.Variant.INT32)
  shortId = _messages.IntegerField(2)


class MetricStructuredName(_messages.Message):
  r"""Identifies a metric, by describing the source which generated the
  metric.

  Messages:
    ContextValue: 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'] = .

  Fields:
    context: 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'] = .
    name: Worker-defined metric name.
    origin: Origin (namespace) of metric name. May be blank for user-define
      metrics; will be "dataflow" for metrics defined by the Dataflow service
      or SDK.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class ContextValue(_messages.Message):
    r"""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'] = .

    Messages:
      AdditionalProperty: An additional property for a ContextValue object.

    Fields:
      additionalProperties: Additional properties of type ContextValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a ContextValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  context = _messages.MessageField('ContextValue', 1)
  name = _messages.StringField(2)
  origin = _messages.StringField(3)


class MetricUpdate(_messages.Message):
  r"""Describes the state of a metric.

  Fields:
    boundedTrie: 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.
    cumulative: 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.
    distribution: A struct value describing properties of a distribution of
      numeric values.
    gauge: 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.
    internal: Worker-computed aggregate value for internal use by the Dataflow
      service.
    kind: 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.
    meanCount: 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.
    meanSum: 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.
    name: Name of the metric.
    scalar: Worker-computed aggregate value for aggregation kinds "Sum",
      "Max", "Min", "And", and "Or". The possible value types are Long,
      Double, and Boolean.
    set: 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.
    trie: Worker-computed aggregate value for the "Trie" aggregation kind. The
      only possible value type is a BoundedTrieNode.
    updateTime: Timestamp associated with the metric value. Optional when
      workers are reporting work progress; it will be filled in responses from
      the metrics API.
  """

  boundedTrie = _messages.MessageField('extra_types.JsonValue', 1)
  cumulative = _messages.BooleanField(2)
  distribution = _messages.MessageField('extra_types.JsonValue', 3)
  gauge = _messages.MessageField('extra_types.JsonValue', 4)
  internal = _messages.MessageField('extra_types.JsonValue', 5)
  kind = _messages.StringField(6)
  meanCount = _messages.MessageField('extra_types.JsonValue', 7)
  meanSum = _messages.MessageField('extra_types.JsonValue', 8)
  name = _messages.MessageField('MetricStructuredName', 9)
  scalar = _messages.MessageField('extra_types.JsonValue', 10)
  set = _messages.MessageField('extra_types.JsonValue', 11)
  trie = _messages.MessageField('extra_types.JsonValue', 12)
  updateTime = _messages.StringField(13)


class MetricValue(_messages.Message):
  r"""The value of a metric along with its name and labels.

  Messages:
    MetricLabelsValue: Optional. Set of metric labels for this metric.

  Fields:
    metric: Base name for this metric.
    metricLabels: Optional. Set of metric labels for this metric.
    valueGauge64: Non-cumulative int64 value of this metric.
    valueHistogram: Histogram value of this metric.
    valueInt64: Integer value of this metric.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class MetricLabelsValue(_messages.Message):
    r"""Optional. Set of metric labels for this metric.

    Messages:
      AdditionalProperty: An additional property for a MetricLabelsValue
        object.

    Fields:
      additionalProperties: Additional properties of type MetricLabelsValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a MetricLabelsValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  metric = _messages.StringField(1)
  metricLabels = _messages.MessageField('MetricLabelsValue', 2)
  valueGauge64 = _messages.MessageField('DataflowGaugeValue', 3)
  valueHistogram = _messages.MessageField('DataflowHistogramValue', 4)
  valueInt64 = _messages.IntegerField(5)


class ModifyTemplateVersionLabelRequest(_messages.Message):
  r"""Either add the label to TemplateVersion or remove it from the
  TemplateVersion.

  Enums:
    OpValueValuesEnum: Requests for add label to TemplateVersion or remove
      label from TemplateVersion.

  Fields:
    key: The label key for update.
    op: Requests for add label to TemplateVersion or remove label from
      TemplateVersion.
    value: The label value for update.
  """

  class OpValueValuesEnum(_messages.Enum):
    r"""Requests for add label to TemplateVersion or remove label from
    TemplateVersion.

    Values:
      OPERATION_UNSPECIFIED: Default value.
      ADD: Add the label to the TemplateVersion object.
      REMOVE: Remove the label from the TemplateVersion object.
    """
    OPERATION_UNSPECIFIED = 0
    ADD = 1
    REMOVE = 2

  key = _messages.StringField(1)
  op = _messages.EnumField('OpValueValuesEnum', 2)
  value = _messages.StringField(3)


class ModifyTemplateVersionLabelResponse(_messages.Message):
  r"""Respond the labels in the TemplateVersion.

  Messages:
    LabelsValue: All the label in the TemplateVersion.

  Fields:
    labels: All the label in the TemplateVersion.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class LabelsValue(_messages.Message):
    r"""All the label in the TemplateVersion.

    Messages:
      AdditionalProperty: An additional property for a LabelsValue object.

    Fields:
      additionalProperties: Additional properties of type LabelsValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a LabelsValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  labels = _messages.MessageField('LabelsValue', 1)


class ModifyTemplateVersionTagRequest(_messages.Message):
  r"""Add a tag to the current TemplateVersion. If tag exist in another
  TemplateVersion in the Template, remove the tag before add it to the current
  TemplateVersion. If remove_only set, remove the tag from the current
  TemplateVersion.

  Fields:
    removeOnly: The flag that indicates if the request is only for remove tag
      from TemplateVersion.
    tag: The tag for update.
  """

  removeOnly = _messages.BooleanField(1)
  tag = _messages.StringField(2)


class ModifyTemplateVersionTagResponse(_messages.Message):
  r"""Respond the current tags in the TemplateVersion.

  Fields:
    tags: All the tags in the TemplateVersion.
  """

  tags = _messages.StringField(1, repeated=True)


class MountedDataDisk(_messages.Message):
  r"""Describes mounted data disk.

  Fields:
    dataDisk: The name of the data disk. This name is local to the Google
      Cloud Platform project and uniquely identifies the disk within that
      project, for example "myproject-1014-104817-4c2-harness-0-disk-1".
  """

  dataDisk = _messages.StringField(1)


class MultiOutputInfo(_messages.Message):
  r"""Information about an output of a multi-output DoFn.

  Fields:
    tag: The id of the tag the user code will emit to this output by; this
      should correspond to the tag of some SideInputInfo.
  """

  tag = _messages.StringField(1)


class NameAndKind(_messages.Message):
  r"""Basic metadata about a counter.

  Enums:
    KindValueValuesEnum: Counter aggregation kind.

  Fields:
    kind: Counter aggregation kind.
    name: Name of the counter.
  """

  class KindValueValuesEnum(_messages.Enum):
    r"""Counter aggregation kind.

    Values:
      INVALID: Counter aggregation kind was not set.
      SUM: Aggregated value is the sum of all contributed values.
      MAX: Aggregated value is the max of all contributed values.
      MIN: Aggregated value is the min of all contributed values.
      MEAN: Aggregated value is the mean of all contributed values.
      OR: Aggregated value represents the logical 'or' of all contributed
        values.
      AND: Aggregated value represents the logical 'and' of all contributed
        values.
      SET: Aggregated value is a set of unique contributed values.
      DISTRIBUTION: Aggregated value captures statistics about a distribution.
      LATEST_VALUE: Aggregated value tracks the latest value of a variable.
    """
    INVALID = 0
    SUM = 1
    MAX = 2
    MIN = 3
    MEAN = 4
    OR = 5
    AND = 6
    SET = 7
    DISTRIBUTION = 8
    LATEST_VALUE = 9

  kind = _messages.EnumField('KindValueValuesEnum', 1)
  name = _messages.StringField(2)


class Operation(_messages.Message):
  r"""This resource represents a long-running operation that is the result of
  a network API call.

  Messages:
    MetadataValue: Service-specific metadata associated with the operation. It
      typically contains progress information and common metadata such as
      create time. Some services might not provide such metadata. Any method
      that returns a long-running operation should document the metadata type,
      if any.
    ResponseValue: The normal, successful response of the operation. If the
      original method returns no data on success, such as `Delete`, the
      response is `google.protobuf.Empty`. If the original method is standard
      `Get`/`Create`/`Update`, the response should be the resource. For other
      methods, the response should have the type `XxxResponse`, where `Xxx` is
      the original method name. For example, if the original method name is
      `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.

  Fields:
    done: If the value is `false`, it means the operation is still in
      progress. If `true`, the operation is completed, and either `error` or
      `response` is available.
    error: The error result of the operation in case of failure or
      cancellation.
    metadata: Service-specific metadata associated with the operation. It
      typically contains progress information and common metadata such as
      create time. Some services might not provide such metadata. Any method
      that returns a long-running operation should document the metadata type,
      if any.
    name: The server-assigned name, which is only unique within the same
      service that originally returns it. If you use the default HTTP mapping,
      the `name` should be a resource name ending with
      `operations/{unique_id}`.
    response: The normal, successful response of the operation. If the
      original method returns no data on success, such as `Delete`, the
      response is `google.protobuf.Empty`. If the original method is standard
      `Get`/`Create`/`Update`, the response should be the resource. For other
      methods, the response should have the type `XxxResponse`, where `Xxx` is
      the original method name. For example, if the original method name is
      `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class MetadataValue(_messages.Message):
    r"""Service-specific metadata associated with the operation. It typically
    contains progress information and common metadata such as create time.
    Some services might not provide such metadata. Any method that returns a
    long-running operation should document the metadata type, if any.

    Messages:
      AdditionalProperty: An additional property for a MetadataValue object.

    Fields:
      additionalProperties: Properties of the object. Contains field @type
        with type URL.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a MetadataValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  @encoding.MapUnrecognizedFields('additionalProperties')
  class ResponseValue(_messages.Message):
    r"""The normal, successful response of the operation. If the original
    method returns no data on success, such as `Delete`, the response is
    `google.protobuf.Empty`. If the original method is standard
    `Get`/`Create`/`Update`, the response should be the resource. For other
    methods, the response should have the type `XxxResponse`, where `Xxx` is
    the original method name. For example, if the original method name is
    `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.

    Messages:
      AdditionalProperty: An additional property for a ResponseValue object.

    Fields:
      additionalProperties: Properties of the object. Contains field @type
        with type URL.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a ResponseValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  done = _messages.BooleanField(1)
  error = _messages.MessageField('Status', 2)
  metadata = _messages.MessageField('MetadataValue', 3)
  name = _messages.StringField(4)
  response = _messages.MessageField('ResponseValue', 5)


class OutlierStats(_messages.Message):
  r"""Statistics for the underflow and overflow bucket.

  Fields:
    overflowCount: Number of values that are larger than the upper bound of
      the largest bucket.
    overflowMean: Mean of values in the overflow bucket.
    underflowCount: Number of values that are smaller than the lower bound of
      the smallest bucket.
    underflowMean: Mean of values in the undeflow bucket.
  """

  overflowCount = _messages.IntegerField(1)
  overflowMean = _messages.FloatField(2)
  underflowCount = _messages.IntegerField(3)
  underflowMean = _messages.FloatField(4)


class Package(_messages.Message):
  r"""The packages that must be installed in order for a worker to run the
  steps of the Cloud Dataflow job that will be assigned to its worker pool.
  This is the mechanism by which the Cloud Dataflow SDK causes code to be
  loaded onto the workers. For example, the Cloud Dataflow Java SDK might use
  this to install jars containing the user's code and all of the various
  dependencies (libraries, data files, etc.) required in order for that code
  to run.

  Fields:
    location: The resource to read the package from. The supported resource
      type is: Google Cloud Storage: storage.googleapis.com/{bucket}
      bucket.storage.googleapis.com/
    name: The name of the package.
    sha256: Optional. The hex-encoded SHA256 checksum of the package. If the
      checksum is provided, the worker will verify the checksum of the package
      before using it. If the checksum does not match, the worker will fail to
      start.
  """

  location = _messages.StringField(1)
  name = _messages.StringField(2)
  sha256 = _messages.StringField(3)


class ParDoInstruction(_messages.Message):
  r"""An instruction that does a ParDo operation. Takes one main input and
  zero or more side inputs, and produces zero or more outputs. Runs user code.

  Messages:
    UserFnValue: The user function to invoke.

  Fields:
    input: The input.
    multiOutputInfos: Information about each of the outputs, if user_fn is a
      MultiDoFn.
    numOutputs: The number of outputs.
    sideInputs: Zero or more side inputs.
    userFn: The user function to invoke.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class UserFnValue(_messages.Message):
    r"""The user function to invoke.

    Messages:
      AdditionalProperty: An additional property for a UserFnValue object.

    Fields:
      additionalProperties: Properties of the object.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a UserFnValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  input = _messages.MessageField('InstructionInput', 1)
  multiOutputInfos = _messages.MessageField('MultiOutputInfo', 2, repeated=True)
  numOutputs = _messages.IntegerField(3, variant=_messages.Variant.INT32)
  sideInputs = _messages.MessageField('SideInputInfo', 4, repeated=True)
  userFn = _messages.MessageField('UserFnValue', 5)


class ParallelInstruction(_messages.Message):
  r"""Describes a particular operation comprising a MapTask.

  Fields:
    flatten: Additional information for Flatten instructions.
    name: User-provided name of this operation.
    originalName: System-defined name for the operation in the original
      workflow graph.
    outputs: Describes the outputs of the instruction.
    parDo: Additional information for ParDo instructions.
    partialGroupByKey: Additional information for PartialGroupByKey
      instructions.
    read: Additional information for Read instructions.
    systemName: System-defined name of this operation. Unique across the
      workflow.
    write: Additional information for Write instructions.
  """

  flatten = _messages.MessageField('FlattenInstruction', 1)
  name = _messages.StringField(2)
  originalName = _messages.StringField(3)
  outputs = _messages.MessageField('InstructionOutput', 4, repeated=True)
  parDo = _messages.MessageField('ParDoInstruction', 5)
  partialGroupByKey = _messages.MessageField('PartialGroupByKeyInstruction', 6)
  read = _messages.MessageField('ReadInstruction', 7)
  systemName = _messages.StringField(8)
  write = _messages.MessageField('WriteInstruction', 9)


class Parameter(_messages.Message):
  r"""Structured data associated with this message.

  Fields:
    key: Key or name for this parameter.
    value: Value for this parameter.
  """

  key = _messages.StringField(1)
  value = _messages.MessageField('extra_types.JsonValue', 2)


class ParameterMetadata(_messages.Message):
  r"""Metadata for a specific parameter.

  Enums:
    ParamTypeValueValuesEnum: Optional. The type of the parameter. Used for
      selecting input picker.

  Messages:
    CustomMetadataValue: Optional. Additional metadata for describing this
      parameter.

  Fields:
    customMetadata: Optional. Additional metadata for describing this
      parameter.
    defaultValue: Optional. The default values will pre-populate the parameter
      with the given value from the proto. If default_value is left empty, the
      parameter will be populated with a default of the relevant type, e.g.
      false for a boolean.
    enumOptions: Optional. The options shown when ENUM ParameterType is
      specified.
    groupName: Optional. Specifies a group name for this parameter to be
      rendered under. Group header text will be rendered exactly as specified
      in this field. Only considered when parent_name is NOT provided.
    helpText: Required. The help text to display for the parameter.
    hiddenUi: Optional. Whether the parameter should be hidden in the UI.
    isOptional: Optional. Whether the parameter is optional. Defaults to
      false.
    label: Required. The label to display for the parameter.
    name: Required. The name of the parameter.
    paramType: Optional. The type of the parameter. Used for selecting input
      picker.
    parentName: Optional. Specifies the name of the parent parameter. Used in
      conjunction with 'parent_trigger_values' to make this parameter
      conditional (will only be rendered conditionally). Should be mappable to
      a ParameterMetadata.name field.
    parentTriggerValues: Optional. The value(s) of the 'parent_name' parameter
      which will trigger this parameter to be shown. If left empty, ANY non-
      empty value in parent_name will trigger this parameter to be shown. Only
      considered when this parameter is conditional (when 'parent_name' has
      been provided).
    regexes: Optional. Regexes that the parameter must match.
  """

  class ParamTypeValueValuesEnum(_messages.Enum):
    r"""Optional. The type of the parameter. Used for selecting input picker.

    Values:
      DEFAULT: Default input type.
      TEXT: The parameter specifies generic text input.
      GCS_READ_BUCKET: The parameter specifies a Cloud Storage Bucket to read
        from.
      GCS_WRITE_BUCKET: The parameter specifies a Cloud Storage Bucket to
        write to.
      GCS_READ_FILE: The parameter specifies a Cloud Storage file path to read
        from.
      GCS_WRITE_FILE: The parameter specifies a Cloud Storage file path to
        write to.
      GCS_READ_FOLDER: The parameter specifies a Cloud Storage folder path to
        read from.
      GCS_WRITE_FOLDER: The parameter specifies a Cloud Storage folder to
        write to.
      PUBSUB_TOPIC: The parameter specifies a Pub/Sub Topic.
      PUBSUB_SUBSCRIPTION: The parameter specifies a Pub/Sub Subscription.
      BIGQUERY_TABLE: The parameter specifies a BigQuery table.
      JAVASCRIPT_UDF_FILE: The parameter specifies a JavaScript UDF in Cloud
        Storage.
      SERVICE_ACCOUNT: The parameter specifies a Service Account email.
      MACHINE_TYPE: The parameter specifies a Machine Type.
      KMS_KEY_NAME: The parameter specifies a KMS Key name.
      WORKER_REGION: The parameter specifies a Worker Region.
      WORKER_ZONE: The parameter specifies a Worker Zone.
      BOOLEAN: The parameter specifies a boolean input.
      ENUM: The parameter specifies an enum input.
      NUMBER: The parameter specifies a number input.
      KAFKA_TOPIC: Deprecated. Please use KAFKA_READ_TOPIC instead.
      KAFKA_READ_TOPIC: The parameter specifies the fully-qualified name of an
        Apache Kafka topic. This can be either a Google Managed Kafka topic or
        a non-managed Kafka topic.
      KAFKA_WRITE_TOPIC: The parameter specifies the fully-qualified name of
        an Apache Kafka topic. This can be an existing Google Managed Kafka
        topic, the name for a new Google Managed Kafka topic, or an existing
        non-managed Kafka topic.
    """
    DEFAULT = 0
    TEXT = 1
    GCS_READ_BUCKET = 2
    GCS_WRITE_BUCKET = 3
    GCS_READ_FILE = 4
    GCS_WRITE_FILE = 5
    GCS_READ_FOLDER = 6
    GCS_WRITE_FOLDER = 7
    PUBSUB_TOPIC = 8
    PUBSUB_SUBSCRIPTION = 9
    BIGQUERY_TABLE = 10
    JAVASCRIPT_UDF_FILE = 11
    SERVICE_ACCOUNT = 12
    MACHINE_TYPE = 13
    KMS_KEY_NAME = 14
    WORKER_REGION = 15
    WORKER_ZONE = 16
    BOOLEAN = 17
    ENUM = 18
    NUMBER = 19
    KAFKA_TOPIC = 20
    KAFKA_READ_TOPIC = 21
    KAFKA_WRITE_TOPIC = 22

  @encoding.MapUnrecognizedFields('additionalProperties')
  class CustomMetadataValue(_messages.Message):
    r"""Optional. Additional metadata for describing this parameter.

    Messages:
      AdditionalProperty: An additional property for a CustomMetadataValue
        object.

    Fields:
      additionalProperties: Additional properties of type CustomMetadataValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a CustomMetadataValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  customMetadata = _messages.MessageField('CustomMetadataValue', 1)
  defaultValue = _messages.StringField(2)
  enumOptions = _messages.MessageField('ParameterMetadataEnumOption', 3, repeated=True)
  groupName = _messages.StringField(4)
  helpText = _messages.StringField(5)
  hiddenUi = _messages.BooleanField(6)
  isOptional = _messages.BooleanField(7)
  label = _messages.StringField(8)
  name = _messages.StringField(9)
  paramType = _messages.EnumField('ParamTypeValueValuesEnum', 10)
  parentName = _messages.StringField(11)
  parentTriggerValues = _messages.StringField(12, repeated=True)
  regexes = _messages.StringField(13, repeated=True)


class ParameterMetadataEnumOption(_messages.Message):
  r"""ParameterMetadataEnumOption specifies the option shown in the enum form.

  Fields:
    description: Optional. The description to display for the enum option.
    label: Optional. The label to display for the enum option.
    value: Required. The value of the enum option.
  """

  description = _messages.StringField(1)
  label = _messages.StringField(2)
  value = _messages.StringField(3)


class Parameters(_messages.Message):
  r"""The parameters to use for autoscaling when this schedule is active.

  Fields:
    cpuUtilizationTarget: Optional. The target CPU utilization for this
      schedule.
    latencyTarget: Optional. The target latency for this schedule.
    maxWorkerCount: Optional. The maximum number of workers for this schedule.
    minWorkerCount: Optional. The minimum number of workers for this schedule.
  """

  cpuUtilizationTarget = _messages.FloatField(1)
  latencyTarget = _messages.StringField(2)
  maxWorkerCount = _messages.IntegerField(3, variant=_messages.Variant.INT32)
  minWorkerCount = _messages.IntegerField(4, variant=_messages.Variant.INT32)


class PartialGroupByKeyInstruction(_messages.Message):
  r"""An instruction that does a partial group-by-key. One input and one
  output.

  Messages:
    InputElementCodecValue: The codec to use for interpreting an element in
      the input PTable.
    ValueCombiningFnValue: The value combining function to invoke.

  Fields:
    input: Describes the input to the partial group-by-key instruction.
    inputElementCodec: The codec to use for interpreting an element in the
      input PTable.
    originalCombineValuesInputStoreName: If this instruction includes a
      combining function this is the name of the intermediate store between
      the GBK and the CombineValues.
    originalCombineValuesStepName: If this instruction includes a combining
      function, this is the name of the CombineValues instruction lifted into
      this instruction.
    sideInputs: Zero or more side inputs.
    valueCombiningFn: The value combining function to invoke.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class InputElementCodecValue(_messages.Message):
    r"""The codec to use for interpreting an element in the input PTable.

    Messages:
      AdditionalProperty: An additional property for a InputElementCodecValue
        object.

    Fields:
      additionalProperties: Properties of the object.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a InputElementCodecValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  @encoding.MapUnrecognizedFields('additionalProperties')
  class ValueCombiningFnValue(_messages.Message):
    r"""The value combining function to invoke.

    Messages:
      AdditionalProperty: An additional property for a ValueCombiningFnValue
        object.

    Fields:
      additionalProperties: Properties of the object.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a ValueCombiningFnValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  input = _messages.MessageField('InstructionInput', 1)
  inputElementCodec = _messages.MessageField('InputElementCodecValue', 2)
  originalCombineValuesInputStoreName = _messages.StringField(3)
  originalCombineValuesStepName = _messages.StringField(4)
  sideInputs = _messages.MessageField('SideInputInfo', 5, repeated=True)
  valueCombiningFn = _messages.MessageField('ValueCombiningFnValue', 6)


class PerStepNamespaceMetrics(_messages.Message):
  r"""Metrics for a particular unfused step and namespace. A metric is
  uniquely identified by the `metrics_namespace`, `original_step`, `metric
  name` and `metric_labels`.

  Fields:
    metricValues: Optional. Metrics that are recorded for this namespace and
      unfused step.
    metricsNamespace: The namespace of these metrics on the worker.
    originalStep: The original system name of the unfused step that these
      metrics are reported from.
  """

  metricValues = _messages.MessageField('MetricValue', 1, repeated=True)
  metricsNamespace = _messages.StringField(2)
  originalStep = _messages.StringField(3)


class PerWorkerMetrics(_messages.Message):
  r"""Per worker metrics.

  Fields:
    perStepNamespaceMetrics: Optional. Metrics for a particular unfused step
      and namespace.
  """

  perStepNamespaceMetrics = _messages.MessageField('PerStepNamespaceMetrics', 1, repeated=True)


class PipelineDescription(_messages.Message):
  r"""A descriptive representation of submitted pipeline as well as the
  executed form. This data is provided by the Dataflow service for ease of
  visualizing the pipeline and interpreting Dataflow provided metrics.

  Fields:
    displayData: Pipeline level display data.
    executionPipelineStage: Description of each stage of execution of the
      pipeline.
    originalPipelineTransform: Description of each transform in the pipeline
      and collections between them.
    stepNamesHash: A hash value of the submitted pipeline portable graph step
      names if exists.
  """

  displayData = _messages.MessageField('DisplayData', 1, repeated=True)
  executionPipelineStage = _messages.MessageField('ExecutionStageSummary', 2, repeated=True)
  originalPipelineTransform = _messages.MessageField('TransformSummary', 3, repeated=True)
  stepNamesHash = _messages.StringField(4)


class Point(_messages.Message):
  r"""A point in the timeseries.

  Fields:
    time: The timestamp of the point.
    value: The value of the point.
  """

  time = _messages.StringField(1)
  value = _messages.FloatField(2)


class Position(_messages.Message):
  r"""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.

  Fields:
    byteOffset: Position is a byte offset.
    concatPosition: CloudPosition is a concat position.
    end: Position is past all other positions. Also useful for the end
      position of an unbounded range.
    key: Position is a string key, ordered lexicographically.
    recordIndex: Position is a record index.
    shufflePosition: CloudPosition is a base64 encoded BatchShufflePosition
      (with FIXED sharding).
  """

  byteOffset = _messages.IntegerField(1)
  concatPosition = _messages.MessageField('ConcatPosition', 2)
  end = _messages.BooleanField(3)
  key = _messages.StringField(4)
  recordIndex = _messages.IntegerField(5)
  shufflePosition = _messages.StringField(6)


class ProgressTimeseries(_messages.Message):
  r"""Information about the progress of some component of job execution.

  Fields:
    currentProgress: The current progress of the component, in the range
      [0,1].
    dataPoints: History of progress for the component. Points are sorted by
      time.
  """

  currentProgress = _messages.FloatField(1)
  dataPoints = _messages.MessageField('Point', 2, repeated=True)


class PubSubIODetails(_messages.Message):
  r"""Metadata for a Pub/Sub connector used by the job.

  Fields:
    subscription: Subscription used in the connection.
    topic: Topic accessed in the connection.
  """

  subscription = _messages.StringField(1)
  topic = _messages.StringField(2)


class PubsubLocation(_messages.Message):
  r"""Identifies a pubsub location to use for transferring data into or out of
  a streaming Dataflow job.

  Fields:
    dropLateData: Indicates whether the pipeline allows late-arriving data.
    dynamicDestinations: If true, then this location represents dynamic
      topics.
    idLabel: If set, contains a pubsub label from which to extract record ids.
      If left empty, record deduplication will be strictly best effort.
    subscription: A pubsub subscription, in the form of
      "pubsub.googleapis.com/subscriptions//"
    timestampLabel: If set, contains a pubsub label from which to extract
      record timestamps. If left empty, record timestamps will be generated
      upon arrival.
    topic: A pubsub topic, in the form of "pubsub.googleapis.com/topics//"
    trackingSubscription: If set, specifies the pubsub subscription that will
      be used for tracking custom time timestamps for watermark estimation.
    withAttributes: If true, then the client has requested to get pubsub
      attributes.
  """

  dropLateData = _messages.BooleanField(1)
  dynamicDestinations = _messages.BooleanField(2)
  idLabel = _messages.StringField(3)
  subscription = _messages.StringField(4)
  timestampLabel = _messages.StringField(5)
  topic = _messages.StringField(6)
  trackingSubscription = _messages.StringField(7)
  withAttributes = _messages.BooleanField(8)


class PubsubSnapshotMetadata(_messages.Message):
  r"""Represents a Pubsub snapshot.

  Fields:
    expireTime: The expire time of the Pubsub snapshot.
    snapshotName: The name of the Pubsub snapshot.
    topicName: The name of the Pubsub topic.
  """

  expireTime = _messages.StringField(1)
  snapshotName = _messages.StringField(2)
  topicName = _messages.StringField(3)


class ReadInstruction(_messages.Message):
  r"""An instruction that reads records. Takes no inputs, produces one output.

  Fields:
    source: The source to read from.
  """

  source = _messages.MessageField('Source', 1)


class ReportWorkItemStatusRequest(_messages.Message):
  r"""Request to report the status of WorkItems.

  Messages:
    UnifiedWorkerRequestValue: Untranslated bag-of-bytes
      WorkProgressUpdateRequest from UnifiedWorker.

  Fields:
    currentWorkerTime: The current timestamp at the worker.
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains the WorkItem's job.
    projectNumber: Optional. The project number of the project which owns the
      WorkItem's job.
    unifiedWorkerRequest: Untranslated bag-of-bytes WorkProgressUpdateRequest
      from UnifiedWorker.
    workItemStatuses: The order is unimportant, except that the order of the
      WorkItemServiceState messages in the ReportWorkItemStatusResponse
      corresponds to the order of WorkItemStatus messages here.
    workerId: 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).
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class UnifiedWorkerRequestValue(_messages.Message):
    r"""Untranslated bag-of-bytes WorkProgressUpdateRequest from
    UnifiedWorker.

    Messages:
      AdditionalProperty: An additional property for a
        UnifiedWorkerRequestValue object.

    Fields:
      additionalProperties: Properties of the object. Contains field @type
        with type URL.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a UnifiedWorkerRequestValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  currentWorkerTime = _messages.StringField(1)
  location = _messages.StringField(2)
  projectNumber = _messages.IntegerField(3)
  unifiedWorkerRequest = _messages.MessageField('UnifiedWorkerRequestValue', 4)
  workItemStatuses = _messages.MessageField('WorkItemStatus', 5, repeated=True)
  workerId = _messages.StringField(6)


class ReportWorkItemStatusResponse(_messages.Message):
  r"""Response from a request to report the status of WorkItems.

  Messages:
    UnifiedWorkerResponseValue: Untranslated bag-of-bytes
      WorkProgressUpdateResponse for UnifiedWorker.

  Fields:
    unifiedWorkerResponse: Untranslated bag-of-bytes
      WorkProgressUpdateResponse for UnifiedWorker.
    workItemServiceStates: A set of messages indicating the service-side state
      for each WorkItem whose status was reported, in the same order as the
      WorkItemStatus messages in the ReportWorkItemStatusRequest which
      resulting in this response.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class UnifiedWorkerResponseValue(_messages.Message):
    r"""Untranslated bag-of-bytes WorkProgressUpdateResponse for
    UnifiedWorker.

    Messages:
      AdditionalProperty: An additional property for a
        UnifiedWorkerResponseValue object.

    Fields:
      additionalProperties: Properties of the object. Contains field @type
        with type URL.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a UnifiedWorkerResponseValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  unifiedWorkerResponse = _messages.MessageField('UnifiedWorkerResponseValue', 1)
  workItemServiceStates = _messages.MessageField('WorkItemServiceState', 2, repeated=True)


class ReportedParallelism(_messages.Message):
  r"""Represents the level of parallelism in a WorkItem's input, reported by
  the worker.

  Fields:
    isInfinite: 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: Specifies the level of parallelism in case it is finite.
  """

  isInfinite = _messages.BooleanField(1)
  value = _messages.FloatField(2)


class ResourceUtilizationReport(_messages.Message):
  r"""Worker metrics exported from workers. This contains resource utilization
  metrics accumulated from a variety of sources. For more information, see
  go/df-resource-signals.

  Messages:
    ContainersValue: Per container information. Key: container name.

  Fields:
    containers: Per container information. Key: container name.
    cpuTime: CPU utilization samples.
    gpuUsage: Optional. GPU usage samples.
    memoryInfo: Memory utilization samples.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class ContainersValue(_messages.Message):
    r"""Per container information. Key: container name.

    Messages:
      AdditionalProperty: An additional property for a ContainersValue object.

    Fields:
      additionalProperties: Additional properties of type ContainersValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a ContainersValue object.

      Fields:
        key: Name of the additional property.
        value: A ResourceUtilizationReport attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('ResourceUtilizationReport', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  containers = _messages.MessageField('ContainersValue', 1)
  cpuTime = _messages.MessageField('CPUTime', 2, repeated=True)
  gpuUsage = _messages.MessageField('GPUUsage', 3, repeated=True)
  memoryInfo = _messages.MessageField('MemInfo', 4, repeated=True)


class ResourceUtilizationReportResponse(_messages.Message):
  r"""Service-side response to WorkerMessage reporting resource utilization.
  """



class RollbackDeploymentRequest(_messages.Message):
  r"""Request to rollback a Cloud Dataflow job deployment to a specific
  revision.

  Fields:
    etag: The current etag of the Deployment. Checksum computed by the server.
      Ensure that the client has an up-to-date value before proceeding. If an
      etag is provided and does not match the current etag of the
      `Deployment`, request will be blocked and an ABORTED error will be
      returned.
    requestId: A unique identifier for this request. Restricted to 36 ASCII
      characters. A random UUID is recommended. This request is only
      idempotent if a `request_id` is provided.
    revisionId: Required. The revision ID to roll back to. It must be a
      revision of the same `Deployment`. Example: c7cfa2a8
    validateOnly: Validate an intended change to see what the result will be
      before actually making the change.
  """

  etag = _messages.StringField(1)
  requestId = _messages.StringField(2)
  revisionId = _messages.StringField(3)
  validateOnly = _messages.BooleanField(4)


class RuntimeEnvironment(_messages.Message):
  r"""The environment values to set at runtime.

  Enums:
    IpConfigurationValueValuesEnum: Optional. Configuration for VM IPs.
    StreamingModeValueValuesEnum: Optional. Specifies the Streaming Engine
      message processing guarantees. Reduces cost and latency but might result
      in duplicate messages committed to storage. Designed to run simple
      mapping streaming ETL jobs at the lowest cost. For example, Change Data
      Capture (CDC) to BigQuery is a canonical use case. For more information,
      see [Set the pipeline streaming
      mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes).

  Messages:
    AdditionalUserLabelsValue: Optional. Additional user labels to be
      specified for the job. Keys and values should follow the restrictions
      specified in the [labeling
      restrictions](https://cloud.google.com/compute/docs/labeling-
      resources#restrictions) page. An object containing a list of "key":
      value pairs. Example: { "name": "wrench", "mass": "1kg", "count": "3" }.

  Fields:
    additionalExperiments: Optional. Additional experiment flags for the job,
      specified with the `--experiments` option.
    additionalPipelineOptions: Optional. Additional pipeline option flags for
      the job.
    additionalUserLabels: Optional. Additional user labels to be specified for
      the job. Keys and values should follow the restrictions specified in the
      [labeling restrictions](https://cloud.google.com/compute/docs/labeling-
      resources#restrictions) page. An object containing a list of "key":
      value pairs. Example: { "name": "wrench", "mass": "1kg", "count": "3" }.
    bypassTempDirValidation: Optional. Whether to bypass the safety checks for
      the job's temporary directory. Use with caution.
    diskSizeGb: Optional. The disk size, in gigabytes, to use on each remote
      Compute Engine worker instance.
    enableStreamingEngine: Optional. Whether to enable Streaming Engine for
      the job.
    ipConfiguration: Optional. Configuration for VM IPs.
    kmsKeyName: Optional. Name for the Cloud KMS key for the job. Key format
      is: projects//locations//keyRings//cryptoKeys/
    machineType: Optional. The machine type to use for the job. Defaults to
      the value from the template if not specified.
    maxWorkers: Optional. The maximum number of Google Compute Engine
      instances to be made available to your pipeline during execution, from 1
      to 1000. The default value is 1.
    network: Optional. Network to which VMs will be assigned. If empty or
      unspecified, the service will use the network "default".
    numWorkers: Optional. The initial number of Google Compute Engine
      instances for the job. The default value is 11.
    serviceAccountEmail: Optional. The email address of the service account to
      run the job as.
    streamingMode: Optional. Specifies the Streaming Engine message processing
      guarantees. Reduces cost and latency but might result in duplicate
      messages committed to storage. Designed to run simple mapping streaming
      ETL jobs at the lowest cost. For example, Change Data Capture (CDC) to
      BigQuery is a canonical use case. For more information, see [Set the
      pipeline streaming
      mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes).
    subnetwork: Optional. Subnetwork to which VMs will be assigned, if
      desired. You can specify a subnetwork using either a complete URL or an
      abbreviated path. Expected to be of the form "https://www.googleapis.com
      /compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWO
      RK" or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is
      located in a Shared VPC network, you must use the complete URL.
    tempLocation: Required. The Cloud Storage path to use for temporary files.
      Must be a valid Cloud Storage URL, beginning with `gs://`.
    workerRegion: Required. The Compute Engine region
      (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
      which worker processing should occur, e.g. "us-west1". Mutually
      exclusive with worker_zone. If neither worker_region nor worker_zone is
      specified, default to the control plane's region.
    workerZone: Optional. The Compute Engine zone
      (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
      which worker processing should occur, e.g. "us-west1-a". Mutually
      exclusive with worker_region. If neither worker_region nor worker_zone
      is specified, a zone in the control plane's region is chosen based on
      available capacity. If both `worker_zone` and `zone` are set,
      `worker_zone` takes precedence.
    zone: Optional. The Compute Engine [availability
      zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones)
      for launching worker instances to run your pipeline. In the future,
      worker_zone will take precedence.
  """

  class IpConfigurationValueValuesEnum(_messages.Enum):
    r"""Optional. Configuration for VM IPs.

    Values:
      WORKER_IP_UNSPECIFIED: The configuration is unknown, or unspecified.
      WORKER_IP_PUBLIC: Workers should have public IP addresses.
      WORKER_IP_PRIVATE: Workers should have private IP addresses.
    """
    WORKER_IP_UNSPECIFIED = 0
    WORKER_IP_PUBLIC = 1
    WORKER_IP_PRIVATE = 2

  class StreamingModeValueValuesEnum(_messages.Enum):
    r"""Optional. Specifies the Streaming Engine message processing
    guarantees. Reduces cost and latency but might result in duplicate
    messages committed to storage. Designed to run simple mapping streaming
    ETL jobs at the lowest cost. For example, Change Data Capture (CDC) to
    BigQuery is a canonical use case. For more information, see [Set the
    pipeline streaming
    mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes).

    Values:
      STREAMING_MODE_UNSPECIFIED: Run in the default mode.
      STREAMING_MODE_EXACTLY_ONCE: In this mode, message deduplication is
        performed against persistent state to make sure each message is
        processed and committed to storage exactly once.
      STREAMING_MODE_AT_LEAST_ONCE: Message deduplication is not performed.
        Messages might be processed multiple times, and the results are
        applied multiple times. Note: Setting this value also enables
        Streaming Engine and Streaming Engine resource-based billing.
    """
    STREAMING_MODE_UNSPECIFIED = 0
    STREAMING_MODE_EXACTLY_ONCE = 1
    STREAMING_MODE_AT_LEAST_ONCE = 2

  @encoding.MapUnrecognizedFields('additionalProperties')
  class AdditionalUserLabelsValue(_messages.Message):
    r"""Optional. Additional user labels to be specified for the job. Keys and
    values should follow the restrictions specified in the [labeling
    restrictions](https://cloud.google.com/compute/docs/labeling-
    resources#restrictions) page. An object containing a list of "key": value
    pairs. Example: { "name": "wrench", "mass": "1kg", "count": "3" }.

    Messages:
      AdditionalProperty: An additional property for a
        AdditionalUserLabelsValue object.

    Fields:
      additionalProperties: Additional properties of type
        AdditionalUserLabelsValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a AdditionalUserLabelsValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  additionalExperiments = _messages.StringField(1, repeated=True)
  additionalPipelineOptions = _messages.StringField(2, repeated=True)
  additionalUserLabels = _messages.MessageField('AdditionalUserLabelsValue', 3)
  bypassTempDirValidation = _messages.BooleanField(4)
  diskSizeGb = _messages.IntegerField(5, variant=_messages.Variant.INT32)
  enableStreamingEngine = _messages.BooleanField(6)
  ipConfiguration = _messages.EnumField('IpConfigurationValueValuesEnum', 7)
  kmsKeyName = _messages.StringField(8)
  machineType = _messages.StringField(9)
  maxWorkers = _messages.IntegerField(10, variant=_messages.Variant.INT32)
  network = _messages.StringField(11)
  numWorkers = _messages.IntegerField(12, variant=_messages.Variant.INT32)
  serviceAccountEmail = _messages.StringField(13)
  streamingMode = _messages.EnumField('StreamingModeValueValuesEnum', 14)
  subnetwork = _messages.StringField(15)
  tempLocation = _messages.StringField(16)
  workerRegion = _messages.StringField(17)
  workerZone = _messages.StringField(18)
  zone = _messages.StringField(19)


class RuntimeMetadata(_messages.Message):
  r"""RuntimeMetadata describing a runtime environment.

  Fields:
    parameters: The parameters for the template.
    sdkInfo: SDK Info for the template.
  """

  parameters = _messages.MessageField('ParameterMetadata', 1, repeated=True)
  sdkInfo = _messages.MessageField('SDKInfo', 2)


class RuntimeUpdatableParams(_messages.Message):
  r"""Additional job parameters that can only be updated during runtime using
  the projects.jobs.update method. These fields have no effect when specified
  during job creation.

  Fields:
    acceptableBacklogDuration: Optional. Deprecated: Use `latency_tier`
      instead. The backlog threshold duration in seconds for autoscaling.
      Value must be non-negative.
    autoscalingTier: Optional. Deprecated: Use `latency_tier` instead. The
      backlog threshold tier for autoscaling. Value must be one of "low-
      latency", "medium-latency", or "high-latency".
    latencyTier: Optional. The backlog threshold tier for autoscaling. Value
      must be one of "low-latency", "medium-latency", or "high-latency".
    maxNumWorkers: The maximum number of workers to cap autoscaling at. This
      field is currently only supported for Streaming Engine jobs.
    minNumWorkers: The minimum number of workers to scale down to. This field
      is currently only supported for Streaming Engine jobs.
    schedules: Optional. The schedule for autoscaling.
    workerUtilizationHint: Target worker utilization, compared against the
      aggregate utilization of the worker pool by autoscaler, to determine
      upscaling and downscaling when absent other constraints such as backlog.
      For more information, see [Update an existing
      pipeline](https://cloud.google.com/dataflow/docs/guides/updating-a-
      pipeline).
  """

  acceptableBacklogDuration = _messages.StringField(1)
  autoscalingTier = _messages.StringField(2)
  latencyTier = _messages.StringField(3)
  maxNumWorkers = _messages.IntegerField(4, variant=_messages.Variant.INT32)
  minNumWorkers = _messages.IntegerField(5, variant=_messages.Variant.INT32)
  schedules = _messages.MessageField('AutoscalingSchedule', 6, repeated=True)
  workerUtilizationHint = _messages.FloatField(7)


class SDKInfo(_messages.Message):
  r"""SDK Information.

  Enums:
    LanguageValueValuesEnum: Required. The SDK Language.

  Fields:
    language: Required. The SDK Language.
    version: Optional. The SDK version.
  """

  class LanguageValueValuesEnum(_messages.Enum):
    r"""Required. The SDK Language.

    Values:
      UNKNOWN: UNKNOWN Language.
      JAVA: Java.
      PYTHON: Python.
      GO: Go.
      YAML: YAML.
    """
    UNKNOWN = 0
    JAVA = 1
    PYTHON = 2
    GO = 3
    YAML = 4

  language = _messages.EnumField('LanguageValueValuesEnum', 1)
  version = _messages.StringField(2)


class Sdk(_messages.Message):
  r"""A structured representation of an SDK.

  Fields:
    sdkId: The SDK harness id.
    stacks: The stacktraces for the processes running on the SDK harness.
  """

  sdkId = _messages.StringField(1)
  stacks = _messages.MessageField('Stack', 2, repeated=True)


class SdkBug(_messages.Message):
  r"""A bug found in the Dataflow SDK.

  Enums:
    SeverityValueValuesEnum: Output only. How severe the SDK bug is.
    TypeValueValuesEnum: Output only. Describes the impact of this SDK bug.

  Fields:
    severity: Output only. How severe the SDK bug is.
    type: Output only. Describes the impact of this SDK bug.
    uri: Output only. Link to more information on the bug.
  """

  class SeverityValueValuesEnum(_messages.Enum):
    r"""Output only. How severe the SDK bug is.

    Values:
      SEVERITY_UNSPECIFIED: A bug of unknown severity.
      NOTICE: A minor bug that that may reduce reliability or performance for
        some jobs. Impact will be minimal or non-existent for most jobs.
      WARNING: A bug that has some likelihood of causing performance
        degradation, data loss, or job failures.
      SEVERE: A bug with extremely significant impact. Jobs may fail
        erroneously, performance may be severely degraded, and data loss may
        be very likely.
    """
    SEVERITY_UNSPECIFIED = 0
    NOTICE = 1
    WARNING = 2
    SEVERE = 3

  class TypeValueValuesEnum(_messages.Enum):
    r"""Output only. Describes the impact of this SDK bug.

    Values:
      TYPE_UNSPECIFIED: Unknown issue with this SDK.
      GENERAL: Catch-all for SDK bugs that don't fit in the below categories.
      PERFORMANCE: Using this version of the SDK may result in degraded
        performance.
      DATALOSS: Using this version of the SDK may cause data loss.
    """
    TYPE_UNSPECIFIED = 0
    GENERAL = 1
    PERFORMANCE = 2
    DATALOSS = 3

  severity = _messages.EnumField('SeverityValueValuesEnum', 1)
  type = _messages.EnumField('TypeValueValuesEnum', 2)
  uri = _messages.StringField(3)


class SdkHarnessContainerImage(_messages.Message):
  r"""Defines an SDK harness container for executing Dataflow pipelines.

  Fields:
    capabilities: The set of capabilities enumerated in the above Environment
      proto. See also [beam_runner_api.proto](https://github.com/apache/beam/b
      lob/master/model/pipeline/src/main/proto/org/apache/beam/model/pipeline/
      v1/beam_runner_api.proto)
    containerImage: A docker container image that resides in Google Container
      Registry.
    environmentId: Environment ID for the Beam runner API proto Environment
      that corresponds to the current SDK Harness.
    useSingleCorePerContainer: If true, recommends the Dataflow service to use
      only one core per SDK container instance with this image. If false (or
      unset) recommends using more than one core per SDK container instance
      with this image for efficiency. Note that Dataflow service may choose to
      override this property if needed.
  """

  capabilities = _messages.StringField(1, repeated=True)
  containerImage = _messages.StringField(2)
  environmentId = _messages.StringField(3)
  useSingleCorePerContainer = _messages.BooleanField(4)


class SdkVersion(_messages.Message):
  r"""The version of the SDK used to run the job.

  Enums:
    SdkSupportStatusValueValuesEnum: The support status for this SDK version.

  Fields:
    bugs: Output only. Known bugs found in this SDK version.
    sdkSupportStatus: The support status for this SDK version.
    version: The version of the SDK used to run the job.
    versionDisplayName: A readable string describing the version of the SDK.
  """

  class SdkSupportStatusValueValuesEnum(_messages.Enum):
    r"""The support status for this SDK version.

    Values:
      UNKNOWN: Cloud Dataflow is unaware of this version.
      SUPPORTED: This is a known version of an SDK, and is supported.
      STALE: A newer version of the SDK family exists, and an update is
        recommended.
      DEPRECATED: This version of the SDK is deprecated and will eventually be
        unsupported.
      UNSUPPORTED: Support for this SDK version has ended and it should no
        longer be used.
    """
    UNKNOWN = 0
    SUPPORTED = 1
    STALE = 2
    DEPRECATED = 3
    UNSUPPORTED = 4

  bugs = _messages.MessageField('SdkBug', 1, repeated=True)
  sdkSupportStatus = _messages.EnumField('SdkSupportStatusValueValuesEnum', 2)
  version = _messages.StringField(3)
  versionDisplayName = _messages.StringField(4)


class SendDebugCaptureRequest(_messages.Message):
  r"""Request to send encoded debug information. Next ID: 8

  Enums:
    DataFormatValueValuesEnum: Format for the data field above (id=5).

  Fields:
    componentId: The internal component id for which debug information is
      sent.
    data: The encoded debug information.
    dataFormat: Format for the data field above (id=5).
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains the job specified by job_id.
    workerId: The worker id, i.e., VM hostname.
  """

  class DataFormatValueValuesEnum(_messages.Enum):
    r"""Format for the data field above (id=5).

    Values:
      DATA_FORMAT_UNSPECIFIED: Format unspecified, parsing is determined based
        upon page type and legacy encoding. (go/protodosdonts#do-include-an-
        unspecified-value-in-an-enum)
      RAW: Raw HTML string.
      JSON: JSON-encoded string.
      ZLIB: Websafe encoded zlib-compressed string.
      BROTLI: Websafe encoded brotli-compressed string.
    """
    DATA_FORMAT_UNSPECIFIED = 0
    RAW = 1
    JSON = 2
    ZLIB = 3
    BROTLI = 4

  componentId = _messages.StringField(1)
  data = _messages.StringField(2)
  dataFormat = _messages.EnumField('DataFormatValueValuesEnum', 3)
  location = _messages.StringField(4)
  workerId = _messages.StringField(5)


class SendDebugCaptureResponse(_messages.Message):
  r"""Response to a send capture request. nothing"""


class SendWorkerMessagesRequest(_messages.Message):
  r"""A request for sending worker messages to the service.

  Fields:
    location: The [regional endpoint]
      (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
      that contains the job.
    workerMessages: The WorkerMessages to send.
  """

  location = _messages.StringField(1)
  workerMessages = _messages.MessageField('WorkerMessage', 2, repeated=True)


class SendWorkerMessagesResponse(_messages.Message):
  r"""The response to the worker messages.

  Fields:
    workerMessageResponses: The servers response to the worker messages.
  """

  workerMessageResponses = _messages.MessageField('WorkerMessageResponse', 1, repeated=True)


class SeqMapTask(_messages.Message):
  r"""Describes a particular function to invoke.

  Messages:
    UserFnValue: The user function to invoke.

  Fields:
    inputs: Information about each of the inputs.
    name: The user-provided name of the SeqDo operation.
    outputInfos: Information about each of the outputs.
    stageName: System-defined name of the stage containing the SeqDo
      operation. Unique across the workflow.
    systemName: System-defined name of the SeqDo operation. Unique across the
      workflow.
    userFn: The user function to invoke.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class UserFnValue(_messages.Message):
    r"""The user function to invoke.

    Messages:
      AdditionalProperty: An additional property for a UserFnValue object.

    Fields:
      additionalProperties: Properties of the object.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a UserFnValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  inputs = _messages.MessageField('SideInputInfo', 1, repeated=True)
  name = _messages.StringField(2)
  outputInfos = _messages.MessageField('SeqMapTaskOutputInfo', 3, repeated=True)
  stageName = _messages.StringField(4)
  systemName = _messages.StringField(5)
  userFn = _messages.MessageField('UserFnValue', 6)


class SeqMapTaskOutputInfo(_messages.Message):
  r"""Information about an output of a SeqMapTask.

  Fields:
    sink: The sink to write the output value to.
    tag: The id of the TupleTag the user code will tag the output value by.
  """

  sink = _messages.MessageField('Sink', 1)
  tag = _messages.StringField(2)


class ServiceResources(_messages.Message):
  r"""Resources used by the Dataflow Service to run the job.

  Fields:
    zones: Output only. List of Cloud Zones being used by the Dataflow Service
      for this job. Example: us-central1-c
  """

  zones = _messages.StringField(1, repeated=True)


class ShellTask(_messages.Message):
  r"""A task which consists of a shell command for the worker to execute.

  Fields:
    command: The shell command to run.
    exitCode: Exit code for the task.
  """

  command = _messages.StringField(1)
  exitCode = _messages.IntegerField(2, variant=_messages.Variant.INT32)


class SideInputInfo(_messages.Message):
  r"""Information about a side input of a DoFn or an input of a SeqDoFn.

  Messages:
    KindValue: How to interpret the source element(s) as a side input value.

  Fields:
    kind: How to interpret the source element(s) as a side input value.
    sources: The source(s) to read element(s) from to get the value of this
      side input. If more than one source, then the elements are taken from
      the sources, in the specified order if order matters. At least one
      source is required.
    tag: The id of the tag the user code will access this side input by; this
      should correspond to the tag of some MultiOutputInfo.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class KindValue(_messages.Message):
    r"""How to interpret the source element(s) as a side input value.

    Messages:
      AdditionalProperty: An additional property for a KindValue object.

    Fields:
      additionalProperties: Properties of the object.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a KindValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  kind = _messages.MessageField('KindValue', 1)
  sources = _messages.MessageField('Source', 2, repeated=True)
  tag = _messages.StringField(3)


class Sink(_messages.Message):
  r"""A sink that records can be encoded and written to.

  Messages:
    CodecValue: The codec to use to encode data written to the sink.
    SpecValue: The sink to write to, plus its parameters.

  Fields:
    codec: The codec to use to encode data written to the sink.
    spec: The sink to write to, plus its parameters.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class CodecValue(_messages.Message):
    r"""The codec to use to encode data written to the sink.

    Messages:
      AdditionalProperty: An additional property for a CodecValue object.

    Fields:
      additionalProperties: Properties of the object.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a CodecValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  @encoding.MapUnrecognizedFields('additionalProperties')
  class SpecValue(_messages.Message):
    r"""The sink to write to, plus its parameters.

    Messages:
      AdditionalProperty: An additional property for a SpecValue object.

    Fields:
      additionalProperties: Properties of the object.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a SpecValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  codec = _messages.MessageField('CodecValue', 1)
  spec = _messages.MessageField('SpecValue', 2)


class Snapshot(_messages.Message):
  r"""Represents a snapshot of a job.

  Enums:
    StateValueValuesEnum: State of the snapshot.

  Fields:
    creationTime: The time this snapshot was created.
    description: User specified description of the snapshot. Maybe empty.
    diskSizeBytes: The disk byte size of the snapshot. Only available for
      snapshots in READY state.
    id: The unique ID of this snapshot.
    projectId: The project this snapshot belongs to.
    pubsubMetadata: Pub/Sub snapshot metadata.
    region: Cloud region where this snapshot lives in, e.g., "us-central1".
    sourceJobId: The job this snapshot was created from.
    state: State of the snapshot.
    ttl: The time after which this snapshot will be automatically deleted.
  """

  class StateValueValuesEnum(_messages.Enum):
    r"""State of the snapshot.

    Values:
      UNKNOWN_SNAPSHOT_STATE: Unknown state.
      PENDING: Snapshot intent to create has been persisted, snapshotting of
        state has not yet started.
      RUNNING: Snapshotting is being performed.
      READY: Snapshot has been created and is ready to be used.
      FAILED: Snapshot failed to be created.
      DELETED: Snapshot has been deleted.
    """
    UNKNOWN_SNAPSHOT_STATE = 0
    PENDING = 1
    RUNNING = 2
    READY = 3
    FAILED = 4
    DELETED = 5

  creationTime = _messages.StringField(1)
  description = _messages.StringField(2)
  diskSizeBytes = _messages.IntegerField(3)
  id = _messages.StringField(4)
  projectId = _messages.StringField(5)
  pubsubMetadata = _messages.MessageField('PubsubSnapshotMetadata', 6, repeated=True)
  region = _messages.StringField(7)
  sourceJobId = _messages.StringField(8)
  state = _messages.EnumField('StateValueValuesEnum', 9)
  ttl = _messages.StringField(10)


class SnapshotJobRequest(_messages.Message):
  r"""Request to create a snapshot of a job.

  Fields:
    description: User specified description of the snapshot. Maybe empty.
    location: The location that contains this job.
    snapshotSources: If true, perform snapshots for sources which support
      this.
    ttl: TTL for the snapshot.
  """

  description = _messages.StringField(1)
  location = _messages.StringField(2)
  snapshotSources = _messages.BooleanField(3)
  ttl = _messages.StringField(4)


class SnapshotPolicy(_messages.Message):
  r"""Snapshot policies to take a snapshot of the existing dataflow job before
  beginning the deployment.

  Fields:
    description: User specified description of the snapshot. Maybe empty.
    snapshot: If true, task a snapshot of the existing dataflow job before
      beginning the deployment.
    snapshotSources: If true, perform snapshots for sources which support
      this.
    ttl: TTL for the snapshot.
  """

  description = _messages.StringField(1)
  snapshot = _messages.BooleanField(2)
  snapshotSources = _messages.BooleanField(3)
  ttl = _messages.StringField(4)


class Source(_messages.Message):
  r"""A source that records can be read and decoded from.

  Messages:
    BaseSpecsValueListEntry: A BaseSpecsValueListEntry object.
    CodecValue: The codec to use to decode data read from the source.
    SpecValue: The source to read from, plus its parameters.

  Fields:
    baseSpecs: 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: The codec to use to decode data read from the source.
    doesNotNeedSplitting: 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.
    metadata: 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.
    spec: The source to read from, plus its parameters.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class BaseSpecsValueListEntry(_messages.Message):
    r"""A BaseSpecsValueListEntry object.

    Messages:
      AdditionalProperty: An additional property for a BaseSpecsValueListEntry
        object.

    Fields:
      additionalProperties: Properties of the object.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a BaseSpecsValueListEntry object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  @encoding.MapUnrecognizedFields('additionalProperties')
  class CodecValue(_messages.Message):
    r"""The codec to use to decode data read from the source.

    Messages:
      AdditionalProperty: An additional property for a CodecValue object.

    Fields:
      additionalProperties: Properties of the object.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a CodecValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  @encoding.MapUnrecognizedFields('additionalProperties')
  class SpecValue(_messages.Message):
    r"""The source to read from, plus its parameters.

    Messages:
      AdditionalProperty: An additional property for a SpecValue object.

    Fields:
      additionalProperties: Properties of the object.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a SpecValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  baseSpecs = _messages.MessageField('BaseSpecsValueListEntry', 1, repeated=True)
  codec = _messages.MessageField('CodecValue', 2)
  doesNotNeedSplitting = _messages.BooleanField(3)
  metadata = _messages.MessageField('SourceMetadata', 4)
  spec = _messages.MessageField('SpecValue', 5)


class SourceFork(_messages.Message):
  r"""DEPRECATED in favor of DynamicSourceSplit.

  Fields:
    primary: DEPRECATED
    primarySource: DEPRECATED
    residual: DEPRECATED
    residualSource: DEPRECATED
  """

  primary = _messages.MessageField('SourceSplitShard', 1)
  primarySource = _messages.MessageField('DerivedSource', 2)
  residual = _messages.MessageField('SourceSplitShard', 3)
  residualSource = _messages.MessageField('DerivedSource', 4)


class SourceGetMetadataRequest(_messages.Message):
  r"""A request to compute the SourceMetadata of a Source.

  Fields:
    source: Specification of the source whose metadata should be computed.
  """

  source = _messages.MessageField('Source', 1)


class SourceGetMetadataResponse(_messages.Message):
  r"""The result of a SourceGetMetadataOperation.

  Fields:
    metadata: The computed metadata.
  """

  metadata = _messages.MessageField('SourceMetadata', 1)


class SourceMetadata(_messages.Message):
  r"""Metadata about a Source useful for automatically optimizing and tuning
  the pipeline, etc.

  Fields:
    estimatedSizeBytes: 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.
    infinite: Specifies that the size of this source is known to be infinite
      (this is a streaming source).
    producesSortedKeys: Whether this source is known to produce key/value
      pairs with the (encoded) keys in lexicographically sorted order.
  """

  estimatedSizeBytes = _messages.IntegerField(1)
  infinite = _messages.BooleanField(2)
  producesSortedKeys = _messages.BooleanField(3)


class SourceOperationRequest(_messages.Message):
  r"""A work item that represents the different operations that can be
  performed on a user-defined Source specification.

  Fields:
    getMetadata: Information about a request to get metadata about a source.
    name: User-provided name of the Read instruction for this source.
    originalName: System-defined name for the Read instruction for this source
      in the original workflow graph.
    split: Information about a request to split a source.
    stageName: System-defined name of the stage containing the source
      operation. Unique across the workflow.
    systemName: System-defined name of the Read instruction for this source.
      Unique across the workflow.
  """

  getMetadata = _messages.MessageField('SourceGetMetadataRequest', 1)
  name = _messages.StringField(2)
  originalName = _messages.StringField(3)
  split = _messages.MessageField('SourceSplitRequest', 4)
  stageName = _messages.StringField(5)
  systemName = _messages.StringField(6)


class SourceOperationResponse(_messages.Message):
  r"""The result of a SourceOperationRequest, specified in
  ReportWorkItemStatusRequest.source_operation when the work item is
  completed.

  Fields:
    getMetadata: A response to a request to get metadata about a source.
    split: A response to a request to split a source.
  """

  getMetadata = _messages.MessageField('SourceGetMetadataResponse', 1)
  split = _messages.MessageField('SourceSplitResponse', 2)


class SourceSplitOptions(_messages.Message):
  r"""Hints for splitting a Source into bundles (parts for parallel
  processing) using SourceSplitRequest.

  Fields:
    desiredBundleSizeBytes: The source should be split into a set of bundles
      where the estimated size of each is approximately this many bytes.
    desiredShardSizeBytes: DEPRECATED in favor of desired_bundle_size_bytes.
  """

  desiredBundleSizeBytes = _messages.IntegerField(1)
  desiredShardSizeBytes = _messages.IntegerField(2)


class SourceSplitRequest(_messages.Message):
  r"""Represents the operation to split a high-level Source specification into
  bundles (parts for parallel processing). At a high level, splitting of a
  source into bundles happens as follows: SourceSplitRequest is applied to the
  source. If it returns SOURCE_SPLIT_OUTCOME_USE_CURRENT, no further splitting
  happens and the source is used "as is". Otherwise, splitting is applied
  recursively to each produced DerivedSource. As an optimization, for any
  Source, if its does_not_need_splitting is true, the framework assumes that
  splitting this source would return SOURCE_SPLIT_OUTCOME_USE_CURRENT, and
  doesn't initiate a SourceSplitRequest. This applies both to the initial
  source being split and to bundles produced from it.

  Fields:
    options: Hints for tuning the splitting process.
    source: Specification of the source to be split.
  """

  options = _messages.MessageField('SourceSplitOptions', 1)
  source = _messages.MessageField('Source', 2)


class SourceSplitResponse(_messages.Message):
  r"""The response to a SourceSplitRequest.

  Enums:
    OutcomeValueValuesEnum: 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.

  Fields:
    bundles: 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.
    outcome: 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.
    shards: DEPRECATED in favor of bundles.
  """

  class OutcomeValueValuesEnum(_messages.Enum):
    r"""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.

    Values:
      SOURCE_SPLIT_OUTCOME_UNKNOWN: The source split outcome is unknown, or
        unspecified.
      SOURCE_SPLIT_OUTCOME_USE_CURRENT: The current source should be processed
        "as is" without splitting.
      SOURCE_SPLIT_OUTCOME_SPLITTING_HAPPENED: Splitting produced a list of
        bundles.
    """
    SOURCE_SPLIT_OUTCOME_UNKNOWN = 0
    SOURCE_SPLIT_OUTCOME_USE_CURRENT = 1
    SOURCE_SPLIT_OUTCOME_SPLITTING_HAPPENED = 2

  bundles = _messages.MessageField('DerivedSource', 1, repeated=True)
  outcome = _messages.EnumField('OutcomeValueValuesEnum', 2)
  shards = _messages.MessageField('SourceSplitShard', 3, repeated=True)


class SourceSplitShard(_messages.Message):
  r"""DEPRECATED in favor of DerivedSource.

  Enums:
    DerivationModeValueValuesEnum: DEPRECATED

  Fields:
    derivationMode: DEPRECATED
    source: DEPRECATED
  """

  class DerivationModeValueValuesEnum(_messages.Enum):
    r"""DEPRECATED

    Values:
      SOURCE_DERIVATION_MODE_UNKNOWN: The source derivation is unknown, or
        unspecified.
      SOURCE_DERIVATION_MODE_INDEPENDENT: Produce a completely independent
        Source with no base.
      SOURCE_DERIVATION_MODE_CHILD_OF_CURRENT: Produce a Source based on the
        Source being split.
      SOURCE_DERIVATION_MODE_SIBLING_OF_CURRENT: Produce a Source based on the
        base of the Source being split.
    """
    SOURCE_DERIVATION_MODE_UNKNOWN = 0
    SOURCE_DERIVATION_MODE_INDEPENDENT = 1
    SOURCE_DERIVATION_MODE_CHILD_OF_CURRENT = 2
    SOURCE_DERIVATION_MODE_SIBLING_OF_CURRENT = 3

  derivationMode = _messages.EnumField('DerivationModeValueValuesEnum', 1)
  source = _messages.MessageField('Source', 2)


class SpannerIODetails(_messages.Message):
  r"""Metadata for a Spanner connector used by the job.

  Fields:
    databaseId: DatabaseId accessed in the connection.
    instanceId: InstanceId accessed in the connection.
    projectId: ProjectId accessed in the connection.
  """

  databaseId = _messages.StringField(1)
  instanceId = _messages.StringField(2)
  projectId = _messages.StringField(3)


class SplitInt64(_messages.Message):
  r"""A representation of an int64, n, that is immune to precision loss when
  encoded in JSON.

  Fields:
    highBits: The high order bits, including the sign: n >> 32.
    lowBits: The low order bits: n & 0xffffffff.
  """

  highBits = _messages.IntegerField(1, variant=_messages.Variant.INT32)
  lowBits = _messages.IntegerField(2, variant=_messages.Variant.UINT32)


class Stack(_messages.Message):
  r"""A structuredstacktrace for a process running on the worker.

  Fields:
    stackContent: The raw stack trace.
    threadCount: With java thread dumps we may get collapsed stacks e.g., N
      threads in stack "". Instead of having to copy over the same stack trace
      N times, this int field captures this.
    threadName: Thread name. For example, "CommitThread-0,10,main"
    threadState: The state of the thread. For example, "WAITING".
    timestamp: Timestamp at which the stack was captured.
  """

  stackContent = _messages.StringField(1)
  threadCount = _messages.IntegerField(2, variant=_messages.Variant.INT32)
  threadName = _messages.StringField(3)
  threadState = _messages.StringField(4)
  timestamp = _messages.StringField(5)


class StageExecutionDetails(_messages.Message):
  r"""Information about the workers and work items within a stage.

  Fields:
    nextPageToken: If present, this response does not contain all requested
      tasks. To obtain the next page of results, repeat the request with
      page_token set to this value.
    workers: Workers that have done work on the stage.
  """

  nextPageToken = _messages.StringField(1)
  workers = _messages.MessageField('WorkerDetails', 2, repeated=True)


class StageSource(_messages.Message):
  r"""Description of an input or output of an execution stage.

  Fields:
    name: Dataflow service generated name for this source.
    originalTransformOrCollection: User name for the original user transform
      or collection with which this source is most closely associated.
    sizeBytes: Size of the source, if measurable.
    userName: Human-readable name for this source; may be user or system
      generated.
  """

  name = _messages.StringField(1)
  originalTransformOrCollection = _messages.StringField(2)
  sizeBytes = _messages.IntegerField(3)
  userName = _messages.StringField(4)


class StageSummary(_messages.Message):
  r"""Information about a particular execution stage of a job.

  Enums:
    StateValueValuesEnum: State of this stage.

  Fields:
    endTime: End time of this stage. If the work item is completed, this is
      the actual end time of the stage. Otherwise, it is the predicted end
      time.
    metrics: Metrics for this stage.
    progress: Progress for this stage. Only applicable to Batch jobs.
    stageId: ID of this stage
    startTime: Start time of this stage.
    state: State of this stage.
    stragglerSummary: Straggler summary for this stage.
  """

  class StateValueValuesEnum(_messages.Enum):
    r"""State of this stage.

    Values:
      EXECUTION_STATE_UNKNOWN: The component state is unknown or unspecified.
      EXECUTION_STATE_NOT_STARTED: The component is not yet running.
      EXECUTION_STATE_RUNNING: The component is currently running.
      EXECUTION_STATE_SUCCEEDED: The component succeeded.
      EXECUTION_STATE_FAILED: The component failed.
      EXECUTION_STATE_CANCELLED: Execution of the component was cancelled.
    """
    EXECUTION_STATE_UNKNOWN = 0
    EXECUTION_STATE_NOT_STARTED = 1
    EXECUTION_STATE_RUNNING = 2
    EXECUTION_STATE_SUCCEEDED = 3
    EXECUTION_STATE_FAILED = 4
    EXECUTION_STATE_CANCELLED = 5

  endTime = _messages.StringField(1)
  metrics = _messages.MessageField('MetricUpdate', 2, repeated=True)
  progress = _messages.MessageField('ProgressTimeseries', 3)
  stageId = _messages.StringField(4)
  startTime = _messages.StringField(5)
  state = _messages.EnumField('StateValueValuesEnum', 6)
  stragglerSummary = _messages.MessageField('StragglerSummary', 7)


class StandardQueryParameters(_messages.Message):
  r"""Query parameters accepted by all methods.

  Enums:
    FXgafvValueValuesEnum: V1 error format.
    AltValueValuesEnum: Data format for response.

  Fields:
    f__xgafv: V1 error format.
    access_token: OAuth access token.
    alt: Data format for response.
    callback: JSONP
    fields: Selector specifying which fields to include in a partial response.
    key: API key. Your API key identifies your project and provides you with
      API access, quota, and reports. Required unless you provide an OAuth 2.0
      token.
    oauth_token: OAuth 2.0 token for the current user.
    prettyPrint: Returns response with indentations and line breaks.
    quotaUser: Available to use for quota purposes for server-side
      applications. Can be any arbitrary string assigned to a user, but should
      not exceed 40 characters.
    trace: A tracing token of the form "token:<tokenid>" to include in api
      requests.
    uploadType: Legacy upload protocol for media (e.g. "media", "multipart").
    upload_protocol: Upload protocol for media (e.g. "raw", "multipart").
  """

  class AltValueValuesEnum(_messages.Enum):
    r"""Data format for response.

    Values:
      json: Responses with Content-Type of application/json
      media: Media download with context-dependent Content-Type
      proto: Responses with Content-Type of application/x-protobuf
    """
    json = 0
    media = 1
    proto = 2

  class FXgafvValueValuesEnum(_messages.Enum):
    r"""V1 error format.

    Values:
      _1: v1 error format
      _2: v2 error format
    """
    _1 = 0
    _2 = 1

  f__xgafv = _messages.EnumField('FXgafvValueValuesEnum', 1)
  access_token = _messages.StringField(2)
  alt = _messages.EnumField('AltValueValuesEnum', 3, default='json')
  callback = _messages.StringField(4)
  fields = _messages.StringField(5)
  key = _messages.StringField(6)
  oauth_token = _messages.StringField(7)
  prettyPrint = _messages.BooleanField(8, default=True)
  quotaUser = _messages.StringField(9)
  trace = _messages.StringField(10)
  uploadType = _messages.StringField(11)
  upload_protocol = _messages.StringField(12)


class StateFamilyConfig(_messages.Message):
  r"""State family configuration.

  Fields:
    isRead: If true, this family corresponds to a read operation.
    stateFamily: The state family value.
  """

  isRead = _messages.BooleanField(1)
  stateFamily = _messages.StringField(2)


class Status(_messages.Message):
  r"""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).

  Messages:
    DetailsValueListEntry: A DetailsValueListEntry object.

  Fields:
    code: The status code, which should be an enum value of google.rpc.Code.
    details: A list of messages that carry the error details. There is a
      common set of message types for APIs to use.
    message: 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.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class DetailsValueListEntry(_messages.Message):
    r"""A DetailsValueListEntry object.

    Messages:
      AdditionalProperty: An additional property for a DetailsValueListEntry
        object.

    Fields:
      additionalProperties: Properties of the object. Contains field @type
        with type URL.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a DetailsValueListEntry object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  code = _messages.IntegerField(1, variant=_messages.Variant.INT32)
  details = _messages.MessageField('DetailsValueListEntry', 2, repeated=True)
  message = _messages.StringField(3)


class Step(_messages.Message):
  r"""Defines a particular step within a Cloud Dataflow job. A job consists of
  multiple steps, each of which performs some specific operation as part of
  the overall job. Data is typically passed from one step to another as part
  of the job. **Note:** The properties of this object are not stable and might
  change. Here's an example of a sequence of steps which together implement a
  Map-Reduce job: * Read a collection of data from some source, parsing the
  collection's elements. * Validate the elements. * Apply a user-defined
  function to map each element to some value and extract an element-specific
  key value. * Group elements with the same key into a single element with
  that key, transforming a multiply-keyed collection into a uniquely-keyed
  collection. * Write the elements out to some data sink. Note that the Cloud
  Dataflow service may be used to run many different types of jobs, not just
  Map-Reduce.

  Messages:
    PropertiesValue: Named properties associated with the step. Each kind of
      predefined step has its own required set of properties. Must be provided
      on Create. Only retrieved with JOB_VIEW_ALL.

  Fields:
    kind: The kind of step in the Cloud Dataflow job.
    name: The name that identifies the step. This must be unique for each step
      with respect to all other steps in the Cloud Dataflow job.
    properties: Named properties associated with the step. Each kind of
      predefined step has its own required set of properties. Must be provided
      on Create. Only retrieved with JOB_VIEW_ALL.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class PropertiesValue(_messages.Message):
    r"""Named properties associated with the step. Each kind of predefined
    step has its own required set of properties. Must be provided on Create.
    Only retrieved with JOB_VIEW_ALL.

    Messages:
      AdditionalProperty: An additional property for a PropertiesValue object.

    Fields:
      additionalProperties: Properties of the object.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a PropertiesValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  kind = _messages.StringField(1)
  name = _messages.StringField(2)
  properties = _messages.MessageField('PropertiesValue', 3)


class Straggler(_messages.Message):
  r"""Information for a straggler.

  Fields:
    batchStraggler: Batch straggler identification and debugging information.
    streamingStraggler: Streaming straggler identification and debugging
      information.
  """

  batchStraggler = _messages.MessageField('StragglerInfo', 1)
  streamingStraggler = _messages.MessageField('StreamingStragglerInfo', 2)


class StragglerDebuggingInfo(_messages.Message):
  r"""Information useful for debugging a straggler. Each type will provide
  specialized debugging information relevant for a particular cause. The
  StragglerDebuggingInfo will be 1:1 mapping to the StragglerCause enum.

  Fields:
    hotKey: Hot key debugging details.
  """

  hotKey = _messages.MessageField('HotKeyDebuggingInfo', 1)


class StragglerInfo(_messages.Message):
  r"""Information useful for straggler identification and debugging.

  Messages:
    CausesValue: The straggler causes, keyed by the string representation of
      the StragglerCause enum and contains specialized debugging information
      for each straggler cause.

  Fields:
    causes: The straggler causes, keyed by the string representation of the
      StragglerCause enum and contains specialized debugging information for
      each straggler cause.
    startTime: The time when the work item attempt became a straggler.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class CausesValue(_messages.Message):
    r"""The straggler causes, keyed by the string representation of the
    StragglerCause enum and contains specialized debugging information for
    each straggler cause.

    Messages:
      AdditionalProperty: An additional property for a CausesValue object.

    Fields:
      additionalProperties: Additional properties of type CausesValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a CausesValue object.

      Fields:
        key: Name of the additional property.
        value: A StragglerDebuggingInfo attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('StragglerDebuggingInfo', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  causes = _messages.MessageField('CausesValue', 1)
  startTime = _messages.StringField(2)


class StragglerSummary(_messages.Message):
  r"""Summarized straggler identification details.

  Messages:
    StragglerCauseCountValue: Aggregated counts of straggler causes, keyed by
      the string representation of the StragglerCause enum.

  Fields:
    recentStragglers: The most recent stragglers.
    stragglerCauseCount: Aggregated counts of straggler causes, keyed by the
      string representation of the StragglerCause enum.
    totalStragglerCount: The total count of stragglers.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class StragglerCauseCountValue(_messages.Message):
    r"""Aggregated counts of straggler causes, keyed by the string
    representation of the StragglerCause enum.

    Messages:
      AdditionalProperty: An additional property for a
        StragglerCauseCountValue object.

    Fields:
      additionalProperties: Additional properties of type
        StragglerCauseCountValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a StragglerCauseCountValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.IntegerField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  recentStragglers = _messages.MessageField('Straggler', 1, repeated=True)
  stragglerCauseCount = _messages.MessageField('StragglerCauseCountValue', 2)
  totalStragglerCount = _messages.IntegerField(3)


class StreamLocation(_messages.Message):
  r"""Describes a stream of data, either as input to be processed or as output
  of a streaming Dataflow job.

  Fields:
    customSourceLocation: The stream is a custom source.
    pubsubLocation: The stream is a pubsub stream.
    sideInputLocation: The stream is a streaming side input.
    streamingStageLocation: The stream is part of another computation within
      the current streaming Dataflow job.
  """

  customSourceLocation = _messages.MessageField('CustomSourceLocation', 1)
  pubsubLocation = _messages.MessageField('PubsubLocation', 2)
  sideInputLocation = _messages.MessageField('StreamingSideInputLocation', 3)
  streamingStageLocation = _messages.MessageField('StreamingStageLocation', 4)


class StreamingApplianceSnapshotConfig(_messages.Message):
  r"""Streaming appliance snapshot configuration.

  Fields:
    importStateEndpoint: Indicates which endpoint is used to import appliance
      state.
    snapshotId: If set, indicates the snapshot id for the snapshot being
      performed.
  """

  importStateEndpoint = _messages.StringField(1)
  snapshotId = _messages.StringField(2)


class StreamingComputationConfig(_messages.Message):
  r"""Configuration information for a single streaming computation.

  Messages:
    TransformUserNameToStateFamilyValue: Map from user name of stateful
      transforms in this stage to their state family.

  Fields:
    computationId: Unique identifier for this computation.
    instructions: Instructions that comprise the computation.
    stageName: Stage name of this computation.
    systemName: System defined name for this computation.
    transformUserNameToStateFamily: Map from user name of stateful transforms
      in this stage to their state family.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class TransformUserNameToStateFamilyValue(_messages.Message):
    r"""Map from user name of stateful transforms in this stage to their state
    family.

    Messages:
      AdditionalProperty: An additional property for a
        TransformUserNameToStateFamilyValue object.

    Fields:
      additionalProperties: Additional properties of type
        TransformUserNameToStateFamilyValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a TransformUserNameToStateFamilyValue
      object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  computationId = _messages.StringField(1)
  instructions = _messages.MessageField('ParallelInstruction', 2, repeated=True)
  stageName = _messages.StringField(3)
  systemName = _messages.StringField(4)
  transformUserNameToStateFamily = _messages.MessageField('TransformUserNameToStateFamilyValue', 5)


class StreamingComputationRanges(_messages.Message):
  r"""Describes full or partial data disk assignment information of the
  computation ranges.

  Fields:
    computationId: The ID of the computation.
    rangeAssignments: Data disk assignments for ranges from this computation.
  """

  computationId = _messages.StringField(1)
  rangeAssignments = _messages.MessageField('KeyRangeDataDiskAssignment', 2, repeated=True)


class StreamingComputationTask(_messages.Message):
  r"""A task which describes what action should be performed for the specified
  streaming computation ranges.

  Enums:
    TaskTypeValueValuesEnum: A type of streaming computation task.

  Fields:
    computationRanges: Contains ranges of a streaming computation this task
      should apply to.
    dataDisks: Describes the set of data disks this task should apply to.
    taskType: A type of streaming computation task.
  """

  class TaskTypeValueValuesEnum(_messages.Enum):
    r"""A type of streaming computation task.

    Values:
      STREAMING_COMPUTATION_TASK_UNKNOWN: The streaming computation task is
        unknown, or unspecified.
      STREAMING_COMPUTATION_TASK_STOP: Stop processing specified streaming
        computation range(s).
      STREAMING_COMPUTATION_TASK_START: Start processing specified streaming
        computation range(s).
    """
    STREAMING_COMPUTATION_TASK_UNKNOWN = 0
    STREAMING_COMPUTATION_TASK_STOP = 1
    STREAMING_COMPUTATION_TASK_START = 2

  computationRanges = _messages.MessageField('StreamingComputationRanges', 1, repeated=True)
  dataDisks = _messages.MessageField('MountedDataDisk', 2, repeated=True)
  taskType = _messages.EnumField('TaskTypeValueValuesEnum', 3)


class StreamingConfigTask(_messages.Message):
  r"""A task that carries configuration information for streaming
  computations.

  Messages:
    UserStepToStateFamilyNameMapValue: Map from user step names to state
      families.

  Fields:
    commitStreamChunkSizeBytes: Chunk size for commit streams from the harness
      to windmill.
    getDataStreamChunkSizeBytes: Chunk size for get data streams from the
      harness to windmill.
    maxWorkItemCommitBytes: Maximum size for work item commit supported
      windmill storage layer.
    operationalLimits: Operational limits for the streaming job. Can be used
      by the worker to validate outputs sent to the backend.
    streamingComputationConfigs: Set of computation configuration information.
    streamingEngineStateTagEncodingVersion: Optional. The state tag encoding
      format version for streaming engine jobs.
    userStepToStateFamilyNameMap: Map from user step names to state families.
    userWorkerRunnerV1Settings: Binary encoded proto to control runtime
      behavior of the java runner v1 user worker.
    userWorkerRunnerV2Settings: Binary encoded proto to control runtime
      behavior of the runner v2 user worker.
    windmillServiceEndpoint: If present, the worker must use this endpoint to
      communicate with Windmill Service dispatchers, otherwise the worker must
      continue to use whatever endpoint it had been using.
    windmillServicePort: If present, the worker must use this port to
      communicate with Windmill Service dispatchers. Only applicable when
      windmill_service_endpoint is specified.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class UserStepToStateFamilyNameMapValue(_messages.Message):
    r"""Map from user step names to state families.

    Messages:
      AdditionalProperty: An additional property for a
        UserStepToStateFamilyNameMapValue object.

    Fields:
      additionalProperties: Additional properties of type
        UserStepToStateFamilyNameMapValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a UserStepToStateFamilyNameMapValue
      object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  commitStreamChunkSizeBytes = _messages.IntegerField(1)
  getDataStreamChunkSizeBytes = _messages.IntegerField(2)
  maxWorkItemCommitBytes = _messages.IntegerField(3)
  operationalLimits = _messages.MessageField('StreamingOperationalLimits', 4)
  streamingComputationConfigs = _messages.MessageField('StreamingComputationConfig', 5, repeated=True)
  streamingEngineStateTagEncodingVersion = _messages.IntegerField(6, variant=_messages.Variant.INT32)
  userStepToStateFamilyNameMap = _messages.MessageField('UserStepToStateFamilyNameMapValue', 7)
  userWorkerRunnerV1Settings = _messages.BytesField(8)
  userWorkerRunnerV2Settings = _messages.BytesField(9)
  windmillServiceEndpoint = _messages.StringField(10)
  windmillServicePort = _messages.IntegerField(11)


class StreamingOperationalLimits(_messages.Message):
  r"""Operational limits imposed on streaming jobs by the backend.

  Fields:
    maxBagElementBytes: The maximum size for an element in bag state.
    maxGlobalDataBytes: The maximum size for an element in global data.
    maxKeyBytes: The maximum size allowed for a key.
    maxProductionOutputBytes: The maximum size for a single output element.
    maxSortedListElementBytes: The maximum size for an element in sorted list
      state.
    maxSourceStateBytes: The maximum size for a source state update.
    maxTagBytes: The maximum size for a state tag.
    maxValueBytes: The maximum size for a value state field.
  """

  maxBagElementBytes = _messages.IntegerField(1)
  maxGlobalDataBytes = _messages.IntegerField(2)
  maxKeyBytes = _messages.IntegerField(3)
  maxProductionOutputBytes = _messages.IntegerField(4)
  maxSortedListElementBytes = _messages.IntegerField(5)
  maxSourceStateBytes = _messages.IntegerField(6)
  maxTagBytes = _messages.IntegerField(7)
  maxValueBytes = _messages.IntegerField(8)


class StreamingScalingReport(_messages.Message):
  r"""Contains per-user worker telemetry used in streaming autoscaling.

  Fields:
    activeBundleCount: A integer attribute.
    activeThreadCount: Current acive thread count.
    maximumBundleCount: Maximum bundle count.
    maximumBytes: Maximum bytes.
    maximumBytesCount: A integer attribute.
    maximumThreadCount: Maximum thread count limit.
    outstandingBundleCount: Current outstanding bundle count.
    outstandingBytes: Current outstanding bytes.
    outstandingBytesCount: A integer attribute.
  """

  activeBundleCount = _messages.IntegerField(1, variant=_messages.Variant.INT32)
  activeThreadCount = _messages.IntegerField(2, variant=_messages.Variant.INT32)
  maximumBundleCount = _messages.IntegerField(3, variant=_messages.Variant.INT32)
  maximumBytes = _messages.IntegerField(4)
  maximumBytesCount = _messages.IntegerField(5, variant=_messages.Variant.INT32)
  maximumThreadCount = _messages.IntegerField(6, variant=_messages.Variant.INT32)
  outstandingBundleCount = _messages.IntegerField(7, variant=_messages.Variant.INT32)
  outstandingBytes = _messages.IntegerField(8)
  outstandingBytesCount = _messages.IntegerField(9, variant=_messages.Variant.INT32)


class StreamingScalingReportResponse(_messages.Message):
  r"""Contains per-user-worker streaming scaling recommendation from the
  backend.

  Fields:
    maximumThreadCount: Maximum thread count limit;
  """

  maximumThreadCount = _messages.IntegerField(1, variant=_messages.Variant.INT32)


class StreamingSetupTask(_messages.Message):
  r"""A task which initializes part of a streaming Dataflow job.

  Fields:
    drain: The user has requested drain.
    receiveWorkPort: The TCP port on which the worker should listen for
      messages from other streaming computation workers.
    snapshotConfig: Configures streaming appliance snapshot.
    streamingComputationTopology: The global topology of the streaming
      Dataflow job.
    workerHarnessPort: The TCP port used by the worker to communicate with the
      Dataflow worker harness.
  """

  drain = _messages.BooleanField(1)
  receiveWorkPort = _messages.IntegerField(2, variant=_messages.Variant.INT32)
  snapshotConfig = _messages.MessageField('StreamingApplianceSnapshotConfig', 3)
  streamingComputationTopology = _messages.MessageField('TopologyConfig', 4)
  workerHarnessPort = _messages.IntegerField(5, variant=_messages.Variant.INT32)


class StreamingSideInputLocation(_messages.Message):
  r"""Identifies the location of a streaming side input.

  Fields:
    stateFamily: Identifies the state family where this side input is stored.
    tag: Identifies the particular side input within the streaming Dataflow
      job.
  """

  stateFamily = _messages.StringField(1)
  tag = _messages.StringField(2)


class StreamingStageLocation(_messages.Message):
  r"""Identifies the location of a streaming computation stage, for stage-to-
  stage communication.

  Fields:
    streamId: Identifies the particular stream within the streaming Dataflow
      job.
  """

  streamId = _messages.StringField(1)


class StreamingStragglerInfo(_messages.Message):
  r"""Information useful for streaming straggler identification and debugging.

  Fields:
    dataWatermarkLag: The event-time watermark lag at the time of the
      straggler detection.
    endTime: End time of this straggler.
    startTime: Start time of this straggler.
    systemWatermarkLag: The system watermark lag at the time of the straggler
      detection.
    workerName: Name of the worker where the straggler was detected.
  """

  dataWatermarkLag = _messages.StringField(1)
  endTime = _messages.StringField(2)
  startTime = _messages.StringField(3)
  systemWatermarkLag = _messages.StringField(4)
  workerName = _messages.StringField(5)


class StringList(_messages.Message):
  r"""A metric value representing a list of strings.

  Fields:
    elements: Elements of the list.
  """

  elements = _messages.StringField(1, repeated=True)


class StructuredMessage(_messages.Message):
  r"""A rich message format, including a human readable string, a key for
  identifying the message, and structured data associated with the message for
  programmatic consumption.

  Fields:
    messageKey: Identifier for this message type. Used by external systems to
      internationalize or personalize message.
    messageText: Human-readable version of message.
    parameters: The structured data associated with this message.
  """

  messageKey = _messages.StringField(1)
  messageText = _messages.StringField(2)
  parameters = _messages.MessageField('Parameter', 3, repeated=True)


class TaskRunnerSettings(_messages.Message):
  r"""Taskrunner configuration settings.

  Fields:
    alsologtostderr: Whether to also send taskrunner log info to stderr.
    baseTaskDir: The location on the worker for task-specific subdirectories.
    baseUrl: The base URL for the taskrunner to use when accessing Google
      Cloud APIs. When workers access Google Cloud APIs, they logically do so
      via relative URLs. If this field is specified, it supplies the base URL
      to use for resolving these relative URLs. The normative algorithm used
      is defined by RFC 1808, "Relative Uniform Resource Locators". If not
      specified, the default value is "http://www.googleapis.com/"
    commandlinesFileName: The file to store preprocessing commands in.
    continueOnException: Whether to continue taskrunner if an exception is
      hit.
    dataflowApiVersion: The API version of endpoint, e.g. "v1b3"
    harnessCommand: The command to launch the worker harness.
    languageHint: The suggested backend language.
    logDir: The directory on the VM to store logs.
    logToSerialconsole: Whether to send taskrunner log info to Google Compute
      Engine VM serial console.
    logUploadLocation: Indicates where to put logs. If this is not specified,
      the logs will not be uploaded. The supported resource type is: Google
      Cloud Storage: storage.googleapis.com/{bucket}/{object}
      bucket.storage.googleapis.com/{object}
    oauthScopes: The OAuth2 scopes to be requested by the taskrunner in order
      to access the Cloud Dataflow API.
    parallelWorkerSettings: The settings to pass to the parallel worker
      harness.
    streamingWorkerMainClass: The streaming worker main class name.
    taskGroup: The UNIX group ID on the worker VM to use for tasks launched by
      taskrunner; e.g. "wheel".
    taskUser: The UNIX user ID on the worker VM to use for tasks launched by
      taskrunner; e.g. "root".
    tempStoragePrefix: The prefix of the resources the taskrunner should use
      for temporary storage. The supported resource type is: Google Cloud
      Storage: storage.googleapis.com/{bucket}/{object}
      bucket.storage.googleapis.com/{object}
    vmId: The ID string of the VM.
    workflowFileName: The file to store the workflow in.
  """

  alsologtostderr = _messages.BooleanField(1)
  baseTaskDir = _messages.StringField(2)
  baseUrl = _messages.StringField(3)
  commandlinesFileName = _messages.StringField(4)
  continueOnException = _messages.BooleanField(5)
  dataflowApiVersion = _messages.StringField(6)
  harnessCommand = _messages.StringField(7)
  languageHint = _messages.StringField(8)
  logDir = _messages.StringField(9)
  logToSerialconsole = _messages.BooleanField(10)
  logUploadLocation = _messages.StringField(11)
  oauthScopes = _messages.StringField(12, repeated=True)
  parallelWorkerSettings = _messages.MessageField('WorkerSettings', 13)
  streamingWorkerMainClass = _messages.StringField(14)
  taskGroup = _messages.StringField(15)
  taskUser = _messages.StringField(16)
  tempStoragePrefix = _messages.StringField(17)
  vmId = _messages.StringField(18)
  workflowFileName = _messages.StringField(19)


class TemplateMetadata(_messages.Message):
  r"""Metadata describing a template.

  Fields:
    defaultStreamingMode: Optional. Indicates the default streaming mode for a
      streaming template. Only valid if both supports_at_least_once and
      supports_exactly_once are true. Possible values: UNSPECIFIED,
      EXACTLY_ONCE and AT_LEAST_ONCE
    description: Optional. A description of the template.
    name: Required. The name of the template.
    parameters: The parameters for the template.
    streaming: Optional. Indicates if the template is streaming or not.
    supportsAtLeastOnce: Optional. Indicates if the streaming template
      supports at least once mode.
    supportsExactlyOnce: Optional. Indicates if the streaming template
      supports exactly once mode.
    yamlDefinition: Optional. For future use.
  """

  defaultStreamingMode = _messages.StringField(1)
  description = _messages.StringField(2)
  name = _messages.StringField(3)
  parameters = _messages.MessageField('ParameterMetadata', 4, repeated=True)
  streaming = _messages.BooleanField(5)
  supportsAtLeastOnce = _messages.BooleanField(6)
  supportsExactlyOnce = _messages.BooleanField(7)
  yamlDefinition = _messages.StringField(8)


class TemplateVersion(_messages.Message):
  r"""////////////////////////////////////////////////////////////////////////
  ///// //// Template Catalog is used to organize user TemplateVersions. ////
  TemplateVersions that have the same project_id and display_name are ////
  belong to the same Template. //// Templates with the same project_id belong
  to the same Project. //// TemplateVersion may have labels and multiple
  labels are allowed. //// Duplicated labels in the same `TemplateVersion` are
  not allowed. //// TemplateVersion may have tags and multiple tags are
  allowed. Duplicated //// tags in the same `Template` are not allowed!

  Enums:
    TypeValueValuesEnum: Either LEGACY or FLEX. This should match with the
      type of artifact.

  Messages:
    LabelsValue: Labels for the Template Version. Labels can be duplicate
      within Template.

  Fields:
    artifact: Job graph and metadata if it is a legacy Template. Container
      image path and metadata if it is flex Template.
    createTime: Creation time of this TemplateVersion.
    description: Template description from the user.
    displayName: A customized name for Template. Multiple TemplateVersions per
      Template.
    labels: Labels for the Template Version. Labels can be duplicate within
      Template.
    projectId: A unique project_id. Multiple Templates per Project.
    tags: Alias for version_id, helps locate a TemplateVersion.
    type: Either LEGACY or FLEX. This should match with the type of artifact.
    versionId: An auto generated version_id for TemplateVersion.
  """

  class TypeValueValuesEnum(_messages.Enum):
    r"""Either LEGACY or FLEX. This should match with the type of artifact.

    Values:
      TEMPLATE_TYPE_UNSPECIFIED: Default value. Not a useful zero case.
      LEGACY: Legacy Template.
      FLEX: Flex Template.
    """
    TEMPLATE_TYPE_UNSPECIFIED = 0
    LEGACY = 1
    FLEX = 2

  @encoding.MapUnrecognizedFields('additionalProperties')
  class LabelsValue(_messages.Message):
    r"""Labels for the Template Version. Labels can be duplicate within
    Template.

    Messages:
      AdditionalProperty: An additional property for a LabelsValue object.

    Fields:
      additionalProperties: Additional properties of type LabelsValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a LabelsValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  artifact = _messages.MessageField('Artifact', 1)
  createTime = _messages.StringField(2)
  description = _messages.StringField(3)
  displayName = _messages.StringField(4)
  labels = _messages.MessageField('LabelsValue', 5)
  projectId = _messages.StringField(6)
  tags = _messages.StringField(7, repeated=True)
  type = _messages.EnumField('TypeValueValuesEnum', 8)
  versionId = _messages.StringField(9)


class TopologyConfig(_messages.Message):
  r"""Global topology of the streaming Dataflow job, including all
  computations and their sharded locations.

  Messages:
    UserStageToComputationNameMapValue: Maps user stage names to stable
      computation names.

  Fields:
    computations: The computations associated with a streaming Dataflow job.
    dataDiskAssignments: The disks assigned to a streaming Dataflow job.
    forwardingKeyBits: The size (in bits) of keys that will be assigned to
      source messages.
    persistentStateVersion: Version number for persistent state.
    userStageToComputationNameMap: Maps user stage names to stable computation
      names.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class UserStageToComputationNameMapValue(_messages.Message):
    r"""Maps user stage names to stable computation names.

    Messages:
      AdditionalProperty: An additional property for a
        UserStageToComputationNameMapValue object.

    Fields:
      additionalProperties: Additional properties of type
        UserStageToComputationNameMapValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a UserStageToComputationNameMapValue
      object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  computations = _messages.MessageField('ComputationTopology', 1, repeated=True)
  dataDiskAssignments = _messages.MessageField('DataDiskAssignment', 2, repeated=True)
  forwardingKeyBits = _messages.IntegerField(3, variant=_messages.Variant.INT32)
  persistentStateVersion = _messages.IntegerField(4, variant=_messages.Variant.INT32)
  userStageToComputationNameMap = _messages.MessageField('UserStageToComputationNameMapValue', 5)


class TransformSummary(_messages.Message):
  r"""Description of the type, names/ids, and input/outputs for a transform.

  Enums:
    KindValueValuesEnum: Type of transform.

  Fields:
    displayData: Transform-specific display data.
    id: SDK generated id of this transform instance.
    inputCollectionName: User names for all collection inputs to this
      transform.
    kind: Type of transform.
    name: User provided name for this transform instance.
    outputCollectionName: User names for all collection outputs to this
      transform.
  """

  class KindValueValuesEnum(_messages.Enum):
    r"""Type of transform.

    Values:
      UNKNOWN_KIND: Unrecognized transform type.
      PAR_DO_KIND: ParDo transform.
      GROUP_BY_KEY_KIND: Group By Key transform.
      FLATTEN_KIND: Flatten transform.
      READ_KIND: Read transform.
      WRITE_KIND: Write transform.
      CONSTANT_KIND: Constructs from a constant value, such as with Create.of.
      SINGLETON_KIND: Creates a Singleton view of a collection.
      SHUFFLE_KIND: Opening or closing a shuffle session, often as part of a
        GroupByKey.
    """
    UNKNOWN_KIND = 0
    PAR_DO_KIND = 1
    GROUP_BY_KEY_KIND = 2
    FLATTEN_KIND = 3
    READ_KIND = 4
    WRITE_KIND = 5
    CONSTANT_KIND = 6
    SINGLETON_KIND = 7
    SHUFFLE_KIND = 8

  displayData = _messages.MessageField('DisplayData', 1, repeated=True)
  id = _messages.StringField(2)
  inputCollectionName = _messages.StringField(3, repeated=True)
  kind = _messages.EnumField('KindValueValuesEnum', 4)
  name = _messages.StringField(5)
  outputCollectionName = _messages.StringField(6, repeated=True)


class WorkItem(_messages.Message):
  r"""WorkItem represents basic information about a WorkItem to be executed in
  the cloud.

  Fields:
    configuration: Work item-specific configuration as an opaque blob.
    id: Identifies this WorkItem.
    initialReportIndex: The initial index to use when reporting the status of
      the WorkItem.
    jobId: Identifies the workflow job this WorkItem belongs to.
    leaseExpireTime: Time when the lease on this Work will expire.
    mapTask: Additional information for MapTask WorkItems.
    packages: Any required packages that need to be fetched in order to
      execute this WorkItem.
    projectId: Identifies the cloud project this WorkItem belongs to.
    reportStatusInterval: Recommended reporting interval.
    seqMapTask: Additional information for SeqMapTask WorkItems.
    shellTask: Additional information for ShellTask WorkItems.
    sourceOperationTask: Additional information for source operation
      WorkItems.
    streamingComputationTask: Additional information for
      StreamingComputationTask WorkItems.
    streamingConfigTask: Additional information for StreamingConfigTask
      WorkItems.
    streamingSetupTask: Additional information for StreamingSetupTask
      WorkItems.
  """

  configuration = _messages.StringField(1)
  id = _messages.IntegerField(2)
  initialReportIndex = _messages.IntegerField(3)
  jobId = _messages.StringField(4)
  leaseExpireTime = _messages.StringField(5)
  mapTask = _messages.MessageField('MapTask', 6)
  packages = _messages.MessageField('Package', 7, repeated=True)
  projectId = _messages.StringField(8)
  reportStatusInterval = _messages.StringField(9)
  seqMapTask = _messages.MessageField('SeqMapTask', 10)
  shellTask = _messages.MessageField('ShellTask', 11)
  sourceOperationTask = _messages.MessageField('SourceOperationRequest', 12)
  streamingComputationTask = _messages.MessageField('StreamingComputationTask', 13)
  streamingConfigTask = _messages.MessageField('StreamingConfigTask', 14)
  streamingSetupTask = _messages.MessageField('StreamingSetupTask', 15)


class WorkItemDetails(_messages.Message):
  r"""Information about an individual work item execution.

  Enums:
    StateValueValuesEnum: State of this work item.

  Fields:
    attemptId: Attempt ID of this work item
    endTime: 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.
    metrics: Metrics for this work item.
    progress: Progress of this work item.
    startTime: Start time of this work item attempt.
    state: State of this work item.
    stragglerInfo: Information about straggler detections for this work item.
    taskId: Name of this work item.
  """

  class StateValueValuesEnum(_messages.Enum):
    r"""State of this work item.

    Values:
      EXECUTION_STATE_UNKNOWN: The component state is unknown or unspecified.
      EXECUTION_STATE_NOT_STARTED: The component is not yet running.
      EXECUTION_STATE_RUNNING: The component is currently running.
      EXECUTION_STATE_SUCCEEDED: The component succeeded.
      EXECUTION_STATE_FAILED: The component failed.
      EXECUTION_STATE_CANCELLED: Execution of the component was cancelled.
    """
    EXECUTION_STATE_UNKNOWN = 0
    EXECUTION_STATE_NOT_STARTED = 1
    EXECUTION_STATE_RUNNING = 2
    EXECUTION_STATE_SUCCEEDED = 3
    EXECUTION_STATE_FAILED = 4
    EXECUTION_STATE_CANCELLED = 5

  attemptId = _messages.StringField(1)
  endTime = _messages.StringField(2)
  metrics = _messages.MessageField('MetricUpdate', 3, repeated=True)
  progress = _messages.MessageField('ProgressTimeseries', 4)
  startTime = _messages.StringField(5)
  state = _messages.EnumField('StateValueValuesEnum', 6)
  stragglerInfo = _messages.MessageField('StragglerInfo', 7)
  taskId = _messages.StringField(8)


class WorkItemServiceState(_messages.Message):
  r"""The Dataflow service's idea of the current state of a WorkItem being
  processed by a worker.

  Messages:
    HarnessDataValue: Other data returned by the service, specific to the
      particular worker harness.

  Fields:
    completeWorkStatus: If set, a request to complete the work item with the
      given status. This will not be set to OK, unless supported by the
      specific kind of WorkItem. It can be used for the backend to indicate a
      WorkItem must terminate, e.g., for aborting work.
    harnessData: Other data returned by the service, specific to the
      particular worker harness.
    hotKeyDetection: A hot key is a symptom of poor data distribution in which
      there are enough elements mapped to a single key to impact pipeline
      performance. When present, this field includes metadata associated with
      any hot key.
    leaseExpireTime: Time at which the current lease will expire.
    metricShortId: The short ids that workers should use in subsequent metric
      updates. Workers should strive to use short ids whenever possible, but
      it is ok to request the short_id again if a worker lost track of it
      (e.g. if the worker is recovering from a crash). NOTE: it is possible
      that the response may have short ids for a subset of the metrics.
    nextReportIndex: The index value to use for the next report sent by the
      worker. Note: If the report call fails for whatever reason, the worker
      should reuse this index for subsequent report attempts.
    reportStatusInterval: New recommended reporting interval.
    splitRequest: The progress point in the WorkItem where the Dataflow
      service suggests that the worker truncate the task.
    suggestedStopPoint: DEPRECATED in favor of split_request.
    suggestedStopPosition: Obsolete, always empty.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class HarnessDataValue(_messages.Message):
    r"""Other data returned by the service, specific to the particular worker
    harness.

    Messages:
      AdditionalProperty: An additional property for a HarnessDataValue
        object.

    Fields:
      additionalProperties: Properties of the object.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a HarnessDataValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  completeWorkStatus = _messages.MessageField('Status', 1)
  harnessData = _messages.MessageField('HarnessDataValue', 2)
  hotKeyDetection = _messages.MessageField('HotKeyDetection', 3)
  leaseExpireTime = _messages.StringField(4)
  metricShortId = _messages.MessageField('MetricShortId', 5, repeated=True)
  nextReportIndex = _messages.IntegerField(6)
  reportStatusInterval = _messages.StringField(7)
  splitRequest = _messages.MessageField('ApproximateSplitRequest', 8)
  suggestedStopPoint = _messages.MessageField('ApproximateProgress', 9)
  suggestedStopPosition = _messages.MessageField('Position', 10)


class WorkItemStatus(_messages.Message):
  r"""Conveys a worker's progress through the work described by a WorkItem.

  Fields:
    completed: True if the WorkItem was completed (successfully or
      unsuccessfully).
    counterUpdates: Worker output counters for this WorkItem.
    dynamicSourceSplit: See documentation of stop_position.
    errors: Specifies errors which occurred during processing. If errors are
      provided, and completed = true, then the WorkItem is considered to have
      failed.
    metricUpdates: DEPRECATED in favor of counter_updates.
    progress: DEPRECATED in favor of reported_progress.
    reportIndex: 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.
    reportedProgress: The worker's progress through this WorkItem.
    requestedLeaseDuration: Amount of time the worker requests for its lease.
    sourceFork: DEPRECATED in favor of dynamic_source_split.
    sourceOperationResponse: If the work item represented a
      SourceOperationRequest, and the work is completed, contains the result
      of the operation.
    stopPosition: 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.
    totalThrottlerWaitTimeSeconds: Total time the worker spent being throttled
      by external systems.
    workItemId: Identifies the WorkItem.
  """

  completed = _messages.BooleanField(1)
  counterUpdates = _messages.MessageField('CounterUpdate', 2, repeated=True)
  dynamicSourceSplit = _messages.MessageField('DynamicSourceSplit', 3)
  errors = _messages.MessageField('Status', 4, repeated=True)
  metricUpdates = _messages.MessageField('MetricUpdate', 5, repeated=True)
  progress = _messages.MessageField('ApproximateProgress', 6)
  reportIndex = _messages.IntegerField(7)
  reportedProgress = _messages.MessageField('ApproximateReportedProgress', 8)
  requestedLeaseDuration = _messages.StringField(9)
  sourceFork = _messages.MessageField('SourceFork', 10)
  sourceOperationResponse = _messages.MessageField('SourceOperationResponse', 11)
  stopPosition = _messages.MessageField('Position', 12)
  totalThrottlerWaitTimeSeconds = _messages.FloatField(13)
  workItemId = _messages.StringField(14)


class WorkerDetails(_messages.Message):
  r"""Information about a worker

  Fields:
    workItems: Work items processed by this worker, sorted by time.
    workerName: Name of this worker
  """

  workItems = _messages.MessageField('WorkItemDetails', 1, repeated=True)
  workerName = _messages.StringField(2)


class WorkerHealthReport(_messages.Message):
  r"""WorkerHealthReport contains information about the health of a worker.
  The VM should be identified by the labels attached to the WorkerMessage that
  this health ping belongs to.

  Messages:
    PodsValueListEntry: A PodsValueListEntry object.

  Fields:
    msg: Message describing any unusual health reports.
    pods: The pods running on the worker. See:
      http://kubernetes.io/v1.1/docs/api-reference/v1/definitions.html#_v1_pod
      This field is used by the worker to send the status of the indvidual
      containers running on each worker.
    reportInterval: The interval at which the worker is sending health
      reports. The default value of 0 should be interpreted as the field is
      not being explicitly set by the worker.
    vmBrokenCode: Code to describe a specific reason, if known, that a VM has
      reported broken state.
    vmIsBroken: Whether the VM is in a permanently broken state. Broken VMs
      should be abandoned or deleted ASAP to avoid assigning or completing any
      work.
    vmIsHealthy: Whether the VM is currently healthy.
    vmStartupTime: The time the VM was booted.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class PodsValueListEntry(_messages.Message):
    r"""A PodsValueListEntry object.

    Messages:
      AdditionalProperty: An additional property for a PodsValueListEntry
        object.

    Fields:
      additionalProperties: Properties of the object.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a PodsValueListEntry object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  msg = _messages.StringField(1)
  pods = _messages.MessageField('PodsValueListEntry', 2, repeated=True)
  reportInterval = _messages.StringField(3)
  vmBrokenCode = _messages.StringField(4)
  vmIsBroken = _messages.BooleanField(5)
  vmIsHealthy = _messages.BooleanField(6)
  vmStartupTime = _messages.StringField(7)


class WorkerHealthReportResponse(_messages.Message):
  r"""WorkerHealthReportResponse contains information returned to the worker
  in response to a health ping.

  Fields:
    reportInterval: A positive value indicates the worker should change its
      reporting interval to the specified value. The default value of zero
      means no change in report rate is requested by the server.
  """

  reportInterval = _messages.StringField(1)


class WorkerLifecycleEvent(_messages.Message):
  r"""A report of an event in a worker's lifecycle. The proto contains one
  event, because the worker is expected to asynchronously send each message
  immediately after the event. Due to this asynchrony, messages may arrive out
  of order (or missing), and it is up to the consumer to interpret. The
  timestamp of the event is in the enclosing WorkerMessage proto.

  Enums:
    EventValueValuesEnum: The event being reported.

  Messages:
    MetadataValue: Other stats that can accompany an event. E.g. {
      "downloaded_bytes" : "123456" }

  Fields:
    containerStartTime: The start time of this container. All events will
      report this so that events can be grouped together across container/VM
      restarts.
    event: The event being reported.
    metadata: Other stats that can accompany an event. E.g. {
      "downloaded_bytes" : "123456" }
  """

  class EventValueValuesEnum(_messages.Enum):
    r"""The event being reported.

    Values:
      UNKNOWN_EVENT: Invalid event.
      OS_START: The time the VM started.
      CONTAINER_START: Our container code starts running. Multiple containers
        could be distinguished with WorkerMessage.labels if desired.
      NETWORK_UP: The worker has a functional external network connection.
      STAGING_FILES_DOWNLOAD_START: Started downloading staging files.
      STAGING_FILES_DOWNLOAD_FINISH: Finished downloading all staging files.
      SDK_INSTALL_START: For applicable SDKs, started installation of SDK and
        worker packages.
      SDK_INSTALL_FINISH: Finished installing SDK.
    """
    UNKNOWN_EVENT = 0
    OS_START = 1
    CONTAINER_START = 2
    NETWORK_UP = 3
    STAGING_FILES_DOWNLOAD_START = 4
    STAGING_FILES_DOWNLOAD_FINISH = 5
    SDK_INSTALL_START = 6
    SDK_INSTALL_FINISH = 7

  @encoding.MapUnrecognizedFields('additionalProperties')
  class MetadataValue(_messages.Message):
    r"""Other stats that can accompany an event. E.g. { "downloaded_bytes" :
    "123456" }

    Messages:
      AdditionalProperty: An additional property for a MetadataValue object.

    Fields:
      additionalProperties: Additional properties of type MetadataValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a MetadataValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  containerStartTime = _messages.StringField(1)
  event = _messages.EnumField('EventValueValuesEnum', 2)
  metadata = _messages.MessageField('MetadataValue', 3)


class WorkerMessage(_messages.Message):
  r"""WorkerMessage provides information to the backend about a worker.

  Messages:
    LabelsValue: Labels are used to group WorkerMessages. For example, a
      worker_message about a particular container might have the labels: {
      "JOB_ID": "2015-04-22", "WORKER_ID": "wordcount-vm-2015..."
      "CONTAINER_TYPE": "worker", "CONTAINER_ID": "ac1234def"} Label tags
      typically correspond to Label enum values. However, for ease of
      development other strings can be used as tags. LABEL_UNSPECIFIED should
      not be used here.

  Fields:
    dataSamplingReport: Optional. Contains metrics related to go/dataflow-
      data-sampling-telemetry.
    labels: Labels are used to group WorkerMessages. For example, a
      worker_message about a particular container might have the labels: {
      "JOB_ID": "2015-04-22", "WORKER_ID": "wordcount-vm-2015..."
      "CONTAINER_TYPE": "worker", "CONTAINER_ID": "ac1234def"} Label tags
      typically correspond to Label enum values. However, for ease of
      development other strings can be used as tags. LABEL_UNSPECIFIED should
      not be used here.
    perWorkerMetrics: System defined metrics for this worker.
    streamingScalingReport: Contains per-user worker telemetry used in
      streaming autoscaling.
    time: The timestamp of the worker_message.
    workerHealthReport: The health of a worker.
    workerLifecycleEvent: Record of worker lifecycle events.
    workerMessageCode: A worker message code.
    workerMetrics: Resource metrics reported by workers.
    workerShutdownNotice: Shutdown notice by workers.
    workerThreadScalingReport: Thread scaling information reported by workers.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class LabelsValue(_messages.Message):
    r"""Labels are used to group WorkerMessages. For example, a worker_message
    about a particular container might have the labels: { "JOB_ID":
    "2015-04-22", "WORKER_ID": "wordcount-vm-2015..." "CONTAINER_TYPE":
    "worker", "CONTAINER_ID": "ac1234def"} Label tags typically correspond to
    Label enum values. However, for ease of development other strings can be
    used as tags. LABEL_UNSPECIFIED should not be used here.

    Messages:
      AdditionalProperty: An additional property for a LabelsValue object.

    Fields:
      additionalProperties: Additional properties of type LabelsValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a LabelsValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  dataSamplingReport = _messages.MessageField('DataSamplingReport', 1)
  labels = _messages.MessageField('LabelsValue', 2)
  perWorkerMetrics = _messages.MessageField('PerWorkerMetrics', 3)
  streamingScalingReport = _messages.MessageField('StreamingScalingReport', 4)
  time = _messages.StringField(5)
  workerHealthReport = _messages.MessageField('WorkerHealthReport', 6)
  workerLifecycleEvent = _messages.MessageField('WorkerLifecycleEvent', 7)
  workerMessageCode = _messages.MessageField('WorkerMessageCode', 8)
  workerMetrics = _messages.MessageField('ResourceUtilizationReport', 9)
  workerShutdownNotice = _messages.MessageField('WorkerShutdownNotice', 10)
  workerThreadScalingReport = _messages.MessageField('WorkerThreadScalingReport', 11)


class WorkerMessageCode(_messages.Message):
  r"""A message code is used to report status and error messages to the
  service. The message codes are intended to be machine readable. The service
  will take care of translating these into user understandable messages if
  necessary. Example use cases: 1. Worker processes reporting successful
  startup. 2. Worker processes reporting specific errors (e.g. package staging
  failure).

  Messages:
    ParametersValue: Parameters contains specific information about the code.
      This is a struct to allow parameters of different types. Examples: 1.
      For a "HARNESS_STARTED" message parameters might provide the name of the
      worker and additional data like timing information. 2. For a
      "GCS_DOWNLOAD_ERROR" parameters might contain fields listing the Cloud
      Storage objects being downloaded and fields containing errors. In
      general complex data structures should be avoided. If a worker needs to
      send a specific and complicated data structure then please consider
      defining a new proto and adding it to the data oneof in
      WorkerMessageResponse. Conventions: Parameters should only be used for
      information that isn't typically passed as a label. hostname and other
      worker identifiers should almost always be passed as labels since they
      will be included on most messages.

  Fields:
    code: The code is a string intended for consumption by a machine that
      identifies the type of message being sent. Examples: 1.
      "HARNESS_STARTED" might be used to indicate the worker harness has
      started. 2. "GCS_DOWNLOAD_ERROR" might be used to indicate an error
      downloading a Cloud Storage file as part of the boot process of one of
      the worker containers. This is a string and not an enum to make it easy
      to add new codes without waiting for an API change.
    parameters: Parameters contains specific information about the code. This
      is a struct to allow parameters of different types. Examples: 1. For a
      "HARNESS_STARTED" message parameters might provide the name of the
      worker and additional data like timing information. 2. For a
      "GCS_DOWNLOAD_ERROR" parameters might contain fields listing the Cloud
      Storage objects being downloaded and fields containing errors. In
      general complex data structures should be avoided. If a worker needs to
      send a specific and complicated data structure then please consider
      defining a new proto and adding it to the data oneof in
      WorkerMessageResponse. Conventions: Parameters should only be used for
      information that isn't typically passed as a label. hostname and other
      worker identifiers should almost always be passed as labels since they
      will be included on most messages.
  """

  @encoding.MapUnrecognizedFields('additionalProperties')
  class ParametersValue(_messages.Message):
    r"""Parameters contains specific information about the code. This is a
    struct to allow parameters of different types. Examples: 1. For a
    "HARNESS_STARTED" message parameters might provide the name of the worker
    and additional data like timing information. 2. For a "GCS_DOWNLOAD_ERROR"
    parameters might contain fields listing the Cloud Storage objects being
    downloaded and fields containing errors. In general complex data
    structures should be avoided. If a worker needs to send a specific and
    complicated data structure then please consider defining a new proto and
    adding it to the data oneof in WorkerMessageResponse. Conventions:
    Parameters should only be used for information that isn't typically passed
    as a label. hostname and other worker identifiers should almost always be
    passed as labels since they will be included on most messages.

    Messages:
      AdditionalProperty: An additional property for a ParametersValue object.

    Fields:
      additionalProperties: Properties of the object.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a ParametersValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  code = _messages.StringField(1)
  parameters = _messages.MessageField('ParametersValue', 2)


class WorkerMessageResponse(_messages.Message):
  r"""A worker_message response allows the server to pass information to the
  sender.

  Fields:
    streamingScalingReportResponse: Service's streaming scaling response for
      workers.
    workerHealthReportResponse: The service's response to a worker's health
      report.
    workerMetricsResponse: Service's response to reporting worker metrics
      (currently empty).
    workerShutdownNoticeResponse: Service's response to shutdown notice
      (currently empty).
    workerThreadScalingReportResponse: Service's thread scaling recommendation
      for workers.
  """

  streamingScalingReportResponse = _messages.MessageField('StreamingScalingReportResponse', 1)
  workerHealthReportResponse = _messages.MessageField('WorkerHealthReportResponse', 2)
  workerMetricsResponse = _messages.MessageField('ResourceUtilizationReportResponse', 3)
  workerShutdownNoticeResponse = _messages.MessageField('WorkerShutdownNoticeResponse', 4)
  workerThreadScalingReportResponse = _messages.MessageField('WorkerThreadScalingReportResponse', 5)


class WorkerPool(_messages.Message):
  r"""Describes one particular pool of Cloud Dataflow workers to be
  instantiated by the Cloud Dataflow service in order to perform the
  computations required by a job. Note that a workflow job may use multiple
  pools, in order to match the various computational requirements of the
  various stages of the job.

  Enums:
    DefaultPackageSetValueValuesEnum: The default package set to install. This
      allows the service to select a default set of packages which are useful
      to worker harnesses written in a particular language.
    IpConfigurationValueValuesEnum: Configuration for VM IPs.
    TeardownPolicyValueValuesEnum: Sets the policy for determining when to
      turndown worker pool. Allowed values are: `TEARDOWN_ALWAYS`,
      `TEARDOWN_ON_SUCCESS`, and `TEARDOWN_NEVER`. `TEARDOWN_ALWAYS` means
      workers are always torn down regardless of whether the job succeeds.
      `TEARDOWN_ON_SUCCESS` means workers are torn down if the job succeeds.
      `TEARDOWN_NEVER` means the workers are never torn down. If the workers
      are not torn down by the service, they will continue to run and use
      Google Compute Engine VM resources in the user's project until they are
      explicitly terminated by the user. Because of this, Google recommends
      using the `TEARDOWN_ALWAYS` policy except for small, manually supervised
      test jobs. If unknown or unspecified, the service will attempt to choose
      a reasonable default.

  Messages:
    MetadataValue: Metadata to set on the Google Compute Engine VMs.
    PoolArgsValue: Extra arguments for this worker pool.

  Fields:
    autoscalingSettings: Settings for autoscaling of this WorkerPool.
    dataDisks: Data disks that are used by a VM in this workflow.
    defaultPackageSet: The default package set to install. This allows the
      service to select a default set of packages which are useful to worker
      harnesses written in a particular language.
    diskProvisionedIops: Optional. IOPS provisioned for the root disk for VMs.
    diskProvisionedThroughputMibps: Optional. Throughput provisioned for the
      root disk for VMs.
    diskSizeGb: Size of root disk for VMs, in GB. If zero or unspecified, the
      service will attempt to choose a reasonable default.
    diskSourceImage: Fully qualified source image for disks.
    diskType: Type of root disk for VMs. If empty or unspecified, the service
      will attempt to choose a reasonable default.
    ipConfiguration: Configuration for VM IPs.
    kind: The kind of the worker pool; currently only `harness` and `shuffle`
      are supported.
    machineType: Machine type (e.g. "n1-standard-1"). If empty or unspecified,
      the service will attempt to choose a reasonable default.
    metadata: Metadata to set on the Google Compute Engine VMs.
    network: Network to which VMs will be assigned. If empty or unspecified,
      the service will use the network "default".
    numThreadsPerWorker: The number of threads per worker harness. If empty or
      unspecified, the service will choose a number of threads (according to
      the number of cores on the selected machine type for batch, or 1 by
      convention for streaming).
    numWorkers: Number of Google Compute Engine workers in this pool needed to
      execute the job. If zero or unspecified, the service will attempt to
      choose a reasonable default.
    onHostMaintenance: The action to take on host maintenance, as defined by
      the Google Compute Engine API.
    packages: Packages to be installed on workers.
    poolArgs: Extra arguments for this worker pool.
    sdkHarnessContainerImages: Set of SDK harness containers needed to execute
      this pipeline. This will only be set in the Fn API path. For non-cross-
      language pipelines this should have only one entry. Cross-language
      pipelines will have two or more entries.
    subnetwork: Subnetwork to which VMs will be assigned, if desired. Expected
      to be of the form "regions/REGION/subnetworks/SUBNETWORK".
    taskrunnerSettings: Settings passed through to Google Compute Engine
      workers when using the standard Dataflow task runner. Users should
      ignore this field.
    teardownPolicy: Sets the policy for determining when to turndown worker
      pool. Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and
      `TEARDOWN_NEVER`. `TEARDOWN_ALWAYS` means workers are always torn down
      regardless of whether the job succeeds. `TEARDOWN_ON_SUCCESS` means
      workers are torn down if the job succeeds. `TEARDOWN_NEVER` means the
      workers are never torn down. If the workers are not torn down by the
      service, they will continue to run and use Google Compute Engine VM
      resources in the user's project until they are explicitly terminated by
      the user. Because of this, Google recommends using the `TEARDOWN_ALWAYS`
      policy except for small, manually supervised test jobs. If unknown or
      unspecified, the service will attempt to choose a reasonable default.
    workerHarnessContainerImage: Required. Docker container image that
      executes the Cloud Dataflow worker harness, residing in Google Container
      Registry. Deprecated for the Fn API path. Use
      sdk_harness_container_images instead.
    zone: Zone to run the worker pools in. If empty or unspecified, the
      service will attempt to choose a reasonable default.
  """

  class DefaultPackageSetValueValuesEnum(_messages.Enum):
    r"""The default package set to install. This allows the service to select
    a default set of packages which are useful to worker harnesses written in
    a particular language.

    Values:
      DEFAULT_PACKAGE_SET_UNKNOWN: The default set of packages to stage is
        unknown, or unspecified.
      DEFAULT_PACKAGE_SET_NONE: Indicates that no packages should be staged at
        the worker unless explicitly specified by the job.
      DEFAULT_PACKAGE_SET_JAVA: Stage packages typically useful to workers
        written in Java.
      DEFAULT_PACKAGE_SET_PYTHON: Stage packages typically useful to workers
        written in Python.
    """
    DEFAULT_PACKAGE_SET_UNKNOWN = 0
    DEFAULT_PACKAGE_SET_NONE = 1
    DEFAULT_PACKAGE_SET_JAVA = 2
    DEFAULT_PACKAGE_SET_PYTHON = 3

  class IpConfigurationValueValuesEnum(_messages.Enum):
    r"""Configuration for VM IPs.

    Values:
      WORKER_IP_UNSPECIFIED: The configuration is unknown, or unspecified.
      WORKER_IP_PUBLIC: Workers should have public IP addresses.
      WORKER_IP_PRIVATE: Workers should have private IP addresses.
    """
    WORKER_IP_UNSPECIFIED = 0
    WORKER_IP_PUBLIC = 1
    WORKER_IP_PRIVATE = 2

  class TeardownPolicyValueValuesEnum(_messages.Enum):
    r"""Sets the policy for determining when to turndown worker pool. Allowed
    values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and
    `TEARDOWN_NEVER`. `TEARDOWN_ALWAYS` means workers are always torn down
    regardless of whether the job succeeds. `TEARDOWN_ON_SUCCESS` means
    workers are torn down if the job succeeds. `TEARDOWN_NEVER` means the
    workers are never torn down. If the workers are not torn down by the
    service, they will continue to run and use Google Compute Engine VM
    resources in the user's project until they are explicitly terminated by
    the user. Because of this, Google recommends using the `TEARDOWN_ALWAYS`
    policy except for small, manually supervised test jobs. If unknown or
    unspecified, the service will attempt to choose a reasonable default.

    Values:
      TEARDOWN_POLICY_UNKNOWN: The teardown policy isn't specified, or is
        unknown.
      TEARDOWN_ALWAYS: Always teardown the resource.
      TEARDOWN_ON_SUCCESS: Teardown the resource on success. This is useful
        for debugging failures.
      TEARDOWN_NEVER: Never teardown the resource. This is useful for
        debugging and development.
    """
    TEARDOWN_POLICY_UNKNOWN = 0
    TEARDOWN_ALWAYS = 1
    TEARDOWN_ON_SUCCESS = 2
    TEARDOWN_NEVER = 3

  @encoding.MapUnrecognizedFields('additionalProperties')
  class MetadataValue(_messages.Message):
    r"""Metadata to set on the Google Compute Engine VMs.

    Messages:
      AdditionalProperty: An additional property for a MetadataValue object.

    Fields:
      additionalProperties: Additional properties of type MetadataValue
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a MetadataValue object.

      Fields:
        key: Name of the additional property.
        value: A string attribute.
      """

      key = _messages.StringField(1)
      value = _messages.StringField(2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  @encoding.MapUnrecognizedFields('additionalProperties')
  class PoolArgsValue(_messages.Message):
    r"""Extra arguments for this worker pool.

    Messages:
      AdditionalProperty: An additional property for a PoolArgsValue object.

    Fields:
      additionalProperties: Properties of the object. Contains field @type
        with type URL.
    """

    class AdditionalProperty(_messages.Message):
      r"""An additional property for a PoolArgsValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

      key = _messages.StringField(1)
      value = _messages.MessageField('extra_types.JsonValue', 2)

    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)

  autoscalingSettings = _messages.MessageField('AutoscalingSettings', 1)
  dataDisks = _messages.MessageField('Disk', 2, repeated=True)
  defaultPackageSet = _messages.EnumField('DefaultPackageSetValueValuesEnum', 3)
  diskProvisionedIops = _messages.IntegerField(4)
  diskProvisionedThroughputMibps = _messages.IntegerField(5)
  diskSizeGb = _messages.IntegerField(6, variant=_messages.Variant.INT32)
  diskSourceImage = _messages.StringField(7)
  diskType = _messages.StringField(8)
  ipConfiguration = _messages.EnumField('IpConfigurationValueValuesEnum', 9)
  kind = _messages.StringField(10)
  machineType = _messages.StringField(11)
  metadata = _messages.MessageField('MetadataValue', 12)
  network = _messages.StringField(13)
  numThreadsPerWorker = _messages.IntegerField(14, variant=_messages.Variant.INT32)
  numWorkers = _messages.IntegerField(15, variant=_messages.Variant.INT32)
  onHostMaintenance = _messages.StringField(16)
  packages = _messages.MessageField('Package', 17, repeated=True)
  poolArgs = _messages.MessageField('PoolArgsValue', 18)
  sdkHarnessContainerImages = _messages.MessageField('SdkHarnessContainerImage', 19, repeated=True)
  subnetwork = _messages.StringField(20)
  taskrunnerSettings = _messages.MessageField('TaskRunnerSettings', 21)
  teardownPolicy = _messages.EnumField('TeardownPolicyValueValuesEnum', 22)
  workerHarnessContainerImage = _messages.StringField(23)
  zone = _messages.StringField(24)


class WorkerSettings(_messages.Message):
  r"""Provides data to pass through to the worker harness.

  Fields:
    baseUrl: The base URL for accessing Google Cloud APIs. When workers access
      Google Cloud APIs, they logically do so via relative URLs. If this field
      is specified, it supplies the base URL to use for resolving these
      relative URLs. The normative algorithm used is defined by RFC 1808,
      "Relative Uniform Resource Locators". If not specified, the default
      value is "http://www.googleapis.com/"
    reportingEnabled: Whether to send work progress updates to the service.
    servicePath: The Cloud Dataflow service path relative to the root URL, for
      example, "dataflow/v1b3/projects".
    shuffleServicePath: The Shuffle service path relative to the root URL, for
      example, "shuffle/v1beta1".
    tempStoragePrefix: The prefix of the resources the system should use for
      temporary storage. The supported resource type is: Google Cloud Storage:
      storage.googleapis.com/{bucket}/{object}
      bucket.storage.googleapis.com/{object}
    workerId: The ID of the worker running this pipeline.
  """

  baseUrl = _messages.StringField(1)
  reportingEnabled = _messages.BooleanField(2)
  servicePath = _messages.StringField(3)
  shuffleServicePath = _messages.StringField(4)
  tempStoragePrefix = _messages.StringField(5)
  workerId = _messages.StringField(6)


class WorkerShutdownNotice(_messages.Message):
  r"""Shutdown notification from workers. This is to be sent by the shutdown
  script of the worker VM so that the backend knows that the VM is being shut
  down.

  Fields:
    reason: The reason for the worker shutdown. Current possible values are:
      "UNKNOWN": shutdown reason is unknown. "PREEMPTION": shutdown reason is
      preemption. Other possible reasons may be added in the future.
  """

  reason = _messages.StringField(1)


class WorkerShutdownNoticeResponse(_messages.Message):
  r"""Service-side response to WorkerMessage issuing shutdown notice."""


class WorkerThreadScalingReport(_messages.Message):
  r"""Contains information about the thread scaling information of a worker.

  Fields:
    currentThreadCount: Current number of active threads in a worker.
  """

  currentThreadCount = _messages.IntegerField(1, variant=_messages.Variant.INT32)


class WorkerThreadScalingReportResponse(_messages.Message):
  r"""Contains the thread scaling recommendation for a worker from the
  backend.

  Fields:
    recommendedThreadCount: Recommended number of threads for a worker.
  """

  recommendedThreadCount = _messages.IntegerField(1, variant=_messages.Variant.INT32)


class WriteInstruction(_messages.Message):
  r"""An instruction that writes records. Takes one input, produces no
  outputs.

  Fields:
    input: The input.
    sink: The sink to write to.
  """

  input = _messages.MessageField('InstructionInput', 1)
  sink = _messages.MessageField('Sink', 2)


encoding.AddCustomJsonFieldMapping(
    StandardQueryParameters, 'f__xgafv', '$.xgafv')
encoding.AddCustomJsonEnumMapping(
    StandardQueryParameters.FXgafvValueValuesEnum, '_1', '1')
encoding.AddCustomJsonEnumMapping(
    StandardQueryParameters.FXgafvValueValuesEnum, '_2', '2')
encoding.AddCustomJsonFieldMapping(
    DataflowProjectsLocationsTemplatesLaunchRequest, 'dynamicTemplate_gcsPath', 'dynamicTemplate.gcsPath')
encoding.AddCustomJsonFieldMapping(
    DataflowProjectsLocationsTemplatesLaunchRequest, 'dynamicTemplate_stagingLocation', 'dynamicTemplate.stagingLocation')
encoding.AddCustomJsonFieldMapping(
    DataflowProjectsTemplatesLaunchRequest, 'dynamicTemplate_gcsPath', 'dynamicTemplate.gcsPath')
encoding.AddCustomJsonFieldMapping(
    DataflowProjectsTemplatesLaunchRequest, 'dynamicTemplate_stagingLocation', 'dynamicTemplate.stagingLocation')
