<?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;

/**
 * Sample response that the agent can use. This could be based on applicable
 * instructions and ingested data from other systems.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.AgentCoachingSuggestion.SampleResponse</code>
 */
class SampleResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Sample response for Agent in text.
     *
     * Generated from protobuf field <code>string response_text = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $response_text = '';
    /**
     * Output only. Sources for the Sample Response.
     *
     * 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 sample response.
     *
     * 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 $response_text
     *           Optional. Sample response for Agent in text.
     *     @type \Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\Sources $sources
     *           Output only. Sources for the Sample Response.
     *     @type \Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\DuplicateCheckResult $duplicate_check_result
     *           Output only. Duplicate check result for the sample response.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Generator::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Sample response for Agent in text.
     *
     * Generated from protobuf field <code>string response_text = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getResponseText()
    {
        return $this->response_text;
    }

    /**
     * Optional. Sample response for Agent in text.
     *
     * Generated from protobuf field <code>string response_text = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setResponseText($var)
    {
        GPBUtil::checkString($var, True);
        $this->response_text = $var;

        return $this;
    }

    /**
     * Output only. Sources for the Sample Response.
     *
     * 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 Sample Response.
     *
     * 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 sample response.
     *
     * 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 sample response.
     *
     * 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;
    }

}

