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

namespace Google\Cloud\Ces\V1;

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

/**
 * Represents an event indicating the transfer of a conversation to a different
 * agent.
 *
 * Generated from protobuf message <code>google.cloud.ces.v1.AgentTransfer</code>
 */
class AgentTransfer extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The agent to which the conversation is being transferred. The
     * agent will handle the conversation from this point forward. Format:
     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
     *
     * Generated from protobuf field <code>string target_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $target_agent = '';
    /**
     * Output only. Display name of the agent.
     *
     * Generated from protobuf field <code>string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $display_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $target_agent
     *           Required. The agent to which the conversation is being transferred. The
     *           agent will handle the conversation from this point forward. Format:
     *           `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
     *     @type string $display_name
     *           Output only. Display name of the agent.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Ces\V1\Example::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The agent to which the conversation is being transferred. The
     * agent will handle the conversation from this point forward. Format:
     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
     *
     * Generated from protobuf field <code>string target_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getTargetAgent()
    {
        return $this->target_agent;
    }

    /**
     * Required. The agent to which the conversation is being transferred. The
     * agent will handle the conversation from this point forward. Format:
     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
     *
     * Generated from protobuf field <code>string target_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setTargetAgent($var)
    {
        GPBUtil::checkString($var, True);
        $this->target_agent = $var;

        return $this;
    }

    /**
     * Output only. Display name of the agent.
     *
     * Generated from protobuf field <code>string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getDisplayName()
    {
        return $this->display_name;
    }

    /**
     * Output only. Display name of the agent.
     *
     * Generated from protobuf field <code>string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_name = $var;

        return $this;
    }

}

