<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: SystemPacket.proto

namespace Framework\Protobuf;

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

/**
 * Generated from protobuf message <code>Framework.Protobuf.WebRespondMessage</code>
 */
class WebRespondMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 index = 1;</code>
     */
    protected $index = 0;
    /**
     * Generated from protobuf field <code>repeated .Framework.Protobuf.SinglePacket packet_list = 2;</code>
     */
    private $packet_list;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $index
     *     @type \Framework\Protobuf\SinglePacket[]|\Google\Protobuf\Internal\RepeatedField $packet_list
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\SystemPacket::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int32 index = 1;</code>
     * @return int
     */
    public function getIndex()
    {
        return $this->index;
    }

    /**
     * Generated from protobuf field <code>int32 index = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setIndex($var)
    {
        GPBUtil::checkInt32($var);
        $this->index = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .Framework.Protobuf.SinglePacket packet_list = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPacketList()
    {
        return $this->packet_list;
    }

    /**
     * Generated from protobuf field <code>repeated .Framework.Protobuf.SinglePacket packet_list = 2;</code>
     * @param \Framework\Protobuf\SinglePacket[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setPacketList($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Framework\Protobuf\SinglePacket::class);
        $this->packet_list = $arr;

        return $this;
    }

}

