// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/access_control/v1/keyapis_access_control_rfid_v1.proto

// This CPP symbol can be defined to use imports that match up to the framework
// imports needed when using CocoaPods.
#if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
 #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
#endif

#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
 #import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h>
#else
 #import "GPBProtocolBuffers_RuntimeSupport.h"
#endif

#if GOOGLE_PROTOBUF_OBJC_VERSION < 30007
#error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
#endif
#if 30007 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
#error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
#endif

#import <stdatomic.h>

#import "keyapis/access_control/v1/KeyapisAccessControlRfidV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "keyapis/access_control/v1/KeyapisAccessControlAccessControlV1.pbobjc.h"
// @@protoc_insertion_point(imports)

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma clang diagnostic ignored "-Wdirect-ivar-access"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"

#pragma mark - Objective-C Class declarations
// Forward declarations of Objective-C classes that we can use as
// static values in struct initializers.
// We don't use [Foo class] because it is not a static value.
GPBObjCClassDeclaration(GPBInt32Value);
GPBObjCClassDeclaration(GPBStringValue);
GPBObjCClassDeclaration(GPBTimestamp);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1DeleteRfidRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1DeleteRfidResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1DeleteRfidResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRfidCountRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRfidCountResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRfidCountResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRfidListRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRfidListResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRfidListResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRfidRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRfidResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRfidResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PostRfidRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PostRfidResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PostRfidResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1Rfid);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1RfidFilter);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1RfidPaging);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1Rfid_SavingError);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1Rfid_SavingError_Conflict);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1Rfid_SavingError_ExceededQuantityOfKeysForRoom);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1Rfid_SavingError_HolderTypeForbidden);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyCodeCannotBeChanged);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyExist);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyIsUsed);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1ValidationError);

#pragma mark - KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root

@implementation KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root

+ (GPBExtensionRegistry*)extensionRegistry {
  // This is called by +initialize so there is no need to worry
  // about thread safety and initialization of registry.
  static GPBExtensionRegistry* registry = nil;
  if (!registry) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    registry = [[GPBExtensionRegistry alloc] init];
    // Merge in the imports (direct or indirect) that defined extensions.
    [registry addExtensions:[GAPIAnnotationsRoot extensionRegistry]];
    [registry addExtensions:[GAPIFieldBehaviorRoot extensionRegistry]];
  }
  return registry;
}

@end

