// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/device/v1/keyapis_device_cms_phone_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/device/v1/KeyapisDeviceCmsPhoneV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "google/protobuf/Descriptor.pbobjc.h"
#import "keyapis/device/v1/KeyapisDeviceDeviceV1.pbobjc.h"
#import "google/api/Visibility.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(GPBTimestamp);
GPBObjCClassDeclaration(KEYAPISDEVICEV1CmsPhone);
GPBObjCClassDeclaration(KEYAPISDEVICEV1CmsPhoneFilter);
GPBObjCClassDeclaration(KEYAPISDEVICEV1CmsPhonePaging);
GPBObjCClassDeclaration(KEYAPISDEVICEV1CmsPhone_SavingError);
GPBObjCClassDeclaration(KEYAPISDEVICEV1CmsPhone_SavingError_Conflict);
GPBObjCClassDeclaration(KEYAPISDEVICEV1DeleteCmsPhoneDeviceIdRequest);
GPBObjCClassDeclaration(KEYAPISDEVICEV1DeleteCmsPhoneDeviceIdResponse);
GPBObjCClassDeclaration(KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRequest);
GPBObjCClassDeclaration(KEYAPISDEVICEV1DeleteCmsPhoneOrponIdResponse);
GPBObjCClassDeclaration(KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRoomNumberRequest);
GPBObjCClassDeclaration(KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRoomNumberResponse);
GPBObjCClassDeclaration(KEYAPISDEVICEV1DeleteCmsPhoneOrponRoomNumberDeviceIdRequest);
GPBObjCClassDeclaration(KEYAPISDEVICEV1DeleteCmsPhoneOrponRoomNumberDeviceIdResponse);
GPBObjCClassDeclaration(KEYAPISDEVICEV1DeleteCmsPhoneRequest);
GPBObjCClassDeclaration(KEYAPISDEVICEV1DeleteCmsPhoneResponse);
GPBObjCClassDeclaration(KEYAPISDEVICEV1GetCmsPhoneCountRequest);
GPBObjCClassDeclaration(KEYAPISDEVICEV1GetCmsPhoneCountResponse);
GPBObjCClassDeclaration(KEYAPISDEVICEV1GetCmsPhoneCountResponse_Error);
GPBObjCClassDeclaration(KEYAPISDEVICEV1GetCmsPhoneListRequest);
GPBObjCClassDeclaration(KEYAPISDEVICEV1GetCmsPhoneListResponse);
GPBObjCClassDeclaration(KEYAPISDEVICEV1GetCmsPhoneListResponse_Error);
GPBObjCClassDeclaration(KEYAPISDEVICEV1GetCmsPhoneRequest);
GPBObjCClassDeclaration(KEYAPISDEVICEV1GetCmsPhoneResponse);
GPBObjCClassDeclaration(KEYAPISDEVICEV1GetCmsPhoneResponse_Error);
GPBObjCClassDeclaration(KEYAPISDEVICEV1PostCmsPhoneRefreshRequest);
GPBObjCClassDeclaration(KEYAPISDEVICEV1PostCmsPhoneRefreshResponse);
GPBObjCClassDeclaration(KEYAPISDEVICEV1ValidationError);

#pragma mark - KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root

@implementation KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root

+ (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]];
    [registry addExtensions:[GAPIVisibilityRoot extensionRegistry]];
  }
  return registry;
}

@end

