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

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

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

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

#import <stdatomic.h>

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

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

#pragma mark - Objective-C Class declarations
// Forward declarations of Objective-C classes that we can use as
// static values in struct initializers.
// We don't use [Foo class] because it is not a static value.
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1DeleteEntranceRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1DeleteEntranceResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1DeleteEntranceResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1DeleteEntranceResponse_Error_LinkedDevicesExists);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1Entrance);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1EntranceDevice);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1EntranceDeviceFilter);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1EntranceDevicePaging);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1EntranceFilter);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1EntrancePaging);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetEntranceDeviceListRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetEntranceListRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetEntranceListResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetEntranceListResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PostEntranceRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PostEntranceResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PostEntranceResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1ValidationError);

#pragma mark - KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root

@implementation KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root

+ (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 KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription = {
  .package = "keyapis.access_control.v1",
  .prefix = "KEYAPISACCESSCONTROLV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum KEYAPISACCESSCONTROLV1EntranceFilter_CompanyRelationType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1EntranceFilter_CompanyRelationType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "CompanyRelationTypeUnknown\000Default\000Manag"
        "ement\000DeviceService\000";
    static const int32_t values[] = {
        KEYAPISACCESSCONTROLV1EntranceFilter_CompanyRelationType_CompanyRelationTypeUnknown,
        KEYAPISACCESSCONTROLV1EntranceFilter_CompanyRelationType_Default,
        KEYAPISACCESSCONTROLV1EntranceFilter_CompanyRelationType_Management,
        KEYAPISACCESSCONTROLV1EntranceFilter_CompanyRelationType_DeviceService,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1EntranceFilter_CompanyRelationType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1EntranceFilter_CompanyRelationType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1EntranceFilter_CompanyRelationType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1EntranceFilter_CompanyRelationType_CompanyRelationTypeUnknown:
    case KEYAPISACCESSCONTROLV1EntranceFilter_CompanyRelationType_Default:
    case KEYAPISACCESSCONTROLV1EntranceFilter_CompanyRelationType_Management:
    case KEYAPISACCESSCONTROLV1EntranceFilter_CompanyRelationType_DeviceService:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISACCESSCONTROLV1EntrancePaging_OrderByType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1EntrancePaging_OrderByType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "OrderByTypeUnknown\000OrponThenEntranceNumb"
        "er\000";
    static const int32_t values[] = {
        KEYAPISACCESSCONTROLV1EntrancePaging_OrderByType_OrderByTypeUnknown,
        KEYAPISACCESSCONTROLV1EntrancePaging_OrderByType_OrponThenEntranceNumber,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1EntrancePaging_OrderByType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1EntrancePaging_OrderByType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1EntrancePaging_OrderByType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1EntrancePaging_OrderByType_OrderByTypeUnknown:
    case KEYAPISACCESSCONTROLV1EntrancePaging_OrderByType_OrponThenEntranceNumber:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISACCESSCONTROLV1EntrancePaging_DirectionType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1EntrancePaging_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[] = {
        KEYAPISACCESSCONTROLV1EntrancePaging_DirectionType_DirectionTypeUnknown,
        KEYAPISACCESSCONTROLV1EntrancePaging_DirectionType_Desc,
        KEYAPISACCESSCONTROLV1EntrancePaging_DirectionType_Asc,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1EntrancePaging_DirectionType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1EntrancePaging_DirectionType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1EntrancePaging_DirectionType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1EntrancePaging_DirectionType_DirectionTypeUnknown:
    case KEYAPISACCESSCONTROLV1EntrancePaging_DirectionType_Desc:
    case KEYAPISACCESSCONTROLV1EntrancePaging_DirectionType_Asc:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISACCESSCONTROLV1EntranceDevice_RelationType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1EntranceDevice_RelationType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "RelationTypeUnknown\000Full\000Partial\000";
    static const int32_t values[] = {
        KEYAPISACCESSCONTROLV1EntranceDevice_RelationType_RelationTypeUnknown,
        KEYAPISACCESSCONTROLV1EntranceDevice_RelationType_Full,
        KEYAPISACCESSCONTROLV1EntranceDevice_RelationType_Partial,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1EntranceDevice_RelationType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1EntranceDevice_RelationType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1EntranceDevice_RelationType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1EntranceDevice_RelationType_RelationTypeUnknown:
    case KEYAPISACCESSCONTROLV1EntranceDevice_RelationType_Full:
    case KEYAPISACCESSCONTROLV1EntranceDevice_RelationType_Partial:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISACCESSCONTROLV1EntranceDevicePaging_OrderByType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1EntranceDevicePaging_OrderByType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "OrderByTypeUnknown\000OrponThenEntranceNumb"
        "er\000DeviceId\000";
    static const int32_t values[] = {
        KEYAPISACCESSCONTROLV1EntranceDevicePaging_OrderByType_OrderByTypeUnknown,
        KEYAPISACCESSCONTROLV1EntranceDevicePaging_OrderByType_OrponThenEntranceNumber,
        KEYAPISACCESSCONTROLV1EntranceDevicePaging_OrderByType_DeviceId,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1EntranceDevicePaging_OrderByType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1EntranceDevicePaging_OrderByType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1EntranceDevicePaging_OrderByType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1EntranceDevicePaging_OrderByType_OrderByTypeUnknown:
    case KEYAPISACCESSCONTROLV1EntranceDevicePaging_OrderByType_OrponThenEntranceNumber:
    case KEYAPISACCESSCONTROLV1EntranceDevicePaging_OrderByType_DeviceId:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISACCESSCONTROLV1EntranceDevicePaging_DirectionType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1EntranceDevicePaging_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[] = {
        KEYAPISACCESSCONTROLV1EntranceDevicePaging_DirectionType_DirectionTypeUnknown,
        KEYAPISACCESSCONTROLV1EntranceDevicePaging_DirectionType_Desc,
        KEYAPISACCESSCONTROLV1EntranceDevicePaging_DirectionType_Asc,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1EntranceDevicePaging_DirectionType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1EntranceDevicePaging_DirectionType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1EntranceDevicePaging_DirectionType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1EntranceDevicePaging_DirectionType_DirectionTypeUnknown:
    case KEYAPISACCESSCONTROLV1EntranceDevicePaging_DirectionType_Desc:
    case KEYAPISACCESSCONTROLV1EntranceDevicePaging_DirectionType_Asc:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISACCESSCONTROLV1Entrance

@implementation KEYAPISACCESSCONTROLV1Entrance

@dynamic orpon;
@dynamic entranceNumber;
@dynamic startRoomNumber;
@dynamic roomsCountPerFloor;
@dynamic floorsCount;

typedef struct KEYAPISACCESSCONTROLV1Entrance__storage_ {
  uint32_t _has_storage_[1];
  int32_t entranceNumber;
  int32_t startRoomNumber;
  int32_t roomsCountPerFloor;
  int32_t floorsCount;
  int64_t orpon;
} KEYAPISACCESSCONTROLV1Entrance__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 = "orpon",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1Entrance_FieldNumber_Orpon,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Entrance__storage_, orpon),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "entranceNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1Entrance_FieldNumber_EntranceNumber,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Entrance__storage_, entranceNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "startRoomNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1Entrance_FieldNumber_StartRoomNumber,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Entrance__storage_, startRoomNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "roomsCountPerFloor",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1Entrance_FieldNumber_RoomsCountPerFloor,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Entrance__storage_, roomsCountPerFloor),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "floorsCount",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1Entrance_FieldNumber_FloorsCount,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Entrance__storage_, floorsCount),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1Entrance)
                                   messageName:@"Entrance"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1Entrance__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 - KEYAPISACCESSCONTROLV1EntranceFilter

@implementation KEYAPISACCESSCONTROLV1EntranceFilter

@dynamic flatgrammIdsArray, flatgrammIdsArray_Count;
@dynamic orponsArray, orponsArray_Count;
@dynamic companyIdsArray, companyIdsArray_Count;
@dynamic companyRelationType;

typedef struct KEYAPISACCESSCONTROLV1EntranceFilter__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1EntranceFilter_CompanyRelationType companyRelationType;
  GPBInt32Array *flatgrammIdsArray;
  GPBInt64Array *orponsArray;
  GPBInt32Array *companyIdsArray;
} KEYAPISACCESSCONTROLV1EntranceFilter__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 = "flatgrammIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1EntranceFilter_FieldNumber_FlatgrammIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1EntranceFilter__storage_, flatgrammIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "orponsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1EntranceFilter_FieldNumber_OrponsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1EntranceFilter__storage_, orponsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "companyIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1EntranceFilter_FieldNumber_CompanyIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1EntranceFilter__storage_, companyIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "companyRelationType",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1EntranceFilter_CompanyRelationType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1EntranceFilter_FieldNumber_CompanyRelationType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1EntranceFilter__storage_, companyRelationType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1EntranceFilter)
                                   messageName:@"EntranceFilter"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1EntranceFilter__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 KEYAPISACCESSCONTROLV1EntranceFilter_CompanyRelationType_RawValue(KEYAPISACCESSCONTROLV1EntranceFilter *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1EntranceFilter descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1EntranceFilter_FieldNumber_CompanyRelationType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1EntranceFilter_CompanyRelationType_RawValue(KEYAPISACCESSCONTROLV1EntranceFilter *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1EntranceFilter descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1EntranceFilter_FieldNumber_CompanyRelationType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISACCESSCONTROLV1EntrancePaging

@implementation KEYAPISACCESSCONTROLV1EntrancePaging

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

typedef struct KEYAPISACCESSCONTROLV1EntrancePaging__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1EntrancePaging_OrderByType orderByType;
  KEYAPISACCESSCONTROLV1EntrancePaging_DirectionType directionType;
  int32_t limit;
  int32_t offset;
} KEYAPISACCESSCONTROLV1EntrancePaging__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 = KEYAPISACCESSCONTROLV1EntrancePaging_OrderByType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1EntrancePaging_FieldNumber_OrderByType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1EntrancePaging__storage_, orderByType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "directionType",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1EntrancePaging_DirectionType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1EntrancePaging_FieldNumber_DirectionType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1EntrancePaging__storage_, directionType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "limit",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1EntrancePaging_FieldNumber_Limit,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1EntrancePaging__storage_, limit),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "offset",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1EntrancePaging_FieldNumber_Offset,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1EntrancePaging__storage_, offset),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1EntrancePaging)
                                   messageName:@"EntrancePaging"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1EntrancePaging__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 KEYAPISACCESSCONTROLV1EntrancePaging_OrderByType_RawValue(KEYAPISACCESSCONTROLV1EntrancePaging *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1EntrancePaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1EntrancePaging_FieldNumber_OrderByType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1EntrancePaging_OrderByType_RawValue(KEYAPISACCESSCONTROLV1EntrancePaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1EntrancePaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1EntrancePaging_FieldNumber_OrderByType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISACCESSCONTROLV1EntrancePaging_DirectionType_RawValue(KEYAPISACCESSCONTROLV1EntrancePaging *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1EntrancePaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1EntrancePaging_FieldNumber_DirectionType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1EntrancePaging_DirectionType_RawValue(KEYAPISACCESSCONTROLV1EntrancePaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1EntrancePaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1EntrancePaging_FieldNumber_DirectionType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISACCESSCONTROLV1GetEntranceListRequest

@implementation KEYAPISACCESSCONTROLV1GetEntranceListRequest

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

typedef struct KEYAPISACCESSCONTROLV1GetEntranceListRequest__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1EntranceFilter *filter;
  KEYAPISACCESSCONTROLV1EntrancePaging *paging;
} KEYAPISACCESSCONTROLV1GetEntranceListRequest__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(KEYAPISACCESSCONTROLV1EntranceFilter),
        .number = KEYAPISACCESSCONTROLV1GetEntranceListRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetEntranceListRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "paging",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1EntrancePaging),
        .number = KEYAPISACCESSCONTROLV1GetEntranceListRequest_FieldNumber_Paging,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetEntranceListRequest__storage_, paging),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetEntranceListRequest)
                                   messageName:@"GetEntranceListRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetEntranceListRequest__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 KEYAPISACCESSCONTROLV1GetEntranceListRequest_ClearPaginationOneOfCase(KEYAPISACCESSCONTROLV1GetEntranceListRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetEntranceListRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetEntranceListResponse

@implementation KEYAPISACCESSCONTROLV1GetEntranceListResponse

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

typedef struct KEYAPISACCESSCONTROLV1GetEntranceListResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1Entrance *data_p;
  KEYAPISACCESSCONTROLV1GetEntranceListResponse_Error *error;
} KEYAPISACCESSCONTROLV1GetEntranceListResponse__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(KEYAPISACCESSCONTROLV1Entrance),
        .number = KEYAPISACCESSCONTROLV1GetEntranceListResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetEntranceListResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1GetEntranceListResponse_Error),
        .number = KEYAPISACCESSCONTROLV1GetEntranceListResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetEntranceListResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetEntranceListResponse)
                                   messageName:@"GetEntranceListResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetEntranceListResponse__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 KEYAPISACCESSCONTROLV1GetEntranceListResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1GetEntranceListResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetEntranceListResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetEntranceListResponse_Error

