// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/rfidregistry/v1/keyapis_rfidregistry_record_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/rfidregistry/v1/KeyapisRfidregistryRecordV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "google/protobuf/Descriptor.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(GPBBoolValue);
GPBObjCClassDeclaration(GPBStringValue);
GPBObjCClassDeclaration(GPBTimestamp);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1DeleteRecordRequest);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1DeleteRecordResponse);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1DeleteRecordResponse_Error);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1GetRecordCountRequest);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1GetRecordCountResponse);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1GetRecordCountResponse_Error);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1GetRecordListRequest);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1GetRecordListResponse);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1GetRecordListResponse_Error);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1GetRecordRequest);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1GetRecordResponse);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1PostRecordRequest);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1PostRecordResponse);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1PostRecordResponse_Error);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1Record);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1RecordFilter);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1RecordPaging);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1Record_AesKeyConfiguration);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1Record_DataCell);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1Record_SavingError);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1Record_SavingError_AlreadyLinked);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1Record_SavingError_Conflict);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1Record_SavingError_OwnedByAnotherUser);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1Record_SavingError_StatusTypeRestricted);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1Record_SavingError_UidExist);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1Record_Trailer);
GPBObjCClassDeclaration(KEYAPISRFIDREGISTRYV1ValidationError);

#pragma mark - KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root

@implementation KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root

