// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/bell/v1/keyapis_bell_notification_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/bell/v1/KeyapisBellNotificationV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "google/protobuf/Descriptor.pbobjc.h"
#import "keyapis/bell/v1/KeyapisBellCommonV1.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(GPBStringValue);
GPBObjCClassDeclaration(GPBTimestamp);
GPBObjCClassDeclaration(KEYAPISBELLV1GetNotificationCountRequest);
GPBObjCClassDeclaration(KEYAPISBELLV1GetNotificationCountResponse);
GPBObjCClassDeclaration(KEYAPISBELLV1GetNotificationCountResponse_Error);
GPBObjCClassDeclaration(KEYAPISBELLV1GetNotificationListRequest);
GPBObjCClassDeclaration(KEYAPISBELLV1GetNotificationListResponse);
GPBObjCClassDeclaration(KEYAPISBELLV1GetNotificationListResponse_Error);
GPBObjCClassDeclaration(KEYAPISBELLV1GetNotificationRequest);
GPBObjCClassDeclaration(KEYAPISBELLV1GetNotificationResponse);
GPBObjCClassDeclaration(KEYAPISBELLV1GetNotificationResponse_Error);
GPBObjCClassDeclaration(KEYAPISBELLV1Notification);
GPBObjCClassDeclaration(KEYAPISBELLV1NotificationFilter);
GPBObjCClassDeclaration(KEYAPISBELLV1NotificationPaging);
GPBObjCClassDeclaration(KEYAPISBELLV1PostNotificationRequest);
GPBObjCClassDeclaration(KEYAPISBELLV1PostNotificationResponse);
GPBObjCClassDeclaration(KEYAPISBELLV1PostNotificationResponse_Error);
GPBObjCClassDeclaration(KEYAPISBELLV1PostNotificationViewOrponRoomNumberRequest);
GPBObjCClassDeclaration(KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse);
GPBObjCClassDeclaration(KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse_Error);
GPBObjCClassDeclaration(KEYAPISBELLV1PostNotificationViewRequest);
GPBObjCClassDeclaration(KEYAPISBELLV1PostNotificationViewResponse);
GPBObjCClassDeclaration(KEYAPISBELLV1PostNotificationViewResponse_Error);
GPBObjCClassDeclaration(KEYAPISBELLV1ValidationError);

#pragma mark - KEYAPISBELLV1KeyapisBellNotificationV1Root

@implementation KEYAPISBELLV1KeyapisBellNotificationV1Root