static GPBFileDescription KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription = {
  .package = "keyapis.access_control.v1",
  .prefix = "KEYAPISACCESSCONTROLV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum KEYAPISACCESSCONTROLV1Rfid_PayType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1Rfid_PayType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "PayTypeUnknown\000Paid\000Free\000";
    static const int32_t values[] = {
        KEYAPISACCESSCONTROLV1Rfid_PayType_PayTypeUnknown,
        KEYAPISACCESSCONTROLV1Rfid_PayType_Paid,
        KEYAPISACCESSCONTROLV1Rfid_PayType_Free,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1Rfid_PayType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1Rfid_PayType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1Rfid_PayType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1Rfid_PayType_PayTypeUnknown:
    case KEYAPISACCESSCONTROLV1Rfid_PayType_Paid:
    case KEYAPISACCESSCONTROLV1Rfid_PayType_Free:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISACCESSCONTROLV1Rfid_HolderType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1Rfid_HolderType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "HolderTypeUnknown\000Master\000Company\000Externa"
        "lSeller\000System\000";
    static const int32_t values[] = {
        KEYAPISACCESSCONTROLV1Rfid_HolderType_HolderTypeUnknown,
        KEYAPISACCESSCONTROLV1Rfid_HolderType_Master,
        KEYAPISACCESSCONTROLV1Rfid_HolderType_Company,
        KEYAPISACCESSCONTROLV1Rfid_HolderType_ExternalSeller,
        KEYAPISACCESSCONTROLV1Rfid_HolderType_System,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1Rfid_HolderType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1Rfid_HolderType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1Rfid_HolderType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1Rfid_HolderType_HolderTypeUnknown:
    case KEYAPISACCESSCONTROLV1Rfid_HolderType_Master:
    case KEYAPISACCESSCONTROLV1Rfid_HolderType_Company:
    case KEYAPISACCESSCONTROLV1Rfid_HolderType_ExternalSeller:
    case KEYAPISACCESSCONTROLV1Rfid_HolderType_System:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISACCESSCONTROLV1RfidPaging_OrderByType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1RfidPaging_OrderByType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "OrderByTypeUnknown\000CreatedAt\000ChangedAt\000";
    static const int32_t values[] = {
        KEYAPISACCESSCONTROLV1RfidPaging_OrderByType_OrderByTypeUnknown,
        KEYAPISACCESSCONTROLV1RfidPaging_OrderByType_CreatedAt,
        KEYAPISACCESSCONTROLV1RfidPaging_OrderByType_ChangedAt,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1RfidPaging_OrderByType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1RfidPaging_OrderByType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1RfidPaging_OrderByType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1RfidPaging_OrderByType_OrderByTypeUnknown:
    case KEYAPISACCESSCONTROLV1RfidPaging_OrderByType_CreatedAt:
    case KEYAPISACCESSCONTROLV1RfidPaging_OrderByType_ChangedAt:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISACCESSCONTROLV1RfidPaging_DirectionType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1RfidPaging_DirectionType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "DirectionTypeUnknown\000Desc\000Asc\000";
    static const int32_t values[] = {
        KEYAPISACCESSCONTROLV1RfidPaging_DirectionType_DirectionTypeUnknown,
        KEYAPISACCESSCONTROLV1RfidPaging_DirectionType_Desc,
        KEYAPISACCESSCONTROLV1RfidPaging_DirectionType_Asc,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1RfidPaging_DirectionType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1RfidPaging_DirectionType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1RfidPaging_DirectionType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1RfidPaging_DirectionType_DirectionTypeUnknown:
    case KEYAPISACCESSCONTROLV1RfidPaging_DirectionType_Desc:
    case KEYAPISACCESSCONTROLV1RfidPaging_DirectionType_Asc:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISACCESSCONTROLV1Rfid

@implementation KEYAPISACCESSCONTROLV1Rfid

@dynamic id_p;
@dynamic hasUserId, userId;
@dynamic hasDescription_p, description_p;
@dynamic hasCompanyId, companyId;
@dynamic hasCreatorId, creatorId;
@dynamic key;
@dynamic payType;
@dynamic holderType;
@dynamic hasCreatedAt, createdAt;
@dynamic hasChangedAt, changedAt;
@dynamic orpon;
@dynamic roomNumber;

typedef struct KEYAPISACCESSCONTROLV1Rfid__storage_ {
  uint32_t _has_storage_[1];
  int32_t id_p;
  KEYAPISACCESSCONTROLV1Rfid_PayType payType;
  KEYAPISACCESSCONTROLV1Rfid_HolderType holderType;
  GPBInt32Value *userId;
  GPBStringValue *description_p;
  GPBInt32Value *companyId;
  GPBInt32Value *creatorId;
  NSString *key;
  GPBTimestamp *createdAt;
  GPBTimestamp *changedAt;
  NSString *roomNumber;
  int64_t orpon;
} KEYAPISACCESSCONTROLV1Rfid__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "id_p",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1Rfid_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Rfid__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "userId",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt32Value),
        .number = KEYAPISACCESSCONTROLV1Rfid_FieldNumber_UserId,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Rfid__storage_, userId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "description_p",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISACCESSCONTROLV1Rfid_FieldNumber_Description_p,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Rfid__storage_, description_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "companyId",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt32Value),
        .number = KEYAPISACCESSCONTROLV1Rfid_FieldNumber_CompanyId,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Rfid__storage_, companyId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "creatorId",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt32Value),
        .number = KEYAPISACCESSCONTROLV1Rfid_FieldNumber_CreatorId,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Rfid__storage_, creatorId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "key",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1Rfid_FieldNumber_Key,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Rfid__storage_, key),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "payType",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1Rfid_PayType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1Rfid_FieldNumber_PayType,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Rfid__storage_, payType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "holderType",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1Rfid_HolderType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1Rfid_FieldNumber_HolderType,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Rfid__storage_, holderType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "createdAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISACCESSCONTROLV1Rfid_FieldNumber_CreatedAt,
        .hasIndex = 8,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Rfid__storage_, createdAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "changedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISACCESSCONTROLV1Rfid_FieldNumber_ChangedAt,
        .hasIndex = 9,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Rfid__storage_, changedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "orpon",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1Rfid_FieldNumber_Orpon,
        .hasIndex = 10,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Rfid__storage_, orpon),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "roomNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1Rfid_FieldNumber_RoomNumber,
        .hasIndex = 11,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Rfid__storage_, roomNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid)
                                   messageName:@"Rfid"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1Rfid__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

