// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/access_control/v1/keyapis_access_control_access_control_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/KeyapisAccessControlAccessControlV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
// @@protoc_insertion_point(imports)

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

#pragma mark - Objective-C Class declarations
// Forward declarations of Objective-C classes that we can use as
// static values in struct initializers.
// We don't use [Foo class] because it is not a static value.
GPBObjCClassDeclaration(GPBBoolValue);
GPBObjCClassDeclaration(GPBTimestamp);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRoomCountRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRoomCountResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRoomListRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRoomListResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRoomListResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRoomRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRoomResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRoomResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error_IdExpected);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error_OrponExpected);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1Room);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1RoomFilter);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1RoomPaging);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1ValidationError);

#pragma mark - KEYAPISACCESSCONTROLV1KeyapisAccessControlAccessControlV1Root

@implementation KEYAPISACCESSCONTROLV1KeyapisAccessControlAccessControlV1Root

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

#pragma mark - Enum KEYAPISACCESSCONTROLV1Room_Type

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1Room_Type_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "TypeUnknown\000Floor\000Entrance\000Apartment\000Wat"
        "erDistribution\000HeatPoint\000Pantry\000Wheelcha"
        "ir\000WiringCloset\000Concierge\000Checkpoint\000Par"
        "kingPlace\000Office\000Basement\000Substation\000Hom"
        "eownersRoom\000Tambour\000InputNode\000Lobby\000Atti"
        "c\000ElevatorShaft\000Switchboard\000DefaultRoom\000";
    static const int32_t values[] = {
        KEYAPISACCESSCONTROLV1Room_Type_TypeUnknown,
        KEYAPISACCESSCONTROLV1Room_Type_Floor,
        KEYAPISACCESSCONTROLV1Room_Type_Entrance,
        KEYAPISACCESSCONTROLV1Room_Type_Apartment,
        KEYAPISACCESSCONTROLV1Room_Type_WaterDistribution,
        KEYAPISACCESSCONTROLV1Room_Type_HeatPoint,
        KEYAPISACCESSCONTROLV1Room_Type_Pantry,
        KEYAPISACCESSCONTROLV1Room_Type_Wheelchair,
        KEYAPISACCESSCONTROLV1Room_Type_WiringCloset,
        KEYAPISACCESSCONTROLV1Room_Type_Concierge,
        KEYAPISACCESSCONTROLV1Room_Type_Checkpoint,
        KEYAPISACCESSCONTROLV1Room_Type_ParkingPlace,
        KEYAPISACCESSCONTROLV1Room_Type_Office,
        KEYAPISACCESSCONTROLV1Room_Type_Basement,
        KEYAPISACCESSCONTROLV1Room_Type_Substation,
        KEYAPISACCESSCONTROLV1Room_Type_HomeownersRoom,
        KEYAPISACCESSCONTROLV1Room_Type_Tambour,
        KEYAPISACCESSCONTROLV1Room_Type_InputNode,
        KEYAPISACCESSCONTROLV1Room_Type_Lobby,
        KEYAPISACCESSCONTROLV1Room_Type_Attic,
        KEYAPISACCESSCONTROLV1Room_Type_ElevatorShaft,
        KEYAPISACCESSCONTROLV1Room_Type_Switchboard,
        KEYAPISACCESSCONTROLV1Room_Type_DefaultRoom,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1Room_Type)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1Room_Type_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1Room_Type_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1Room_Type_TypeUnknown:
    case KEYAPISACCESSCONTROLV1Room_Type_Floor:
    case KEYAPISACCESSCONTROLV1Room_Type_Entrance:
    case KEYAPISACCESSCONTROLV1Room_Type_Apartment:
    case KEYAPISACCESSCONTROLV1Room_Type_WaterDistribution:
    case KEYAPISACCESSCONTROLV1Room_Type_HeatPoint:
    case KEYAPISACCESSCONTROLV1Room_Type_Pantry:
    case KEYAPISACCESSCONTROLV1Room_Type_Wheelchair:
    case KEYAPISACCESSCONTROLV1Room_Type_WiringCloset:
    case KEYAPISACCESSCONTROLV1Room_Type_Concierge:
    case KEYAPISACCESSCONTROLV1Room_Type_Checkpoint:
    case KEYAPISACCESSCONTROLV1Room_Type_ParkingPlace:
    case KEYAPISACCESSCONTROLV1Room_Type_Office:
    case KEYAPISACCESSCONTROLV1Room_Type_Basement:
    case KEYAPISACCESSCONTROLV1Room_Type_Substation:
    case KEYAPISACCESSCONTROLV1Room_Type_HomeownersRoom:
    case KEYAPISACCESSCONTROLV1Room_Type_Tambour:
    case KEYAPISACCESSCONTROLV1Room_Type_InputNode:
    case KEYAPISACCESSCONTROLV1Room_Type_Lobby:
    case KEYAPISACCESSCONTROLV1Room_Type_Attic:
    case KEYAPISACCESSCONTROLV1Room_Type_ElevatorShaft:
    case KEYAPISACCESSCONTROLV1Room_Type_Switchboard:
    case KEYAPISACCESSCONTROLV1Room_Type_DefaultRoom:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_ModeType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_ModeType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "ModeTypeUnknown\000Disabled\000Enabled\000";
    static const int32_t values[] = {
        KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_ModeType_ModeTypeUnknown,
        KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_ModeType_Disabled,
        KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_ModeType_Enabled,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_ModeType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_ModeType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_ModeType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_ModeType_ModeTypeUnknown:
    case KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_ModeType_Disabled:
    case KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_ModeType_Enabled:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISACCESSCONTROLV1RoomPaging_OrderByType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1RoomPaging_OrderByType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "OrderByTypeUnknown\000Id\000CreatedAt\000FloorThe"
        "nNumber\000Number\000";
    static const int32_t values[] = {
        KEYAPISACCESSCONTROLV1RoomPaging_OrderByType_OrderByTypeUnknown,
        KEYAPISACCESSCONTROLV1RoomPaging_OrderByType_Id,
        KEYAPISACCESSCONTROLV1RoomPaging_OrderByType_CreatedAt,
        KEYAPISACCESSCONTROLV1RoomPaging_OrderByType_FloorThenNumber,
        KEYAPISACCESSCONTROLV1RoomPaging_OrderByType_Number,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1RoomPaging_OrderByType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1RoomPaging_OrderByType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1RoomPaging_OrderByType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1RoomPaging_OrderByType_OrderByTypeUnknown:
    case KEYAPISACCESSCONTROLV1RoomPaging_OrderByType_Id:
    case KEYAPISACCESSCONTROLV1RoomPaging_OrderByType_CreatedAt:
    case KEYAPISACCESSCONTROLV1RoomPaging_OrderByType_FloorThenNumber:
    case KEYAPISACCESSCONTROLV1RoomPaging_OrderByType_Number:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISACCESSCONTROLV1RoomPaging_DirectionType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1RoomPaging_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[] = {
        KEYAPISACCESSCONTROLV1RoomPaging_DirectionType_DirectionTypeUnknown,
        KEYAPISACCESSCONTROLV1RoomPaging_DirectionType_Desc,
        KEYAPISACCESSCONTROLV1RoomPaging_DirectionType_Asc,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1RoomPaging_DirectionType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1RoomPaging_DirectionType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1RoomPaging_DirectionType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1RoomPaging_DirectionType_DirectionTypeUnknown:
    case KEYAPISACCESSCONTROLV1RoomPaging_DirectionType_Desc:
    case KEYAPISACCESSCONTROLV1RoomPaging_DirectionType_Asc:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISACCESSCONTROLV1Room

@implementation KEYAPISACCESSCONTROLV1Room

@dynamic id_p;
@dynamic number;
@dynamic entrance;
@dynamic floor;
@dynamic area;
@dynamic buildingId;
@dynamic companyId;
@dynamic abonentId;
@dynamic type;
@dynamic hasCreatedAt, createdAt;
@dynamic hasDeletedAt, deletedAt;
@dynamic isSubscriptionModeEnabled;

typedef struct KEYAPISACCESSCONTROLV1Room__storage_ {
  uint32_t _has_storage_[1];
  int32_t id_p;
  int32_t entrance;
  int32_t floor;
  float area;
  int32_t buildingId;
  int32_t companyId;
  KEYAPISACCESSCONTROLV1Room_Type type;
  NSString *number;
  NSString *abonentId;
  GPBTimestamp *createdAt;
  GPBTimestamp *deletedAt;
} KEYAPISACCESSCONTROLV1Room__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "id_p",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1Room_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Room__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "number",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1Room_FieldNumber_Number,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Room__storage_, number),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "entrance",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1Room_FieldNumber_Entrance,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Room__storage_, entrance),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "floor",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1Room_FieldNumber_Floor,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Room__storage_, floor),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "area",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1Room_FieldNumber_Area,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Room__storage_, area),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeFloat,
      },
      {
        .name = "buildingId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1Room_FieldNumber_BuildingId,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Room__storage_, buildingId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "companyId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1Room_FieldNumber_CompanyId,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Room__storage_, companyId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "abonentId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1Room_FieldNumber_AbonentId,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Room__storage_, abonentId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "type",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1Room_Type_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1Room_FieldNumber_Type,
        .hasIndex = 8,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Room__storage_, type),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "createdAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISACCESSCONTROLV1Room_FieldNumber_CreatedAt,
        .hasIndex = 9,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Room__storage_, createdAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "deletedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISACCESSCONTROLV1Room_FieldNumber_DeletedAt,
        .hasIndex = 10,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Room__storage_, deletedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "isSubscriptionModeEnabled",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1Room_FieldNumber_IsSubscriptionModeEnabled,
        .hasIndex = 11,
        .offset = 12,  // Stored in _has_storage_ to save space.
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeBool,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1Room)
                                   messageName:@"Room"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlAccessControlV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1Room__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 KEYAPISACCESSCONTROLV1Room_Type_RawValue(KEYAPISACCESSCONTROLV1Room *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1Room descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1Room_FieldNumber_Type];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1Room_Type_RawValue(KEYAPISACCESSCONTROLV1Room *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1Room descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1Room_FieldNumber_Type];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISACCESSCONTROLV1GetRoomRequest

