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

namespace Keyapis\AccessManagement\V1\GroupClaimFilter;

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

/**
 * Условие принадлежности к группе
 *
 * Generated from protobuf message <code>keyapis.access_management.v1.GroupClaimFilter.UserData</code>
 */
class UserData extends \Google\Protobuf\Internal\Message
{
    /**
     * Атрибуты пользователя, claims которого мы хотим получить
     *
     * Generated from protobuf field <code>map<string, string> claims = 1;</code>
     */
    private $claims;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $claims
     *           Атрибуты пользователя, claims которого мы хотим получить
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\AccessManagement\V1\KeyapisAccessManagementGroupV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Атрибуты пользователя, claims которого мы хотим получить
     *
     * Generated from protobuf field <code>map<string, string> claims = 1;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getClaims()
    {
        return $this->claims;
    }

    /**
     * Атрибуты пользователя, claims которого мы хотим получить
     *
     * Generated from protobuf field <code>map<string, string> claims = 1;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setClaims($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->claims = $arr;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserData::class, \Keyapis\AccessManagement\V1\GroupClaimFilter_UserData::class);

