// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/device/v1/keyapis_device_model_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/KeyapisDeviceModelV1.pbobjc.h"
// @@protoc_insertion_point(imports)

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#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(KEYAPISDEVICEV1Model);

#pragma mark - KEYAPISDEVICEV1KeyapisDeviceModelV1Root

@implementation KEYAPISDEVICEV1KeyapisDeviceModelV1Root

// No extensions in the file and no imports, so no need to generate
// +extensionRegistry.

@end

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

#pragma mark - Enum KEYAPISDEVICEV1Model_CapabilityType

GPBEnumDescriptor *KEYAPISDEVICEV1Model_CapabilityType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "CapabilityTypeUnknown\000ChangePassword\000Dtm"
        "fCode\000FlatAutocollect\000SipCall\000Reinstall\000"
        "EmergencyDoor\000Ticker\000ConciergeCall\000Autoc"
        "ollect\000TemporaryKey\000OpenDoor\000Gate\000SipVid"
        "eo\000ConstantKey\000CmsPhones\000Sl3\000Syslog\000Ntp\000"
        "FaceRecognition\000Camera\000EmergencyCall\000";
    static const int32_t values[] = {
        KEYAPISDEVICEV1Model_CapabilityType_CapabilityTypeUnknown,
        KEYAPISDEVICEV1Model_CapabilityType_ChangePassword,
        KEYAPISDEVICEV1Model_CapabilityType_DtmfCode,
        KEYAPISDEVICEV1Model_CapabilityType_FlatAutocollect,
        KEYAPISDEVICEV1Model_CapabilityType_SipCall,
        KEYAPISDEVICEV1Model_CapabilityType_Reinstall,
        KEYAPISDEVICEV1Model_CapabilityType_EmergencyDoor,
        KEYAPISDEVICEV1Model_CapabilityType_Ticker,
        KEYAPISDEVICEV1Model_CapabilityType_ConciergeCall,
        KEYAPISDEVICEV1Model_CapabilityType_Autocollect,
        KEYAPISDEVICEV1Model_CapabilityType_TemporaryKey,
        KEYAPISDEVICEV1Model_CapabilityType_OpenDoor,
        KEYAPISDEVICEV1Model_CapabilityType_Gate,
        KEYAPISDEVICEV1Model_CapabilityType_SipVideo,
        KEYAPISDEVICEV1Model_CapabilityType_ConstantKey,
        KEYAPISDEVICEV1Model_CapabilityType_CmsPhones,
        KEYAPISDEVICEV1Model_CapabilityType_Sl3,
        KEYAPISDEVICEV1Model_CapabilityType_Syslog,
        KEYAPISDEVICEV1Model_CapabilityType_Ntp,
        KEYAPISDEVICEV1Model_CapabilityType_FaceRecognition,
        KEYAPISDEVICEV1Model_CapabilityType_Camera,
        KEYAPISDEVICEV1Model_CapabilityType_EmergencyCall,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISDEVICEV1Model_CapabilityType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISDEVICEV1Model_CapabilityType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISDEVICEV1Model_CapabilityType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISDEVICEV1Model_CapabilityType_CapabilityTypeUnknown:
    case KEYAPISDEVICEV1Model_CapabilityType_ChangePassword:
    case KEYAPISDEVICEV1Model_CapabilityType_DtmfCode:
    case KEYAPISDEVICEV1Model_CapabilityType_FlatAutocollect:
    case KEYAPISDEVICEV1Model_CapabilityType_SipCall:
    case KEYAPISDEVICEV1Model_CapabilityType_Reinstall:
    case KEYAPISDEVICEV1Model_CapabilityType_EmergencyDoor:
    case KEYAPISDEVICEV1Model_CapabilityType_Ticker:
    case KEYAPISDEVICEV1Model_CapabilityType_ConciergeCall:
    case KEYAPISDEVICEV1Model_CapabilityType_Autocollect:
    case KEYAPISDEVICEV1Model_CapabilityType_TemporaryKey:
    case KEYAPISDEVICEV1Model_CapabilityType_OpenDoor:
    case KEYAPISDEVICEV1Model_CapabilityType_Gate:
    case KEYAPISDEVICEV1Model_CapabilityType_SipVideo:
    case KEYAPISDEVICEV1Model_CapabilityType_ConstantKey:
    case KEYAPISDEVICEV1Model_CapabilityType_CmsPhones:
    case KEYAPISDEVICEV1Model_CapabilityType_Sl3:
    case KEYAPISDEVICEV1Model_CapabilityType_Syslog:
    case KEYAPISDEVICEV1Model_CapabilityType_Ntp:
    case KEYAPISDEVICEV1Model_CapabilityType_FaceRecognition:
    case KEYAPISDEVICEV1Model_CapabilityType_Camera:
    case KEYAPISDEVICEV1Model_CapabilityType_EmergencyCall:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISDEVICEV1Model

@implementation KEYAPISDEVICEV1Model

@dynamic id_p;

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