@implementation KEYAPISACCESSCONTROLV1GetRoomRequest

@dynamic id_p;

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

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "id_p",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1GetRoomRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRoomRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRoomRequest)
                                   messageName:@"GetRoomRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlAccessControlV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRoomRequest__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 - KEYAPISACCESSCONTROLV1GetRoomResponse

@implementation KEYAPISACCESSCONTROLV1GetRoomResponse

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

typedef struct KEYAPISACCESSCONTROLV1GetRoomResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1Room *data_p;
  KEYAPISACCESSCONTROLV1GetRoomResponse_Error *error;
} KEYAPISACCESSCONTROLV1GetRoomResponse__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(KEYAPISACCESSCONTROLV1Room),
        .number = KEYAPISACCESSCONTROLV1GetRoomResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRoomResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1GetRoomResponse_Error),
        .number = KEYAPISACCESSCONTROLV1GetRoomResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRoomResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRoomResponse)
                                   messageName:@"GetRoomResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlAccessControlV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRoomResponse__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 KEYAPISACCESSCONTROLV1GetRoomResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1GetRoomResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetRoomResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetRoomResponse_Error

@implementation KEYAPISACCESSCONTROLV1GetRoomResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest

@dynamic mrfIdsArray, mrfIdsArray_Count;
@dynamic rfIdsArray, rfIdsArray_Count;
@dynamic orponId;
@dynamic roomNumbersArray, roomNumbersArray_Count;
@dynamic modeType;

