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

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

#pragma mark - Objective-C Class declarations
// Forward declarations of Objective-C classes that we can use as
// static values in struct initializers.
// We don't use [Foo class] because it is not a static value.
GPBObjCClassDeclaration(KEYAPISIOTCONNECTV1Device);
GPBObjCClassDeclaration(KEYAPISIOTCONNECTV1DeviceCommand);
GPBObjCClassDeclaration(KEYAPISIOTCONNECTV1DeviceCommandArray);
GPBObjCClassDeclaration(KEYAPISIOTCONNECTV1DeviceCommand_Value);
GPBObjCClassDeclaration(KEYAPISIOTCONNECTV1DeviceState);
GPBObjCClassDeclaration(KEYAPISIOTCONNECTV1DeviceStateArray);
GPBObjCClassDeclaration(KEYAPISIOTCONNECTV1DeviceState_Value);
GPBObjCClassDeclaration(KEYAPISIOTCONNECTV1GetCallbackDevicesRequest);
GPBObjCClassDeclaration(KEYAPISIOTCONNECTV1GetCallbackDevicesResponse);
GPBObjCClassDeclaration(KEYAPISIOTCONNECTV1GetCallbackUserRequest);
GPBObjCClassDeclaration(KEYAPISIOTCONNECTV1GetCallbackUserResponse);
GPBObjCClassDeclaration(KEYAPISIOTCONNECTV1Model);
GPBObjCClassDeclaration(KEYAPISIOTCONNECTV1PostCallbackCommandRequest);
GPBObjCClassDeclaration(KEYAPISIOTCONNECTV1PostCallbackCommandResponse);
GPBObjCClassDeclaration(KEYAPISIOTCONNECTV1PostCallbackQueryRequest);
GPBObjCClassDeclaration(KEYAPISIOTCONNECTV1PostCallbackQueryResponse);
GPBObjCClassDeclaration(KEYAPISIOTCONNECTV1PostCallbackUnlinkRequest);
GPBObjCClassDeclaration(KEYAPISIOTCONNECTV1PostCallbackUnlinkResponse);

#pragma mark - KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root

@implementation KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root

