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

namespace Google\Cloud\ContactCenterInsights\V1\AnalysisResult;

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

/**
 * Call-specific metadata created during analysis.
 *
 * Generated from protobuf message <code>google.cloud.contactcenterinsights.v1.AnalysisResult.CallAnalysisMetadata</code>
 */
class CallAnalysisMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * A list of call annotations that apply to this call.
     *
     * Generated from protobuf field <code>repeated .google.cloud.contactcenterinsights.v1.CallAnnotation annotations = 2;</code>
     */
    private $annotations;
    /**
     * All the entities in the call.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.contactcenterinsights.v1.Entity> entities = 3;</code>
     */
    private $entities;
    /**
     * Overall conversation-level sentiment for each channel of the call.
     *
     * Generated from protobuf field <code>repeated .google.cloud.contactcenterinsights.v1.ConversationLevelSentiment sentiments = 4;</code>
     */
    private $sentiments;
    /**
     * All the matched intents in the call.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.contactcenterinsights.v1.Intent> intents = 6;</code>
     */
    private $intents;
    /**
     * All the matched phrase matchers in the call.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.contactcenterinsights.v1.PhraseMatchData> phrase_matchers = 7;</code>
     */
    private $phrase_matchers;
    /**
     * Overall conversation-level issue modeling result.
     *
     * Generated from protobuf field <code>.google.cloud.contactcenterinsights.v1.IssueModelResult issue_model_result = 8;</code>
     */
    private $issue_model_result = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\ContactCenterInsights\V1\CallAnnotation>|\Google\Protobuf\Internal\RepeatedField $annotations
     *           A list of call annotations that apply to this call.
     *     @type array|\Google\Protobuf\Internal\MapField $entities
     *           All the entities in the call.
     *     @type array<\Google\Cloud\ContactCenterInsights\V1\ConversationLevelSentiment>|\Google\Protobuf\Internal\RepeatedField $sentiments
     *           Overall conversation-level sentiment for each channel of the call.
     *     @type array|\Google\Protobuf\Internal\MapField $intents
     *           All the matched intents in the call.
     *     @type array|\Google\Protobuf\Internal\MapField $phrase_matchers
     *           All the matched phrase matchers in the call.
     *     @type \Google\Cloud\ContactCenterInsights\V1\IssueModelResult $issue_model_result
     *           Overall conversation-level issue modeling result.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * A list of call annotations that apply to this call.
     *
     * Generated from protobuf field <code>repeated .google.cloud.contactcenterinsights.v1.CallAnnotation annotations = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAnnotations()
    {
        return $this->annotations;
    }

    /**
     * A list of call annotations that apply to this call.
     *
     * Generated from protobuf field <code>repeated .google.cloud.contactcenterinsights.v1.CallAnnotation annotations = 2;</code>
     * @param array<\Google\Cloud\ContactCenterInsights\V1\CallAnnotation>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAnnotations($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\CallAnnotation::class);
        $this->annotations = $arr;

        return $this;
    }

    /**
     * All the entities in the call.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.contactcenterinsights.v1.Entity> entities = 3;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getEntities()
    {
        return $this->entities;
    }

    /**
     * All the entities in the call.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.contactcenterinsights.v1.Entity> entities = 3;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setEntities($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\Entity::class);
        $this->entities = $arr;

        return $this;
    }

    /**
     * Overall conversation-level sentiment for each channel of the call.
     *
     * Generated from protobuf field <code>repeated .google.cloud.contactcenterinsights.v1.ConversationLevelSentiment sentiments = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSentiments()
    {
        return $this->sentiments;
    }

    /**
     * Overall conversation-level sentiment for each channel of the call.
     *
     * Generated from protobuf field <code>repeated .google.cloud.contactcenterinsights.v1.ConversationLevelSentiment sentiments = 4;</code>
     * @param array<\Google\Cloud\ContactCenterInsights\V1\ConversationLevelSentiment>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSentiments($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\ConversationLevelSentiment::class);
        $this->sentiments = $arr;

        return $this;
    }

    /**
     * All the matched intents in the call.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.contactcenterinsights.v1.Intent> intents = 6;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getIntents()
    {
        return $this->intents;
    }

    /**
     * All the matched intents in the call.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.contactcenterinsights.v1.Intent> intents = 6;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setIntents($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\Intent::class);
        $this->intents = $arr;

        return $this;
    }

    /**
     * All the matched phrase matchers in the call.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.contactcenterinsights.v1.PhraseMatchData> phrase_matchers = 7;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getPhraseMatchers()
    {
        return $this->phrase_matchers;
    }

    /**
     * All the matched phrase matchers in the call.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.contactcenterinsights.v1.PhraseMatchData> phrase_matchers = 7;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setPhraseMatchers($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\PhraseMatchData::class);
        $this->phrase_matchers = $arr;

        return $this;
    }

    /**
     * Overall conversation-level issue modeling result.
     *
     * Generated from protobuf field <code>.google.cloud.contactcenterinsights.v1.IssueModelResult issue_model_result = 8;</code>
     * @return \Google\Cloud\ContactCenterInsights\V1\IssueModelResult|null
     */
    public function getIssueModelResult()
    {
        return $this->issue_model_result;
    }

    public function hasIssueModelResult()
    {
        return isset($this->issue_model_result);
    }

    public function clearIssueModelResult()
    {
        unset($this->issue_model_result);
    }

    /**
     * Overall conversation-level issue modeling result.
     *
     * Generated from protobuf field <code>.google.cloud.contactcenterinsights.v1.IssueModelResult issue_model_result = 8;</code>
     * @param \Google\Cloud\ContactCenterInsights\V1\IssueModelResult $var
     * @return $this
     */
    public function setIssueModelResult($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\IssueModelResult::class);
        $this->issue_model_result = $var;

        return $this;
    }

}


