<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/vc/v1/keyapis_vc_camera_archive_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.GetCameraArchiveIntervalsRequest</code>
 */
class GetCameraArchiveIntervalsRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор камеры
     *
     * Generated from protobuf field <code>string camera_uid = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $camera_uid = '';
    /**
     * Время с которого нужно получить интервалы архива unixtime
     *
     * Generated from protobuf field <code>.google.protobuf.DoubleValue timestamp_since = 2;</code>
     */
    protected $timestamp_since = null;
    /**
     * Время по которое нужно получить интервалы архива unixtime
     *
     * Generated from protobuf field <code>.google.protobuf.DoubleValue timestamp_till = 3;</code>
     */
    protected $timestamp_till = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $camera_uid
     *           Идентификатор камеры
     *     @type \Google\Protobuf\DoubleValue $timestamp_since
     *           Время с которого нужно получить интервалы архива unixtime
     *     @type \Google\Protobuf\DoubleValue $timestamp_till
     *           Время по которое нужно получить интервалы архива unixtime
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Vc\V1\KeyapisVcCameraArchiveV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор камеры
     *
     * Generated from protobuf field <code>string camera_uid = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getCameraUid()
    {
        return $this->camera_uid;
    }

    /**
     * Идентификатор камеры
     *
     * Generated from protobuf field <code>string camera_uid = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setCameraUid($var)
    {
        GPBUtil::checkString($var, True);
        $this->camera_uid = $var;

        return $this;
    }

    /**
     * Время с которого нужно получить интервалы архива unixtime
     *
     * Generated from protobuf field <code>.google.protobuf.DoubleValue timestamp_since = 2;</code>
     * @return \Google\Protobuf\DoubleValue|null
     */
    public function getTimestampSince()
    {
        return $this->timestamp_since;
    }

    public function hasTimestampSince()
    {
        return isset($this->timestamp_since);
    }

    public function clearTimestampSince()
    {
        unset($this->timestamp_since);
    }

    /**
     * Returns the unboxed value from <code>getTimestampSince()</code>

     * Время с которого нужно получить интервалы архива unixtime
     *
     * Generated from protobuf field <code>.google.protobuf.DoubleValue timestamp_since = 2;</code>
     * @return float|null
     */
    public function getTimestampSinceUnwrapped()
    {
        return $this->readWrapperValue("timestamp_since");
    }

    /**
     * Время с которого нужно получить интервалы архива unixtime
     *
     * Generated from protobuf field <code>.google.protobuf.DoubleValue timestamp_since = 2;</code>
     * @param \Google\Protobuf\DoubleValue $var
     * @return $this
     */
    public function setTimestampSince($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class);
        $this->timestamp_since = $var;

        return $this;
    }

    /**
     * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object.

     * Время с которого нужно получить интервалы архива unixtime
     *
     * Generated from protobuf field <code>.google.protobuf.DoubleValue timestamp_since = 2;</code>
     * @param float|null $var
     * @return $this
     */
    public function setTimestampSinceUnwrapped($var)
    {
        $this->writeWrapperValue("timestamp_since", $var);
        return $this;}

    /**
     * Время по которое нужно получить интервалы архива unixtime
     *
     * Generated from protobuf field <code>.google.protobuf.DoubleValue timestamp_till = 3;</code>
     * @return \Google\Protobuf\DoubleValue|null
     */
    public function getTimestampTill()
    {
        return $this->timestamp_till;
    }

    public function hasTimestampTill()
    {
        return isset($this->timestamp_till);
    }

    public function clearTimestampTill()
    {
        unset($this->timestamp_till);
    }

    /**
     * Returns the unboxed value from <code>getTimestampTill()</code>

     * Время по которое нужно получить интервалы архива unixtime
     *
     * Generated from protobuf field <code>.google.protobuf.DoubleValue timestamp_till = 3;</code>
     * @return float|null
     */
    public function getTimestampTillUnwrapped()
    {
        return $this->readWrapperValue("timestamp_till");
    }

    /**
     * Время по которое нужно получить интервалы архива unixtime
     *
     * Generated from protobuf field <code>.google.protobuf.DoubleValue timestamp_till = 3;</code>
     * @param \Google\Protobuf\DoubleValue $var
     * @return $this
     */
    public function setTimestampTill($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class);
        $this->timestamp_till = $var;

        return $this;
    }

    /**
     * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object.

     * Время по которое нужно получить интервалы архива unixtime
     *
     * Generated from protobuf field <code>.google.protobuf.DoubleValue timestamp_till = 3;</code>
     * @param float|null $var
     * @return $this
     */
    public function setTimestampTillUnwrapped($var)
    {
        $this->writeWrapperValue("timestamp_till", $var);
        return $this;}

}

