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

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

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

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

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

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>repeated .PublicAggreDepthV3ApiItem bids = 2;</code>
     * @param array<\PublicAggreDepthV3ApiItem>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setBids($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PublicAggreDepthV3ApiItem::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 fromVersion = 4;</code>
     * @return string
     */
    public function getFromVersion()
    {
        return $this->fromVersion;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string toVersion = 5;</code>
     * @return string
     */
    public function getToVersion()
    {
        return $this->toVersion;
    }

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

        return $this;
    }

}