typedef struct KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_ModeType modeType;
  GPBInt32Array *mrfIdsArray;
  GPBInt32Array *rfIdsArray;
  NSMutableArray *roomNumbersArray;
  int64_t orponId;
} KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest__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 = "mrfIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_FieldNumber_MrfIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest__storage_, mrfIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "rfIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_FieldNumber_RfIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest__storage_, rfIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "orponId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_FieldNumber_OrponId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest__storage_, orponId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "roomNumbersArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_FieldNumber_RoomNumbersArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest__storage_, roomNumbersArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "modeType",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_ModeType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_FieldNumber_ModeType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest__storage_, modeType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest)
                                   messageName:@"PatchRoomSetSubscriptionModeRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlAccessControlV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest__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 KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_ModeType_RawValue(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_FieldNumber_ModeType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_ModeType_RawValue(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeRequest_FieldNumber_ModeType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse

@implementation KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error *error;
} KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse__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(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error),
        .number = KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse)
                                   messageName:@"PatchRoomSetSubscriptionModeResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlAccessControlV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse__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 KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error

@implementation KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error

@dynamic reasonOneOfCase;
@dynamic orponExpected;
@dynamic idExpected;
@dynamic validation;

typedef struct KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error_OrponExpected *orponExpected;
  KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error_IdExpected *idExpected;
  KEYAPISACCESSCONTROLV1ValidationError *validation;
} KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_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 = "orponExpected",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error_OrponExpected),
        .number = KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error_FieldNumber_OrponExpected,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error__storage_, orponExpected),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "idExpected",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error_IdExpected),
        .number = KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error_FieldNumber_IdExpected,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error__storage_, idExpected),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "validation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlAccessControlV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_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(KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error_OrponExpected


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