@implementation KEYAPISACCESSCONTROLV1GetEntranceListResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "validation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1GetEntranceListResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetEntranceListResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetEntranceListResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetEntranceListResponse_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(KEYAPISACCESSCONTROLV1GetEntranceListResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachRequest

@dynamic hasEntranceDevice, entranceDevice;

typedef struct KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1EntranceDevice *entranceDevice;
} KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachRequest__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 = "entranceDevice",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1EntranceDevice),
        .number = KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachRequest_FieldNumber_EntranceDevice,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachRequest__storage_, entranceDevice),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachRequest)
                                   messageName:@"PutEntranceDeviceAttachRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachRequest__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 - KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse

@implementation KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse_Error *error;
} KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse__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(KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse_Error),
        .number = KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse)
                                   messageName:@"PutEntranceDeviceAttachResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse__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 KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse_Error

@implementation KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "validation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse_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(KEYAPISACCESSCONTROLV1PutEntranceDeviceAttachResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachRequest

@dynamic hasEntranceDevice, entranceDevice;

typedef struct KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1EntranceDevice *entranceDevice;
} KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachRequest__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 = "entranceDevice",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1EntranceDevice),
        .number = KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachRequest_FieldNumber_EntranceDevice,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachRequest__storage_, entranceDevice),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachRequest)
                                   messageName:@"PutEntranceDeviceDetachRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachRequest__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 - KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse

