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

namespace Google\Cloud\Dialogflow\V2;

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

/**
 * Context of the conversation, including transcripts.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.ConversationContext</code>
 */
class ConversationContext extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. List of message transcripts in the conversation.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $message_entries;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dialogflow\V2\MessageEntry[] $message_entries
     *           Optional. List of message transcripts in the conversation.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Generator::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. List of message transcripts in the conversation.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return RepeatedField<\Google\Cloud\Dialogflow\V2\MessageEntry>
     */
    public function getMessageEntries()
    {
        return $this->message_entries;
    }

    /**
     * Optional. List of message transcripts in the conversation.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\Dialogflow\V2\MessageEntry[] $var
     * @return $this
     */
    public function setMessageEntries($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\MessageEntry::class);
        $this->message_entries = $arr;

        return $this;
    }

}

