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

namespace Keyapis\Rfidregistry\V1\Record;

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

/**
 * Конфигурация шифрования ключа
 *
 * Generated from protobuf message <code>keyapis.rfidregistry.v1.Record.AesKeyConfiguration</code>
 */
class AesKeyConfiguration extends \Google\Protobuf\Internal\Message
{
    /**
     * Адрес.
     * # Паттерн: /^[A-Za-z0-9=]+$/
     *
     * Generated from protobuf field <code>string address = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $address = '';
    /**
     * Данные.
     * # Паттерн: /^[A-Za-z0-9=]+$/
     *
     * Generated from protobuf field <code>string data = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $data = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $address
     *           Адрес.
     *           # Паттерн: /^[A-Za-z0-9=]+$/
     *     @type string $data
     *           Данные.
     *           # Паттерн: /^[A-Za-z0-9=]+$/
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Rfidregistry\V1\KeyapisRfidregistryRecordV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Адрес.
     * # Паттерн: /^[A-Za-z0-9=]+$/
     *
     * Generated from protobuf field <code>string address = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getAddress()
    {
        return $this->address;
    }

    /**
     * Адрес.
     * # Паттерн: /^[A-Za-z0-9=]+$/
     *
     * Generated from protobuf field <code>string address = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setAddress($var)
    {
        GPBUtil::checkString($var, True);
        $this->address = $var;

        return $this;
    }

    /**
     * Данные.
     * # Паттерн: /^[A-Za-z0-9=]+$/
     *
     * Generated from protobuf field <code>string data = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getData()
    {
        return $this->data;
    }

    /**
     * Данные.
     * # Паттерн: /^[A-Za-z0-9=]+$/
     *
     * Generated from protobuf field <code>string data = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setData($var)
    {
        GPBUtil::checkString($var, True);
        $this->data = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AesKeyConfiguration::class, \Keyapis\Rfidregistry\V1\Record_AesKeyConfiguration::class);

