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

namespace Keyapis\Vc\V1\GetCameraListResponse;

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

/**
 * Список
 *
 * Generated from protobuf message <code>keyapis.vc.v1.GetCameraListResponse.Data</code>
 */
class Data extends \Google\Protobuf\Internal\Message
{
    /**
     * Список Camera
     *
     * Generated from protobuf field <code>repeated .keyapis.vc.v1.Camera items = 1;</code>
     */
    private $items;
    /**
     * Всего количество
     *
     * Generated from protobuf field <code>int32 total = 2;</code>
     */
    protected $total = 0;

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

    /**
     * Список Camera
     *
     * Generated from protobuf field <code>repeated .keyapis.vc.v1.Camera items = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getItems()
    {
        return $this->items;
    }

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

        return $this;
    }

    /**
     * Всего количество
     *
     * Generated from protobuf field <code>int32 total = 2;</code>
     * @return int
     */
    public function getTotal()
    {
        return $this->total;
    }

    /**
     * Всего количество
     *
     * Generated from protobuf field <code>int32 total = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setTotal($var)
    {
        GPBUtil::checkInt32($var);
        $this->total = $var;

        return $this;
    }

}

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