static GPBFileDescription KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription = {
  .package = "keyapis.device.v1",
  .prefix = "KEYAPISDEVICEV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum KEYAPISDEVICEV1CmsPhone_StatusType

GPBEnumDescriptor *KEYAPISDEVICEV1CmsPhone_StatusType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "StatusTypeUnknown\000PendingActive\000Active\000P"
        "endingBlocked\000Blocked\000";
    static const int32_t values[] = {
        KEYAPISDEVICEV1CmsPhone_StatusType_StatusTypeUnknown,
        KEYAPISDEVICEV1CmsPhone_StatusType_PendingActive,
        KEYAPISDEVICEV1CmsPhone_StatusType_Active,
        KEYAPISDEVICEV1CmsPhone_StatusType_PendingBlocked,
        KEYAPISDEVICEV1CmsPhone_StatusType_Blocked,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISDEVICEV1CmsPhone_StatusType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISDEVICEV1CmsPhone_StatusType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISDEVICEV1CmsPhone_StatusType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISDEVICEV1CmsPhone_StatusType_StatusTypeUnknown:
    case KEYAPISDEVICEV1CmsPhone_StatusType_PendingActive:
    case KEYAPISDEVICEV1CmsPhone_StatusType_Active:
    case KEYAPISDEVICEV1CmsPhone_StatusType_PendingBlocked:
    case KEYAPISDEVICEV1CmsPhone_StatusType_Blocked:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISDEVICEV1CmsPhonePaging_OrderByType

GPBEnumDescriptor *KEYAPISDEVICEV1CmsPhonePaging_OrderByType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "OrderByTypeUnknown\000Id\000Status\000ChangedAt\000C"
        "reatedAt\000";
    static const int32_t values[] = {
        KEYAPISDEVICEV1CmsPhonePaging_OrderByType_OrderByTypeUnknown,
        KEYAPISDEVICEV1CmsPhonePaging_OrderByType_Id,
        KEYAPISDEVICEV1CmsPhonePaging_OrderByType_Status,
        KEYAPISDEVICEV1CmsPhonePaging_OrderByType_ChangedAt,
        KEYAPISDEVICEV1CmsPhonePaging_OrderByType_CreatedAt,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISDEVICEV1CmsPhonePaging_OrderByType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISDEVICEV1CmsPhonePaging_OrderByType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISDEVICEV1CmsPhonePaging_OrderByType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISDEVICEV1CmsPhonePaging_OrderByType_OrderByTypeUnknown:
    case KEYAPISDEVICEV1CmsPhonePaging_OrderByType_Id:
    case KEYAPISDEVICEV1CmsPhonePaging_OrderByType_Status:
    case KEYAPISDEVICEV1CmsPhonePaging_OrderByType_ChangedAt:
    case KEYAPISDEVICEV1CmsPhonePaging_OrderByType_CreatedAt:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISDEVICEV1CmsPhonePaging_DirectionType

GPBEnumDescriptor *KEYAPISDEVICEV1CmsPhonePaging_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[] = {
        KEYAPISDEVICEV1CmsPhonePaging_DirectionType_DirectionTypeUnknown,
        KEYAPISDEVICEV1CmsPhonePaging_DirectionType_Desc,
        KEYAPISDEVICEV1CmsPhonePaging_DirectionType_Asc,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISDEVICEV1CmsPhonePaging_DirectionType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISDEVICEV1CmsPhonePaging_DirectionType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISDEVICEV1CmsPhonePaging_DirectionType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISDEVICEV1CmsPhonePaging_DirectionType_DirectionTypeUnknown:
    case KEYAPISDEVICEV1CmsPhonePaging_DirectionType_Desc:
    case KEYAPISDEVICEV1CmsPhonePaging_DirectionType_Asc:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISDEVICEV1CmsPhone

@implementation KEYAPISDEVICEV1CmsPhone

@dynamic id_p;
@dynamic orponId;
@dynamic room;
@dynamic deviceId;
@dynamic statusType;
@dynamic hasCreatedAt, createdAt;
@dynamic hasChangedAt, changedAt;
@dynamic retryCount;

typedef struct KEYAPISDEVICEV1CmsPhone__storage_ {
  uint32_t _has_storage_[1];
  int32_t id_p;
  int32_t deviceId;
  KEYAPISDEVICEV1CmsPhone_StatusType statusType;
  int32_t retryCount;
  NSString *room;
  GPBTimestamp *createdAt;
  GPBTimestamp *changedAt;
  int64_t orponId;
} KEYAPISDEVICEV1CmsPhone__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 = KEYAPISDEVICEV1CmsPhone_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1CmsPhone__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "orponId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1CmsPhone_FieldNumber_OrponId,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1CmsPhone__storage_, orponId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "room",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1CmsPhone_FieldNumber_Room,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1CmsPhone__storage_, room),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "deviceId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1CmsPhone_FieldNumber_DeviceId,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1CmsPhone__storage_, deviceId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "statusType",
        .dataTypeSpecific.enumDescFunc = KEYAPISDEVICEV1CmsPhone_StatusType_EnumDescriptor,
        .number = KEYAPISDEVICEV1CmsPhone_FieldNumber_StatusType,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1CmsPhone__storage_, statusType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "createdAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISDEVICEV1CmsPhone_FieldNumber_CreatedAt,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1CmsPhone__storage_, createdAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "changedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISDEVICEV1CmsPhone_FieldNumber_ChangedAt,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1CmsPhone__storage_, changedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "retryCount",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1CmsPhone_FieldNumber_RetryCount,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1CmsPhone__storage_, retryCount),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1CmsPhone)
                                   messageName:@"CmsPhone"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1CmsPhone__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 KEYAPISDEVICEV1CmsPhone_StatusType_RawValue(KEYAPISDEVICEV1CmsPhone *message) {
  GPBDescriptor *descriptor = [KEYAPISDEVICEV1CmsPhone descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISDEVICEV1CmsPhone_FieldNumber_StatusType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISDEVICEV1CmsPhone_StatusType_RawValue(KEYAPISDEVICEV1CmsPhone *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISDEVICEV1CmsPhone descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISDEVICEV1CmsPhone_FieldNumber_StatusType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISDEVICEV1CmsPhone_SavingError

@implementation KEYAPISDEVICEV1CmsPhone_SavingError

@dynamic reasonOneOfCase;
@dynamic conflict;

typedef struct KEYAPISDEVICEV1CmsPhone_SavingError__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISDEVICEV1CmsPhone_SavingError_Conflict *conflict;
} KEYAPISDEVICEV1CmsPhone_SavingError__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "conflict",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISDEVICEV1CmsPhone_SavingError_Conflict),
        .number = KEYAPISDEVICEV1CmsPhone_SavingError_FieldNumber_Conflict,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1CmsPhone_SavingError__storage_, conflict),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1CmsPhone_SavingError)
                                   messageName:@"SavingError"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1CmsPhone_SavingError__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "reason",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISDEVICEV1CmsPhone)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISDEVICEV1CmsPhone_SavingError_Conflict


