<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/datalabeling/v1beta1/evaluation.proto

namespace Google\Cloud\DataLabeling\V1beta1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Options regarding evaluation between bounding boxes.
 *
 * Generated from protobuf message <code>google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions</code>
 */
class BoundingBoxEvaluationOptions extends \Google\Protobuf\Internal\Message
{
    /**
     * Minimum
     * [intersection-over-union
     * (IOU)](https://cloud.google.com/vision/automl/object-detection/docs/evaluate#intersection-over-union)
     * required for 2 bounding boxes to be considered a match. This must be a
     * number between 0 and 1.
     *
     * Generated from protobuf field <code>float iou_threshold = 1;</code>
     */
    private $iou_threshold = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $iou_threshold
     *           Minimum
     *           [intersection-over-union
     *           (IOU)](https://cloud.google.com/vision/automl/object-detection/docs/evaluate#intersection-over-union)
     *           required for 2 bounding boxes to be considered a match. This must be a
     *           number between 0 and 1.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datalabeling\V1Beta1\Evaluation::initOnce();
        parent::__construct($data);
    }

    /**
     * Minimum
     * [intersection-over-union
     * (IOU)](https://cloud.google.com/vision/automl/object-detection/docs/evaluate#intersection-over-union)
     * required for 2 bounding boxes to be considered a match. This must be a
     * number between 0 and 1.
     *
     * Generated from protobuf field <code>float iou_threshold = 1;</code>
     * @return float
     */
    public function getIouThreshold()
    {
        return $this->iou_threshold;
    }

    /**
     * Minimum
     * [intersection-over-union
     * (IOU)](https://cloud.google.com/vision/automl/object-detection/docs/evaluate#intersection-over-union)
     * required for 2 bounding boxes to be considered a match. This must be a
     * number between 0 and 1.
     *
     * Generated from protobuf field <code>float iou_threshold = 1;</code>
     * @param float $var
     * @return $this
     */
    public function setIouThreshold($var)
    {
        GPBUtil::checkFloat($var);
        $this->iou_threshold = $var;

        return $this;
    }

}

