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

package com.google.cloud.automl.v1;

/**
 *
 *
 *

 * Bounding box matching model metrics for a single intersection-over-union
 * threshold and multiple label match confidence thresholds.
 *

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

  private BoundingBoxMetricsEntry() {
    confidenceMetricsEntries_ = java.util.Collections.emptyList();
  }

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

  @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.v1.Detection
        .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_descriptor;
  }

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

  public interface ConfidenceMetricsEntryOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     *

     * Output only. The confidence threshold value used to compute the metrics.
     *

     *
     * float confidence_threshold = 1;
     *
     * @return The confidenceThreshold.
     */
    float getConfidenceThreshold();

    /**
     *
     *
     *

     * Output only. Recall under the given confidence threshold.
     *

     *
     * float recall = 2;
     *
     * @return The recall.
     */
    float getRecall();

    /**
     *
     *
     *

     * Output only. Precision under the given confidence threshold.
     *

     *
     * float precision = 3;
     *
     * @return The precision.
     */
    float getPrecision();

    /**
     *
     *
     *

     * Output only. The harmonic mean of recall and precision.
     *

     *
     * float f1_score = 4;
     *
     * @return The f1Score.
     */
    float getF1Score();
  }
  /**
   *
   *
   *

   * Metrics for a single confidence threshold.
   *

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

    private ConfidenceMetricsEntry() {}

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

    @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.v1.Detection
          .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.automl.v1.Detection
          .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.class,
              com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder
                  .class);
    }

    public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1;
    private float confidenceThreshold_;
    /**
     *
     *
     *

     * Output only. The confidence threshold value used to compute the metrics.
     *

     *
     * float confidence_threshold = 1;
     *
     * @return The confidenceThreshold.
     */
    @java.lang.Override
    public float getConfidenceThreshold() {
      return confidenceThreshold_;
    }

    public static final int RECALL_FIELD_NUMBER = 2;
    private float recall_;
    /**
     *
     *
     *

     * Output only. Recall under the given confidence threshold.
     *

     *
     * float recall = 2;
     *
     * @return The recall.
     */
    @java.lang.Override
    public float getRecall() {
      return recall_;
    }

    public static final int PRECISION_FIELD_NUMBER = 3;
    private float precision_;
    /**
     *
     *
     *

     * Output only. Precision under the given confidence threshold.
     *

     *
     * float precision = 3;
     *
     * @return The precision.
     */
    @java.lang.Override
    public float getPrecision() {
      return precision_;
    }

    public static final int F1_SCORE_FIELD_NUMBER = 4;
    private float f1Score_;
    /**
     *
     *
     *

     * Output only. The harmonic mean of recall and precision.
     *

     *
     * float f1_score = 4;
     *
     * @return The f1Score.
     */
    @java.lang.Override
    public float getF1Score() {
      return f1Score_;
    }

    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.Float.floatToRawIntBits(confidenceThreshold_) != 0) {
        output.writeFloat(1, confidenceThreshold_);
      }
      if (java.lang.Float.floatToRawIntBits(recall_) != 0) {
        output.writeFloat(2, recall_);
      }
      if (java.lang.Float.floatToRawIntBits(precision_) != 0) {
        output.writeFloat(3, precision_);
      }
      if (java.lang.Float.floatToRawIntBits(f1Score_) != 0) {
        output.writeFloat(4, f1Score_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) {
        size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_);
      }
      if (java.lang.Float.floatToRawIntBits(recall_) != 0) {
        size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, recall_);
      }
      if (java.lang.Float.floatToRawIntBits(precision_) != 0) {
        size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, precision_);
      }
      if (java.lang.Float.floatToRawIntBits(f1Score_) != 0) {
        size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, f1Score_);
      }
      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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry)) {
        return super.equals(obj);
      }
      com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry other =
          (com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) obj;

      if (java.lang.Float.floatToIntBits(getConfidenceThreshold())
          != java.lang.Float.floatToIntBits(other.getConfidenceThreshold())) return false;
      if (java.lang.Float.floatToIntBits(getRecall())
          != java.lang.Float.floatToIntBits(other.getRecall())) return false;
      if (java.lang.Float.floatToIntBits(getPrecision())
          != java.lang.Float.floatToIntBits(other.getPrecision())) return false;
      if (java.lang.Float.floatToIntBits(getF1Score())
          != java.lang.Float.floatToIntBits(other.getF1Score())) 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) + CONFIDENCE_THRESHOLD_FIELD_NUMBER;
      hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceThreshold());
      hash = (37 * hash) + RECALL_FIELD_NUMBER;
      hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecall());
      hash = (37 * hash) + PRECISION_FIELD_NUMBER;
      hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecision());
      hash = (37 * hash) + F1_SCORE_FIELD_NUMBER;
      hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1Score());
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

    public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
        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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
        parseFrom(com.google.protobuf.ByteString data)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

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

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

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

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

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

    public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
        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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry 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;
    }
    /**
     *
     *
     *

     * Metrics for a single confidence threshold.
     *

     *
     * Protobuf type {@code google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry)
        com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.automl.v1.Detection
            .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.automl.v1.Detection
            .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.class,
                com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder
                    .class);
      }

      // Construct using
      // com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.newBuilder()
      private Builder() {}

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

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

        recall_ = 0F;

        precision_ = 0F;

        f1Score_ = 0F;

        return this;
      }

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

      @java.lang.Override
      public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
          getDefaultInstanceForType() {
        return com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
            .getDefaultInstance();
      }

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

      @java.lang.Override
      public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
          buildPartial() {
        com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry result =
            new com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry(this);
        result.confidenceThreshold_ = confidenceThreshold_;
        result.recall_ = recall_;
        result.precision_ = precision_;
        result.f1Score_ = f1Score_;
        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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) {
          return mergeFrom(
              (com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry other) {
        if (other
            == com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
                .getDefaultInstance()) return this;
        if (other.getConfidenceThreshold() != 0F) {
          setConfidenceThreshold(other.getConfidenceThreshold());
        }
        if (other.getRecall() != 0F) {
          setRecall(other.getRecall());
        }
        if (other.getPrecision() != 0F) {
          setPrecision(other.getPrecision());
        }
        if (other.getF1Score() != 0F) {
          setF1Score(other.getF1Score());
        }
        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 13:
                {
                  confidenceThreshold_ = input.readFloat();

                  break;
                } // case 13
              case 21:
                {
                  recall_ = input.readFloat();

                  break;
                } // case 21
              case 29:
                {
                  precision_ = input.readFloat();

                  break;
                } // case 29
              case 37:
                {
                  f1Score_ = input.readFloat();

                  break;
                } // case 37
              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 float confidenceThreshold_;
      /**
       *
       *
       *

       * Output only. The confidence threshold value used to compute the metrics.
       *

       *
       * float confidence_threshold = 1;
       *
       * @return The confidenceThreshold.
       */
      @java.lang.Override
      public float getConfidenceThreshold() {
        return confidenceThreshold_;
      }
      /**
       *
       *
       *

       * Output only. The confidence threshold value used to compute the metrics.
       *

       *
       * float confidence_threshold = 1;
       *
       * @param value The confidenceThreshold to set.
       * @return This builder for chaining.
       */
      public Builder setConfidenceThreshold(float value) {

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

       * Output only. The confidence threshold value used to compute the metrics.
       *

       *
       * float confidence_threshold = 1;
       *
       * @return This builder for chaining.
       */
      public Builder clearConfidenceThreshold() {

        confidenceThreshold_ = 0F;
        onChanged();
        return this;
      }

      private float recall_;
      /**
       *
       *
       *

       * Output only. Recall under the given confidence threshold.
       *

       *
       * float recall = 2;
       *
       * @return The recall.
       */
      @java.lang.Override
      public float getRecall() {
        return recall_;
      }
      /**
       *
       *
       *

       * Output only. Recall under the given confidence threshold.
       *

       *
       * float recall = 2;
       *
       * @param value The recall to set.
       * @return This builder for chaining.
       */
      public Builder setRecall(float value) {

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

       * Output only. Recall under the given confidence threshold.
       *

       *
       * float recall = 2;
       *
       * @return This builder for chaining.
       */
      public Builder clearRecall() {

        recall_ = 0F;
        onChanged();
        return this;
      }

      private float precision_;
      /**
       *
       *
       *

       * Output only. Precision under the given confidence threshold.
       *

       *
       * float precision = 3;
       *
       * @return The precision.
       */
      @java.lang.Override
      public float getPrecision() {
        return precision_;
      }
      /**
       *
       *
       *

       * Output only. Precision under the given confidence threshold.
       *

       *
       * float precision = 3;
       *
       * @param value The precision to set.
       * @return This builder for chaining.
       */
      public Builder setPrecision(float value) {

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

       * Output only. Precision under the given confidence threshold.
       *

       *
       * float precision = 3;
       *
       * @return This builder for chaining.
       */
      public Builder clearPrecision() {

        precision_ = 0F;
        onChanged();
        return this;
      }

      private float f1Score_;
      /**
       *
       *
       *

       * Output only. The harmonic mean of recall and precision.
       *

       *
       * float f1_score = 4;
       *
       * @return The f1Score.
       */
      @java.lang.Override
      public float getF1Score() {
        return f1Score_;
      }
      /**
       *
       *
       *

       * Output only. The harmonic mean of recall and precision.
       *

       *
       * float f1_score = 4;
       *
       * @param value The f1Score to set.
       * @return This builder for chaining.
       */
      public Builder setF1Score(float value) {

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

       * Output only. The harmonic mean of recall and precision.
       *

       *
       * float f1_score = 4;
       *
       * @return This builder for chaining.
       */
      public Builder clearF1Score() {

        f1Score_ = 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry)
    private static final com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE =
          new com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry();
    }

    public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public static final int IOU_THRESHOLD_FIELD_NUMBER = 1;
  private float iouThreshold_;
  /**
   *
   *
   *

   * Output only. The intersection-over-union threshold value used to compute
   * this metrics entry.
   *

   *
   * float iou_threshold = 1;
   *
   * @return The iouThreshold.
   */
  @java.lang.Override
  public float getIouThreshold() {
    return iouThreshold_;
  }

  public static final int MEAN_AVERAGE_PRECISION_FIELD_NUMBER = 2;
  private float meanAveragePrecision_;
  /**
   *
   *
   *

   * Output only. The mean average precision, most often close to au_prc.
   *

   *
   * float mean_average_precision = 2;
   *
   * @return The meanAveragePrecision.
   */
  @java.lang.Override
  public float getMeanAveragePrecision() {
    return meanAveragePrecision_;
  }

  public static final int CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER = 3;
  private java.util.List<com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry>
      confidenceMetricsEntries_;
  /**
   *
   *
   *

   * Output only. Metrics for each label-match confidence_threshold from
   * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
   * derived from them.
   *

   *
   *
   * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
   *
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry>
      getConfidenceMetricsEntriesList() {
    return confidenceMetricsEntries_;
  }
  /**
   *
   *
   *

   * Output only. Metrics for each label-match confidence_threshold from
   * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
   * derived from them.
   *

   *
   *
   * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
   *
   */
  @java.lang.Override
  public java.util.List<
          ? extends
              com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder>
      getConfidenceMetricsEntriesOrBuilderList() {
    return confidenceMetricsEntries_;
  }
  /**
   *
   *
   *

   * Output only. Metrics for each label-match confidence_threshold from
   * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
   * derived from them.
   *

   *
   *
   * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
   *
   */
  @java.lang.Override
  public int getConfidenceMetricsEntriesCount() {
    return confidenceMetricsEntries_.size();
  }
  /**
   *
   *
   *

   * Output only. Metrics for each label-match confidence_threshold from
   * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
   * derived from them.
   *

   *
   *
   * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
   *
   */
  @java.lang.Override
  public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
      getConfidenceMetricsEntries(int index) {
    return confidenceMetricsEntries_.get(index);
  }
  /**
   *
   *
   *

   * Output only. Metrics for each label-match confidence_threshold from
   * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
   * derived from them.
   *

   *
   *
   * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
   *
   */
  @java.lang.Override
  public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder
      getConfidenceMetricsEntriesOrBuilder(int index) {
    return confidenceMetricsEntries_.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.Float.floatToRawIntBits(iouThreshold_) != 0) {
      output.writeFloat(1, iouThreshold_);
    }
    if (java.lang.Float.floatToRawIntBits(meanAveragePrecision_) != 0) {
      output.writeFloat(2, meanAveragePrecision_);
    }
    for (int i = 0; i < confidenceMetricsEntries_.size(); i++) {
      output.writeMessage(3, confidenceMetricsEntries_.get(i));
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (java.lang.Float.floatToRawIntBits(iouThreshold_) != 0) {
      size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, iouThreshold_);
    }
    if (java.lang.Float.floatToRawIntBits(meanAveragePrecision_) != 0) {
      size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, meanAveragePrecision_);
    }
    for (int i = 0; i < confidenceMetricsEntries_.size(); i++) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              3, confidenceMetricsEntries_.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.cloud.automl.v1.BoundingBoxMetricsEntry)) {
      return super.equals(obj);
    }
    com.google.cloud.automl.v1.BoundingBoxMetricsEntry other =
        (com.google.cloud.automl.v1.BoundingBoxMetricsEntry) obj;

    if (java.lang.Float.floatToIntBits(getIouThreshold())
        != java.lang.Float.floatToIntBits(other.getIouThreshold())) return false;
    if (java.lang.Float.floatToIntBits(getMeanAveragePrecision())
        != java.lang.Float.floatToIntBits(other.getMeanAveragePrecision())) return false;
    if (!getConfidenceMetricsEntriesList().equals(other.getConfidenceMetricsEntriesList()))
      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) + IOU_THRESHOLD_FIELD_NUMBER;
    hash = (53 * hash) + java.lang.Float.floatToIntBits(getIouThreshold());
    hash = (37 * hash) + MEAN_AVERAGE_PRECISION_FIELD_NUMBER;
    hash = (53 * hash) + java.lang.Float.floatToIntBits(getMeanAveragePrecision());
    if (getConfidenceMetricsEntriesCount() > 0) {
      hash = (37 * hash) + CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER;
      hash = (53 * hash) + getConfidenceMetricsEntriesList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry 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.v1.BoundingBoxMetricsEntry parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

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

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

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

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

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

   * Bounding box matching model metrics for a single intersection-over-union
   * threshold and multiple label match confidence thresholds.
   *

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

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

    // Construct using com.google.cloud.automl.v1.BoundingBoxMetricsEntry.newBuilder()
    private Builder() {}

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

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

      meanAveragePrecision_ = 0F;

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

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

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

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

    @java.lang.Override
    public com.google.cloud.automl.v1.BoundingBoxMetricsEntry buildPartial() {
      com.google.cloud.automl.v1.BoundingBoxMetricsEntry result =
          new com.google.cloud.automl.v1.BoundingBoxMetricsEntry(this);
      int from_bitField0_ = bitField0_;
      result.iouThreshold_ = iouThreshold_;
      result.meanAveragePrecision_ = meanAveragePrecision_;
      if (confidenceMetricsEntriesBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          confidenceMetricsEntries_ =
              java.util.Collections.unmodifiableList(confidenceMetricsEntries_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.confidenceMetricsEntries_ = confidenceMetricsEntries_;
      } else {
        result.confidenceMetricsEntries_ = confidenceMetricsEntriesBuilder_.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.cloud.automl.v1.BoundingBoxMetricsEntry) {
        return mergeFrom((com.google.cloud.automl.v1.BoundingBoxMetricsEntry) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.automl.v1.BoundingBoxMetricsEntry other) {
      if (other == com.google.cloud.automl.v1.BoundingBoxMetricsEntry.getDefaultInstance())
        return this;
      if (other.getIouThreshold() != 0F) {
        setIouThreshold(other.getIouThreshold());
      }
      if (other.getMeanAveragePrecision() != 0F) {
        setMeanAveragePrecision(other.getMeanAveragePrecision());
      }
      if (confidenceMetricsEntriesBuilder_ == null) {
        if (!other.confidenceMetricsEntries_.isEmpty()) {
          if (confidenceMetricsEntries_.isEmpty()) {
            confidenceMetricsEntries_ = other.confidenceMetricsEntries_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureConfidenceMetricsEntriesIsMutable();
            confidenceMetricsEntries_.addAll(other.confidenceMetricsEntries_);
          }
          onChanged();
        }
      } else {
        if (!other.confidenceMetricsEntries_.isEmpty()) {
          if (confidenceMetricsEntriesBuilder_.isEmpty()) {
            confidenceMetricsEntriesBuilder_.dispose();
            confidenceMetricsEntriesBuilder_ = null;
            confidenceMetricsEntries_ = other.confidenceMetricsEntries_;
            bitField0_ = (bitField0_ & ~0x00000001);
            confidenceMetricsEntriesBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getConfidenceMetricsEntriesFieldBuilder()
                    : null;
          } else {
            confidenceMetricsEntriesBuilder_.addAllMessages(other.confidenceMetricsEntries_);
          }
        }
      }
      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 13:
              {
                iouThreshold_ = input.readFloat();

                break;
              } // case 13
            case 21:
              {
                meanAveragePrecision_ = input.readFloat();

                break;
              } // case 21
            case 26:
              {
                com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry m =
                    input.readMessage(
                        com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
                            .parser(),
                        extensionRegistry);
                if (confidenceMetricsEntriesBuilder_ == null) {
                  ensureConfidenceMetricsEntriesIsMutable();
                  confidenceMetricsEntries_.add(m);
                } else {
                  confidenceMetricsEntriesBuilder_.addMessage(m);
                }
                break;
              } // case 26
            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 float iouThreshold_;
    /**
     *
     *
     *

     * Output only. The intersection-over-union threshold value used to compute
     * this metrics entry.
     *

     *
     * float iou_threshold = 1;
     *
     * @return The iouThreshold.
     */
    @java.lang.Override
    public float getIouThreshold() {
      return iouThreshold_;
    }
    /**
     *
     *
     *

     * Output only. The intersection-over-union threshold value used to compute
     * this metrics entry.
     *

     *
     * float iou_threshold = 1;
     *
     * @param value The iouThreshold to set.
     * @return This builder for chaining.
     */
    public Builder setIouThreshold(float value) {

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

     * Output only. The intersection-over-union threshold value used to compute
     * this metrics entry.
     *

     *
     * float iou_threshold = 1;
     *
     * @return This builder for chaining.
     */
    public Builder clearIouThreshold() {

      iouThreshold_ = 0F;
      onChanged();
      return this;
    }

    private float meanAveragePrecision_;
    /**
     *
     *
     *

     * Output only. The mean average precision, most often close to au_prc.
     *

     *
     * float mean_average_precision = 2;
     *
     * @return The meanAveragePrecision.
     */
    @java.lang.Override
    public float getMeanAveragePrecision() {
      return meanAveragePrecision_;
    }
    /**
     *
     *
     *

     * Output only. The mean average precision, most often close to au_prc.
     *

     *
     * float mean_average_precision = 2;
     *
     * @param value The meanAveragePrecision to set.
     * @return This builder for chaining.
     */
    public Builder setMeanAveragePrecision(float value) {

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

     * Output only. The mean average precision, most often close to au_prc.
     *

     *
     * float mean_average_precision = 2;
     *
     * @return This builder for chaining.
     */
    public Builder clearMeanAveragePrecision() {

      meanAveragePrecision_ = 0F;
      onChanged();
      return this;
    }

    private java.util.List<
            com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry>
        confidenceMetricsEntries_ = java.util.Collections.emptyList();

    private void ensureConfidenceMetricsEntriesIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        confidenceMetricsEntries_ =
            new java.util.ArrayList<
                com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry>(
                confidenceMetricsEntries_);
        bitField0_ |= 0x00000001;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry,
            com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder,
            com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder>
        confidenceMetricsEntriesBuilder_;

    /**
     *
     *
     *

     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     *

     *
     *
     * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
     *
     */
    public java.util.List<com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry>
        getConfidenceMetricsEntriesList() {
      if (confidenceMetricsEntriesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(confidenceMetricsEntries_);
      } else {
        return confidenceMetricsEntriesBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     *

     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     *

     *
     *
     * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
     *
     */
    public int getConfidenceMetricsEntriesCount() {
      if (confidenceMetricsEntriesBuilder_ == null) {
        return confidenceMetricsEntries_.size();
      } else {
        return confidenceMetricsEntriesBuilder_.getCount();
      }
    }
    /**
     *
     *
     *

     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     *

     *
     *
     * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
     *
     */
    public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
        getConfidenceMetricsEntries(int index) {
      if (confidenceMetricsEntriesBuilder_ == null) {
        return confidenceMetricsEntries_.get(index);
      } else {
        return confidenceMetricsEntriesBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     *

     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     *

     *
     *
     * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
     *
     */
    public Builder setConfidenceMetricsEntries(
        int index,
        com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) {
      if (confidenceMetricsEntriesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureConfidenceMetricsEntriesIsMutable();
        confidenceMetricsEntries_.set(index, value);
        onChanged();
      } else {
        confidenceMetricsEntriesBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     *

     *
     *
     * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
     *
     */
    public Builder setConfidenceMetricsEntries(
        int index,
        com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder
            builderForValue) {
      if (confidenceMetricsEntriesBuilder_ == null) {
        ensureConfidenceMetricsEntriesIsMutable();
        confidenceMetricsEntries_.set(index, builderForValue.build());
        onChanged();
      } else {
        confidenceMetricsEntriesBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     *

     *
     *
     * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
     *
     */
    public Builder addConfidenceMetricsEntries(
        com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) {
      if (confidenceMetricsEntriesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureConfidenceMetricsEntriesIsMutable();
        confidenceMetricsEntries_.add(value);
        onChanged();
      } else {
        confidenceMetricsEntriesBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     *

     *
     *
     * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
     *
     */
    public Builder addConfidenceMetricsEntries(
        int index,
        com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) {
      if (confidenceMetricsEntriesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureConfidenceMetricsEntriesIsMutable();
        confidenceMetricsEntries_.add(index, value);
        onChanged();
      } else {
        confidenceMetricsEntriesBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     *

     *
     *
     * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
     *
     */
    public Builder addConfidenceMetricsEntries(
        com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder
            builderForValue) {
      if (confidenceMetricsEntriesBuilder_ == null) {
        ensureConfidenceMetricsEntriesIsMutable();
        confidenceMetricsEntries_.add(builderForValue.build());
        onChanged();
      } else {
        confidenceMetricsEntriesBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     *

     *
     *
     * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
     *
     */
    public Builder addConfidenceMetricsEntries(
        int index,
        com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder
            builderForValue) {
      if (confidenceMetricsEntriesBuilder_ == null) {
        ensureConfidenceMetricsEntriesIsMutable();
        confidenceMetricsEntries_.add(index, builderForValue.build());
        onChanged();
      } else {
        confidenceMetricsEntriesBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     *

     *
     *
     * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
     *
     */
    public Builder addAllConfidenceMetricsEntries(
        java.lang.Iterable<
                ? extends com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry>
            values) {
      if (confidenceMetricsEntriesBuilder_ == null) {
        ensureConfidenceMetricsEntriesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, confidenceMetricsEntries_);
        onChanged();
      } else {
        confidenceMetricsEntriesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     *

     *
     *
     * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
     *
     */
    public Builder clearConfidenceMetricsEntries() {
      if (confidenceMetricsEntriesBuilder_ == null) {
        confidenceMetricsEntries_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        confidenceMetricsEntriesBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     *

     *
     *
     * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
     *
     */
    public Builder removeConfidenceMetricsEntries(int index) {
      if (confidenceMetricsEntriesBuilder_ == null) {
        ensureConfidenceMetricsEntriesIsMutable();
        confidenceMetricsEntries_.remove(index);
        onChanged();
      } else {
        confidenceMetricsEntriesBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     *

     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     *

     *
     *
     * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
     *
     */
    public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder
        getConfidenceMetricsEntriesBuilder(int index) {
      return getConfidenceMetricsEntriesFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     *

     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     *

     *
     *
     * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
     *
     */
    public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder
        getConfidenceMetricsEntriesOrBuilder(int index) {
      if (confidenceMetricsEntriesBuilder_ == null) {
        return confidenceMetricsEntries_.get(index);
      } else {
        return confidenceMetricsEntriesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     *

     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     *

     *
     *
     * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
     *
     */
    public java.util.List<
            ? extends
                com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder>
        getConfidenceMetricsEntriesOrBuilderList() {
      if (confidenceMetricsEntriesBuilder_ != null) {
        return confidenceMetricsEntriesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(confidenceMetricsEntries_);
      }
    }
    /**
     *
     *
     *

     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     *

     *
     *
     * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
     *
     */
    public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder
        addConfidenceMetricsEntriesBuilder() {
      return getConfidenceMetricsEntriesFieldBuilder()
          .addBuilder(
              com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
                  .getDefaultInstance());
    }
    /**
     *
     *
     *

     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     *

     *
     *
     * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
     *
     */
    public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder
        addConfidenceMetricsEntriesBuilder(int index) {
      return getConfidenceMetricsEntriesFieldBuilder()
          .addBuilder(
              index,
              com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
                  .getDefaultInstance());
    }
    /**
     *
     *
     *

     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     *

     *
     *
     * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
     *
     */
    public java.util.List<
            com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder>
        getConfidenceMetricsEntriesBuilderList() {
      return getConfidenceMetricsEntriesFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry,
            com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder,
            com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder>
        getConfidenceMetricsEntriesFieldBuilder() {
      if (confidenceMetricsEntriesBuilder_ == null) {
        confidenceMetricsEntriesBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry,
                com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder,
                com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder>(
                confidenceMetricsEntries_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        confidenceMetricsEntries_ = null;
      }
      return confidenceMetricsEntriesBuilder_;
    }

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

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

  static {
    DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BoundingBoxMetricsEntry();
  }

  public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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


text:
<?php

namespace Jirro\Component\Account\Auth;

use Jirro\Component\Http\Request\RequestAwareInterface;
use Jirro\Component\ORM\ObjectManager\ObjectManagerAwareInterface;
use Jirro\Bundle\AccountBundle\Domain\User;

interface AuthInterface extends RequestAwareInterface, ObjectManagerAwareInterface
{
    public function setAuthenticatedUser(User $authenticatedUser);

    public function getAuthenticatedUser();

    public function hasAuthenticatedUser();

    public function authenticate($identity, $credential);

    public function deauthenticate();

    public function isAuthenticatedUserAuthorized($route);
}

redpajama_set_name: RedPajamaGithub


text:
package javax.management;

/**
 * Thrown when a requested service is unsupported.
 *
 * @author Andrew John Hughes (gnu_andrew@member.fsf.org)
 * @since 1.5
 */
public class ServiceNotFoundException
  extends OperationsException
{

  /**
   * Compatible with JDK 1.5
   */
  private static final long serialVersionUID = -3990675661956646827L;

  /**
   * Constructs a new ServiceNotFoundException.
   */
  public ServiceNotFoundException()
  {
    super();
  }

  /**
   * Constructs a new ServiceNotFoundException
   * with the specified message.
   *
   * @param message the error message to give to the user.
   */
  public ServiceNotFoundException(String message)
  {
    super(message);
  }

}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace binance_dotnet.objects
{
    public class Response_DepositHistory : APIResponse
    {
        public Depositlist[] depositList { get; set; }
        public bool success { get; set; }
    }

    public class Depositlist
    {
        public long insertTime { get; set; }
        public float amount { get; set; }
        public string asset { get; set; }
        public int status { get; set; }
    }
}


text:
<?php

namespace hongmvc\di;

class ContainerBuilder
{
	private $_services = [];

    public function RegisterType(string $serviceType)
    {
    	if (isset($this->_services[$serviceType])) {
            return $this->_services[$serviceType];
        }

    	$reflection  = new ReflectionClass($serviceType);
		$instance = $reflection->newInstance();
		$this->_services[$serviceType] = $instance;

		return $instance;
    }

    public function build() {

    }
}

?>


text:
<ion-view title="De tafel van Kai - selecteren" ng-controller="TableSelectCtrl">
	<ion-content padding="true">

				Tafel
				<input type="number" ng-model="practice" readonly>

					<button class="button button-large button-stable" ng-click="tablePractice(1)">1</button>

					<button class="button button-large button-stable" ng-click="tablePractice(2)">2</button>

					<button class="button button-large button-stable" ng-click="tablePractice(3)">3</button>

					<button class="button button-large button-stable" ng-click="tablePractice(4)">4</button>

					<button class="button button-large button-stable" ng-click="tablePractice(5)">5</button>

					<button class="button button-large button-stable" ng-click="tablePractice(6)">6</button>

					<button class="button button-large button-stable" ng-click="tablePractice(7)">7</button>

					<button class="button button-large button-stable" ng-click="tablePractice(8)">8</button>

					<button class="button button-large button-stable" ng-click="tablePractice(9)">9</button>

					<button class="button button-large button-stable" ng-click="tablePractice(0)">0</button>

					<button class="button button-large button-assertive icon ion-close-circled" ng-click="eraseInput()"></button>

					<button class="button button-large button-balanced icon ion-checkmark-circled" ng-click="startPractice()"></button>

					<button class="button button-large icon ion-help" ng-click="startLearning()"></button>

	</ion-content>
</ion-view>


text:
<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Subtema_model extends CI_Model {

    public function __construct() {
        parent::__construct();
        $this->load->Database('default');
    }

    public function obtiene_nombre($subtema) {
        $this->db->select('nombre');
        $this->db->where('subtema.id', $subtema);
        $query = $this->db->get('subtema');
        if ($query->num_rows() > 0) {
            return $query->row();
        } else {
            return null;
        }
    }

    public function crea_subtema($datos_stema) {
        $this->db->insert('subtema', $datos_stema);
        return $this->db->insert_id();
    }

    public function verifica_existencia_subtema($subtema) {
        $this->db->where('tema_id', $subtema['tema_id']);
        $this->db->where('numero ', $subtema['numero']);
         $this->db->where('nombre ', $subtema['nombre']);
        // $this->db->where('descripcion  ', $subtema['descripcion']);
        $query = $this->db->get('subtema');
        if ($query->num_rows() > 0) {
            return TRUE;
        } else {
            return FALSE;
        }
    }

    public function obtiene_subtemas($id) {
        $this->db->select('id,numero,nombre');
        $this->db->where('tema_id', $id);
        $query = $this->db->get('subtema');
        if ($query->num_rows() > 0) {
            return $query->result();
        } else {
            return NULL;
        }
    }

    public function obtiene_subtema($tema) {
        // $this->db->distinct();
        /* SELECT
          tema.numero AS nt,tema.nombre AS nombtet,
          subtema.numero AS ns,subtema.nombre AS nombres,
          subsubtema.numero AS nss,subsubtema.nombre  AS nombress
          FROM tema
          INNER JOIN subtema ON subtema.tema_id=tema.id
          LEFT JOIN subsubtema ON subsubtema.subtema_id=subtema.id

          ORDER BY(tema.numero) */
        $this->db->select('tema.id AS idt, tema.numero AS nt,tema.nombre AS nombret,
            subtema.id AS ids,subtema.numero AS ns,subtema.nombre AS nombres');
//subsubtema.numero AS nss,subsubtema.nombre  AS nombress');
        $this->db->from('tema');
        $this->db->where('subtema.tema_id', $tema);
        //    $this->db->join('curso', 'curso.id=tema.curso_id', 'left');
        $this->db->join('subtema', 'subtema.tema_id=tema.id', 'inner');
        //   $this->db->join('subsubtema', 'subsubtema.subtema_id=subtema.id','left');
        $this->db->order_by('tema.numero,subtema.numero');
        // $this->db->group_by('subtema.numero');
        $query = $this->db->get();
        if ($query->num_rows() > 0) {
            return $query->result();
        } else {
            return NULL;
        }
    }

}


text:
export function unpack(pathToArchive: string, whereToUnpack: string, errorCallback: (err: any) => void): void;
export function unpack(pathToArchive: string, errorCallback: (err: any) => void): void;
export function pack(pathToDirOrFile: string, pathToArchive: string, errorCallback: (err: any) => void): void;
export function list(pathToArchive: string, callback: (err: any, result: Result[]) => void): void;
export function cmd(command: string[], errorCallback: (err: any) => void): void;
export interface Result {
    name: string;
    date: string;
    time: string;
    attr: string;
    size: string;
    compressed: string;
    dateTime: string;
    crc: string;
    method: string;
    block: string;
    encrypted: string;
}


text:
{{$e := .Equipment}}

	{{if IntegerGreater $e.ID 0}}

Edit Equipment

	{{else}}

Add Equipment

	{{end}}
	<form action="/admin/equipment/{{$e.ID}}" class="form-horizontal" role="form" method="post">

			Title

				<input type="text" class="form-control" id="title" placeholder="Enter title" name="title" value="{{$e.Title}}">

			Description

				<textarea cols="30" rows="5" class="form-control" id="desc" placeholder="Enter description" name="desc">{{$e.Description}}</textarea>

			Components

						<input type="text" class="form-control new-component" placeholder="Add component">

						<button class="btn btn-primary add-component">Add</button>

					{{range $i, $c := $e.Components}}

						<input type="hidden" name="component[{{$i}}]" value="{{$c}}">
						{{$c}}

					{{end}}

				<button class="btn btn-danger" type="submit">Save</button>

	</form>


text:
static NSInteger INITIAL_REMAIN_TIME = 10;

@interface ViewController ()

@property(nonatomic,strong)NSTimer *timer;
@property(nonatomic,assign)NSInteger remainTime;

@property (weak, nonatomic) IBOutlet UIButton *simpleHUDButton;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)activateSimpleHUDToucheIn:(id)sender {

    CPSimpleHUD *hud = [CPSimpleHUD shareWaitingView];
    hud.loadingLabel.text = @"Simple HUD";
    hud.heightDarkViewContraint.constant = 250;
    hud.widthDarkViewContraint.constant = 250;
    hud.waitingMode = WaitingTypeSmallCubesLinear;
    [hud show];

    self.remainTime = INITIAL_REMAIN_TIME;

    self.timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(timerFire:) userInfo:nil repeats:YES];
}

-(void)timerFire:(NSTimer *)timer
{
    self.remainTime--;

    [self.simpleHUDButton setTitle:[NSString stringWithFormat:@"Time remaining %li",(long)self.remainTime] forState:UIControlStateNormal];

    if (self.remainTime == 0) {
        [[CPSimpleHUD shareWaitingView] hide];
        [self.simpleHUDButton setTitle:@"Activate Simple HUD" forState:UIControlStateNormal];

        [self.timer invalidate];
        self.timer = nil;
    }

    //We update the button label
}

@end


text:
using SunLine.Community.Web.ViewModels.Messages;
using System;
using System.Collections.Generic;

namespace SunLine.Community.Web.ViewModelsServices
{
    public interface ISpeechesViewModelService
    {
        IList<SpeechViewModel> CreateSpeechesViewModel(Guid userId);
        SpeechViewModel CreateSpeechViewModel(Guid? messageId = null);
    }
}


text:
package org.immutables.fixture.with;

import org.junit.jupiter.api.Test;

import java.math.RoundingMode;
import java.util.Optional;

import static org.immutables.check.Checkers.check;
import static org.junit.jupiter.api.Assertions.assertThrows;

public class WithEnumsTest {
  private static final ImmutableWithEnums TEST_IMMUTABLE = ImmutableWithEnums.builder()
          .roundingMode(RoundingMode.CEILING)
          .maybeRoundingMode(RoundingMode.HALF_DOWN)
          .nullableRoundingMode(RoundingMode.UNNECESSARY)
          .build();
  private static final ImmutableWithEnums TEST_IMMUTABLE_WITH_NULLS = ImmutableWithEnums.builder()
          .roundingMode(RoundingMode.DOWN)
          .maybeRoundingMode(Optional.empty())
          .nullableRoundingMode(null)
          .build();

  @Test
  public void doNotAllowNullEnumValueInNonNullableWith() {
    assertThrows(NullPointerException.class, () -> TEST_IMMUTABLE.withRoundingMode(null));
  }

  @Test
  public void allowNullEnumValueInNullableWith() {
    ImmutableWithEnums withNullableRoundingMode = TEST_IMMUTABLE.withNullableRoundingMode(null);
    check(withNullableRoundingMode.getNullableRoundingMode()).isNull();
  }

  @Test
  public void withOnEqualEnumValueIsSameInstance() {
    check(TEST_IMMUTABLE.withRoundingMode(RoundingMode.CEILING)).same(TEST_IMMUTABLE);
    check(TEST_IMMUTABLE.withMaybeRoundingMode(RoundingMode.HALF_DOWN)).same(TEST_IMMUTABLE);
    check(TEST_IMMUTABLE.withNullableRoundingMode(RoundingMode.UNNECESSARY)).same(TEST_IMMUTABLE);
  }

  @Test
  public void withOnNullEnumValueIsSameInstance() {
    check(TEST_IMMUTABLE_WITH_NULLS.withNullableRoundingMode(null)).same(TEST_IMMUTABLE_WITH_NULLS);
    check(TEST_IMMUTABLE_WITH_NULLS.withMaybeRoundingMode(Optional.empty())).same(TEST_IMMUTABLE_WITH_NULLS);
  }

  @Test
  public void withOnDifferentEnumValueIsNotSameInstance() {
    check(TEST_IMMUTABLE.withRoundingMode(RoundingMode.FLOOR)).not().same(TEST_IMMUTABLE);
    check(TEST_IMMUTABLE.withNullableRoundingMode(RoundingMode.HALF_UP)).not().same(TEST_IMMUTABLE);
    check(TEST_IMMUTABLE.withMaybeRoundingMode(RoundingMode.CEILING)).not().same(TEST_IMMUTABLE);
  }

  @Test
  public void withOnNullEnumValueWithEnumValueIsNotSameInstance() {
    check(TEST_IMMUTABLE_WITH_NULLS.withNullableRoundingMode(RoundingMode.CEILING))
            .not().same(TEST_IMMUTABLE_WITH_NULLS);
    check(TEST_IMMUTABLE_WITH_NULLS.withMaybeRoundingMode(RoundingMode.UNNECESSARY))
            .not().same(TEST_IMMUTABLE_WITH_NULLS);
    check(TEST_IMMUTABLE_WITH_NULLS.withMaybeRoundingMode(Optional.of(RoundingMode.HALF_UP)))
            .not().same(TEST_IMMUTABLE_WITH_NULLS);
  }

  @Test
  public void withOnDifferentEnumValueIsEqualTo() {
    ImmutableWithEnums testImmutableWithFloorRoundingMode = ImmutableWithEnums.builder()
            .roundingMode(RoundingMode.FLOOR)
            .maybeRoundingMode(RoundingMode.HALF_DOWN)
            .nullableRoundingMode(RoundingMode.UNNECESSARY)
            .build();

    check(TEST_IMMUTABLE.withRoundingMode(RoundingMode.FLOOR)).is(testImmutableWithFloorRoundingMode);
  }

  @Test
  public void withOnNullEnumValueWithEnumValueIsEqualTo() {
    ImmutableWithEnums testImmutableWithFloorNullableRoundingMode = ImmutableWithEnums.builder()
            .roundingMode(RoundingMode.DOWN)
            .maybeRoundingMode(Optional.empty())
            .nullableRoundingMode(RoundingMode.FLOOR)
            .build();

    check(TEST_IMMUTABLE_WITH_NULLS.withNullableRoundingMode(RoundingMode.FLOOR))
            .is(testImmutableWithFloorNullableRoundingMode);
  }

  @Test
  public void withOnOptionalEnumValueWithEnumValueIsEqualTo() {
    ImmutableWithEnums testImmutableWithHalfDownMaybeRoundingMode = ImmutableWithEnums.builder()
            .roundingMode(RoundingMode.DOWN)
            .maybeRoundingMode(RoundingMode.HALF_DOWN)
            .nullableRoundingMode(null)
            .build();

    check(TEST_IMMUTABLE_WITH_NULLS.withMaybeRoundingMode(RoundingMode.HALF_DOWN))
            .is(testImmutableWithHalfDownMaybeRoundingMode);
  }

  @Test
  public void withOnOptionalEnumValueWithEmptyOptionalIsEqualTo() {
    ImmutableWithEnums testImmutableWithEmptyMaybeRoundingMode = ImmutableWithEnums.builder()
            .roundingMode(RoundingMode.CEILING)
            .maybeRoundingMode(Optional.empty())
            .nullableRoundingMode(RoundingMode.UNNECESSARY)
            .build();

    check(TEST_IMMUTABLE.withMaybeRoundingMode(Optional.empty()))
            .is(testImmutableWithEmptyMaybeRoundingMode);
  }
}


text:
using System;
using Rhino.ServiceBus.DataStructures;
using Rhino.ServiceBus.Internal;
using Rhino.ServiceBus.Util;

namespace Rhino.ServiceBus.Impl
{
    public class EndpointRouter : IEndpointRouter
    {
        private readonly Hashtable<Uri, Uri> mapping = new Hashtable<Uri, Uri>();

        public void Init()
        {
        }

        public void RemapEndpoint(Uri originalEndpoint, Uri newEndpoint)
        {
            mapping.Write(writer => writer.Add(originalEndpoint.NormalizeLocalhost(), newEndpoint.NormalizeLocalhost()));
        }

        public Endpoint GetRoutedEndpoint(Uri endpoint)
        {
            Uri newEndpoint = null;
            mapping.Read(reader => reader.TryGetValue(endpoint.NormalizeLocalhost(), out newEndpoint));
            return new Endpoint
            {
                Uri = newEndpoint ?? endpoint
            };
        }
    }
}


text:
<md-menu ng-controller="Body.Cell.Row.Options.Controller as $ctrl">
	<md-button aria-label="Open row menu"
	           class="md-icon-button"
	           q-grid:raise="click"
	           ng-click="$ctrl.openMenu($mdMenu, $event)">
		<md-icon class="q-grid-icon">more_vert</md-icon>
	</md-button>
	<md-menu-content width="4">
		<md-menu-item ng-repeat="$action in $cell.column.editorOptions.actions">
			<md-button ng-click="$action.command.execute($cell)"
			           ng-disabled="!$action.command.canExecute($cell)">
				<md-icon class="q-grid-icon"
				         ng-bind="$action.icon">
				</md-icon>
				{{$action.title}}
			</md-button>
		</md-menu-item>
	</md-menu-content>
</md-menu>


text:
<?php

// autoload.php @generated by Composer

require_once __DIR__ . '/composer' . '/autoload_real.php';

return ComposerAutoloaderInitfde918e690645846a2aa231d1f7a3029::getLoader();


text:
class AddPTipoEdadToHistoriaClinica < ActiveRecord::Migration
  def change
    add_column :historias_clinicas, :p_tipo_edad, :string
  end
end


text:
import { NgModule } from '@angular/core';

import { NativeScriptModule } from 'nativescript-angular/nativescript.module';
import { NativeScriptRouterModule } from 'nativescript-angular/router';
import { NativeScriptUISideDrawerModule } from 'nativescript-telerik-ui/sidedrawer/angular/side-drawer-directives';

import { SideDrawerPageComponent } from './shared/side-drawer-page/side-drawer-page.component';
import { BorderlessBtnDirective } from './shared/side-drawer-page/borderless-btn.directive';

import { StoreModule } from '@ngrx/store';
import { reducer } from './shared/reducers';

import { AppComponent } from './app.component';
import { MonumentsService } from './shared/monuments.service';
import { UserDAO } from './shared/user.dao';
import { UserService } from './shared/user.service';
import { routes, navigatableComponents } from './app.routing';
import { ComponentsModule } from './components';

@NgModule({
  imports: [
    NativeScriptModule,
    NativeScriptUISideDrawerModule,
    NativeScriptRouterModule,
    ComponentsModule,
    NativeScriptRouterModule.forRoot(routes),
    StoreModule.provideStore(reducer)
  ],
  declarations: [
    AppComponent,
    SideDrawerPageComponent,
    BorderlessBtnDirective,
    ...navigatableComponents
  ],
  providers: [ MonumentsService, UserService, UserDAO ],
  bootstrap: [ AppComponent ]
})
export class AppModule {

}


text: export * from './components/lightbox/Lightbox';


text:
package com.example.urlshortener.repository;

import com.example.urlshortener.models.Url;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;
import java.util.Optional;

public interface UrlDataRepository extends CrudRepository<Url, Integer> {

    @Query("select u from Url u where users_id=:users_id")
    public List<Url> getUrlsById(@Param("users_id") Integer users_id);
}


text:
package com.scipionyx.butterflyeffect.backend.configuration.service;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.scipionyx.butterflyeffect.backend.configuration.api.IResponse;
import com.scipionyx.butterflyeffect.backend.configuration.api.IVerifyRESTService;
import com.scipionyx.butterflyeffect.backend.configuration.api.IWriteRESTService;
import com.scipionyx.butterflyeffect.configuration.model.IConfiguration;

/**
 *
 *
 *
 * @author Renato Mendes
 * @param <T>
 */
public abstract class AbstractConfigurationRESTService<T extends IConfiguration>
		implements IWriteRESTService<T>, IVerifyRESTService<T> {

	private static final Logger LOGGER = LoggerFactory.getLogger(AbstractConfigurationRESTService.class);

	public abstract AbstractConfigurationService<T> getService();

	/**
	 *
	 * @param t
	 * @throws Exception
	 */
	@RequestMapping(value = "/ping", method = { RequestMethod.POST, RequestMethod.GET })
	public ResponseEntity<String> ping() throws Exception {
		LOGGER.debug("Ping Executed");
		return new ResponseEntity<>(HttpStatus.OK);
	}

	/**
	 *
	 * @param t
	 * @throws Exception
	 */
	@RequestMapping(value = "/put", method = { RequestMethod.PUT })
	public ResponseEntity<String> put(@RequestBody(required = true) T t) throws Exception {
		getService().put(t, true, "salt");
		return new ResponseEntity<>(HttpStatus.OK);
	}

	/**
	 *
	 * @param t
	 * @throws Exception
	 */
	@RequestMapping(value = "/get", method = { RequestMethod.GET, RequestMethod.POST })
	public ResponseEntity<String> get(@RequestBody(required = true) T t) throws Exception {
		return new ResponseEntity<>(HttpStatus.OK);
	}

	/**
	 *
	 * @param t
	 * @throws Exception
	 */
	@RequestMapping(value = "/getAll", method = { RequestMethod.GET, RequestMethod.POST })
	public ResponseEntity<String> getAll() throws Exception {
		return new ResponseEntity<>(HttpStatus.OK);
	}

	/**
	 *
	 * @param t
	 * @throws Exception
	 */
	protected ResponseEntity<String> createStringResponseEntity(IResponse<?> response) throws Exception {
		HttpStatus httpStatus = (response.isVerified()) ? httpStatus = HttpStatus.OK : HttpStatus.BAD_REQUEST;
		String message = (response.isVerified()) ? "Ok" : response.getException().getMessage();
		return new ResponseEntity<>(message, httpStatus);
	}

	/**
	 *
	 * @param t
	 * @throws Exception
	 */
	protected ResponseEntity<T> createObjectResponseEntity(IResponse<T> response) throws Exception {
		HttpStatus httpStatus = (response.isVerified()) ? httpStatus = HttpStatus.OK : HttpStatus.BAD_REQUEST;
		return new ResponseEntity<>(response.getResponse(), httpStatus);
	}

	/**
	 *
	 * @param t
	 * @throws Exception
	 */
	protected ResponseEntity<List<T>> createListResponseEntity(IResponse<List<T>> response) throws Exception {
		HttpStatus httpStatus = (response.isVerified()) ? httpStatus = HttpStatus.OK : HttpStatus.BAD_REQUEST;
		return new ResponseEntity<>(response.getResponse(), httpStatus);
	}

}


text:
using System;
using NHibernate;

namespace Coevery.Data {
    public interface ISessionLocator : IDependency {
        ISession For(Type entityType);
    }
}