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

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

/**
 * Generated from protobuf message <code>PrivateOrdersV3Api</code>
 */
class PrivateOrdersV3Api extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string id = 1;</code>
     */
    protected $id = '';
    /**
     * Generated from protobuf field <code>string clientId = 2;</code>
     */
    protected $clientId = '';
    /**
     * Generated from protobuf field <code>string price = 3;</code>
     */
    protected $price = '';
    /**
     * Generated from protobuf field <code>string quantity = 4;</code>
     */
    protected $quantity = '';
    /**
     * Generated from protobuf field <code>string amount = 5;</code>
     */
    protected $amount = '';
    /**
     * Generated from protobuf field <code>string avgPrice = 6;</code>
     */
    protected $avgPrice = '';
    /**
     * Generated from protobuf field <code>int32 orderType = 7;</code>
     */
    protected $orderType = 0;
    /**
     * Generated from protobuf field <code>int32 tradeType = 8;</code>
     */
    protected $tradeType = 0;
    /**
     * Generated from protobuf field <code>bool isMaker = 9;</code>
     */
    protected $isMaker = false;
    /**
     * Generated from protobuf field <code>string remainAmount = 10;</code>
     */
    protected $remainAmount = '';
    /**
     * Generated from protobuf field <code>string remainQuantity = 11;</code>
     */
    protected $remainQuantity = '';
    /**
     * Generated from protobuf field <code>optional string lastDealQuantity = 12;</code>
     */
    protected $lastDealQuantity = null;
    /**
     * Generated from protobuf field <code>string cumulativeQuantity = 13;</code>
     */
    protected $cumulativeQuantity = '';
    /**
     * Generated from protobuf field <code>string cumulativeAmount = 14;</code>
     */
    protected $cumulativeAmount = '';
    /**
     * Generated from protobuf field <code>int32 status = 15;</code>
     */
    protected $status = 0;
    /**
     * Generated from protobuf field <code>int64 createTime = 16;</code>
     */
    protected $createTime = 0;
    /**
     * Generated from protobuf field <code>optional string market = 17;</code>
     */
    protected $market = null;
    /**
     * Generated from protobuf field <code>optional int32 triggerType = 18;</code>
     */
    protected $triggerType = null;
    /**
     * Generated from protobuf field <code>optional string triggerPrice = 19;</code>
     */
    protected $triggerPrice = null;
    /**
     * Generated from protobuf field <code>optional int32 state = 20;</code>
     */
    protected $state = null;
    /**
     * Generated from protobuf field <code>optional string ocoId = 21;</code>
     */
    protected $ocoId = null;
    /**
     * Generated from protobuf field <code>optional string routeFactor = 22;</code>
     */
    protected $routeFactor = null;
    /**
     * Generated from protobuf field <code>optional string symbolId = 23;</code>
     */
    protected $symbolId = null;
    /**
     * Generated from protobuf field <code>optional string marketId = 24;</code>
     */
    protected $marketId = null;
    /**
     * Generated from protobuf field <code>optional string marketCurrencyId = 25;</code>
     */
    protected $marketCurrencyId = null;
    /**
     * Generated from protobuf field <code>optional string currencyId = 26;</code>
     */
    protected $currencyId = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $id
     *     @type string $clientId
     *     @type string $price
     *     @type string $quantity
     *     @type string $amount
     *     @type string $avgPrice
     *     @type int $orderType
     *     @type int $tradeType
     *     @type bool $isMaker
     *     @type string $remainAmount
     *     @type string $remainQuantity
     *     @type string $lastDealQuantity
     *     @type string $cumulativeQuantity
     *     @type string $cumulativeAmount
     *     @type int $status
     *     @type int|string $createTime
     *     @type string $market
     *     @type int $triggerType
     *     @type string $triggerPrice
     *     @type int $state
     *     @type string $ocoId
     *     @type string $routeFactor
     *     @type string $symbolId
     *     @type string $marketId
     *     @type string $marketCurrencyId
     *     @type string $currencyId
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PrivateOrdersV3Api::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string id = 1;</code>
     * @return string
     */
    public function getId()
    {
        return $this->id;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string clientId = 2;</code>
     * @return string
     */
    public function getClientId()
    {
        return $this->clientId;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string avgPrice = 6;</code>
     * @return string
     */
    public function getAvgPrice()
    {
        return $this->avgPrice;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool isMaker = 9;</code>
     * @return bool
     */
    public function getIsMaker()
    {
        return $this->isMaker;
    }

    /**
     * Generated from protobuf field <code>bool isMaker = 9;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsMaker($var)
    {
        GPBUtil::checkBool($var);
        $this->isMaker = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string remainAmount = 10;</code>
     * @return string
     */
    public function getRemainAmount()
    {
        return $this->remainAmount;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string remainQuantity = 11;</code>
     * @return string
     */
    public function getRemainQuantity()
    {
        return $this->remainQuantity;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string lastDealQuantity = 12;</code>
     * @return string
     */
    public function getLastDealQuantity()
    {
        return isset($this->lastDealQuantity) ? $this->lastDealQuantity : '';
    }

    public function hasLastDealQuantity()
    {
        return isset($this->lastDealQuantity);
    }

    public function clearLastDealQuantity()
    {
        unset($this->lastDealQuantity);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string cumulativeQuantity = 13;</code>
     * @return string
     */
    public function getCumulativeQuantity()
    {
        return $this->cumulativeQuantity;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string cumulativeAmount = 14;</code>
     * @return string
     */
    public function getCumulativeAmount()
    {
        return $this->cumulativeAmount;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 createTime = 16;</code>
     * @return int|string
     */
    public function getCreateTime()
    {
        return $this->createTime;
    }

    /**
     * Generated from protobuf field <code>int64 createTime = 16;</code>
     * @param int|string $var
     * @return $this
     */
    public function setCreateTime($var)
    {
        GPBUtil::checkInt64($var);
        $this->createTime = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string market = 17;</code>
     * @return string
     */
    public function getMarket()
    {
        return isset($this->market) ? $this->market : '';
    }

    public function hasMarket()
    {
        return isset($this->market);
    }

    public function clearMarket()
    {
        unset($this->market);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int32 triggerType = 18;</code>
     * @return int
     */
    public function getTriggerType()
    {
        return isset($this->triggerType) ? $this->triggerType : 0;
    }

    public function hasTriggerType()
    {
        return isset($this->triggerType);
    }

    public function clearTriggerType()
    {
        unset($this->triggerType);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string triggerPrice = 19;</code>
     * @return string
     */
    public function getTriggerPrice()
    {
        return isset($this->triggerPrice) ? $this->triggerPrice : '';
    }

    public function hasTriggerPrice()
    {
        return isset($this->triggerPrice);
    }

    public function clearTriggerPrice()
    {
        unset($this->triggerPrice);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int32 state = 20;</code>
     * @return int
     */
    public function getState()
    {
        return isset($this->state) ? $this->state : 0;
    }

    public function hasState()
    {
        return isset($this->state);
    }

    public function clearState()
    {
        unset($this->state);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string ocoId = 21;</code>
     * @return string
     */
    public function getOcoId()
    {
        return isset($this->ocoId) ? $this->ocoId : '';
    }

    public function hasOcoId()
    {
        return isset($this->ocoId);
    }

    public function clearOcoId()
    {
        unset($this->ocoId);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string routeFactor = 22;</code>
     * @return string
     */
    public function getRouteFactor()
    {
        return isset($this->routeFactor) ? $this->routeFactor : '';
    }

    public function hasRouteFactor()
    {
        return isset($this->routeFactor);
    }

    public function clearRouteFactor()
    {
        unset($this->routeFactor);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string symbolId = 23;</code>
     * @return string
     */
    public function getSymbolId()
    {
        return isset($this->symbolId) ? $this->symbolId : '';
    }

    public function hasSymbolId()
    {
        return isset($this->symbolId);
    }

    public function clearSymbolId()
    {
        unset($this->symbolId);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string marketId = 24;</code>
     * @return string
     */
    public function getMarketId()
    {
        return isset($this->marketId) ? $this->marketId : '';
    }

    public function hasMarketId()
    {
        return isset($this->marketId);
    }

    public function clearMarketId()
    {
        unset($this->marketId);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string marketCurrencyId = 25;</code>
     * @return string
     */
    public function getMarketCurrencyId()
    {
        return isset($this->marketCurrencyId) ? $this->marketCurrencyId : '';
    }

    public function hasMarketCurrencyId()
    {
        return isset($this->marketCurrencyId);
    }

    public function clearMarketCurrencyId()
    {
        unset($this->marketCurrencyId);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string currencyId = 26;</code>
     * @return string
     */
    public function getCurrencyId()
    {
        return isset($this->currencyId) ? $this->currencyId : '';
    }

    public function hasCurrencyId()
    {
        return isset($this->currencyId);
    }

    public function clearCurrencyId()
    {
        unset($this->currencyId);
    }

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

        return $this;
    }

}

