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

namespace Google\Cloud\Dialogflow\V2\GenerateStatelessSummaryRequest;

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

/**
 * The minimum amount of information required to generate a Summary without
 * having a Conversation resource created.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversation</code>
 */
class MinimalConversation extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The messages that the Summary will be generated from. It is
     * expected that this message content is already redacted and does not
     * contain any PII. Required fields: {content, language_code, participant,
     * participant_role} Optional fields: {send_time} If send_time is not
     * provided, then the messages must be provided in chronological order.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.Message messages = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $messages;
    /**
     * Required. The parent resource to charge for the Summary's generation.
     * Format: `projects/<Project ID>/locations/<Location ID>`.
     *
     * Generated from protobuf field <code>string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    private $parent = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Dialogflow\V2\Message>|\Google\Protobuf\Internal\RepeatedField $messages
     *           Required. The messages that the Summary will be generated from. It is
     *           expected that this message content is already redacted and does not
     *           contain any PII. Required fields: {content, language_code, participant,
     *           participant_role} Optional fields: {send_time} If send_time is not
     *           provided, then the messages must be provided in chronological order.
     *     @type string $parent
     *           Required. The parent resource to charge for the Summary's generation.
     *           Format: `projects/<Project ID>/locations/<Location ID>`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Conversation::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The messages that the Summary will be generated from. It is
     * expected that this message content is already redacted and does not
     * contain any PII. Required fields: {content, language_code, participant,
     * participant_role} Optional fields: {send_time} If send_time is not
     * provided, then the messages must be provided in chronological order.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.Message messages = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getMessages()
    {
        return $this->messages;
    }

    /**
     * Required. The messages that the Summary will be generated from. It is
     * expected that this message content is already redacted and does not
     * contain any PII. Required fields: {content, language_code, participant,
     * participant_role} Optional fields: {send_time} If send_time is not
     * provided, then the messages must be provided in chronological order.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.Message messages = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<\Google\Cloud\Dialogflow\V2\Message>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setMessages($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\Message::class);
        $this->messages = $arr;

        return $this;
    }

    /**
     * Required. The parent resource to charge for the Summary's generation.
     * Format: `projects/<Project ID>/locations/<Location ID>`.
     *
     * Generated from protobuf field <code>string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

    /**
     * Required. The parent resource to charge for the Summary's generation.
     * Format: `projects/<Project ID>/locations/<Location ID>`.
     *
     * Generated from protobuf field <code>string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setParent($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent = $var;

        return $this;
    }

}


