<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: PublicLimitDepthsV3Api.proto

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

/**
 * Generated from protobuf message <code>PublicLimitDepthsV3Api</code>
 */
class PublicLimitDepthsV3Api extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated .PublicLimitDepthV3ApiItem asks = 1;</code>
     */
    private $asks;
    /**
     * Generated from protobuf field <code>repeated .PublicLimitDepthV3ApiItem bids = 2;</code>
     */
    private $bids;
    /**
     * Generated from protobuf field <code>string eventType = 3;</code>
     */
    protected $eventType = '';
    /**
     * Generated from protobuf field <code>string version = 4;</code>
     */
    protected $version = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\PublicLimitDepthV3ApiItem>|\Google\Protobuf\Internal\RepeatedField $asks
     *     @type array<\PublicLimitDepthV3ApiItem>|\Google\Protobuf\Internal\RepeatedField $bids
     *     @type string $eventType
     *     @type string $version
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PublicLimitDepthsV3Api::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>repeated .PublicLimitDepthV3ApiItem asks = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAsks()
    {
        return $this->asks;
    }

    /**
     * Generated from protobuf field <code>repeated .PublicLimitDepthV3ApiItem asks = 1;</code>
     * @param array<\PublicLimitDepthV3ApiItem>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAsks($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PublicLimitDepthV3ApiItem::class);
        $this->asks = $arr;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string eventType = 3;</code>
     * @return string
     */
    public function getEventType()
    {
        return $this->eventType;
    }

    /**
     * Generated from protobuf field <code>string eventType = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setEventType($var)
    {
        GPBUtil::checkString($var, True);
        $this->eventType = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string version = 4;</code>
     * @return string
     */
    public function getVersion()
    {
        return $this->version;
    }

    /**
     * Generated from protobuf field <code>string version = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->version = $var;

        return $this;
    }

}