@implementation KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse_Error *error;
} KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse__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(KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse_Error),
        .number = KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse)
                                   messageName:@"PutEntranceDeviceDetachResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse__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 KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse_Error

@implementation KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "validation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse_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(KEYAPISACCESSCONTROLV1PutEntranceDeviceDetachResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISACCESSCONTROLV1PostEntranceRequest

@dynamic hasData_p, data_p;

typedef struct KEYAPISACCESSCONTROLV1PostEntranceRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1Entrance *data_p;
} KEYAPISACCESSCONTROLV1PostEntranceRequest__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(KEYAPISACCESSCONTROLV1Entrance),
        .number = KEYAPISACCESSCONTROLV1PostEntranceRequest_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostEntranceRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PostEntranceRequest)
                                   messageName:@"PostEntranceRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PostEntranceRequest__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 - KEYAPISACCESSCONTROLV1PostEntranceResponse

@implementation KEYAPISACCESSCONTROLV1PostEntranceResponse

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

typedef struct KEYAPISACCESSCONTROLV1PostEntranceResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1Entrance *data_p;
  KEYAPISACCESSCONTROLV1PostEntranceResponse_Error *error;
} KEYAPISACCESSCONTROLV1PostEntranceResponse__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(KEYAPISACCESSCONTROLV1Entrance),
        .number = KEYAPISACCESSCONTROLV1PostEntranceResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostEntranceResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1PostEntranceResponse_Error),
        .number = KEYAPISACCESSCONTROLV1PostEntranceResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostEntranceResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PostEntranceResponse)
                                   messageName:@"PostEntranceResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PostEntranceResponse__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 KEYAPISACCESSCONTROLV1PostEntranceResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1PostEntranceResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1PostEntranceResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1PostEntranceResponse_Error

