// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: deviceapis/device/v1/deviceapis_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 "deviceapis/device/v1/DeviceapisDeviceSystemV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "protoc-gen-openapiv2/options/Annotations.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(DEVICEAPISDEVICEV1DeviceInfo);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1GetSystemInfoRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1GetSystemInfoResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1PostSystemRebootRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1PostSystemRebootResponse);

#pragma mark - DEVICEAPISDEVICEV1DeviceapisDeviceSystemV1Root

@implementation DEVICEAPISDEVICEV1DeviceapisDeviceSystemV1Root

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

@end

static GPBFileDescription DEVICEAPISDEVICEV1DeviceapisDeviceSystemV1Root_FileDescription = {
  .package = "deviceapis.device.v1",
  .prefix = "DEVICEAPISDEVICEV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - DEVICEAPISDEVICEV1PostSystemRebootRequest

@implementation DEVICEAPISDEVICEV1PostSystemRebootRequest


typedef struct DEVICEAPISDEVICEV1PostSystemRebootRequest__storage_ {
  uint32_t _has_storage_[1];
} DEVICEAPISDEVICEV1PostSystemRebootRequest__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(DEVICEAPISDEVICEV1PostSystemRebootRequest)
                                   messageName:@"PostSystemRebootRequest"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceSystemV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(DEVICEAPISDEVICEV1PostSystemRebootRequest__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 - DEVICEAPISDEVICEV1PostSystemRebootResponse

@implementation DEVICEAPISDEVICEV1PostSystemRebootResponse


typedef struct DEVICEAPISDEVICEV1PostSystemRebootResponse__storage_ {
  uint32_t _has_storage_[1];
} DEVICEAPISDEVICEV1PostSystemRebootResponse__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(DEVICEAPISDEVICEV1PostSystemRebootResponse)
                                   messageName:@"PostSystemRebootResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceSystemV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(DEVICEAPISDEVICEV1PostSystemRebootResponse__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 - DEVICEAPISDEVICEV1DeviceInfo

@implementation DEVICEAPISDEVICEV1DeviceInfo

@dynamic firmwareVersion;
@dynamic hardwareVersion;
@dynamic model;
@dynamic macAddress;
@dynamic ip;
@dynamic serialNumber;
@dynamic uptime;
@dynamic mcFirmwareVersion;

typedef struct DEVICEAPISDEVICEV1DeviceInfo__storage_ {
  uint32_t _has_storage_[1];
  int32_t uptime;
  NSString *firmwareVersion;
  NSString *hardwareVersion;
  NSString *model;
  NSString *macAddress;
  NSString *ip;
  NSString *serialNumber;
  NSString *mcFirmwareVersion;
} DEVICEAPISDEVICEV1DeviceInfo__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 = "firmwareVersion",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1DeviceInfo_FieldNumber_FirmwareVersion,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1DeviceInfo__storage_, firmwareVersion),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "hardwareVersion",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1DeviceInfo_FieldNumber_HardwareVersion,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1DeviceInfo__storage_, hardwareVersion),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "model",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1DeviceInfo_FieldNumber_Model,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1DeviceInfo__storage_, model),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "macAddress",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1DeviceInfo_FieldNumber_MacAddress,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1DeviceInfo__storage_, macAddress),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "ip",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1DeviceInfo_FieldNumber_Ip,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1DeviceInfo__storage_, ip),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "serialNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1DeviceInfo_FieldNumber_SerialNumber,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1DeviceInfo__storage_, serialNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "uptime",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1DeviceInfo_FieldNumber_Uptime,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1DeviceInfo__storage_, uptime),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "mcFirmwareVersion",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1DeviceInfo_FieldNumber_McFirmwareVersion,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1DeviceInfo__storage_, mcFirmwareVersion),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1DeviceInfo)
                                   messageName:@"DeviceInfo"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceSystemV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1DeviceInfo__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 - DEVICEAPISDEVICEV1GetSystemInfoRequest

@implementation DEVICEAPISDEVICEV1GetSystemInfoRequest


typedef struct DEVICEAPISDEVICEV1GetSystemInfoRequest__storage_ {
  uint32_t _has_storage_[1];
} DEVICEAPISDEVICEV1GetSystemInfoRequest__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(DEVICEAPISDEVICEV1GetSystemInfoRequest)
                                   messageName:@"GetSystemInfoRequest"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceSystemV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(DEVICEAPISDEVICEV1GetSystemInfoRequest__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 - DEVICEAPISDEVICEV1GetSystemInfoResponse

@implementation DEVICEAPISDEVICEV1GetSystemInfoResponse

@dynamic typeOneOfCase;
@dynamic data_p;

typedef struct DEVICEAPISDEVICEV1GetSystemInfoResponse__storage_ {
  uint32_t _has_storage_[2];
  DEVICEAPISDEVICEV1DeviceInfo *data_p;
} DEVICEAPISDEVICEV1GetSystemInfoResponse__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(DEVICEAPISDEVICEV1DeviceInfo),
        .number = DEVICEAPISDEVICEV1GetSystemInfoResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1GetSystemInfoResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1GetSystemInfoResponse)
                                   messageName:@"GetSystemInfoResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceSystemV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1GetSystemInfoResponse__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 DEVICEAPISDEVICEV1GetSystemInfoResponse_ClearTypeOneOfCase(DEVICEAPISDEVICEV1GetSystemInfoResponse *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1GetSystemInfoResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}

#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
