<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: temporal/api/export/v1/message.proto

namespace Temporal\Api\Export\V1;

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

/**
 * WorkflowExecutions is used by the Cloud Export feature to deserialize 
 * the exported file. It encapsulates a collection of workflow execution information.
 *
 * Generated from protobuf message <code>temporal.api.export.v1.WorkflowExecutions</code>
 */
class WorkflowExecutions extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated .temporal.api.export.v1.WorkflowExecution items = 1;</code>
     */
    private $items;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Temporal\Api\Export\V1\WorkflowExecution[] $items
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Export\V1\Message::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>repeated .temporal.api.export.v1.WorkflowExecution items = 1;</code>
     * @return RepeatedField<\Temporal\Api\Export\V1\WorkflowExecution>
     */
    public function getItems()
    {
        return $this->items;
    }

    /**
     * Generated from protobuf field <code>repeated .temporal.api.export.v1.WorkflowExecution items = 1;</code>
     * @param \Temporal\Api\Export\V1\WorkflowExecution[] $var
     * @return $this
     */
    public function setItems($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Export\V1\WorkflowExecution::class);
        $this->items = $arr;

        return $this;
    }

}

