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

namespace Temporal\Api\Common\V1;

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

/**
 * See `Payload`
 *
 * Generated from protobuf message <code>temporal.api.common.v1.Payloads</code>
 */
class Payloads extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated .temporal.api.common.v1.Payload payloads = 1;</code>
     */
    private $payloads;

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

    /**
     * Generated from protobuf field <code>repeated .temporal.api.common.v1.Payload payloads = 1;</code>
     * @return RepeatedField<\Temporal\Api\Common\V1\Payload>
     */
    public function getPayloads()
    {
        return $this->payloads;
    }

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

        return $this;
    }

}