+ (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 KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root_FileDescription = {
  .package = "keyapis.iot_connect.v1",
  .prefix = "KEYAPISIOTCONNECTV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum KEYAPISIOTCONNECTV1Model_FeatureType

GPBEnumDescriptor *KEYAPISIOTCONNECTV1Model_FeatureType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "FeatureTypeUnknown\000IncomingCall\000Online\000R"
        "ejectCall\000Unlock\000";
    static const int32_t values[] = {
        KEYAPISIOTCONNECTV1Model_FeatureType_FeatureTypeUnknown,
        KEYAPISIOTCONNECTV1Model_FeatureType_IncomingCall,
        KEYAPISIOTCONNECTV1Model_FeatureType_Online,
        KEYAPISIOTCONNECTV1Model_FeatureType_RejectCall,
        KEYAPISIOTCONNECTV1Model_FeatureType_Unlock,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISIOTCONNECTV1Model_FeatureType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISIOTCONNECTV1Model_FeatureType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISIOTCONNECTV1Model_FeatureType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISIOTCONNECTV1Model_FeatureType_FeatureTypeUnknown:
    case KEYAPISIOTCONNECTV1Model_FeatureType_IncomingCall:
    case KEYAPISIOTCONNECTV1Model_FeatureType_Online:
    case KEYAPISIOTCONNECTV1Model_FeatureType_RejectCall:
    case KEYAPISIOTCONNECTV1Model_FeatureType_Unlock:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISIOTCONNECTV1DeviceCommand_KeyType

GPBEnumDescriptor *KEYAPISIOTCONNECTV1DeviceCommand_KeyType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "KeyTypeUnknown\000RejectCall\000Unlock\000";
    static const int32_t values[] = {
        KEYAPISIOTCONNECTV1DeviceCommand_KeyType_KeyTypeUnknown,
        KEYAPISIOTCONNECTV1DeviceCommand_KeyType_RejectCall,
        KEYAPISIOTCONNECTV1DeviceCommand_KeyType_Unlock,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISIOTCONNECTV1DeviceCommand_KeyType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISIOTCONNECTV1DeviceCommand_KeyType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISIOTCONNECTV1DeviceCommand_KeyType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISIOTCONNECTV1DeviceCommand_KeyType_KeyTypeUnknown:
    case KEYAPISIOTCONNECTV1DeviceCommand_KeyType_RejectCall:
    case KEYAPISIOTCONNECTV1DeviceCommand_KeyType_Unlock:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISIOTCONNECTV1DeviceCommand_Value_Type

GPBEnumDescriptor *KEYAPISIOTCONNECTV1DeviceCommand_Value_Type_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "TypeUnknown\000Enum\000";
    static const int32_t values[] = {
        KEYAPISIOTCONNECTV1DeviceCommand_Value_Type_TypeUnknown,
        KEYAPISIOTCONNECTV1DeviceCommand_Value_Type_Enum,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISIOTCONNECTV1DeviceCommand_Value_Type)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISIOTCONNECTV1DeviceCommand_Value_Type_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISIOTCONNECTV1DeviceCommand_Value_Type_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISIOTCONNECTV1DeviceCommand_Value_Type_TypeUnknown:
    case KEYAPISIOTCONNECTV1DeviceCommand_Value_Type_Enum:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISIOTCONNECTV1DeviceCommand_Value_ValueEnumType

GPBEnumDescriptor *KEYAPISIOTCONNECTV1DeviceCommand_Value_ValueEnumType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "ValueEnumTypeUnknown\000Reject\000Unlock\000";
    static const int32_t values[] = {
        KEYAPISIOTCONNECTV1DeviceCommand_Value_ValueEnumType_ValueEnumTypeUnknown,
        KEYAPISIOTCONNECTV1DeviceCommand_Value_ValueEnumType_Reject,
        KEYAPISIOTCONNECTV1DeviceCommand_Value_ValueEnumType_Unlock,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISIOTCONNECTV1DeviceCommand_Value_ValueEnumType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISIOTCONNECTV1DeviceCommand_Value_ValueEnumType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISIOTCONNECTV1DeviceCommand_Value_ValueEnumType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISIOTCONNECTV1DeviceCommand_Value_ValueEnumType_ValueEnumTypeUnknown:
    case KEYAPISIOTCONNECTV1DeviceCommand_Value_ValueEnumType_Reject:
    case KEYAPISIOTCONNECTV1DeviceCommand_Value_ValueEnumType_Unlock:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISIOTCONNECTV1DeviceState_KeyType

GPBEnumDescriptor *KEYAPISIOTCONNECTV1DeviceState_KeyType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "KeyTypeUnknown\000Online\000";
    static const int32_t values[] = {
        KEYAPISIOTCONNECTV1DeviceState_KeyType_KeyTypeUnknown,
        KEYAPISIOTCONNECTV1DeviceState_KeyType_Online,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISIOTCONNECTV1DeviceState_KeyType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISIOTCONNECTV1DeviceState_KeyType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISIOTCONNECTV1DeviceState_KeyType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISIOTCONNECTV1DeviceState_KeyType_KeyTypeUnknown:
    case KEYAPISIOTCONNECTV1DeviceState_KeyType_Online:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISIOTCONNECTV1DeviceState_Value_Type

GPBEnumDescriptor *KEYAPISIOTCONNECTV1DeviceState_Value_Type_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "TypeUnknown\000Bool\000";
    static const int32_t values[] = {
        KEYAPISIOTCONNECTV1DeviceState_Value_Type_TypeUnknown,
        KEYAPISIOTCONNECTV1DeviceState_Value_Type_Bool,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISIOTCONNECTV1DeviceState_Value_Type)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISIOTCONNECTV1DeviceState_Value_Type_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISIOTCONNECTV1DeviceState_Value_Type_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISIOTCONNECTV1DeviceState_Value_Type_TypeUnknown:
    case KEYAPISIOTCONNECTV1DeviceState_Value_Type_Bool:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISIOTCONNECTV1GetCallbackUserRequest

@implementation KEYAPISIOTCONNECTV1GetCallbackUserRequest


typedef struct KEYAPISIOTCONNECTV1GetCallbackUserRequest__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISIOTCONNECTV1GetCallbackUserRequest__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(KEYAPISIOTCONNECTV1GetCallbackUserRequest)
                                   messageName:@"GetCallbackUserRequest"
                               fileDescription:&KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISIOTCONNECTV1GetCallbackUserRequest__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 - KEYAPISIOTCONNECTV1GetCallbackUserResponse

@implementation KEYAPISIOTCONNECTV1GetCallbackUserResponse

@dynamic data_p;

typedef struct KEYAPISIOTCONNECTV1GetCallbackUserResponse__storage_ {
  uint32_t _has_storage_[1];
  int32_t data_p;
} KEYAPISIOTCONNECTV1GetCallbackUserResponse__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 = KEYAPISIOTCONNECTV1GetCallbackUserResponse_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1GetCallbackUserResponse__storage_, data_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIOTCONNECTV1GetCallbackUserResponse)
                                   messageName:@"GetCallbackUserResponse"
                               fileDescription:&KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIOTCONNECTV1GetCallbackUserResponse__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 - KEYAPISIOTCONNECTV1Model

@implementation KEYAPISIOTCONNECTV1Model

@dynamic id_p;
@dynamic manufacturer;
@dynamic model;
@dynamic hwVersion;
@dynamic swVersion;
@dynamic description_p;
@dynamic category;
@dynamic featureTypesArray, featureTypesArray_Count;

typedef struct KEYAPISIOTCONNECTV1Model__storage_ {
  uint32_t _has_storage_[1];
  NSString *id_p;
  NSString *manufacturer;
  NSString *model;
  NSString *hwVersion;
  NSString *swVersion;
  NSString *description_p;
  NSString *category;
  GPBEnumArray *featureTypesArray;
} KEYAPISIOTCONNECTV1Model__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 = KEYAPISIOTCONNECTV1Model_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1Model__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "manufacturer",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIOTCONNECTV1Model_FieldNumber_Manufacturer,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1Model__storage_, manufacturer),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "model",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIOTCONNECTV1Model_FieldNumber_Model,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1Model__storage_, model),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "hwVersion",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIOTCONNECTV1Model_FieldNumber_HwVersion,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1Model__storage_, hwVersion),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "swVersion",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIOTCONNECTV1Model_FieldNumber_SwVersion,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1Model__storage_, swVersion),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "description_p",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIOTCONNECTV1Model_FieldNumber_Description_p,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1Model__storage_, description_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "category",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIOTCONNECTV1Model_FieldNumber_Category,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1Model__storage_, category),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "featureTypesArray",
        .dataTypeSpecific.enumDescFunc = KEYAPISIOTCONNECTV1Model_FeatureType_EnumDescriptor,
        .number = KEYAPISIOTCONNECTV1Model_FieldNumber_FeatureTypesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1Model__storage_, featureTypesArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked | GPBFieldHasEnumDescriptor),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIOTCONNECTV1Model)
                                   messageName:@"Model"
                               fileDescription:&KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIOTCONNECTV1Model__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 - KEYAPISIOTCONNECTV1Device