+ (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 KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription = {
  .package = "keyapis.rfidregistry.v1",
  .prefix = "KEYAPISRFIDREGISTRYV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum KEYAPISRFIDREGISTRYV1Record_RfidType

GPBEnumDescriptor *KEYAPISRFIDREGISTRYV1Record_RfidType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "RfidTypeUnknown\000Fob\000Card\000Band\000Sticker\000Ac"
        "tiveTag\000";
    static const int32_t values[] = {
        KEYAPISRFIDREGISTRYV1Record_RfidType_RfidTypeUnknown,
        KEYAPISRFIDREGISTRYV1Record_RfidType_Fob,
        KEYAPISRFIDREGISTRYV1Record_RfidType_Card,
        KEYAPISRFIDREGISTRYV1Record_RfidType_Band,
        KEYAPISRFIDREGISTRYV1Record_RfidType_Sticker,
        KEYAPISRFIDREGISTRYV1Record_RfidType_ActiveTag,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISRFIDREGISTRYV1Record_RfidType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISRFIDREGISTRYV1Record_RfidType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISRFIDREGISTRYV1Record_RfidType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISRFIDREGISTRYV1Record_RfidType_RfidTypeUnknown:
    case KEYAPISRFIDREGISTRYV1Record_RfidType_Fob:
    case KEYAPISRFIDREGISTRYV1Record_RfidType_Card:
    case KEYAPISRFIDREGISTRYV1Record_RfidType_Band:
    case KEYAPISRFIDREGISTRYV1Record_RfidType_Sticker:
    case KEYAPISRFIDREGISTRYV1Record_RfidType_ActiveTag:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISRFIDREGISTRYV1Record_EncryptionType

GPBEnumDescriptor *KEYAPISRFIDREGISTRYV1Record_EncryptionType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "EncryptionTypeUnknown\000Sl0\000Sl1\000Sl3\000";
    static const int32_t values[] = {
        KEYAPISRFIDREGISTRYV1Record_EncryptionType_EncryptionTypeUnknown,
        KEYAPISRFIDREGISTRYV1Record_EncryptionType_Sl0,
        KEYAPISRFIDREGISTRYV1Record_EncryptionType_Sl1,
        KEYAPISRFIDREGISTRYV1Record_EncryptionType_Sl3,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISRFIDREGISTRYV1Record_EncryptionType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISRFIDREGISTRYV1Record_EncryptionType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISRFIDREGISTRYV1Record_EncryptionType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISRFIDREGISTRYV1Record_EncryptionType_EncryptionTypeUnknown:
    case KEYAPISRFIDREGISTRYV1Record_EncryptionType_Sl0:
    case KEYAPISRFIDREGISTRYV1Record_EncryptionType_Sl1:
    case KEYAPISRFIDREGISTRYV1Record_EncryptionType_Sl3:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISRFIDREGISTRYV1Record_StatusType

GPBEnumDescriptor *KEYAPISRFIDREGISTRYV1Record_StatusType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "StatusTypeUnknown\000New\000Shipped\000Defect\000InU"
        "se\000";
    static const int32_t values[] = {
        KEYAPISRFIDREGISTRYV1Record_StatusType_StatusTypeUnknown,
        KEYAPISRFIDREGISTRYV1Record_StatusType_New,
        KEYAPISRFIDREGISTRYV1Record_StatusType_Shipped,
        KEYAPISRFIDREGISTRYV1Record_StatusType_Defect,
        KEYAPISRFIDREGISTRYV1Record_StatusType_InUse,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISRFIDREGISTRYV1Record_StatusType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISRFIDREGISTRYV1Record_StatusType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISRFIDREGISTRYV1Record_StatusType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISRFIDREGISTRYV1Record_StatusType_StatusTypeUnknown:
    case KEYAPISRFIDREGISTRYV1Record_StatusType_New:
    case KEYAPISRFIDREGISTRYV1Record_StatusType_Shipped:
    case KEYAPISRFIDREGISTRYV1Record_StatusType_Defect:
    case KEYAPISRFIDREGISTRYV1Record_StatusType_InUse:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISRFIDREGISTRYV1Record_IdentificationMethodType

GPBEnumDescriptor *KEYAPISRFIDREGISTRYV1Record_IdentificationMethodType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "IdentificationMethodTypeUnknown\000Mifare\000B"
        "le\000Uhf\000EmMarine\000";
    static const int32_t values[] = {
        KEYAPISRFIDREGISTRYV1Record_IdentificationMethodType_IdentificationMethodTypeUnknown,
        KEYAPISRFIDREGISTRYV1Record_IdentificationMethodType_Mifare,
        KEYAPISRFIDREGISTRYV1Record_IdentificationMethodType_Ble,
        KEYAPISRFIDREGISTRYV1Record_IdentificationMethodType_Uhf,
        KEYAPISRFIDREGISTRYV1Record_IdentificationMethodType_EmMarine,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISRFIDREGISTRYV1Record_IdentificationMethodType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISRFIDREGISTRYV1Record_IdentificationMethodType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISRFIDREGISTRYV1Record_IdentificationMethodType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISRFIDREGISTRYV1Record_IdentificationMethodType_IdentificationMethodTypeUnknown:
    case KEYAPISRFIDREGISTRYV1Record_IdentificationMethodType_Mifare:
    case KEYAPISRFIDREGISTRYV1Record_IdentificationMethodType_Ble:
    case KEYAPISRFIDREGISTRYV1Record_IdentificationMethodType_Uhf:
    case KEYAPISRFIDREGISTRYV1Record_IdentificationMethodType_EmMarine:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISRFIDREGISTRYV1RecordPaging_OrderByType

GPBEnumDescriptor *KEYAPISRFIDREGISTRYV1RecordPaging_OrderByType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "OrderByTypeUnknown\000NewAt\000ChangedAt\000Order"
        "At\000OrderNumber\000Rank\000";
    static const int32_t values[] = {
        KEYAPISRFIDREGISTRYV1RecordPaging_OrderByType_OrderByTypeUnknown,
        KEYAPISRFIDREGISTRYV1RecordPaging_OrderByType_NewAt,
        KEYAPISRFIDREGISTRYV1RecordPaging_OrderByType_ChangedAt,
        KEYAPISRFIDREGISTRYV1RecordPaging_OrderByType_OrderAt,
        KEYAPISRFIDREGISTRYV1RecordPaging_OrderByType_OrderNumber,
        KEYAPISRFIDREGISTRYV1RecordPaging_OrderByType_Rank,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISRFIDREGISTRYV1RecordPaging_OrderByType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISRFIDREGISTRYV1RecordPaging_OrderByType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISRFIDREGISTRYV1RecordPaging_OrderByType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISRFIDREGISTRYV1RecordPaging_OrderByType_OrderByTypeUnknown:
    case KEYAPISRFIDREGISTRYV1RecordPaging_OrderByType_NewAt:
    case KEYAPISRFIDREGISTRYV1RecordPaging_OrderByType_ChangedAt:
    case KEYAPISRFIDREGISTRYV1RecordPaging_OrderByType_OrderAt:
    case KEYAPISRFIDREGISTRYV1RecordPaging_OrderByType_OrderNumber:
    case KEYAPISRFIDREGISTRYV1RecordPaging_OrderByType_Rank:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISRFIDREGISTRYV1RecordPaging_DirectionType

GPBEnumDescriptor *KEYAPISRFIDREGISTRYV1RecordPaging_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[] = {
        KEYAPISRFIDREGISTRYV1RecordPaging_DirectionType_DirectionTypeUnknown,
        KEYAPISRFIDREGISTRYV1RecordPaging_DirectionType_Desc,
        KEYAPISRFIDREGISTRYV1RecordPaging_DirectionType_Asc,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISRFIDREGISTRYV1RecordPaging_DirectionType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISRFIDREGISTRYV1RecordPaging_DirectionType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISRFIDREGISTRYV1RecordPaging_DirectionType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISRFIDREGISTRYV1RecordPaging_DirectionType_DirectionTypeUnknown:
    case KEYAPISRFIDREGISTRYV1RecordPaging_DirectionType_Desc:
    case KEYAPISRFIDREGISTRYV1RecordPaging_DirectionType_Asc:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISRFIDREGISTRYV1Record

@implementation KEYAPISRFIDREGISTRYV1Record

@dynamic id_p;
@dynamic rfidType;
@dynamic encryptionType;
@dynamic uid;
@dynamic statusType;
@dynamic hasNewAt, newAt;
@dynamic hasShippedAt, shippedAt;
@dynamic hasDefectAt, defectAt;
@dynamic hasInUseAt, inUseAt;
@dynamic hasInUseRfidId, inUseRfidId;
@dynamic dataCellsArray, dataCellsArray_Count;
@dynamic resourceOwnerId;
@dynamic packageInfoBox;
@dynamic packageInfoPlace;
@dynamic hasChangedAt, changedAt;
@dynamic aesKeyConfigurationsArray, aesKeyConfigurationsArray_Count;
@dynamic trailersArray, trailersArray_Count;
@dynamic orderNumber;
@dynamic hasOrderAt, orderAt;
@dynamic hasInUseResourceOwnerId, inUseResourceOwnerId;
@dynamic isDeleted;
@dynamic hasDeletedAt, deletedAt;
@dynamic hasVendorName, vendorName;
@dynamic identificationMethodType;

typedef struct KEYAPISRFIDREGISTRYV1Record__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISRFIDREGISTRYV1Record_RfidType rfidType;
  KEYAPISRFIDREGISTRYV1Record_EncryptionType encryptionType;
  KEYAPISRFIDREGISTRYV1Record_StatusType statusType;
  int32_t packageInfoBox;
  int32_t packageInfoPlace;
  KEYAPISRFIDREGISTRYV1Record_IdentificationMethodType identificationMethodType;
  NSString *id_p;
  NSString *uid;
  GPBTimestamp *newAt;
  GPBTimestamp *shippedAt;
  GPBTimestamp *defectAt;
  GPBTimestamp *inUseAt;
  GPBStringValue *inUseRfidId;
  NSMutableArray *dataCellsArray;
  NSString *resourceOwnerId;
  GPBTimestamp *changedAt;
  NSMutableArray *aesKeyConfigurationsArray;
  NSMutableArray *trailersArray;
  NSString *orderNumber;
  GPBTimestamp *orderAt;
  GPBStringValue *inUseResourceOwnerId;
  GPBTimestamp *deletedAt;
  GPBStringValue *vendorName;
} KEYAPISRFIDREGISTRYV1Record__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 = KEYAPISRFIDREGISTRYV1Record_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "rfidType",
        .dataTypeSpecific.enumDescFunc = KEYAPISRFIDREGISTRYV1Record_RfidType_EnumDescriptor,
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_RfidType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, rfidType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "encryptionType",
        .dataTypeSpecific.enumDescFunc = KEYAPISRFIDREGISTRYV1Record_EncryptionType_EnumDescriptor,
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_EncryptionType,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, encryptionType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "uid",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_Uid,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, uid),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "statusType",
        .dataTypeSpecific.enumDescFunc = KEYAPISRFIDREGISTRYV1Record_StatusType_EnumDescriptor,
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_StatusType,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, statusType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "newAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_NewAt,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, newAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "shippedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_ShippedAt,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, shippedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "defectAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_DefectAt,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, defectAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "inUseAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_InUseAt,
        .hasIndex = 8,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, inUseAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "inUseRfidId",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_InUseRfidId,
        .hasIndex = 9,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, inUseRfidId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "dataCellsArray",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISRFIDREGISTRYV1Record_DataCell),
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_DataCellsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, dataCellsArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "resourceOwnerId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_ResourceOwnerId,
        .hasIndex = 10,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, resourceOwnerId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "packageInfoBox",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_PackageInfoBox,
        .hasIndex = 11,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, packageInfoBox),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "packageInfoPlace",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_PackageInfoPlace,
        .hasIndex = 12,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, packageInfoPlace),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "changedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_ChangedAt,
        .hasIndex = 13,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, changedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "aesKeyConfigurationsArray",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISRFIDREGISTRYV1Record_AesKeyConfiguration),
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_AesKeyConfigurationsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, aesKeyConfigurationsArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "trailersArray",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISRFIDREGISTRYV1Record_Trailer),
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_TrailersArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, trailersArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "orderNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_OrderNumber,
        .hasIndex = 14,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, orderNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "orderAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_OrderAt,
        .hasIndex = 15,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, orderAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "inUseResourceOwnerId",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_InUseResourceOwnerId,
        .hasIndex = 16,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, inUseResourceOwnerId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "isDeleted",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_IsDeleted,
        .hasIndex = 17,
        .offset = 18,  // Stored in _has_storage_ to save space.
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeBool,
      },
      {
        .name = "deletedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_DeletedAt,
        .hasIndex = 19,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, deletedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "vendorName",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_VendorName,
        .hasIndex = 20,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, vendorName),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "identificationMethodType",
        .dataTypeSpecific.enumDescFunc = KEYAPISRFIDREGISTRYV1Record_IdentificationMethodType_EnumDescriptor,
        .number = KEYAPISRFIDREGISTRYV1Record_FieldNumber_IdentificationMethodType,
        .hasIndex = 21,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record__storage_, identificationMethodType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1Record)
                                   messageName:@"Record"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1Record__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 KEYAPISRFIDREGISTRYV1Record_RfidType_RawValue(KEYAPISRFIDREGISTRYV1Record *message) {
  GPBDescriptor *descriptor = [KEYAPISRFIDREGISTRYV1Record descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISRFIDREGISTRYV1Record_FieldNumber_RfidType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISRFIDREGISTRYV1Record_RfidType_RawValue(KEYAPISRFIDREGISTRYV1Record *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISRFIDREGISTRYV1Record descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISRFIDREGISTRYV1Record_FieldNumber_RfidType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISRFIDREGISTRYV1Record_EncryptionType_RawValue(KEYAPISRFIDREGISTRYV1Record *message) {
  GPBDescriptor *descriptor = [KEYAPISRFIDREGISTRYV1Record descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISRFIDREGISTRYV1Record_FieldNumber_EncryptionType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISRFIDREGISTRYV1Record_EncryptionType_RawValue(KEYAPISRFIDREGISTRYV1Record *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISRFIDREGISTRYV1Record descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISRFIDREGISTRYV1Record_FieldNumber_EncryptionType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISRFIDREGISTRYV1Record_StatusType_RawValue(KEYAPISRFIDREGISTRYV1Record *message) {
  GPBDescriptor *descriptor = [KEYAPISRFIDREGISTRYV1Record descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISRFIDREGISTRYV1Record_FieldNumber_StatusType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISRFIDREGISTRYV1Record_StatusType_RawValue(KEYAPISRFIDREGISTRYV1Record *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISRFIDREGISTRYV1Record descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISRFIDREGISTRYV1Record_FieldNumber_StatusType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISRFIDREGISTRYV1Record_IdentificationMethodType_RawValue(KEYAPISRFIDREGISTRYV1Record *message) {
  GPBDescriptor *descriptor = [KEYAPISRFIDREGISTRYV1Record descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISRFIDREGISTRYV1Record_FieldNumber_IdentificationMethodType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISRFIDREGISTRYV1Record_IdentificationMethodType_RawValue(KEYAPISRFIDREGISTRYV1Record *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISRFIDREGISTRYV1Record descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISRFIDREGISTRYV1Record_FieldNumber_IdentificationMethodType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISRFIDREGISTRYV1Record_DataCell

@implementation KEYAPISRFIDREGISTRYV1Record_DataCell

@dynamic section;
@dynamic block;
@dynamic data_p;

typedef struct KEYAPISRFIDREGISTRYV1Record_DataCell__storage_ {
  uint32_t _has_storage_[1];
  int32_t section;
  int32_t block;
  NSString *data_p;
} KEYAPISRFIDREGISTRYV1Record_DataCell__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 = "section",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1Record_DataCell_FieldNumber_Section,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record_DataCell__storage_, section),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "block",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1Record_DataCell_FieldNumber_Block,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record_DataCell__storage_, block),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1Record_DataCell_FieldNumber_Data_p,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record_DataCell__storage_, data_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1Record_DataCell)
                                   messageName:@"DataCell"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1Record_DataCell__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1Record)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISRFIDREGISTRYV1Record_AesKeyConfiguration

@implementation KEYAPISRFIDREGISTRYV1Record_AesKeyConfiguration

@dynamic address;
@dynamic data_p;

typedef struct KEYAPISRFIDREGISTRYV1Record_AesKeyConfiguration__storage_ {
  uint32_t _has_storage_[1];
  NSString *address;
  NSString *data_p;
} KEYAPISRFIDREGISTRYV1Record_AesKeyConfiguration__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 = "address",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1Record_AesKeyConfiguration_FieldNumber_Address,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record_AesKeyConfiguration__storage_, address),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1Record_AesKeyConfiguration_FieldNumber_Data_p,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record_AesKeyConfiguration__storage_, data_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1Record_AesKeyConfiguration)
                                   messageName:@"AesKeyConfiguration"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1Record_AesKeyConfiguration__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1Record)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISRFIDREGISTRYV1Record_Trailer

@implementation KEYAPISRFIDREGISTRYV1Record_Trailer

@dynamic sector;
@dynamic keyA;
@dynamic keyB;
@dynamic accessMask;

typedef struct KEYAPISRFIDREGISTRYV1Record_Trailer__storage_ {
  uint32_t _has_storage_[1];
  int32_t sector;
  NSString *keyA;
  NSString *keyB;
  NSString *accessMask;
} KEYAPISRFIDREGISTRYV1Record_Trailer__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 = "sector",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1Record_Trailer_FieldNumber_Sector,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record_Trailer__storage_, sector),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "keyA",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1Record_Trailer_FieldNumber_KeyA,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record_Trailer__storage_, keyA),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "keyB",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1Record_Trailer_FieldNumber_KeyB,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record_Trailer__storage_, keyB),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "accessMask",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1Record_Trailer_FieldNumber_AccessMask,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record_Trailer__storage_, accessMask),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1Record_Trailer)
                                   messageName:@"Trailer"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1Record_Trailer__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1Record)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISRFIDREGISTRYV1Record_SavingError