typedef struct KEYAPISDEVICEV1CmsPhone_SavingError_Conflict__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISDEVICEV1CmsPhone_SavingError_Conflict__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1CmsPhone_SavingError_Conflict)
                                   messageName:@"Conflict"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISDEVICEV1CmsPhone_SavingError_Conflict__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISDEVICEV1CmsPhone_SavingError)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISDEVICEV1CmsPhoneFilter

@implementation KEYAPISDEVICEV1CmsPhoneFilter

@dynamic deviceIdsArray, deviceIdsArray_Count;
@dynamic statusTypesArray, statusTypesArray_Count;
@dynamic orponIdsArray, orponIdsArray_Count;
@dynamic roomsArray, roomsArray_Count;

typedef struct KEYAPISDEVICEV1CmsPhoneFilter__storage_ {
  uint32_t _has_storage_[1];
  GPBInt32Array *deviceIdsArray;
  GPBEnumArray *statusTypesArray;
  GPBInt64Array *orponIdsArray;
  NSMutableArray *roomsArray;
} KEYAPISDEVICEV1CmsPhoneFilter__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 = "deviceIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1CmsPhoneFilter_FieldNumber_DeviceIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1CmsPhoneFilter__storage_, deviceIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "statusTypesArray",
        .dataTypeSpecific.enumDescFunc = KEYAPISDEVICEV1CmsPhone_StatusType_EnumDescriptor,
        .number = KEYAPISDEVICEV1CmsPhoneFilter_FieldNumber_StatusTypesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1CmsPhoneFilter__storage_, statusTypesArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked | GPBFieldHasEnumDescriptor),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "orponIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1CmsPhoneFilter_FieldNumber_OrponIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1CmsPhoneFilter__storage_, orponIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "roomsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1CmsPhoneFilter_FieldNumber_RoomsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1CmsPhoneFilter__storage_, roomsArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1CmsPhoneFilter)
                                   messageName:@"CmsPhoneFilter"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1CmsPhoneFilter__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 - KEYAPISDEVICEV1CmsPhonePaging

