<?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.GetArchiveMinutesCompanyCameraChannelRequest</code>
 */
class GetArchiveMinutesCompanyCameraChannelRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор компании.
     * # Диапазон: 1..2147483647
     *
     * Generated from protobuf field <code>int32 company_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $company_id = 0;
    /**
     * Идентификатор камеры
     *
     * Generated from protobuf field <code>string camera_uid = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $camera_uid = '';
    /**
     * Идентификатор канала
     *
     * Generated from protobuf field <code>string channel_uid = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $channel_uid = '';
    /**
     * Начало промежутка минуток.
     * Дата в формате Unix.
     * Пример 1598269021.755.
     * # Не превышает: till_timestamp
     *
     * Generated from protobuf field <code>.google.protobuf.DoubleValue since_timestamp = 4;</code>
     */
    protected $since_timestamp = null;
    /**
     * Конец промежутка минуток.
     * Дата в формате Unix.
     * Пример 1598269021.755
     *
     * Generated from protobuf field <code>.google.protobuf.DoubleValue till_timestamp = 5;</code>
     */
    protected $till_timestamp = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $company_id
     *           Идентификатор компании.
     *           # Диапазон: 1..2147483647
     *     @type string $camera_uid
     *           Идентификатор камеры
     *     @type string $channel_uid
     *           Идентификатор канала
     *     @type \Google\Protobuf\DoubleValue $since_timestamp
     *           Начало промежутка минуток.
     *           Дата в формате Unix.
     *           Пример 1598269021.755.
     *           # Не превышает: till_timestamp
     *     @type \Google\Protobuf\DoubleValue $till_timestamp
     *           Конец промежутка минуток.
     *           Дата в формате Unix.
     *           Пример 1598269021.755
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Vc\V1\KeyapisVcArchiveMinutesV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор компании.
     * # Диапазон: 1..2147483647
     *
     * Generated from protobuf field <code>int32 company_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getCompanyId()
    {
        return $this->company_id;
    }

    /**
     * Идентификатор компании.
     * # Диапазон: 1..2147483647
     *
     * Generated from protobuf field <code>int32 company_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setCompanyId($var)
    {
        GPBUtil::checkInt32($var);
        $this->company_id = $var;

        return $this;
    }

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

    /**
     * Идентификатор камеры
     *
     * Generated from protobuf field <code>string camera_uid = 2 [(.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;
    }

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

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

        return $this;
    }

    /**
     * Начало промежутка минуток.
     * Дата в формате Unix.
     * Пример 1598269021.755.
     * # Не превышает: till_timestamp
     *
     * Generated from protobuf field <code>.google.protobuf.DoubleValue since_timestamp = 4;</code>
     * @return \Google\Protobuf\DoubleValue|null
     */
    public function getSinceTimestamp()
    {
        return $this->since_timestamp;
    }

    public function hasSinceTimestamp()
    {
        return isset($this->since_timestamp);
    }

    public function clearSinceTimestamp()
    {
        unset($this->since_timestamp);
    }

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

     * Начало промежутка минуток.
     * Дата в формате Unix.
     * Пример 1598269021.755.
     * # Не превышает: till_timestamp
     *
     * Generated from protobuf field <code>.google.protobuf.DoubleValue since_timestamp = 4;</code>
     * @return float|null
     */
    public function getSinceTimestampUnwrapped()
    {
        return $this->readWrapperValue("since_timestamp");
    }

    /**
     * Начало промежутка минуток.
     * Дата в формате Unix.
     * Пример 1598269021.755.
     * # Не превышает: till_timestamp
     *
     * Generated from protobuf field <code>.google.protobuf.DoubleValue since_timestamp = 4;</code>
     * @param \Google\Protobuf\DoubleValue $var
     * @return $this
     */
    public function setSinceTimestamp($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class);
        $this->since_timestamp = $var;

        return $this;
    }

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

     * Начало промежутка минуток.
     * Дата в формате Unix.
     * Пример 1598269021.755.
     * # Не превышает: till_timestamp
     *
     * Generated from protobuf field <code>.google.protobuf.DoubleValue since_timestamp = 4;</code>
     * @param float|null $var
     * @return $this
     */
    public function setSinceTimestampUnwrapped($var)
    {
        $this->writeWrapperValue("since_timestamp", $var);
        return $this;}

    /**
     * Конец промежутка минуток.
     * Дата в формате Unix.
     * Пример 1598269021.755
     *
     * Generated from protobuf field <code>.google.protobuf.DoubleValue till_timestamp = 5;</code>
     * @return \Google\Protobuf\DoubleValue|null
     */
    public function getTillTimestamp()
    {
        return $this->till_timestamp;
    }

    public function hasTillTimestamp()
    {
        return isset($this->till_timestamp);
    }

    public function clearTillTimestamp()
    {
        unset($this->till_timestamp);
    }

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

     * Конец промежутка минуток.
     * Дата в формате Unix.
     * Пример 1598269021.755
     *
     * Generated from protobuf field <code>.google.protobuf.DoubleValue till_timestamp = 5;</code>
     * @return float|null
     */
    public function getTillTimestampUnwrapped()
    {
        return $this->readWrapperValue("till_timestamp");
    }

    /**
     * Конец промежутка минуток.
     * Дата в формате Unix.
     * Пример 1598269021.755
     *
     * Generated from protobuf field <code>.google.protobuf.DoubleValue till_timestamp = 5;</code>
     * @param \Google\Protobuf\DoubleValue $var
     * @return $this
     */
    public function setTillTimestamp($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class);
        $this->till_timestamp = $var;

        return $this;
    }

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

     * Конец промежутка минуток.
     * Дата в формате Unix.
     * Пример 1598269021.755
     *
     * Generated from protobuf field <code>.google.protobuf.DoubleValue till_timestamp = 5;</code>
     * @param float|null $var
     * @return $this
     */
    public function setTillTimestampUnwrapped($var)
    {
        $this->writeWrapperValue("till_timestamp", $var);
        return $this;}

}