@implementation KEYAPISRFIDREGISTRYV1Record_SavingError

@dynamic reasonOneOfCase;
@dynamic statusTypeRestricted;
@dynamic uidExist;
@dynamic ownedByAnotherUser;
@dynamic alreadyLinked;
@dynamic conflict;

typedef struct KEYAPISRFIDREGISTRYV1Record_SavingError__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISRFIDREGISTRYV1Record_SavingError_StatusTypeRestricted *statusTypeRestricted;
  KEYAPISRFIDREGISTRYV1Record_SavingError_UidExist *uidExist;
  KEYAPISRFIDREGISTRYV1Record_SavingError_OwnedByAnotherUser *ownedByAnotherUser;
  KEYAPISRFIDREGISTRYV1Record_SavingError_AlreadyLinked *alreadyLinked;
  KEYAPISRFIDREGISTRYV1Record_SavingError_Conflict *conflict;
} KEYAPISRFIDREGISTRYV1Record_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 = "statusTypeRestricted",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISRFIDREGISTRYV1Record_SavingError_StatusTypeRestricted),
        .number = KEYAPISRFIDREGISTRYV1Record_SavingError_FieldNumber_StatusTypeRestricted,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record_SavingError__storage_, statusTypeRestricted),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "uidExist",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISRFIDREGISTRYV1Record_SavingError_UidExist),
        .number = KEYAPISRFIDREGISTRYV1Record_SavingError_FieldNumber_UidExist,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record_SavingError__storage_, uidExist),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "ownedByAnotherUser",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISRFIDREGISTRYV1Record_SavingError_OwnedByAnotherUser),
        .number = KEYAPISRFIDREGISTRYV1Record_SavingError_FieldNumber_OwnedByAnotherUser,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record_SavingError__storage_, ownedByAnotherUser),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "alreadyLinked",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISRFIDREGISTRYV1Record_SavingError_AlreadyLinked),
        .number = KEYAPISRFIDREGISTRYV1Record_SavingError_FieldNumber_AlreadyLinked,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record_SavingError__storage_, alreadyLinked),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "conflict",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISRFIDREGISTRYV1Record_SavingError_Conflict),
        .number = KEYAPISRFIDREGISTRYV1Record_SavingError_FieldNumber_Conflict,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1Record_SavingError__storage_, conflict),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1Record_SavingError)
                                   messageName:@"SavingError"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1Record_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(KEYAPISRFIDREGISTRYV1Record)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISRFIDREGISTRYV1Record_SavingError_StatusTypeRestricted


