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

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

/**
 * Dialogflow source setting.
 * Supported feature: DIALOGFLOW_ASSIST.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource</code>
 */
class DialogflowQuerySource extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The name of a Dialogflow virtual agent used for end user side
     * intent detection and suggestion. Format: `projects/<Project Number/
     * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in
     * the same Dialogflow project.
     *
     * Generated from protobuf field <code>string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    private $agent = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $agent
     *           Required. The name of a Dialogflow virtual agent used for end user side
     *           intent detection and suggestion. Format: `projects/<Project Number/
     *           ID>/locations/<Location ID>/agent`. When multiple agents are allowed in
     *           the same Dialogflow project.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\ConversationProfile::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The name of a Dialogflow virtual agent used for end user side
     * intent detection and suggestion. Format: `projects/<Project Number/
     * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in
     * the same Dialogflow project.
     *
     * Generated from protobuf field <code>string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getAgent()
    {
        return $this->agent;
    }

    /**
     * Required. The name of a Dialogflow virtual agent used for end user side
     * intent detection and suggestion. Format: `projects/<Project Number/
     * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in
     * the same Dialogflow project.
     *
     * Generated from protobuf field <code>string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setAgent($var)
    {
        GPBUtil::checkString($var, True);
        $this->agent = $var;

        return $this;
    }

}


