<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: deviceapis/device/v1/deviceapis_device_code_v1.proto

namespace Deviceapis\Device\V1;

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

/**
 * Запрос удаления одного кода доступа
 *
 * Generated from protobuf message <code>deviceapis.device.v1.DeleteCodeRequest</code>
 */
class DeleteCodeRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Код доступа
     *
     * Generated from protobuf field <code>string code = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $code = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $code
     *           Код доступа
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Deviceapis\Device\V1\DeviceapisDeviceCodeV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Код доступа
     *
     * Generated from protobuf field <code>string code = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return string
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * Код доступа
     *
     * Generated from protobuf field <code>string code = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @param string $var
     * @return $this
     */
    public function setCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->code = $var;

        return $this;
    }

}