typedef struct KEYAPISRFIDREGISTRYV1Record_SavingError_StatusTypeRestricted__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISRFIDREGISTRYV1Record_SavingError_StatusTypeRestricted__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(KEYAPISRFIDREGISTRYV1Record_SavingError_StatusTypeRestricted)
                                   messageName:@"StatusTypeRestricted"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1Record_SavingError_StatusTypeRestricted__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1Record_SavingError)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISRFIDREGISTRYV1Record_SavingError_UidExist

@implementation KEYAPISRFIDREGISTRYV1Record_SavingError_UidExist


typedef struct KEYAPISRFIDREGISTRYV1Record_SavingError_UidExist__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISRFIDREGISTRYV1Record_SavingError_UidExist__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(KEYAPISRFIDREGISTRYV1Record_SavingError_UidExist)
                                   messageName:@"UidExist"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1Record_SavingError_UidExist__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1Record_SavingError)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISRFIDREGISTRYV1Record_SavingError_OwnedByAnotherUser

@implementation KEYAPISRFIDREGISTRYV1Record_SavingError_OwnedByAnotherUser


typedef struct KEYAPISRFIDREGISTRYV1Record_SavingError_OwnedByAnotherUser__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISRFIDREGISTRYV1Record_SavingError_OwnedByAnotherUser__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(KEYAPISRFIDREGISTRYV1Record_SavingError_OwnedByAnotherUser)
                                   messageName:@"OwnedByAnotherUser"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1Record_SavingError_OwnedByAnotherUser__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1Record_SavingError)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISRFIDREGISTRYV1Record_SavingError_AlreadyLinked

