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

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

#pragma mark - Objective-C Class declarations
// Forward declarations of Objective-C classes that we can use as
// static values in struct initializers.
// We don't use [Foo class] because it is not a static value.
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRoomUserCountRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRoomUserCountResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRoomUserListRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRoomUserListResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetRoomUserListResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1RoomUser);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1RoomUserFilter);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1RoomUserPaging);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1ValidationError);

#pragma mark - KEYAPISACCESSCONTROLV1KeyapisAccessControlRoomUserV1Root

@implementation KEYAPISACCESSCONTROLV1KeyapisAccessControlRoomUserV1Root

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

#pragma mark - Enum KEYAPISACCESSCONTROLV1RoomUserPaging_OrderByType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1RoomUserPaging_OrderByType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "OrderByTypeUnknown\000UserId\000OrponThenNumbe"
        "r\000";
    static const int32_t values[] = {
        KEYAPISACCESSCONTROLV1RoomUserPaging_OrderByType_OrderByTypeUnknown,
        KEYAPISACCESSCONTROLV1RoomUserPaging_OrderByType_UserId,
        KEYAPISACCESSCONTROLV1RoomUserPaging_OrderByType_OrponThenNumber,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1RoomUserPaging_OrderByType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1RoomUserPaging_OrderByType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1RoomUserPaging_OrderByType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1RoomUserPaging_OrderByType_OrderByTypeUnknown:
    case KEYAPISACCESSCONTROLV1RoomUserPaging_OrderByType_UserId:
    case KEYAPISACCESSCONTROLV1RoomUserPaging_OrderByType_OrponThenNumber:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISACCESSCONTROLV1RoomUserPaging_DirectionType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1RoomUserPaging_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[] = {
        KEYAPISACCESSCONTROLV1RoomUserPaging_DirectionType_DirectionTypeUnknown,
        KEYAPISACCESSCONTROLV1RoomUserPaging_DirectionType_Desc,
        KEYAPISACCESSCONTROLV1RoomUserPaging_DirectionType_Asc,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1RoomUserPaging_DirectionType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1RoomUserPaging_DirectionType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1RoomUserPaging_DirectionType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1RoomUserPaging_DirectionType_DirectionTypeUnknown:
    case KEYAPISACCESSCONTROLV1RoomUserPaging_DirectionType_Desc:
    case KEYAPISACCESSCONTROLV1RoomUserPaging_DirectionType_Asc:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISACCESSCONTROLV1RoomUser

@implementation KEYAPISACCESSCONTROLV1RoomUser

@dynamic orpon;
@dynamic roomNumber;
@dynamic userId;

typedef struct KEYAPISACCESSCONTROLV1RoomUser__storage_ {
  uint32_t _has_storage_[1];
  int32_t userId;
  NSString *roomNumber;
  int64_t orpon;
} KEYAPISACCESSCONTROLV1RoomUser__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 = KEYAPISACCESSCONTROLV1RoomUser_FieldNumber_Orpon,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomUser__storage_, orpon),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "roomNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RoomUser_FieldNumber_RoomNumber,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomUser__storage_, roomNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "userId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RoomUser_FieldNumber_UserId,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomUser__storage_, userId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1RoomUser)
                                   messageName:@"RoomUser"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRoomUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1RoomUser__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 - KEYAPISACCESSCONTROLV1GetRoomUserListRequest

@implementation KEYAPISACCESSCONTROLV1GetRoomUserListRequest

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

typedef struct KEYAPISACCESSCONTROLV1GetRoomUserListRequest__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1RoomUserFilter *filter;
  KEYAPISACCESSCONTROLV1RoomUserPaging *paging;
} KEYAPISACCESSCONTROLV1GetRoomUserListRequest__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(KEYAPISACCESSCONTROLV1RoomUserFilter),
        .number = KEYAPISACCESSCONTROLV1GetRoomUserListRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRoomUserListRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "paging",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1RoomUserPaging),
        .number = KEYAPISACCESSCONTROLV1GetRoomUserListRequest_FieldNumber_Paging,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRoomUserListRequest__storage_, paging),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRoomUserListRequest)
                                   messageName:@"GetRoomUserListRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRoomUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRoomUserListRequest__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 KEYAPISACCESSCONTROLV1GetRoomUserListRequest_ClearPaginationOneOfCase(KEYAPISACCESSCONTROLV1GetRoomUserListRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetRoomUserListRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetRoomUserListResponse

@implementation KEYAPISACCESSCONTROLV1GetRoomUserListResponse

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

typedef struct KEYAPISACCESSCONTROLV1GetRoomUserListResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1RoomUser *data_p;
  KEYAPISACCESSCONTROLV1GetRoomUserListResponse_Error *error;
} KEYAPISACCESSCONTROLV1GetRoomUserListResponse__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(KEYAPISACCESSCONTROLV1RoomUser),
        .number = KEYAPISACCESSCONTROLV1GetRoomUserListResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRoomUserListResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1GetRoomUserListResponse_Error),
        .number = KEYAPISACCESSCONTROLV1GetRoomUserListResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRoomUserListResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRoomUserListResponse)
                                   messageName:@"GetRoomUserListResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRoomUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRoomUserListResponse__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 KEYAPISACCESSCONTROLV1GetRoomUserListResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1GetRoomUserListResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetRoomUserListResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetRoomUserListResponse_Error