@implementation KEYAPISIOTCONNECTV1Device

@dynamic id_p;
@dynamic name;
@dynamic defaultName;
@dynamic home;
@dynamic room;
@dynamic hasModel, model;
@dynamic hwVersion;
@dynamic swVersion;

typedef struct KEYAPISIOTCONNECTV1Device__storage_ {
  uint32_t _has_storage_[1];
  NSString *id_p;
  NSString *name;
  NSString *defaultName;
  NSString *home;
  NSString *room;
  KEYAPISIOTCONNECTV1Model *model;
  NSString *hwVersion;
  NSString *swVersion;
} KEYAPISIOTCONNECTV1Device__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 = KEYAPISIOTCONNECTV1Device_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1Device__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "name",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIOTCONNECTV1Device_FieldNumber_Name,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1Device__storage_, name),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "defaultName",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIOTCONNECTV1Device_FieldNumber_DefaultName,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1Device__storage_, defaultName),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "home",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIOTCONNECTV1Device_FieldNumber_Home,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1Device__storage_, home),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "room",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIOTCONNECTV1Device_FieldNumber_Room,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1Device__storage_, room),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "model",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIOTCONNECTV1Model),
        .number = KEYAPISIOTCONNECTV1Device_FieldNumber_Model,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1Device__storage_, model),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "hwVersion",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIOTCONNECTV1Device_FieldNumber_HwVersion,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1Device__storage_, hwVersion),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "swVersion",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIOTCONNECTV1Device_FieldNumber_SwVersion,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1Device__storage_, swVersion),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIOTCONNECTV1Device)
                                   messageName:@"Device"
                               fileDescription:&KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIOTCONNECTV1Device__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 - KEYAPISIOTCONNECTV1DeviceStateArray