+ (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 KEYAPISBELLV1KeyapisBellNotificationV1Root_FileDescription = {
  .package = "keyapis.bell.v1",
  .prefix = "KEYAPISBELLV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum KEYAPISBELLV1Notification_StatusType

GPBEnumDescriptor *KEYAPISBELLV1Notification_StatusType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "StatusTypeUnknown\000New\000Delivered\000Viewed\000";
    static const int32_t values[] = {
        KEYAPISBELLV1Notification_StatusType_StatusTypeUnknown,
        KEYAPISBELLV1Notification_StatusType_New,
        KEYAPISBELLV1Notification_StatusType_Delivered,
        KEYAPISBELLV1Notification_StatusType_Viewed,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISBELLV1Notification_StatusType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISBELLV1Notification_StatusType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISBELLV1Notification_StatusType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISBELLV1Notification_StatusType_StatusTypeUnknown:
    case KEYAPISBELLV1Notification_StatusType_New:
    case KEYAPISBELLV1Notification_StatusType_Delivered:
    case KEYAPISBELLV1Notification_StatusType_Viewed:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISBELLV1NotificationPaging_OrderByType

GPBEnumDescriptor *KEYAPISBELLV1NotificationPaging_OrderByType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "OrderByTypeUnknown\000CreatedAt\000StatusChang"
        "edAt\000";
    static const int32_t values[] = {
        KEYAPISBELLV1NotificationPaging_OrderByType_OrderByTypeUnknown,
        KEYAPISBELLV1NotificationPaging_OrderByType_CreatedAt,
        KEYAPISBELLV1NotificationPaging_OrderByType_StatusChangedAt,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISBELLV1NotificationPaging_OrderByType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISBELLV1NotificationPaging_OrderByType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISBELLV1NotificationPaging_OrderByType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISBELLV1NotificationPaging_OrderByType_OrderByTypeUnknown:
    case KEYAPISBELLV1NotificationPaging_OrderByType_CreatedAt:
    case KEYAPISBELLV1NotificationPaging_OrderByType_StatusChangedAt:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISBELLV1NotificationPaging_DirectionType

GPBEnumDescriptor *KEYAPISBELLV1NotificationPaging_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[] = {
        KEYAPISBELLV1NotificationPaging_DirectionType_DirectionTypeUnknown,
        KEYAPISBELLV1NotificationPaging_DirectionType_Desc,
        KEYAPISBELLV1NotificationPaging_DirectionType_Asc,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISBELLV1NotificationPaging_DirectionType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISBELLV1NotificationPaging_DirectionType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISBELLV1NotificationPaging_DirectionType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISBELLV1NotificationPaging_DirectionType_DirectionTypeUnknown:
    case KEYAPISBELLV1NotificationPaging_DirectionType_Desc:
    case KEYAPISBELLV1NotificationPaging_DirectionType_Asc:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISBELLV1Notification

@implementation KEYAPISBELLV1Notification

@dynamic id_p;
@dynamic orpon;
@dynamic hasAppTitle, appTitle;
@dynamic roomNumber;
@dynamic header;
@dynamic text;
@dynamic statusType;
@dynamic hasCreatedAt, createdAt;
@dynamic hasStatusChangedAt, statusChangedAt;
@dynamic payload, payload_Count;

typedef struct KEYAPISBELLV1Notification__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISBELLV1Notification_StatusType statusType;
  NSString *id_p;
  GPBStringValue *appTitle;
  NSString *roomNumber;
  NSString *header;
  NSString *text;
  GPBTimestamp *createdAt;
  GPBTimestamp *statusChangedAt;
  NSMutableDictionary *payload;
  int64_t orpon;
} KEYAPISBELLV1Notification__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 = KEYAPISBELLV1Notification_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1Notification__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "orpon",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISBELLV1Notification_FieldNumber_Orpon,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1Notification__storage_, orpon),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "appTitle",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISBELLV1Notification_FieldNumber_AppTitle,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1Notification__storage_, appTitle),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "roomNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISBELLV1Notification_FieldNumber_RoomNumber,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1Notification__storage_, roomNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "header",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISBELLV1Notification_FieldNumber_Header,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1Notification__storage_, header),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "text",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISBELLV1Notification_FieldNumber_Text,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1Notification__storage_, text),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "statusType",
        .dataTypeSpecific.enumDescFunc = KEYAPISBELLV1Notification_StatusType_EnumDescriptor,
        .number = KEYAPISBELLV1Notification_FieldNumber_StatusType,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1Notification__storage_, statusType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "createdAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISBELLV1Notification_FieldNumber_CreatedAt,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1Notification__storage_, createdAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "statusChangedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISBELLV1Notification_FieldNumber_StatusChangedAt,
        .hasIndex = 8,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1Notification__storage_, statusChangedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "payload",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISBELLV1Notification_FieldNumber_Payload,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1Notification__storage_, payload),
        .flags = GPBFieldMapKeyString,
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISBELLV1Notification)
                                   messageName:@"Notification"
                               fileDescription:&KEYAPISBELLV1KeyapisBellNotificationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISBELLV1Notification__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 KEYAPISBELLV1Notification_StatusType_RawValue(KEYAPISBELLV1Notification *message) {
  GPBDescriptor *descriptor = [KEYAPISBELLV1Notification descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISBELLV1Notification_FieldNumber_StatusType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISBELLV1Notification_StatusType_RawValue(KEYAPISBELLV1Notification *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISBELLV1Notification descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISBELLV1Notification_FieldNumber_StatusType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISBELLV1PostNotificationRequest

@implementation KEYAPISBELLV1PostNotificationRequest

@dynamic hasData_p, data_p;

typedef struct KEYAPISBELLV1PostNotificationRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISBELLV1Notification *data_p;
} KEYAPISBELLV1PostNotificationRequest__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(KEYAPISBELLV1Notification),
        .number = KEYAPISBELLV1PostNotificationRequest_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1PostNotificationRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISBELLV1PostNotificationRequest)
                                   messageName:@"PostNotificationRequest"
                               fileDescription:&KEYAPISBELLV1KeyapisBellNotificationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISBELLV1PostNotificationRequest__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 - KEYAPISBELLV1PostNotificationResponse

@implementation KEYAPISBELLV1PostNotificationResponse

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

typedef struct KEYAPISBELLV1PostNotificationResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISBELLV1Notification *data_p;
  KEYAPISBELLV1PostNotificationResponse_Error *error;
} KEYAPISBELLV1PostNotificationResponse__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(KEYAPISBELLV1Notification),
        .number = KEYAPISBELLV1PostNotificationResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1PostNotificationResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISBELLV1PostNotificationResponse_Error),
        .number = KEYAPISBELLV1PostNotificationResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1PostNotificationResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISBELLV1PostNotificationResponse)
                                   messageName:@"PostNotificationResponse"
                               fileDescription:&KEYAPISBELLV1KeyapisBellNotificationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISBELLV1PostNotificationResponse__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 KEYAPISBELLV1PostNotificationResponse_ClearTypeOneOfCase(KEYAPISBELLV1PostNotificationResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISBELLV1PostNotificationResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISBELLV1PostNotificationResponse_Error

@implementation KEYAPISBELLV1PostNotificationResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation KEYAPISBELLV1GetNotificationRequest

@dynamic id_p;

typedef struct KEYAPISBELLV1GetNotificationRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *id_p;
} KEYAPISBELLV1GetNotificationRequest__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 = KEYAPISBELLV1GetNotificationRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1GetNotificationRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISBELLV1GetNotificationRequest)
                                   messageName:@"GetNotificationRequest"
                               fileDescription:&KEYAPISBELLV1KeyapisBellNotificationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISBELLV1GetNotificationRequest__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 - KEYAPISBELLV1GetNotificationResponse

