<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/vc/v1/keyapis_vc_archive_minutes_v1.proto

namespace Keyapis\Vc\V1;

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

/**
 * Интервал архивной минутки
 *
 * Generated from protobuf message <code>keyapis.vc.v1.ArchiveMinuteInterval</code>
 */
class ArchiveMinuteInterval extends \Google\Protobuf\Internal\Message
{
    /**
     * Начало минутки.
     * Дата в формате Unix.
     * Пример 1598269021.755
     *
     * Generated from protobuf field <code>double since_timestamp = 1;</code>
     */
    protected $since_timestamp = 0.0;
    /**
     * Конец минутки.
     * Дата в формате Unix.
     * Пример 1598269021.755
     *
     * Generated from protobuf field <code>double till_timestamp = 2;</code>
     */
    protected $till_timestamp = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $since_timestamp
     *           Начало минутки.
     *           Дата в формате Unix.
     *           Пример 1598269021.755
     *     @type float $till_timestamp
     *           Конец минутки.
     *           Дата в формате Unix.
     *           Пример 1598269021.755
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Vc\V1\KeyapisVcArchiveMinutesV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Начало минутки.
     * Дата в формате Unix.
     * Пример 1598269021.755
     *
     * Generated from protobuf field <code>double since_timestamp = 1;</code>
     * @return float
     */
    public function getSinceTimestamp()
    {
        return $this->since_timestamp;
    }

    /**
     * Начало минутки.
     * Дата в формате Unix.
     * Пример 1598269021.755
     *
     * Generated from protobuf field <code>double since_timestamp = 1;</code>
     * @param float $var
     * @return $this
     */
    public function setSinceTimestamp($var)
    {
        GPBUtil::checkDouble($var);
        $this->since_timestamp = $var;

        return $this;
    }

    /**
     * Конец минутки.
     * Дата в формате Unix.
     * Пример 1598269021.755
     *
     * Generated from protobuf field <code>double till_timestamp = 2;</code>
     * @return float
     */
    public function getTillTimestamp()
    {
        return $this->till_timestamp;
    }

    /**
     * Конец минутки.
     * Дата в формате Unix.
     * Пример 1598269021.755
     *
     * Generated from protobuf field <code>double till_timestamp = 2;</code>
     * @param float $var
     * @return $this
     */
    public function setTillTimestamp($var)
    {
        GPBUtil::checkDouble($var);
        $this->till_timestamp = $var;

        return $this;
    }

}