@implementation KEYAPISDEVICEV1CmsPhonePaging

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

typedef struct KEYAPISDEVICEV1CmsPhonePaging__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISDEVICEV1CmsPhonePaging_OrderByType orderByType;
  KEYAPISDEVICEV1CmsPhonePaging_DirectionType directionType;
  int32_t limit;
  int32_t offset;
} KEYAPISDEVICEV1CmsPhonePaging__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 = KEYAPISDEVICEV1CmsPhonePaging_OrderByType_EnumDescriptor,
        .number = KEYAPISDEVICEV1CmsPhonePaging_FieldNumber_OrderByType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1CmsPhonePaging__storage_, orderByType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "directionType",
        .dataTypeSpecific.enumDescFunc = KEYAPISDEVICEV1CmsPhonePaging_DirectionType_EnumDescriptor,
        .number = KEYAPISDEVICEV1CmsPhonePaging_FieldNumber_DirectionType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1CmsPhonePaging__storage_, directionType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "limit",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1CmsPhonePaging_FieldNumber_Limit,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1CmsPhonePaging__storage_, limit),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "offset",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1CmsPhonePaging_FieldNumber_Offset,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1CmsPhonePaging__storage_, offset),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1CmsPhonePaging)
                                   messageName:@"CmsPhonePaging"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1CmsPhonePaging__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 KEYAPISDEVICEV1CmsPhonePaging_OrderByType_RawValue(KEYAPISDEVICEV1CmsPhonePaging *message) {
  GPBDescriptor *descriptor = [KEYAPISDEVICEV1CmsPhonePaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISDEVICEV1CmsPhonePaging_FieldNumber_OrderByType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISDEVICEV1CmsPhonePaging_OrderByType_RawValue(KEYAPISDEVICEV1CmsPhonePaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISDEVICEV1CmsPhonePaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISDEVICEV1CmsPhonePaging_FieldNumber_OrderByType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISDEVICEV1CmsPhonePaging_DirectionType_RawValue(KEYAPISDEVICEV1CmsPhonePaging *message) {
  GPBDescriptor *descriptor = [KEYAPISDEVICEV1CmsPhonePaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISDEVICEV1CmsPhonePaging_FieldNumber_DirectionType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISDEVICEV1CmsPhonePaging_DirectionType_RawValue(KEYAPISDEVICEV1CmsPhonePaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISDEVICEV1CmsPhonePaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISDEVICEV1CmsPhonePaging_FieldNumber_DirectionType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISDEVICEV1GetCmsPhoneListRequest

@implementation KEYAPISDEVICEV1GetCmsPhoneListRequest

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

typedef struct KEYAPISDEVICEV1GetCmsPhoneListRequest__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISDEVICEV1CmsPhoneFilter *filter;
  KEYAPISDEVICEV1CmsPhonePaging *paging;
} KEYAPISDEVICEV1GetCmsPhoneListRequest__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(KEYAPISDEVICEV1CmsPhoneFilter),
        .number = KEYAPISDEVICEV1GetCmsPhoneListRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1GetCmsPhoneListRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "paging",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISDEVICEV1CmsPhonePaging),
        .number = KEYAPISDEVICEV1GetCmsPhoneListRequest_FieldNumber_Paging,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1GetCmsPhoneListRequest__storage_, paging),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1GetCmsPhoneListRequest)
                                   messageName:@"GetCmsPhoneListRequest"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1GetCmsPhoneListRequest__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 KEYAPISDEVICEV1GetCmsPhoneListRequest_ClearPaginationOneOfCase(KEYAPISDEVICEV1GetCmsPhoneListRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISDEVICEV1GetCmsPhoneListRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISDEVICEV1GetCmsPhoneListResponse

@implementation KEYAPISDEVICEV1GetCmsPhoneListResponse

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

typedef struct KEYAPISDEVICEV1GetCmsPhoneListResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISDEVICEV1CmsPhone *data_p;
  KEYAPISDEVICEV1GetCmsPhoneListResponse_Error *error;
} KEYAPISDEVICEV1GetCmsPhoneListResponse__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(KEYAPISDEVICEV1CmsPhone),
        .number = KEYAPISDEVICEV1GetCmsPhoneListResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1GetCmsPhoneListResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISDEVICEV1GetCmsPhoneListResponse_Error),
        .number = KEYAPISDEVICEV1GetCmsPhoneListResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1GetCmsPhoneListResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1GetCmsPhoneListResponse)
                                   messageName:@"GetCmsPhoneListResponse"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1GetCmsPhoneListResponse__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 KEYAPISDEVICEV1GetCmsPhoneListResponse_ClearTypeOneOfCase(KEYAPISDEVICEV1GetCmsPhoneListResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISDEVICEV1GetCmsPhoneListResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISDEVICEV1GetCmsPhoneListResponse_Error

@implementation KEYAPISDEVICEV1GetCmsPhoneListResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation KEYAPISDEVICEV1GetCmsPhoneRequest

@dynamic id_p;

typedef struct KEYAPISDEVICEV1GetCmsPhoneRequest__storage_ {
  uint32_t _has_storage_[1];
  int32_t id_p;
} KEYAPISDEVICEV1GetCmsPhoneRequest__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 = KEYAPISDEVICEV1GetCmsPhoneRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1GetCmsPhoneRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1GetCmsPhoneRequest)
                                   messageName:@"GetCmsPhoneRequest"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1GetCmsPhoneRequest__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 - KEYAPISDEVICEV1GetCmsPhoneResponse