@implementation KEYAPISRFIDREGISTRYV1Record_SavingError_AlreadyLinked


typedef struct KEYAPISRFIDREGISTRYV1Record_SavingError_AlreadyLinked__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISRFIDREGISTRYV1Record_SavingError_AlreadyLinked__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(KEYAPISRFIDREGISTRYV1Record_SavingError_AlreadyLinked)
                                   messageName:@"AlreadyLinked"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1Record_SavingError_AlreadyLinked__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1Record_SavingError)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISRFIDREGISTRYV1Record_SavingError_Conflict

@implementation KEYAPISRFIDREGISTRYV1Record_SavingError_Conflict


typedef struct KEYAPISRFIDREGISTRYV1Record_SavingError_Conflict__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISRFIDREGISTRYV1Record_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(KEYAPISRFIDREGISTRYV1Record_SavingError_Conflict)
                                   messageName:@"Conflict"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1Record_SavingError_Conflict__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1Record_SavingError)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISRFIDREGISTRYV1RecordFilter

@implementation KEYAPISRFIDREGISTRYV1RecordFilter

@dynamic rfidTypesArray, rfidTypesArray_Count;
@dynamic encryptionTypesArray, encryptionTypesArray_Count;
@dynamic uidsArray, uidsArray_Count;
@dynamic statusTypesArray, statusTypesArray_Count;
@dynamic inUseRfidIdsArray, inUseRfidIdsArray_Count;
@dynamic resourceOwnerIdsArray, resourceOwnerIdsArray_Count;
@dynamic orderNumbersArray, orderNumbersArray_Count;
@dynamic inUseResourceOwnerIdsArray, inUseResourceOwnerIdsArray_Count;
@dynamic hasIsDeleted, isDeleted;
@dynamic hasText, text;
@dynamic hasStartShippedAt, startShippedAt;
@dynamic hasEndShippedAt, endShippedAt;
@dynamic packageInfoBoxesArray, packageInfoBoxesArray_Count;
@dynamic packageInfoPlacesArray, packageInfoPlacesArray_Count;
@dynamic identificationMethodTypesArray, identificationMethodTypesArray_Count;