@implementation KEYAPISACCESSCONTROLV1PostEntranceResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "validation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1PostEntranceResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostEntranceResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PostEntranceResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PostEntranceResponse_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(KEYAPISACCESSCONTROLV1PostEntranceResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISACCESSCONTROLV1DeleteEntranceRequest

@dynamic orpon;
@dynamic entranceNumber;

typedef struct KEYAPISACCESSCONTROLV1DeleteEntranceRequest__storage_ {
  uint32_t _has_storage_[1];
  int32_t entranceNumber;
  int64_t orpon;
} KEYAPISACCESSCONTROLV1DeleteEntranceRequest__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 = "orpon",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1DeleteEntranceRequest_FieldNumber_Orpon,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1DeleteEntranceRequest__storage_, orpon),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "entranceNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1DeleteEntranceRequest_FieldNumber_EntranceNumber,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1DeleteEntranceRequest__storage_, entranceNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1DeleteEntranceRequest)
                                   messageName:@"DeleteEntranceRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1DeleteEntranceRequest__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 - KEYAPISACCESSCONTROLV1DeleteEntranceResponse

@implementation KEYAPISACCESSCONTROLV1DeleteEntranceResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISACCESSCONTROLV1DeleteEntranceResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1DeleteEntranceResponse_Error *error;
} KEYAPISACCESSCONTROLV1DeleteEntranceResponse__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(KEYAPISACCESSCONTROLV1DeleteEntranceResponse_Error),
        .number = KEYAPISACCESSCONTROLV1DeleteEntranceResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1DeleteEntranceResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1DeleteEntranceResponse)
                                   messageName:@"DeleteEntranceResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1DeleteEntranceResponse__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 KEYAPISACCESSCONTROLV1DeleteEntranceResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1DeleteEntranceResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1DeleteEntranceResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1DeleteEntranceResponse_Error