@implementation KEYAPISBELLV1GetNotificationResponse

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

typedef struct KEYAPISBELLV1GetNotificationResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISBELLV1Notification *data_p;
  KEYAPISBELLV1GetNotificationResponse_Error *error;
} KEYAPISBELLV1GetNotificationResponse__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(KEYAPISBELLV1Notification),
        .number = KEYAPISBELLV1GetNotificationResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1GetNotificationResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISBELLV1GetNotificationResponse_Error),
        .number = KEYAPISBELLV1GetNotificationResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1GetNotificationResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISBELLV1GetNotificationResponse)
                                   messageName:@"GetNotificationResponse"
                               fileDescription:&KEYAPISBELLV1KeyapisBellNotificationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISBELLV1GetNotificationResponse__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 KEYAPISBELLV1GetNotificationResponse_ClearTypeOneOfCase(KEYAPISBELLV1GetNotificationResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISBELLV1GetNotificationResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISBELLV1GetNotificationResponse_Error

@implementation KEYAPISBELLV1GetNotificationResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation KEYAPISBELLV1GetNotificationListRequest

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

typedef struct KEYAPISBELLV1GetNotificationListRequest__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISBELLV1NotificationFilter *filter;
  KEYAPISBELLV1NotificationPaging *paging;
} KEYAPISBELLV1GetNotificationListRequest__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(KEYAPISBELLV1NotificationFilter),
        .number = KEYAPISBELLV1GetNotificationListRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1GetNotificationListRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "paging",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISBELLV1NotificationPaging),
        .number = KEYAPISBELLV1GetNotificationListRequest_FieldNumber_Paging,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1GetNotificationListRequest__storage_, paging),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISBELLV1GetNotificationListRequest)
                                   messageName:@"GetNotificationListRequest"
                               fileDescription:&KEYAPISBELLV1KeyapisBellNotificationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISBELLV1GetNotificationListRequest__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 KEYAPISBELLV1GetNotificationListRequest_ClearPaginationOneOfCase(KEYAPISBELLV1GetNotificationListRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISBELLV1GetNotificationListRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISBELLV1GetNotificationListResponse

@implementation KEYAPISBELLV1GetNotificationListResponse

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

typedef struct KEYAPISBELLV1GetNotificationListResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISBELLV1Notification *data_p;
  KEYAPISBELLV1GetNotificationListResponse_Error *error;
} KEYAPISBELLV1GetNotificationListResponse__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(KEYAPISBELLV1Notification),
        .number = KEYAPISBELLV1GetNotificationListResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1GetNotificationListResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISBELLV1GetNotificationListResponse_Error),
        .number = KEYAPISBELLV1GetNotificationListResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1GetNotificationListResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISBELLV1GetNotificationListResponse)
                                   messageName:@"GetNotificationListResponse"
                               fileDescription:&KEYAPISBELLV1KeyapisBellNotificationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISBELLV1GetNotificationListResponse__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 KEYAPISBELLV1GetNotificationListResponse_ClearTypeOneOfCase(KEYAPISBELLV1GetNotificationListResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISBELLV1GetNotificationListResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISBELLV1GetNotificationListResponse_Error

@implementation KEYAPISBELLV1GetNotificationListResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation KEYAPISBELLV1GetNotificationCountRequest

@dynamic hasFilter, filter;

typedef struct KEYAPISBELLV1GetNotificationCountRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISBELLV1NotificationFilter *filter;
} KEYAPISBELLV1GetNotificationCountRequest__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(KEYAPISBELLV1NotificationFilter),
        .number = KEYAPISBELLV1GetNotificationCountRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1GetNotificationCountRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISBELLV1GetNotificationCountRequest)
                                   messageName:@"GetNotificationCountRequest"
                               fileDescription:&KEYAPISBELLV1KeyapisBellNotificationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISBELLV1GetNotificationCountRequest__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 - KEYAPISBELLV1GetNotificationCountResponse

