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

namespace Keyapis\Vc\V1\GetDictionaryCategoriesResponse;

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

/**
 * Список категорий
 *
 * Generated from protobuf message <code>keyapis.vc.v1.GetDictionaryCategoriesResponse.CameraCategories</code>
 */
class CameraCategories extends \Google\Protobuf\Internal\Message
{
    /**
     * Категория
     *
     * Generated from protobuf field <code>repeated .keyapis.vc.v1.Category category = 1;</code>
     */
    private $category;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Keyapis\Vc\V1\Category>|\Google\Protobuf\Internal\RepeatedField $category
     *           Категория
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Vc\V1\KeyapisVcCameraDictionaryV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Категория
     *
     * Generated from protobuf field <code>repeated .keyapis.vc.v1.Category category = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getCategory()
    {
        return $this->category;
    }

    /**
     * Категория
     *
     * Generated from protobuf field <code>repeated .keyapis.vc.v1.Category category = 1;</code>
     * @param array<\Keyapis\Vc\V1\Category>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setCategory($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Keyapis\Vc\V1\Category::class);
        $this->category = $arr;

        return $this;
    }

}

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

