// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/device/v1/keyapis_device_system_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/device/v1/KeyapisDeviceSystemV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "keyapis/device/v1/KeyapisDeviceDeviceV1.pbobjc.h"
#import "google/api/Visibility.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(KEYAPISDEVICEV1GetSystemRfidAutoGenerateSettingsRequest);
GPBObjCClassDeclaration(KEYAPISDEVICEV1GetSystemRfidAutoGenerateSettingsResponse);
GPBObjCClassDeclaration(KEYAPISDEVICEV1GetSystemStatusRequest);
GPBObjCClassDeclaration(KEYAPISDEVICEV1GetSystemStatusResponse);
GPBObjCClassDeclaration(KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsRequest);
GPBObjCClassDeclaration(KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse);
GPBObjCClassDeclaration(KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse_Error);
GPBObjCClassDeclaration(KEYAPISDEVICEV1RfidAutoGenerateSettings);
GPBObjCClassDeclaration(KEYAPISDEVICEV1ValidationError);

#pragma mark - KEYAPISDEVICEV1KeyapisDeviceSystemV1Root

@implementation KEYAPISDEVICEV1KeyapisDeviceSystemV1Root

+ (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]];
    [registry addExtensions:[GAPIVisibilityRoot extensionRegistry]];
  }
  return registry;
}

@end

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

#pragma mark - KEYAPISDEVICEV1GetSystemStatusRequest

@implementation KEYAPISDEVICEV1GetSystemStatusRequest


typedef struct KEYAPISDEVICEV1GetSystemStatusRequest__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISDEVICEV1GetSystemStatusRequest__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(KEYAPISDEVICEV1GetSystemStatusRequest)
                                   messageName:@"GetSystemStatusRequest"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceSystemV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISDEVICEV1GetSystemStatusRequest__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 - KEYAPISDEVICEV1GetSystemStatusResponse

@implementation KEYAPISDEVICEV1GetSystemStatusResponse


typedef struct KEYAPISDEVICEV1GetSystemStatusResponse__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISDEVICEV1GetSystemStatusResponse__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(KEYAPISDEVICEV1GetSystemStatusResponse)
                                   messageName:@"GetSystemStatusResponse"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceSystemV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISDEVICEV1GetSystemStatusResponse__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 - KEYAPISDEVICEV1RfidAutoGenerateSettings

@implementation KEYAPISDEVICEV1RfidAutoGenerateSettings

@dynamic isEnabled;

typedef struct KEYAPISDEVICEV1RfidAutoGenerateSettings__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISDEVICEV1RfidAutoGenerateSettings__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 = "isEnabled",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDEVICEV1RfidAutoGenerateSettings_FieldNumber_IsEnabled,
        .hasIndex = 0,
        .offset = 1,  // Stored in _has_storage_ to save space.
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeBool,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1RfidAutoGenerateSettings)
                                   messageName:@"RfidAutoGenerateSettings"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceSystemV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1RfidAutoGenerateSettings__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 - KEYAPISDEVICEV1GetSystemRfidAutoGenerateSettingsRequest

@implementation KEYAPISDEVICEV1GetSystemRfidAutoGenerateSettingsRequest


typedef struct KEYAPISDEVICEV1GetSystemRfidAutoGenerateSettingsRequest__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISDEVICEV1GetSystemRfidAutoGenerateSettingsRequest__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(KEYAPISDEVICEV1GetSystemRfidAutoGenerateSettingsRequest)
                                   messageName:@"GetSystemRfidAutoGenerateSettingsRequest"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceSystemV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISDEVICEV1GetSystemRfidAutoGenerateSettingsRequest__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 - KEYAPISDEVICEV1GetSystemRfidAutoGenerateSettingsResponse

@implementation KEYAPISDEVICEV1GetSystemRfidAutoGenerateSettingsResponse

@dynamic hasData_p, data_p;

typedef struct KEYAPISDEVICEV1GetSystemRfidAutoGenerateSettingsResponse__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISDEVICEV1RfidAutoGenerateSettings *data_p;
} KEYAPISDEVICEV1GetSystemRfidAutoGenerateSettingsResponse__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(KEYAPISDEVICEV1RfidAutoGenerateSettings),
        .number = KEYAPISDEVICEV1GetSystemRfidAutoGenerateSettingsResponse_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1GetSystemRfidAutoGenerateSettingsResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1GetSystemRfidAutoGenerateSettingsResponse)
                                   messageName:@"GetSystemRfidAutoGenerateSettingsResponse"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceSystemV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1GetSystemRfidAutoGenerateSettingsResponse__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 - KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsRequest

@implementation KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsRequest

@dynamic hasData_p, data_p;

typedef struct KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISDEVICEV1RfidAutoGenerateSettings *data_p;
} KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsRequest__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(KEYAPISDEVICEV1RfidAutoGenerateSettings),
        .number = KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsRequest_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsRequest)
                                   messageName:@"PutSystemRfidAutoGenerateSettingsRequest"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceSystemV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsRequest__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 - KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse

@implementation KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse

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

typedef struct KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISDEVICEV1RfidAutoGenerateSettings *data_p;
  KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse_Error *error;
} KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse__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(KEYAPISDEVICEV1RfidAutoGenerateSettings),
        .number = KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse_Error),
        .number = KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse)
                                   messageName:@"PutSystemRfidAutoGenerateSettingsResponse"
                               fileDescription:&KEYAPISDEVICEV1KeyapisDeviceSystemV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse__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 KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse_ClearTypeOneOfCase(KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse_Error

@implementation KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

void KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse_Error_ClearReasonOneOfCase(KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse_Error *message) {
  GPBDescriptor *descriptor = [KEYAPISDEVICEV1PutSystemRfidAutoGenerateSettingsResponse_Error descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}

#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
