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

namespace Keyapis\Kms\V1\PostKmsJwtCreateJweRequest;

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

/**
 * Claims (данные включаемые в тело токена)
 *
 * Generated from protobuf message <code>keyapis.kms.v1.PostKmsJwtCreateJweRequest.PayloadData</code>
 */
class PayloadData extends \Google\Protobuf\Internal\Message
{
    /**
     * Словарь значений.
     * Ключи и значения являются строками.
     * # Диапазон: 1..128
     *
     * Generated from protobuf field <code>map<string, string> values = 1;</code>
     */
    private $values;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $values
     *           Словарь значений.
     *           Ключи и значения являются строками.
     *           # Диапазон: 1..128
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Kms\V1\KeyapisKmsJwtV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Словарь значений.
     * Ключи и значения являются строками.
     * # Диапазон: 1..128
     *
     * Generated from protobuf field <code>map<string, string> values = 1;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getValues()
    {
        return $this->values;
    }

    /**
     * Словарь значений.
     * Ключи и значения являются строками.
     * # Диапазон: 1..128
     *
     * Generated from protobuf field <code>map<string, string> values = 1;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setValues($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->values = $arr;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PayloadData::class, \Keyapis\Kms\V1\PostKmsJwtCreateJweRequest_PayloadData::class);

