/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/dataflow/v1beta3/jobs.proto

package com.google.dataflow.v1beta3;

/**
 *
 *
 * <pre>
 * Defines a job to be run by the Cloud Dataflow service.
 * </pre>
 *
 * Protobuf type {@code google.dataflow.v1beta3.Job}
 */
public final class Job extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.dataflow.v1beta3.Job)
    JobOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use Job.newBuilder() to construct.
  private Job(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private Job() {
    id_ = "";
    projectId_ = "";
    name_ = "";
    type_ = 0;
    steps_ = java.util.Collections.emptyList();
    stepsLocation_ = "";
    currentState_ = 0;
    requestedState_ = 0;
    replaceJobId_ = "";
    clientRequestId_ = "";
    replacedByJobId_ = "";
    tempFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    location_ = "";
    stageStates_ = java.util.Collections.emptyList();
    createdFromSnapshotId_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new Job();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.dataflow.v1beta3.JobsProto
        .internal_static_google_dataflow_v1beta3_Job_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(int number) {
    switch (number) {
      case 13:
        return internalGetTransformNameMapping();
      case 17:
        return internalGetLabels();
      default:
        throw new RuntimeException("Invalid map field number: " + number);
    }
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.dataflow.v1beta3.JobsProto
        .internal_static_google_dataflow_v1beta3_Job_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.dataflow.v1beta3.Job.class, com.google.dataflow.v1beta3.Job.Builder.class);
  }

  public static final int ID_FIELD_NUMBER = 1;
  private volatile java.lang.Object id_;
  /**
   *
   *
   * <pre>
   * The unique ID of this job.
   * This field is set by the Cloud Dataflow service when the Job is
   * created, and is immutable for the life of the job.
   * </pre>
   *
   * <code>string id = 1;</code>
   *
   * @return The id.
   */
  @java.lang.Override
  public java.lang.String getId() {
    java.lang.Object ref = id_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      id_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The unique ID of this job.
   * This field is set by the Cloud Dataflow service when the Job is
   * created, and is immutable for the life of the job.
   * </pre>
   *
   * <code>string id = 1;</code>
   *
   * @return The bytes for id.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getIdBytes() {
    java.lang.Object ref = id_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      id_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PROJECT_ID_FIELD_NUMBER = 2;
  private volatile java.lang.Object projectId_;
  /**
   *
   *
   * <pre>
   * The ID of the Cloud Platform project that the job belongs to.
   * </pre>
   *
   * <code>string project_id = 2;</code>
   *
   * @return The projectId.
   */
  @java.lang.Override
  public java.lang.String getProjectId() {
    java.lang.Object ref = projectId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      projectId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The ID of the Cloud Platform project that the job belongs to.
   * </pre>
   *
   * <code>string project_id = 2;</code>
   *
   * @return The bytes for projectId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getProjectIdBytes() {
    java.lang.Object ref = projectId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      projectId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int NAME_FIELD_NUMBER = 3;
  private volatile java.lang.Object name_;
  /**
   *
   *
   * <pre>
   * The user-specified Cloud Dataflow job name.
   * Only one Job with a given name may exist in a project at any
   * given time. If a caller attempts to create a Job with the same
   * name as an already-existing Job, the attempt returns the
   * existing Job.
   * The name must match the regular expression
   * `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?`
   * </pre>
   *
   * <code>string name = 3;</code>
   *
   * @return The name.
   */
  @java.lang.Override
  public java.lang.String getName() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      name_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The user-specified Cloud Dataflow job name.
   * Only one Job with a given name may exist in a project at any
   * given time. If a caller attempts to create a Job with the same
   * name as an already-existing Job, the attempt returns the
   * existing Job.
   * The name must match the regular expression
   * `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?`
   * </pre>
   *
   * <code>string name = 3;</code>
   *
   * @return The bytes for name.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TYPE_FIELD_NUMBER = 4;
  private int type_;
  /**
   *
   *
   * <pre>
   * The type of Cloud Dataflow job.
   * </pre>
   *
   * <code>.google.dataflow.v1beta3.JobType type = 4;</code>
   *
   * @return The enum numeric value on the wire for type.
   */
  @java.lang.Override
  public int getTypeValue() {
    return type_;
  }
  /**
   *
   *
   * <pre>
   * The type of Cloud Dataflow job.
   * </pre>
   *
   * <code>.google.dataflow.v1beta3.JobType type = 4;</code>
   *
   * @return The type.
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.JobType getType() {
    @SuppressWarnings("deprecation")
    com.google.dataflow.v1beta3.JobType result = com.google.dataflow.v1beta3.JobType.valueOf(type_);
    return result == null ? com.google.dataflow.v1beta3.JobType.UNRECOGNIZED : result;
  }

  public static final int ENVIRONMENT_FIELD_NUMBER = 5;
  private com.google.dataflow.v1beta3.Environment environment_;
  /**
   *
   *
   * <pre>
   * The environment for the job.
   * </pre>
   *
   * <code>.google.dataflow.v1beta3.Environment environment = 5;</code>
   *
   * @return Whether the environment field is set.
   */
  @java.lang.Override
  public boolean hasEnvironment() {
    return environment_ != null;
  }
  /**
   *
   *
   * <pre>
   * The environment for the job.
   * </pre>
   *
   * <code>.google.dataflow.v1beta3.Environment environment = 5;</code>
   *
   * @return The environment.
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.Environment getEnvironment() {
    return environment_ == null
        ? com.google.dataflow.v1beta3.Environment.getDefaultInstance()
        : environment_;
  }
  /**
   *
   *
   * <pre>
   * The environment for the job.
   * </pre>
   *
   * <code>.google.dataflow.v1beta3.Environment environment = 5;</code>
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.EnvironmentOrBuilder getEnvironmentOrBuilder() {
    return getEnvironment();
  }

  public static final int STEPS_FIELD_NUMBER = 6;
  private java.util.List<com.google.dataflow.v1beta3.Step> steps_;
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.dataflow.v1beta3.Step> getStepsList() {
    return steps_;
  }
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.dataflow.v1beta3.StepOrBuilder>
      getStepsOrBuilderList() {
    return steps_;
  }
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
   */
  @java.lang.Override
  public int getStepsCount() {
    return steps_.size();
  }
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.Step getSteps(int index) {
    return steps_.get(index);
  }
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.StepOrBuilder getStepsOrBuilder(int index) {
    return steps_.get(index);
  }

  public static final int STEPS_LOCATION_FIELD_NUMBER = 24;
  private volatile java.lang.Object stepsLocation_;
  /**
   *
   *
   * <pre>
   * The Cloud Storage location where the steps are stored.
   * </pre>
   *
   * <code>string steps_location = 24;</code>
   *
   * @return The stepsLocation.
   */
  @java.lang.Override
  public java.lang.String getStepsLocation() {
    java.lang.Object ref = stepsLocation_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      stepsLocation_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The Cloud Storage location where the steps are stored.
   * </pre>
   *
   * <code>string steps_location = 24;</code>
   *
   * @return The bytes for stepsLocation.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getStepsLocationBytes() {
    java.lang.Object ref = stepsLocation_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      stepsLocation_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CURRENT_STATE_FIELD_NUMBER = 7;
  private int currentState_;
  /**
   *
   *
   * <pre>
   * 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 may be mutated by the Cloud Dataflow service;
   * callers cannot mutate it.
   * </pre>
   *
   * <code>.google.dataflow.v1beta3.JobState current_state = 7;</code>
   *
   * @return The enum numeric value on the wire for currentState.
   */
  @java.lang.Override
  public int getCurrentStateValue() {
    return currentState_;
  }
  /**
   *
   *
   * <pre>
   * 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 may be mutated by the Cloud Dataflow service;
   * callers cannot mutate it.
   * </pre>
   *
   * <code>.google.dataflow.v1beta3.JobState current_state = 7;</code>
   *
   * @return The currentState.
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.JobState getCurrentState() {
    @SuppressWarnings("deprecation")
    com.google.dataflow.v1beta3.JobState result =
        com.google.dataflow.v1beta3.JobState.valueOf(currentState_);
    return result == null ? com.google.dataflow.v1beta3.JobState.UNRECOGNIZED : result;
  }

  public static final int CURRENT_STATE_TIME_FIELD_NUMBER = 8;
  private com.google.protobuf.Timestamp currentStateTime_;
  /**
   *
   *
   * <pre>
   * The timestamp associated with the current state.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp current_state_time = 8;</code>
   *
   * @return Whether the currentStateTime field is set.
   */
  @java.lang.Override
  public boolean hasCurrentStateTime() {
    return currentStateTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * The timestamp associated with the current state.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp current_state_time = 8;</code>
   *
   * @return The currentStateTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getCurrentStateTime() {
    return currentStateTime_ == null
        ? com.google.protobuf.Timestamp.getDefaultInstance()
        : currentStateTime_;
  }
  /**
   *
   *
   * <pre>
   * The timestamp associated with the current state.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp current_state_time = 8;</code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getCurrentStateTimeOrBuilder() {
    return getCurrentStateTime();
  }

  public static final int REQUESTED_STATE_FIELD_NUMBER = 9;
  private int requestedState_;
  /**
   *
   *
   * <pre>
   * The job's requested state.
   * `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and
   * `JOB_STATE_RUNNING` states, by setting requested_state.  `UpdateJob` may
   * also be used to directly set a job's requested state to
   * `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the
   * job if it has not already reached a terminal state.
   * </pre>
   *
   * <code>.google.dataflow.v1beta3.JobState requested_state = 9;</code>
   *
   * @return The enum numeric value on the wire for requestedState.
   */
  @java.lang.Override
  public int getRequestedStateValue() {
    return requestedState_;
  }
  /**
   *
   *
   * <pre>
   * The job's requested state.
   * `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and
   * `JOB_STATE_RUNNING` states, by setting requested_state.  `UpdateJob` may
   * also be used to directly set a job's requested state to
   * `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the
   * job if it has not already reached a terminal state.
   * </pre>
   *
   * <code>.google.dataflow.v1beta3.JobState requested_state = 9;</code>
   *
   * @return The requestedState.
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.JobState getRequestedState() {
    @SuppressWarnings("deprecation")
    com.google.dataflow.v1beta3.JobState result =
        com.google.dataflow.v1beta3.JobState.valueOf(requestedState_);
    return result == null ? com.google.dataflow.v1beta3.JobState.UNRECOGNIZED : result;
  }

  public static final int EXECUTION_INFO_FIELD_NUMBER = 10;
  private com.google.dataflow.v1beta3.JobExecutionInfo executionInfo_;
  /**
   *
   *
   * <pre>
   * Deprecated.
   * </pre>
   *
   * <code>.google.dataflow.v1beta3.JobExecutionInfo execution_info = 10;</code>
   *
   * @return Whether the executionInfo field is set.
   */
  @java.lang.Override
  public boolean hasExecutionInfo() {
    return executionInfo_ != null;
  }
  /**
   *
   *
   * <pre>
   * Deprecated.
   * </pre>
   *
   * <code>.google.dataflow.v1beta3.JobExecutionInfo execution_info = 10;</code>
   *
   * @return The executionInfo.
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.JobExecutionInfo getExecutionInfo() {
    return executionInfo_ == null
        ? com.google.dataflow.v1beta3.JobExecutionInfo.getDefaultInstance()
        : executionInfo_;
  }
  /**
   *
   *
   * <pre>
   * Deprecated.
   * </pre>
   *
   * <code>.google.dataflow.v1beta3.JobExecutionInfo execution_info = 10;</code>
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.JobExecutionInfoOrBuilder getExecutionInfoOrBuilder() {
    return getExecutionInfo();
  }

  public static final int CREATE_TIME_FIELD_NUMBER = 11;
  private com.google.protobuf.Timestamp createTime_;
  /**
   *
   *
   * <pre>
   * The timestamp when the job was initially created. Immutable and set by the
   * Cloud Dataflow service.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 11;</code>
   *
   * @return Whether the createTime field is set.
   */
  @java.lang.Override
  public boolean hasCreateTime() {
    return createTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * The timestamp when the job was initially created. Immutable and set by the
   * Cloud Dataflow service.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 11;</code>
   *
   * @return The createTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getCreateTime() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }
  /**
   *
   *
   * <pre>
   * The timestamp when the job was initially created. Immutable and set by the
   * Cloud Dataflow service.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 11;</code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    return getCreateTime();
  }

  public static final int REPLACE_JOB_ID_FIELD_NUMBER = 12;
  private volatile java.lang.Object replaceJobId_;
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>string replace_job_id = 12;</code>
   *
   * @return The replaceJobId.
   */
  @java.lang.Override
  public java.lang.String getReplaceJobId() {
    java.lang.Object ref = replaceJobId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      replaceJobId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>string replace_job_id = 12;</code>
   *
   * @return The bytes for replaceJobId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getReplaceJobIdBytes() {
    java.lang.Object ref = replaceJobId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      replaceJobId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TRANSFORM_NAME_MAPPING_FIELD_NUMBER = 13;

  private static final class TransformNameMappingDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
        com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
            com.google.dataflow.v1beta3.JobsProto
                .internal_static_google_dataflow_v1beta3_Job_TransformNameMappingEntry_descriptor,
            com.google.protobuf.WireFormat.FieldType.STRING,
            "",
            com.google.protobuf.WireFormat.FieldType.STRING,
            "");
  }

  private com.google.protobuf.MapField<java.lang.String, java.lang.String> transformNameMapping_;

  private com.google.protobuf.MapField<java.lang.String, java.lang.String>
      internalGetTransformNameMapping() {
    if (transformNameMapping_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          TransformNameMappingDefaultEntryHolder.defaultEntry);
    }
    return transformNameMapping_;
  }

  public int getTransformNameMappingCount() {
    return internalGetTransformNameMapping().getMap().size();
  }
  /**
   *
   *
   * <pre>
   * The map of transform name prefixes of the job to be replaced to the
   * corresponding name prefixes of the new job.
   * </pre>
   *
   * <code>map&lt;string, string&gt; transform_name_mapping = 13;</code>
   */
  @java.lang.Override
  public boolean containsTransformNameMapping(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    return internalGetTransformNameMapping().getMap().containsKey(key);
  }
  /** Use {@link #getTransformNameMappingMap()} instead. */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getTransformNameMapping() {
    return getTransformNameMappingMap();
  }
  /**
   *
   *
   * <pre>
   * The map of transform name prefixes of the job to be replaced to the
   * corresponding name prefixes of the new job.
   * </pre>
   *
   * <code>map&lt;string, string&gt; transform_name_mapping = 13;</code>
   */
  @java.lang.Override
  public java.util.Map<java.lang.String, java.lang.String> getTransformNameMappingMap() {
    return internalGetTransformNameMapping().getMap();
  }
  /**
   *
   *
   * <pre>
   * The map of transform name prefixes of the job to be replaced to the
   * corresponding name prefixes of the new job.
   * </pre>
   *
   * <code>map&lt;string, string&gt; transform_name_mapping = 13;</code>
   */
  @java.lang.Override
  public java.lang.String getTransformNameMappingOrDefault(
      java.lang.String key, java.lang.String defaultValue) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map =
        internalGetTransformNameMapping().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   *
   *
   * <pre>
   * The map of transform name prefixes of the job to be replaced to the
   * corresponding name prefixes of the new job.
   * </pre>
   *
   * <code>map&lt;string, string&gt; transform_name_mapping = 13;</code>
   */
  @java.lang.Override
  public java.lang.String getTransformNameMappingOrThrow(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map =
        internalGetTransformNameMapping().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int CLIENT_REQUEST_ID_FIELD_NUMBER = 14;
  private volatile java.lang.Object clientRequestId_;
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>string client_request_id = 14;</code>
   *
   * @return The clientRequestId.
   */
  @java.lang.Override
  public java.lang.String getClientRequestId() {
    java.lang.Object ref = clientRequestId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      clientRequestId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>string client_request_id = 14;</code>
   *
   * @return The bytes for clientRequestId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getClientRequestIdBytes() {
    java.lang.Object ref = clientRequestId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      clientRequestId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REPLACED_BY_JOB_ID_FIELD_NUMBER = 15;
  private volatile java.lang.Object replacedByJobId_;
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>string replaced_by_job_id = 15;</code>
   *
   * @return The replacedByJobId.
   */
  @java.lang.Override
  public java.lang.String getReplacedByJobId() {
    java.lang.Object ref = replacedByJobId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      replacedByJobId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>string replaced_by_job_id = 15;</code>
   *
   * @return The bytes for replacedByJobId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getReplacedByJobIdBytes() {
    java.lang.Object ref = replacedByJobId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      replacedByJobId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TEMP_FILES_FIELD_NUMBER = 16;
  private com.google.protobuf.LazyStringList tempFiles_;
  /**
   *
   *
   * <pre>
   * 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}
   * </pre>
   *
   * <code>repeated string temp_files = 16;</code>
   *
   * @return A list containing the tempFiles.
   */
  public com.google.protobuf.ProtocolStringList getTempFilesList() {
    return tempFiles_;
  }
  /**
   *
   *
   * <pre>
   * 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}
   * </pre>
   *
   * <code>repeated string temp_files = 16;</code>
   *
   * @return The count of tempFiles.
   */
  public int getTempFilesCount() {
    return tempFiles_.size();
  }
  /**
   *
   *
   * <pre>
   * 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}
   * </pre>
   *
   * <code>repeated string temp_files = 16;</code>
   *
   * @param index The index of the element to return.
   * @return The tempFiles at the given index.
   */
  public java.lang.String getTempFiles(int index) {
    return tempFiles_.get(index);
  }
  /**
   *
   *
   * <pre>
   * 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}
   * </pre>
   *
   * <code>repeated string temp_files = 16;</code>
   *
   * @param index The index of the value to return.
   * @return The bytes of the tempFiles at the given index.
   */
  public com.google.protobuf.ByteString getTempFilesBytes(int index) {
    return tempFiles_.getByteString(index);
  }

  public static final int LABELS_FIELD_NUMBER = 17;

  private static final class LabelsDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
        com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
            com.google.dataflow.v1beta3.JobsProto
                .internal_static_google_dataflow_v1beta3_Job_LabelsEntry_descriptor,
            com.google.protobuf.WireFormat.FieldType.STRING,
            "",
            com.google.protobuf.WireFormat.FieldType.STRING,
            "");
  }

  private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;

  private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
    if (labels_ == null) {
      return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
    }
    return labels_;
  }

  public int getLabelsCount() {
    return internalGetLabels().getMap().size();
  }
  /**
   *
   *
   * <pre>
   * 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:  [&#92;p{Ll}&#92;p{Lo}][&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,62}
   * * Values must conform to regexp:  [&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,63}
   * * Both keys and values are additionally constrained to be &lt;= 128 bytes in
   * size.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 17;</code>
   */
  @java.lang.Override
  public boolean containsLabels(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    return internalGetLabels().getMap().containsKey(key);
  }
  /** Use {@link #getLabelsMap()} instead. */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getLabels() {
    return getLabelsMap();
  }
  /**
   *
   *
   * <pre>
   * 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:  [&#92;p{Ll}&#92;p{Lo}][&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,62}
   * * Values must conform to regexp:  [&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,63}
   * * Both keys and values are additionally constrained to be &lt;= 128 bytes in
   * size.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 17;</code>
   */
  @java.lang.Override
  public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
    return internalGetLabels().getMap();
  }
  /**
   *
   *
   * <pre>
   * 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:  [&#92;p{Ll}&#92;p{Lo}][&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,62}
   * * Values must conform to regexp:  [&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,63}
   * * Both keys and values are additionally constrained to be &lt;= 128 bytes in
   * size.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 17;</code>
   */
  @java.lang.Override
  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   *
   *
   * <pre>
   * 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:  [&#92;p{Ll}&#92;p{Lo}][&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,62}
   * * Values must conform to regexp:  [&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,63}
   * * Both keys and values are additionally constrained to be &lt;= 128 bytes in
   * size.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 17;</code>
   */
  @java.lang.Override
  public java.lang.String getLabelsOrThrow(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int LOCATION_FIELD_NUMBER = 18;
  private volatile java.lang.Object location_;
  /**
   *
   *
   * <pre>
   * The [regional endpoint]
   * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
   * contains this job.
   * </pre>
   *
   * <code>string location = 18;</code>
   *
   * @return The location.
   */
  @java.lang.Override
  public java.lang.String getLocation() {
    java.lang.Object ref = location_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      location_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The [regional endpoint]
   * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
   * contains this job.
   * </pre>
   *
   * <code>string location = 18;</code>
   *
   * @return The bytes for location.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getLocationBytes() {
    java.lang.Object ref = location_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      location_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PIPELINE_DESCRIPTION_FIELD_NUMBER = 19;
  private com.google.dataflow.v1beta3.PipelineDescription pipelineDescription_;
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>.google.dataflow.v1beta3.PipelineDescription pipeline_description = 19;</code>
   *
   * @return Whether the pipelineDescription field is set.
   */
  @java.lang.Override
  public boolean hasPipelineDescription() {
    return pipelineDescription_ != null;
  }
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>.google.dataflow.v1beta3.PipelineDescription pipeline_description = 19;</code>
   *
   * @return The pipelineDescription.
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.PipelineDescription getPipelineDescription() {
    return pipelineDescription_ == null
        ? com.google.dataflow.v1beta3.PipelineDescription.getDefaultInstance()
        : pipelineDescription_;
  }
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>.google.dataflow.v1beta3.PipelineDescription pipeline_description = 19;</code>
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.PipelineDescriptionOrBuilder
      getPipelineDescriptionOrBuilder() {
    return getPipelineDescription();
  }

  public static final int STAGE_STATES_FIELD_NUMBER = 20;
  private java.util.List<com.google.dataflow.v1beta3.ExecutionStageState> stageStates_;
  /**
   *
   *
   * <pre>
   * This field may be mutated by the Cloud Dataflow service;
   * callers cannot mutate it.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.dataflow.v1beta3.ExecutionStageState> getStageStatesList() {
    return stageStates_;
  }
  /**
   *
   *
   * <pre>
   * This field may be mutated by the Cloud Dataflow service;
   * callers cannot mutate it.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.dataflow.v1beta3.ExecutionStageStateOrBuilder>
      getStageStatesOrBuilderList() {
    return stageStates_;
  }
  /**
   *
   *
   * <pre>
   * This field may be mutated by the Cloud Dataflow service;
   * callers cannot mutate it.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
   */
  @java.lang.Override
  public int getStageStatesCount() {
    return stageStates_.size();
  }
  /**
   *
   *
   * <pre>
   * This field may be mutated by the Cloud Dataflow service;
   * callers cannot mutate it.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.ExecutionStageState getStageStates(int index) {
    return stageStates_.get(index);
  }
  /**
   *
   *
   * <pre>
   * This field may be mutated by the Cloud Dataflow service;
   * callers cannot mutate it.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.ExecutionStageStateOrBuilder getStageStatesOrBuilder(
      int index) {
    return stageStates_.get(index);
  }

  public static final int JOB_METADATA_FIELD_NUMBER = 21;
  private com.google.dataflow.v1beta3.JobMetadata jobMetadata_;
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>.google.dataflow.v1beta3.JobMetadata job_metadata = 21;</code>
   *
   * @return Whether the jobMetadata field is set.
   */
  @java.lang.Override
  public boolean hasJobMetadata() {
    return jobMetadata_ != null;
  }
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>.google.dataflow.v1beta3.JobMetadata job_metadata = 21;</code>
   *
   * @return The jobMetadata.
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.JobMetadata getJobMetadata() {
    return jobMetadata_ == null
        ? com.google.dataflow.v1beta3.JobMetadata.getDefaultInstance()
        : jobMetadata_;
  }
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>.google.dataflow.v1beta3.JobMetadata job_metadata = 21;</code>
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.JobMetadataOrBuilder getJobMetadataOrBuilder() {
    return getJobMetadata();
  }

  public static final int START_TIME_FIELD_NUMBER = 22;
  private com.google.protobuf.Timestamp startTime_;
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp start_time = 22;</code>
   *
   * @return Whether the startTime field is set.
   */
  @java.lang.Override
  public boolean hasStartTime() {
    return startTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp start_time = 22;</code>
   *
   * @return The startTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getStartTime() {
    return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
  }
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp start_time = 22;</code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
    return getStartTime();
  }

  public static final int CREATED_FROM_SNAPSHOT_ID_FIELD_NUMBER = 23;
  private volatile java.lang.Object createdFromSnapshotId_;
  /**
   *
   *
   * <pre>
   * If this is specified, the job's initial state is populated from the given
   * snapshot.
   * </pre>
   *
   * <code>string created_from_snapshot_id = 23;</code>
   *
   * @return The createdFromSnapshotId.
   */
  @java.lang.Override
  public java.lang.String getCreatedFromSnapshotId() {
    java.lang.Object ref = createdFromSnapshotId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      createdFromSnapshotId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * If this is specified, the job's initial state is populated from the given
   * snapshot.
   * </pre>
   *
   * <code>string created_from_snapshot_id = 23;</code>
   *
   * @return The bytes for createdFromSnapshotId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getCreatedFromSnapshotIdBytes() {
    java.lang.Object ref = createdFromSnapshotId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      createdFromSnapshotId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SATISFIES_PZS_FIELD_NUMBER = 25;
  private boolean satisfiesPzs_;
  /**
   *
   *
   * <pre>
   * Reserved for future use. This field is set only in responses from the
   * server; it is ignored if it is set in any requests.
   * </pre>
   *
   * <code>bool satisfies_pzs = 25;</code>
   *
   * @return The satisfiesPzs.
   */
  @java.lang.Override
  public boolean getSatisfiesPzs() {
    return satisfiesPzs_;
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
    }
    if (type_ != com.google.dataflow.v1beta3.JobType.JOB_TYPE_UNKNOWN.getNumber()) {
      output.writeEnum(4, type_);
    }
    if (environment_ != null) {
      output.writeMessage(5, getEnvironment());
    }
    for (int i = 0; i < steps_.size(); i++) {
      output.writeMessage(6, steps_.get(i));
    }
    if (currentState_ != com.google.dataflow.v1beta3.JobState.JOB_STATE_UNKNOWN.getNumber()) {
      output.writeEnum(7, currentState_);
    }
    if (currentStateTime_ != null) {
      output.writeMessage(8, getCurrentStateTime());
    }
    if (requestedState_ != com.google.dataflow.v1beta3.JobState.JOB_STATE_UNKNOWN.getNumber()) {
      output.writeEnum(9, requestedState_);
    }
    if (executionInfo_ != null) {
      output.writeMessage(10, getExecutionInfo());
    }
    if (createTime_ != null) {
      output.writeMessage(11, getCreateTime());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replaceJobId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, replaceJobId_);
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output,
        internalGetTransformNameMapping(),
        TransformNameMappingDefaultEntryHolder.defaultEntry,
        13);
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientRequestId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 14, clientRequestId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replacedByJobId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, replacedByJobId_);
    }
    for (int i = 0; i < tempFiles_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 16, tempFiles_.getRaw(i));
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 17);
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 18, location_);
    }
    if (pipelineDescription_ != null) {
      output.writeMessage(19, getPipelineDescription());
    }
    for (int i = 0; i < stageStates_.size(); i++) {
      output.writeMessage(20, stageStates_.get(i));
    }
    if (jobMetadata_ != null) {
      output.writeMessage(21, getJobMetadata());
    }
    if (startTime_ != null) {
      output.writeMessage(22, getStartTime());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createdFromSnapshotId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 23, createdFromSnapshotId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stepsLocation_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 24, stepsLocation_);
    }
    if (satisfiesPzs_ != false) {
      output.writeBool(25, satisfiesPzs_);
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
    }
    if (type_ != com.google.dataflow.v1beta3.JobType.JOB_TYPE_UNKNOWN.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, type_);
    }
    if (environment_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEnvironment());
    }
    for (int i = 0; i < steps_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, steps_.get(i));
    }
    if (currentState_ != com.google.dataflow.v1beta3.JobState.JOB_STATE_UNKNOWN.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, currentState_);
    }
    if (currentStateTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCurrentStateTime());
    }
    if (requestedState_ != com.google.dataflow.v1beta3.JobState.JOB_STATE_UNKNOWN.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, requestedState_);
    }
    if (executionInfo_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getExecutionInfo());
    }
    if (createTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replaceJobId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, replaceJobId_);
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
        internalGetTransformNameMapping().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String> transformNameMapping__ =
          TransformNameMappingDefaultEntryHolder.defaultEntry
              .newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, transformNameMapping__);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientRequestId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, clientRequestId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replacedByJobId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, replacedByJobId_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < tempFiles_.size(); i++) {
        dataSize += computeStringSizeNoTag(tempFiles_.getRaw(i));
      }
      size += dataSize;
      size += 2 * getTempFilesList().size();
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
        internalGetLabels().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
          LabelsDefaultEntryHolder.defaultEntry
              .newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, labels__);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, location_);
    }
    if (pipelineDescription_ != null) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(19, getPipelineDescription());
    }
    for (int i = 0; i < stageStates_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, stageStates_.get(i));
    }
    if (jobMetadata_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getJobMetadata());
    }
    if (startTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getStartTime());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createdFromSnapshotId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, createdFromSnapshotId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stepsLocation_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, stepsLocation_);
    }
    if (satisfiesPzs_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(25, satisfiesPzs_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.dataflow.v1beta3.Job)) {
      return super.equals(obj);
    }
    com.google.dataflow.v1beta3.Job other = (com.google.dataflow.v1beta3.Job) obj;

    if (!getId().equals(other.getId())) return false;
    if (!getProjectId().equals(other.getProjectId())) return false;
    if (!getName().equals(other.getName())) return false;
    if (type_ != other.type_) return false;
    if (hasEnvironment() != other.hasEnvironment()) return false;
    if (hasEnvironment()) {
      if (!getEnvironment().equals(other.getEnvironment())) return false;
    }
    if (!getStepsList().equals(other.getStepsList())) return false;
    if (!getStepsLocation().equals(other.getStepsLocation())) return false;
    if (currentState_ != other.currentState_) return false;
    if (hasCurrentStateTime() != other.hasCurrentStateTime()) return false;
    if (hasCurrentStateTime()) {
      if (!getCurrentStateTime().equals(other.getCurrentStateTime())) return false;
    }
    if (requestedState_ != other.requestedState_) return false;
    if (hasExecutionInfo() != other.hasExecutionInfo()) return false;
    if (hasExecutionInfo()) {
      if (!getExecutionInfo().equals(other.getExecutionInfo())) return false;
    }
    if (hasCreateTime() != other.hasCreateTime()) return false;
    if (hasCreateTime()) {
      if (!getCreateTime().equals(other.getCreateTime())) return false;
    }
    if (!getReplaceJobId().equals(other.getReplaceJobId())) return false;
    if (!internalGetTransformNameMapping().equals(other.internalGetTransformNameMapping()))
      return false;
    if (!getClientRequestId().equals(other.getClientRequestId())) return false;
    if (!getReplacedByJobId().equals(other.getReplacedByJobId())) return false;
    if (!getTempFilesList().equals(other.getTempFilesList())) return false;
    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
    if (!getLocation().equals(other.getLocation())) return false;
    if (hasPipelineDescription() != other.hasPipelineDescription()) return false;
    if (hasPipelineDescription()) {
      if (!getPipelineDescription().equals(other.getPipelineDescription())) return false;
    }
    if (!getStageStatesList().equals(other.getStageStatesList())) return false;
    if (hasJobMetadata() != other.hasJobMetadata()) return false;
    if (hasJobMetadata()) {
      if (!getJobMetadata().equals(other.getJobMetadata())) return false;
    }
    if (hasStartTime() != other.hasStartTime()) return false;
    if (hasStartTime()) {
      if (!getStartTime().equals(other.getStartTime())) return false;
    }
    if (!getCreatedFromSnapshotId().equals(other.getCreatedFromSnapshotId())) return false;
    if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + ID_FIELD_NUMBER;
    hash = (53 * hash) + getId().hashCode();
    hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
    hash = (53 * hash) + getProjectId().hashCode();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + TYPE_FIELD_NUMBER;
    hash = (53 * hash) + type_;
    if (hasEnvironment()) {
      hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER;
      hash = (53 * hash) + getEnvironment().hashCode();
    }
    if (getStepsCount() > 0) {
      hash = (37 * hash) + STEPS_FIELD_NUMBER;
      hash = (53 * hash) + getStepsList().hashCode();
    }
    hash = (37 * hash) + STEPS_LOCATION_FIELD_NUMBER;
    hash = (53 * hash) + getStepsLocation().hashCode();
    hash = (37 * hash) + CURRENT_STATE_FIELD_NUMBER;
    hash = (53 * hash) + currentState_;
    if (hasCurrentStateTime()) {
      hash = (37 * hash) + CURRENT_STATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getCurrentStateTime().hashCode();
    }
    hash = (37 * hash) + REQUESTED_STATE_FIELD_NUMBER;
    hash = (53 * hash) + requestedState_;
    if (hasExecutionInfo()) {
      hash = (37 * hash) + EXECUTION_INFO_FIELD_NUMBER;
      hash = (53 * hash) + getExecutionInfo().hashCode();
    }
    if (hasCreateTime()) {
      hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getCreateTime().hashCode();
    }
    hash = (37 * hash) + REPLACE_JOB_ID_FIELD_NUMBER;
    hash = (53 * hash) + getReplaceJobId().hashCode();
    if (!internalGetTransformNameMapping().getMap().isEmpty()) {
      hash = (37 * hash) + TRANSFORM_NAME_MAPPING_FIELD_NUMBER;
      hash = (53 * hash) + internalGetTransformNameMapping().hashCode();
    }
    hash = (37 * hash) + CLIENT_REQUEST_ID_FIELD_NUMBER;
    hash = (53 * hash) + getClientRequestId().hashCode();
    hash = (37 * hash) + REPLACED_BY_JOB_ID_FIELD_NUMBER;
    hash = (53 * hash) + getReplacedByJobId().hashCode();
    if (getTempFilesCount() > 0) {
      hash = (37 * hash) + TEMP_FILES_FIELD_NUMBER;
      hash = (53 * hash) + getTempFilesList().hashCode();
    }
    if (!internalGetLabels().getMap().isEmpty()) {
      hash = (37 * hash) + LABELS_FIELD_NUMBER;
      hash = (53 * hash) + internalGetLabels().hashCode();
    }
    hash = (37 * hash) + LOCATION_FIELD_NUMBER;
    hash = (53 * hash) + getLocation().hashCode();
    if (hasPipelineDescription()) {
      hash = (37 * hash) + PIPELINE_DESCRIPTION_FIELD_NUMBER;
      hash = (53 * hash) + getPipelineDescription().hashCode();
    }
    if (getStageStatesCount() > 0) {
      hash = (37 * hash) + STAGE_STATES_FIELD_NUMBER;
      hash = (53 * hash) + getStageStatesList().hashCode();
    }
    if (hasJobMetadata()) {
      hash = (37 * hash) + JOB_METADATA_FIELD_NUMBER;
      hash = (53 * hash) + getJobMetadata().hashCode();
    }
    if (hasStartTime()) {
      hash = (37 * hash) + START_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getStartTime().hashCode();
    }
    hash = (37 * hash) + CREATED_FROM_SNAPSHOT_ID_FIELD_NUMBER;
    hash = (53 * hash) + getCreatedFromSnapshotId().hashCode();
    hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs());
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.dataflow.v1beta3.Job parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.dataflow.v1beta3.Job parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.dataflow.v1beta3.Job parseFrom(com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.dataflow.v1beta3.Job parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.dataflow.v1beta3.Job parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.dataflow.v1beta3.Job parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.dataflow.v1beta3.Job parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.dataflow.v1beta3.Job parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.dataflow.v1beta3.Job parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.dataflow.v1beta3.Job parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.dataflow.v1beta3.Job parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.dataflow.v1beta3.Job parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(com.google.dataflow.v1beta3.Job prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   *
   *
   * <pre>
   * Defines a job to be run by the Cloud Dataflow service.
   * </pre>
   *
   * Protobuf type {@code google.dataflow.v1beta3.Job}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.dataflow.v1beta3.Job)
      com.google.dataflow.v1beta3.JobOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.dataflow.v1beta3.JobsProto
          .internal_static_google_dataflow_v1beta3_Job_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(int number) {
      switch (number) {
        case 13:
          return internalGetTransformNameMapping();
        case 17:
          return internalGetLabels();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
      switch (number) {
        case 13:
          return internalGetMutableTransformNameMapping();
        case 17:
          return internalGetMutableLabels();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.dataflow.v1beta3.JobsProto
          .internal_static_google_dataflow_v1beta3_Job_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.dataflow.v1beta3.Job.class, com.google.dataflow.v1beta3.Job.Builder.class);
    }

    // Construct using com.google.dataflow.v1beta3.Job.newBuilder()
    private Builder() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      id_ = "";

      projectId_ = "";

      name_ = "";

      type_ = 0;

      if (environmentBuilder_ == null) {
        environment_ = null;
      } else {
        environment_ = null;
        environmentBuilder_ = null;
      }
      if (stepsBuilder_ == null) {
        steps_ = java.util.Collections.emptyList();
      } else {
        steps_ = null;
        stepsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      stepsLocation_ = "";

      currentState_ = 0;

      if (currentStateTimeBuilder_ == null) {
        currentStateTime_ = null;
      } else {
        currentStateTime_ = null;
        currentStateTimeBuilder_ = null;
      }
      requestedState_ = 0;

      if (executionInfoBuilder_ == null) {
        executionInfo_ = null;
      } else {
        executionInfo_ = null;
        executionInfoBuilder_ = null;
      }
      if (createTimeBuilder_ == null) {
        createTime_ = null;
      } else {
        createTime_ = null;
        createTimeBuilder_ = null;
      }
      replaceJobId_ = "";

      internalGetMutableTransformNameMapping().clear();
      clientRequestId_ = "";

      replacedByJobId_ = "";

      tempFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000004);
      internalGetMutableLabels().clear();
      location_ = "";

      if (pipelineDescriptionBuilder_ == null) {
        pipelineDescription_ = null;
      } else {
        pipelineDescription_ = null;
        pipelineDescriptionBuilder_ = null;
      }
      if (stageStatesBuilder_ == null) {
        stageStates_ = java.util.Collections.emptyList();
      } else {
        stageStates_ = null;
        stageStatesBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000010);
      if (jobMetadataBuilder_ == null) {
        jobMetadata_ = null;
      } else {
        jobMetadata_ = null;
        jobMetadataBuilder_ = null;
      }
      if (startTimeBuilder_ == null) {
        startTime_ = null;
      } else {
        startTime_ = null;
        startTimeBuilder_ = null;
      }
      createdFromSnapshotId_ = "";

      satisfiesPzs_ = false;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.dataflow.v1beta3.JobsProto
          .internal_static_google_dataflow_v1beta3_Job_descriptor;
    }

    @java.lang.Override
    public com.google.dataflow.v1beta3.Job getDefaultInstanceForType() {
      return com.google.dataflow.v1beta3.Job.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.dataflow.v1beta3.Job build() {
      com.google.dataflow.v1beta3.Job result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.dataflow.v1beta3.Job buildPartial() {
      com.google.dataflow.v1beta3.Job result = new com.google.dataflow.v1beta3.Job(this);
      int from_bitField0_ = bitField0_;
      result.id_ = id_;
      result.projectId_ = projectId_;
      result.name_ = name_;
      result.type_ = type_;
      if (environmentBuilder_ == null) {
        result.environment_ = environment_;
      } else {
        result.environment_ = environmentBuilder_.build();
      }
      if (stepsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          steps_ = java.util.Collections.unmodifiableList(steps_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.steps_ = steps_;
      } else {
        result.steps_ = stepsBuilder_.build();
      }
      result.stepsLocation_ = stepsLocation_;
      result.currentState_ = currentState_;
      if (currentStateTimeBuilder_ == null) {
        result.currentStateTime_ = currentStateTime_;
      } else {
        result.currentStateTime_ = currentStateTimeBuilder_.build();
      }
      result.requestedState_ = requestedState_;
      if (executionInfoBuilder_ == null) {
        result.executionInfo_ = executionInfo_;
      } else {
        result.executionInfo_ = executionInfoBuilder_.build();
      }
      if (createTimeBuilder_ == null) {
        result.createTime_ = createTime_;
      } else {
        result.createTime_ = createTimeBuilder_.build();
      }
      result.replaceJobId_ = replaceJobId_;
      result.transformNameMapping_ = internalGetTransformNameMapping();
      result.transformNameMapping_.makeImmutable();
      result.clientRequestId_ = clientRequestId_;
      result.replacedByJobId_ = replacedByJobId_;
      if (((bitField0_ & 0x00000004) != 0)) {
        tempFiles_ = tempFiles_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000004);
      }
      result.tempFiles_ = tempFiles_;
      result.labels_ = internalGetLabels();
      result.labels_.makeImmutable();
      result.location_ = location_;
      if (pipelineDescriptionBuilder_ == null) {
        result.pipelineDescription_ = pipelineDescription_;
      } else {
        result.pipelineDescription_ = pipelineDescriptionBuilder_.build();
      }
      if (stageStatesBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0)) {
          stageStates_ = java.util.Collections.unmodifiableList(stageStates_);
          bitField0_ = (bitField0_ & ~0x00000010);
        }
        result.stageStates_ = stageStates_;
      } else {
        result.stageStates_ = stageStatesBuilder_.build();
      }
      if (jobMetadataBuilder_ == null) {
        result.jobMetadata_ = jobMetadata_;
      } else {
        result.jobMetadata_ = jobMetadataBuilder_.build();
      }
      if (startTimeBuilder_ == null) {
        result.startTime_ = startTime_;
      } else {
        result.startTime_ = startTimeBuilder_.build();
      }
      result.createdFromSnapshotId_ = createdFromSnapshotId_;
      result.satisfiesPzs_ = satisfiesPzs_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.dataflow.v1beta3.Job) {
        return mergeFrom((com.google.dataflow.v1beta3.Job) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.dataflow.v1beta3.Job other) {
      if (other == com.google.dataflow.v1beta3.Job.getDefaultInstance()) return this;
      if (!other.getId().isEmpty()) {
        id_ = other.id_;
        onChanged();
      }
      if (!other.getProjectId().isEmpty()) {
        projectId_ = other.projectId_;
        onChanged();
      }
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        onChanged();
      }
      if (other.type_ != 0) {
        setTypeValue(other.getTypeValue());
      }
      if (other.hasEnvironment()) {
        mergeEnvironment(other.getEnvironment());
      }
      if (stepsBuilder_ == null) {
        if (!other.steps_.isEmpty()) {
          if (steps_.isEmpty()) {
            steps_ = other.steps_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureStepsIsMutable();
            steps_.addAll(other.steps_);
          }
          onChanged();
        }
      } else {
        if (!other.steps_.isEmpty()) {
          if (stepsBuilder_.isEmpty()) {
            stepsBuilder_.dispose();
            stepsBuilder_ = null;
            steps_ = other.steps_;
            bitField0_ = (bitField0_ & ~0x00000001);
            stepsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getStepsFieldBuilder()
                    : null;
          } else {
            stepsBuilder_.addAllMessages(other.steps_);
          }
        }
      }
      if (!other.getStepsLocation().isEmpty()) {
        stepsLocation_ = other.stepsLocation_;
        onChanged();
      }
      if (other.currentState_ != 0) {
        setCurrentStateValue(other.getCurrentStateValue());
      }
      if (other.hasCurrentStateTime()) {
        mergeCurrentStateTime(other.getCurrentStateTime());
      }
      if (other.requestedState_ != 0) {
        setRequestedStateValue(other.getRequestedStateValue());
      }
      if (other.hasExecutionInfo()) {
        mergeExecutionInfo(other.getExecutionInfo());
      }
      if (other.hasCreateTime()) {
        mergeCreateTime(other.getCreateTime());
      }
      if (!other.getReplaceJobId().isEmpty()) {
        replaceJobId_ = other.replaceJobId_;
        onChanged();
      }
      internalGetMutableTransformNameMapping().mergeFrom(other.internalGetTransformNameMapping());
      if (!other.getClientRequestId().isEmpty()) {
        clientRequestId_ = other.clientRequestId_;
        onChanged();
      }
      if (!other.getReplacedByJobId().isEmpty()) {
        replacedByJobId_ = other.replacedByJobId_;
        onChanged();
      }
      if (!other.tempFiles_.isEmpty()) {
        if (tempFiles_.isEmpty()) {
          tempFiles_ = other.tempFiles_;
          bitField0_ = (bitField0_ & ~0x00000004);
        } else {
          ensureTempFilesIsMutable();
          tempFiles_.addAll(other.tempFiles_);
        }
        onChanged();
      }
      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
      if (!other.getLocation().isEmpty()) {
        location_ = other.location_;
        onChanged();
      }
      if (other.hasPipelineDescription()) {
        mergePipelineDescription(other.getPipelineDescription());
      }
      if (stageStatesBuilder_ == null) {
        if (!other.stageStates_.isEmpty()) {
          if (stageStates_.isEmpty()) {
            stageStates_ = other.stageStates_;
            bitField0_ = (bitField0_ & ~0x00000010);
          } else {
            ensureStageStatesIsMutable();
            stageStates_.addAll(other.stageStates_);
          }
          onChanged();
        }
      } else {
        if (!other.stageStates_.isEmpty()) {
          if (stageStatesBuilder_.isEmpty()) {
            stageStatesBuilder_.dispose();
            stageStatesBuilder_ = null;
            stageStates_ = other.stageStates_;
            bitField0_ = (bitField0_ & ~0x00000010);
            stageStatesBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getStageStatesFieldBuilder()
                    : null;
          } else {
            stageStatesBuilder_.addAllMessages(other.stageStates_);
          }
        }
      }
      if (other.hasJobMetadata()) {
        mergeJobMetadata(other.getJobMetadata());
      }
      if (other.hasStartTime()) {
        mergeStartTime(other.getStartTime());
      }
      if (!other.getCreatedFromSnapshotId().isEmpty()) {
        createdFromSnapshotId_ = other.createdFromSnapshotId_;
        onChanged();
      }
      if (other.getSatisfiesPzs() != false) {
        setSatisfiesPzs(other.getSatisfiesPzs());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                id_ = input.readStringRequireUtf8();

                break;
              } // case 10
            case 18:
              {
                projectId_ = input.readStringRequireUtf8();

                break;
              } // case 18
            case 26:
              {
                name_ = input.readStringRequireUtf8();

                break;
              } // case 26
            case 32:
              {
                type_ = input.readEnum();

                break;
              } // case 32
            case 42:
              {
                input.readMessage(getEnvironmentFieldBuilder().getBuilder(), extensionRegistry);

                break;
              } // case 42
            case 50:
              {
                com.google.dataflow.v1beta3.Step m =
                    input.readMessage(com.google.dataflow.v1beta3.Step.parser(), extensionRegistry);
                if (stepsBuilder_ == null) {
                  ensureStepsIsMutable();
                  steps_.add(m);
                } else {
                  stepsBuilder_.addMessage(m);
                }
                break;
              } // case 50
            case 56:
              {
                currentState_ = input.readEnum();

                break;
              } // case 56
            case 66:
              {
                input.readMessage(
                    getCurrentStateTimeFieldBuilder().getBuilder(), extensionRegistry);

                break;
              } // case 66
            case 72:
              {
                requestedState_ = input.readEnum();

                break;
              } // case 72
            case 82:
              {
                input.readMessage(getExecutionInfoFieldBuilder().getBuilder(), extensionRegistry);

                break;
              } // case 82
            case 90:
              {
                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);

                break;
              } // case 90
            case 98:
              {
                replaceJobId_ = input.readStringRequireUtf8();

                break;
              } // case 98
            case 106:
              {
                com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
                    transformNameMapping__ =
                        input.readMessage(
                            TransformNameMappingDefaultEntryHolder.defaultEntry.getParserForType(),
                            extensionRegistry);
                internalGetMutableTransformNameMapping()
                    .getMutableMap()
                    .put(transformNameMapping__.getKey(), transformNameMapping__.getValue());
                break;
              } // case 106
            case 114:
              {
                clientRequestId_ = input.readStringRequireUtf8();

                break;
              } // case 114
            case 122:
              {
                replacedByJobId_ = input.readStringRequireUtf8();

                break;
              } // case 122
            case 130:
              {
                java.lang.String s = input.readStringRequireUtf8();
                ensureTempFilesIsMutable();
                tempFiles_.add(s);
                break;
              } // case 130
            case 138:
              {
                com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
                    input.readMessage(
                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
                        extensionRegistry);
                internalGetMutableLabels()
                    .getMutableMap()
                    .put(labels__.getKey(), labels__.getValue());
                break;
              } // case 138
            case 146:
              {
                location_ = input.readStringRequireUtf8();

                break;
              } // case 146
            case 154:
              {
                input.readMessage(
                    getPipelineDescriptionFieldBuilder().getBuilder(), extensionRegistry);

                break;
              } // case 154
            case 162:
              {
                com.google.dataflow.v1beta3.ExecutionStageState m =
                    input.readMessage(
                        com.google.dataflow.v1beta3.ExecutionStageState.parser(),
                        extensionRegistry);
                if (stageStatesBuilder_ == null) {
                  ensureStageStatesIsMutable();
                  stageStates_.add(m);
                } else {
                  stageStatesBuilder_.addMessage(m);
                }
                break;
              } // case 162
            case 170:
              {
                input.readMessage(getJobMetadataFieldBuilder().getBuilder(), extensionRegistry);

                break;
              } // case 170
            case 178:
              {
                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);

                break;
              } // case 178
            case 186:
              {
                createdFromSnapshotId_ = input.readStringRequireUtf8();

                break;
              } // case 186
            case 194:
              {
                stepsLocation_ = input.readStringRequireUtf8();

                break;
              } // case 194
            case 200:
              {
                satisfiesPzs_ = input.readBool();

                break;
              } // case 200
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private java.lang.Object id_ = "";
    /**
     *
     *
     * <pre>
     * The unique ID of this job.
     * This field is set by the Cloud Dataflow service when the Job is
     * created, and is immutable for the life of the job.
     * </pre>
     *
     * <code>string id = 1;</code>
     *
     * @return The id.
     */
    public java.lang.String getId() {
      java.lang.Object ref = id_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        id_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The unique ID of this job.
     * This field is set by the Cloud Dataflow service when the Job is
     * created, and is immutable for the life of the job.
     * </pre>
     *
     * <code>string id = 1;</code>
     *
     * @return The bytes for id.
     */
    public com.google.protobuf.ByteString getIdBytes() {
      java.lang.Object ref = id_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        id_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The unique ID of this job.
     * This field is set by the Cloud Dataflow service when the Job is
     * created, and is immutable for the life of the job.
     * </pre>
     *
     * <code>string id = 1;</code>
     *
     * @param value The id to set.
     * @return This builder for chaining.
     */
    public Builder setId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      id_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The unique ID of this job.
     * This field is set by the Cloud Dataflow service when the Job is
     * created, and is immutable for the life of the job.
     * </pre>
     *
     * <code>string id = 1;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearId() {

      id_ = getDefaultInstance().getId();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The unique ID of this job.
     * This field is set by the Cloud Dataflow service when the Job is
     * created, and is immutable for the life of the job.
     * </pre>
     *
     * <code>string id = 1;</code>
     *
     * @param value The bytes for id to set.
     * @return This builder for chaining.
     */
    public Builder setIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      id_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object projectId_ = "";
    /**
     *
     *
     * <pre>
     * The ID of the Cloud Platform project that the job belongs to.
     * </pre>
     *
     * <code>string project_id = 2;</code>
     *
     * @return The projectId.
     */
    public java.lang.String getProjectId() {
      java.lang.Object ref = projectId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        projectId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The ID of the Cloud Platform project that the job belongs to.
     * </pre>
     *
     * <code>string project_id = 2;</code>
     *
     * @return The bytes for projectId.
     */
    public com.google.protobuf.ByteString getProjectIdBytes() {
      java.lang.Object ref = projectId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        projectId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The ID of the Cloud Platform project that the job belongs to.
     * </pre>
     *
     * <code>string project_id = 2;</code>
     *
     * @param value The projectId to set.
     * @return This builder for chaining.
     */
    public Builder setProjectId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      projectId_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The ID of the Cloud Platform project that the job belongs to.
     * </pre>
     *
     * <code>string project_id = 2;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearProjectId() {

      projectId_ = getDefaultInstance().getProjectId();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The ID of the Cloud Platform project that the job belongs to.
     * </pre>
     *
     * <code>string project_id = 2;</code>
     *
     * @param value The bytes for projectId to set.
     * @return This builder for chaining.
     */
    public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      projectId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object name_ = "";
    /**
     *
     *
     * <pre>
     * The user-specified Cloud Dataflow job name.
     * Only one Job with a given name may exist in a project at any
     * given time. If a caller attempts to create a Job with the same
     * name as an already-existing Job, the attempt returns the
     * existing Job.
     * The name must match the regular expression
     * `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?`
     * </pre>
     *
     * <code>string name = 3;</code>
     *
     * @return The name.
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The user-specified Cloud Dataflow job name.
     * Only one Job with a given name may exist in a project at any
     * given time. If a caller attempts to create a Job with the same
     * name as an already-existing Job, the attempt returns the
     * existing Job.
     * The name must match the regular expression
     * `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?`
     * </pre>
     *
     * <code>string name = 3;</code>
     *
     * @return The bytes for name.
     */
    public com.google.protobuf.ByteString getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The user-specified Cloud Dataflow job name.
     * Only one Job with a given name may exist in a project at any
     * given time. If a caller attempts to create a Job with the same
     * name as an already-existing Job, the attempt returns the
     * existing Job.
     * The name must match the regular expression
     * `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?`
     * </pre>
     *
     * <code>string name = 3;</code>
     *
     * @param value The name to set.
     * @return This builder for chaining.
     */
    public Builder setName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      name_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The user-specified Cloud Dataflow job name.
     * Only one Job with a given name may exist in a project at any
     * given time. If a caller attempts to create a Job with the same
     * name as an already-existing Job, the attempt returns the
     * existing Job.
     * The name must match the regular expression
     * `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?`
     * </pre>
     *
     * <code>string name = 3;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearName() {

      name_ = getDefaultInstance().getName();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The user-specified Cloud Dataflow job name.
     * Only one Job with a given name may exist in a project at any
     * given time. If a caller attempts to create a Job with the same
     * name as an already-existing Job, the attempt returns the
     * existing Job.
     * The name must match the regular expression
     * `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?`
     * </pre>
     *
     * <code>string name = 3;</code>
     *
     * @param value The bytes for name to set.
     * @return This builder for chaining.
     */
    public Builder setNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      name_ = value;
      onChanged();
      return this;
    }

    private int type_ = 0;
    /**
     *
     *
     * <pre>
     * The type of Cloud Dataflow job.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobType type = 4;</code>
     *
     * @return The enum numeric value on the wire for type.
     */
    @java.lang.Override
    public int getTypeValue() {
      return type_;
    }
    /**
     *
     *
     * <pre>
     * The type of Cloud Dataflow job.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobType type = 4;</code>
     *
     * @param value The enum numeric value on the wire for type to set.
     * @return This builder for chaining.
     */
    public Builder setTypeValue(int value) {

      type_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The type of Cloud Dataflow job.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobType type = 4;</code>
     *
     * @return The type.
     */
    @java.lang.Override
    public com.google.dataflow.v1beta3.JobType getType() {
      @SuppressWarnings("deprecation")
      com.google.dataflow.v1beta3.JobType result =
          com.google.dataflow.v1beta3.JobType.valueOf(type_);
      return result == null ? com.google.dataflow.v1beta3.JobType.UNRECOGNIZED : result;
    }
    /**
     *
     *
     * <pre>
     * The type of Cloud Dataflow job.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobType type = 4;</code>
     *
     * @param value The type to set.
     * @return This builder for chaining.
     */
    public Builder setType(com.google.dataflow.v1beta3.JobType value) {
      if (value == null) {
        throw new NullPointerException();
      }

      type_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The type of Cloud Dataflow job.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobType type = 4;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearType() {

      type_ = 0;
      onChanged();
      return this;
    }

    private com.google.dataflow.v1beta3.Environment environment_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.dataflow.v1beta3.Environment,
            com.google.dataflow.v1beta3.Environment.Builder,
            com.google.dataflow.v1beta3.EnvironmentOrBuilder>
        environmentBuilder_;
    /**
     *
     *
     * <pre>
     * The environment for the job.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.Environment environment = 5;</code>
     *
     * @return Whether the environment field is set.
     */
    public boolean hasEnvironment() {
      return environmentBuilder_ != null || environment_ != null;
    }
    /**
     *
     *
     * <pre>
     * The environment for the job.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.Environment environment = 5;</code>
     *
     * @return The environment.
     */
    public com.google.dataflow.v1beta3.Environment getEnvironment() {
      if (environmentBuilder_ == null) {
        return environment_ == null
            ? com.google.dataflow.v1beta3.Environment.getDefaultInstance()
            : environment_;
      } else {
        return environmentBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The environment for the job.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.Environment environment = 5;</code>
     */
    public Builder setEnvironment(com.google.dataflow.v1beta3.Environment value) {
      if (environmentBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        environment_ = value;
        onChanged();
      } else {
        environmentBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * The environment for the job.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.Environment environment = 5;</code>
     */
    public Builder setEnvironment(com.google.dataflow.v1beta3.Environment.Builder builderForValue) {
      if (environmentBuilder_ == null) {
        environment_ = builderForValue.build();
        onChanged();
      } else {
        environmentBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * The environment for the job.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.Environment environment = 5;</code>
     */
    public Builder mergeEnvironment(com.google.dataflow.v1beta3.Environment value) {
      if (environmentBuilder_ == null) {
        if (environment_ != null) {
          environment_ =
              com.google.dataflow.v1beta3.Environment.newBuilder(environment_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          environment_ = value;
        }
        onChanged();
      } else {
        environmentBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * The environment for the job.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.Environment environment = 5;</code>
     */
    public Builder clearEnvironment() {
      if (environmentBuilder_ == null) {
        environment_ = null;
        onChanged();
      } else {
        environment_ = null;
        environmentBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * The environment for the job.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.Environment environment = 5;</code>
     */
    public com.google.dataflow.v1beta3.Environment.Builder getEnvironmentBuilder() {

      onChanged();
      return getEnvironmentFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The environment for the job.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.Environment environment = 5;</code>
     */
    public com.google.dataflow.v1beta3.EnvironmentOrBuilder getEnvironmentOrBuilder() {
      if (environmentBuilder_ != null) {
        return environmentBuilder_.getMessageOrBuilder();
      } else {
        return environment_ == null
            ? com.google.dataflow.v1beta3.Environment.getDefaultInstance()
            : environment_;
      }
    }
    /**
     *
     *
     * <pre>
     * The environment for the job.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.Environment environment = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.dataflow.v1beta3.Environment,
            com.google.dataflow.v1beta3.Environment.Builder,
            com.google.dataflow.v1beta3.EnvironmentOrBuilder>
        getEnvironmentFieldBuilder() {
      if (environmentBuilder_ == null) {
        environmentBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.dataflow.v1beta3.Environment,
                com.google.dataflow.v1beta3.Environment.Builder,
                com.google.dataflow.v1beta3.EnvironmentOrBuilder>(
                getEnvironment(), getParentForChildren(), isClean());
        environment_ = null;
      }
      return environmentBuilder_;
    }

    private java.util.List<com.google.dataflow.v1beta3.Step> steps_ =
        java.util.Collections.emptyList();

    private void ensureStepsIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        steps_ = new java.util.ArrayList<com.google.dataflow.v1beta3.Step>(steps_);
        bitField0_ |= 0x00000001;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.dataflow.v1beta3.Step,
            com.google.dataflow.v1beta3.Step.Builder,
            com.google.dataflow.v1beta3.StepOrBuilder>
        stepsBuilder_;

    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
     */
    public java.util.List<com.google.dataflow.v1beta3.Step> getStepsList() {
      if (stepsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(steps_);
      } else {
        return stepsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
     */
    public int getStepsCount() {
      if (stepsBuilder_ == null) {
        return steps_.size();
      } else {
        return stepsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
     */
    public com.google.dataflow.v1beta3.Step getSteps(int index) {
      if (stepsBuilder_ == null) {
        return steps_.get(index);
      } else {
        return stepsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
     */
    public Builder setSteps(int index, com.google.dataflow.v1beta3.Step value) {
      if (stepsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureStepsIsMutable();
        steps_.set(index, value);
        onChanged();
      } else {
        stepsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
     */
    public Builder setSteps(int index, com.google.dataflow.v1beta3.Step.Builder builderForValue) {
      if (stepsBuilder_ == null) {
        ensureStepsIsMutable();
        steps_.set(index, builderForValue.build());
        onChanged();
      } else {
        stepsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
     */
    public Builder addSteps(com.google.dataflow.v1beta3.Step value) {
      if (stepsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureStepsIsMutable();
        steps_.add(value);
        onChanged();
      } else {
        stepsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
     */
    public Builder addSteps(int index, com.google.dataflow.v1beta3.Step value) {
      if (stepsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureStepsIsMutable();
        steps_.add(index, value);
        onChanged();
      } else {
        stepsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
     */
    public Builder addSteps(com.google.dataflow.v1beta3.Step.Builder builderForValue) {
      if (stepsBuilder_ == null) {
        ensureStepsIsMutable();
        steps_.add(builderForValue.build());
        onChanged();
      } else {
        stepsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
     */
    public Builder addSteps(int index, com.google.dataflow.v1beta3.Step.Builder builderForValue) {
      if (stepsBuilder_ == null) {
        ensureStepsIsMutable();
        steps_.add(index, builderForValue.build());
        onChanged();
      } else {
        stepsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
     */
    public Builder addAllSteps(
        java.lang.Iterable<? extends com.google.dataflow.v1beta3.Step> values) {
      if (stepsBuilder_ == null) {
        ensureStepsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, steps_);
        onChanged();
      } else {
        stepsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
     */
    public Builder clearSteps() {
      if (stepsBuilder_ == null) {
        steps_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        stepsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
     */
    public Builder removeSteps(int index) {
      if (stepsBuilder_ == null) {
        ensureStepsIsMutable();
        steps_.remove(index);
        onChanged();
      } else {
        stepsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
     */
    public com.google.dataflow.v1beta3.Step.Builder getStepsBuilder(int index) {
      return getStepsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
     */
    public com.google.dataflow.v1beta3.StepOrBuilder getStepsOrBuilder(int index) {
      if (stepsBuilder_ == null) {
        return steps_.get(index);
      } else {
        return stepsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
     */
    public java.util.List<? extends com.google.dataflow.v1beta3.StepOrBuilder>
        getStepsOrBuilderList() {
      if (stepsBuilder_ != null) {
        return stepsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(steps_);
      }
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
     */
    public com.google.dataflow.v1beta3.Step.Builder addStepsBuilder() {
      return getStepsFieldBuilder()
          .addBuilder(com.google.dataflow.v1beta3.Step.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
     */
    public com.google.dataflow.v1beta3.Step.Builder addStepsBuilder(int index) {
      return getStepsFieldBuilder()
          .addBuilder(index, com.google.dataflow.v1beta3.Step.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Step steps = 6;</code>
     */
    public java.util.List<com.google.dataflow.v1beta3.Step.Builder> getStepsBuilderList() {
      return getStepsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.dataflow.v1beta3.Step,
            com.google.dataflow.v1beta3.Step.Builder,
            com.google.dataflow.v1beta3.StepOrBuilder>
        getStepsFieldBuilder() {
      if (stepsBuilder_ == null) {
        stepsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.dataflow.v1beta3.Step,
                com.google.dataflow.v1beta3.Step.Builder,
                com.google.dataflow.v1beta3.StepOrBuilder>(
                steps_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
        steps_ = null;
      }
      return stepsBuilder_;
    }

    private java.lang.Object stepsLocation_ = "";
    /**
     *
     *
     * <pre>
     * The Cloud Storage location where the steps are stored.
     * </pre>
     *
     * <code>string steps_location = 24;</code>
     *
     * @return The stepsLocation.
     */
    public java.lang.String getStepsLocation() {
      java.lang.Object ref = stepsLocation_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        stepsLocation_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The Cloud Storage location where the steps are stored.
     * </pre>
     *
     * <code>string steps_location = 24;</code>
     *
     * @return The bytes for stepsLocation.
     */
    public com.google.protobuf.ByteString getStepsLocationBytes() {
      java.lang.Object ref = stepsLocation_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        stepsLocation_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The Cloud Storage location where the steps are stored.
     * </pre>
     *
     * <code>string steps_location = 24;</code>
     *
     * @param value The stepsLocation to set.
     * @return This builder for chaining.
     */
    public Builder setStepsLocation(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      stepsLocation_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The Cloud Storage location where the steps are stored.
     * </pre>
     *
     * <code>string steps_location = 24;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearStepsLocation() {

      stepsLocation_ = getDefaultInstance().getStepsLocation();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The Cloud Storage location where the steps are stored.
     * </pre>
     *
     * <code>string steps_location = 24;</code>
     *
     * @param value The bytes for stepsLocation to set.
     * @return This builder for chaining.
     */
    public Builder setStepsLocationBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      stepsLocation_ = value;
      onChanged();
      return this;
    }

    private int currentState_ = 0;
    /**
     *
     *
     * <pre>
     * 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 may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobState current_state = 7;</code>
     *
     * @return The enum numeric value on the wire for currentState.
     */
    @java.lang.Override
    public int getCurrentStateValue() {
      return currentState_;
    }
    /**
     *
     *
     * <pre>
     * 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 may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobState current_state = 7;</code>
     *
     * @param value The enum numeric value on the wire for currentState to set.
     * @return This builder for chaining.
     */
    public Builder setCurrentStateValue(int value) {

      currentState_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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 may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobState current_state = 7;</code>
     *
     * @return The currentState.
     */
    @java.lang.Override
    public com.google.dataflow.v1beta3.JobState getCurrentState() {
      @SuppressWarnings("deprecation")
      com.google.dataflow.v1beta3.JobState result =
          com.google.dataflow.v1beta3.JobState.valueOf(currentState_);
      return result == null ? com.google.dataflow.v1beta3.JobState.UNRECOGNIZED : result;
    }
    /**
     *
     *
     * <pre>
     * 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 may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobState current_state = 7;</code>
     *
     * @param value The currentState to set.
     * @return This builder for chaining.
     */
    public Builder setCurrentState(com.google.dataflow.v1beta3.JobState value) {
      if (value == null) {
        throw new NullPointerException();
      }

      currentState_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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 may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobState current_state = 7;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearCurrentState() {

      currentState_ = 0;
      onChanged();
      return this;
    }

    private com.google.protobuf.Timestamp currentStateTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        currentStateTimeBuilder_;
    /**
     *
     *
     * <pre>
     * The timestamp associated with the current state.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp current_state_time = 8;</code>
     *
     * @return Whether the currentStateTime field is set.
     */
    public boolean hasCurrentStateTime() {
      return currentStateTimeBuilder_ != null || currentStateTime_ != null;
    }
    /**
     *
     *
     * <pre>
     * The timestamp associated with the current state.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp current_state_time = 8;</code>
     *
     * @return The currentStateTime.
     */
    public com.google.protobuf.Timestamp getCurrentStateTime() {
      if (currentStateTimeBuilder_ == null) {
        return currentStateTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : currentStateTime_;
      } else {
        return currentStateTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The timestamp associated with the current state.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp current_state_time = 8;</code>
     */
    public Builder setCurrentStateTime(com.google.protobuf.Timestamp value) {
      if (currentStateTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        currentStateTime_ = value;
        onChanged();
      } else {
        currentStateTimeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * The timestamp associated with the current state.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp current_state_time = 8;</code>
     */
    public Builder setCurrentStateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (currentStateTimeBuilder_ == null) {
        currentStateTime_ = builderForValue.build();
        onChanged();
      } else {
        currentStateTimeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * The timestamp associated with the current state.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp current_state_time = 8;</code>
     */
    public Builder mergeCurrentStateTime(com.google.protobuf.Timestamp value) {
      if (currentStateTimeBuilder_ == null) {
        if (currentStateTime_ != null) {
          currentStateTime_ =
              com.google.protobuf.Timestamp.newBuilder(currentStateTime_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          currentStateTime_ = value;
        }
        onChanged();
      } else {
        currentStateTimeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * The timestamp associated with the current state.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp current_state_time = 8;</code>
     */
    public Builder clearCurrentStateTime() {
      if (currentStateTimeBuilder_ == null) {
        currentStateTime_ = null;
        onChanged();
      } else {
        currentStateTime_ = null;
        currentStateTimeBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * The timestamp associated with the current state.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp current_state_time = 8;</code>
     */
    public com.google.protobuf.Timestamp.Builder getCurrentStateTimeBuilder() {

      onChanged();
      return getCurrentStateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The timestamp associated with the current state.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp current_state_time = 8;</code>
     */
    public com.google.protobuf.TimestampOrBuilder getCurrentStateTimeOrBuilder() {
      if (currentStateTimeBuilder_ != null) {
        return currentStateTimeBuilder_.getMessageOrBuilder();
      } else {
        return currentStateTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : currentStateTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * The timestamp associated with the current state.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp current_state_time = 8;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getCurrentStateTimeFieldBuilder() {
      if (currentStateTimeBuilder_ == null) {
        currentStateTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getCurrentStateTime(), getParentForChildren(), isClean());
        currentStateTime_ = null;
      }
      return currentStateTimeBuilder_;
    }

    private int requestedState_ = 0;
    /**
     *
     *
     * <pre>
     * The job's requested state.
     * `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and
     * `JOB_STATE_RUNNING` states, by setting requested_state.  `UpdateJob` may
     * also be used to directly set a job's requested state to
     * `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the
     * job if it has not already reached a terminal state.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobState requested_state = 9;</code>
     *
     * @return The enum numeric value on the wire for requestedState.
     */
    @java.lang.Override
    public int getRequestedStateValue() {
      return requestedState_;
    }
    /**
     *
     *
     * <pre>
     * The job's requested state.
     * `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and
     * `JOB_STATE_RUNNING` states, by setting requested_state.  `UpdateJob` may
     * also be used to directly set a job's requested state to
     * `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the
     * job if it has not already reached a terminal state.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobState requested_state = 9;</code>
     *
     * @param value The enum numeric value on the wire for requestedState to set.
     * @return This builder for chaining.
     */
    public Builder setRequestedStateValue(int value) {

      requestedState_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The job's requested state.
     * `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and
     * `JOB_STATE_RUNNING` states, by setting requested_state.  `UpdateJob` may
     * also be used to directly set a job's requested state to
     * `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the
     * job if it has not already reached a terminal state.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobState requested_state = 9;</code>
     *
     * @return The requestedState.
     */
    @java.lang.Override
    public com.google.dataflow.v1beta3.JobState getRequestedState() {
      @SuppressWarnings("deprecation")
      com.google.dataflow.v1beta3.JobState result =
          com.google.dataflow.v1beta3.JobState.valueOf(requestedState_);
      return result == null ? com.google.dataflow.v1beta3.JobState.UNRECOGNIZED : result;
    }
    /**
     *
     *
     * <pre>
     * The job's requested state.
     * `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and
     * `JOB_STATE_RUNNING` states, by setting requested_state.  `UpdateJob` may
     * also be used to directly set a job's requested state to
     * `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the
     * job if it has not already reached a terminal state.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobState requested_state = 9;</code>
     *
     * @param value The requestedState to set.
     * @return This builder for chaining.
     */
    public Builder setRequestedState(com.google.dataflow.v1beta3.JobState value) {
      if (value == null) {
        throw new NullPointerException();
      }

      requestedState_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The job's requested state.
     * `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and
     * `JOB_STATE_RUNNING` states, by setting requested_state.  `UpdateJob` may
     * also be used to directly set a job's requested state to
     * `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the
     * job if it has not already reached a terminal state.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobState requested_state = 9;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearRequestedState() {

      requestedState_ = 0;
      onChanged();
      return this;
    }

    private com.google.dataflow.v1beta3.JobExecutionInfo executionInfo_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.dataflow.v1beta3.JobExecutionInfo,
            com.google.dataflow.v1beta3.JobExecutionInfo.Builder,
            com.google.dataflow.v1beta3.JobExecutionInfoOrBuilder>
        executionInfoBuilder_;
    /**
     *
     *
     * <pre>
     * Deprecated.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobExecutionInfo execution_info = 10;</code>
     *
     * @return Whether the executionInfo field is set.
     */
    public boolean hasExecutionInfo() {
      return executionInfoBuilder_ != null || executionInfo_ != null;
    }
    /**
     *
     *
     * <pre>
     * Deprecated.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobExecutionInfo execution_info = 10;</code>
     *
     * @return The executionInfo.
     */
    public com.google.dataflow.v1beta3.JobExecutionInfo getExecutionInfo() {
      if (executionInfoBuilder_ == null) {
        return executionInfo_ == null
            ? com.google.dataflow.v1beta3.JobExecutionInfo.getDefaultInstance()
            : executionInfo_;
      } else {
        return executionInfoBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Deprecated.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobExecutionInfo execution_info = 10;</code>
     */
    public Builder setExecutionInfo(com.google.dataflow.v1beta3.JobExecutionInfo value) {
      if (executionInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        executionInfo_ = value;
        onChanged();
      } else {
        executionInfoBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Deprecated.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobExecutionInfo execution_info = 10;</code>
     */
    public Builder setExecutionInfo(
        com.google.dataflow.v1beta3.JobExecutionInfo.Builder builderForValue) {
      if (executionInfoBuilder_ == null) {
        executionInfo_ = builderForValue.build();
        onChanged();
      } else {
        executionInfoBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Deprecated.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobExecutionInfo execution_info = 10;</code>
     */
    public Builder mergeExecutionInfo(com.google.dataflow.v1beta3.JobExecutionInfo value) {
      if (executionInfoBuilder_ == null) {
        if (executionInfo_ != null) {
          executionInfo_ =
              com.google.dataflow.v1beta3.JobExecutionInfo.newBuilder(executionInfo_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          executionInfo_ = value;
        }
        onChanged();
      } else {
        executionInfoBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Deprecated.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobExecutionInfo execution_info = 10;</code>
     */
    public Builder clearExecutionInfo() {
      if (executionInfoBuilder_ == null) {
        executionInfo_ = null;
        onChanged();
      } else {
        executionInfo_ = null;
        executionInfoBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Deprecated.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobExecutionInfo execution_info = 10;</code>
     */
    public com.google.dataflow.v1beta3.JobExecutionInfo.Builder getExecutionInfoBuilder() {

      onChanged();
      return getExecutionInfoFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Deprecated.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobExecutionInfo execution_info = 10;</code>
     */
    public com.google.dataflow.v1beta3.JobExecutionInfoOrBuilder getExecutionInfoOrBuilder() {
      if (executionInfoBuilder_ != null) {
        return executionInfoBuilder_.getMessageOrBuilder();
      } else {
        return executionInfo_ == null
            ? com.google.dataflow.v1beta3.JobExecutionInfo.getDefaultInstance()
            : executionInfo_;
      }
    }
    /**
     *
     *
     * <pre>
     * Deprecated.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobExecutionInfo execution_info = 10;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.dataflow.v1beta3.JobExecutionInfo,
            com.google.dataflow.v1beta3.JobExecutionInfo.Builder,
            com.google.dataflow.v1beta3.JobExecutionInfoOrBuilder>
        getExecutionInfoFieldBuilder() {
      if (executionInfoBuilder_ == null) {
        executionInfoBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.dataflow.v1beta3.JobExecutionInfo,
                com.google.dataflow.v1beta3.JobExecutionInfo.Builder,
                com.google.dataflow.v1beta3.JobExecutionInfoOrBuilder>(
                getExecutionInfo(), getParentForChildren(), isClean());
        executionInfo_ = null;
      }
      return executionInfoBuilder_;
    }

    private com.google.protobuf.Timestamp createTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        createTimeBuilder_;
    /**
     *
     *
     * <pre>
     * The timestamp when the job was initially created. Immutable and set by the
     * Cloud Dataflow service.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 11;</code>
     *
     * @return Whether the createTime field is set.
     */
    public boolean hasCreateTime() {
      return createTimeBuilder_ != null || createTime_ != null;
    }
    /**
     *
     *
     * <pre>
     * The timestamp when the job was initially created. Immutable and set by the
     * Cloud Dataflow service.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 11;</code>
     *
     * @return The createTime.
     */
    public com.google.protobuf.Timestamp getCreateTime() {
      if (createTimeBuilder_ == null) {
        return createTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : createTime_;
      } else {
        return createTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The timestamp when the job was initially created. Immutable and set by the
     * Cloud Dataflow service.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 11;</code>
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        createTime_ = value;
        onChanged();
      } else {
        createTimeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * The timestamp when the job was initially created. Immutable and set by the
     * Cloud Dataflow service.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 11;</code>
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (createTimeBuilder_ == null) {
        createTime_ = builderForValue.build();
        onChanged();
      } else {
        createTimeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * The timestamp when the job was initially created. Immutable and set by the
     * Cloud Dataflow service.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 11;</code>
     */
    public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (createTime_ != null) {
          createTime_ =
              com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial();
        } else {
          createTime_ = value;
        }
        onChanged();
      } else {
        createTimeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * The timestamp when the job was initially created. Immutable and set by the
     * Cloud Dataflow service.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 11;</code>
     */
    public Builder clearCreateTime() {
      if (createTimeBuilder_ == null) {
        createTime_ = null;
        onChanged();
      } else {
        createTime_ = null;
        createTimeBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * The timestamp when the job was initially created. Immutable and set by the
     * Cloud Dataflow service.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 11;</code>
     */
    public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {

      onChanged();
      return getCreateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The timestamp when the job was initially created. Immutable and set by the
     * Cloud Dataflow service.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 11;</code>
     */
    public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      if (createTimeBuilder_ != null) {
        return createTimeBuilder_.getMessageOrBuilder();
      } else {
        return createTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : createTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * The timestamp when the job was initially created. Immutable and set by the
     * Cloud Dataflow service.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 11;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getCreateTimeFieldBuilder() {
      if (createTimeBuilder_ == null) {
        createTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getCreateTime(), getParentForChildren(), isClean());
        createTime_ = null;
      }
      return createTimeBuilder_;
    }

    private java.lang.Object replaceJobId_ = "";
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>string replace_job_id = 12;</code>
     *
     * @return The replaceJobId.
     */
    public java.lang.String getReplaceJobId() {
      java.lang.Object ref = replaceJobId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        replaceJobId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>string replace_job_id = 12;</code>
     *
     * @return The bytes for replaceJobId.
     */
    public com.google.protobuf.ByteString getReplaceJobIdBytes() {
      java.lang.Object ref = replaceJobId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        replaceJobId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>string replace_job_id = 12;</code>
     *
     * @param value The replaceJobId to set.
     * @return This builder for chaining.
     */
    public Builder setReplaceJobId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      replaceJobId_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>string replace_job_id = 12;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearReplaceJobId() {

      replaceJobId_ = getDefaultInstance().getReplaceJobId();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>string replace_job_id = 12;</code>
     *
     * @param value The bytes for replaceJobId to set.
     * @return This builder for chaining.
     */
    public Builder setReplaceJobIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      replaceJobId_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> transformNameMapping_;

    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
        internalGetTransformNameMapping() {
      if (transformNameMapping_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            TransformNameMappingDefaultEntryHolder.defaultEntry);
      }
      return transformNameMapping_;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
        internalGetMutableTransformNameMapping() {
      onChanged();
      ;
      if (transformNameMapping_ == null) {
        transformNameMapping_ =
            com.google.protobuf.MapField.newMapField(
                TransformNameMappingDefaultEntryHolder.defaultEntry);
      }
      if (!transformNameMapping_.isMutable()) {
        transformNameMapping_ = transformNameMapping_.copy();
      }
      return transformNameMapping_;
    }

    public int getTransformNameMappingCount() {
      return internalGetTransformNameMapping().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * The map of transform name prefixes of the job to be replaced to the
     * corresponding name prefixes of the new job.
     * </pre>
     *
     * <code>map&lt;string, string&gt; transform_name_mapping = 13;</code>
     */
    @java.lang.Override
    public boolean containsTransformNameMapping(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      return internalGetTransformNameMapping().getMap().containsKey(key);
    }
    /** Use {@link #getTransformNameMappingMap()} instead. */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getTransformNameMapping() {
      return getTransformNameMappingMap();
    }
    /**
     *
     *
     * <pre>
     * The map of transform name prefixes of the job to be replaced to the
     * corresponding name prefixes of the new job.
     * </pre>
     *
     * <code>map&lt;string, string&gt; transform_name_mapping = 13;</code>
     */
    @java.lang.Override
    public java.util.Map<java.lang.String, java.lang.String> getTransformNameMappingMap() {
      return internalGetTransformNameMapping().getMap();
    }
    /**
     *
     *
     * <pre>
     * The map of transform name prefixes of the job to be replaced to the
     * corresponding name prefixes of the new job.
     * </pre>
     *
     * <code>map&lt;string, string&gt; transform_name_mapping = 13;</code>
     */
    @java.lang.Override
    public java.lang.String getTransformNameMappingOrDefault(
        java.lang.String key, java.lang.String defaultValue) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map =
          internalGetTransformNameMapping().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     *
     *
     * <pre>
     * The map of transform name prefixes of the job to be replaced to the
     * corresponding name prefixes of the new job.
     * </pre>
     *
     * <code>map&lt;string, string&gt; transform_name_mapping = 13;</code>
     */
    @java.lang.Override
    public java.lang.String getTransformNameMappingOrThrow(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map =
          internalGetTransformNameMapping().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearTransformNameMapping() {
      internalGetMutableTransformNameMapping().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The map of transform name prefixes of the job to be replaced to the
     * corresponding name prefixes of the new job.
     * </pre>
     *
     * <code>map&lt;string, string&gt; transform_name_mapping = 13;</code>
     */
    public Builder removeTransformNameMapping(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      internalGetMutableTransformNameMapping().getMutableMap().remove(key);
      return this;
    }
    /** Use alternate mutation accessors instead. */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getMutableTransformNameMapping() {
      return internalGetMutableTransformNameMapping().getMutableMap();
    }
    /**
     *
     *
     * <pre>
     * The map of transform name prefixes of the job to be replaced to the
     * corresponding name prefixes of the new job.
     * </pre>
     *
     * <code>map&lt;string, string&gt; transform_name_mapping = 13;</code>
     */
    public Builder putTransformNameMapping(java.lang.String key, java.lang.String value) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      if (value == null) {
        throw new NullPointerException("map value");
      }

      internalGetMutableTransformNameMapping().getMutableMap().put(key, value);
      return this;
    }
    /**
     *
     *
     * <pre>
     * The map of transform name prefixes of the job to be replaced to the
     * corresponding name prefixes of the new job.
     * </pre>
     *
     * <code>map&lt;string, string&gt; transform_name_mapping = 13;</code>
     */
    public Builder putAllTransformNameMapping(
        java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableTransformNameMapping().getMutableMap().putAll(values);
      return this;
    }

    private java.lang.Object clientRequestId_ = "";
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>string client_request_id = 14;</code>
     *
     * @return The clientRequestId.
     */
    public java.lang.String getClientRequestId() {
      java.lang.Object ref = clientRequestId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        clientRequestId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>string client_request_id = 14;</code>
     *
     * @return The bytes for clientRequestId.
     */
    public com.google.protobuf.ByteString getClientRequestIdBytes() {
      java.lang.Object ref = clientRequestId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        clientRequestId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>string client_request_id = 14;</code>
     *
     * @param value The clientRequestId to set.
     * @return This builder for chaining.
     */
    public Builder setClientRequestId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      clientRequestId_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>string client_request_id = 14;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearClientRequestId() {

      clientRequestId_ = getDefaultInstance().getClientRequestId();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>string client_request_id = 14;</code>
     *
     * @param value The bytes for clientRequestId to set.
     * @return This builder for chaining.
     */
    public Builder setClientRequestIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      clientRequestId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object replacedByJobId_ = "";
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>string replaced_by_job_id = 15;</code>
     *
     * @return The replacedByJobId.
     */
    public java.lang.String getReplacedByJobId() {
      java.lang.Object ref = replacedByJobId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        replacedByJobId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>string replaced_by_job_id = 15;</code>
     *
     * @return The bytes for replacedByJobId.
     */
    public com.google.protobuf.ByteString getReplacedByJobIdBytes() {
      java.lang.Object ref = replacedByJobId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        replacedByJobId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>string replaced_by_job_id = 15;</code>
     *
     * @param value The replacedByJobId to set.
     * @return This builder for chaining.
     */
    public Builder setReplacedByJobId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      replacedByJobId_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>string replaced_by_job_id = 15;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearReplacedByJobId() {

      replacedByJobId_ = getDefaultInstance().getReplacedByJobId();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>string replaced_by_job_id = 15;</code>
     *
     * @param value The bytes for replacedByJobId to set.
     * @return This builder for chaining.
     */
    public Builder setReplacedByJobIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      replacedByJobId_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList tempFiles_ =
        com.google.protobuf.LazyStringArrayList.EMPTY;

    private void ensureTempFilesIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        tempFiles_ = new com.google.protobuf.LazyStringArrayList(tempFiles_);
        bitField0_ |= 0x00000004;
      }
    }
    /**
     *
     *
     * <pre>
     * 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}
     * </pre>
     *
     * <code>repeated string temp_files = 16;</code>
     *
     * @return A list containing the tempFiles.
     */
    public com.google.protobuf.ProtocolStringList getTempFilesList() {
      return tempFiles_.getUnmodifiableView();
    }
    /**
     *
     *
     * <pre>
     * 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}
     * </pre>
     *
     * <code>repeated string temp_files = 16;</code>
     *
     * @return The count of tempFiles.
     */
    public int getTempFilesCount() {
      return tempFiles_.size();
    }
    /**
     *
     *
     * <pre>
     * 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}
     * </pre>
     *
     * <code>repeated string temp_files = 16;</code>
     *
     * @param index The index of the element to return.
     * @return The tempFiles at the given index.
     */
    public java.lang.String getTempFiles(int index) {
      return tempFiles_.get(index);
    }
    /**
     *
     *
     * <pre>
     * 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}
     * </pre>
     *
     * <code>repeated string temp_files = 16;</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the tempFiles at the given index.
     */
    public com.google.protobuf.ByteString getTempFilesBytes(int index) {
      return tempFiles_.getByteString(index);
    }
    /**
     *
     *
     * <pre>
     * 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}
     * </pre>
     *
     * <code>repeated string temp_files = 16;</code>
     *
     * @param index The index to set the value at.
     * @param value The tempFiles to set.
     * @return This builder for chaining.
     */
    public Builder setTempFiles(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureTempFilesIsMutable();
      tempFiles_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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}
     * </pre>
     *
     * <code>repeated string temp_files = 16;</code>
     *
     * @param value The tempFiles to add.
     * @return This builder for chaining.
     */
    public Builder addTempFiles(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureTempFilesIsMutable();
      tempFiles_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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}
     * </pre>
     *
     * <code>repeated string temp_files = 16;</code>
     *
     * @param values The tempFiles to add.
     * @return This builder for chaining.
     */
    public Builder addAllTempFiles(java.lang.Iterable<java.lang.String> values) {
      ensureTempFilesIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tempFiles_);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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}
     * </pre>
     *
     * <code>repeated string temp_files = 16;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearTempFiles() {
      tempFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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}
     * </pre>
     *
     * <code>repeated string temp_files = 16;</code>
     *
     * @param value The bytes of the tempFiles to add.
     * @return This builder for chaining.
     */
    public Builder addTempFilesBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      ensureTempFilesIsMutable();
      tempFiles_.add(value);
      onChanged();
      return this;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
      if (labels_ == null) {
        return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
      }
      return labels_;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
        internalGetMutableLabels() {
      onChanged();
      ;
      if (labels_ == null) {
        labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
      }
      if (!labels_.isMutable()) {
        labels_ = labels_.copy();
      }
      return labels_;
    }

    public int getLabelsCount() {
      return internalGetLabels().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * 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:  [&#92;p{Ll}&#92;p{Lo}][&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,62}
     * * Values must conform to regexp:  [&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,63}
     * * Both keys and values are additionally constrained to be &lt;= 128 bytes in
     * size.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 17;</code>
     */
    @java.lang.Override
    public boolean containsLabels(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      return internalGetLabels().getMap().containsKey(key);
    }
    /** Use {@link #getLabelsMap()} instead. */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getLabels() {
      return getLabelsMap();
    }
    /**
     *
     *
     * <pre>
     * 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:  [&#92;p{Ll}&#92;p{Lo}][&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,62}
     * * Values must conform to regexp:  [&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,63}
     * * Both keys and values are additionally constrained to be &lt;= 128 bytes in
     * size.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 17;</code>
     */
    @java.lang.Override
    public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
      return internalGetLabels().getMap();
    }
    /**
     *
     *
     * <pre>
     * 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:  [&#92;p{Ll}&#92;p{Lo}][&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,62}
     * * Values must conform to regexp:  [&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,63}
     * * Both keys and values are additionally constrained to be &lt;= 128 bytes in
     * size.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 17;</code>
     */
    @java.lang.Override
    public java.lang.String getLabelsOrDefault(
        java.lang.String key, java.lang.String defaultValue) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     *
     *
     * <pre>
     * 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:  [&#92;p{Ll}&#92;p{Lo}][&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,62}
     * * Values must conform to regexp:  [&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,63}
     * * Both keys and values are additionally constrained to be &lt;= 128 bytes in
     * size.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 17;</code>
     */
    @java.lang.Override
    public java.lang.String getLabelsOrThrow(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearLabels() {
      internalGetMutableLabels().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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:  [&#92;p{Ll}&#92;p{Lo}][&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,62}
     * * Values must conform to regexp:  [&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,63}
     * * Both keys and values are additionally constrained to be &lt;= 128 bytes in
     * size.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 17;</code>
     */
    public Builder removeLabels(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      internalGetMutableLabels().getMutableMap().remove(key);
      return this;
    }
    /** Use alternate mutation accessors instead. */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() {
      return internalGetMutableLabels().getMutableMap();
    }
    /**
     *
     *
     * <pre>
     * 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:  [&#92;p{Ll}&#92;p{Lo}][&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,62}
     * * Values must conform to regexp:  [&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,63}
     * * Both keys and values are additionally constrained to be &lt;= 128 bytes in
     * size.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 17;</code>
     */
    public Builder putLabels(java.lang.String key, java.lang.String value) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      if (value == null) {
        throw new NullPointerException("map value");
      }

      internalGetMutableLabels().getMutableMap().put(key, value);
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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:  [&#92;p{Ll}&#92;p{Lo}][&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,62}
     * * Values must conform to regexp:  [&#92;p{Ll}&#92;p{Lo}&#92;p{N}_-]{0,63}
     * * Both keys and values are additionally constrained to be &lt;= 128 bytes in
     * size.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 17;</code>
     */
    public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableLabels().getMutableMap().putAll(values);
      return this;
    }

    private java.lang.Object location_ = "";
    /**
     *
     *
     * <pre>
     * The [regional endpoint]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * contains this job.
     * </pre>
     *
     * <code>string location = 18;</code>
     *
     * @return The location.
     */
    public java.lang.String getLocation() {
      java.lang.Object ref = location_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        location_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The [regional endpoint]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * contains this job.
     * </pre>
     *
     * <code>string location = 18;</code>
     *
     * @return The bytes for location.
     */
    public com.google.protobuf.ByteString getLocationBytes() {
      java.lang.Object ref = location_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        location_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The [regional endpoint]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * contains this job.
     * </pre>
     *
     * <code>string location = 18;</code>
     *
     * @param value The location to set.
     * @return This builder for chaining.
     */
    public Builder setLocation(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      location_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The [regional endpoint]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * contains this job.
     * </pre>
     *
     * <code>string location = 18;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearLocation() {

      location_ = getDefaultInstance().getLocation();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The [regional endpoint]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * contains this job.
     * </pre>
     *
     * <code>string location = 18;</code>
     *
     * @param value The bytes for location to set.
     * @return This builder for chaining.
     */
    public Builder setLocationBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      location_ = value;
      onChanged();
      return this;
    }

    private com.google.dataflow.v1beta3.PipelineDescription pipelineDescription_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.dataflow.v1beta3.PipelineDescription,
            com.google.dataflow.v1beta3.PipelineDescription.Builder,
            com.google.dataflow.v1beta3.PipelineDescriptionOrBuilder>
        pipelineDescriptionBuilder_;
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.PipelineDescription pipeline_description = 19;</code>
     *
     * @return Whether the pipelineDescription field is set.
     */
    public boolean hasPipelineDescription() {
      return pipelineDescriptionBuilder_ != null || pipelineDescription_ != null;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.PipelineDescription pipeline_description = 19;</code>
     *
     * @return The pipelineDescription.
     */
    public com.google.dataflow.v1beta3.PipelineDescription getPipelineDescription() {
      if (pipelineDescriptionBuilder_ == null) {
        return pipelineDescription_ == null
            ? com.google.dataflow.v1beta3.PipelineDescription.getDefaultInstance()
            : pipelineDescription_;
      } else {
        return pipelineDescriptionBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.PipelineDescription pipeline_description = 19;</code>
     */
    public Builder setPipelineDescription(com.google.dataflow.v1beta3.PipelineDescription value) {
      if (pipelineDescriptionBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        pipelineDescription_ = value;
        onChanged();
      } else {
        pipelineDescriptionBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.PipelineDescription pipeline_description = 19;</code>
     */
    public Builder setPipelineDescription(
        com.google.dataflow.v1beta3.PipelineDescription.Builder builderForValue) {
      if (pipelineDescriptionBuilder_ == null) {
        pipelineDescription_ = builderForValue.build();
        onChanged();
      } else {
        pipelineDescriptionBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.PipelineDescription pipeline_description = 19;</code>
     */
    public Builder mergePipelineDescription(com.google.dataflow.v1beta3.PipelineDescription value) {
      if (pipelineDescriptionBuilder_ == null) {
        if (pipelineDescription_ != null) {
          pipelineDescription_ =
              com.google.dataflow.v1beta3.PipelineDescription.newBuilder(pipelineDescription_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          pipelineDescription_ = value;
        }
        onChanged();
      } else {
        pipelineDescriptionBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.PipelineDescription pipeline_description = 19;</code>
     */
    public Builder clearPipelineDescription() {
      if (pipelineDescriptionBuilder_ == null) {
        pipelineDescription_ = null;
        onChanged();
      } else {
        pipelineDescription_ = null;
        pipelineDescriptionBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.PipelineDescription pipeline_description = 19;</code>
     */
    public com.google.dataflow.v1beta3.PipelineDescription.Builder getPipelineDescriptionBuilder() {

      onChanged();
      return getPipelineDescriptionFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.PipelineDescription pipeline_description = 19;</code>
     */
    public com.google.dataflow.v1beta3.PipelineDescriptionOrBuilder
        getPipelineDescriptionOrBuilder() {
      if (pipelineDescriptionBuilder_ != null) {
        return pipelineDescriptionBuilder_.getMessageOrBuilder();
      } else {
        return pipelineDescription_ == null
            ? com.google.dataflow.v1beta3.PipelineDescription.getDefaultInstance()
            : pipelineDescription_;
      }
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.PipelineDescription pipeline_description = 19;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.dataflow.v1beta3.PipelineDescription,
            com.google.dataflow.v1beta3.PipelineDescription.Builder,
            com.google.dataflow.v1beta3.PipelineDescriptionOrBuilder>
        getPipelineDescriptionFieldBuilder() {
      if (pipelineDescriptionBuilder_ == null) {
        pipelineDescriptionBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.dataflow.v1beta3.PipelineDescription,
                com.google.dataflow.v1beta3.PipelineDescription.Builder,
                com.google.dataflow.v1beta3.PipelineDescriptionOrBuilder>(
                getPipelineDescription(), getParentForChildren(), isClean());
        pipelineDescription_ = null;
      }
      return pipelineDescriptionBuilder_;
    }

    private java.util.List<com.google.dataflow.v1beta3.ExecutionStageState> stageStates_ =
        java.util.Collections.emptyList();

    private void ensureStageStatesIsMutable() {
      if (!((bitField0_ & 0x00000010) != 0)) {
        stageStates_ =
            new java.util.ArrayList<com.google.dataflow.v1beta3.ExecutionStageState>(stageStates_);
        bitField0_ |= 0x00000010;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.dataflow.v1beta3.ExecutionStageState,
            com.google.dataflow.v1beta3.ExecutionStageState.Builder,
            com.google.dataflow.v1beta3.ExecutionStageStateOrBuilder>
        stageStatesBuilder_;

    /**
     *
     *
     * <pre>
     * This field may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
     */
    public java.util.List<com.google.dataflow.v1beta3.ExecutionStageState> getStageStatesList() {
      if (stageStatesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(stageStates_);
      } else {
        return stageStatesBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * This field may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
     */
    public int getStageStatesCount() {
      if (stageStatesBuilder_ == null) {
        return stageStates_.size();
      } else {
        return stageStatesBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * This field may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
     */
    public com.google.dataflow.v1beta3.ExecutionStageState getStageStates(int index) {
      if (stageStatesBuilder_ == null) {
        return stageStates_.get(index);
      } else {
        return stageStatesBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * This field may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
     */
    public Builder setStageStates(
        int index, com.google.dataflow.v1beta3.ExecutionStageState value) {
      if (stageStatesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureStageStatesIsMutable();
        stageStates_.set(index, value);
        onChanged();
      } else {
        stageStatesBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This field may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
     */
    public Builder setStageStates(
        int index, com.google.dataflow.v1beta3.ExecutionStageState.Builder builderForValue) {
      if (stageStatesBuilder_ == null) {
        ensureStageStatesIsMutable();
        stageStates_.set(index, builderForValue.build());
        onChanged();
      } else {
        stageStatesBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This field may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
     */
    public Builder addStageStates(com.google.dataflow.v1beta3.ExecutionStageState value) {
      if (stageStatesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureStageStatesIsMutable();
        stageStates_.add(value);
        onChanged();
      } else {
        stageStatesBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This field may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
     */
    public Builder addStageStates(
        int index, com.google.dataflow.v1beta3.ExecutionStageState value) {
      if (stageStatesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureStageStatesIsMutable();
        stageStates_.add(index, value);
        onChanged();
      } else {
        stageStatesBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This field may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
     */
    public Builder addStageStates(
        com.google.dataflow.v1beta3.ExecutionStageState.Builder builderForValue) {
      if (stageStatesBuilder_ == null) {
        ensureStageStatesIsMutable();
        stageStates_.add(builderForValue.build());
        onChanged();
      } else {
        stageStatesBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This field may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
     */
    public Builder addStageStates(
        int index, com.google.dataflow.v1beta3.ExecutionStageState.Builder builderForValue) {
      if (stageStatesBuilder_ == null) {
        ensureStageStatesIsMutable();
        stageStates_.add(index, builderForValue.build());
        onChanged();
      } else {
        stageStatesBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This field may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
     */
    public Builder addAllStageStates(
        java.lang.Iterable<? extends com.google.dataflow.v1beta3.ExecutionStageState> values) {
      if (stageStatesBuilder_ == null) {
        ensureStageStatesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stageStates_);
        onChanged();
      } else {
        stageStatesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This field may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
     */
    public Builder clearStageStates() {
      if (stageStatesBuilder_ == null) {
        stageStates_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000010);
        onChanged();
      } else {
        stageStatesBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This field may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
     */
    public Builder removeStageStates(int index) {
      if (stageStatesBuilder_ == null) {
        ensureStageStatesIsMutable();
        stageStates_.remove(index);
        onChanged();
      } else {
        stageStatesBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This field may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
     */
    public com.google.dataflow.v1beta3.ExecutionStageState.Builder getStageStatesBuilder(
        int index) {
      return getStageStatesFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * This field may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
     */
    public com.google.dataflow.v1beta3.ExecutionStageStateOrBuilder getStageStatesOrBuilder(
        int index) {
      if (stageStatesBuilder_ == null) {
        return stageStates_.get(index);
      } else {
        return stageStatesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * This field may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
     */
    public java.util.List<? extends com.google.dataflow.v1beta3.ExecutionStageStateOrBuilder>
        getStageStatesOrBuilderList() {
      if (stageStatesBuilder_ != null) {
        return stageStatesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(stageStates_);
      }
    }
    /**
     *
     *
     * <pre>
     * This field may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
     */
    public com.google.dataflow.v1beta3.ExecutionStageState.Builder addStageStatesBuilder() {
      return getStageStatesFieldBuilder()
          .addBuilder(com.google.dataflow.v1beta3.ExecutionStageState.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * This field may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
     */
    public com.google.dataflow.v1beta3.ExecutionStageState.Builder addStageStatesBuilder(
        int index) {
      return getStageStatesFieldBuilder()
          .addBuilder(index, com.google.dataflow.v1beta3.ExecutionStageState.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * This field may be mutated by the Cloud Dataflow service;
     * callers cannot mutate it.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20;</code>
     */
    public java.util.List<com.google.dataflow.v1beta3.ExecutionStageState.Builder>
        getStageStatesBuilderList() {
      return getStageStatesFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.dataflow.v1beta3.ExecutionStageState,
            com.google.dataflow.v1beta3.ExecutionStageState.Builder,
            com.google.dataflow.v1beta3.ExecutionStageStateOrBuilder>
        getStageStatesFieldBuilder() {
      if (stageStatesBuilder_ == null) {
        stageStatesBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.dataflow.v1beta3.ExecutionStageState,
                com.google.dataflow.v1beta3.ExecutionStageState.Builder,
                com.google.dataflow.v1beta3.ExecutionStageStateOrBuilder>(
                stageStates_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean());
        stageStates_ = null;
      }
      return stageStatesBuilder_;
    }

    private com.google.dataflow.v1beta3.JobMetadata jobMetadata_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.dataflow.v1beta3.JobMetadata,
            com.google.dataflow.v1beta3.JobMetadata.Builder,
            com.google.dataflow.v1beta3.JobMetadataOrBuilder>
        jobMetadataBuilder_;
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobMetadata job_metadata = 21;</code>
     *
     * @return Whether the jobMetadata field is set.
     */
    public boolean hasJobMetadata() {
      return jobMetadataBuilder_ != null || jobMetadata_ != null;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobMetadata job_metadata = 21;</code>
     *
     * @return The jobMetadata.
     */
    public com.google.dataflow.v1beta3.JobMetadata getJobMetadata() {
      if (jobMetadataBuilder_ == null) {
        return jobMetadata_ == null
            ? com.google.dataflow.v1beta3.JobMetadata.getDefaultInstance()
            : jobMetadata_;
      } else {
        return jobMetadataBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobMetadata job_metadata = 21;</code>
     */
    public Builder setJobMetadata(com.google.dataflow.v1beta3.JobMetadata value) {
      if (jobMetadataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        jobMetadata_ = value;
        onChanged();
      } else {
        jobMetadataBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobMetadata job_metadata = 21;</code>
     */
    public Builder setJobMetadata(com.google.dataflow.v1beta3.JobMetadata.Builder builderForValue) {
      if (jobMetadataBuilder_ == null) {
        jobMetadata_ = builderForValue.build();
        onChanged();
      } else {
        jobMetadataBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobMetadata job_metadata = 21;</code>
     */
    public Builder mergeJobMetadata(com.google.dataflow.v1beta3.JobMetadata value) {
      if (jobMetadataBuilder_ == null) {
        if (jobMetadata_ != null) {
          jobMetadata_ =
              com.google.dataflow.v1beta3.JobMetadata.newBuilder(jobMetadata_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          jobMetadata_ = value;
        }
        onChanged();
      } else {
        jobMetadataBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobMetadata job_metadata = 21;</code>
     */
    public Builder clearJobMetadata() {
      if (jobMetadataBuilder_ == null) {
        jobMetadata_ = null;
        onChanged();
      } else {
        jobMetadata_ = null;
        jobMetadataBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobMetadata job_metadata = 21;</code>
     */
    public com.google.dataflow.v1beta3.JobMetadata.Builder getJobMetadataBuilder() {

      onChanged();
      return getJobMetadataFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobMetadata job_metadata = 21;</code>
     */
    public com.google.dataflow.v1beta3.JobMetadataOrBuilder getJobMetadataOrBuilder() {
      if (jobMetadataBuilder_ != null) {
        return jobMetadataBuilder_.getMessageOrBuilder();
      } else {
        return jobMetadata_ == null
            ? com.google.dataflow.v1beta3.JobMetadata.getDefaultInstance()
            : jobMetadata_;
      }
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.dataflow.v1beta3.JobMetadata job_metadata = 21;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.dataflow.v1beta3.JobMetadata,
            com.google.dataflow.v1beta3.JobMetadata.Builder,
            com.google.dataflow.v1beta3.JobMetadataOrBuilder>
        getJobMetadataFieldBuilder() {
      if (jobMetadataBuilder_ == null) {
        jobMetadataBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.dataflow.v1beta3.JobMetadata,
                com.google.dataflow.v1beta3.JobMetadata.Builder,
                com.google.dataflow.v1beta3.JobMetadataOrBuilder>(
                getJobMetadata(), getParentForChildren(), isClean());
        jobMetadata_ = null;
      }
      return jobMetadataBuilder_;
    }

    private com.google.protobuf.Timestamp startTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        startTimeBuilder_;
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 22;</code>
     *
     * @return Whether the startTime field is set.
     */
    public boolean hasStartTime() {
      return startTimeBuilder_ != null || startTime_ != null;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 22;</code>
     *
     * @return The startTime.
     */
    public com.google.protobuf.Timestamp getStartTime() {
      if (startTimeBuilder_ == null) {
        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
      } else {
        return startTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 22;</code>
     */
    public Builder setStartTime(com.google.protobuf.Timestamp value) {
      if (startTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        startTime_ = value;
        onChanged();
      } else {
        startTimeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 22;</code>
     */
    public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (startTimeBuilder_ == null) {
        startTime_ = builderForValue.build();
        onChanged();
      } else {
        startTimeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 22;</code>
     */
    public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
      if (startTimeBuilder_ == null) {
        if (startTime_ != null) {
          startTime_ =
              com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
        } else {
          startTime_ = value;
        }
        onChanged();
      } else {
        startTimeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 22;</code>
     */
    public Builder clearStartTime() {
      if (startTimeBuilder_ == null) {
        startTime_ = null;
        onChanged();
      } else {
        startTime_ = null;
        startTimeBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 22;</code>
     */
    public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {

      onChanged();
      return getStartTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 22;</code>
     */
    public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      if (startTimeBuilder_ != null) {
        return startTimeBuilder_.getMessageOrBuilder();
      } else {
        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 22;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getStartTimeFieldBuilder() {
      if (startTimeBuilder_ == null) {
        startTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getStartTime(), getParentForChildren(), isClean());
        startTime_ = null;
      }
      return startTimeBuilder_;
    }

    private java.lang.Object createdFromSnapshotId_ = "";
    /**
     *
     *
     * <pre>
     * If this is specified, the job's initial state is populated from the given
     * snapshot.
     * </pre>
     *
     * <code>string created_from_snapshot_id = 23;</code>
     *
     * @return The createdFromSnapshotId.
     */
    public java.lang.String getCreatedFromSnapshotId() {
      java.lang.Object ref = createdFromSnapshotId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        createdFromSnapshotId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * If this is specified, the job's initial state is populated from the given
     * snapshot.
     * </pre>
     *
     * <code>string created_from_snapshot_id = 23;</code>
     *
     * @return The bytes for createdFromSnapshotId.
     */
    public com.google.protobuf.ByteString getCreatedFromSnapshotIdBytes() {
      java.lang.Object ref = createdFromSnapshotId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        createdFromSnapshotId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * If this is specified, the job's initial state is populated from the given
     * snapshot.
     * </pre>
     *
     * <code>string created_from_snapshot_id = 23;</code>
     *
     * @param value The createdFromSnapshotId to set.
     * @return This builder for chaining.
     */
    public Builder setCreatedFromSnapshotId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      createdFromSnapshotId_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * If this is specified, the job's initial state is populated from the given
     * snapshot.
     * </pre>
     *
     * <code>string created_from_snapshot_id = 23;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearCreatedFromSnapshotId() {

      createdFromSnapshotId_ = getDefaultInstance().getCreatedFromSnapshotId();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * If this is specified, the job's initial state is populated from the given
     * snapshot.
     * </pre>
     *
     * <code>string created_from_snapshot_id = 23;</code>
     *
     * @param value The bytes for createdFromSnapshotId to set.
     * @return This builder for chaining.
     */
    public Builder setCreatedFromSnapshotIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      createdFromSnapshotId_ = value;
      onChanged();
      return this;
    }

    private boolean satisfiesPzs_;
    /**
     *
     *
     * <pre>
     * Reserved for future use. This field is set only in responses from the
     * server; it is ignored if it is set in any requests.
     * </pre>
     *
     * <code>bool satisfies_pzs = 25;</code>
     *
     * @return The satisfiesPzs.
     */
    @java.lang.Override
    public boolean getSatisfiesPzs() {
      return satisfiesPzs_;
    }
    /**
     *
     *
     * <pre>
     * Reserved for future use. This field is set only in responses from the
     * server; it is ignored if it is set in any requests.
     * </pre>
     *
     * <code>bool satisfies_pzs = 25;</code>
     *
     * @param value The satisfiesPzs to set.
     * @return This builder for chaining.
     */
    public Builder setSatisfiesPzs(boolean value) {

      satisfiesPzs_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Reserved for future use. This field is set only in responses from the
     * server; it is ignored if it is set in any requests.
     * </pre>
     *
     * <code>bool satisfies_pzs = 25;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearSatisfiesPzs() {

      satisfiesPzs_ = false;
      onChanged();
      return this;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:google.dataflow.v1beta3.Job)
  }

  // @@protoc_insertion_point(class_scope:google.dataflow.v1beta3.Job)
  private static final com.google.dataflow.v1beta3.Job DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.dataflow.v1beta3.Job();
  }

  public static com.google.dataflow.v1beta3.Job getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<Job> PARSER =
      new com.google.protobuf.AbstractParser<Job>() {
        @java.lang.Override
        public Job parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

  public static com.google.protobuf.Parser<Job> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<Job> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.dataflow.v1beta3.Job getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