@implementation KEYAPISIOTCONNECTV1DeviceStateArray

@dynamic statesArray, statesArray_Count;

typedef struct KEYAPISIOTCONNECTV1DeviceStateArray__storage_ {
  uint32_t _has_storage_[1];
  NSMutableArray *statesArray;
} KEYAPISIOTCONNECTV1DeviceStateArray__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 = "statesArray",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIOTCONNECTV1DeviceState),
        .number = KEYAPISIOTCONNECTV1DeviceStateArray_FieldNumber_StatesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1DeviceStateArray__storage_, statesArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIOTCONNECTV1DeviceStateArray)
                                   messageName:@"DeviceStateArray"
                               fileDescription:&KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIOTCONNECTV1DeviceStateArray__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 - KEYAPISIOTCONNECTV1DeviceCommandArray

@implementation KEYAPISIOTCONNECTV1DeviceCommandArray

@dynamic statesArray, statesArray_Count;

typedef struct KEYAPISIOTCONNECTV1DeviceCommandArray__storage_ {
  uint32_t _has_storage_[1];
  NSMutableArray *statesArray;
} KEYAPISIOTCONNECTV1DeviceCommandArray__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 = "statesArray",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIOTCONNECTV1DeviceCommand),
        .number = KEYAPISIOTCONNECTV1DeviceCommandArray_FieldNumber_StatesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1DeviceCommandArray__storage_, statesArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIOTCONNECTV1DeviceCommandArray)
                                   messageName:@"DeviceCommandArray"
                               fileDescription:&KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIOTCONNECTV1DeviceCommandArray__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 - KEYAPISIOTCONNECTV1DeviceCommand

@implementation KEYAPISIOTCONNECTV1DeviceCommand

@dynamic commandKeyType;
@dynamic hasValue, value;

typedef struct KEYAPISIOTCONNECTV1DeviceCommand__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISIOTCONNECTV1DeviceCommand_KeyType commandKeyType;
  KEYAPISIOTCONNECTV1DeviceCommand_Value *value;
} KEYAPISIOTCONNECTV1DeviceCommand__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 = "commandKeyType",
        .dataTypeSpecific.enumDescFunc = KEYAPISIOTCONNECTV1DeviceCommand_KeyType_EnumDescriptor,
        .number = KEYAPISIOTCONNECTV1DeviceCommand_FieldNumber_CommandKeyType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1DeviceCommand__storage_, commandKeyType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "value",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIOTCONNECTV1DeviceCommand_Value),
        .number = KEYAPISIOTCONNECTV1DeviceCommand_FieldNumber_Value,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1DeviceCommand__storage_, value),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIOTCONNECTV1DeviceCommand)
                                   messageName:@"DeviceCommand"
                               fileDescription:&KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIOTCONNECTV1DeviceCommand__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 KEYAPISIOTCONNECTV1DeviceCommand_CommandKeyType_RawValue(KEYAPISIOTCONNECTV1DeviceCommand *message) {
  GPBDescriptor *descriptor = [KEYAPISIOTCONNECTV1DeviceCommand descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISIOTCONNECTV1DeviceCommand_FieldNumber_CommandKeyType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISIOTCONNECTV1DeviceCommand_CommandKeyType_RawValue(KEYAPISIOTCONNECTV1DeviceCommand *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISIOTCONNECTV1DeviceCommand descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISIOTCONNECTV1DeviceCommand_FieldNumber_CommandKeyType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISIOTCONNECTV1DeviceCommand_Value

@implementation KEYAPISIOTCONNECTV1DeviceCommand_Value

@dynamic valueOneOfCase;
@dynamic type;
@dynamic valueEnumType;

typedef struct KEYAPISIOTCONNECTV1DeviceCommand_Value__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIOTCONNECTV1DeviceCommand_Value_Type type;
  KEYAPISIOTCONNECTV1DeviceCommand_Value_ValueEnumType valueEnumType;
} KEYAPISIOTCONNECTV1DeviceCommand_Value__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 = "type",
        .dataTypeSpecific.enumDescFunc = KEYAPISIOTCONNECTV1DeviceCommand_Value_Type_EnumDescriptor,
        .number = KEYAPISIOTCONNECTV1DeviceCommand_Value_FieldNumber_Type,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1DeviceCommand_Value__storage_, type),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "valueEnumType",
        .dataTypeSpecific.enumDescFunc = KEYAPISIOTCONNECTV1DeviceCommand_Value_ValueEnumType_EnumDescriptor,
        .number = KEYAPISIOTCONNECTV1DeviceCommand_Value_FieldNumber_ValueEnumType,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1DeviceCommand_Value__storage_, valueEnumType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIOTCONNECTV1DeviceCommand_Value)
                                   messageName:@"Value"
                               fileDescription:&KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIOTCONNECTV1DeviceCommand_Value__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "value",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISIOTCONNECTV1DeviceCommand)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

