/*
 * 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/metrics.proto

package com.google.dataflow.v1beta3;

/**
 *
 *
 * <pre>
 * Information about the progress of some component of job execution.
 * </pre>
 *
 * Protobuf type {@code google.dataflow.v1beta3.ProgressTimeseries}
 */
public final class ProgressTimeseries extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.dataflow.v1beta3.ProgressTimeseries)
    ProgressTimeseriesOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use ProgressTimeseries.newBuilder() to construct.
  private ProgressTimeseries(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private ProgressTimeseries() {
    dataPoints_ = java.util.Collections.emptyList();
  }

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

  @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.MetricsProto
        .internal_static_google_dataflow_v1beta3_ProgressTimeseries_descriptor;
  }

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

  public interface PointOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.dataflow.v1beta3.ProgressTimeseries.Point)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * The timestamp of the point.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp time = 1;</code>
     *
     * @return Whether the time field is set.
     */
    boolean hasTime();
    /**
     *
     *
     * <pre>
     * The timestamp of the point.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp time = 1;</code>
     *
     * @return The time.
     */
    com.google.protobuf.Timestamp getTime();
    /**
     *
     *
     * <pre>
     * The timestamp of the point.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp time = 1;</code>
     */
    com.google.protobuf.TimestampOrBuilder getTimeOrBuilder();

    /**
     *
     *
     * <pre>
     * The value of the point.
     * </pre>
     *
     * <code>double value = 2;</code>
     *
     * @return The value.
     */
    double getValue();
  }
  /**
   *
   *
   * <pre>
   * A point in the timeseries.
   * </pre>
   *
   * Protobuf type {@code google.dataflow.v1beta3.ProgressTimeseries.Point}
   */
  public static final class Point extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.dataflow.v1beta3.ProgressTimeseries.Point)
      PointOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use Point.newBuilder() to construct.
    private Point(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private Point() {}

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

    @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.MetricsProto
          .internal_static_google_dataflow_v1beta3_ProgressTimeseries_Point_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.dataflow.v1beta3.MetricsProto
          .internal_static_google_dataflow_v1beta3_ProgressTimeseries_Point_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.dataflow.v1beta3.ProgressTimeseries.Point.class,
              com.google.dataflow.v1beta3.ProgressTimeseries.Point.Builder.class);
    }

    public static final int TIME_FIELD_NUMBER = 1;
    private com.google.protobuf.Timestamp time_;
    /**
     *
     *
     * <pre>
     * The timestamp of the point.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp time = 1;</code>
     *
     * @return Whether the time field is set.
     */
    @java.lang.Override
    public boolean hasTime() {
      return time_ != null;
    }
    /**
     *
     *
     * <pre>
     * The timestamp of the point.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp time = 1;</code>
     *
     * @return The time.
     */
    @java.lang.Override
    public com.google.protobuf.Timestamp getTime() {
      return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_;
    }
    /**
     *
     *
     * <pre>
     * The timestamp of the point.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp time = 1;</code>
     */
    @java.lang.Override
    public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
      return getTime();
    }

    public static final int VALUE_FIELD_NUMBER = 2;
    private double value_;
    /**
     *
     *
     * <pre>
     * The value of the point.
     * </pre>
     *
     * <code>double value = 2;</code>
     *
     * @return The value.
     */
    @java.lang.Override
    public double getValue() {
      return value_;
    }

    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 (time_ != null) {
        output.writeMessage(1, getTime());
      }
      if (java.lang.Double.doubleToRawLongBits(value_) != 0) {
        output.writeDouble(2, value_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (time_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTime());
      }
      if (java.lang.Double.doubleToRawLongBits(value_) != 0) {
        size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, value_);
      }
      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.ProgressTimeseries.Point)) {
        return super.equals(obj);
      }
      com.google.dataflow.v1beta3.ProgressTimeseries.Point other =
          (com.google.dataflow.v1beta3.ProgressTimeseries.Point) obj;

      if (hasTime() != other.hasTime()) return false;
      if (hasTime()) {
        if (!getTime().equals(other.getTime())) return false;
      }
      if (java.lang.Double.doubleToLongBits(getValue())
          != java.lang.Double.doubleToLongBits(other.getValue())) 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();
      if (hasTime()) {
        hash = (37 * hash) + TIME_FIELD_NUMBER;
        hash = (53 * hash) + getTime().hashCode();
      }
      hash = (37 * hash) + VALUE_FIELD_NUMBER;
      hash =
          (53 * hash)
              + com.google.protobuf.Internal.hashLong(
                  java.lang.Double.doubleToLongBits(getValue()));
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

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

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

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

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

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

    public static com.google.dataflow.v1beta3.ProgressTimeseries.Point 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.ProgressTimeseries.Point 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>
     * A point in the timeseries.
     * </pre>
     *
     * Protobuf type {@code google.dataflow.v1beta3.ProgressTimeseries.Point}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.dataflow.v1beta3.ProgressTimeseries.Point)
        com.google.dataflow.v1beta3.ProgressTimeseries.PointOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.dataflow.v1beta3.MetricsProto
            .internal_static_google_dataflow_v1beta3_ProgressTimeseries_Point_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.dataflow.v1beta3.MetricsProto
            .internal_static_google_dataflow_v1beta3_ProgressTimeseries_Point_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.dataflow.v1beta3.ProgressTimeseries.Point.class,
                com.google.dataflow.v1beta3.ProgressTimeseries.Point.Builder.class);
      }

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

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (timeBuilder_ == null) {
          time_ = null;
        } else {
          time_ = null;
          timeBuilder_ = null;
        }
        value_ = 0D;

        return this;
      }

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

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

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

      @java.lang.Override
      public com.google.dataflow.v1beta3.ProgressTimeseries.Point buildPartial() {
        com.google.dataflow.v1beta3.ProgressTimeseries.Point result =
            new com.google.dataflow.v1beta3.ProgressTimeseries.Point(this);
        if (timeBuilder_ == null) {
          result.time_ = time_;
        } else {
          result.time_ = timeBuilder_.build();
        }
        result.value_ = value_;
        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.ProgressTimeseries.Point) {
          return mergeFrom((com.google.dataflow.v1beta3.ProgressTimeseries.Point) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.dataflow.v1beta3.ProgressTimeseries.Point other) {
        if (other == com.google.dataflow.v1beta3.ProgressTimeseries.Point.getDefaultInstance())
          return this;
        if (other.hasTime()) {
          mergeTime(other.getTime());
        }
        if (other.getValue() != 0D) {
          setValue(other.getValue());
        }
        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:
                {
                  input.readMessage(getTimeFieldBuilder().getBuilder(), extensionRegistry);

                  break;
                } // case 10
              case 17:
                {
                  value_ = input.readDouble();

                  break;
                } // case 17
              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 com.google.protobuf.Timestamp time_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp,
              com.google.protobuf.Timestamp.Builder,
              com.google.protobuf.TimestampOrBuilder>
          timeBuilder_;
      /**
       *
       *
       * <pre>
       * The timestamp of the point.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp time = 1;</code>
       *
       * @return Whether the time field is set.
       */
      public boolean hasTime() {
        return timeBuilder_ != null || time_ != null;
      }
      /**
       *
       *
       * <pre>
       * The timestamp of the point.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp time = 1;</code>
       *
       * @return The time.
       */
      public com.google.protobuf.Timestamp getTime() {
        if (timeBuilder_ == null) {
          return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_;
        } else {
          return timeBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * The timestamp of the point.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp time = 1;</code>
       */
      public Builder setTime(com.google.protobuf.Timestamp value) {
        if (timeBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          time_ = value;
          onChanged();
        } else {
          timeBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * The timestamp of the point.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp time = 1;</code>
       */
      public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) {
        if (timeBuilder_ == null) {
          time_ = builderForValue.build();
          onChanged();
        } else {
          timeBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * The timestamp of the point.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp time = 1;</code>
       */
      public Builder mergeTime(com.google.protobuf.Timestamp value) {
        if (timeBuilder_ == null) {
          if (time_ != null) {
            time_ = com.google.protobuf.Timestamp.newBuilder(time_).mergeFrom(value).buildPartial();
          } else {
            time_ = value;
          }
          onChanged();
        } else {
          timeBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * The timestamp of the point.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp time = 1;</code>
       */
      public Builder clearTime() {
        if (timeBuilder_ == null) {
          time_ = null;
          onChanged();
        } else {
          time_ = null;
          timeBuilder_ = null;
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * The timestamp of the point.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp time = 1;</code>
       */
      public com.google.protobuf.Timestamp.Builder getTimeBuilder() {

        onChanged();
        return getTimeFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * The timestamp of the point.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp time = 1;</code>
       */
      public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
        if (timeBuilder_ != null) {
          return timeBuilder_.getMessageOrBuilder();
        } else {
          return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_;
        }
      }
      /**
       *
       *
       * <pre>
       * The timestamp of the point.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp time = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp,
              com.google.protobuf.Timestamp.Builder,
              com.google.protobuf.TimestampOrBuilder>
          getTimeFieldBuilder() {
        if (timeBuilder_ == null) {
          timeBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.protobuf.Timestamp,
                  com.google.protobuf.Timestamp.Builder,
                  com.google.protobuf.TimestampOrBuilder>(
                  getTime(), getParentForChildren(), isClean());
          time_ = null;
        }
        return timeBuilder_;
      }

      private double value_;
      /**
       *
       *
       * <pre>
       * The value of the point.
       * </pre>
       *
       * <code>double value = 2;</code>
       *
       * @return The value.
       */
      @java.lang.Override
      public double getValue() {
        return value_;
      }
      /**
       *
       *
       * <pre>
       * The value of the point.
       * </pre>
       *
       * <code>double value = 2;</code>
       *
       * @param value The value to set.
       * @return This builder for chaining.
       */
      public Builder setValue(double value) {

        value_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The value of the point.
       * </pre>
       *
       * <code>double value = 2;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearValue() {

        value_ = 0D;
        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.ProgressTimeseries.Point)
    }

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

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

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

    private static final com.google.protobuf.Parser<Point> PARSER =
        new com.google.protobuf.AbstractParser<Point>() {
          @java.lang.Override
          public Point 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<Point> parser() {
      return PARSER;
    }

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

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

  public static final int CURRENT_PROGRESS_FIELD_NUMBER = 1;
  private double currentProgress_;
  /**
   *
   *
   * <pre>
   * The current progress of the component, in the range [0,1].
   * </pre>
   *
   * <code>double current_progress = 1;</code>
   *
   * @return The currentProgress.
   */
  @java.lang.Override
  public double getCurrentProgress() {
    return currentProgress_;
  }

  public static final int DATA_POINTS_FIELD_NUMBER = 2;
  private java.util.List<com.google.dataflow.v1beta3.ProgressTimeseries.Point> dataPoints_;
  /**
   *
   *
   * <pre>
   * History of progress for the component.
   * Points are sorted by time.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.dataflow.v1beta3.ProgressTimeseries.Point> getDataPointsList() {
    return dataPoints_;
  }
  /**
   *
   *
   * <pre>
   * History of progress for the component.
   * Points are sorted by time.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.dataflow.v1beta3.ProgressTimeseries.PointOrBuilder>
      getDataPointsOrBuilderList() {
    return dataPoints_;
  }
  /**
   *
   *
   * <pre>
   * History of progress for the component.
   * Points are sorted by time.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
   */
  @java.lang.Override
  public int getDataPointsCount() {
    return dataPoints_.size();
  }
  /**
   *
   *
   * <pre>
   * History of progress for the component.
   * Points are sorted by time.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.ProgressTimeseries.Point getDataPoints(int index) {
    return dataPoints_.get(index);
  }
  /**
   *
   *
   * <pre>
   * History of progress for the component.
   * Points are sorted by time.
   * </pre>
   *
   * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.ProgressTimeseries.PointOrBuilder getDataPointsOrBuilder(
      int index) {
    return dataPoints_.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 {
    if (java.lang.Double.doubleToRawLongBits(currentProgress_) != 0) {
      output.writeDouble(1, currentProgress_);
    }
    for (int i = 0; i < dataPoints_.size(); i++) {
      output.writeMessage(2, dataPoints_.get(i));
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (java.lang.Double.doubleToRawLongBits(currentProgress_) != 0) {
      size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, currentProgress_);
    }
    for (int i = 0; i < dataPoints_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dataPoints_.get(i));
    }
    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.ProgressTimeseries)) {
      return super.equals(obj);
    }
    com.google.dataflow.v1beta3.ProgressTimeseries other =
        (com.google.dataflow.v1beta3.ProgressTimeseries) obj;

    if (java.lang.Double.doubleToLongBits(getCurrentProgress())
        != java.lang.Double.doubleToLongBits(other.getCurrentProgress())) return false;
    if (!getDataPointsList().equals(other.getDataPointsList())) 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) + CURRENT_PROGRESS_FIELD_NUMBER;
    hash =
        (53 * hash)
            + com.google.protobuf.Internal.hashLong(
                java.lang.Double.doubleToLongBits(getCurrentProgress()));
    if (getDataPointsCount() > 0) {
      hash = (37 * hash) + DATA_POINTS_FIELD_NUMBER;
      hash = (53 * hash) + getDataPointsList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

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

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

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

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

  public static com.google.dataflow.v1beta3.ProgressTimeseries 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.ProgressTimeseries 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>
   * Information about the progress of some component of job execution.
   * </pre>
   *
   * Protobuf type {@code google.dataflow.v1beta3.ProgressTimeseries}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.dataflow.v1beta3.ProgressTimeseries)
      com.google.dataflow.v1beta3.ProgressTimeseriesOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.dataflow.v1beta3.MetricsProto
          .internal_static_google_dataflow_v1beta3_ProgressTimeseries_descriptor;
    }

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

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

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      currentProgress_ = 0D;

      if (dataPointsBuilder_ == null) {
        dataPoints_ = java.util.Collections.emptyList();
      } else {
        dataPoints_ = null;
        dataPointsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      return this;
    }

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

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

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

    @java.lang.Override
    public com.google.dataflow.v1beta3.ProgressTimeseries buildPartial() {
      com.google.dataflow.v1beta3.ProgressTimeseries result =
          new com.google.dataflow.v1beta3.ProgressTimeseries(this);
      int from_bitField0_ = bitField0_;
      result.currentProgress_ = currentProgress_;
      if (dataPointsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          dataPoints_ = java.util.Collections.unmodifiableList(dataPoints_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.dataPoints_ = dataPoints_;
      } else {
        result.dataPoints_ = dataPointsBuilder_.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.ProgressTimeseries) {
        return mergeFrom((com.google.dataflow.v1beta3.ProgressTimeseries) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.dataflow.v1beta3.ProgressTimeseries other) {
      if (other == com.google.dataflow.v1beta3.ProgressTimeseries.getDefaultInstance()) return this;
      if (other.getCurrentProgress() != 0D) {
        setCurrentProgress(other.getCurrentProgress());
      }
      if (dataPointsBuilder_ == null) {
        if (!other.dataPoints_.isEmpty()) {
          if (dataPoints_.isEmpty()) {
            dataPoints_ = other.dataPoints_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureDataPointsIsMutable();
            dataPoints_.addAll(other.dataPoints_);
          }
          onChanged();
        }
      } else {
        if (!other.dataPoints_.isEmpty()) {
          if (dataPointsBuilder_.isEmpty()) {
            dataPointsBuilder_.dispose();
            dataPointsBuilder_ = null;
            dataPoints_ = other.dataPoints_;
            bitField0_ = (bitField0_ & ~0x00000001);
            dataPointsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getDataPointsFieldBuilder()
                    : null;
          } else {
            dataPointsBuilder_.addAllMessages(other.dataPoints_);
          }
        }
      }
      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 9:
              {
                currentProgress_ = input.readDouble();

                break;
              } // case 9
            case 18:
              {
                com.google.dataflow.v1beta3.ProgressTimeseries.Point m =
                    input.readMessage(
                        com.google.dataflow.v1beta3.ProgressTimeseries.Point.parser(),
                        extensionRegistry);
                if (dataPointsBuilder_ == null) {
                  ensureDataPointsIsMutable();
                  dataPoints_.add(m);
                } else {
                  dataPointsBuilder_.addMessage(m);
                }
                break;
              } // case 18
            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 double currentProgress_;
    /**
     *
     *
     * <pre>
     * The current progress of the component, in the range [0,1].
     * </pre>
     *
     * <code>double current_progress = 1;</code>
     *
     * @return The currentProgress.
     */
    @java.lang.Override
    public double getCurrentProgress() {
      return currentProgress_;
    }
    /**
     *
     *
     * <pre>
     * The current progress of the component, in the range [0,1].
     * </pre>
     *
     * <code>double current_progress = 1;</code>
     *
     * @param value The currentProgress to set.
     * @return This builder for chaining.
     */
    public Builder setCurrentProgress(double value) {

      currentProgress_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The current progress of the component, in the range [0,1].
     * </pre>
     *
     * <code>double current_progress = 1;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearCurrentProgress() {

      currentProgress_ = 0D;
      onChanged();
      return this;
    }

    private java.util.List<com.google.dataflow.v1beta3.ProgressTimeseries.Point> dataPoints_ =
        java.util.Collections.emptyList();

    private void ensureDataPointsIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        dataPoints_ =
            new java.util.ArrayList<com.google.dataflow.v1beta3.ProgressTimeseries.Point>(
                dataPoints_);
        bitField0_ |= 0x00000001;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.dataflow.v1beta3.ProgressTimeseries.Point,
            com.google.dataflow.v1beta3.ProgressTimeseries.Point.Builder,
            com.google.dataflow.v1beta3.ProgressTimeseries.PointOrBuilder>
        dataPointsBuilder_;

    /**
     *
     *
     * <pre>
     * History of progress for the component.
     * Points are sorted by time.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
     */
    public java.util.List<com.google.dataflow.v1beta3.ProgressTimeseries.Point>
        getDataPointsList() {
      if (dataPointsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(dataPoints_);
      } else {
        return dataPointsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * History of progress for the component.
     * Points are sorted by time.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
     */
    public int getDataPointsCount() {
      if (dataPointsBuilder_ == null) {
        return dataPoints_.size();
      } else {
        return dataPointsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * History of progress for the component.
     * Points are sorted by time.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
     */
    public com.google.dataflow.v1beta3.ProgressTimeseries.Point getDataPoints(int index) {
      if (dataPointsBuilder_ == null) {
        return dataPoints_.get(index);
      } else {
        return dataPointsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * History of progress for the component.
     * Points are sorted by time.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
     */
    public Builder setDataPoints(
        int index, com.google.dataflow.v1beta3.ProgressTimeseries.Point value) {
      if (dataPointsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDataPointsIsMutable();
        dataPoints_.set(index, value);
        onChanged();
      } else {
        dataPointsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * History of progress for the component.
     * Points are sorted by time.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
     */
    public Builder setDataPoints(
        int index, com.google.dataflow.v1beta3.ProgressTimeseries.Point.Builder builderForValue) {
      if (dataPointsBuilder_ == null) {
        ensureDataPointsIsMutable();
        dataPoints_.set(index, builderForValue.build());
        onChanged();
      } else {
        dataPointsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * History of progress for the component.
     * Points are sorted by time.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
     */
    public Builder addDataPoints(com.google.dataflow.v1beta3.ProgressTimeseries.Point value) {
      if (dataPointsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDataPointsIsMutable();
        dataPoints_.add(value);
        onChanged();
      } else {
        dataPointsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * History of progress for the component.
     * Points are sorted by time.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
     */
    public Builder addDataPoints(
        int index, com.google.dataflow.v1beta3.ProgressTimeseries.Point value) {
      if (dataPointsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDataPointsIsMutable();
        dataPoints_.add(index, value);
        onChanged();
      } else {
        dataPointsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * History of progress for the component.
     * Points are sorted by time.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
     */
    public Builder addDataPoints(
        com.google.dataflow.v1beta3.ProgressTimeseries.Point.Builder builderForValue) {
      if (dataPointsBuilder_ == null) {
        ensureDataPointsIsMutable();
        dataPoints_.add(builderForValue.build());
        onChanged();
      } else {
        dataPointsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * History of progress for the component.
     * Points are sorted by time.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
     */
    public Builder addDataPoints(
        int index, com.google.dataflow.v1beta3.ProgressTimeseries.Point.Builder builderForValue) {
      if (dataPointsBuilder_ == null) {
        ensureDataPointsIsMutable();
        dataPoints_.add(index, builderForValue.build());
        onChanged();
      } else {
        dataPointsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * History of progress for the component.
     * Points are sorted by time.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
     */
    public Builder addAllDataPoints(
        java.lang.Iterable<? extends com.google.dataflow.v1beta3.ProgressTimeseries.Point> values) {
      if (dataPointsBuilder_ == null) {
        ensureDataPointsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataPoints_);
        onChanged();
      } else {
        dataPointsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * History of progress for the component.
     * Points are sorted by time.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
     */
    public Builder clearDataPoints() {
      if (dataPointsBuilder_ == null) {
        dataPoints_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        dataPointsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * History of progress for the component.
     * Points are sorted by time.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
     */
    public Builder removeDataPoints(int index) {
      if (dataPointsBuilder_ == null) {
        ensureDataPointsIsMutable();
        dataPoints_.remove(index);
        onChanged();
      } else {
        dataPointsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * History of progress for the component.
     * Points are sorted by time.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
     */
    public com.google.dataflow.v1beta3.ProgressTimeseries.Point.Builder getDataPointsBuilder(
        int index) {
      return getDataPointsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * History of progress for the component.
     * Points are sorted by time.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
     */
    public com.google.dataflow.v1beta3.ProgressTimeseries.PointOrBuilder getDataPointsOrBuilder(
        int index) {
      if (dataPointsBuilder_ == null) {
        return dataPoints_.get(index);
      } else {
        return dataPointsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * History of progress for the component.
     * Points are sorted by time.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
     */
    public java.util.List<? extends com.google.dataflow.v1beta3.ProgressTimeseries.PointOrBuilder>
        getDataPointsOrBuilderList() {
      if (dataPointsBuilder_ != null) {
        return dataPointsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(dataPoints_);
      }
    }
    /**
     *
     *
     * <pre>
     * History of progress for the component.
     * Points are sorted by time.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
     */
    public com.google.dataflow.v1beta3.ProgressTimeseries.Point.Builder addDataPointsBuilder() {
      return getDataPointsFieldBuilder()
          .addBuilder(com.google.dataflow.v1beta3.ProgressTimeseries.Point.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * History of progress for the component.
     * Points are sorted by time.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
     */
    public com.google.dataflow.v1beta3.ProgressTimeseries.Point.Builder addDataPointsBuilder(
        int index) {
      return getDataPointsFieldBuilder()
          .addBuilder(
              index, com.google.dataflow.v1beta3.ProgressTimeseries.Point.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * History of progress for the component.
     * Points are sorted by time.
     * </pre>
     *
     * <code>repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2;</code>
     */
    public java.util.List<com.google.dataflow.v1beta3.ProgressTimeseries.Point.Builder>
        getDataPointsBuilderList() {
      return getDataPointsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.dataflow.v1beta3.ProgressTimeseries.Point,
            com.google.dataflow.v1beta3.ProgressTimeseries.Point.Builder,
            com.google.dataflow.v1beta3.ProgressTimeseries.PointOrBuilder>
        getDataPointsFieldBuilder() {
      if (dataPointsBuilder_ == null) {
        dataPointsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.dataflow.v1beta3.ProgressTimeseries.Point,
                com.google.dataflow.v1beta3.ProgressTimeseries.Point.Builder,
                com.google.dataflow.v1beta3.ProgressTimeseries.PointOrBuilder>(
                dataPoints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
        dataPoints_ = null;
      }
      return dataPointsBuilder_;
    }

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

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

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

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

  private static final com.google.protobuf.Parser<ProgressTimeseries> PARSER =
      new com.google.protobuf.AbstractParser<ProgressTimeseries>() {
        @java.lang.Override
        public ProgressTimeseries 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<ProgressTimeseries> parser() {
    return PARSER;
  }

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

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