int32_t KEYAPISACCESSCONTROLV1Rfid_PayType_RawValue(KEYAPISACCESSCONTROLV1Rfid *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1Rfid descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1Rfid_FieldNumber_PayType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1Rfid_PayType_RawValue(KEYAPISACCESSCONTROLV1Rfid *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1Rfid descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1Rfid_FieldNumber_PayType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISACCESSCONTROLV1Rfid_HolderType_RawValue(KEYAPISACCESSCONTROLV1Rfid *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1Rfid descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1Rfid_FieldNumber_HolderType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1Rfid_HolderType_RawValue(KEYAPISACCESSCONTROLV1Rfid *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1Rfid descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1Rfid_FieldNumber_HolderType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISACCESSCONTROLV1Rfid_SavingError

@implementation KEYAPISACCESSCONTROLV1Rfid_SavingError

@dynamic reasonOneOfCase;
@dynamic conflict;
@dynamic keyExist;
@dynamic keyCodeCannotBeChanged;
@dynamic exceededQuantityOfKeysForRoom;
@dynamic keyIsUsed;
@dynamic holderTypeForbidden;

typedef struct KEYAPISACCESSCONTROLV1Rfid_SavingError__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1Rfid_SavingError_Conflict *conflict;
  KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyExist *keyExist;
  KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyCodeCannotBeChanged *keyCodeCannotBeChanged;
  KEYAPISACCESSCONTROLV1Rfid_SavingError_ExceededQuantityOfKeysForRoom *exceededQuantityOfKeysForRoom;
  KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyIsUsed *keyIsUsed;
  KEYAPISACCESSCONTROLV1Rfid_SavingError_HolderTypeForbidden *holderTypeForbidden;
} KEYAPISACCESSCONTROLV1Rfid_SavingError__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "conflict",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid_SavingError_Conflict),
        .number = KEYAPISACCESSCONTROLV1Rfid_SavingError_FieldNumber_Conflict,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Rfid_SavingError__storage_, conflict),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "keyExist",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyExist),
        .number = KEYAPISACCESSCONTROLV1Rfid_SavingError_FieldNumber_KeyExist,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Rfid_SavingError__storage_, keyExist),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "keyCodeCannotBeChanged",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyCodeCannotBeChanged),
        .number = KEYAPISACCESSCONTROLV1Rfid_SavingError_FieldNumber_KeyCodeCannotBeChanged,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Rfid_SavingError__storage_, keyCodeCannotBeChanged),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "exceededQuantityOfKeysForRoom",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid_SavingError_ExceededQuantityOfKeysForRoom),
        .number = KEYAPISACCESSCONTROLV1Rfid_SavingError_FieldNumber_ExceededQuantityOfKeysForRoom,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Rfid_SavingError__storage_, exceededQuantityOfKeysForRoom),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "keyIsUsed",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyIsUsed),
        .number = KEYAPISACCESSCONTROLV1Rfid_SavingError_FieldNumber_KeyIsUsed,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Rfid_SavingError__storage_, keyIsUsed),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "holderTypeForbidden",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid_SavingError_HolderTypeForbidden),
        .number = KEYAPISACCESSCONTROLV1Rfid_SavingError_FieldNumber_HolderTypeForbidden,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Rfid_SavingError__storage_, holderTypeForbidden),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid_SavingError)
                                   messageName:@"SavingError"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1Rfid_SavingError__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "reason",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISACCESSCONTROLV1Rfid_SavingError_ClearReasonOneOfCase(KEYAPISACCESSCONTROLV1Rfid_SavingError *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1Rfid_SavingError descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1Rfid_SavingError_Conflict

@implementation KEYAPISACCESSCONTROLV1Rfid_SavingError_Conflict


typedef struct KEYAPISACCESSCONTROLV1Rfid_SavingError_Conflict__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISACCESSCONTROLV1Rfid_SavingError_Conflict__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid_SavingError_Conflict)
                                   messageName:@"Conflict"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1Rfid_SavingError_Conflict__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid_SavingError)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyExist

