// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/vc/v1/keyapis_vc_camera_location_data_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/vc/v1/KeyapisVcCameraLocationDataV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "keyapis/vc/v1/KeyapisVcCameraV1.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(KEYAPISVCV1CameraLocationData);
GPBObjCClassDeclaration(KEYAPISVCV1CameraLocationData_Building);
GPBObjCClassDeclaration(KEYAPISVCV1CameraLocationData_Company);
GPBObjCClassDeclaration(KEYAPISVCV1GetCameraLocationDataRequest);
GPBObjCClassDeclaration(KEYAPISVCV1GetCameraLocationDataResponse);
GPBObjCClassDeclaration(KEYAPISVCV1GetCameraLocationDataResponse_Error);
GPBObjCClassDeclaration(KEYAPISVCV1ValidationError);

#pragma mark - KEYAPISVCV1KeyapisVcCameraLocationDataV1Root

@implementation KEYAPISVCV1KeyapisVcCameraLocationDataV1Root

+ (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 KEYAPISVCV1KeyapisVcCameraLocationDataV1Root_FileDescription = {
  .package = "keyapis.vc.v1",
  .prefix = "KEYAPISVCV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum KEYAPISVCV1CameraLocationData_StatusType

GPBEnumDescriptor *KEYAPISVCV1CameraLocationData_StatusType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "StatusTypeUnknown\000Offline\000Online\000";
    static const int32_t values[] = {
        KEYAPISVCV1CameraLocationData_StatusType_StatusTypeUnknown,
        KEYAPISVCV1CameraLocationData_StatusType_Offline,
        KEYAPISVCV1CameraLocationData_StatusType_Online,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISVCV1CameraLocationData_StatusType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISVCV1CameraLocationData_StatusType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISVCV1CameraLocationData_StatusType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISVCV1CameraLocationData_StatusType_StatusTypeUnknown:
    case KEYAPISVCV1CameraLocationData_StatusType_Offline:
    case KEYAPISVCV1CameraLocationData_StatusType_Online:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISVCV1CameraLocationData_DeviceType

GPBEnumDescriptor *KEYAPISVCV1CameraLocationData_DeviceType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "DeviceTypeUnknown\000Intercom\000Videocamera\000B"
        "arrier\000Gate\000AccessControlPanel\000OutdoorCa"
        "mera\000";
    static const int32_t values[] = {
        KEYAPISVCV1CameraLocationData_DeviceType_DeviceTypeUnknown,
        KEYAPISVCV1CameraLocationData_DeviceType_Intercom,
        KEYAPISVCV1CameraLocationData_DeviceType_Videocamera,
        KEYAPISVCV1CameraLocationData_DeviceType_Barrier,
        KEYAPISVCV1CameraLocationData_DeviceType_Gate,
        KEYAPISVCV1CameraLocationData_DeviceType_AccessControlPanel,
        KEYAPISVCV1CameraLocationData_DeviceType_OutdoorCamera,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISVCV1CameraLocationData_DeviceType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISVCV1CameraLocationData_DeviceType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISVCV1CameraLocationData_DeviceType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISVCV1CameraLocationData_DeviceType_DeviceTypeUnknown:
    case KEYAPISVCV1CameraLocationData_DeviceType_Intercom:
    case KEYAPISVCV1CameraLocationData_DeviceType_Videocamera:
    case KEYAPISVCV1CameraLocationData_DeviceType_Barrier:
    case KEYAPISVCV1CameraLocationData_DeviceType_Gate:
    case KEYAPISVCV1CameraLocationData_DeviceType_AccessControlPanel:
    case KEYAPISVCV1CameraLocationData_DeviceType_OutdoorCamera:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISVCV1GetCameraLocationDataRequest

@implementation KEYAPISVCV1GetCameraLocationDataRequest

@dynamic uid;

typedef struct KEYAPISVCV1GetCameraLocationDataRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *uid;
} KEYAPISVCV1GetCameraLocationDataRequest__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 = "uid",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1GetCameraLocationDataRequest_FieldNumber_Uid,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISVCV1GetCameraLocationDataRequest__storage_, uid),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1GetCameraLocationDataRequest)
                                   messageName:@"GetCameraLocationDataRequest"
                               fileDescription:&KEYAPISVCV1KeyapisVcCameraLocationDataV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1GetCameraLocationDataRequest__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 - KEYAPISVCV1GetCameraLocationDataResponse

@implementation KEYAPISVCV1GetCameraLocationDataResponse

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

typedef struct KEYAPISVCV1GetCameraLocationDataResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISVCV1CameraLocationData *data_p;
  KEYAPISVCV1GetCameraLocationDataResponse_Error *error;
} KEYAPISVCV1GetCameraLocationDataResponse__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(KEYAPISVCV1CameraLocationData),
        .number = KEYAPISVCV1GetCameraLocationDataResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1GetCameraLocationDataResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISVCV1GetCameraLocationDataResponse_Error),
        .number = KEYAPISVCV1GetCameraLocationDataResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1GetCameraLocationDataResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1GetCameraLocationDataResponse)
                                   messageName:@"GetCameraLocationDataResponse"
                               fileDescription:&KEYAPISVCV1KeyapisVcCameraLocationDataV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1GetCameraLocationDataResponse__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 KEYAPISVCV1GetCameraLocationDataResponse_ClearTypeOneOfCase(KEYAPISVCV1GetCameraLocationDataResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISVCV1GetCameraLocationDataResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISVCV1GetCameraLocationDataResponse_Error

@implementation KEYAPISVCV1GetCameraLocationDataResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation KEYAPISVCV1CameraLocationData

@dynamic uid;
@dynamic deviceType;
@dynamic model;
@dynamic serialNumber;
@dynamic hwVersion;
@dynamic swVersion;
@dynamic mac;
@dynamic title;
@dynamic host;
@dynamic statusType;
@dynamic entranceNumbersArray, entranceNumbersArray_Count;
@dynamic flatgrammId;
@dynamic hasCompany, company;
@dynamic buildingsArray, buildingsArray_Count;

typedef struct KEYAPISVCV1CameraLocationData__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISVCV1CameraLocationData_DeviceType deviceType;
  KEYAPISVCV1CameraLocationData_StatusType statusType;
  int32_t flatgrammId;
  NSString *uid;
  NSString *model;
  NSString *serialNumber;
  NSString *hwVersion;
  NSString *swVersion;
  NSString *mac;
  NSString *title;
  NSString *host;
  GPBInt32Array *entranceNumbersArray;
  KEYAPISVCV1CameraLocationData_Company *company;
  NSMutableArray *buildingsArray;
} KEYAPISVCV1CameraLocationData__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 = "uid",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_FieldNumber_Uid,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData__storage_, uid),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "deviceType",
        .dataTypeSpecific.enumDescFunc = KEYAPISVCV1CameraLocationData_DeviceType_EnumDescriptor,
        .number = KEYAPISVCV1CameraLocationData_FieldNumber_DeviceType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData__storage_, deviceType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "model",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_FieldNumber_Model,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData__storage_, model),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "serialNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_FieldNumber_SerialNumber,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData__storage_, serialNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "hwVersion",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_FieldNumber_HwVersion,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData__storage_, hwVersion),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "swVersion",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_FieldNumber_SwVersion,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData__storage_, swVersion),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "mac",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_FieldNumber_Mac,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData__storage_, mac),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "title",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_FieldNumber_Title,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData__storage_, title),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "host",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_FieldNumber_Host,
        .hasIndex = 8,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData__storage_, host),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "statusType",
        .dataTypeSpecific.enumDescFunc = KEYAPISVCV1CameraLocationData_StatusType_EnumDescriptor,
        .number = KEYAPISVCV1CameraLocationData_FieldNumber_StatusType,
        .hasIndex = 9,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData__storage_, statusType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "entranceNumbersArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_FieldNumber_EntranceNumbersArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData__storage_, entranceNumbersArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "flatgrammId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_FieldNumber_FlatgrammId,
        .hasIndex = 10,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData__storage_, flatgrammId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "company",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISVCV1CameraLocationData_Company),
        .number = KEYAPISVCV1CameraLocationData_FieldNumber_Company,
        .hasIndex = 11,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData__storage_, company),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "buildingsArray",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISVCV1CameraLocationData_Building),
        .number = KEYAPISVCV1CameraLocationData_FieldNumber_BuildingsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData__storage_, buildingsArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1CameraLocationData)
                                   messageName:@"CameraLocationData"
                               fileDescription:&KEYAPISVCV1KeyapisVcCameraLocationDataV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1CameraLocationData__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 KEYAPISVCV1CameraLocationData_DeviceType_RawValue(KEYAPISVCV1CameraLocationData *message) {
  GPBDescriptor *descriptor = [KEYAPISVCV1CameraLocationData descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISVCV1CameraLocationData_FieldNumber_DeviceType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISVCV1CameraLocationData_DeviceType_RawValue(KEYAPISVCV1CameraLocationData *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISVCV1CameraLocationData descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISVCV1CameraLocationData_FieldNumber_DeviceType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISVCV1CameraLocationData_StatusType_RawValue(KEYAPISVCV1CameraLocationData *message) {
  GPBDescriptor *descriptor = [KEYAPISVCV1CameraLocationData descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISVCV1CameraLocationData_FieldNumber_StatusType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISVCV1CameraLocationData_StatusType_RawValue(KEYAPISVCV1CameraLocationData *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISVCV1CameraLocationData descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISVCV1CameraLocationData_FieldNumber_StatusType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISVCV1CameraLocationData_Building

@implementation KEYAPISVCV1CameraLocationData_Building

@dynamic id_p;
@dynamic rfId;
@dynamic mrfId;
@dynamic orpon;
@dynamic city;
@dynamic street;
@dynamic number;
@dynamic part;
@dynamic companyId;
@dynamic prefix;
@dynamic hasCreatedAt, createdAt;
@dynamic hasDeletedAt, deletedAt;
@dynamic flatgrammId;
@dynamic cityOrpon;
@dynamic fias;
@dynamic district;
@dynamic unom;
@dynamic regionOrpon;

typedef struct KEYAPISVCV1CameraLocationData_Building__storage_ {
  uint32_t _has_storage_[1];
  int32_t id_p;
  int32_t rfId;
  int32_t mrfId;
  int32_t companyId;
  int32_t flatgrammId;
  NSString *city;
  NSString *street;
  NSString *number;
  NSString *part;
  NSString *prefix;
  GPBTimestamp *createdAt;
  GPBTimestamp *deletedAt;
  NSString *fias;
  NSString *district;
  NSString *unom;
  int64_t orpon;
  int64_t cityOrpon;
  int64_t regionOrpon;
} KEYAPISVCV1CameraLocationData_Building__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 = KEYAPISVCV1CameraLocationData_Building_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Building__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "rfId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_Building_FieldNumber_RfId,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Building__storage_, rfId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "mrfId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_Building_FieldNumber_MrfId,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Building__storage_, mrfId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "orpon",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_Building_FieldNumber_Orpon,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Building__storage_, orpon),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "city",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_Building_FieldNumber_City,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Building__storage_, city),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "street",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_Building_FieldNumber_Street,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Building__storage_, street),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "number",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_Building_FieldNumber_Number,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Building__storage_, number),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "part",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_Building_FieldNumber_Part,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Building__storage_, part),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "companyId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_Building_FieldNumber_CompanyId,
        .hasIndex = 8,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Building__storage_, companyId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "prefix",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_Building_FieldNumber_Prefix,
        .hasIndex = 9,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Building__storage_, prefix),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "createdAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISVCV1CameraLocationData_Building_FieldNumber_CreatedAt,
        .hasIndex = 10,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Building__storage_, createdAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "deletedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISVCV1CameraLocationData_Building_FieldNumber_DeletedAt,
        .hasIndex = 11,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Building__storage_, deletedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "flatgrammId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_Building_FieldNumber_FlatgrammId,
        .hasIndex = 12,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Building__storage_, flatgrammId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "cityOrpon",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_Building_FieldNumber_CityOrpon,
        .hasIndex = 13,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Building__storage_, cityOrpon),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "fias",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_Building_FieldNumber_Fias,
        .hasIndex = 14,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Building__storage_, fias),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "district",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_Building_FieldNumber_District,
        .hasIndex = 15,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Building__storage_, district),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "unom",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_Building_FieldNumber_Unom,
        .hasIndex = 16,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Building__storage_, unom),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "regionOrpon",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_Building_FieldNumber_RegionOrpon,
        .hasIndex = 17,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Building__storage_, regionOrpon),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1CameraLocationData_Building)
                                   messageName:@"Building"
                               fileDescription:&KEYAPISVCV1KeyapisVcCameraLocationDataV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1CameraLocationData_Building__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISVCV1CameraLocationData)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISVCV1CameraLocationData_Company

