// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/telemetry_status/v1/keyapis_telemetry_status_device_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/telemetry_status/v1/KeyapisTelemetryStatusDeviceV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.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(KEYAPISTELEMETRYSTATUSV1DeviceStatus);
GPBObjCClassDeclaration(KEYAPISTELEMETRYSTATUSV1DeviceStatusFilter);
GPBObjCClassDeclaration(KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging);
GPBObjCClassDeclaration(KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountRequest);
GPBObjCClassDeclaration(KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountResponse);
GPBObjCClassDeclaration(KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListRequest);
GPBObjCClassDeclaration(KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListResponse);

#pragma mark - KEYAPISTELEMETRYSTATUSV1KeyapisTelemetryStatusDeviceV1Root

@implementation KEYAPISTELEMETRYSTATUSV1KeyapisTelemetryStatusDeviceV1Root

+ (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 KEYAPISTELEMETRYSTATUSV1KeyapisTelemetryStatusDeviceV1Root_FileDescription = {
  .package = "keyapis.telemetry_status.v1",
  .prefix = "KEYAPISTELEMETRYSTATUSV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum KEYAPISTELEMETRYSTATUSV1DeviceStatus_StatusType

GPBEnumDescriptor *KEYAPISTELEMETRYSTATUSV1DeviceStatus_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[] = {
        KEYAPISTELEMETRYSTATUSV1DeviceStatus_StatusType_StatusTypeUnknown,
        KEYAPISTELEMETRYSTATUSV1DeviceStatus_StatusType_Offline,
        KEYAPISTELEMETRYSTATUSV1DeviceStatus_StatusType_Online,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISTELEMETRYSTATUSV1DeviceStatus_StatusType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISTELEMETRYSTATUSV1DeviceStatus_StatusType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISTELEMETRYSTATUSV1DeviceStatus_StatusType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISTELEMETRYSTATUSV1DeviceStatus_StatusType_StatusTypeUnknown:
    case KEYAPISTELEMETRYSTATUSV1DeviceStatus_StatusType_Offline:
    case KEYAPISTELEMETRYSTATUSV1DeviceStatus_StatusType_Online:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_OrderByType

GPBEnumDescriptor *KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_OrderByType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "OrderByTypeUnknown\000CheckedAt\000DeviceId\000";
    static const int32_t values[] = {
        KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_OrderByType_OrderByTypeUnknown,
        KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_OrderByType_CheckedAt,
        KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_OrderByType_DeviceId,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_OrderByType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_OrderByType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_OrderByType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_OrderByType_OrderByTypeUnknown:
    case KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_OrderByType_CheckedAt:
    case KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_OrderByType_DeviceId:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_DirectionType

GPBEnumDescriptor *KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_DirectionType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "DirectionTypeUnknown\000Desc\000Asc\000";
    static const int32_t values[] = {
        KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_DirectionType_DirectionTypeUnknown,
        KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_DirectionType_Desc,
        KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_DirectionType_Asc,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_DirectionType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_DirectionType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_DirectionType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_DirectionType_DirectionTypeUnknown:
    case KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_DirectionType_Desc:
    case KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_DirectionType_Asc:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISTELEMETRYSTATUSV1DeviceStatus

@implementation KEYAPISTELEMETRYSTATUSV1DeviceStatus

@dynamic deviceId;
@dynamic ip;
@dynamic hasCheckedAt, checkedAt;
@dynamic statusType;

typedef struct KEYAPISTELEMETRYSTATUSV1DeviceStatus__storage_ {
  uint32_t _has_storage_[1];
  int32_t deviceId;
  KEYAPISTELEMETRYSTATUSV1DeviceStatus_StatusType statusType;
  NSString *ip;
  GPBTimestamp *checkedAt;
} KEYAPISTELEMETRYSTATUSV1DeviceStatus__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 = "deviceId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYSTATUSV1DeviceStatus_FieldNumber_DeviceId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYSTATUSV1DeviceStatus__storage_, deviceId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "ip",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYSTATUSV1DeviceStatus_FieldNumber_Ip,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYSTATUSV1DeviceStatus__storage_, ip),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "checkedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISTELEMETRYSTATUSV1DeviceStatus_FieldNumber_CheckedAt,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYSTATUSV1DeviceStatus__storage_, checkedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "statusType",
        .dataTypeSpecific.enumDescFunc = KEYAPISTELEMETRYSTATUSV1DeviceStatus_StatusType_EnumDescriptor,
        .number = KEYAPISTELEMETRYSTATUSV1DeviceStatus_FieldNumber_StatusType,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYSTATUSV1DeviceStatus__storage_, statusType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYSTATUSV1DeviceStatus)
                                   messageName:@"DeviceStatus"
                               fileDescription:&KEYAPISTELEMETRYSTATUSV1KeyapisTelemetryStatusDeviceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYSTATUSV1DeviceStatus__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 KEYAPISTELEMETRYSTATUSV1DeviceStatus_StatusType_RawValue(KEYAPISTELEMETRYSTATUSV1DeviceStatus *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYSTATUSV1DeviceStatus descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYSTATUSV1DeviceStatus_FieldNumber_StatusType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISTELEMETRYSTATUSV1DeviceStatus_StatusType_RawValue(KEYAPISTELEMETRYSTATUSV1DeviceStatus *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYSTATUSV1DeviceStatus descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYSTATUSV1DeviceStatus_FieldNumber_StatusType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISTELEMETRYSTATUSV1DeviceStatusFilter

@implementation KEYAPISTELEMETRYSTATUSV1DeviceStatusFilter

@dynamic deviceIdsArray, deviceIdsArray_Count;
@dynamic statusTypesArray, statusTypesArray_Count;

typedef struct KEYAPISTELEMETRYSTATUSV1DeviceStatusFilter__storage_ {
  uint32_t _has_storage_[1];
  GPBInt32Array *deviceIdsArray;
  GPBEnumArray *statusTypesArray;
} KEYAPISTELEMETRYSTATUSV1DeviceStatusFilter__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 = "deviceIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYSTATUSV1DeviceStatusFilter_FieldNumber_DeviceIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYSTATUSV1DeviceStatusFilter__storage_, deviceIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "statusTypesArray",
        .dataTypeSpecific.enumDescFunc = KEYAPISTELEMETRYSTATUSV1DeviceStatus_StatusType_EnumDescriptor,
        .number = KEYAPISTELEMETRYSTATUSV1DeviceStatusFilter_FieldNumber_StatusTypesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYSTATUSV1DeviceStatusFilter__storage_, statusTypesArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked | GPBFieldHasEnumDescriptor),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYSTATUSV1DeviceStatusFilter)
                                   messageName:@"DeviceStatusFilter"
                               fileDescription:&KEYAPISTELEMETRYSTATUSV1KeyapisTelemetryStatusDeviceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYSTATUSV1DeviceStatusFilter__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 - KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging

@implementation KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging

@dynamic orderByType;
@dynamic directionType;
@dynamic limit;
@dynamic offset;

typedef struct KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_OrderByType orderByType;
  KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_DirectionType directionType;
  int32_t limit;
  int32_t offset;
} KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging__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 = "orderByType",
        .dataTypeSpecific.enumDescFunc = KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_OrderByType_EnumDescriptor,
        .number = KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_FieldNumber_OrderByType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging__storage_, orderByType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "directionType",
        .dataTypeSpecific.enumDescFunc = KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_DirectionType_EnumDescriptor,
        .number = KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_FieldNumber_DirectionType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging__storage_, directionType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "limit",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_FieldNumber_Limit,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging__storage_, limit),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "offset",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_FieldNumber_Offset,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging__storage_, offset),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging)
                                   messageName:@"DeviceStatusPaging"
                               fileDescription:&KEYAPISTELEMETRYSTATUSV1KeyapisTelemetryStatusDeviceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging__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 KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_OrderByType_RawValue(KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_FieldNumber_OrderByType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_OrderByType_RawValue(KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_FieldNumber_OrderByType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_DirectionType_RawValue(KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_FieldNumber_DirectionType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_DirectionType_RawValue(KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging_FieldNumber_DirectionType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListRequest

@implementation KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListRequest

@dynamic paginationOneOfCase;
@dynamic hasFilter, filter;
@dynamic paging;

typedef struct KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListRequest__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISTELEMETRYSTATUSV1DeviceStatusFilter *filter;
  KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging *paging;
} KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListRequest__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 = "filter",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYSTATUSV1DeviceStatusFilter),
        .number = KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "paging",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYSTATUSV1DeviceStatusPaging),
        .number = KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListRequest_FieldNumber_Paging,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListRequest__storage_, paging),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListRequest)
                                   messageName:@"GetDeviceStatusListRequest"
                               fileDescription:&KEYAPISTELEMETRYSTATUSV1KeyapisTelemetryStatusDeviceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListRequest__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "pagination",
    };
    [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 KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListRequest_ClearPaginationOneOfCase(KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListResponse

@implementation KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListResponse

@dynamic typeOneOfCase;
@dynamic data_p;

typedef struct KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISTELEMETRYSTATUSV1DeviceStatus *data_p;
} KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListResponse__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(KEYAPISTELEMETRYSTATUSV1DeviceStatus),
        .number = KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListResponse)
                                   messageName:@"GetDeviceStatusListResponse"
                               fileDescription:&KEYAPISTELEMETRYSTATUSV1KeyapisTelemetryStatusDeviceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListResponse__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 KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListResponse_ClearTypeOneOfCase(KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYSTATUSV1GetDeviceStatusListResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountRequest

@implementation KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountRequest

@dynamic hasFilter, filter;

typedef struct KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISTELEMETRYSTATUSV1DeviceStatusFilter *filter;
} KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountRequest__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 = "filter",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYSTATUSV1DeviceStatusFilter),
        .number = KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountRequest)
                                   messageName:@"GetDeviceStatusCountRequest"
                               fileDescription:&KEYAPISTELEMETRYSTATUSV1KeyapisTelemetryStatusDeviceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountRequest__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 - KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountResponse

@implementation KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountResponse

@dynamic typeOneOfCase;
@dynamic data_p;

typedef struct KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountResponse__storage_ {
  uint32_t _has_storage_[2];
  int32_t data_p;
} KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountResponse__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 = Nil,
        .number = KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountResponse)
                                   messageName:@"GetDeviceStatusCountResponse"
                               fileDescription:&KEYAPISTELEMETRYSTATUSV1KeyapisTelemetryStatusDeviceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountResponse__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 KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountResponse_ClearTypeOneOfCase(KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYSTATUSV1GetDeviceStatusCountResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}

#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