typedef struct KEYAPISRFIDREGISTRYV1RecordFilter__storage_ {
  uint32_t _has_storage_[1];
  GPBEnumArray *rfidTypesArray;
  GPBEnumArray *encryptionTypesArray;
  NSMutableArray *uidsArray;
  GPBEnumArray *statusTypesArray;
  NSMutableArray *inUseRfidIdsArray;
  NSMutableArray *resourceOwnerIdsArray;
  NSMutableArray *orderNumbersArray;
  NSMutableArray *inUseResourceOwnerIdsArray;
  GPBBoolValue *isDeleted;
  GPBStringValue *text;
  GPBTimestamp *startShippedAt;
  GPBTimestamp *endShippedAt;
  GPBInt32Array *packageInfoBoxesArray;
  GPBInt32Array *packageInfoPlacesArray;
  GPBEnumArray *identificationMethodTypesArray;
} KEYAPISRFIDREGISTRYV1RecordFilter__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 = "rfidTypesArray",
        .dataTypeSpecific.enumDescFunc = KEYAPISRFIDREGISTRYV1Record_RfidType_EnumDescriptor,
        .number = KEYAPISRFIDREGISTRYV1RecordFilter_FieldNumber_RfidTypesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1RecordFilter__storage_, rfidTypesArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked | GPBFieldHasEnumDescriptor),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "encryptionTypesArray",
        .dataTypeSpecific.enumDescFunc = KEYAPISRFIDREGISTRYV1Record_EncryptionType_EnumDescriptor,
        .number = KEYAPISRFIDREGISTRYV1RecordFilter_FieldNumber_EncryptionTypesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1RecordFilter__storage_, encryptionTypesArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked | GPBFieldHasEnumDescriptor),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "uidsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1RecordFilter_FieldNumber_UidsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1RecordFilter__storage_, uidsArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "statusTypesArray",
        .dataTypeSpecific.enumDescFunc = KEYAPISRFIDREGISTRYV1Record_StatusType_EnumDescriptor,
        .number = KEYAPISRFIDREGISTRYV1RecordFilter_FieldNumber_StatusTypesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1RecordFilter__storage_, statusTypesArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked | GPBFieldHasEnumDescriptor),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "inUseRfidIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1RecordFilter_FieldNumber_InUseRfidIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1RecordFilter__storage_, inUseRfidIdsArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "resourceOwnerIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1RecordFilter_FieldNumber_ResourceOwnerIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1RecordFilter__storage_, resourceOwnerIdsArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "orderNumbersArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1RecordFilter_FieldNumber_OrderNumbersArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1RecordFilter__storage_, orderNumbersArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "inUseResourceOwnerIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1RecordFilter_FieldNumber_InUseResourceOwnerIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1RecordFilter__storage_, inUseResourceOwnerIdsArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "isDeleted",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBBoolValue),
        .number = KEYAPISRFIDREGISTRYV1RecordFilter_FieldNumber_IsDeleted,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1RecordFilter__storage_, isDeleted),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "text",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISRFIDREGISTRYV1RecordFilter_FieldNumber_Text,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1RecordFilter__storage_, text),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "startShippedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISRFIDREGISTRYV1RecordFilter_FieldNumber_StartShippedAt,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1RecordFilter__storage_, startShippedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "endShippedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISRFIDREGISTRYV1RecordFilter_FieldNumber_EndShippedAt,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1RecordFilter__storage_, endShippedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "packageInfoBoxesArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1RecordFilter_FieldNumber_PackageInfoBoxesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1RecordFilter__storage_, packageInfoBoxesArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "packageInfoPlacesArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1RecordFilter_FieldNumber_PackageInfoPlacesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1RecordFilter__storage_, packageInfoPlacesArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "identificationMethodTypesArray",
        .dataTypeSpecific.enumDescFunc = KEYAPISRFIDREGISTRYV1Record_IdentificationMethodType_EnumDescriptor,
        .number = KEYAPISRFIDREGISTRYV1RecordFilter_FieldNumber_IdentificationMethodTypesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1RecordFilter__storage_, identificationMethodTypesArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked | GPBFieldHasEnumDescriptor),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1RecordFilter)
                                   messageName:@"RecordFilter"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1RecordFilter__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 - KEYAPISRFIDREGISTRYV1RecordPaging

@implementation KEYAPISRFIDREGISTRYV1RecordPaging

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

typedef struct KEYAPISRFIDREGISTRYV1RecordPaging__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISRFIDREGISTRYV1RecordPaging_OrderByType orderByType;
  KEYAPISRFIDREGISTRYV1RecordPaging_DirectionType directionType;
  int32_t limit;
  int32_t offset;
} KEYAPISRFIDREGISTRYV1RecordPaging__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 = KEYAPISRFIDREGISTRYV1RecordPaging_OrderByType_EnumDescriptor,
        .number = KEYAPISRFIDREGISTRYV1RecordPaging_FieldNumber_OrderByType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1RecordPaging__storage_, orderByType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "directionType",
        .dataTypeSpecific.enumDescFunc = KEYAPISRFIDREGISTRYV1RecordPaging_DirectionType_EnumDescriptor,
        .number = KEYAPISRFIDREGISTRYV1RecordPaging_FieldNumber_DirectionType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1RecordPaging__storage_, directionType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "limit",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1RecordPaging_FieldNumber_Limit,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1RecordPaging__storage_, limit),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "offset",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1RecordPaging_FieldNumber_Offset,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1RecordPaging__storage_, offset),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1RecordPaging)
                                   messageName:@"RecordPaging"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1RecordPaging__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 KEYAPISRFIDREGISTRYV1RecordPaging_OrderByType_RawValue(KEYAPISRFIDREGISTRYV1RecordPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISRFIDREGISTRYV1RecordPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISRFIDREGISTRYV1RecordPaging_FieldNumber_OrderByType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISRFIDREGISTRYV1RecordPaging_OrderByType_RawValue(KEYAPISRFIDREGISTRYV1RecordPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISRFIDREGISTRYV1RecordPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISRFIDREGISTRYV1RecordPaging_FieldNumber_OrderByType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISRFIDREGISTRYV1RecordPaging_DirectionType_RawValue(KEYAPISRFIDREGISTRYV1RecordPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISRFIDREGISTRYV1RecordPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISRFIDREGISTRYV1RecordPaging_FieldNumber_DirectionType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISRFIDREGISTRYV1RecordPaging_DirectionType_RawValue(KEYAPISRFIDREGISTRYV1RecordPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISRFIDREGISTRYV1RecordPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISRFIDREGISTRYV1RecordPaging_FieldNumber_DirectionType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISRFIDREGISTRYV1PostRecordRequest

@implementation KEYAPISRFIDREGISTRYV1PostRecordRequest

@dynamic hasData_p, data_p;

typedef struct KEYAPISRFIDREGISTRYV1PostRecordRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISRFIDREGISTRYV1Record *data_p;
} KEYAPISRFIDREGISTRYV1PostRecordRequest__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(KEYAPISRFIDREGISTRYV1Record),
        .number = KEYAPISRFIDREGISTRYV1PostRecordRequest_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1PostRecordRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1PostRecordRequest)
                                   messageName:@"PostRecordRequest"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1PostRecordRequest__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 - KEYAPISRFIDREGISTRYV1PostRecordResponse

@implementation KEYAPISRFIDREGISTRYV1PostRecordResponse

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

typedef struct KEYAPISRFIDREGISTRYV1PostRecordResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISRFIDREGISTRYV1Record *data_p;
  KEYAPISRFIDREGISTRYV1PostRecordResponse_Error *error;
} KEYAPISRFIDREGISTRYV1PostRecordResponse__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(KEYAPISRFIDREGISTRYV1Record),
        .number = KEYAPISRFIDREGISTRYV1PostRecordResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1PostRecordResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISRFIDREGISTRYV1PostRecordResponse_Error),
        .number = KEYAPISRFIDREGISTRYV1PostRecordResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1PostRecordResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1PostRecordResponse)
                                   messageName:@"PostRecordResponse"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1PostRecordResponse__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 KEYAPISRFIDREGISTRYV1PostRecordResponse_ClearTypeOneOfCase(KEYAPISRFIDREGISTRYV1PostRecordResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISRFIDREGISTRYV1PostRecordResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISRFIDREGISTRYV1PostRecordResponse_Error

@implementation KEYAPISRFIDREGISTRYV1PostRecordResponse_Error

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

typedef struct KEYAPISRFIDREGISTRYV1PostRecordResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISRFIDREGISTRYV1ValidationError *validation;
  KEYAPISRFIDREGISTRYV1Record_SavingError *saving;
} KEYAPISRFIDREGISTRYV1PostRecordResponse_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(KEYAPISRFIDREGISTRYV1ValidationError),
        .number = KEYAPISRFIDREGISTRYV1PostRecordResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1PostRecordResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "saving",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISRFIDREGISTRYV1Record_SavingError),
        .number = KEYAPISRFIDREGISTRYV1PostRecordResponse_Error_FieldNumber_Saving,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1PostRecordResponse_Error__storage_, saving),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1PostRecordResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1PostRecordResponse_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(KEYAPISRFIDREGISTRYV1PostRecordResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISRFIDREGISTRYV1GetRecordRequest

@dynamic id_p;

typedef struct KEYAPISRFIDREGISTRYV1GetRecordRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *id_p;
} KEYAPISRFIDREGISTRYV1GetRecordRequest__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 = KEYAPISRFIDREGISTRYV1GetRecordRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1GetRecordRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1GetRecordRequest)
                                   messageName:@"GetRecordRequest"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1GetRecordRequest__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 - KEYAPISRFIDREGISTRYV1GetRecordResponse

