// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/preset/v1/keyapis_preset_events_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 "keyapis/preset/v1/KeyapisPresetEventsV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "keyapis/preset/v1/KeyapisPresetPresetV1.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(GPBTimestamp);
GPBObjCClassDeclaration(KEYAPISPRESETV1PostEventPresetInstallRequest);
GPBObjCClassDeclaration(KEYAPISPRESETV1PostEventPresetInstallResponse);
GPBObjCClassDeclaration(KEYAPISPRESETV1Preset);
GPBObjCClassDeclaration(KEYAPISPRESETV1PresetConfigurationFailTask);
GPBObjCClassDeclaration(KEYAPISPRESETV1PresetConfigurationSuccessTask);
GPBObjCClassDeclaration(KEYAPISPRESETV1PresetConfigurationTask);
GPBObjCClassDeclaration(KEYAPISPRESETV1PresetInstallTask);

#pragma mark - KEYAPISPRESETV1KeyapisPresetEventsV1Root

@implementation KEYAPISPRESETV1KeyapisPresetEventsV1Root

+ (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 KEYAPISPRESETV1KeyapisPresetEventsV1Root_FileDescription = {
  .package = "keyapis.preset.v1",
  .prefix = "KEYAPISPRESETV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - KEYAPISPRESETV1PostEventPresetInstallRequest

@implementation KEYAPISPRESETV1PostEventPresetInstallRequest

@dynamic id_p;

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

@implementation KEYAPISPRESETV1PostEventPresetInstallResponse


typedef struct KEYAPISPRESETV1PostEventPresetInstallResponse__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISPRESETV1PostEventPresetInstallResponse__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(KEYAPISPRESETV1PostEventPresetInstallResponse)
                                   messageName:@"PostEventPresetInstallResponse"
                               fileDescription:&KEYAPISPRESETV1KeyapisPresetEventsV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISPRESETV1PostEventPresetInstallResponse__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 - KEYAPISPRESETV1PresetConfigurationTask

@implementation KEYAPISPRESETV1PresetConfigurationTask

@dynamic requestId;
@dynamic hasPreset, preset;
@dynamic deviceId;
@dynamic model;
@dynamic host;
@dynamic username;
@dynamic password;
@dynamic ntpTimezone;

typedef struct KEYAPISPRESETV1PresetConfigurationTask__storage_ {
  uint32_t _has_storage_[1];
  int32_t deviceId;
  NSString *requestId;
  KEYAPISPRESETV1Preset *preset;
  NSString *model;
  NSString *host;
  NSString *username;
  NSString *password;
  NSString *ntpTimezone;
} KEYAPISPRESETV1PresetConfigurationTask__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 = "requestId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISPRESETV1PresetConfigurationTask_FieldNumber_RequestId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISPRESETV1PresetConfigurationTask__storage_, requestId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "preset",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISPRESETV1Preset),
        .number = KEYAPISPRESETV1PresetConfigurationTask_FieldNumber_Preset,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISPRESETV1PresetConfigurationTask__storage_, preset),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "deviceId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISPRESETV1PresetConfigurationTask_FieldNumber_DeviceId,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISPRESETV1PresetConfigurationTask__storage_, deviceId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "model",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISPRESETV1PresetConfigurationTask_FieldNumber_Model,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISPRESETV1PresetConfigurationTask__storage_, model),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "host",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISPRESETV1PresetConfigurationTask_FieldNumber_Host,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISPRESETV1PresetConfigurationTask__storage_, host),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "username",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISPRESETV1PresetConfigurationTask_FieldNumber_Username,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISPRESETV1PresetConfigurationTask__storage_, username),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "password",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISPRESETV1PresetConfigurationTask_FieldNumber_Password,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISPRESETV1PresetConfigurationTask__storage_, password),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "ntpTimezone",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISPRESETV1PresetConfigurationTask_FieldNumber_NtpTimezone,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(KEYAPISPRESETV1PresetConfigurationTask__storage_, ntpTimezone),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISPRESETV1PresetConfigurationTask)
                                   messageName:@"PresetConfigurationTask"
                               fileDescription:&KEYAPISPRESETV1KeyapisPresetEventsV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISPRESETV1PresetConfigurationTask__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 - KEYAPISPRESETV1PresetConfigurationSuccessTask

@implementation KEYAPISPRESETV1PresetConfigurationSuccessTask

@dynamic requestId;
@dynamic deviceId;
@dynamic presetId;
@dynamic hasConfiguredAt, configuredAt;

typedef struct KEYAPISPRESETV1PresetConfigurationSuccessTask__storage_ {
  uint32_t _has_storage_[1];
  int32_t deviceId;
  int32_t presetId;
  NSString *requestId;
  GPBTimestamp *configuredAt;
} KEYAPISPRESETV1PresetConfigurationSuccessTask__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 = "requestId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISPRESETV1PresetConfigurationSuccessTask_FieldNumber_RequestId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISPRESETV1PresetConfigurationSuccessTask__storage_, requestId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "deviceId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISPRESETV1PresetConfigurationSuccessTask_FieldNumber_DeviceId,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISPRESETV1PresetConfigurationSuccessTask__storage_, deviceId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "presetId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISPRESETV1PresetConfigurationSuccessTask_FieldNumber_PresetId,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISPRESETV1PresetConfigurationSuccessTask__storage_, presetId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "configuredAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISPRESETV1PresetConfigurationSuccessTask_FieldNumber_ConfiguredAt,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISPRESETV1PresetConfigurationSuccessTask__storage_, configuredAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISPRESETV1PresetConfigurationSuccessTask)
                                   messageName:@"PresetConfigurationSuccessTask"
                               fileDescription:&KEYAPISPRESETV1KeyapisPresetEventsV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISPRESETV1PresetConfigurationSuccessTask__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 - KEYAPISPRESETV1PresetConfigurationFailTask