@implementation KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyExist


typedef struct KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyExist__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyExist__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyExist)
                                   messageName:@"KeyExist"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyExist__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid_SavingError)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyCodeCannotBeChanged

@implementation KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyCodeCannotBeChanged


typedef struct KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyCodeCannotBeChanged__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyCodeCannotBeChanged__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyCodeCannotBeChanged)
                                   messageName:@"KeyCodeCannotBeChanged"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyCodeCannotBeChanged__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid_SavingError)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISACCESSCONTROLV1Rfid_SavingError_ExceededQuantityOfKeysForRoom

@implementation KEYAPISACCESSCONTROLV1Rfid_SavingError_ExceededQuantityOfKeysForRoom


typedef struct KEYAPISACCESSCONTROLV1Rfid_SavingError_ExceededQuantityOfKeysForRoom__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISACCESSCONTROLV1Rfid_SavingError_ExceededQuantityOfKeysForRoom__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid_SavingError_ExceededQuantityOfKeysForRoom)
                                   messageName:@"ExceededQuantityOfKeysForRoom"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1Rfid_SavingError_ExceededQuantityOfKeysForRoom__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid_SavingError)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyIsUsed

@implementation KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyIsUsed


typedef struct KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyIsUsed__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyIsUsed__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyIsUsed)
                                   messageName:@"KeyIsUsed"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1Rfid_SavingError_KeyIsUsed__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid_SavingError)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISACCESSCONTROLV1Rfid_SavingError_HolderTypeForbidden

@implementation KEYAPISACCESSCONTROLV1Rfid_SavingError_HolderTypeForbidden


typedef struct KEYAPISACCESSCONTROLV1Rfid_SavingError_HolderTypeForbidden__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISACCESSCONTROLV1Rfid_SavingError_HolderTypeForbidden__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid_SavingError_HolderTypeForbidden)
                                   messageName:@"HolderTypeForbidden"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1Rfid_SavingError_HolderTypeForbidden__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid_SavingError)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISACCESSCONTROLV1GetRfidRequest

@implementation KEYAPISACCESSCONTROLV1GetRfidRequest

@dynamic id_p;

typedef struct KEYAPISACCESSCONTROLV1GetRfidRequest__storage_ {
  uint32_t _has_storage_[1];
  int32_t id_p;
} KEYAPISACCESSCONTROLV1GetRfidRequest__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "id_p",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1GetRfidRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRfidRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRfidRequest)
                                   messageName:@"GetRfidRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRfidRequest__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISACCESSCONTROLV1GetRfidResponse

@implementation KEYAPISACCESSCONTROLV1GetRfidResponse

@dynamic typeOneOfCase;
@dynamic data_p;
@dynamic error;

typedef struct KEYAPISACCESSCONTROLV1GetRfidResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1Rfid *data_p;
  KEYAPISACCESSCONTROLV1GetRfidResponse_Error *error;
} KEYAPISACCESSCONTROLV1GetRfidResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid),
        .number = KEYAPISACCESSCONTROLV1GetRfidResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRfidResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1GetRfidResponse_Error),
        .number = KEYAPISACCESSCONTROLV1GetRfidResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRfidResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRfidResponse)
                                   messageName:@"GetRfidResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRfidResponse__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "type",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISACCESSCONTROLV1GetRfidResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1GetRfidResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetRfidResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetRfidResponse_Error

@implementation KEYAPISACCESSCONTROLV1GetRfidResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISACCESSCONTROLV1GetRfidResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1ValidationError *validation;
} KEYAPISACCESSCONTROLV1GetRfidResponse_Error__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "validation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1GetRfidResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRfidResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRfidResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRfidResponse_Error__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "reason",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRfidResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISACCESSCONTROLV1GetRfidResponse_Error_ClearReasonOneOfCase(KEYAPISACCESSCONTROLV1GetRfidResponse_Error *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetRfidResponse_Error descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetRfidListRequest

@implementation KEYAPISACCESSCONTROLV1GetRfidListRequest

@dynamic paginationOneOfCase;
@dynamic hasFilter, filter;
@dynamic paging;