@implementation KEYAPISACCESSCONTROLV1GetRoomUserListResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation KEYAPISACCESSCONTROLV1GetRoomUserCountRequest

@dynamic hasFilter, filter;

typedef struct KEYAPISACCESSCONTROLV1GetRoomUserCountRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1RoomUserFilter *filter;
} KEYAPISACCESSCONTROLV1GetRoomUserCountRequest__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(KEYAPISACCESSCONTROLV1RoomUserFilter),
        .number = KEYAPISACCESSCONTROLV1GetRoomUserCountRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRoomUserCountRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRoomUserCountRequest)
                                   messageName:@"GetRoomUserCountRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRoomUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRoomUserCountRequest__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 - KEYAPISACCESSCONTROLV1GetRoomUserCountResponse

@implementation KEYAPISACCESSCONTROLV1GetRoomUserCountResponse

@dynamic typeOneOfCase;
@dynamic data_p;

typedef struct KEYAPISACCESSCONTROLV1GetRoomUserCountResponse__storage_ {
  uint32_t _has_storage_[2];
  int32_t data_p;
} KEYAPISACCESSCONTROLV1GetRoomUserCountResponse__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 = KEYAPISACCESSCONTROLV1GetRoomUserCountResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetRoomUserCountResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetRoomUserCountResponse)
                                   messageName:@"GetRoomUserCountResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRoomUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetRoomUserCountResponse__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 KEYAPISACCESSCONTROLV1GetRoomUserCountResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1GetRoomUserCountResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetRoomUserCountResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1RoomUserFilter

@implementation KEYAPISACCESSCONTROLV1RoomUserFilter

@dynamic orponsArray, orponsArray_Count;
@dynamic roomNumbersArray, roomNumbersArray_Count;
@dynamic userIdsArray, userIdsArray_Count;

typedef struct KEYAPISACCESSCONTROLV1RoomUserFilter__storage_ {
  uint32_t _has_storage_[1];
  GPBInt64Array *orponsArray;
  NSMutableArray *roomNumbersArray;
  GPBInt32Array *userIdsArray;
} KEYAPISACCESSCONTROLV1RoomUserFilter__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 = KEYAPISACCESSCONTROLV1RoomUserFilter_FieldNumber_OrponsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomUserFilter__storage_, orponsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "roomNumbersArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RoomUserFilter_FieldNumber_RoomNumbersArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomUserFilter__storage_, roomNumbersArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "userIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RoomUserFilter_FieldNumber_UserIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomUserFilter__storage_, userIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1RoomUserFilter)
                                   messageName:@"RoomUserFilter"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRoomUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1RoomUserFilter__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 - KEYAPISACCESSCONTROLV1RoomUserPaging

@implementation KEYAPISACCESSCONTROLV1RoomUserPaging

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

typedef struct KEYAPISACCESSCONTROLV1RoomUserPaging__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1RoomUserPaging_OrderByType orderByType;
  KEYAPISACCESSCONTROLV1RoomUserPaging_DirectionType directionType;
  int32_t limit;
  int32_t offset;
} KEYAPISACCESSCONTROLV1RoomUserPaging__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 = KEYAPISACCESSCONTROLV1RoomUserPaging_OrderByType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1RoomUserPaging_FieldNumber_OrderByType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomUserPaging__storage_, orderByType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "directionType",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1RoomUserPaging_DirectionType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1RoomUserPaging_FieldNumber_DirectionType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomUserPaging__storage_, directionType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "limit",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RoomUserPaging_FieldNumber_Limit,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomUserPaging__storage_, limit),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "offset",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1RoomUserPaging_FieldNumber_Offset,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1RoomUserPaging__storage_, offset),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1RoomUserPaging)
                                   messageName:@"RoomUserPaging"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlRoomUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1RoomUserPaging__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 KEYAPISACCESSCONTROLV1RoomUserPaging_OrderByType_RawValue(KEYAPISACCESSCONTROLV1RoomUserPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1RoomUserPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1RoomUserPaging_FieldNumber_OrderByType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1RoomUserPaging_OrderByType_RawValue(KEYAPISACCESSCONTROLV1RoomUserPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1RoomUserPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1RoomUserPaging_FieldNumber_OrderByType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISACCESSCONTROLV1RoomUserPaging_DirectionType_RawValue(KEYAPISACCESSCONTROLV1RoomUserPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1RoomUserPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1RoomUserPaging_FieldNumber_DirectionType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1RoomUserPaging_DirectionType_RawValue(KEYAPISACCESSCONTROLV1RoomUserPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1RoomUserPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1RoomUserPaging_FieldNumber_DirectionType];
  GPBSetMessageRawEnumField(message, field, value);
}


#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
