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

namespace Google\Cloud\ContactCenterInsights\V1\Conversation\QualityMetadata;

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

/**
 * Information about an agent involved in the conversation.
 *
 * Generated from protobuf message <code>google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo</code>
 */
class AgentInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * A user-specified string representing the agent.
     *
     * Generated from protobuf field <code>string agent_id = 1;</code>
     */
    protected $agent_id = '';
    /**
     * The agent's name.
     *
     * Generated from protobuf field <code>string display_name = 2;</code>
     */
    protected $display_name = '';
    /**
     * A user-specified string representing the agent's team.
     *
     * Generated from protobuf field <code>string team = 3;</code>
     */
    protected $team = '';
    /**
     * A user-provided string indicating the outcome of the agent's segment of
     * the call.
     *
     * Generated from protobuf field <code>string disposition_code = 4;</code>
     */
    protected $disposition_code = '';
    /**
     * The agent type, e.g. HUMAN_AGENT.
     *
     * Generated from protobuf field <code>.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role agent_type = 5;</code>
     */
    protected $agent_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $agent_id
     *           A user-specified string representing the agent.
     *     @type string $display_name
     *           The agent's name.
     *     @type string $team
     *           A user-specified string representing the agent's team.
     *     @type string $disposition_code
     *           A user-provided string indicating the outcome of the agent's segment of
     *           the call.
     *     @type int $agent_type
     *           The agent type, e.g. HUMAN_AGENT.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * A user-specified string representing the agent.
     *
     * Generated from protobuf field <code>string agent_id = 1;</code>
     * @return string
     */
    public function getAgentId()
    {
        return $this->agent_id;
    }

    /**
     * A user-specified string representing the agent.
     *
     * Generated from protobuf field <code>string agent_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setAgentId($var)
    {
        GPBUtil::checkString($var, True);
        $this->agent_id = $var;

        return $this;
    }

    /**
     * The agent's name.
     *
     * Generated from protobuf field <code>string display_name = 2;</code>
     * @return string
     */
    public function getDisplayName()
    {
        return $this->display_name;
    }

    /**
     * The agent's name.
     *
     * Generated from protobuf field <code>string display_name = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_name = $var;

        return $this;
    }

    /**
     * A user-specified string representing the agent's team.
     *
     * Generated from protobuf field <code>string team = 3;</code>
     * @return string
     */
    public function getTeam()
    {
        return $this->team;
    }

    /**
     * A user-specified string representing the agent's team.
     *
     * Generated from protobuf field <code>string team = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setTeam($var)
    {
        GPBUtil::checkString($var, True);
        $this->team = $var;

        return $this;
    }

    /**
     * A user-provided string indicating the outcome of the agent's segment of
     * the call.
     *
     * Generated from protobuf field <code>string disposition_code = 4;</code>
     * @return string
     */
    public function getDispositionCode()
    {
        return $this->disposition_code;
    }

    /**
     * A user-provided string indicating the outcome of the agent's segment of
     * the call.
     *
     * Generated from protobuf field <code>string disposition_code = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setDispositionCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->disposition_code = $var;

        return $this;
    }

    /**
     * The agent type, e.g. HUMAN_AGENT.
     *
     * Generated from protobuf field <code>.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role agent_type = 5;</code>
     * @return int
     */
    public function getAgentType()
    {
        return $this->agent_type;
    }

    /**
     * The agent type, e.g. HUMAN_AGENT.
     *
     * Generated from protobuf field <code>.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role agent_type = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setAgentType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\ContactCenterInsights\V1\ConversationParticipant\Role::class);
        $this->agent_type = $var;

        return $this;
    }

}