typedef struct KEYAPISACCESSCONTROLV1GetRfidListRequest__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1RfidFilter *filter;
  KEYAPISACCESSCONTROLV1RfidPaging *paging;
} KEYAPISACCESSCONTROLV1GetRfidListRequest__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "filter",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1RfidFilter),
        .number = KEYAPISACCESSCONTROLV1GetRfidListRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRfidListRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "paging",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1RfidPaging),
        .number = KEYAPISACCESSCONTROLV1GetRfidListRequest_FieldNumber_Paging,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRfidListRequest__storage_, paging),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRfidListRequest)
                                   messageName:@"GetRfidListRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRfidListRequest__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "pagination",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISACCESSCONTROLV1GetRfidListRequest_ClearPaginationOneOfCase(KEYAPISACCESSCONTROLV1GetRfidListRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetRfidListRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetRfidListResponse

@implementation KEYAPISACCESSCONTROLV1GetRfidListResponse

@dynamic typeOneOfCase;
@dynamic data_p;
@dynamic error;

typedef struct KEYAPISACCESSCONTROLV1GetRfidListResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1Rfid *data_p;
  KEYAPISACCESSCONTROLV1GetRfidListResponse_Error *error;
} KEYAPISACCESSCONTROLV1GetRfidListResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid),
        .number = KEYAPISACCESSCONTROLV1GetRfidListResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRfidListResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1GetRfidListResponse_Error),
        .number = KEYAPISACCESSCONTROLV1GetRfidListResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRfidListResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRfidListResponse)
                                   messageName:@"GetRfidListResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRfidListResponse__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "type",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISACCESSCONTROLV1GetRfidListResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1GetRfidListResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetRfidListResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetRfidListResponse_Error

@implementation KEYAPISACCESSCONTROLV1GetRfidListResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISACCESSCONTROLV1GetRfidListResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1ValidationError *validation;
} KEYAPISACCESSCONTROLV1GetRfidListResponse_Error__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "validation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1GetRfidListResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRfidListResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRfidListResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRfidListResponse_Error__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "reason",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRfidListResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISACCESSCONTROLV1GetRfidListResponse_Error_ClearReasonOneOfCase(KEYAPISACCESSCONTROLV1GetRfidListResponse_Error *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetRfidListResponse_Error descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetRfidCountRequest

@implementation KEYAPISACCESSCONTROLV1GetRfidCountRequest

@dynamic hasFilter, filter;

typedef struct KEYAPISACCESSCONTROLV1GetRfidCountRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1RfidFilter *filter;
} KEYAPISACCESSCONTROLV1GetRfidCountRequest__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "filter",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1RfidFilter),
        .number = KEYAPISACCESSCONTROLV1GetRfidCountRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRfidCountRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRfidCountRequest)
                                   messageName:@"GetRfidCountRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRfidCountRequest__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISACCESSCONTROLV1GetRfidCountResponse

@implementation KEYAPISACCESSCONTROLV1GetRfidCountResponse

@dynamic typeOneOfCase;
@dynamic data_p;
@dynamic error;

typedef struct KEYAPISACCESSCONTROLV1GetRfidCountResponse__storage_ {
  uint32_t _has_storage_[2];
  int32_t data_p;
  KEYAPISACCESSCONTROLV1GetRfidCountResponse_Error *error;
} KEYAPISACCESSCONTROLV1GetRfidCountResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1GetRfidCountResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRfidCountResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1GetRfidCountResponse_Error),
        .number = KEYAPISACCESSCONTROLV1GetRfidCountResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRfidCountResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRfidCountResponse)
                                   messageName:@"GetRfidCountResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRfidCountResponse__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "type",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISACCESSCONTROLV1GetRfidCountResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1GetRfidCountResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetRfidCountResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetRfidCountResponse_Error

@implementation KEYAPISACCESSCONTROLV1GetRfidCountResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISACCESSCONTROLV1GetRfidCountResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1ValidationError *validation;
} KEYAPISACCESSCONTROLV1GetRfidCountResponse_Error__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "validation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1GetRfidCountResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRfidCountResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRfidCountResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRfidCountResponse_Error__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "reason",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRfidCountResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISACCESSCONTROLV1GetRfidCountResponse_Error_ClearReasonOneOfCase(KEYAPISACCESSCONTROLV1GetRfidCountResponse_Error *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetRfidCountResponse_Error descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1PostRfidRequest

