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

namespace Google\Cloud\Dialogflow\V2;

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

/**
 * The response message for
 * [Conversations.GenerateStatelessSuggestion][google.cloud.dialogflow.v2.Conversations.GenerateStatelessSuggestion].
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.GenerateStatelessSuggestionResponse</code>
 */
class GenerateStatelessSuggestionResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Generated suggestion for a conversation.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.GeneratorSuggestion generator_suggestion = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $generator_suggestion = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dialogflow\V2\GeneratorSuggestion $generator_suggestion
     *           Required. Generated suggestion for a conversation.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Conversation::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Generated suggestion for a conversation.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.GeneratorSuggestion generator_suggestion = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\Dialogflow\V2\GeneratorSuggestion|null
     */
    public function getGeneratorSuggestion()
    {
        return $this->generator_suggestion;
    }

    public function hasGeneratorSuggestion()
    {
        return isset($this->generator_suggestion);
    }

    public function clearGeneratorSuggestion()
    {
        unset($this->generator_suggestion);
    }

    /**
     * Required. Generated suggestion for a conversation.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.GeneratorSuggestion generator_suggestion = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\Dialogflow\V2\GeneratorSuggestion $var
     * @return $this
     */
    public function setGeneratorSuggestion($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\GeneratorSuggestion::class);
        $this->generator_suggestion = $var;

        return $this;
    }

}