@end

#pragma mark - KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error_IdExpected

@implementation KEYAPISACCESSCONTROLV1PatchRoomSetSubscriptionModeResponse_Error_IdExpected


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

@end

#pragma mark - KEYAPISACCESSCONTROLV1GetRoomListRequest

@implementation KEYAPISACCESSCONTROLV1GetRoomListRequest

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

typedef struct KEYAPISACCESSCONTROLV1GetRoomListRequest__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1RoomFilter *filter;
  KEYAPISACCESSCONTROLV1RoomPaging *paging;
} KEYAPISACCESSCONTROLV1GetRoomListRequest__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(KEYAPISACCESSCONTROLV1RoomFilter),
        .number = KEYAPISACCESSCONTROLV1GetRoomListRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRoomListRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "paging",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1RoomPaging),
        .number = KEYAPISACCESSCONTROLV1GetRoomListRequest_FieldNumber_Paging,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRoomListRequest__storage_, paging),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRoomListRequest)
                                   messageName:@"GetRoomListRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlAccessControlV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRoomListRequest__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 KEYAPISACCESSCONTROLV1GetRoomListRequest_ClearPaginationOneOfCase(KEYAPISACCESSCONTROLV1GetRoomListRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetRoomListRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetRoomListResponse

@implementation KEYAPISACCESSCONTROLV1GetRoomListResponse

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

typedef struct KEYAPISACCESSCONTROLV1GetRoomListResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1Room *data_p;
  KEYAPISACCESSCONTROLV1GetRoomListResponse_Error *error;
} KEYAPISACCESSCONTROLV1GetRoomListResponse__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(KEYAPISACCESSCONTROLV1Room),
        .number = KEYAPISACCESSCONTROLV1GetRoomListResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRoomListResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1GetRoomListResponse_Error),
        .number = KEYAPISACCESSCONTROLV1GetRoomListResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRoomListResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRoomListResponse)
                                   messageName:@"GetRoomListResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlAccessControlV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRoomListResponse__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 KEYAPISACCESSCONTROLV1GetRoomListResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1GetRoomListResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetRoomListResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetRoomListResponse_Error

@implementation KEYAPISACCESSCONTROLV1GetRoomListResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation KEYAPISACCESSCONTROLV1GetRoomCountRequest

@dynamic hasFilter, filter;

typedef struct KEYAPISACCESSCONTROLV1GetRoomCountRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1RoomFilter *filter;
} KEYAPISACCESSCONTROLV1GetRoomCountRequest__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(KEYAPISACCESSCONTROLV1RoomFilter),
        .number = KEYAPISACCESSCONTROLV1GetRoomCountRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRoomCountRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRoomCountRequest)
                                   messageName:@"GetRoomCountRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlAccessControlV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRoomCountRequest__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 - KEYAPISACCESSCONTROLV1GetRoomCountResponse

@implementation KEYAPISACCESSCONTROLV1GetRoomCountResponse

@dynamic typeOneOfCase;
@dynamic data_p;

typedef struct KEYAPISACCESSCONTROLV1GetRoomCountResponse__storage_ {
  uint32_t _has_storage_[2];
  int32_t data_p;
} KEYAPISACCESSCONTROLV1GetRoomCountResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1GetRoomCountResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRoomCountResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRoomCountResponse)
                                   messageName:@"GetRoomCountResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlAccessControlV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRoomCountResponse__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 KEYAPISACCESSCONTROLV1GetRoomCountResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1GetRoomCountResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetRoomCountResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1RoomFilter

@implementation KEYAPISACCESSCONTROLV1RoomFilter

@dynamic buildingIdsArray, buildingIdsArray_Count;
@dynamic entrancesArray, entrancesArray_Count;
@dynamic floorsArray, floorsArray_Count;
@dynamic companyIdsArray, companyIdsArray_Count;
@dynamic typesArray, typesArray_Count;
@dynamic deviceIdsArray, deviceIdsArray_Count;
@dynamic orponsArray, orponsArray_Count;
@dynamic hasIsServiceFlag, isServiceFlag;
@dynamic roomNumbersArray, roomNumbersArray_Count;

