<?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.GetCameraArchiveCalendarRequest</code>
 */
class GetCameraArchiveCalendarRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор камеры
     *
     * Generated from protobuf field <code>string camera_uid = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $camera_uid = '';
    /**
     * Смещение таймзоны в минутах.
     * # Диапазон: -720..840
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value utc_offset = 2;</code>
     */
    protected $utc_offset = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $camera_uid
     *           Идентификатор камеры
     *     @type \Google\Protobuf\Int32Value $utc_offset
     *           Смещение таймзоны в минутах.
     *           # Диапазон: -720..840
     * }
     */
    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;
    }

    /**
     * Смещение таймзоны в минутах.
     * # Диапазон: -720..840
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value utc_offset = 2;</code>
     * @return \Google\Protobuf\Int32Value|null
     */
    public function getUtcOffset()
    {
        return $this->utc_offset;
    }

    public function hasUtcOffset()
    {
        return isset($this->utc_offset);
    }

    public function clearUtcOffset()
    {
        unset($this->utc_offset);
    }

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

     * Смещение таймзоны в минутах.
     * # Диапазон: -720..840
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value utc_offset = 2;</code>
     * @return int|null
     */
    public function getUtcOffsetUnwrapped()
    {
        return $this->readWrapperValue("utc_offset");
    }

    /**
     * Смещение таймзоны в минутах.
     * # Диапазон: -720..840
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value utc_offset = 2;</code>
     * @param \Google\Protobuf\Int32Value $var
     * @return $this
     */
    public function setUtcOffset($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class);
        $this->utc_offset = $var;

        return $this;
    }

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

     * Смещение таймзоны в минутах.
     * # Диапазон: -720..840
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value utc_offset = 2;</code>
     * @param int|null $var
     * @return $this
     */
    public function setUtcOffsetUnwrapped($var)
    {
        $this->writeWrapperValue("utc_offset", $var);
        return $this;}

}