int32_t KEYAPISIOTCONNECTV1DeviceCommand_Value_Type_RawValue(KEYAPISIOTCONNECTV1DeviceCommand_Value *message) {
  GPBDescriptor *descriptor = [KEYAPISIOTCONNECTV1DeviceCommand_Value descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISIOTCONNECTV1DeviceCommand_Value_FieldNumber_Type];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISIOTCONNECTV1DeviceCommand_Value_Type_RawValue(KEYAPISIOTCONNECTV1DeviceCommand_Value *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISIOTCONNECTV1DeviceCommand_Value descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISIOTCONNECTV1DeviceCommand_Value_FieldNumber_Type];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISIOTCONNECTV1DeviceCommand_Value_ValueEnumType_RawValue(KEYAPISIOTCONNECTV1DeviceCommand_Value *message) {
  GPBDescriptor *descriptor = [KEYAPISIOTCONNECTV1DeviceCommand_Value descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISIOTCONNECTV1DeviceCommand_Value_FieldNumber_ValueEnumType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISIOTCONNECTV1DeviceCommand_Value_ValueEnumType_RawValue(KEYAPISIOTCONNECTV1DeviceCommand_Value *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISIOTCONNECTV1DeviceCommand_Value descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISIOTCONNECTV1DeviceCommand_Value_FieldNumber_ValueEnumType];
  GPBSetMessageRawEnumField(message, field, value);
}

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

@implementation KEYAPISIOTCONNECTV1DeviceState

@dynamic stateKeyType;
@dynamic hasValue, value;

typedef struct KEYAPISIOTCONNECTV1DeviceState__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISIOTCONNECTV1DeviceState_KeyType stateKeyType;
  KEYAPISIOTCONNECTV1DeviceState_Value *value;
} KEYAPISIOTCONNECTV1DeviceState__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 = "stateKeyType",
        .dataTypeSpecific.enumDescFunc = KEYAPISIOTCONNECTV1DeviceState_KeyType_EnumDescriptor,
        .number = KEYAPISIOTCONNECTV1DeviceState_FieldNumber_StateKeyType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1DeviceState__storage_, stateKeyType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "value",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIOTCONNECTV1DeviceState_Value),
        .number = KEYAPISIOTCONNECTV1DeviceState_FieldNumber_Value,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1DeviceState__storage_, value),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIOTCONNECTV1DeviceState)
                                   messageName:@"DeviceState"
                               fileDescription:&KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIOTCONNECTV1DeviceState__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 KEYAPISIOTCONNECTV1DeviceState_StateKeyType_RawValue(KEYAPISIOTCONNECTV1DeviceState *message) {
  GPBDescriptor *descriptor = [KEYAPISIOTCONNECTV1DeviceState descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISIOTCONNECTV1DeviceState_FieldNumber_StateKeyType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISIOTCONNECTV1DeviceState_StateKeyType_RawValue(KEYAPISIOTCONNECTV1DeviceState *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISIOTCONNECTV1DeviceState descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISIOTCONNECTV1DeviceState_FieldNumber_StateKeyType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISIOTCONNECTV1DeviceState_Value

@implementation KEYAPISIOTCONNECTV1DeviceState_Value

@dynamic valueOneOfCase;
@dynamic type;
@dynamic isValue;

typedef struct KEYAPISIOTCONNECTV1DeviceState_Value__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIOTCONNECTV1DeviceState_Value_Type type;
} KEYAPISIOTCONNECTV1DeviceState_Value__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 = "type",
        .dataTypeSpecific.enumDescFunc = KEYAPISIOTCONNECTV1DeviceState_Value_Type_EnumDescriptor,
        .number = KEYAPISIOTCONNECTV1DeviceState_Value_FieldNumber_Type,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1DeviceState_Value__storage_, type),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "isValue",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIOTCONNECTV1DeviceState_Value_FieldNumber_IsValue,
        .hasIndex = -1,
        .offset = 1,  // Stored in _has_storage_ to save space.
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeBool,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIOTCONNECTV1DeviceState_Value)
                                   messageName:@"Value"
                               fileDescription:&KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIOTCONNECTV1DeviceState_Value__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "value",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISIOTCONNECTV1DeviceState)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

