<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/vc/v1/keyapis_vc_camera_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.GetCameraIntervalsRequest</code>
 */
class GetCameraIntervalsRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор камеры в vcfront.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string uid = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $uid = '';
    /**
     * Смещение от UTC в минутах
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value offset = 2;</code>
     */
    protected $offset = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $uid
     *           Идентификатор камеры в vcfront.
     *           # Тип: Guid
     *     @type \Google\Protobuf\Int32Value $offset
     *           Смещение от UTC в минутах
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Vc\V1\KeyapisVcCameraV1::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Смещение от UTC в минутах
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value offset = 2;</code>
     * @return \Google\Protobuf\Int32Value|null
     */
    public function getOffset()
    {
        return $this->offset;
    }

    public function hasOffset()
    {
        return isset($this->offset);
    }

    public function clearOffset()
    {
        unset($this->offset);
    }

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

     * Смещение от UTC в минутах
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value offset = 2;</code>
     * @return int|null
     */
    public function getOffsetUnwrapped()
    {
        return $this->readWrapperValue("offset");
    }

    /**
     * Смещение от UTC в минутах
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value offset = 2;</code>
     * @param \Google\Protobuf\Int32Value $var
     * @return $this
     */
    public function setOffset($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class);
        $this->offset = $var;

        return $this;
    }

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

     * Смещение от UTC в минутах
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value offset = 2;</code>
     * @param int|null $var
     * @return $this
     */
    public function setOffsetUnwrapped($var)
    {
        $this->writeWrapperValue("offset", $var);
        return $this;}

}

