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

namespace Keyapis\Vc\V1\GetCameraIntervalsResponse;

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</code>
 */
class Interval extends \Google\Protobuf\Internal\Message
{
    /**
     * Список интервалов
     *
     * Generated from protobuf field <code>repeated .keyapis.vc.v1.GetCameraIntervalsResponse.Interval.Item items = 1;</code>
     */
    private $items;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Keyapis\Vc\V1\GetCameraIntervalsResponse\Interval\Item>|\Google\Protobuf\Internal\RepeatedField $items
     *           Список интервалов
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Vc\V1\KeyapisVcCameraV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Список интервалов
     *
     * Generated from protobuf field <code>repeated .keyapis.vc.v1.GetCameraIntervalsResponse.Interval.Item items = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getItems()
    {
        return $this->items;
    }

    /**
     * Список интервалов
     *
     * Generated from protobuf field <code>repeated .keyapis.vc.v1.GetCameraIntervalsResponse.Interval.Item items = 1;</code>
     * @param array<\Keyapis\Vc\V1\GetCameraIntervalsResponse\Interval\Item>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setItems($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Keyapis\Vc\V1\GetCameraIntervalsResponse\Interval\Item::class);
        $this->items = $arr;

        return $this;
    }

}

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