@implementation KEYAPISACCESSCONTROLV1DeleteEntranceResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;
@dynamic linkedDevicesExists;

typedef struct KEYAPISACCESSCONTROLV1DeleteEntranceResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1ValidationError *validation;
  KEYAPISACCESSCONTROLV1DeleteEntranceResponse_Error_LinkedDevicesExists *linkedDevicesExists;
} KEYAPISACCESSCONTROLV1DeleteEntranceResponse_Error__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "validation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1DeleteEntranceResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1DeleteEntranceResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "linkedDevicesExists",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1DeleteEntranceResponse_Error_LinkedDevicesExists),
        .number = KEYAPISACCESSCONTROLV1DeleteEntranceResponse_Error_FieldNumber_LinkedDevicesExists,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1DeleteEntranceResponse_Error__storage_, linkedDevicesExists),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1DeleteEntranceResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1DeleteEntranceResponse_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(KEYAPISACCESSCONTROLV1DeleteEntranceResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISACCESSCONTROLV1DeleteEntranceResponse_Error_LinkedDevicesExists


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

@end

#pragma mark - KEYAPISACCESSCONTROLV1EntranceDevice

@implementation KEYAPISACCESSCONTROLV1EntranceDevice

@dynamic orpon;
@dynamic entranceNumber;
@dynamic deviceId;
@dynamic relationType;

typedef struct KEYAPISACCESSCONTROLV1EntranceDevice__storage_ {
  uint32_t _has_storage_[1];
  int32_t entranceNumber;
  int32_t deviceId;
  KEYAPISACCESSCONTROLV1EntranceDevice_RelationType relationType;
  int64_t orpon;
} KEYAPISACCESSCONTROLV1EntranceDevice__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 = "orpon",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1EntranceDevice_FieldNumber_Orpon,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1EntranceDevice__storage_, orpon),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "entranceNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1EntranceDevice_FieldNumber_EntranceNumber,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1EntranceDevice__storage_, entranceNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "deviceId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1EntranceDevice_FieldNumber_DeviceId,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1EntranceDevice__storage_, deviceId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "relationType",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1EntranceDevice_RelationType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1EntranceDevice_FieldNumber_RelationType,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1EntranceDevice__storage_, relationType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1EntranceDevice)
                                   messageName:@"EntranceDevice"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1EntranceDevice__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 KEYAPISACCESSCONTROLV1EntranceDevice_RelationType_RawValue(KEYAPISACCESSCONTROLV1EntranceDevice *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1EntranceDevice descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1EntranceDevice_FieldNumber_RelationType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1EntranceDevice_RelationType_RawValue(KEYAPISACCESSCONTROLV1EntranceDevice *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1EntranceDevice descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1EntranceDevice_FieldNumber_RelationType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISACCESSCONTROLV1EntranceDeviceFilter

@implementation KEYAPISACCESSCONTROLV1EntranceDeviceFilter

@dynamic flatgrammIdsArray, flatgrammIdsArray_Count;
@dynamic orponsArray, orponsArray_Count;
@dynamic entranceNumbersArray, entranceNumbersArray_Count;
@dynamic deviceIdsArray, deviceIdsArray_Count;

typedef struct KEYAPISACCESSCONTROLV1EntranceDeviceFilter__storage_ {
  uint32_t _has_storage_[1];
  GPBInt32Array *flatgrammIdsArray;
  GPBInt64Array *orponsArray;
  GPBInt32Array *entranceNumbersArray;
  GPBInt32Array *deviceIdsArray;
} KEYAPISACCESSCONTROLV1EntranceDeviceFilter__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 = "flatgrammIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1EntranceDeviceFilter_FieldNumber_FlatgrammIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1EntranceDeviceFilter__storage_, flatgrammIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "orponsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1EntranceDeviceFilter_FieldNumber_OrponsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1EntranceDeviceFilter__storage_, orponsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "entranceNumbersArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1EntranceDeviceFilter_FieldNumber_EntranceNumbersArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1EntranceDeviceFilter__storage_, entranceNumbersArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "deviceIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1EntranceDeviceFilter_FieldNumber_DeviceIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1EntranceDeviceFilter__storage_, deviceIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1EntranceDeviceFilter)
                                   messageName:@"EntranceDeviceFilter"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1EntranceDeviceFilter__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 - KEYAPISACCESSCONTROLV1EntranceDevicePaging

@implementation KEYAPISACCESSCONTROLV1EntranceDevicePaging

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

typedef struct KEYAPISACCESSCONTROLV1EntranceDevicePaging__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1EntranceDevicePaging_OrderByType orderByType;
  KEYAPISACCESSCONTROLV1EntranceDevicePaging_DirectionType directionType;
  int32_t limit;
  int32_t offset;
} KEYAPISACCESSCONTROLV1EntranceDevicePaging__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 = KEYAPISACCESSCONTROLV1EntranceDevicePaging_OrderByType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1EntranceDevicePaging_FieldNumber_OrderByType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1EntranceDevicePaging__storage_, orderByType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "directionType",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1EntranceDevicePaging_DirectionType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1EntranceDevicePaging_FieldNumber_DirectionType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1EntranceDevicePaging__storage_, directionType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "limit",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1EntranceDevicePaging_FieldNumber_Limit,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1EntranceDevicePaging__storage_, limit),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "offset",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1EntranceDevicePaging_FieldNumber_Offset,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1EntranceDevicePaging__storage_, offset),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1EntranceDevicePaging)
                                   messageName:@"EntranceDevicePaging"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1EntranceDevicePaging__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 KEYAPISACCESSCONTROLV1EntranceDevicePaging_OrderByType_RawValue(KEYAPISACCESSCONTROLV1EntranceDevicePaging *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1EntranceDevicePaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1EntranceDevicePaging_FieldNumber_OrderByType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1EntranceDevicePaging_OrderByType_RawValue(KEYAPISACCESSCONTROLV1EntranceDevicePaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1EntranceDevicePaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1EntranceDevicePaging_FieldNumber_OrderByType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISACCESSCONTROLV1EntranceDevicePaging_DirectionType_RawValue(KEYAPISACCESSCONTROLV1EntranceDevicePaging *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1EntranceDevicePaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1EntranceDevicePaging_FieldNumber_DirectionType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1EntranceDevicePaging_DirectionType_RawValue(KEYAPISACCESSCONTROLV1EntranceDevicePaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1EntranceDevicePaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1EntranceDevicePaging_FieldNumber_DirectionType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISACCESSCONTROLV1GetEntranceDeviceListRequest

@implementation KEYAPISACCESSCONTROLV1GetEntranceDeviceListRequest

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

typedef struct KEYAPISACCESSCONTROLV1GetEntranceDeviceListRequest__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1EntranceDeviceFilter *filter;
  KEYAPISACCESSCONTROLV1EntranceDevicePaging *paging;
} KEYAPISACCESSCONTROLV1GetEntranceDeviceListRequest__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(KEYAPISACCESSCONTROLV1EntranceDeviceFilter),
        .number = KEYAPISACCESSCONTROLV1GetEntranceDeviceListRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetEntranceDeviceListRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "paging",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1EntranceDevicePaging),
        .number = KEYAPISACCESSCONTROLV1GetEntranceDeviceListRequest_FieldNumber_Paging,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetEntranceDeviceListRequest__storage_, paging),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetEntranceDeviceListRequest)
                                   messageName:@"GetEntranceDeviceListRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetEntranceDeviceListRequest__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 KEYAPISACCESSCONTROLV1GetEntranceDeviceListRequest_ClearPaginationOneOfCase(KEYAPISACCESSCONTROLV1GetEntranceDeviceListRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetEntranceDeviceListRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse

@implementation KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse

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

typedef struct KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1EntranceDevice *data_p;
  KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse_Error *error;
} KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse__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(KEYAPISACCESSCONTROLV1EntranceDevice),
        .number = KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse_Error),
        .number = KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse)
                                   messageName:@"GetEntranceDeviceListResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse__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 KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse_Error

@implementation KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "validation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlEntranceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse_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(KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse_Error_ClearReasonOneOfCase(KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse_Error *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetEntranceDeviceListResponse_Error descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}

#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
