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

namespace Google\Cloud\DiscoveryEngine\V1\Engine;

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

/**
 * Additional information of a Chat Engine.
 * Fields in this message are output only.
 *
 * Generated from protobuf message <code>google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata</code>
 */
class ChatEngineMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * The resource name of a Dialogflow agent, that this Chat Engine refers
     * to.
     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
     * ID>`.
     *
     * Generated from protobuf field <code>string dialogflow_agent = 1;</code>
     */
    protected $dialogflow_agent = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $dialogflow_agent
     *           The resource name of a Dialogflow agent, that this Chat Engine refers
     *           to.
     *           Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
     *           ID>`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Discoveryengine\V1\Engine::initOnce();
        parent::__construct($data);
    }

    /**
     * The resource name of a Dialogflow agent, that this Chat Engine refers
     * to.
     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
     * ID>`.
     *
     * Generated from protobuf field <code>string dialogflow_agent = 1;</code>
     * @return string
     */
    public function getDialogflowAgent()
    {
        return $this->dialogflow_agent;
    }

    /**
     * The resource name of a Dialogflow agent, that this Chat Engine refers
     * to.
     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
     * ID>`.
     *
     * Generated from protobuf field <code>string dialogflow_agent = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setDialogflowAgent($var)
    {
        GPBUtil::checkString($var, True);
        $this->dialogflow_agent = $var;

        return $this;
    }

}