@implementation KEYAPISVCV1CameraLocationData_Company

@dynamic id_p;
@dynamic vcCompanyId;
@dynamic name;
@dynamic inn;
@dynamic kpp;
@dynamic ogrn;

typedef struct KEYAPISVCV1CameraLocationData_Company__storage_ {
  uint32_t _has_storage_[1];
  int32_t id_p;
  NSString *name;
  NSString *inn;
  NSString *kpp;
  NSString *ogrn;
  int64_t vcCompanyId;
} KEYAPISVCV1CameraLocationData_Company__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 = KEYAPISVCV1CameraLocationData_Company_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Company__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "vcCompanyId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_Company_FieldNumber_VcCompanyId,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Company__storage_, vcCompanyId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "name",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_Company_FieldNumber_Name,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Company__storage_, name),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "inn",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_Company_FieldNumber_Inn,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Company__storage_, inn),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "kpp",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_Company_FieldNumber_Kpp,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Company__storage_, kpp),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "ogrn",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraLocationData_Company_FieldNumber_Ogrn,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraLocationData_Company__storage_, ogrn),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1CameraLocationData_Company)
                                   messageName:@"Company"
                               fileDescription:&KEYAPISVCV1KeyapisVcCameraLocationDataV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1CameraLocationData_Company__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISVCV1CameraLocationData)];
    #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
