/*
 * 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>
 * Response to a request to list Cloud Dataflow jobs in a project. This might
 * be a partial response, depending on the page size in the ListJobsRequest.
 * However, if the project does not have any jobs, an instance of
 * ListJobsResponse is not returned and the requests's response
 * body is empty {}.
 * </pre>
 *
 * Protobuf type {@code google.dataflow.v1beta3.ListJobsResponse}
 */
public final class ListJobsResponse extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.dataflow.v1beta3.ListJobsResponse)
    ListJobsResponseOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use ListJobsResponse.newBuilder() to construct.
  private ListJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private ListJobsResponse() {
    jobs_ = java.util.Collections.emptyList();
    nextPageToken_ = "";
    failedLocation_ = java.util.Collections.emptyList();
  }

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

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

  private ListJobsResponse(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10:
            {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                jobs_ = new java.util.ArrayList<com.google.dataflow.v1beta3.Job>();
                mutable_bitField0_ |= 0x00000001;
              }
              jobs_.add(
                  input.readMessage(com.google.dataflow.v1beta3.Job.parser(), extensionRegistry));
              break;
            }
          case 18:
            {
              java.lang.String s = input.readStringRequireUtf8();

              nextPageToken_ = s;
              break;
            }
          case 26:
            {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                failedLocation_ =
                    new java.util.ArrayList<com.google.dataflow.v1beta3.FailedLocation>();
                mutable_bitField0_ |= 0x00000002;
              }
              failedLocation_.add(
                  input.readMessage(
                      com.google.dataflow.v1beta3.FailedLocation.parser(), extensionRegistry));
              break;
            }
          default:
            {
              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (com.google.protobuf.UninitializedMessageException e) {
      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        jobs_ = java.util.Collections.unmodifiableList(jobs_);
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        failedLocation_ = java.util.Collections.unmodifiableList(failedLocation_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }

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

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

  public static final int JOBS_FIELD_NUMBER = 1;
  private java.util.List<com.google.dataflow.v1beta3.Job> jobs_;
  /**
   *
   *
   * <pre>
   * A subset of the requested job information.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.dataflow.v1beta3.Job> getJobsList() {
    return jobs_;
  }
  /**
   *
   *
   * <pre>
   * A subset of the requested job information.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.dataflow.v1beta3.JobOrBuilder> getJobsOrBuilderList() {
    return jobs_;
  }
  /**
   *
   *
   * <pre>
   * A subset of the requested job information.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
   */
  @java.lang.Override
  public int getJobsCount() {
    return jobs_.size();
  }
  /**
   *
   *
   * <pre>
   * A subset of the requested job information.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.Job getJobs(int index) {
    return jobs_.get(index);
  }
  /**
   *
   *
   * <pre>
   * A subset of the requested job information.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.JobOrBuilder getJobsOrBuilder(int index) {
    return jobs_.get(index);
  }

  public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
  private volatile java.lang.Object nextPageToken_;
  /**
   *
   *
   * <pre>
   * Set if there may be more results than fit in this response.
   * </pre>
   *
   * <code>string next_page_token = 2;</code>
   *
   * @return The nextPageToken.
   */
  @java.lang.Override
  public java.lang.String getNextPageToken() {
    java.lang.Object ref = nextPageToken_;
    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();
      nextPageToken_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Set if there may be more results than fit in this response.
   * </pre>
   *
   * <code>string next_page_token = 2;</code>
   *
   * @return The bytes for nextPageToken.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getNextPageTokenBytes() {
    java.lang.Object ref = nextPageToken_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      nextPageToken_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FAILED_LOCATION_FIELD_NUMBER = 3;
  private java.util.List<com.google.dataflow.v1beta3.FailedLocation> failedLocation_;
  /**
   *
   *
   * <pre>
   * Zero or more messages describing the [regional endpoints]
   * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
   * failed to respond.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.dataflow.v1beta3.FailedLocation> getFailedLocationList() {
    return failedLocation_;
  }
  /**
   *
   *
   * <pre>
   * Zero or more messages describing the [regional endpoints]
   * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
   * failed to respond.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.dataflow.v1beta3.FailedLocationOrBuilder>
      getFailedLocationOrBuilderList() {
    return failedLocation_;
  }
  /**
   *
   *
   * <pre>
   * Zero or more messages describing the [regional endpoints]
   * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
   * failed to respond.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
   */
  @java.lang.Override
  public int getFailedLocationCount() {
    return failedLocation_.size();
  }
  /**
   *
   *
   * <pre>
   * Zero or more messages describing the [regional endpoints]
   * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
   * failed to respond.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.FailedLocation getFailedLocation(int index) {
    return failedLocation_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Zero or more messages describing the [regional endpoints]
   * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
   * failed to respond.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.FailedLocationOrBuilder getFailedLocationOrBuilder(int index) {
    return failedLocation_.get(index);
  }

  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 {
    for (int i = 0; i < jobs_.size(); i++) {
      output.writeMessage(1, jobs_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
    }
    for (int i = 0; i < failedLocation_.size(); i++) {
      output.writeMessage(3, failedLocation_.get(i));
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    for (int i = 0; i < jobs_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, jobs_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
    }
    for (int i = 0; i < failedLocation_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, failedLocation_.get(i));
    }
    size += unknownFields.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.ListJobsResponse)) {
      return super.equals(obj);
    }
    com.google.dataflow.v1beta3.ListJobsResponse other =
        (com.google.dataflow.v1beta3.ListJobsResponse) obj;

    if (!getJobsList().equals(other.getJobsList())) return false;
    if (!getNextPageToken().equals(other.getNextPageToken())) return false;
    if (!getFailedLocationList().equals(other.getFailedLocationList())) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (getJobsCount() > 0) {
      hash = (37 * hash) + JOBS_FIELD_NUMBER;
      hash = (53 * hash) + getJobsList().hashCode();
    }
    hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
    hash = (53 * hash) + getNextPageToken().hashCode();
    if (getFailedLocationCount() > 0) {
      hash = (37 * hash) + FAILED_LOCATION_FIELD_NUMBER;
      hash = (53 * hash) + getFailedLocationList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public static com.google.dataflow.v1beta3.ListJobsResponse 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.ListJobsResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.dataflow.v1beta3.ListJobsResponse 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.ListJobsResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

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

  public static com.google.dataflow.v1beta3.ListJobsResponse 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.ListJobsResponse parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.dataflow.v1beta3.ListJobsResponse 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.ListJobsResponse parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.dataflow.v1beta3.ListJobsResponse 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.ListJobsResponse 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>
   * Response to a request to list Cloud Dataflow jobs in a project. This might
   * be a partial response, depending on the page size in the ListJobsRequest.
   * However, if the project does not have any jobs, an instance of
   * ListJobsResponse is not returned and the requests's response
   * body is empty {}.
   * </pre>
   *
   * Protobuf type {@code google.dataflow.v1beta3.ListJobsResponse}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.dataflow.v1beta3.ListJobsResponse)
      com.google.dataflow.v1beta3.ListJobsResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.dataflow.v1beta3.JobsProto
          .internal_static_google_dataflow_v1beta3_ListJobsResponse_descriptor;
    }

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

    // Construct using com.google.dataflow.v1beta3.ListJobsResponse.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

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

    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
        getJobsFieldBuilder();
        getFailedLocationFieldBuilder();
      }
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (jobsBuilder_ == null) {
        jobs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        jobsBuilder_.clear();
      }
      nextPageToken_ = "";

      if (failedLocationBuilder_ == null) {
        failedLocation_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
      } else {
        failedLocationBuilder_.clear();
      }
      return this;
    }

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

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

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

    @java.lang.Override
    public com.google.dataflow.v1beta3.ListJobsResponse buildPartial() {
      com.google.dataflow.v1beta3.ListJobsResponse result =
          new com.google.dataflow.v1beta3.ListJobsResponse(this);
      int from_bitField0_ = bitField0_;
      if (jobsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          jobs_ = java.util.Collections.unmodifiableList(jobs_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.jobs_ = jobs_;
      } else {
        result.jobs_ = jobsBuilder_.build();
      }
      result.nextPageToken_ = nextPageToken_;
      if (failedLocationBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          failedLocation_ = java.util.Collections.unmodifiableList(failedLocation_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.failedLocation_ = failedLocation_;
      } else {
        result.failedLocation_ = failedLocationBuilder_.build();
      }
      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.ListJobsResponse) {
        return mergeFrom((com.google.dataflow.v1beta3.ListJobsResponse) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.dataflow.v1beta3.ListJobsResponse other) {
      if (other == com.google.dataflow.v1beta3.ListJobsResponse.getDefaultInstance()) return this;
      if (jobsBuilder_ == null) {
        if (!other.jobs_.isEmpty()) {
          if (jobs_.isEmpty()) {
            jobs_ = other.jobs_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureJobsIsMutable();
            jobs_.addAll(other.jobs_);
          }
          onChanged();
        }
      } else {
        if (!other.jobs_.isEmpty()) {
          if (jobsBuilder_.isEmpty()) {
            jobsBuilder_.dispose();
            jobsBuilder_ = null;
            jobs_ = other.jobs_;
            bitField0_ = (bitField0_ & ~0x00000001);
            jobsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getJobsFieldBuilder()
                    : null;
          } else {
            jobsBuilder_.addAllMessages(other.jobs_);
          }
        }
      }
      if (!other.getNextPageToken().isEmpty()) {
        nextPageToken_ = other.nextPageToken_;
        onChanged();
      }
      if (failedLocationBuilder_ == null) {
        if (!other.failedLocation_.isEmpty()) {
          if (failedLocation_.isEmpty()) {
            failedLocation_ = other.failedLocation_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureFailedLocationIsMutable();
            failedLocation_.addAll(other.failedLocation_);
          }
          onChanged();
        }
      } else {
        if (!other.failedLocation_.isEmpty()) {
          if (failedLocationBuilder_.isEmpty()) {
            failedLocationBuilder_.dispose();
            failedLocationBuilder_ = null;
            failedLocation_ = other.failedLocation_;
            bitField0_ = (bitField0_ & ~0x00000002);
            failedLocationBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getFailedLocationFieldBuilder()
                    : null;
          } else {
            failedLocationBuilder_.addAllMessages(other.failedLocation_);
          }
        }
      }
      this.mergeUnknownFields(other.unknownFields);
      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 {
      com.google.dataflow.v1beta3.ListJobsResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.dataflow.v1beta3.ListJobsResponse) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int bitField0_;

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

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

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.dataflow.v1beta3.Job,
            com.google.dataflow.v1beta3.Job.Builder,
            com.google.dataflow.v1beta3.JobOrBuilder>
        jobsBuilder_;

    /**
     *
     *
     * <pre>
     * A subset of the requested job information.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
     */
    public java.util.List<com.google.dataflow.v1beta3.Job> getJobsList() {
      if (jobsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(jobs_);
      } else {
        return jobsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * A subset of the requested job information.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
     */
    public int getJobsCount() {
      if (jobsBuilder_ == null) {
        return jobs_.size();
      } else {
        return jobsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * A subset of the requested job information.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
     */
    public com.google.dataflow.v1beta3.Job getJobs(int index) {
      if (jobsBuilder_ == null) {
        return jobs_.get(index);
      } else {
        return jobsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * A subset of the requested job information.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
     */
    public Builder setJobs(int index, com.google.dataflow.v1beta3.Job value) {
      if (jobsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureJobsIsMutable();
        jobs_.set(index, value);
        onChanged();
      } else {
        jobsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * A subset of the requested job information.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
     */
    public Builder setJobs(int index, com.google.dataflow.v1beta3.Job.Builder builderForValue) {
      if (jobsBuilder_ == null) {
        ensureJobsIsMutable();
        jobs_.set(index, builderForValue.build());
        onChanged();
      } else {
        jobsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * A subset of the requested job information.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
     */
    public Builder addJobs(com.google.dataflow.v1beta3.Job value) {
      if (jobsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureJobsIsMutable();
        jobs_.add(value);
        onChanged();
      } else {
        jobsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * A subset of the requested job information.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
     */
    public Builder addJobs(int index, com.google.dataflow.v1beta3.Job value) {
      if (jobsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureJobsIsMutable();
        jobs_.add(index, value);
        onChanged();
      } else {
        jobsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * A subset of the requested job information.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
     */
    public Builder addJobs(com.google.dataflow.v1beta3.Job.Builder builderForValue) {
      if (jobsBuilder_ == null) {
        ensureJobsIsMutable();
        jobs_.add(builderForValue.build());
        onChanged();
      } else {
        jobsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * A subset of the requested job information.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
     */
    public Builder addJobs(int index, com.google.dataflow.v1beta3.Job.Builder builderForValue) {
      if (jobsBuilder_ == null) {
        ensureJobsIsMutable();
        jobs_.add(index, builderForValue.build());
        onChanged();
      } else {
        jobsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * A subset of the requested job information.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
     */
    public Builder addAllJobs(
        java.lang.Iterable<? extends com.google.dataflow.v1beta3.Job> values) {
      if (jobsBuilder_ == null) {
        ensureJobsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobs_);
        onChanged();
      } else {
        jobsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * A subset of the requested job information.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
     */
    public Builder clearJobs() {
      if (jobsBuilder_ == null) {
        jobs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        jobsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * A subset of the requested job information.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
     */
    public Builder removeJobs(int index) {
      if (jobsBuilder_ == null) {
        ensureJobsIsMutable();
        jobs_.remove(index);
        onChanged();
      } else {
        jobsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * A subset of the requested job information.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
     */
    public com.google.dataflow.v1beta3.Job.Builder getJobsBuilder(int index) {
      return getJobsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * A subset of the requested job information.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
     */
    public com.google.dataflow.v1beta3.JobOrBuilder getJobsOrBuilder(int index) {
      if (jobsBuilder_ == null) {
        return jobs_.get(index);
      } else {
        return jobsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * A subset of the requested job information.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
     */
    public java.util.List<? extends com.google.dataflow.v1beta3.JobOrBuilder>
        getJobsOrBuilderList() {
      if (jobsBuilder_ != null) {
        return jobsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(jobs_);
      }
    }
    /**
     *
     *
     * <pre>
     * A subset of the requested job information.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
     */
    public com.google.dataflow.v1beta3.Job.Builder addJobsBuilder() {
      return getJobsFieldBuilder().addBuilder(com.google.dataflow.v1beta3.Job.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * A subset of the requested job information.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
     */
    public com.google.dataflow.v1beta3.Job.Builder addJobsBuilder(int index) {
      return getJobsFieldBuilder()
          .addBuilder(index, com.google.dataflow.v1beta3.Job.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * A subset of the requested job information.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
     */
    public java.util.List<com.google.dataflow.v1beta3.Job.Builder> getJobsBuilderList() {
      return getJobsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.dataflow.v1beta3.Job,
            com.google.dataflow.v1beta3.Job.Builder,
            com.google.dataflow.v1beta3.JobOrBuilder>
        getJobsFieldBuilder() {
      if (jobsBuilder_ == null) {
        jobsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.dataflow.v1beta3.Job,
                com.google.dataflow.v1beta3.Job.Builder,
                com.google.dataflow.v1beta3.JobOrBuilder>(
                jobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
        jobs_ = null;
      }
      return jobsBuilder_;
    }

    private java.lang.Object nextPageToken_ = "";
    /**
     *
     *
     * <pre>
     * Set if there may be more results than fit in this response.
     * </pre>
     *
     * <code>string next_page_token = 2;</code>
     *
     * @return The nextPageToken.
     */
    public java.lang.String getNextPageToken() {
      java.lang.Object ref = nextPageToken_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        nextPageToken_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Set if there may be more results than fit in this response.
     * </pre>
     *
     * <code>string next_page_token = 2;</code>
     *
     * @return The bytes for nextPageToken.
     */
    public com.google.protobuf.ByteString getNextPageTokenBytes() {
      java.lang.Object ref = nextPageToken_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        nextPageToken_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Set if there may be more results than fit in this response.
     * </pre>
     *
     * <code>string next_page_token = 2;</code>
     *
     * @param value The nextPageToken to set.
     * @return This builder for chaining.
     */
    public Builder setNextPageToken(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      nextPageToken_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Set if there may be more results than fit in this response.
     * </pre>
     *
     * <code>string next_page_token = 2;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearNextPageToken() {

      nextPageToken_ = getDefaultInstance().getNextPageToken();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Set if there may be more results than fit in this response.
     * </pre>
     *
     * <code>string next_page_token = 2;</code>
     *
     * @param value The bytes for nextPageToken to set.
     * @return This builder for chaining.
     */
    public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

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

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

    private void ensureFailedLocationIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        failedLocation_ =
            new java.util.ArrayList<com.google.dataflow.v1beta3.FailedLocation>(failedLocation_);
        bitField0_ |= 0x00000002;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.dataflow.v1beta3.FailedLocation,
            com.google.dataflow.v1beta3.FailedLocation.Builder,
            com.google.dataflow.v1beta3.FailedLocationOrBuilder>
        failedLocationBuilder_;

    /**
     *
     *
     * <pre>
     * Zero or more messages describing the [regional endpoints]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * failed to respond.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
     */
    public java.util.List<com.google.dataflow.v1beta3.FailedLocation> getFailedLocationList() {
      if (failedLocationBuilder_ == null) {
        return java.util.Collections.unmodifiableList(failedLocation_);
      } else {
        return failedLocationBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Zero or more messages describing the [regional endpoints]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * failed to respond.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
     */
    public int getFailedLocationCount() {
      if (failedLocationBuilder_ == null) {
        return failedLocation_.size();
      } else {
        return failedLocationBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Zero or more messages describing the [regional endpoints]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * failed to respond.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
     */
    public com.google.dataflow.v1beta3.FailedLocation getFailedLocation(int index) {
      if (failedLocationBuilder_ == null) {
        return failedLocation_.get(index);
      } else {
        return failedLocationBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Zero or more messages describing the [regional endpoints]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * failed to respond.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
     */
    public Builder setFailedLocation(int index, com.google.dataflow.v1beta3.FailedLocation value) {
      if (failedLocationBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureFailedLocationIsMutable();
        failedLocation_.set(index, value);
        onChanged();
      } else {
        failedLocationBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Zero or more messages describing the [regional endpoints]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * failed to respond.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
     */
    public Builder setFailedLocation(
        int index, com.google.dataflow.v1beta3.FailedLocation.Builder builderForValue) {
      if (failedLocationBuilder_ == null) {
        ensureFailedLocationIsMutable();
        failedLocation_.set(index, builderForValue.build());
        onChanged();
      } else {
        failedLocationBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Zero or more messages describing the [regional endpoints]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * failed to respond.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
     */
    public Builder addFailedLocation(com.google.dataflow.v1beta3.FailedLocation value) {
      if (failedLocationBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureFailedLocationIsMutable();
        failedLocation_.add(value);
        onChanged();
      } else {
        failedLocationBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Zero or more messages describing the [regional endpoints]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * failed to respond.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
     */
    public Builder addFailedLocation(int index, com.google.dataflow.v1beta3.FailedLocation value) {
      if (failedLocationBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureFailedLocationIsMutable();
        failedLocation_.add(index, value);
        onChanged();
      } else {
        failedLocationBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Zero or more messages describing the [regional endpoints]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * failed to respond.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
     */
    public Builder addFailedLocation(
        com.google.dataflow.v1beta3.FailedLocation.Builder builderForValue) {
      if (failedLocationBuilder_ == null) {
        ensureFailedLocationIsMutable();
        failedLocation_.add(builderForValue.build());
        onChanged();
      } else {
        failedLocationBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Zero or more messages describing the [regional endpoints]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * failed to respond.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
     */
    public Builder addFailedLocation(
        int index, com.google.dataflow.v1beta3.FailedLocation.Builder builderForValue) {
      if (failedLocationBuilder_ == null) {
        ensureFailedLocationIsMutable();
        failedLocation_.add(index, builderForValue.build());
        onChanged();
      } else {
        failedLocationBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Zero or more messages describing the [regional endpoints]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * failed to respond.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
     */
    public Builder addAllFailedLocation(
        java.lang.Iterable<? extends com.google.dataflow.v1beta3.FailedLocation> values) {
      if (failedLocationBuilder_ == null) {
        ensureFailedLocationIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, failedLocation_);
        onChanged();
      } else {
        failedLocationBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Zero or more messages describing the [regional endpoints]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * failed to respond.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
     */
    public Builder clearFailedLocation() {
      if (failedLocationBuilder_ == null) {
        failedLocation_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        failedLocationBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Zero or more messages describing the [regional endpoints]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * failed to respond.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
     */
    public Builder removeFailedLocation(int index) {
      if (failedLocationBuilder_ == null) {
        ensureFailedLocationIsMutable();
        failedLocation_.remove(index);
        onChanged();
      } else {
        failedLocationBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Zero or more messages describing the [regional endpoints]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * failed to respond.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
     */
    public com.google.dataflow.v1beta3.FailedLocation.Builder getFailedLocationBuilder(int index) {
      return getFailedLocationFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Zero or more messages describing the [regional endpoints]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * failed to respond.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
     */
    public com.google.dataflow.v1beta3.FailedLocationOrBuilder getFailedLocationOrBuilder(
        int index) {
      if (failedLocationBuilder_ == null) {
        return failedLocation_.get(index);
      } else {
        return failedLocationBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Zero or more messages describing the [regional endpoints]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * failed to respond.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
     */
    public java.util.List<? extends com.google.dataflow.v1beta3.FailedLocationOrBuilder>
        getFailedLocationOrBuilderList() {
      if (failedLocationBuilder_ != null) {
        return failedLocationBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(failedLocation_);
      }
    }
    /**
     *
     *
     * <pre>
     * Zero or more messages describing the [regional endpoints]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * failed to respond.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
     */
    public com.google.dataflow.v1beta3.FailedLocation.Builder addFailedLocationBuilder() {
      return getFailedLocationFieldBuilder()
          .addBuilder(com.google.dataflow.v1beta3.FailedLocation.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Zero or more messages describing the [regional endpoints]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * failed to respond.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
     */
    public com.google.dataflow.v1beta3.FailedLocation.Builder addFailedLocationBuilder(int index) {
      return getFailedLocationFieldBuilder()
          .addBuilder(index, com.google.dataflow.v1beta3.FailedLocation.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Zero or more messages describing the [regional endpoints]
     * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
     * failed to respond.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
     */
    public java.util.List<com.google.dataflow.v1beta3.FailedLocation.Builder>
        getFailedLocationBuilderList() {
      return getFailedLocationFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.dataflow.v1beta3.FailedLocation,
            com.google.dataflow.v1beta3.FailedLocation.Builder,
            com.google.dataflow.v1beta3.FailedLocationOrBuilder>
        getFailedLocationFieldBuilder() {
      if (failedLocationBuilder_ == null) {
        failedLocationBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.dataflow.v1beta3.FailedLocation,
                com.google.dataflow.v1beta3.FailedLocation.Builder,
                com.google.dataflow.v1beta3.FailedLocationOrBuilder>(
                failedLocation_,
                ((bitField0_ & 0x00000002) != 0),
                getParentForChildren(),
                isClean());
        failedLocation_ = null;
      }
      return failedLocationBuilder_;
    }

    @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.ListJobsResponse)
  }

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

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

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

  private static final com.google.protobuf.Parser<ListJobsResponse> PARSER =
      new com.google.protobuf.AbstractParser<ListJobsResponse>() {
        @java.lang.Override
        public ListJobsResponse parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new ListJobsResponse(input, extensionRegistry);
        }
      };

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

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

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