@implementation KEYAPISDEVICEV1GetCmsPhoneResponse

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

typedef struct KEYAPISDEVICEV1GetCmsPhoneResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISDEVICEV1CmsPhone *data_p;
  KEYAPISDEVICEV1GetCmsPhoneResponse_Error *error;
} KEYAPISDEVICEV1GetCmsPhoneResponse__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(KEYAPISDEVICEV1CmsPhone),
        .number = KEYAPISDEVICEV1GetCmsPhoneResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1GetCmsPhoneResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISDEVICEV1GetCmsPhoneResponse_Error),
        .number = KEYAPISDEVICEV1GetCmsPhoneResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1GetCmsPhoneResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1GetCmsPhoneResponse)
                                   messageName:@"GetCmsPhoneResponse"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1GetCmsPhoneResponse__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 KEYAPISDEVICEV1GetCmsPhoneResponse_ClearTypeOneOfCase(KEYAPISDEVICEV1GetCmsPhoneResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISDEVICEV1GetCmsPhoneResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISDEVICEV1GetCmsPhoneResponse_Error

@implementation KEYAPISDEVICEV1GetCmsPhoneResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation KEYAPISDEVICEV1GetCmsPhoneCountRequest

@dynamic hasFilter, filter;

typedef struct KEYAPISDEVICEV1GetCmsPhoneCountRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISDEVICEV1CmsPhoneFilter *filter;
} KEYAPISDEVICEV1GetCmsPhoneCountRequest__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(KEYAPISDEVICEV1CmsPhoneFilter),
        .number = KEYAPISDEVICEV1GetCmsPhoneCountRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1GetCmsPhoneCountRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1GetCmsPhoneCountRequest)
                                   messageName:@"GetCmsPhoneCountRequest"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1GetCmsPhoneCountRequest__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 - KEYAPISDEVICEV1GetCmsPhoneCountResponse

@implementation KEYAPISDEVICEV1GetCmsPhoneCountResponse

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