@implementation KEYAPISBELLV1GetNotificationCountResponse

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

typedef struct KEYAPISBELLV1GetNotificationCountResponse__storage_ {
  uint32_t _has_storage_[2];
  int32_t data_p;
  KEYAPISBELLV1GetNotificationCountResponse_Error *error;
} KEYAPISBELLV1GetNotificationCountResponse__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 = KEYAPISBELLV1GetNotificationCountResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1GetNotificationCountResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISBELLV1GetNotificationCountResponse_Error),
        .number = KEYAPISBELLV1GetNotificationCountResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1GetNotificationCountResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISBELLV1GetNotificationCountResponse)
                                   messageName:@"GetNotificationCountResponse"
                               fileDescription:&KEYAPISBELLV1KeyapisBellNotificationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISBELLV1GetNotificationCountResponse__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 KEYAPISBELLV1GetNotificationCountResponse_ClearTypeOneOfCase(KEYAPISBELLV1GetNotificationCountResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISBELLV1GetNotificationCountResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISBELLV1GetNotificationCountResponse_Error

@implementation KEYAPISBELLV1GetNotificationCountResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation KEYAPISBELLV1PostNotificationViewRequest

@dynamic id_p;

typedef struct KEYAPISBELLV1PostNotificationViewRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *id_p;
} KEYAPISBELLV1PostNotificationViewRequest__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 = KEYAPISBELLV1PostNotificationViewRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1PostNotificationViewRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISBELLV1PostNotificationViewRequest)
                                   messageName:@"PostNotificationViewRequest"
                               fileDescription:&KEYAPISBELLV1KeyapisBellNotificationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISBELLV1PostNotificationViewRequest__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 - KEYAPISBELLV1PostNotificationViewResponse

@implementation KEYAPISBELLV1PostNotificationViewResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISBELLV1PostNotificationViewResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISBELLV1PostNotificationViewResponse_Error *error;
} KEYAPISBELLV1PostNotificationViewResponse__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(KEYAPISBELLV1PostNotificationViewResponse_Error),
        .number = KEYAPISBELLV1PostNotificationViewResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1PostNotificationViewResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISBELLV1PostNotificationViewResponse)
                                   messageName:@"PostNotificationViewResponse"
                               fileDescription:&KEYAPISBELLV1KeyapisBellNotificationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISBELLV1PostNotificationViewResponse__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 KEYAPISBELLV1PostNotificationViewResponse_ClearTypeOneOfCase(KEYAPISBELLV1PostNotificationViewResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISBELLV1PostNotificationViewResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISBELLV1PostNotificationViewResponse_Error

@implementation KEYAPISBELLV1PostNotificationViewResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation KEYAPISBELLV1NotificationFilter

@dynamic orponsArray, orponsArray_Count;
@dynamic roomNumbersArray, roomNumbersArray_Count;
@dynamic statusTypesArray, statusTypesArray_Count;

typedef struct KEYAPISBELLV1NotificationFilter__storage_ {
  uint32_t _has_storage_[1];
  GPBInt64Array *orponsArray;
  NSMutableArray *roomNumbersArray;
  GPBEnumArray *statusTypesArray;
} KEYAPISBELLV1NotificationFilter__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 = "orponsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISBELLV1NotificationFilter_FieldNumber_OrponsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1NotificationFilter__storage_, orponsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "roomNumbersArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISBELLV1NotificationFilter_FieldNumber_RoomNumbersArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1NotificationFilter__storage_, roomNumbersArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "statusTypesArray",
        .dataTypeSpecific.enumDescFunc = KEYAPISBELLV1Notification_StatusType_EnumDescriptor,
        .number = KEYAPISBELLV1NotificationFilter_FieldNumber_StatusTypesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1NotificationFilter__storage_, statusTypesArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked | GPBFieldHasEnumDescriptor),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISBELLV1NotificationFilter)
                                   messageName:@"NotificationFilter"
                               fileDescription:&KEYAPISBELLV1KeyapisBellNotificationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISBELLV1NotificationFilter__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 - KEYAPISBELLV1NotificationPaging