@implementation KEYAPISACCESSCONTROLV1PostRfidRequest

@dynamic hasData_p, data_p;

typedef struct KEYAPISACCESSCONTROLV1PostRfidRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1Rfid *data_p;
} KEYAPISACCESSCONTROLV1PostRfidRequest__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid),
        .number = KEYAPISACCESSCONTROLV1PostRfidRequest_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostRfidRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PostRfidRequest)
                                   messageName:@"PostRfidRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PostRfidRequest__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISACCESSCONTROLV1PostRfidResponse

@implementation KEYAPISACCESSCONTROLV1PostRfidResponse

@dynamic typeOneOfCase;
@dynamic data_p;
@dynamic error;

typedef struct KEYAPISACCESSCONTROLV1PostRfidResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1Rfid *data_p;
  KEYAPISACCESSCONTROLV1PostRfidResponse_Error *error;
} KEYAPISACCESSCONTROLV1PostRfidResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid),
        .number = KEYAPISACCESSCONTROLV1PostRfidResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostRfidResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1PostRfidResponse_Error),
        .number = KEYAPISACCESSCONTROLV1PostRfidResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostRfidResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PostRfidResponse)
                                   messageName:@"PostRfidResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PostRfidResponse__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "type",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISACCESSCONTROLV1PostRfidResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1PostRfidResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1PostRfidResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1PostRfidResponse_Error

@implementation KEYAPISACCESSCONTROLV1PostRfidResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;
@dynamic saving;

typedef struct KEYAPISACCESSCONTROLV1PostRfidResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1ValidationError *validation;
  KEYAPISACCESSCONTROLV1Rfid_SavingError *saving;
} KEYAPISACCESSCONTROLV1PostRfidResponse_Error__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "validation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1PostRfidResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostRfidResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "saving",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1Rfid_SavingError),
        .number = KEYAPISACCESSCONTROLV1PostRfidResponse_Error_FieldNumber_Saving,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostRfidResponse_Error__storage_, saving),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PostRfidResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PostRfidResponse_Error__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "reason",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PostRfidResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISACCESSCONTROLV1PostRfidResponse_Error_ClearReasonOneOfCase(KEYAPISACCESSCONTROLV1PostRfidResponse_Error *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1PostRfidResponse_Error descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1DeleteRfidRequest

@implementation KEYAPISACCESSCONTROLV1DeleteRfidRequest

@dynamic id_p;
@dynamic isForceDelete;

typedef struct KEYAPISACCESSCONTROLV1DeleteRfidRequest__storage_ {
  uint32_t _has_storage_[1];
  int32_t id_p;
} KEYAPISACCESSCONTROLV1DeleteRfidRequest__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "id_p",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1DeleteRfidRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1DeleteRfidRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "isForceDelete",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1DeleteRfidRequest_FieldNumber_IsForceDelete,
        .hasIndex = 1,
        .offset = 2,  // Stored in _has_storage_ to save space.
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeBool,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1DeleteRfidRequest)
                                   messageName:@"DeleteRfidRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1DeleteRfidRequest__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISACCESSCONTROLV1DeleteRfidResponse

@implementation KEYAPISACCESSCONTROLV1DeleteRfidResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISACCESSCONTROLV1DeleteRfidResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1DeleteRfidResponse_Error *error;
} KEYAPISACCESSCONTROLV1DeleteRfidResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1DeleteRfidResponse_Error),
        .number = KEYAPISACCESSCONTROLV1DeleteRfidResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1DeleteRfidResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1DeleteRfidResponse)
                                   messageName:@"DeleteRfidResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1DeleteRfidResponse__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "type",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISACCESSCONTROLV1DeleteRfidResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1DeleteRfidResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1DeleteRfidResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1DeleteRfidResponse_Error

@implementation KEYAPISACCESSCONTROLV1DeleteRfidResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISACCESSCONTROLV1DeleteRfidResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1ValidationError *validation;
} KEYAPISACCESSCONTROLV1DeleteRfidResponse_Error__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "validation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1DeleteRfidResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1DeleteRfidResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1DeleteRfidResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1DeleteRfidResponse_Error__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "reason",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISACCESSCONTROLV1DeleteRfidResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISACCESSCONTROLV1DeleteRfidResponse_Error_ClearReasonOneOfCase(KEYAPISACCESSCONTROLV1DeleteRfidResponse_Error *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1DeleteRfidResponse_Error descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1RfidFilter

