text:
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/automl/v1beta1/detection.proto

package com.google.cloud.automl.v1beta1;

/**
 *
 *
 *

 * Model evaluation metrics for video object tracking problems.
 * Evaluates prediction quality of both labeled bounding boxes and labeled
 * tracks (i.e. series of bounding boxes sharing same label and instance ID).
 *

 *
 * Protobuf type {@code google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics}
 */
public final class VideoObjectTrackingEvaluationMetrics
    extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics)
    VideoObjectTrackingEvaluationMetricsOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use VideoObjectTrackingEvaluationMetrics.newBuilder() to construct.
  private VideoObjectTrackingEvaluationMetrics(
      com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private VideoObjectTrackingEvaluationMetrics() {
    boundingBoxMetricsEntries_ = java.util.Collections.emptyList();
  }

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

  @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.cloud.automl.v1beta1.Detection
        .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.automl.v1beta1.Detection
        .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.class,
            com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder.class);
  }

  public static final int EVALUATED_FRAME_COUNT_FIELD_NUMBER = 1;
  private int evaluatedFrameCount_;
  /**
   *
   *
   *

   * Output only. The number of video frames used to create this evaluation.
   *

   *
   * int32 evaluated_frame_count = 1;
   *
   * @return The evaluatedFrameCount.
   */
  @java.lang.Override
  public int getEvaluatedFrameCount() {
    return evaluatedFrameCount_;
  }

  public static final int EVALUATED_BOUNDING_BOX_COUNT_FIELD_NUMBER = 2;
  private int evaluatedBoundingBoxCount_;
  /**
   *
   *
   *

   * Output only. The total number of bounding boxes (i.e. summed over all
   * frames) the ground truth used to create this evaluation had.
   *

   *
   * int32 evaluated_bounding_box_count = 2;
   *
   * @return The evaluatedBoundingBoxCount.
   */
  @java.lang.Override
  public int getEvaluatedBoundingBoxCount() {
    return evaluatedBoundingBoxCount_;
  }

  public static final int BOUNDING_BOX_METRICS_ENTRIES_FIELD_NUMBER = 4;
  private java.util.List<com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry>
      boundingBoxMetricsEntries_;
  /**
   *
   *
   *

   * Output only. The bounding boxes match metrics for each
   * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
   * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
   * pair.
   *

   *
   *
   * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
   *
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry>
      getBoundingBoxMetricsEntriesList() {
    return boundingBoxMetricsEntries_;
  }
  /**
   *
   *
   *

   * Output only. The bounding boxes match metrics for each
   * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
   * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
   * pair.
   *

   *
   *
   * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
   *
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder>
      getBoundingBoxMetricsEntriesOrBuilderList() {
    return boundingBoxMetricsEntries_;
  }
  /**
   *
   *
   *

   * Output only. The bounding boxes match metrics for each
   * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
   * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
   * pair.
   *

   *
   *
   * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
   *
   */
  @java.lang.Override
  public int getBoundingBoxMetricsEntriesCount() {
    return boundingBoxMetricsEntries_.size();
  }
  /**
   *
   *
   *

   * Output only. The bounding boxes match metrics for each
   * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
   * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
   * pair.
   *

   *
   *
   * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
   *
   */
  @java.lang.Override
  public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries(
      int index) {
    return boundingBoxMetricsEntries_.get(index);
  }
  /**
   *
   *
   *

   * Output only. The bounding boxes match metrics for each
   * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
   * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
   * pair.
   *

   *
   *
   * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
   *
   */
  @java.lang.Override
  public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder
      getBoundingBoxMetricsEntriesOrBuilder(int index) {
    return boundingBoxMetricsEntries_.get(index);
  }

  public static final int BOUNDING_BOX_MEAN_AVERAGE_PRECISION_FIELD_NUMBER = 6;
  private float boundingBoxMeanAveragePrecision_;
  /**
   *
   *
   *

   * Output only. The single metric for bounding boxes evaluation:
   * the mean_average_precision averaged over all bounding_box_metrics_entries.
   *

   *
   * float bounding_box_mean_average_precision = 6;
   *
   * @return The boundingBoxMeanAveragePrecision.
   */
  @java.lang.Override
  public float getBoundingBoxMeanAveragePrecision() {
    return boundingBoxMeanAveragePrecision_;
  }

  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 (evaluatedFrameCount_ != 0) {
      output.writeInt32(1, evaluatedFrameCount_);
    }
    if (evaluatedBoundingBoxCount_ != 0) {
      output.writeInt32(2, evaluatedBoundingBoxCount_);
    }
    for (int i = 0; i < boundingBoxMetricsEntries_.size(); i++) {
      output.writeMessage(4, boundingBoxMetricsEntries_.get(i));
    }
    if (java.lang.Float.floatToRawIntBits(boundingBoxMeanAveragePrecision_) != 0) {
      output.writeFloat(6, boundingBoxMeanAveragePrecision_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (evaluatedFrameCount_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, evaluatedFrameCount_);
    }
    if (evaluatedBoundingBoxCount_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, evaluatedBoundingBoxCount_);
    }
    for (int i = 0; i < boundingBoxMetricsEntries_.size(); i++) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              4, boundingBoxMetricsEntries_.get(i));
    }
    if (java.lang.Float.floatToRawIntBits(boundingBoxMeanAveragePrecision_) != 0) {
      size +=
          com.google.protobuf.CodedOutputStream.computeFloatSize(
              6, boundingBoxMeanAveragePrecision_);
    }
    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.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics)) {
      return super.equals(obj);
    }
    com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics other =
        (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) obj;

    if (getEvaluatedFrameCount() != other.getEvaluatedFrameCount()) return false;
    if (getEvaluatedBoundingBoxCount() != other.getEvaluatedBoundingBoxCount()) return false;
    if (!getBoundingBoxMetricsEntriesList().equals(other.getBoundingBoxMetricsEntriesList()))
      return false;
    if (java.lang.Float.floatToIntBits(getBoundingBoxMeanAveragePrecision())
        != java.lang.Float.floatToIntBits(other.getBoundingBoxMeanAveragePrecision())) 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) + EVALUATED_FRAME_COUNT_FIELD_NUMBER;
    hash = (53 * hash) + getEvaluatedFrameCount();
    hash = (37 * hash) + EVALUATED_BOUNDING_BOX_COUNT_FIELD_NUMBER;
    hash = (53 * hash) + getEvaluatedBoundingBoxCount();
    if (getBoundingBoxMetricsEntriesCount() > 0) {
      hash = (37 * hash) + BOUNDING_BOX_METRICS_ENTRIES_FIELD_NUMBER;
      hash = (53 * hash) + getBoundingBoxMetricsEntriesList().hashCode();
    }
    hash = (37 * hash) + BOUNDING_BOX_MEAN_AVERAGE_PRECISION_FIELD_NUMBER;
    hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoundingBoxMeanAveragePrecision());
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

  public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

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

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

  public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics 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.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics 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;
  }
  /**
   *
   *
   *

   * Model evaluation metrics for video object tracking problems.
   * Evaluates prediction quality of both labeled bounding boxes and labeled
   * tracks (i.e. series of bounding boxes sharing same label and instance ID).
   *

   *
   * Protobuf type {@code google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics)
      com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.automl.v1beta1.Detection
          .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.automl.v1beta1.Detection
          .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.class,
              com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder.class);
    }

    // Construct using
    // com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.newBuilder()
    private Builder() {}

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

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

      evaluatedBoundingBoxCount_ = 0;

      if (boundingBoxMetricsEntriesBuilder_ == null) {
        boundingBoxMetricsEntries_ = java.util.Collections.emptyList();
      } else {
        boundingBoxMetricsEntries_ = null;
        boundingBoxMetricsEntriesBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      boundingBoxMeanAveragePrecision_ = 0F;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.automl.v1beta1.Detection
          .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics
        getDefaultInstanceForType() {
      return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics
          .getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics build() {
      com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics buildPartial() {
      com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics result =
          new com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics(this);
      int from_bitField0_ = bitField0_;
      result.evaluatedFrameCount_ = evaluatedFrameCount_;
      result.evaluatedBoundingBoxCount_ = evaluatedBoundingBoxCount_;
      if (boundingBoxMetricsEntriesBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          boundingBoxMetricsEntries_ =
              java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.boundingBoxMetricsEntries_ = boundingBoxMetricsEntries_;
      } else {
        result.boundingBoxMetricsEntries_ = boundingBoxMetricsEntriesBuilder_.build();
      }
      result.boundingBoxMeanAveragePrecision_ = boundingBoxMeanAveragePrecision_;
      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.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) {
        return mergeFrom(
            (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(
        com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics other) {
      if (other
          == com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics
              .getDefaultInstance()) return this;
      if (other.getEvaluatedFrameCount() != 0) {
        setEvaluatedFrameCount(other.getEvaluatedFrameCount());
      }
      if (other.getEvaluatedBoundingBoxCount() != 0) {
        setEvaluatedBoundingBoxCount(other.getEvaluatedBoundingBoxCount());
      }
      if (boundingBoxMetricsEntriesBuilder_ == null) {
        if (!other.boundingBoxMetricsEntries_.isEmpty()) {
          if (boundingBoxMetricsEntries_.isEmpty()) {
            boundingBoxMetricsEntries_ = other.boundingBoxMetricsEntries_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureBoundingBoxMetricsEntriesIsMutable();
            boundingBoxMetricsEntries_.addAll(other.boundingBoxMetricsEntries_);
          }
          onChanged();
        }
      } else {
        if (!other.boundingBoxMetricsEntries_.isEmpty()) {
          if (boundingBoxMetricsEntriesBuilder_.isEmpty()) {
            boundingBoxMetricsEntriesBuilder_.dispose();
            boundingBoxMetricsEntriesBuilder_ = null;
            boundingBoxMetricsEntries_ = other.boundingBoxMetricsEntries_;
            bitField0_ = (bitField0_ & ~0x00000001);
            boundingBoxMetricsEntriesBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getBoundingBoxMetricsEntriesFieldBuilder()
                    : null;
          } else {
            boundingBoxMetricsEntriesBuilder_.addAllMessages(other.boundingBoxMetricsEntries_);
          }
        }
      }
      if (other.getBoundingBoxMeanAveragePrecision() != 0F) {
        setBoundingBoxMeanAveragePrecision(other.getBoundingBoxMeanAveragePrecision());
      }
      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 8:
              {
                evaluatedFrameCount_ = input.readInt32();

                break;
              } // case 8
            case 16:
              {
                evaluatedBoundingBoxCount_ = input.readInt32();

                break;
              } // case 16
            case 34:
              {
                com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry m =
                    input.readMessage(
                        com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.parser(),
                        extensionRegistry);
                if (boundingBoxMetricsEntriesBuilder_ == null) {
                  ensureBoundingBoxMetricsEntriesIsMutable();
                  boundingBoxMetricsEntries_.add(m);
                } else {
                  boundingBoxMetricsEntriesBuilder_.addMessage(m);
                }
                break;
              } // case 34
            case 53:
              {
                boundingBoxMeanAveragePrecision_ = input.readFloat();

                break;
              } // case 53
            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 int evaluatedFrameCount_;
    /**
     *
     *
     *

     * Output only. The number of video frames used to create this evaluation.
     *

     *
     * int32 evaluated_frame_count = 1;
     *
     * @return The evaluatedFrameCount.
     */
    @java.lang.Override
    public int getEvaluatedFrameCount() {
      return evaluatedFrameCount_;
    }
    /**
     *
     *
     *

     * Output only. The number of video frames used to create this evaluation.
     *

     *
     * int32 evaluated_frame_count = 1;
     *
     * @param value The evaluatedFrameCount to set.
     * @return This builder for chaining.
     */
    public Builder setEvaluatedFrameCount(int value) {

      evaluatedFrameCount_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. The number of video frames used to create this evaluation.
     *

     *
     * int32 evaluated_frame_count = 1;
     *
     * @return This builder for chaining.
     */
    public Builder clearEvaluatedFrameCount() {

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

    private int evaluatedBoundingBoxCount_;
    /**
     *
     *
     *

     * Output only. The total number of bounding boxes (i.e. summed over all
     * frames) the ground truth used to create this evaluation had.
     *

     *
     * int32 evaluated_bounding_box_count = 2;
     *
     * @return The evaluatedBoundingBoxCount.
     */
    @java.lang.Override
    public int getEvaluatedBoundingBoxCount() {
      return evaluatedBoundingBoxCount_;
    }
    /**
     *
     *
     *

     * Output only. The total number of bounding boxes (i.e. summed over all
     * frames) the ground truth used to create this evaluation had.
     *

     *
     * int32 evaluated_bounding_box_count = 2;
     *
     * @param value The evaluatedBoundingBoxCount to set.
     * @return This builder for chaining.
     */
    public Builder setEvaluatedBoundingBoxCount(int value) {

      evaluatedBoundingBoxCount_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. The total number of bounding boxes (i.e. summed over all
     * frames) the ground truth used to create this evaluation had.
     *

     *
     * int32 evaluated_bounding_box_count = 2;
     *
     * @return This builder for chaining.
     */
    public Builder clearEvaluatedBoundingBoxCount() {

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

    private java.util.List<com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry>
        boundingBoxMetricsEntries_ = java.util.Collections.emptyList();

    private void ensureBoundingBoxMetricsEntriesIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        boundingBoxMetricsEntries_ =
            new java.util.ArrayList<com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry>(
                boundingBoxMetricsEntries_);
        bitField0_ |= 0x00000001;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry,
            com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder,
            com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder>
        boundingBoxMetricsEntriesBuilder_;

    /**
     *
     *
     *

     * Output only. The bounding boxes match metrics for each
     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * pair.
     *

     *
     *
     * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
     *
     */
    public java.util.List<com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry>
        getBoundingBoxMetricsEntriesList() {
      if (boundingBoxMetricsEntriesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
      } else {
        return boundingBoxMetricsEntriesBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     *

     * Output only. The bounding boxes match metrics for each
     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * pair.
     *

     *
     *
     * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
     *
     */
    public int getBoundingBoxMetricsEntriesCount() {
      if (boundingBoxMetricsEntriesBuilder_ == null) {
        return boundingBoxMetricsEntries_.size();
      } else {
        return boundingBoxMetricsEntriesBuilder_.getCount();
      }
    }
    /**
     *
     *
     *

     * Output only. The bounding boxes match metrics for each
     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * pair.
     *

     *
     *
     * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
     *
     */
    public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries(
        int index) {
      if (boundingBoxMetricsEntriesBuilder_ == null) {
        return boundingBoxMetricsEntries_.get(index);
      } else {
        return boundingBoxMetricsEntriesBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     *

     * Output only. The bounding boxes match metrics for each
     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * pair.
     *

     *
     *
     * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
     *
     */
    public Builder setBoundingBoxMetricsEntries(
        int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) {
      if (boundingBoxMetricsEntriesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureBoundingBoxMetricsEntriesIsMutable();
        boundingBoxMetricsEntries_.set(index, value);
        onChanged();
      } else {
        boundingBoxMetricsEntriesBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. The bounding boxes match metrics for each
     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * pair.
     *

     *
     *
     * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
     *
     */
    public Builder setBoundingBoxMetricsEntries(
        int index,
        com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) {
      if (boundingBoxMetricsEntriesBuilder_ == null) {
        ensureBoundingBoxMetricsEntriesIsMutable();
        boundingBoxMetricsEntries_.set(index, builderForValue.build());
        onChanged();
      } else {
        boundingBoxMetricsEntriesBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. The bounding boxes match metrics for each
     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * pair.
     *

     *
     *
     * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
     *
     */
    public Builder addBoundingBoxMetricsEntries(
        com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) {
      if (boundingBoxMetricsEntriesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureBoundingBoxMetricsEntriesIsMutable();
        boundingBoxMetricsEntries_.add(value);
        onChanged();
      } else {
        boundingBoxMetricsEntriesBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. The bounding boxes match metrics for each
     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * pair.
     *

     *
     *
     * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
     *
     */
    public Builder addBoundingBoxMetricsEntries(
        int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) {
      if (boundingBoxMetricsEntriesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureBoundingBoxMetricsEntriesIsMutable();
        boundingBoxMetricsEntries_.add(index, value);
        onChanged();
      } else {
        boundingBoxMetricsEntriesBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. The bounding boxes match metrics for each
     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * pair.
     *

     *
     *
     * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
     *
     */
    public Builder addBoundingBoxMetricsEntries(
        com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) {
      if (boundingBoxMetricsEntriesBuilder_ == null) {
        ensureBoundingBoxMetricsEntriesIsMutable();
        boundingBoxMetricsEntries_.add(builderForValue.build());
        onChanged();
      } else {
        boundingBoxMetricsEntriesBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. The bounding boxes match metrics for each
     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * pair.
     *

     *
     *
     * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
     *
     */
    public Builder addBoundingBoxMetricsEntries(
        int index,
        com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) {
      if (boundingBoxMetricsEntriesBuilder_ == null) {
        ensureBoundingBoxMetricsEntriesIsMutable();
        boundingBoxMetricsEntries_.add(index, builderForValue.build());
        onChanged();
      } else {
        boundingBoxMetricsEntriesBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. The bounding boxes match metrics for each
     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * pair.
     *

     *
     *
     * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
     *
     */
    public Builder addAllBoundingBoxMetricsEntries(
        java.lang.Iterable<? extends com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry>
            values) {
      if (boundingBoxMetricsEntriesBuilder_ == null) {
        ensureBoundingBoxMetricsEntriesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, boundingBoxMetricsEntries_);
        onChanged();
      } else {
        boundingBoxMetricsEntriesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. The bounding boxes match metrics for each
     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * pair.
     *

     *
     *
     * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
     *
     */
    public Builder clearBoundingBoxMetricsEntries() {
      if (boundingBoxMetricsEntriesBuilder_ == null) {
        boundingBoxMetricsEntries_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        boundingBoxMetricsEntriesBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. The bounding boxes match metrics for each
     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * pair.
     *

     *
     *
     * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
     *
     */
    public Builder removeBoundingBoxMetricsEntries(int index) {
      if (boundingBoxMetricsEntriesBuilder_ == null) {
        ensureBoundingBoxMetricsEntriesIsMutable();
        boundingBoxMetricsEntries_.remove(index);
        onChanged();
      } else {
        boundingBoxMetricsEntriesBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. The bounding boxes match metrics for each
     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * pair.
     *

     *
     *
     * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
     *
     */
    public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder
        getBoundingBoxMetricsEntriesBuilder(int index) {
      return getBoundingBoxMetricsEntriesFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     *

     * Output only. The bounding boxes match metrics for each
     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * pair.
     *

     *
     *
     * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
     *
     */
    public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder
        getBoundingBoxMetricsEntriesOrBuilder(int index) {
      if (boundingBoxMetricsEntriesBuilder_ == null) {
        return boundingBoxMetricsEntries_.get(index);
      } else {
        return boundingBoxMetricsEntriesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     *

     * Output only. The bounding boxes match metrics for each
     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * pair.
     *

     *
     *
     * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
     *
     */
    public java.util.List<
            ? extends com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder>
        getBoundingBoxMetricsEntriesOrBuilderList() {
      if (boundingBoxMetricsEntriesBuilder_ != null) {
        return boundingBoxMetricsEntriesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
      }
    }
    /**
     *
     *
     *

     * Output only. The bounding boxes match metrics for each
     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * pair.
     *

     *
     *
     * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
     *
     */
    public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder
        addBoundingBoxMetricsEntriesBuilder() {
      return getBoundingBoxMetricsEntriesFieldBuilder()
          .addBuilder(com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.getDefaultInstance());
    }
    /**
     *
     *
     *

     * Output only. The bounding boxes match metrics for each
     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * pair.
     *

     *
     *
     * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
     *
     */
    public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder
        addBoundingBoxMetricsEntriesBuilder(int index) {
      return getBoundingBoxMetricsEntriesFieldBuilder()
          .addBuilder(
              index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.getDefaultInstance());
    }
    /**
     *
     *
     *

     * Output only. The bounding boxes match metrics for each
     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
     * pair.
     *

     *
     *
     * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
     *
     */
    public java.util.List<com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder>
        getBoundingBoxMetricsEntriesBuilderList() {
      return getBoundingBoxMetricsEntriesFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry,
            com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder,
            com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder>
        getBoundingBoxMetricsEntriesFieldBuilder() {
      if (boundingBoxMetricsEntriesBuilder_ == null) {
        boundingBoxMetricsEntriesBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry,
                com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder,
                com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder>(
                boundingBoxMetricsEntries_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        boundingBoxMetricsEntries_ = null;
      }
      return boundingBoxMetricsEntriesBuilder_;
    }

    private float boundingBoxMeanAveragePrecision_;
    /**
     *
     *
     *

     * Output only. The single metric for bounding boxes evaluation:
     * the mean_average_precision averaged over all bounding_box_metrics_entries.
     *

     *
     * float bounding_box_mean_average_precision = 6;
     *
     * @return The boundingBoxMeanAveragePrecision.
     */
    @java.lang.Override
    public float getBoundingBoxMeanAveragePrecision() {
      return boundingBoxMeanAveragePrecision_;
    }
    /**
     *
     *
     *

     * Output only. The single metric for bounding boxes evaluation:
     * the mean_average_precision averaged over all bounding_box_metrics_entries.
     *

     *
     * float bounding_box_mean_average_precision = 6;
     *
     * @param value The boundingBoxMeanAveragePrecision to set.
     * @return This builder for chaining.
     */
    public Builder setBoundingBoxMeanAveragePrecision(float value) {

      boundingBoxMeanAveragePrecision_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. The single metric for bounding boxes evaluation:
     * the mean_average_precision averaged over all bounding_box_metrics_entries.
     *

     *
     * float bounding_box_mean_average_precision = 6;
     *
     * @return This builder for chaining.
     */
    public Builder clearBoundingBoxMeanAveragePrecision() {

      boundingBoxMeanAveragePrecision_ = 0F;
      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.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics)
  private static final com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics
      DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics();
  }

  public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics
      getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

  @java.lang.Override
  public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics
      getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}


text:
package base

import "HTVM/runtime"

// 根据偏移量跳转
func Jump(frame *runtime.Frame, offset int) {
	pc := frame.CurrentThread().PC()
	nextPc := pc + offset
	frame.SetNextPc(nextPc)
}

redpajama_set_name: RedPajamaGithub


text:
package com.blazebit.persistence.spring.data.testsuite.webflux.entity;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import java.util.UUID;

/**
 * @author Christian Beikov
 * @author Moritz Becker
 * @since 1.5.0
 */
@Entity
public class Person implements Serializable {
    private static final long serialVersionUID = 1L;

    private String id;
    private String name;
    private long age;
    private Set<Document> documents = new HashSet<>(0);

    public Person() {
        id = UUID.randomUUID().toString();
    }

    public Person(String name) {
        this();
        this.name = name;
    }

    @Id
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic(optional = false)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getAge() {
        return age;
    }

    public void setAge(long age) {
        this.age = age;
    }

    @OneToMany(mappedBy = "owner")
    public Set<Document> getDocuments() {
        return documents;
    }

    public void setDocuments(Set<Document> documents) {
        this.documents = documents;
    }
}


text:
class Menu extends React.Component {
  render() {
    let menus = ['Home',
      'About',
      'Services',
      'Portfolio',
      'Contact us']
    return React.createElement('div',
      null,
      menus.map((v, i) => {
        return React.createElement('div',
          {key: i},
          React.createElement(Link, {label: v})
        )
      })
    )
}}

class Link extends React.Component {
  render() {
    const url='/'
      + this.props.label
        .toLowerCase()
        .trim()
        .replace(' ', '-')
    return React.createElement('div',
      null,
      React.createElement(
        'a',
        {href: url},
        this.props.label
      ),
      React.createElement('br')
      )
  }
}

ReactDOM.render(
  React.createElement(
    Menu,
    null
  ),
  document.getElementById('menu')
)


text:
<?php
/**
* The Admin settings class for this plugin.
*
* Adds a settings option to the WordPress
* admin dashboard.
*
*/
class Time_To_Read_Admin {

	/**
	* The plugin name that identifies this plugin.
	*
	* @access protected
	* @var string $plugin_name A string that identifies the plugin.
	*/
	protected $plugin_name;

	/**
	* The current plugin version.
	*
	* @access protected
	* @var string $version A string that represents the current version.
	*/
	protected $version;

	/**
	* The plugin options
	*
	* @access protected
	* @var string $options An array of the plugin options
	*/
	protected $options;

	/**
	* Initialize the class and set its properties.
	*
	* @access public
	* @param string $plugin_name A string that identifies the plugin.
	* @param string $version The current plugin version.
	* @param array $options The plugin options
	*/
	public function __construct( $plugin_name, $version, $options ) {
		$this->plugin_name = $plugin_name;
		$this->version = $version;
		$this->options = $options;
	}

	/**
	* Registers the options page
	*
	* @access public
	*/
	public function add_menu() {
		add_options_page(
			'Time To Read Settings',
			'Time To Read',
			'manage_options',
			'my-unique-identifier',
			array( $this, 'options_page' )
		);
	}

	/**
	* Registers all the settings API settings
	* and callbacks.
	*
	* @access public
	*/
	public function settings_init() {
		register_setting(
			'plugin_page',
			't2r_options',
			array( $this, 'validate_settings' )
		);

		add_settings_section(
			'time_to_read_plugin_page_section',
			__( '', $this->plugin_name ),
			'',
			'plugin_page'
		);

		add_settings_field(
			'time_to_read_avg_wpm',
			__( 'Average Words Per Minute', $this->plugin_name ),
			array( $this, 'avg_wpm_render' ),
			'plugin_page',
			'time_to_read_plugin_page_section'
		);
	}

	/**
	* Average Wpm form field callback.
	*
	* @access public
	*/
	public function avg_wpm_render() {
		$options = $this->options;
		?>
		<input type='text' size="4" name='t2r_options[avg_wpm]' value='<?php echo $options['avg_wpm']; ?>'>
		<?php
	}

	/**
	* Average Wpm section callback.
	* Not used, but included in case it's
	* needed later.
	*
	* @access public
	*/
	public function settings_section_callback() {
		echo __( '', $this->plugin_name );
	}

	/**
	* The actual options page callback.
	*
	* @access public
	*/
	public function options_page() {
		if ( !current_user_can( 'manage_options' ) )  {
			wp_die( __( 'You do not have sufficient permissions to access this page.', $this->plugin_name ) );
		}
		?>

			<form action='options.php' method='post'>

Time To Read Settings

				<?php
				settings_fields( 'plugin_page' );
				do_settings_sections( 'plugin_page' );
				submit_button();
				?>
			</form>

		<?php
	}

	/**
	* A validation callback to keep people
	* from values that aren't a positive integer.
	*
	* Note:
	* Didn't go too crazy with validation here. More
	* validation for length and such would likely be
	* needed for a production environment.
	*
	* @access public
	* @param array $input Incoming form values.
	* @return array $output Outgoing sanitized values.
	*/
	public function validate_settings( $input ) {
		$output = array();
		$avg_wpm = trim( $input['avg_wpm'] );
		if ( isset( $input['avg_wpm'] ) && ctype_digit( $input['avg_wpm'] ) ) {
			$output['avg_wpm'] = $input['avg_wpm'];
		}else{
			$output['avg_wpm'] = DEFAULT_AVG_WPM;
		}
		return $output;
	}
}


text:
require 'spec_helper'
describe LanguageMixer do
  describe '#configure' do
    before do
      LanguageMixer.configure do |config|
        config.yandex_api_key = 'test1234'
      end
    end

    it 'has an API key for Yandex' do
      expect(LanguageMixer.configuration.yandex_api_key).to eq('test1234')
    end
  end

  describe ".reset" do
    before :each do
      LanguageMixer.configure do |config|
        config.yandex_api_key = 'test1234'
      end
    end

    it "resets the configuration" do
      LanguageMixer.reset

      config = LanguageMixer.configuration

      expect(config.yandex_api_key).to be_nil
    end
  end

  describe ".translate" do
    before :each do
      LanguageMixer.reset
    end

    it "can successfully translate a file" do
      file = LanguageMixer::File.new('spec/fixtures/test_file_2.md')
      file_contents = file.text
      result = LanguageMixer.translate('spec/fixtures/test_file_2.md', false)
      expect(result).not_to eq(file_contents)
    end
  end

end