<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dialogflow/v2/generator.proto

namespace Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion;

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

/**
 * Actions suggested for the agent. This is based on applicable instructions.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.AgentCoachingSuggestion.AgentActionSuggestion</code>
 */
class AgentActionSuggestion extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The suggested action for the agent.
     *
     * Generated from protobuf field <code>string agent_action = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $agent_action = '';
    /**
     * Output only. Sources for the agent action suggestion.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $sources = null;
    /**
     * Output only. Duplicate check result for the agent action suggestion.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $duplicate_check_result = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $agent_action
     *           Optional. The suggested action for the agent.
     *     @type \Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\Sources $sources
     *           Output only. Sources for the agent action suggestion.
     *     @type \Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\DuplicateCheckResult $duplicate_check_result
     *           Output only. Duplicate check result for the agent action suggestion.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Generator::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The suggested action for the agent.
     *
     * Generated from protobuf field <code>string agent_action = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getAgentAction()
    {
        return $this->agent_action;
    }

    /**
     * Optional. The suggested action for the agent.
     *
     * Generated from protobuf field <code>string agent_action = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setAgentAction($var)
    {
        GPBUtil::checkString($var, True);
        $this->agent_action = $var;

        return $this;
    }

    /**
     * Output only. Sources for the agent action suggestion.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\Sources|null
     */
    public function getSources()
    {
        return $this->sources;
    }

    public function hasSources()
    {
        return isset($this->sources);
    }

    public function clearSources()
    {
        unset($this->sources);
    }

    /**
     * Output only. Sources for the agent action suggestion.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\Sources $var
     * @return $this
     */
    public function setSources($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\Sources::class);
        $this->sources = $var;

        return $this;
    }

    /**
     * Output only. Duplicate check result for the agent action suggestion.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\DuplicateCheckResult|null
     */
    public function getDuplicateCheckResult()
    {
        return $this->duplicate_check_result;
    }

    public function hasDuplicateCheckResult()
    {
        return isset($this->duplicate_check_result);
    }

    public function clearDuplicateCheckResult()
    {
        unset($this->duplicate_check_result);
    }

    /**
     * Output only. Duplicate check result for the agent action suggestion.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\DuplicateCheckResult $var
     * @return $this
     */
    public function setDuplicateCheckResult($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\DuplicateCheckResult::class);
        $this->duplicate_check_result = $var;

        return $this;
    }

}