@implementation KEYAPISBELLV1NotificationPaging

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

typedef struct KEYAPISBELLV1NotificationPaging__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISBELLV1NotificationPaging_OrderByType orderByType;
  KEYAPISBELLV1NotificationPaging_DirectionType directionType;
  int32_t limit;
  int32_t offset;
} KEYAPISBELLV1NotificationPaging__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 = KEYAPISBELLV1NotificationPaging_OrderByType_EnumDescriptor,
        .number = KEYAPISBELLV1NotificationPaging_FieldNumber_OrderByType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1NotificationPaging__storage_, orderByType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "directionType",
        .dataTypeSpecific.enumDescFunc = KEYAPISBELLV1NotificationPaging_DirectionType_EnumDescriptor,
        .number = KEYAPISBELLV1NotificationPaging_FieldNumber_DirectionType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1NotificationPaging__storage_, directionType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "limit",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISBELLV1NotificationPaging_FieldNumber_Limit,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1NotificationPaging__storage_, limit),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "offset",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISBELLV1NotificationPaging_FieldNumber_Offset,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1NotificationPaging__storage_, offset),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISBELLV1NotificationPaging)
                                   messageName:@"NotificationPaging"
                               fileDescription:&KEYAPISBELLV1KeyapisBellNotificationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISBELLV1NotificationPaging__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 KEYAPISBELLV1NotificationPaging_OrderByType_RawValue(KEYAPISBELLV1NotificationPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISBELLV1NotificationPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISBELLV1NotificationPaging_FieldNumber_OrderByType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISBELLV1NotificationPaging_OrderByType_RawValue(KEYAPISBELLV1NotificationPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISBELLV1NotificationPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISBELLV1NotificationPaging_FieldNumber_OrderByType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISBELLV1NotificationPaging_DirectionType_RawValue(KEYAPISBELLV1NotificationPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISBELLV1NotificationPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISBELLV1NotificationPaging_FieldNumber_DirectionType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISBELLV1NotificationPaging_DirectionType_RawValue(KEYAPISBELLV1NotificationPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISBELLV1NotificationPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISBELLV1NotificationPaging_FieldNumber_DirectionType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISBELLV1PostNotificationViewOrponRoomNumberRequest

@implementation KEYAPISBELLV1PostNotificationViewOrponRoomNumberRequest

@dynamic orpon;
@dynamic roomNumber;

typedef struct KEYAPISBELLV1PostNotificationViewOrponRoomNumberRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *roomNumber;
  int64_t orpon;
} KEYAPISBELLV1PostNotificationViewOrponRoomNumberRequest__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 = KEYAPISBELLV1PostNotificationViewOrponRoomNumberRequest_FieldNumber_Orpon,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1PostNotificationViewOrponRoomNumberRequest__storage_, orpon),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "roomNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISBELLV1PostNotificationViewOrponRoomNumberRequest_FieldNumber_RoomNumber,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1PostNotificationViewOrponRoomNumberRequest__storage_, roomNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISBELLV1PostNotificationViewOrponRoomNumberRequest)
                                   messageName:@"PostNotificationViewOrponRoomNumberRequest"
                               fileDescription:&KEYAPISBELLV1KeyapisBellNotificationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISBELLV1PostNotificationViewOrponRoomNumberRequest__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 - KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse

@implementation KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse

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

typedef struct KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse__storage_ {
  uint32_t _has_storage_[2];
  int32_t data_p;
  KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse_Error *error;
} KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse__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 = KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse_Error),
        .number = KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse)
                                   messageName:@"PostNotificationViewOrponRoomNumberResponse"
                               fileDescription:&KEYAPISBELLV1KeyapisBellNotificationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse__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 KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse_ClearTypeOneOfCase(KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse_Error

@implementation KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
