// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/event/v1/keyapis_event_event_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/event/v1/KeyapisEventEventV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "google/protobuf/Descriptor.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(GPBInt32Value);
GPBObjCClassDeclaration(GPBInt64Value);
GPBObjCClassDeclaration(GPBStringValue);
GPBObjCClassDeclaration(GPBTimestamp);
GPBObjCClassDeclaration(KEYAPISEVENTV1Event);

#pragma mark - KEYAPISEVENTV1KeyapisEventEventV1Root

@implementation KEYAPISEVENTV1KeyapisEventEventV1Root

+ (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 KEYAPISEVENTV1KeyapisEventEventV1Root_FileDescription = {
  .package = "keyapis.event.v1",
  .prefix = "KEYAPISEVENTV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum KEYAPISEVENTV1Event_Type

GPBEnumDescriptor *KEYAPISEVENTV1Event_Type_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "TypeUnknown\000ApiOpenRemote\000FaceOpenRemote"
        "\000PinCodeOpenRemote\000DtmfOpenRemote\000Emerge"
        "ncyModeOnRemote\000EmergencyModeOffRemote\000C"
        "odeOpenLocal\000RfidOpenLocal\000EmergencyAlar"
        "mRemote\000GetCredentials\000ChangePassword\000Us"
        "erEntry\000DtmfOpenLocal\000CarNumberOpenRemot"
        "e\000EmergencyAlarmOffRemote\000EmergencyAlarm"
        "OnRemote\000DispatcherOpen\000DispatcherDenied"
        "Open\000VehicleTypeOpenRemote\000";
    static const int32_t values[] = {
        KEYAPISEVENTV1Event_Type_TypeUnknown,
        KEYAPISEVENTV1Event_Type_ApiOpenRemote,
        KEYAPISEVENTV1Event_Type_FaceOpenRemote,
        KEYAPISEVENTV1Event_Type_PinCodeOpenRemote,
        KEYAPISEVENTV1Event_Type_DtmfOpenRemote,
        KEYAPISEVENTV1Event_Type_EmergencyModeOnRemote,
        KEYAPISEVENTV1Event_Type_EmergencyModeOffRemote,
        KEYAPISEVENTV1Event_Type_CodeOpenLocal,
        KEYAPISEVENTV1Event_Type_RfidOpenLocal,
        KEYAPISEVENTV1Event_Type_EmergencyAlarmRemote,
        KEYAPISEVENTV1Event_Type_GetCredentials,
        KEYAPISEVENTV1Event_Type_ChangePassword,
        KEYAPISEVENTV1Event_Type_UserEntry,
        KEYAPISEVENTV1Event_Type_DtmfOpenLocal,
        KEYAPISEVENTV1Event_Type_CarNumberOpenRemote,
        KEYAPISEVENTV1Event_Type_EmergencyAlarmOffRemote,
        KEYAPISEVENTV1Event_Type_EmergencyAlarmOnRemote,
        KEYAPISEVENTV1Event_Type_DispatcherOpen,
        KEYAPISEVENTV1Event_Type_DispatcherDeniedOpen,
        KEYAPISEVENTV1Event_Type_VehicleTypeOpenRemote,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISEVENTV1Event_Type)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISEVENTV1Event_Type_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISEVENTV1Event_Type_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISEVENTV1Event_Type_TypeUnknown:
    case KEYAPISEVENTV1Event_Type_ApiOpenRemote:
    case KEYAPISEVENTV1Event_Type_FaceOpenRemote:
    case KEYAPISEVENTV1Event_Type_PinCodeOpenRemote:
    case KEYAPISEVENTV1Event_Type_DtmfOpenRemote:
    case KEYAPISEVENTV1Event_Type_EmergencyModeOnRemote:
    case KEYAPISEVENTV1Event_Type_EmergencyModeOffRemote:
    case KEYAPISEVENTV1Event_Type_CodeOpenLocal:
    case KEYAPISEVENTV1Event_Type_RfidOpenLocal:
    case KEYAPISEVENTV1Event_Type_EmergencyAlarmRemote:
    case KEYAPISEVENTV1Event_Type_GetCredentials:
    case KEYAPISEVENTV1Event_Type_ChangePassword:
    case KEYAPISEVENTV1Event_Type_UserEntry:
    case KEYAPISEVENTV1Event_Type_DtmfOpenLocal:
    case KEYAPISEVENTV1Event_Type_CarNumberOpenRemote:
    case KEYAPISEVENTV1Event_Type_EmergencyAlarmOffRemote:
    case KEYAPISEVENTV1Event_Type_EmergencyAlarmOnRemote:
    case KEYAPISEVENTV1Event_Type_DispatcherOpen:
    case KEYAPISEVENTV1Event_Type_DispatcherDeniedOpen:
    case KEYAPISEVENTV1Event_Type_VehicleTypeOpenRemote:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISEVENTV1Event_DeviceType

GPBEnumDescriptor *KEYAPISEVENTV1Event_DeviceType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "DeviceTypeUnknown\000Intercom\000Barrier\000Gate\000"
        "AccessControlPanel\000Videocamera\000";
    static const int32_t values[] = {
        KEYAPISEVENTV1Event_DeviceType_DeviceTypeUnknown,
        KEYAPISEVENTV1Event_DeviceType_Intercom,
        KEYAPISEVENTV1Event_DeviceType_Barrier,
        KEYAPISEVENTV1Event_DeviceType_Gate,
        KEYAPISEVENTV1Event_DeviceType_AccessControlPanel,
        KEYAPISEVENTV1Event_DeviceType_Videocamera,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISEVENTV1Event_DeviceType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISEVENTV1Event_DeviceType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISEVENTV1Event_DeviceType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISEVENTV1Event_DeviceType_DeviceTypeUnknown:
    case KEYAPISEVENTV1Event_DeviceType_Intercom:
    case KEYAPISEVENTV1Event_DeviceType_Barrier:
    case KEYAPISEVENTV1Event_DeviceType_Gate:
    case KEYAPISEVENTV1Event_DeviceType_AccessControlPanel:
    case KEYAPISEVENTV1Event_DeviceType_Videocamera:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISEVENTV1Event

@implementation KEYAPISEVENTV1Event

@dynamic type;
@dynamic hasRaisedAt, raisedAt;
@dynamic hasDeviceId, deviceId;
@dynamic deviceType;
@dynamic hasCompanyId, companyId;
@dynamic hasRoomId, roomId;
@dynamic hasRelay, relay;
@dynamic hasUserId, userId;
@dynamic hasUserAgent, userAgent;
@dynamic hasBuildingId, buildingId;
@dynamic hasOrponId, orponId;
@dynamic hasRoomNumber, roomNumber;
@dynamic hasIvrPhoneNumber, ivrPhoneNumber;
@dynamic hasGuestPhoneNumber, guestPhoneNumber;
@dynamic hasCode, code;
@dynamic hasRfid, rfid;
@dynamic hasRequestId, requestId;
@dynamic hasDtmfPhoneNumber, dtmfPhoneNumber;
@dynamic hasUserKind, userKind;
@dynamic hasLogin, login;
@dynamic hasPassword, password;
@dynamic hasHost, host;
@dynamic hasDeviceModel, deviceModel;
@dynamic hasRfidId, rfidId;
@dynamic hasCodeId, codeId;
@dynamic hasCarNumber, carNumber;
@dynamic hasOs, os;
@dynamic hasPushToken, pushToken;
@dynamic hasCameraUid, cameraUid;
@dynamic hasScreenshotURL, screenshotURL;
@dynamic hasVehicle, vehicle;
@dynamic hasCourierCompanyName, courierCompanyName;
@dynamic hasOrderNumber, orderNumber;
@dynamic hasCourierId, courierId;

typedef struct KEYAPISEVENTV1Event__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISEVENTV1Event_Type type;
  KEYAPISEVENTV1Event_DeviceType deviceType;
  GPBTimestamp *raisedAt;
  GPBInt32Value *deviceId;
  GPBInt32Value *companyId;
  GPBInt32Value *roomId;
  GPBInt32Value *relay;
  GPBInt32Value *userId;
  GPBStringValue *userAgent;
  GPBInt32Value *buildingId;
  GPBInt64Value *orponId;
  GPBStringValue *roomNumber;
  GPBStringValue *ivrPhoneNumber;
  GPBStringValue *guestPhoneNumber;
  GPBStringValue *code;
  GPBStringValue *rfid;
  GPBStringValue *requestId;
  GPBStringValue *dtmfPhoneNumber;
  GPBStringValue *userKind;
  GPBStringValue *login;
  GPBStringValue *password;
  GPBStringValue *host;
  GPBStringValue *deviceModel;
  GPBInt32Value *rfidId;
  GPBInt32Value *codeId;
  GPBStringValue *carNumber;
  GPBStringValue *os;
  GPBStringValue *pushToken;
  GPBStringValue *cameraUid;
  GPBStringValue *screenshotURL;
  GPBStringValue *vehicle;
  GPBStringValue *courierCompanyName;
  GPBStringValue *orderNumber;
  GPBStringValue *courierId;
} KEYAPISEVENTV1Event__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 = KEYAPISEVENTV1Event_Type_EnumDescriptor,
        .number = KEYAPISEVENTV1Event_FieldNumber_Type,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, type),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "raisedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISEVENTV1Event_FieldNumber_RaisedAt,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, raisedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "deviceId",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt32Value),
        .number = KEYAPISEVENTV1Event_FieldNumber_DeviceId,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, deviceId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "deviceType",
        .dataTypeSpecific.enumDescFunc = KEYAPISEVENTV1Event_DeviceType_EnumDescriptor,
        .number = KEYAPISEVENTV1Event_FieldNumber_DeviceType,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, deviceType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "companyId",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt32Value),
        .number = KEYAPISEVENTV1Event_FieldNumber_CompanyId,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, companyId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "roomId",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt32Value),
        .number = KEYAPISEVENTV1Event_FieldNumber_RoomId,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, roomId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "relay",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt32Value),
        .number = KEYAPISEVENTV1Event_FieldNumber_Relay,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, relay),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "userId",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt32Value),
        .number = KEYAPISEVENTV1Event_FieldNumber_UserId,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, userId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "userAgent",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_UserAgent,
        .hasIndex = 8,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, userAgent),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "buildingId",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt32Value),
        .number = KEYAPISEVENTV1Event_FieldNumber_BuildingId,
        .hasIndex = 9,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, buildingId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "orponId",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt64Value),
        .number = KEYAPISEVENTV1Event_FieldNumber_OrponId,
        .hasIndex = 10,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, orponId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "roomNumber",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_RoomNumber,
        .hasIndex = 11,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, roomNumber),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "ivrPhoneNumber",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_IvrPhoneNumber,
        .hasIndex = 12,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, ivrPhoneNumber),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "guestPhoneNumber",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_GuestPhoneNumber,
        .hasIndex = 13,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, guestPhoneNumber),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "code",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_Code,
        .hasIndex = 14,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, code),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "rfid",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_Rfid,
        .hasIndex = 15,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, rfid),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "requestId",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_RequestId,
        .hasIndex = 16,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, requestId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "dtmfPhoneNumber",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_DtmfPhoneNumber,
        .hasIndex = 17,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, dtmfPhoneNumber),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "userKind",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_UserKind,
        .hasIndex = 18,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, userKind),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "login",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_Login,
        .hasIndex = 19,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, login),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "password",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_Password,
        .hasIndex = 20,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, password),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "host",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_Host,
        .hasIndex = 21,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, host),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "deviceModel",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_DeviceModel,
        .hasIndex = 22,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, deviceModel),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "rfidId",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt32Value),
        .number = KEYAPISEVENTV1Event_FieldNumber_RfidId,
        .hasIndex = 23,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, rfidId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "codeId",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt32Value),
        .number = KEYAPISEVENTV1Event_FieldNumber_CodeId,
        .hasIndex = 24,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, codeId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "carNumber",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_CarNumber,
        .hasIndex = 25,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, carNumber),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "os",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_Os,
        .hasIndex = 26,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, os),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "pushToken",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_PushToken,
        .hasIndex = 27,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, pushToken),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "cameraUid",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_CameraUid,
        .hasIndex = 28,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, cameraUid),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "screenshotURL",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_ScreenshotURL,
        .hasIndex = 29,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, screenshotURL),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "vehicle",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_Vehicle,
        .hasIndex = 30,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, vehicle),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "courierCompanyName",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_CourierCompanyName,
        .hasIndex = 31,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, courierCompanyName),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "orderNumber",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_OrderNumber,
        .hasIndex = 32,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, orderNumber),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "courierId",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISEVENTV1Event_FieldNumber_CourierId,
        .hasIndex = 33,
        .offset = (uint32_t)offsetof(KEYAPISEVENTV1Event__storage_, courierId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISEVENTV1Event)
                                   messageName:@"Event"
                               fileDescription:&KEYAPISEVENTV1KeyapisEventEventV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISEVENTV1Event__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
#if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
    static const char *extraTextFormatInfo =
        "\001\036\n\241!!\000";
    [localDescriptor setupExtraTextInfo:extraTextFormatInfo];
#endif  // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

int32_t KEYAPISEVENTV1Event_Type_RawValue(KEYAPISEVENTV1Event *message) {
  GPBDescriptor *descriptor = [KEYAPISEVENTV1Event descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISEVENTV1Event_FieldNumber_Type];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISEVENTV1Event_Type_RawValue(KEYAPISEVENTV1Event *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISEVENTV1Event descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISEVENTV1Event_FieldNumber_Type];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISEVENTV1Event_DeviceType_RawValue(KEYAPISEVENTV1Event *message) {
  GPBDescriptor *descriptor = [KEYAPISEVENTV1Event descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISEVENTV1Event_FieldNumber_DeviceType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISEVENTV1Event_DeviceType_RawValue(KEYAPISEVENTV1Event *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISEVENTV1Event descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISEVENTV1Event_FieldNumber_DeviceType];
  GPBSetMessageRawEnumField(message, field, value);
}


#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