typedef struct KEYAPISDEVICEV1GetCmsPhoneCountResponse__storage_ {
  uint32_t _has_storage_[2];
  int32_t data_p;
  KEYAPISDEVICEV1GetCmsPhoneCountResponse_Error *error;
} KEYAPISDEVICEV1GetCmsPhoneCountResponse__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 = KEYAPISDEVICEV1GetCmsPhoneCountResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1GetCmsPhoneCountResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISDEVICEV1GetCmsPhoneCountResponse_Error),
        .number = KEYAPISDEVICEV1GetCmsPhoneCountResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1GetCmsPhoneCountResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1GetCmsPhoneCountResponse)
                                   messageName:@"GetCmsPhoneCountResponse"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1GetCmsPhoneCountResponse__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 KEYAPISDEVICEV1GetCmsPhoneCountResponse_ClearTypeOneOfCase(KEYAPISDEVICEV1GetCmsPhoneCountResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISDEVICEV1GetCmsPhoneCountResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISDEVICEV1GetCmsPhoneCountResponse_Error

@implementation KEYAPISDEVICEV1GetCmsPhoneCountResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation KEYAPISDEVICEV1DeleteCmsPhoneRequest

@dynamic id_p;

typedef struct KEYAPISDEVICEV1DeleteCmsPhoneRequest__storage_ {
  uint32_t _has_storage_[1];
  int32_t id_p;
} KEYAPISDEVICEV1DeleteCmsPhoneRequest__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 = KEYAPISDEVICEV1DeleteCmsPhoneRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1DeleteCmsPhoneRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1DeleteCmsPhoneRequest)
                                   messageName:@"DeleteCmsPhoneRequest"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1DeleteCmsPhoneRequest__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 - KEYAPISDEVICEV1DeleteCmsPhoneResponse

@implementation KEYAPISDEVICEV1DeleteCmsPhoneResponse


typedef struct KEYAPISDEVICEV1DeleteCmsPhoneResponse__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISDEVICEV1DeleteCmsPhoneResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1DeleteCmsPhoneResponse)
                                   messageName:@"DeleteCmsPhoneResponse"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISDEVICEV1DeleteCmsPhoneResponse__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 - KEYAPISDEVICEV1DeleteCmsPhoneDeviceIdRequest

@implementation KEYAPISDEVICEV1DeleteCmsPhoneDeviceIdRequest

@dynamic deviceId;

typedef struct KEYAPISDEVICEV1DeleteCmsPhoneDeviceIdRequest__storage_ {
  uint32_t _has_storage_[1];
  int32_t deviceId;
} KEYAPISDEVICEV1DeleteCmsPhoneDeviceIdRequest__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 = "deviceId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1DeleteCmsPhoneDeviceIdRequest_FieldNumber_DeviceId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1DeleteCmsPhoneDeviceIdRequest__storage_, deviceId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1DeleteCmsPhoneDeviceIdRequest)
                                   messageName:@"DeleteCmsPhoneDeviceIdRequest"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1DeleteCmsPhoneDeviceIdRequest__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 - KEYAPISDEVICEV1DeleteCmsPhoneDeviceIdResponse

@implementation KEYAPISDEVICEV1DeleteCmsPhoneDeviceIdResponse


typedef struct KEYAPISDEVICEV1DeleteCmsPhoneDeviceIdResponse__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISDEVICEV1DeleteCmsPhoneDeviceIdResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1DeleteCmsPhoneDeviceIdResponse)
                                   messageName:@"DeleteCmsPhoneDeviceIdResponse"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISDEVICEV1DeleteCmsPhoneDeviceIdResponse__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 - KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRequest

@implementation KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRequest

@dynamic orponId;

typedef struct KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRequest__storage_ {
  uint32_t _has_storage_[1];
  int64_t orponId;
} KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRequest__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 = "orponId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRequest_FieldNumber_OrponId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRequest__storage_, orponId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRequest)
                                   messageName:@"DeleteCmsPhoneOrponIdRequest"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRequest__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 - KEYAPISDEVICEV1DeleteCmsPhoneOrponIdResponse

@implementation KEYAPISDEVICEV1DeleteCmsPhoneOrponIdResponse


typedef struct KEYAPISDEVICEV1DeleteCmsPhoneOrponIdResponse__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISDEVICEV1DeleteCmsPhoneOrponIdResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1DeleteCmsPhoneOrponIdResponse)
                                   messageName:@"DeleteCmsPhoneOrponIdResponse"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISDEVICEV1DeleteCmsPhoneOrponIdResponse__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 - KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRoomNumberRequest

@implementation KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRoomNumberRequest

@dynamic orponId;
@dynamic roomNumber;

typedef struct KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRoomNumberRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *roomNumber;
  int64_t orponId;
} KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRoomNumberRequest__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 = "orponId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRoomNumberRequest_FieldNumber_OrponId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRoomNumberRequest__storage_, orponId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "roomNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRoomNumberRequest_FieldNumber_RoomNumber,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRoomNumberRequest__storage_, roomNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRoomNumberRequest)
                                   messageName:@"DeleteCmsPhoneOrponIdRoomNumberRequest"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRoomNumberRequest__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 - KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRoomNumberResponse

@implementation KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRoomNumberResponse


typedef struct KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRoomNumberResponse__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRoomNumberResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRoomNumberResponse)
                                   messageName:@"DeleteCmsPhoneOrponIdRoomNumberResponse"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISDEVICEV1DeleteCmsPhoneOrponIdRoomNumberResponse__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 - KEYAPISDEVICEV1PostCmsPhoneRefreshRequest

@implementation KEYAPISDEVICEV1PostCmsPhoneRefreshRequest

@dynamic idsArray, idsArray_Count;

typedef struct KEYAPISDEVICEV1PostCmsPhoneRefreshRequest__storage_ {
  uint32_t _has_storage_[1];
  GPBInt32Array *idsArray;
} KEYAPISDEVICEV1PostCmsPhoneRefreshRequest__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 = "idsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1PostCmsPhoneRefreshRequest_FieldNumber_IdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PostCmsPhoneRefreshRequest__storage_, idsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1PostCmsPhoneRefreshRequest)
                                   messageName:@"PostCmsPhoneRefreshRequest"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1PostCmsPhoneRefreshRequest__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 - KEYAPISDEVICEV1PostCmsPhoneRefreshResponse

@implementation KEYAPISDEVICEV1PostCmsPhoneRefreshResponse


typedef struct KEYAPISDEVICEV1PostCmsPhoneRefreshResponse__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISDEVICEV1PostCmsPhoneRefreshResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1PostCmsPhoneRefreshResponse)
                                   messageName:@"PostCmsPhoneRefreshResponse"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISDEVICEV1PostCmsPhoneRefreshResponse__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 - KEYAPISDEVICEV1DeleteCmsPhoneOrponRoomNumberDeviceIdRequest

@implementation KEYAPISDEVICEV1DeleteCmsPhoneOrponRoomNumberDeviceIdRequest

@dynamic orpon;
@dynamic roomNumber;
@dynamic deviceId;

typedef struct KEYAPISDEVICEV1DeleteCmsPhoneOrponRoomNumberDeviceIdRequest__storage_ {
  uint32_t _has_storage_[1];
  int32_t deviceId;
  NSString *roomNumber;
  int64_t orpon;
} KEYAPISDEVICEV1DeleteCmsPhoneOrponRoomNumberDeviceIdRequest__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 = KEYAPISDEVICEV1DeleteCmsPhoneOrponRoomNumberDeviceIdRequest_FieldNumber_Orpon,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1DeleteCmsPhoneOrponRoomNumberDeviceIdRequest__storage_, orpon),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "roomNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1DeleteCmsPhoneOrponRoomNumberDeviceIdRequest_FieldNumber_RoomNumber,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1DeleteCmsPhoneOrponRoomNumberDeviceIdRequest__storage_, roomNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "deviceId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1DeleteCmsPhoneOrponRoomNumberDeviceIdRequest_FieldNumber_DeviceId,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1DeleteCmsPhoneOrponRoomNumberDeviceIdRequest__storage_, deviceId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1DeleteCmsPhoneOrponRoomNumberDeviceIdRequest)
                                   messageName:@"DeleteCmsPhoneOrponRoomNumberDeviceIdRequest"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1DeleteCmsPhoneOrponRoomNumberDeviceIdRequest__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 - KEYAPISDEVICEV1DeleteCmsPhoneOrponRoomNumberDeviceIdResponse

@implementation KEYAPISDEVICEV1DeleteCmsPhoneOrponRoomNumberDeviceIdResponse


typedef struct KEYAPISDEVICEV1DeleteCmsPhoneOrponRoomNumberDeviceIdResponse__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISDEVICEV1DeleteCmsPhoneOrponRoomNumberDeviceIdResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1DeleteCmsPhoneOrponRoomNumberDeviceIdResponse)
                                   messageName:@"DeleteCmsPhoneOrponRoomNumberDeviceIdResponse"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceCmsPhoneV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISDEVICEV1DeleteCmsPhoneOrponRoomNumberDeviceIdResponse__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end


#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