@implementation KEYAPISACCESSCONTROLV1RfidFilter

@dynamic holderTypesArray, holderTypesArray_Count;
@dynamic payTypesArray, payTypesArray_Count;
@dynamic orponsArray, orponsArray_Count;
@dynamic roomNumbersArray, roomNumbersArray_Count;
@dynamic userIdsArray, userIdsArray_Count;
@dynamic companyIdsArray, companyIdsArray_Count;
@dynamic keysArray, keysArray_Count;

typedef struct KEYAPISACCESSCONTROLV1RfidFilter__storage_ {
  uint32_t _has_storage_[1];
  GPBEnumArray *holderTypesArray;
  GPBEnumArray *payTypesArray;
  GPBInt64Array *orponsArray;
  NSMutableArray *roomNumbersArray;
  GPBInt32Array *userIdsArray;
  GPBInt32Array *companyIdsArray;
  NSMutableArray *keysArray;
} KEYAPISACCESSCONTROLV1RfidFilter__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "holderTypesArray",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1Rfid_HolderType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1RfidFilter_FieldNumber_HolderTypesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RfidFilter__storage_, holderTypesArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked | GPBFieldHasEnumDescriptor),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "payTypesArray",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1Rfid_PayType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1RfidFilter_FieldNumber_PayTypesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RfidFilter__storage_, payTypesArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked | GPBFieldHasEnumDescriptor),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "orponsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RfidFilter_FieldNumber_OrponsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RfidFilter__storage_, orponsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "roomNumbersArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RfidFilter_FieldNumber_RoomNumbersArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RfidFilter__storage_, roomNumbersArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "userIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RfidFilter_FieldNumber_UserIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RfidFilter__storage_, userIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "companyIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RfidFilter_FieldNumber_CompanyIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RfidFilter__storage_, companyIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "keysArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RfidFilter_FieldNumber_KeysArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RfidFilter__storage_, keysArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1RfidFilter)
                                   messageName:@"RfidFilter"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1RfidFilter__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISACCESSCONTROLV1RfidPaging

@implementation KEYAPISACCESSCONTROLV1RfidPaging

@dynamic orderByType;
@dynamic directionType;
@dynamic limit;
@dynamic offset;

typedef struct KEYAPISACCESSCONTROLV1RfidPaging__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1RfidPaging_OrderByType orderByType;
  KEYAPISACCESSCONTROLV1RfidPaging_DirectionType directionType;
  int32_t limit;
  int32_t offset;
} KEYAPISACCESSCONTROLV1RfidPaging__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "orderByType",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1RfidPaging_OrderByType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1RfidPaging_FieldNumber_OrderByType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RfidPaging__storage_, orderByType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "directionType",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1RfidPaging_DirectionType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1RfidPaging_FieldNumber_DirectionType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RfidPaging__storage_, directionType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "limit",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RfidPaging_FieldNumber_Limit,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RfidPaging__storage_, limit),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "offset",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RfidPaging_FieldNumber_Offset,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RfidPaging__storage_, offset),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1RfidPaging)
                                   messageName:@"RfidPaging"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRfidV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1RfidPaging__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

int32_t KEYAPISACCESSCONTROLV1RfidPaging_OrderByType_RawValue(KEYAPISACCESSCONTROLV1RfidPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1RfidPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1RfidPaging_FieldNumber_OrderByType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1RfidPaging_OrderByType_RawValue(KEYAPISACCESSCONTROLV1RfidPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1RfidPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1RfidPaging_FieldNumber_OrderByType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISACCESSCONTROLV1RfidPaging_DirectionType_RawValue(KEYAPISACCESSCONTROLV1RfidPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1RfidPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1RfidPaging_FieldNumber_DirectionType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1RfidPaging_DirectionType_RawValue(KEYAPISACCESSCONTROLV1RfidPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1RfidPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1RfidPaging_FieldNumber_DirectionType];
  GPBSetMessageRawEnumField(message, field, value);
}


#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
