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

namespace Keyapis\Vc\V1\GetDictionaryRolesResponse;

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

/**
 * Список ролей
 *
 * Generated from protobuf message <code>keyapis.vc.v1.GetDictionaryRolesResponse.Roles</code>
 */
class Roles extends \Google\Protobuf\Internal\Message
{
    /**
     * Роли
     *
     * Generated from protobuf field <code>repeated .keyapis.vc.v1.Role roles = 1;</code>
     */
    private $roles;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Keyapis\Vc\V1\Role>|\Google\Protobuf\Internal\RepeatedField $roles
     *           Роли
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Vc\V1\KeyapisVcCameraDictionaryV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Роли
     *
     * Generated from protobuf field <code>repeated .keyapis.vc.v1.Role roles = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getRoles()
    {
        return $this->roles;
    }

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

        return $this;
    }

}

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