int32_t KEYAPISIOTCONNECTV1DeviceState_Value_Type_RawValue(KEYAPISIOTCONNECTV1DeviceState_Value *message) {
  GPBDescriptor *descriptor = [KEYAPISIOTCONNECTV1DeviceState_Value descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISIOTCONNECTV1DeviceState_Value_FieldNumber_Type];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISIOTCONNECTV1DeviceState_Value_Type_RawValue(KEYAPISIOTCONNECTV1DeviceState_Value *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISIOTCONNECTV1DeviceState_Value descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISIOTCONNECTV1DeviceState_Value_FieldNumber_Type];
  GPBSetMessageRawEnumField(message, field, value);
}

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

@implementation KEYAPISIOTCONNECTV1GetCallbackDevicesRequest


typedef struct KEYAPISIOTCONNECTV1GetCallbackDevicesRequest__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISIOTCONNECTV1GetCallbackDevicesRequest__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(KEYAPISIOTCONNECTV1GetCallbackDevicesRequest)
                                   messageName:@"GetCallbackDevicesRequest"
                               fileDescription:&KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISIOTCONNECTV1GetCallbackDevicesRequest__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 - KEYAPISIOTCONNECTV1GetCallbackDevicesResponse

@implementation KEYAPISIOTCONNECTV1GetCallbackDevicesResponse

@dynamic dataArray, dataArray_Count;

typedef struct KEYAPISIOTCONNECTV1GetCallbackDevicesResponse__storage_ {
  uint32_t _has_storage_[1];
  NSMutableArray *dataArray;
} KEYAPISIOTCONNECTV1GetCallbackDevicesResponse__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 = "dataArray",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIOTCONNECTV1Device),
        .number = KEYAPISIOTCONNECTV1GetCallbackDevicesResponse_FieldNumber_DataArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1GetCallbackDevicesResponse__storage_, dataArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIOTCONNECTV1GetCallbackDevicesResponse)
                                   messageName:@"GetCallbackDevicesResponse"
                               fileDescription:&KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIOTCONNECTV1GetCallbackDevicesResponse__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 - KEYAPISIOTCONNECTV1PostCallbackQueryRequest

@implementation KEYAPISIOTCONNECTV1PostCallbackQueryRequest

@dynamic devicesArray, devicesArray_Count;

