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

namespace Google\Cloud\Dialogflow\V2\HumanAgentAssistantConfig\SuggestionQueryConfig\DialogflowQuerySource;

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

/**
 * The configuration used for human agent side Dialogflow assist
 * suggestion.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig</code>
 */
class HumanAgentSideConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The name of a dialogflow virtual agent used for intent
     * detection and suggestion triggered by human agent.
     * Format: `projects/<Project ID>/locations/<Location ID>/agent`.
     *
     * Generated from protobuf field <code>string agent = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     */
    protected $agent = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $agent
     *           Optional. The name of a dialogflow virtual agent used for intent
     *           detection and suggestion triggered by human agent.
     *           Format: `projects/<Project ID>/locations/<Location ID>/agent`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\ConversationProfile::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The name of a dialogflow virtual agent used for intent
     * detection and suggestion triggered by human agent.
     * Format: `projects/<Project ID>/locations/<Location ID>/agent`.
     *
     * Generated from protobuf field <code>string agent = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getAgent()
    {
        return $this->agent;
    }

    /**
     * Optional. The name of a dialogflow virtual agent used for intent
     * detection and suggestion triggered by human agent.
     * Format: `projects/<Project ID>/locations/<Location ID>/agent`.
     *
     * Generated from protobuf field <code>string agent = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setAgent($var)
    {
        GPBUtil::checkString($var, True);
        $this->agent = $var;

        return $this;
    }

}

