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

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

/**
 * Generated from protobuf message <code>PublicSpotKlineV3Api</code>
 */
class PublicSpotKlineV3Api extends \Google\Protobuf\Internal\Message
{
    /**
     *K线周期(Min1,Min5,Min15,Min30,Min60,Hour4,Hour8,Day1,Week1,Month1)
     *
     * Generated from protobuf field <code>string interval = 1;</code>
     */
    protected $interval = '';
    /**
     * 窗口开始时间戳(秒时间戳)
     *
     * Generated from protobuf field <code>int64 windowStart = 2;</code>
     */
    protected $windowStart = 0;
    /**
     * 开盘价
     *
     * Generated from protobuf field <code>string openingPrice = 3;</code>
     */
    protected $openingPrice = '';
    /**
     * 收盘价
     *
     * Generated from protobuf field <code>string closingPrice = 4;</code>
     */
    protected $closingPrice = '';
    /**
     * 最高价
     *
     * Generated from protobuf field <code>string highestPrice = 5;</code>
     */
    protected $highestPrice = '';
    /**
     * 最低价
     *
     * Generated from protobuf field <code>string lowestPrice = 6;</code>
     */
    protected $lowestPrice = '';
    /**
     * 成交量
     *
     * Generated from protobuf field <code>string volume = 7;</code>
     */
    protected $volume = '';
    /**
     * 成交额
     *
     * Generated from protobuf field <code>string amount = 8;</code>
     */
    protected $amount = '';
    /**
     * 窗口结束时间戳(秒时间戳)
     *
     * Generated from protobuf field <code>int64 windowEnd = 9;</code>
     */
    protected $windowEnd = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $interval
     *          K线周期(Min1,Min5,Min15,Min30,Min60,Hour4,Hour8,Day1,Week1,Month1)
     *     @type int|string $windowStart
     *           窗口开始时间戳(秒时间戳)
     *     @type string $openingPrice
     *           开盘价
     *     @type string $closingPrice
     *           收盘价
     *     @type string $highestPrice
     *           最高价
     *     @type string $lowestPrice
     *           最低价
     *     @type string $volume
     *           成交量
     *     @type string $amount
     *           成交额
     *     @type int|string $windowEnd
     *           窗口结束时间戳(秒时间戳)
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PublicSpotKlineV3Api::initOnce();
        parent::__construct($data);
    }

    /**
     *K线周期(Min1,Min5,Min15,Min30,Min60,Hour4,Hour8,Day1,Week1,Month1)
     *
     * Generated from protobuf field <code>string interval = 1;</code>
     * @return string
     */
    public function getInterval()
    {
        return $this->interval;
    }

    /**
     *K线周期(Min1,Min5,Min15,Min30,Min60,Hour4,Hour8,Day1,Week1,Month1)
     *
     * Generated from protobuf field <code>string interval = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setInterval($var)
    {
        GPBUtil::checkString($var, True);
        $this->interval = $var;

        return $this;
    }

    /**
     * 窗口开始时间戳(秒时间戳)
     *
     * Generated from protobuf field <code>int64 windowStart = 2;</code>
     * @return int|string
     */
    public function getWindowStart()
    {
        return $this->windowStart;
    }

    /**
     * 窗口开始时间戳(秒时间戳)
     *
     * Generated from protobuf field <code>int64 windowStart = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setWindowStart($var)
    {
        GPBUtil::checkInt64($var);
        $this->windowStart = $var;

        return $this;
    }

    /**
     * 开盘价
     *
     * Generated from protobuf field <code>string openingPrice = 3;</code>
     * @return string
     */
    public function getOpeningPrice()
    {
        return $this->openingPrice;
    }

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

        return $this;
    }

    /**
     * 收盘价
     *
     * Generated from protobuf field <code>string closingPrice = 4;</code>
     * @return string
     */
    public function getClosingPrice()
    {
        return $this->closingPrice;
    }

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

        return $this;
    }

    /**
     * 最高价
     *
     * Generated from protobuf field <code>string highestPrice = 5;</code>
     * @return string
     */
    public function getHighestPrice()
    {
        return $this->highestPrice;
    }

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

        return $this;
    }

    /**
     * 最低价
     *
     * Generated from protobuf field <code>string lowestPrice = 6;</code>
     * @return string
     */
    public function getLowestPrice()
    {
        return $this->lowestPrice;
    }

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

        return $this;
    }

    /**
     * 成交量
     *
     * Generated from protobuf field <code>string volume = 7;</code>
     * @return string
     */
    public function getVolume()
    {
        return $this->volume;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * 窗口结束时间戳(秒时间戳)
     *
     * Generated from protobuf field <code>int64 windowEnd = 9;</code>
     * @return int|string
     */
    public function getWindowEnd()
    {
        return $this->windowEnd;
    }

    /**
     * 窗口结束时间戳(秒时间戳)
     *
     * Generated from protobuf field <code>int64 windowEnd = 9;</code>
     * @param int|string $var
     * @return $this
     */
    public function setWindowEnd($var)
    {
        GPBUtil::checkInt64($var);
        $this->windowEnd = $var;

        return $this;
    }

}