typedef struct KEYAPISIOTCONNECTV1PostCallbackQueryRequest__storage_ {
  uint32_t _has_storage_[1];
  NSMutableArray *devicesArray;
} KEYAPISIOTCONNECTV1PostCallbackQueryRequest__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 = "devicesArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIOTCONNECTV1PostCallbackQueryRequest_FieldNumber_DevicesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1PostCallbackQueryRequest__storage_, devicesArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIOTCONNECTV1PostCallbackQueryRequest)
                                   messageName:@"PostCallbackQueryRequest"
                               fileDescription:&KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIOTCONNECTV1PostCallbackQueryRequest__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 - KEYAPISIOTCONNECTV1PostCallbackQueryResponse

@implementation KEYAPISIOTCONNECTV1PostCallbackQueryResponse

@dynamic data_p, data_p_Count;

typedef struct KEYAPISIOTCONNECTV1PostCallbackQueryResponse__storage_ {
  uint32_t _has_storage_[1];
  NSMutableDictionary *data_p;
} KEYAPISIOTCONNECTV1PostCallbackQueryResponse__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(KEYAPISIOTCONNECTV1DeviceStateArray),
        .number = KEYAPISIOTCONNECTV1PostCallbackQueryResponse_FieldNumber_Data_p,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1PostCallbackQueryResponse__storage_, data_p),
        .flags = GPBFieldMapKeyString,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIOTCONNECTV1PostCallbackQueryResponse)
                                   messageName:@"PostCallbackQueryResponse"
                               fileDescription:&KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIOTCONNECTV1PostCallbackQueryResponse__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 - KEYAPISIOTCONNECTV1PostCallbackCommandRequest

@implementation KEYAPISIOTCONNECTV1PostCallbackCommandRequest

@dynamic devices, devices_Count;

typedef struct KEYAPISIOTCONNECTV1PostCallbackCommandRequest__storage_ {
  uint32_t _has_storage_[1];
  NSMutableDictionary *devices;
} KEYAPISIOTCONNECTV1PostCallbackCommandRequest__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 = "devices",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIOTCONNECTV1DeviceCommandArray),
        .number = KEYAPISIOTCONNECTV1PostCallbackCommandRequest_FieldNumber_Devices,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISIOTCONNECTV1PostCallbackCommandRequest__storage_, devices),
        .flags = GPBFieldMapKeyString,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIOTCONNECTV1PostCallbackCommandRequest)
                                   messageName:@"PostCallbackCommandRequest"
                               fileDescription:&KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIOTCONNECTV1PostCallbackCommandRequest__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 - KEYAPISIOTCONNECTV1PostCallbackCommandResponse

@implementation KEYAPISIOTCONNECTV1PostCallbackCommandResponse


typedef struct KEYAPISIOTCONNECTV1PostCallbackCommandResponse__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISIOTCONNECTV1PostCallbackCommandResponse__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(KEYAPISIOTCONNECTV1PostCallbackCommandResponse)
                                   messageName:@"PostCallbackCommandResponse"
                               fileDescription:&KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISIOTCONNECTV1PostCallbackCommandResponse__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 - KEYAPISIOTCONNECTV1PostCallbackUnlinkRequest

@implementation KEYAPISIOTCONNECTV1PostCallbackUnlinkRequest


typedef struct KEYAPISIOTCONNECTV1PostCallbackUnlinkRequest__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISIOTCONNECTV1PostCallbackUnlinkRequest__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(KEYAPISIOTCONNECTV1PostCallbackUnlinkRequest)
                                   messageName:@"PostCallbackUnlinkRequest"
                               fileDescription:&KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISIOTCONNECTV1PostCallbackUnlinkRequest__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 - KEYAPISIOTCONNECTV1PostCallbackUnlinkResponse

@implementation KEYAPISIOTCONNECTV1PostCallbackUnlinkResponse


typedef struct KEYAPISIOTCONNECTV1PostCallbackUnlinkResponse__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISIOTCONNECTV1PostCallbackUnlinkResponse__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(KEYAPISIOTCONNECTV1PostCallbackUnlinkResponse)
                                   messageName:@"PostCallbackUnlinkResponse"
                               fileDescription:&KEYAPISIOTCONNECTV1KeyapisIotConnectCallbackV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISIOTCONNECTV1PostCallbackUnlinkResponse__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