@implementation KEYAPISRFIDREGISTRYV1GetRecordResponse

@dynamic typeOneOfCase;
@dynamic data_p;

typedef struct KEYAPISRFIDREGISTRYV1GetRecordResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISRFIDREGISTRYV1Record *data_p;
} KEYAPISRFIDREGISTRYV1GetRecordResponse__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(KEYAPISRFIDREGISTRYV1Record),
        .number = KEYAPISRFIDREGISTRYV1GetRecordResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1GetRecordResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1GetRecordResponse)
                                   messageName:@"GetRecordResponse"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1GetRecordResponse__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 KEYAPISRFIDREGISTRYV1GetRecordResponse_ClearTypeOneOfCase(KEYAPISRFIDREGISTRYV1GetRecordResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISRFIDREGISTRYV1GetRecordResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISRFIDREGISTRYV1GetRecordCountRequest

@implementation KEYAPISRFIDREGISTRYV1GetRecordCountRequest

@dynamic hasFilter, filter;

typedef struct KEYAPISRFIDREGISTRYV1GetRecordCountRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISRFIDREGISTRYV1RecordFilter *filter;
} KEYAPISRFIDREGISTRYV1GetRecordCountRequest__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(KEYAPISRFIDREGISTRYV1RecordFilter),
        .number = KEYAPISRFIDREGISTRYV1GetRecordCountRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1GetRecordCountRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1GetRecordCountRequest)
                                   messageName:@"GetRecordCountRequest"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1GetRecordCountRequest__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 - KEYAPISRFIDREGISTRYV1GetRecordCountResponse

@implementation KEYAPISRFIDREGISTRYV1GetRecordCountResponse

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

