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

namespace Keyapis\Vc\V1\GetCameraIntervalsResponse\Interval;

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

/**
 * Интервал
 *
 * Generated from protobuf message <code>keyapis.vc.v1.GetCameraIntervalsResponse.Interval.Item</code>
 */
class Item extends \Google\Protobuf\Internal\Message
{
    /**
     * Значение интервала с.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp since_at = 1;</code>
     */
    protected $since_at = null;
    /**
     * Значение интервала до.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp till_at = 2;</code>
     */
    protected $till_at = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Protobuf\Timestamp $since_at
     *           Значение интервала с.
     *           # Тип: DateTime
     *     @type \Google\Protobuf\Timestamp $till_at
     *           Значение интервала до.
     *           # Тип: DateTime
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Vc\V1\KeyapisVcCameraV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Значение интервала с.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp since_at = 1;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getSinceAt()
    {
        return $this->since_at;
    }

    public function hasSinceAt()
    {
        return isset($this->since_at);
    }

    public function clearSinceAt()
    {
        unset($this->since_at);
    }

    /**
     * Значение интервала с.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp since_at = 1;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setSinceAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->since_at = $var;

        return $this;
    }

    /**
     * Значение интервала до.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp till_at = 2;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getTillAt()
    {
        return $this->till_at;
    }

    public function hasTillAt()
    {
        return isset($this->till_at);
    }

    public function clearTillAt()
    {
        unset($this->till_at);
    }

    /**
     * Значение интервала до.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp till_at = 2;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setTillAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->till_at = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Item::class, \Keyapis\Vc\V1\GetCameraIntervalsResponse_Interval_Item::class);

