<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dialogflow/v2/conversation_profile.proto

namespace Google\Cloud\Dialogflow\V2\HumanAgentAssistantConfig;

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

/**
 * Settings of suggestion trigger.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings</code>
 */
class SuggestionTriggerSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Do not trigger if last utterance is small talk.
     *
     * Generated from protobuf field <code>bool no_smalltalk = 1;</code>
     */
    protected $no_smalltalk = false;
    /**
     * Only trigger suggestion if participant role of last utterance is
     * END_USER.
     *
     * Generated from protobuf field <code>bool only_end_user = 2;</code>
     */
    protected $only_end_user = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $no_smalltalk
     *           Do not trigger if last utterance is small talk.
     *     @type bool $only_end_user
     *           Only trigger suggestion if participant role of last utterance is
     *           END_USER.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\ConversationProfile::initOnce();
        parent::__construct($data);
    }

    /**
     * Do not trigger if last utterance is small talk.
     *
     * Generated from protobuf field <code>bool no_smalltalk = 1;</code>
     * @return bool
     */
    public function getNoSmalltalk()
    {
        return $this->no_smalltalk;
    }

    /**
     * Do not trigger if last utterance is small talk.
     *
     * Generated from protobuf field <code>bool no_smalltalk = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setNoSmalltalk($var)
    {
        GPBUtil::checkBool($var);
        $this->no_smalltalk = $var;

        return $this;
    }

    /**
     * Only trigger suggestion if participant role of last utterance is
     * END_USER.
     *
     * Generated from protobuf field <code>bool only_end_user = 2;</code>
     * @return bool
     */
    public function getOnlyEndUser()
    {
        return $this->only_end_user;
    }

    /**
     * Only trigger suggestion if participant role of last utterance is
     * END_USER.
     *
     * Generated from protobuf field <code>bool only_end_user = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setOnlyEndUser($var)
    {
        GPBUtil::checkBool($var);
        $this->only_end_user = $var;

        return $this;
    }

}