typedef struct KEYAPISRFIDREGISTRYV1GetRecordCountResponse__storage_ {
  uint32_t _has_storage_[2];
  int32_t data_p;
  KEYAPISRFIDREGISTRYV1GetRecordCountResponse_Error *error;
} KEYAPISRFIDREGISTRYV1GetRecordCountResponse__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 = KEYAPISRFIDREGISTRYV1GetRecordCountResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1GetRecordCountResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISRFIDREGISTRYV1GetRecordCountResponse_Error),
        .number = KEYAPISRFIDREGISTRYV1GetRecordCountResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1GetRecordCountResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1GetRecordCountResponse)
                                   messageName:@"GetRecordCountResponse"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1GetRecordCountResponse__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 KEYAPISRFIDREGISTRYV1GetRecordCountResponse_ClearTypeOneOfCase(KEYAPISRFIDREGISTRYV1GetRecordCountResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISRFIDREGISTRYV1GetRecordCountResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISRFIDREGISTRYV1GetRecordCountResponse_Error

@implementation KEYAPISRFIDREGISTRYV1GetRecordCountResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISRFIDREGISTRYV1GetRecordCountResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISRFIDREGISTRYV1ValidationError *validation;
} KEYAPISRFIDREGISTRYV1GetRecordCountResponse_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(KEYAPISRFIDREGISTRYV1ValidationError),
        .number = KEYAPISRFIDREGISTRYV1GetRecordCountResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1GetRecordCountResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1GetRecordCountResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1GetRecordCountResponse_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(KEYAPISRFIDREGISTRYV1GetRecordCountResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISRFIDREGISTRYV1GetRecordListRequest

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

typedef struct KEYAPISRFIDREGISTRYV1GetRecordListRequest__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISRFIDREGISTRYV1RecordFilter *filter;
  KEYAPISRFIDREGISTRYV1RecordPaging *paging;
} KEYAPISRFIDREGISTRYV1GetRecordListRequest__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(KEYAPISRFIDREGISTRYV1RecordFilter),
        .number = KEYAPISRFIDREGISTRYV1GetRecordListRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1GetRecordListRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "paging",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISRFIDREGISTRYV1RecordPaging),
        .number = KEYAPISRFIDREGISTRYV1GetRecordListRequest_FieldNumber_Paging,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1GetRecordListRequest__storage_, paging),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1GetRecordListRequest)
                                   messageName:@"GetRecordListRequest"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1GetRecordListRequest__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 KEYAPISRFIDREGISTRYV1GetRecordListRequest_ClearPaginationOneOfCase(KEYAPISRFIDREGISTRYV1GetRecordListRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISRFIDREGISTRYV1GetRecordListRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISRFIDREGISTRYV1GetRecordListResponse

@implementation KEYAPISRFIDREGISTRYV1GetRecordListResponse

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

typedef struct KEYAPISRFIDREGISTRYV1GetRecordListResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISRFIDREGISTRYV1Record *data_p;
  KEYAPISRFIDREGISTRYV1GetRecordListResponse_Error *error;
} KEYAPISRFIDREGISTRYV1GetRecordListResponse__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(KEYAPISRFIDREGISTRYV1Record),
        .number = KEYAPISRFIDREGISTRYV1GetRecordListResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1GetRecordListResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISRFIDREGISTRYV1GetRecordListResponse_Error),
        .number = KEYAPISRFIDREGISTRYV1GetRecordListResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1GetRecordListResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1GetRecordListResponse)
                                   messageName:@"GetRecordListResponse"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1GetRecordListResponse__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 KEYAPISRFIDREGISTRYV1GetRecordListResponse_ClearTypeOneOfCase(KEYAPISRFIDREGISTRYV1GetRecordListResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISRFIDREGISTRYV1GetRecordListResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISRFIDREGISTRYV1GetRecordListResponse_Error

@implementation KEYAPISRFIDREGISTRYV1GetRecordListResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISRFIDREGISTRYV1GetRecordListResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISRFIDREGISTRYV1ValidationError *validation;
} KEYAPISRFIDREGISTRYV1GetRecordListResponse_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(KEYAPISRFIDREGISTRYV1ValidationError),
        .number = KEYAPISRFIDREGISTRYV1GetRecordListResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1GetRecordListResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1GetRecordListResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1GetRecordListResponse_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(KEYAPISRFIDREGISTRYV1GetRecordListResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISRFIDREGISTRYV1DeleteRecordRequest

@dynamic id_p;

typedef struct KEYAPISRFIDREGISTRYV1DeleteRecordRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *id_p;
} KEYAPISRFIDREGISTRYV1DeleteRecordRequest__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 = KEYAPISRFIDREGISTRYV1DeleteRecordRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1DeleteRecordRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1DeleteRecordRequest)
                                   messageName:@"DeleteRecordRequest"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1DeleteRecordRequest__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 - KEYAPISRFIDREGISTRYV1DeleteRecordResponse

@implementation KEYAPISRFIDREGISTRYV1DeleteRecordResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISRFIDREGISTRYV1DeleteRecordResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISRFIDREGISTRYV1DeleteRecordResponse_Error *error;
} KEYAPISRFIDREGISTRYV1DeleteRecordResponse__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(KEYAPISRFIDREGISTRYV1DeleteRecordResponse_Error),
        .number = KEYAPISRFIDREGISTRYV1DeleteRecordResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1DeleteRecordResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1DeleteRecordResponse)
                                   messageName:@"DeleteRecordResponse"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1DeleteRecordResponse__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 KEYAPISRFIDREGISTRYV1DeleteRecordResponse_ClearTypeOneOfCase(KEYAPISRFIDREGISTRYV1DeleteRecordResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISRFIDREGISTRYV1DeleteRecordResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISRFIDREGISTRYV1DeleteRecordResponse_Error

@implementation KEYAPISRFIDREGISTRYV1DeleteRecordResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISRFIDREGISTRYV1DeleteRecordResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISRFIDREGISTRYV1ValidationError *validation;
} KEYAPISRFIDREGISTRYV1DeleteRecordResponse_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(KEYAPISRFIDREGISTRYV1ValidationError),
        .number = KEYAPISRFIDREGISTRYV1DeleteRecordResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1DeleteRecordResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1DeleteRecordResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1DeleteRecordResponse_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(KEYAPISRFIDREGISTRYV1DeleteRecordResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISRFIDREGISTRYV1ValidationError

@dynamic path;
@dynamic message;

typedef struct KEYAPISRFIDREGISTRYV1ValidationError__storage_ {
  uint32_t _has_storage_[1];
  NSString *path;
  NSString *message;
} KEYAPISRFIDREGISTRYV1ValidationError__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 = "path",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1ValidationError_FieldNumber_Path,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1ValidationError__storage_, path),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "message",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISRFIDREGISTRYV1ValidationError_FieldNumber_Message,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISRFIDREGISTRYV1ValidationError__storage_, message),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISRFIDREGISTRYV1ValidationError)
                                   messageName:@"ValidationError"
                               fileDescription:&KEYAPISRFIDREGISTRYV1KeyapisRfidregistryRecordV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISRFIDREGISTRYV1ValidationError__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 clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
