<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/ces/v1/app.proto

namespace Google\Cloud\Ces\V1\EvaluationMetricsThresholds\GoldenEvaluationMetricsThresholds;

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

/**
 * Turn level metrics thresholds.
 *
 * Generated from protobuf message <code>google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds</code>
 */
class TurnLevelMetricsThresholds extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The success threshold for semantic similarity. Must be an
     * integer between 0 and 4. Default is >= 3.
     *
     * Generated from protobuf field <code>optional int32 semantic_similarity_success_threshold = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $semantic_similarity_success_threshold = null;
    /**
     * Optional. The success threshold for overall tool invocation
     * correctness. Must be a float between 0 and 1. Default is 1.0.
     *
     * Generated from protobuf field <code>optional float overall_tool_invocation_correctness_threshold = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $overall_tool_invocation_correctness_threshold = null;
    /**
     * Optional. The semantic similarity channel to use for evaluation.
     *
     * Generated from protobuf field <code>.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.SemanticSimilarityChannel semantic_similarity_channel = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $semantic_similarity_channel = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $semantic_similarity_success_threshold
     *           Optional. The success threshold for semantic similarity. Must be an
     *           integer between 0 and 4. Default is >= 3.
     *     @type float $overall_tool_invocation_correctness_threshold
     *           Optional. The success threshold for overall tool invocation
     *           correctness. Must be a float between 0 and 1. Default is 1.0.
     *     @type int $semantic_similarity_channel
     *           Optional. The semantic similarity channel to use for evaluation.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Ces\V1\App::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The success threshold for semantic similarity. Must be an
     * integer between 0 and 4. Default is >= 3.
     *
     * Generated from protobuf field <code>optional int32 semantic_similarity_success_threshold = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getSemanticSimilaritySuccessThreshold()
    {
        return isset($this->semantic_similarity_success_threshold) ? $this->semantic_similarity_success_threshold : 0;
    }

    public function hasSemanticSimilaritySuccessThreshold()
    {
        return isset($this->semantic_similarity_success_threshold);
    }

    public function clearSemanticSimilaritySuccessThreshold()
    {
        unset($this->semantic_similarity_success_threshold);
    }

    /**
     * Optional. The success threshold for semantic similarity. Must be an
     * integer between 0 and 4. Default is >= 3.
     *
     * Generated from protobuf field <code>optional int32 semantic_similarity_success_threshold = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setSemanticSimilaritySuccessThreshold($var)
    {
        GPBUtil::checkInt32($var);
        $this->semantic_similarity_success_threshold = $var;

        return $this;
    }

    /**
     * Optional. The success threshold for overall tool invocation
     * correctness. Must be a float between 0 and 1. Default is 1.0.
     *
     * Generated from protobuf field <code>optional float overall_tool_invocation_correctness_threshold = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return float
     */
    public function getOverallToolInvocationCorrectnessThreshold()
    {
        return isset($this->overall_tool_invocation_correctness_threshold) ? $this->overall_tool_invocation_correctness_threshold : 0.0;
    }

    public function hasOverallToolInvocationCorrectnessThreshold()
    {
        return isset($this->overall_tool_invocation_correctness_threshold);
    }

    public function clearOverallToolInvocationCorrectnessThreshold()
    {
        unset($this->overall_tool_invocation_correctness_threshold);
    }

    /**
     * Optional. The success threshold for overall tool invocation
     * correctness. Must be a float between 0 and 1. Default is 1.0.
     *
     * Generated from protobuf field <code>optional float overall_tool_invocation_correctness_threshold = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param float $var
     * @return $this
     */
    public function setOverallToolInvocationCorrectnessThreshold($var)
    {
        GPBUtil::checkFloat($var);
        $this->overall_tool_invocation_correctness_threshold = $var;

        return $this;
    }

    /**
     * Optional. The semantic similarity channel to use for evaluation.
     *
     * Generated from protobuf field <code>.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.SemanticSimilarityChannel semantic_similarity_channel = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getSemanticSimilarityChannel()
    {
        return $this->semantic_similarity_channel;
    }

    /**
     * Optional. The semantic similarity channel to use for evaluation.
     *
     * Generated from protobuf field <code>.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.SemanticSimilarityChannel semantic_similarity_channel = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setSemanticSimilarityChannel($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Ces\V1\EvaluationMetricsThresholds\GoldenEvaluationMetricsThresholds\TurnLevelMetricsThresholds\SemanticSimilarityChannel::class);
        $this->semantic_similarity_channel = $var;

        return $this;
    }

}

