<?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;

/**
 * Configuration details used for calculating evaluation metrics and creating an
 * [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation].
 *
 * Generated from protobuf message <code>google.cloud.datalabeling.v1beta1.EvaluationConfig</code>
 */
class EvaluationConfig extends \Google\Protobuf\Internal\Message
{
    protected $vertical_option;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\DataLabeling\V1beta1\BoundingBoxEvaluationOptions $bounding_box_evaluation_options
     *           Only specify this field if the related model performs image object
     *           detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
     *           bounding boxes.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datalabeling\V1Beta1\Evaluation::initOnce();
        parent::__construct($data);
    }

    /**
     * Only specify this field if the related model performs image object
     * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
     * bounding boxes.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1;</code>
     * @return \Google\Cloud\DataLabeling\V1beta1\BoundingBoxEvaluationOptions|null
     */
    public function getBoundingBoxEvaluationOptions()
    {
        return $this->readOneof(1);
    }

    public function hasBoundingBoxEvaluationOptions()
    {
        return $this->hasOneof(1);
    }

    /**
     * Only specify this field if the related model performs image object
     * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
     * bounding boxes.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1;</code>
     * @param \Google\Cloud\DataLabeling\V1beta1\BoundingBoxEvaluationOptions $var
     * @return $this
     */
    public function setBoundingBoxEvaluationOptions($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataLabeling\V1beta1\BoundingBoxEvaluationOptions::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getVerticalOption()
    {
        return $this->whichOneof("vertical_option");
    }

}

