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

namespace Google\Cloud\Ces\V1\EvaluationMetricsThresholds;

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

/**
 * Settings for matching tool calls.
 *
 * Generated from protobuf message <code>google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings</code>
 */
class ToolMatchingSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Behavior for extra tool calls.
     * Defaults to FAIL.
     *
     * Generated from protobuf field <code>.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior extra_tool_call_behavior = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $extra_tool_call_behavior = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $extra_tool_call_behavior
     *           Optional. Behavior for extra tool calls.
     *           Defaults to FAIL.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Ces\V1\App::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Behavior for extra tool calls.
     * Defaults to FAIL.
     *
     * Generated from protobuf field <code>.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior extra_tool_call_behavior = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getExtraToolCallBehavior()
    {
        return $this->extra_tool_call_behavior;
    }

    /**
     * Optional. Behavior for extra tool calls.
     * Defaults to FAIL.
     *
     * Generated from protobuf field <code>.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior extra_tool_call_behavior = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setExtraToolCallBehavior($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Ces\V1\EvaluationMetricsThresholds\ToolMatchingSettings\ExtraToolCallBehavior::class);
        $this->extra_tool_call_behavior = $var;

        return $this;
    }

}