typedef struct KEYAPISACCESSCONTROLV1RoomFilter__storage_ {
  uint32_t _has_storage_[1];
  GPBInt32Array *buildingIdsArray;
  GPBInt32Array *entrancesArray;
  GPBInt32Array *floorsArray;
  GPBInt32Array *companyIdsArray;
  GPBEnumArray *typesArray;
  GPBInt32Array *deviceIdsArray;
  GPBInt64Array *orponsArray;
  GPBBoolValue *isServiceFlag;
  NSMutableArray *roomNumbersArray;
} KEYAPISACCESSCONTROLV1RoomFilter__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 = "buildingIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RoomFilter_FieldNumber_BuildingIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomFilter__storage_, buildingIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "entrancesArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RoomFilter_FieldNumber_EntrancesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomFilter__storage_, entrancesArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "floorsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RoomFilter_FieldNumber_FloorsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomFilter__storage_, floorsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "companyIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RoomFilter_FieldNumber_CompanyIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomFilter__storage_, companyIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "typesArray",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1Room_Type_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1RoomFilter_FieldNumber_TypesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomFilter__storage_, typesArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked | GPBFieldHasEnumDescriptor),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "deviceIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RoomFilter_FieldNumber_DeviceIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomFilter__storage_, deviceIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "orponsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RoomFilter_FieldNumber_OrponsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomFilter__storage_, orponsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "isServiceFlag",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBBoolValue),
        .number = KEYAPISACCESSCONTROLV1RoomFilter_FieldNumber_IsServiceFlag,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomFilter__storage_, isServiceFlag),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "roomNumbersArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RoomFilter_FieldNumber_RoomNumbersArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomFilter__storage_, roomNumbersArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1RoomFilter)
                                   messageName:@"RoomFilter"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlAccessControlV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1RoomFilter__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 - KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsRequest

@implementation KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsRequest

@dynamic orpon;
@dynamic roomNumber;

typedef struct KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *roomNumber;
  int64_t orpon;
} KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsRequest__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 = KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsRequest_FieldNumber_Orpon,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsRequest__storage_, orpon),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "roomNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsRequest_FieldNumber_RoomNumber,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsRequest__storage_, roomNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsRequest)
                                   messageName:@"GetRoomOrponNumberExistsRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlAccessControlV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsRequest__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 - KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsResponse

@implementation KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsResponse

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

typedef struct KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsResponse_Error *error;
} KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = 0,  // Stored in _has_storage_ to save space.
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeBool,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsResponse_Error),
        .number = KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsResponse)
                                   messageName:@"GetRoomOrponNumberExistsResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlAccessControlV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsResponse__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 KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsResponse_Error

@implementation KEYAPISACCESSCONTROLV1GetRoomOrponNumberExistsResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation KEYAPISACCESSCONTROLV1RoomPaging

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

typedef struct KEYAPISACCESSCONTROLV1RoomPaging__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1RoomPaging_OrderByType orderByType;
  KEYAPISACCESSCONTROLV1RoomPaging_DirectionType directionType;
  int32_t limit;
  int32_t offset;
} KEYAPISACCESSCONTROLV1RoomPaging__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 = KEYAPISACCESSCONTROLV1RoomPaging_OrderByType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1RoomPaging_FieldNumber_OrderByType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomPaging__storage_, orderByType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "directionType",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1RoomPaging_DirectionType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1RoomPaging_FieldNumber_DirectionType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomPaging__storage_, directionType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "limit",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RoomPaging_FieldNumber_Limit,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomPaging__storage_, limit),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "offset",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RoomPaging_FieldNumber_Offset,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomPaging__storage_, offset),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1RoomPaging)
                                   messageName:@"RoomPaging"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlAccessControlV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1RoomPaging__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 KEYAPISACCESSCONTROLV1RoomPaging_OrderByType_RawValue(KEYAPISACCESSCONTROLV1RoomPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1RoomPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1RoomPaging_FieldNumber_OrderByType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1RoomPaging_OrderByType_RawValue(KEYAPISACCESSCONTROLV1RoomPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1RoomPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1RoomPaging_FieldNumber_OrderByType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISACCESSCONTROLV1RoomPaging_DirectionType_RawValue(KEYAPISACCESSCONTROLV1RoomPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1RoomPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1RoomPaging_FieldNumber_DirectionType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1RoomPaging_DirectionType_RawValue(KEYAPISACCESSCONTROLV1RoomPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1RoomPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1RoomPaging_FieldNumber_DirectionType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISACCESSCONTROLV1ValidationError

@implementation KEYAPISACCESSCONTROLV1ValidationError

@dynamic path;
@dynamic message;

typedef struct KEYAPISACCESSCONTROLV1ValidationError__storage_ {
  uint32_t _has_storage_[1];
  NSString *path;
  NSString *message;
} KEYAPISACCESSCONTROLV1ValidationError__storage_;

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

@end


#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