@implementation KEYAPISPRESETV1PresetConfigurationFailTask

@dynamic requestId;
@dynamic deviceId;
@dynamic presetId;
@dynamic errorMessage;

typedef struct KEYAPISPRESETV1PresetConfigurationFailTask__storage_ {
  uint32_t _has_storage_[1];
  int32_t deviceId;
  int32_t presetId;
  NSString *requestId;
  NSString *errorMessage;
} KEYAPISPRESETV1PresetConfigurationFailTask__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 = "requestId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISPRESETV1PresetConfigurationFailTask_FieldNumber_RequestId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISPRESETV1PresetConfigurationFailTask__storage_, requestId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "deviceId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISPRESETV1PresetConfigurationFailTask_FieldNumber_DeviceId,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISPRESETV1PresetConfigurationFailTask__storage_, deviceId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "presetId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISPRESETV1PresetConfigurationFailTask_FieldNumber_PresetId,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISPRESETV1PresetConfigurationFailTask__storage_, presetId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "errorMessage",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISPRESETV1PresetConfigurationFailTask_FieldNumber_ErrorMessage,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISPRESETV1PresetConfigurationFailTask__storage_, errorMessage),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISPRESETV1PresetConfigurationFailTask)
                                   messageName:@"PresetConfigurationFailTask"
                               fileDescription:&KEYAPISPRESETV1KeyapisPresetEventsV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISPRESETV1PresetConfigurationFailTask__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 - KEYAPISPRESETV1PresetInstallTask

@implementation KEYAPISPRESETV1PresetInstallTask

@dynamic requestId;
@dynamic hasPreset, preset;

typedef struct KEYAPISPRESETV1PresetInstallTask__storage_ {
  uint32_t _has_storage_[1];
  NSString *requestId;
  KEYAPISPRESETV1Preset *preset;
} KEYAPISPRESETV1PresetInstallTask__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 = "requestId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISPRESETV1PresetInstallTask_FieldNumber_RequestId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISPRESETV1PresetInstallTask__storage_, requestId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "preset",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISPRESETV1Preset),
        .number = KEYAPISPRESETV1PresetInstallTask_FieldNumber_Preset,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISPRESETV1PresetInstallTask__storage_, preset),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISPRESETV1PresetInstallTask)
                                   messageName:@"PresetInstallTask"
                               fileDescription:&KEYAPISPRESETV1KeyapisPresetEventsV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISPRESETV1PresetInstallTask__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
