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

namespace Google\Cloud\Ces\V1\TriggerAction;

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

/**
 * The agent will immediately respond with a generative answer.
 *
 * Generated from protobuf message <code>google.cloud.ces.v1.TriggerAction.GenerativeAnswer</code>
 */
class GenerativeAnswer extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The prompt to use for the generative answer.
     *
     * Generated from protobuf field <code>string prompt = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $prompt = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $prompt
     *           Required. The prompt to use for the generative answer.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Ces\V1\Common::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The prompt to use for the generative answer.
     *
     * Generated from protobuf field <code>string prompt = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getPrompt()
    {
        return $this->prompt;
    }

    /**
     * Required. The prompt to use for the generative answer.
     *
     * Generated from protobuf field <code>string prompt = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setPrompt($var)
    {
        GPBUtil::checkString($var, True);
        $this->prompt = $var;

        return $this;
    }

}


