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

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

/**
 * Generated from protobuf message <code>PrivateDealsV3Api</code>
 */
class PrivateDealsV3Api extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string price = 1;</code>
     */
    protected $price = '';
    /**
     * Generated from protobuf field <code>string quantity = 2;</code>
     */
    protected $quantity = '';
    /**
     * Generated from protobuf field <code>string amount = 3;</code>
     */
    protected $amount = '';
    /**
     * Generated from protobuf field <code>int32 tradeType = 4;</code>
     */
    protected $tradeType = 0;
    /**
     * Generated from protobuf field <code>bool isMaker = 5;</code>
     */
    protected $isMaker = false;
    /**
     * Generated from protobuf field <code>bool isSelfTrade = 6;</code>
     */
    protected $isSelfTrade = false;
    /**
     * Generated from protobuf field <code>string tradeId = 7;</code>
     */
    protected $tradeId = '';
    /**
     * Generated from protobuf field <code>string clientOrderId = 8;</code>
     */
    protected $clientOrderId = '';
    /**
     * Generated from protobuf field <code>string orderId = 9;</code>
     */
    protected $orderId = '';
    /**
     * Generated from protobuf field <code>string feeAmount = 10;</code>
     */
    protected $feeAmount = '';
    /**
     * Generated from protobuf field <code>string feeCurrency = 11;</code>
     */
    protected $feeCurrency = '';
    /**
     * Generated from protobuf field <code>int64 time = 12;</code>
     */
    protected $time = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $price
     *     @type string $quantity
     *     @type string $amount
     *     @type int $tradeType
     *     @type bool $isMaker
     *     @type bool $isSelfTrade
     *     @type string $tradeId
     *     @type string $clientOrderId
     *     @type string $orderId
     *     @type string $feeAmount
     *     @type string $feeCurrency
     *     @type int|string $time
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PrivateDealsV3Api::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Generated from protobuf field <code>string price = 1;</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 = 2;</code>
     * @return string
     */
    public function getQuantity()
    {
        return $this->quantity;
    }

    /**
     * Generated from protobuf field <code>string quantity = 2;</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 = 3;</code>
     * @return string
     */
    public function getAmount()
    {
        return $this->amount;
    }

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>int32 tradeType = 4;</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 = 5;</code>
     * @return bool
     */
    public function getIsMaker()
    {
        return $this->isMaker;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool isSelfTrade = 6;</code>
     * @return bool
     */
    public function getIsSelfTrade()
    {
        return $this->isSelfTrade;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string tradeId = 7;</code>
     * @return string
     */
    public function getTradeId()
    {
        return $this->tradeId;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string clientOrderId = 8;</code>
     * @return string
     */
    public function getClientOrderId()
    {
        return $this->clientOrderId;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string orderId = 9;</code>
     * @return string
     */
    public function getOrderId()
    {
        return $this->orderId;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

}

