// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/telemetry_metric/v1/keyapis_telemetry_metric_measurement_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_metric/v1/KeyapisTelemetryMetricMeasurementV1.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(GPBBoolValue);
GPBObjCClassDeclaration(GPBInt32Value);
GPBObjCClassDeclaration(GPBStringValue);
GPBObjCClassDeclaration(GPBTimestamp);
GPBObjCClassDeclaration(KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountRequest);
GPBObjCClassDeclaration(KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountResponse);
GPBObjCClassDeclaration(KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListRequest);
GPBObjCClassDeclaration(KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListResponse);
GPBObjCClassDeclaration(KEYAPISTELEMETRYMETRICYV1GetMeasurementCountRequest);
GPBObjCClassDeclaration(KEYAPISTELEMETRYMETRICYV1GetMeasurementCountResponse);
GPBObjCClassDeclaration(KEYAPISTELEMETRYMETRICYV1GetMeasurementListRequest);
GPBObjCClassDeclaration(KEYAPISTELEMETRYMETRICYV1GetMeasurementListResponse);
GPBObjCClassDeclaration(KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest);
GPBObjCClassDeclaration(KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateResponse);
GPBObjCClassDeclaration(KEYAPISTELEMETRYMETRICYV1Measurement);
GPBObjCClassDeclaration(KEYAPISTELEMETRYMETRICYV1MeasurementFilter);
GPBObjCClassDeclaration(KEYAPISTELEMETRYMETRICYV1MeasurementPaging);
GPBObjCClassDeclaration(KEYAPISTELEMETRYMETRICYV1PostMeasurementHalfDuplexRequest);
GPBObjCClassDeclaration(KEYAPISTELEMETRYMETRICYV1PostMeasurementHalfDuplexResponse);
GPBObjCClassDeclaration(KEYAPISTELEMETRYMETRICYV1PostMeasurementRequest);
GPBObjCClassDeclaration(KEYAPISTELEMETRYMETRICYV1PostMeasurementResponse);
GPBObjCClassDeclaration(KEYAPISTELEMETRYMETRICYV1ReportData);
GPBObjCClassDeclaration(KEYAPISTELEMETRYMETRICYV1ReportEntry);

#pragma mark - KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root

@implementation KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root

+ (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 KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root_FileDescription = {
  .package = "keyapis.telemetry_metric.v1",
  .prefix = "KEYAPISTELEMETRYMETRICYV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum KEYAPISTELEMETRYMETRICYV1MeasurementPaging_OrderByType

GPBEnumDescriptor *KEYAPISTELEMETRYMETRICYV1MeasurementPaging_OrderByType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "OrderByTypeUnknown\000IndicatorId\000SyncedAt\000";
    static const int32_t values[] = {
        KEYAPISTELEMETRYMETRICYV1MeasurementPaging_OrderByType_OrderByTypeUnknown,
        KEYAPISTELEMETRYMETRICYV1MeasurementPaging_OrderByType_IndicatorId,
        KEYAPISTELEMETRYMETRICYV1MeasurementPaging_OrderByType_SyncedAt,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISTELEMETRYMETRICYV1MeasurementPaging_OrderByType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISTELEMETRYMETRICYV1MeasurementPaging_OrderByType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISTELEMETRYMETRICYV1MeasurementPaging_OrderByType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISTELEMETRYMETRICYV1MeasurementPaging_OrderByType_OrderByTypeUnknown:
    case KEYAPISTELEMETRYMETRICYV1MeasurementPaging_OrderByType_IndicatorId:
    case KEYAPISTELEMETRYMETRICYV1MeasurementPaging_OrderByType_SyncedAt:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISTELEMETRYMETRICYV1MeasurementPaging_DirectionType

GPBEnumDescriptor *KEYAPISTELEMETRYMETRICYV1MeasurementPaging_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[] = {
        KEYAPISTELEMETRYMETRICYV1MeasurementPaging_DirectionType_DirectionTypeUnknown,
        KEYAPISTELEMETRYMETRICYV1MeasurementPaging_DirectionType_Desc,
        KEYAPISTELEMETRYMETRICYV1MeasurementPaging_DirectionType_Asc,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISTELEMETRYMETRICYV1MeasurementPaging_DirectionType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISTELEMETRYMETRICYV1MeasurementPaging_DirectionType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISTELEMETRYMETRICYV1MeasurementPaging_DirectionType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISTELEMETRYMETRICYV1MeasurementPaging_DirectionType_DirectionTypeUnknown:
    case KEYAPISTELEMETRYMETRICYV1MeasurementPaging_DirectionType_Desc:
    case KEYAPISTELEMETRYMETRICYV1MeasurementPaging_DirectionType_Asc:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType

GPBEnumDescriptor *KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "DeviceTypeUnknown\000Hub\000PulseCounterRecord"
        "er\000PulseCounterRecorderLr\000MeteringDevice"
        "\000InterfaceConverter\000MBusHub\000Communicatio"
        "nModuleLr\000BaseLr\000";
    static const int32_t values[] = {
        KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_DeviceTypeUnknown,
        KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_Hub,
        KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_PulseCounterRecorder,
        KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_PulseCounterRecorderLr,
        KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_MeteringDevice,
        KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_InterfaceConverter,
        KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_MBusHub,
        KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_CommunicationModuleLr,
        KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_BaseLr,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_DeviceTypeUnknown:
    case KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_Hub:
    case KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_PulseCounterRecorder:
    case KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_PulseCounterRecorderLr:
    case KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_MeteringDevice:
    case KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_InterfaceConverter:
    case KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_MBusHub:
    case KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_CommunicationModuleLr:
    case KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_BaseLr:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISTELEMETRYMETRICYV1Measurement_MetricType

GPBEnumDescriptor *KEYAPISTELEMETRYMETRICYV1Measurement_MetricType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "MetricTypeUnknown\000HotWater\000ColdWater\000Hea"
        "t\000Gas\000Electricity\000";
    static const int32_t values[] = {
        KEYAPISTELEMETRYMETRICYV1Measurement_MetricType_MetricTypeUnknown,
        KEYAPISTELEMETRYMETRICYV1Measurement_MetricType_HotWater,
        KEYAPISTELEMETRYMETRICYV1Measurement_MetricType_ColdWater,
        KEYAPISTELEMETRYMETRICYV1Measurement_MetricType_Heat,
        KEYAPISTELEMETRYMETRICYV1Measurement_MetricType_Gas,
        KEYAPISTELEMETRYMETRICYV1Measurement_MetricType_Electricity,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISTELEMETRYMETRICYV1Measurement_MetricType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISTELEMETRYMETRICYV1Measurement_MetricType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISTELEMETRYMETRICYV1Measurement_MetricType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISTELEMETRYMETRICYV1Measurement_MetricType_MetricTypeUnknown:
    case KEYAPISTELEMETRYMETRICYV1Measurement_MetricType_HotWater:
    case KEYAPISTELEMETRYMETRICYV1Measurement_MetricType_ColdWater:
    case KEYAPISTELEMETRYMETRICYV1Measurement_MetricType_Heat:
    case KEYAPISTELEMETRYMETRICYV1Measurement_MetricType_Gas:
    case KEYAPISTELEMETRYMETRICYV1Measurement_MetricType_Electricity:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISTELEMETRYMETRICYV1Measurement_UnitType

GPBEnumDescriptor *KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "UnitTypeUnknown\000Percent\000C\000Wt\000Gkal\000Value\000"
        "Kwh\000KgCm2\000KgfCm2\000M3\000M3H\000Mpa\000Ms\000Boolean\000T"
        "\000TH\000H\000NonMeasurable\000Imp\000J\000Kj\000Gj\000Wth\000Kwt\000"
        "Min\000S\000";
    static const int32_t values[] = {
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_UnitTypeUnknown,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Percent,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_C,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Wt,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Gkal,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Value,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Kwh,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_KgCm2,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_KgfCm2,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_M3,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_M3H,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Mpa,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Ms,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Boolean,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_T,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_TH,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_H,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_NonMeasurable,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Imp,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_J,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Kj,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Gj,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Wth,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Kwt,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Min,
        KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_S,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISTELEMETRYMETRICYV1Measurement_UnitType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_UnitTypeUnknown:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Percent:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_C:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Wt:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Gkal:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Value:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Kwh:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_KgCm2:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_KgfCm2:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_M3:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_M3H:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Mpa:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Ms:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Boolean:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_T:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_TH:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_H:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_NonMeasurable:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Imp:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_J:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Kj:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Gj:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Wth:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Kwt:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_Min:
    case KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_S:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISTELEMETRYMETRICYV1GetMeasurementListRequest

@implementation KEYAPISTELEMETRYMETRICYV1GetMeasurementListRequest

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

typedef struct KEYAPISTELEMETRYMETRICYV1GetMeasurementListRequest__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISTELEMETRYMETRICYV1MeasurementFilter *filter;
  KEYAPISTELEMETRYMETRICYV1MeasurementPaging *paging;
} KEYAPISTELEMETRYMETRICYV1GetMeasurementListRequest__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(KEYAPISTELEMETRYMETRICYV1MeasurementFilter),
        .number = KEYAPISTELEMETRYMETRICYV1GetMeasurementListRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1GetMeasurementListRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "paging",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYMETRICYV1MeasurementPaging),
        .number = KEYAPISTELEMETRYMETRICYV1GetMeasurementListRequest_FieldNumber_Paging,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1GetMeasurementListRequest__storage_, paging),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYMETRICYV1GetMeasurementListRequest)
                                   messageName:@"GetMeasurementListRequest"
                               fileDescription:&KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYMETRICYV1GetMeasurementListRequest__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 KEYAPISTELEMETRYMETRICYV1GetMeasurementListRequest_ClearPaginationOneOfCase(KEYAPISTELEMETRYMETRICYV1GetMeasurementListRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYMETRICYV1GetMeasurementListRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListRequest

@implementation KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListRequest

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

typedef struct KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListRequest__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISTELEMETRYMETRICYV1MeasurementFilter *filter;
  KEYAPISTELEMETRYMETRICYV1MeasurementPaging *paging;
} KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListRequest__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(KEYAPISTELEMETRYMETRICYV1MeasurementFilter),
        .number = KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "paging",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYMETRICYV1MeasurementPaging),
        .number = KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListRequest_FieldNumber_Paging,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListRequest__storage_, paging),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListRequest)
                                   messageName:@"GetMeasurementConvertedListRequest"
                               fileDescription:&KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListRequest__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 KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListRequest_ClearPaginationOneOfCase(KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISTELEMETRYMETRICYV1GetMeasurementListResponse

@implementation KEYAPISTELEMETRYMETRICYV1GetMeasurementListResponse

@dynamic typeOneOfCase;
@dynamic data_p;

typedef struct KEYAPISTELEMETRYMETRICYV1GetMeasurementListResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISTELEMETRYMETRICYV1Measurement *data_p;
} KEYAPISTELEMETRYMETRICYV1GetMeasurementListResponse__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(KEYAPISTELEMETRYMETRICYV1Measurement),
        .number = KEYAPISTELEMETRYMETRICYV1GetMeasurementListResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1GetMeasurementListResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYMETRICYV1GetMeasurementListResponse)
                                   messageName:@"GetMeasurementListResponse"
                               fileDescription:&KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYMETRICYV1GetMeasurementListResponse__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 KEYAPISTELEMETRYMETRICYV1GetMeasurementListResponse_ClearTypeOneOfCase(KEYAPISTELEMETRYMETRICYV1GetMeasurementListResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYMETRICYV1GetMeasurementListResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListResponse

@implementation KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListResponse

@dynamic typeOneOfCase;
@dynamic data_p;

typedef struct KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISTELEMETRYMETRICYV1Measurement *data_p;
} KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListResponse__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(KEYAPISTELEMETRYMETRICYV1Measurement),
        .number = KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListResponse)
                                   messageName:@"GetMeasurementConvertedListResponse"
                               fileDescription:&KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListResponse__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 KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListResponse_ClearTypeOneOfCase(KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedListResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISTELEMETRYMETRICYV1MeasurementFilter

@implementation KEYAPISTELEMETRYMETRICYV1MeasurementFilter

@dynamic fiasIdsArray, fiasIdsArray_Count;
@dynamic deviceIdsArray, deviceIdsArray_Count;
@dynamic indicatorIdsArray, indicatorIdsArray_Count;
@dynamic hasBeginSyncedAt, beginSyncedAt;
@dynamic hasEndSyncedAt, endSyncedAt;
@dynamic deviceModelsArray, deviceModelsArray_Count;
@dynamic deviceTypesArray, deviceTypesArray_Count;
@dynamic metricTypesArray, metricTypesArray_Count;
@dynamic hasIsBorderMeasurementsOnly, isBorderMeasurementsOnly;

typedef struct KEYAPISTELEMETRYMETRICYV1MeasurementFilter__storage_ {
  uint32_t _has_storage_[1];
  NSMutableArray *fiasIdsArray;
  GPBInt32Array *deviceIdsArray;
  GPBInt32Array *indicatorIdsArray;
  GPBTimestamp *beginSyncedAt;
  GPBTimestamp *endSyncedAt;
  NSMutableArray *deviceModelsArray;
  GPBEnumArray *deviceTypesArray;
  GPBEnumArray *metricTypesArray;
  GPBBoolValue *isBorderMeasurementsOnly;
} KEYAPISTELEMETRYMETRICYV1MeasurementFilter__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 = "fiasIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYMETRICYV1MeasurementFilter_FieldNumber_FiasIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1MeasurementFilter__storage_, fiasIdsArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "deviceIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYMETRICYV1MeasurementFilter_FieldNumber_DeviceIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1MeasurementFilter__storage_, deviceIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "indicatorIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYMETRICYV1MeasurementFilter_FieldNumber_IndicatorIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1MeasurementFilter__storage_, indicatorIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "beginSyncedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISTELEMETRYMETRICYV1MeasurementFilter_FieldNumber_BeginSyncedAt,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1MeasurementFilter__storage_, beginSyncedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "endSyncedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISTELEMETRYMETRICYV1MeasurementFilter_FieldNumber_EndSyncedAt,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1MeasurementFilter__storage_, endSyncedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "deviceModelsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYMETRICYV1MeasurementFilter_FieldNumber_DeviceModelsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1MeasurementFilter__storage_, deviceModelsArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "deviceTypesArray",
        .dataTypeSpecific.enumDescFunc = KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_EnumDescriptor,
        .number = KEYAPISTELEMETRYMETRICYV1MeasurementFilter_FieldNumber_DeviceTypesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1MeasurementFilter__storage_, deviceTypesArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked | GPBFieldHasEnumDescriptor),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "metricTypesArray",
        .dataTypeSpecific.enumDescFunc = KEYAPISTELEMETRYMETRICYV1Measurement_MetricType_EnumDescriptor,
        .number = KEYAPISTELEMETRYMETRICYV1MeasurementFilter_FieldNumber_MetricTypesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1MeasurementFilter__storage_, metricTypesArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked | GPBFieldHasEnumDescriptor),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "isBorderMeasurementsOnly",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBBoolValue),
        .number = KEYAPISTELEMETRYMETRICYV1MeasurementFilter_FieldNumber_IsBorderMeasurementsOnly,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1MeasurementFilter__storage_, isBorderMeasurementsOnly),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYMETRICYV1MeasurementFilter)
                                   messageName:@"MeasurementFilter"
                               fileDescription:&KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYMETRICYV1MeasurementFilter__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 - KEYAPISTELEMETRYMETRICYV1GetMeasurementCountRequest

@implementation KEYAPISTELEMETRYMETRICYV1GetMeasurementCountRequest

@dynamic hasFilter, filter;

typedef struct KEYAPISTELEMETRYMETRICYV1GetMeasurementCountRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISTELEMETRYMETRICYV1MeasurementFilter *filter;
} KEYAPISTELEMETRYMETRICYV1GetMeasurementCountRequest__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(KEYAPISTELEMETRYMETRICYV1MeasurementFilter),
        .number = KEYAPISTELEMETRYMETRICYV1GetMeasurementCountRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1GetMeasurementCountRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYMETRICYV1GetMeasurementCountRequest)
                                   messageName:@"GetMeasurementCountRequest"
                               fileDescription:&KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYMETRICYV1GetMeasurementCountRequest__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 - KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountRequest

@implementation KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountRequest

@dynamic hasFilter, filter;

typedef struct KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISTELEMETRYMETRICYV1MeasurementFilter *filter;
} KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountRequest__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(KEYAPISTELEMETRYMETRICYV1MeasurementFilter),
        .number = KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountRequest)
                                   messageName:@"GetMeasurementConvertedCountRequest"
                               fileDescription:&KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountRequest__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 - KEYAPISTELEMETRYMETRICYV1GetMeasurementCountResponse

@implementation KEYAPISTELEMETRYMETRICYV1GetMeasurementCountResponse

@dynamic typeOneOfCase;
@dynamic data_p;

typedef struct KEYAPISTELEMETRYMETRICYV1GetMeasurementCountResponse__storage_ {
  uint32_t _has_storage_[2];
  int32_t data_p;
} KEYAPISTELEMETRYMETRICYV1GetMeasurementCountResponse__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 = KEYAPISTELEMETRYMETRICYV1GetMeasurementCountResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1GetMeasurementCountResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYMETRICYV1GetMeasurementCountResponse)
                                   messageName:@"GetMeasurementCountResponse"
                               fileDescription:&KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYMETRICYV1GetMeasurementCountResponse__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 KEYAPISTELEMETRYMETRICYV1GetMeasurementCountResponse_ClearTypeOneOfCase(KEYAPISTELEMETRYMETRICYV1GetMeasurementCountResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYMETRICYV1GetMeasurementCountResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountResponse

@implementation KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountResponse

@dynamic typeOneOfCase;
@dynamic data_p;

typedef struct KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountResponse__storage_ {
  uint32_t _has_storage_[2];
  int32_t data_p;
} KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountResponse__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 = KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountResponse)
                                   messageName:@"GetMeasurementConvertedCountResponse"
                               fileDescription:&KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountResponse__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 KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountResponse_ClearTypeOneOfCase(KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYMETRICYV1GetMeasurementConvertedCountResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISTELEMETRYMETRICYV1MeasurementPaging

@implementation KEYAPISTELEMETRYMETRICYV1MeasurementPaging

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

typedef struct KEYAPISTELEMETRYMETRICYV1MeasurementPaging__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISTELEMETRYMETRICYV1MeasurementPaging_OrderByType orderByType;
  KEYAPISTELEMETRYMETRICYV1MeasurementPaging_DirectionType directionType;
  int32_t limit;
  int32_t offset;
} KEYAPISTELEMETRYMETRICYV1MeasurementPaging__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 = KEYAPISTELEMETRYMETRICYV1MeasurementPaging_OrderByType_EnumDescriptor,
        .number = KEYAPISTELEMETRYMETRICYV1MeasurementPaging_FieldNumber_OrderByType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1MeasurementPaging__storage_, orderByType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "directionType",
        .dataTypeSpecific.enumDescFunc = KEYAPISTELEMETRYMETRICYV1MeasurementPaging_DirectionType_EnumDescriptor,
        .number = KEYAPISTELEMETRYMETRICYV1MeasurementPaging_FieldNumber_DirectionType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1MeasurementPaging__storage_, directionType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "limit",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYMETRICYV1MeasurementPaging_FieldNumber_Limit,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1MeasurementPaging__storage_, limit),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "offset",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYMETRICYV1MeasurementPaging_FieldNumber_Offset,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1MeasurementPaging__storage_, offset),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYMETRICYV1MeasurementPaging)
                                   messageName:@"MeasurementPaging"
                               fileDescription:&KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYMETRICYV1MeasurementPaging__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 KEYAPISTELEMETRYMETRICYV1MeasurementPaging_OrderByType_RawValue(KEYAPISTELEMETRYMETRICYV1MeasurementPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYMETRICYV1MeasurementPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYMETRICYV1MeasurementPaging_FieldNumber_OrderByType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISTELEMETRYMETRICYV1MeasurementPaging_OrderByType_RawValue(KEYAPISTELEMETRYMETRICYV1MeasurementPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYMETRICYV1MeasurementPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYMETRICYV1MeasurementPaging_FieldNumber_OrderByType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISTELEMETRYMETRICYV1MeasurementPaging_DirectionType_RawValue(KEYAPISTELEMETRYMETRICYV1MeasurementPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYMETRICYV1MeasurementPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYMETRICYV1MeasurementPaging_FieldNumber_DirectionType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISTELEMETRYMETRICYV1MeasurementPaging_DirectionType_RawValue(KEYAPISTELEMETRYMETRICYV1MeasurementPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYMETRICYV1MeasurementPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYMETRICYV1MeasurementPaging_FieldNumber_DirectionType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISTELEMETRYMETRICYV1PostMeasurementRequest

@implementation KEYAPISTELEMETRYMETRICYV1PostMeasurementRequest

@dynamic hasData_p, data_p;

typedef struct KEYAPISTELEMETRYMETRICYV1PostMeasurementRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISTELEMETRYMETRICYV1Measurement *data_p;
} KEYAPISTELEMETRYMETRICYV1PostMeasurementRequest__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(KEYAPISTELEMETRYMETRICYV1Measurement),
        .number = KEYAPISTELEMETRYMETRICYV1PostMeasurementRequest_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1PostMeasurementRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYMETRICYV1PostMeasurementRequest)
                                   messageName:@"PostMeasurementRequest"
                               fileDescription:&KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYMETRICYV1PostMeasurementRequest__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 - KEYAPISTELEMETRYMETRICYV1PostMeasurementResponse

@implementation KEYAPISTELEMETRYMETRICYV1PostMeasurementResponse


typedef struct KEYAPISTELEMETRYMETRICYV1PostMeasurementResponse__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISTELEMETRYMETRICYV1PostMeasurementResponse__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(KEYAPISTELEMETRYMETRICYV1PostMeasurementResponse)
                                   messageName:@"PostMeasurementResponse"
                               fileDescription:&KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISTELEMETRYMETRICYV1PostMeasurementResponse__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 - KEYAPISTELEMETRYMETRICYV1PostMeasurementHalfDuplexRequest

@implementation KEYAPISTELEMETRYMETRICYV1PostMeasurementHalfDuplexRequest

@dynamic hasData_p, data_p;

typedef struct KEYAPISTELEMETRYMETRICYV1PostMeasurementHalfDuplexRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISTELEMETRYMETRICYV1Measurement *data_p;
} KEYAPISTELEMETRYMETRICYV1PostMeasurementHalfDuplexRequest__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(KEYAPISTELEMETRYMETRICYV1Measurement),
        .number = KEYAPISTELEMETRYMETRICYV1PostMeasurementHalfDuplexRequest_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1PostMeasurementHalfDuplexRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYMETRICYV1PostMeasurementHalfDuplexRequest)
                                   messageName:@"PostMeasurementHalfDuplexRequest"
                               fileDescription:&KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYMETRICYV1PostMeasurementHalfDuplexRequest__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 - KEYAPISTELEMETRYMETRICYV1PostMeasurementHalfDuplexResponse

@implementation KEYAPISTELEMETRYMETRICYV1PostMeasurementHalfDuplexResponse


typedef struct KEYAPISTELEMETRYMETRICYV1PostMeasurementHalfDuplexResponse__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISTELEMETRYMETRICYV1PostMeasurementHalfDuplexResponse__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(KEYAPISTELEMETRYMETRICYV1PostMeasurementHalfDuplexResponse)
                                   messageName:@"PostMeasurementHalfDuplexResponse"
                               fileDescription:&KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISTELEMETRYMETRICYV1PostMeasurementHalfDuplexResponse__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 - KEYAPISTELEMETRYMETRICYV1Measurement

@implementation KEYAPISTELEMETRYMETRICYV1Measurement

@dynamic indicatorId;
@dynamic value;
@dynamic hasSyncedAt, syncedAt;
@dynamic hasFiasId, fiasId;
@dynamic hasDeviceId, deviceId;
@dynamic hasDeviceParentId, deviceParentId;
@dynamic hasDeviceModel, deviceModel;
@dynamic deviceType;
@dynamic metricType;
@dynamic hasChangedAt, changedAt;
@dynamic utcOffset;
@dynamic unitType;

typedef struct KEYAPISTELEMETRYMETRICYV1Measurement__storage_ {
  uint32_t _has_storage_[1];
  int32_t indicatorId;
  float value;
  KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType deviceType;
  KEYAPISTELEMETRYMETRICYV1Measurement_MetricType metricType;
  int32_t utcOffset;
  KEYAPISTELEMETRYMETRICYV1Measurement_UnitType unitType;
  GPBTimestamp *syncedAt;
  GPBStringValue *fiasId;
  GPBInt32Value *deviceId;
  GPBInt32Value *deviceParentId;
  GPBStringValue *deviceModel;
  GPBTimestamp *changedAt;
} KEYAPISTELEMETRYMETRICYV1Measurement__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 = "indicatorId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYMETRICYV1Measurement_FieldNumber_IndicatorId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1Measurement__storage_, indicatorId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "value",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYMETRICYV1Measurement_FieldNumber_Value,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1Measurement__storage_, value),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeFloat,
      },
      {
        .name = "syncedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISTELEMETRYMETRICYV1Measurement_FieldNumber_SyncedAt,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1Measurement__storage_, syncedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "fiasId",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISTELEMETRYMETRICYV1Measurement_FieldNumber_FiasId,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1Measurement__storage_, fiasId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "deviceId",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt32Value),
        .number = KEYAPISTELEMETRYMETRICYV1Measurement_FieldNumber_DeviceId,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1Measurement__storage_, deviceId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "deviceParentId",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt32Value),
        .number = KEYAPISTELEMETRYMETRICYV1Measurement_FieldNumber_DeviceParentId,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1Measurement__storage_, deviceParentId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "deviceModel",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISTELEMETRYMETRICYV1Measurement_FieldNumber_DeviceModel,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1Measurement__storage_, deviceModel),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "deviceType",
        .dataTypeSpecific.enumDescFunc = KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_EnumDescriptor,
        .number = KEYAPISTELEMETRYMETRICYV1Measurement_FieldNumber_DeviceType,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1Measurement__storage_, deviceType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "metricType",
        .dataTypeSpecific.enumDescFunc = KEYAPISTELEMETRYMETRICYV1Measurement_MetricType_EnumDescriptor,
        .number = KEYAPISTELEMETRYMETRICYV1Measurement_FieldNumber_MetricType,
        .hasIndex = 8,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1Measurement__storage_, metricType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "changedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISTELEMETRYMETRICYV1Measurement_FieldNumber_ChangedAt,
        .hasIndex = 9,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1Measurement__storage_, changedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "utcOffset",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYMETRICYV1Measurement_FieldNumber_UtcOffset,
        .hasIndex = 10,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1Measurement__storage_, utcOffset),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "unitType",
        .dataTypeSpecific.enumDescFunc = KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_EnumDescriptor,
        .number = KEYAPISTELEMETRYMETRICYV1Measurement_FieldNumber_UnitType,
        .hasIndex = 11,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1Measurement__storage_, unitType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYMETRICYV1Measurement)
                                   messageName:@"Measurement"
                               fileDescription:&KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYMETRICYV1Measurement__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 KEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_RawValue(KEYAPISTELEMETRYMETRICYV1Measurement *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYMETRICYV1Measurement descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYMETRICYV1Measurement_FieldNumber_DeviceType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISTELEMETRYMETRICYV1Measurement_DeviceType_RawValue(KEYAPISTELEMETRYMETRICYV1Measurement *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYMETRICYV1Measurement descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYMETRICYV1Measurement_FieldNumber_DeviceType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISTELEMETRYMETRICYV1Measurement_MetricType_RawValue(KEYAPISTELEMETRYMETRICYV1Measurement *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYMETRICYV1Measurement descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYMETRICYV1Measurement_FieldNumber_MetricType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISTELEMETRYMETRICYV1Measurement_MetricType_RawValue(KEYAPISTELEMETRYMETRICYV1Measurement *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYMETRICYV1Measurement descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYMETRICYV1Measurement_FieldNumber_MetricType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISTELEMETRYMETRICYV1Measurement_UnitType_RawValue(KEYAPISTELEMETRYMETRICYV1Measurement *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYMETRICYV1Measurement descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYMETRICYV1Measurement_FieldNumber_UnitType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISTELEMETRYMETRICYV1Measurement_UnitType_RawValue(KEYAPISTELEMETRYMETRICYV1Measurement *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYMETRICYV1Measurement descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYMETRICYV1Measurement_FieldNumber_UnitType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest

@implementation KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest

@dynamic hasReportDateAt, reportDateAt;
@dynamic indicatorIdsArray, indicatorIdsArray_Count;
@dynamic metricType;

typedef struct KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISTELEMETRYMETRICYV1Measurement_MetricType metricType;
  GPBTimestamp *reportDateAt;
  GPBInt32Array *indicatorIdsArray;
} KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest__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 = "reportDateAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest_FieldNumber_ReportDateAt,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest__storage_, reportDateAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "indicatorIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest_FieldNumber_IndicatorIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest__storage_, indicatorIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "metricType",
        .dataTypeSpecific.enumDescFunc = KEYAPISTELEMETRYMETRICYV1Measurement_MetricType_EnumDescriptor,
        .number = KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest_FieldNumber_MetricType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest__storage_, metricType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest)
                                   messageName:@"GetMeasurementReportDateRequest"
                               fileDescription:&KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest__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 KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest_MetricType_RawValue(KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest_FieldNumber_MetricType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest_MetricType_RawValue(KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateRequest_FieldNumber_MetricType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISTELEMETRYMETRICYV1ReportData

@implementation KEYAPISTELEMETRYMETRICYV1ReportData

@dynamic entriesArray, entriesArray_Count;

typedef struct KEYAPISTELEMETRYMETRICYV1ReportData__storage_ {
  uint32_t _has_storage_[1];
  NSMutableArray *entriesArray;
} KEYAPISTELEMETRYMETRICYV1ReportData__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 = "entriesArray",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYMETRICYV1ReportEntry),
        .number = KEYAPISTELEMETRYMETRICYV1ReportData_FieldNumber_EntriesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1ReportData__storage_, entriesArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYMETRICYV1ReportData)
                                   messageName:@"ReportData"
                               fileDescription:&KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYMETRICYV1ReportData__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 - KEYAPISTELEMETRYMETRICYV1ReportEntry

@implementation KEYAPISTELEMETRYMETRICYV1ReportEntry

@dynamic indicatorId;
@dynamic syncedAtArray, syncedAtArray_Count;
@dynamic valueArray, valueArray_Count;

typedef struct KEYAPISTELEMETRYMETRICYV1ReportEntry__storage_ {
  uint32_t _has_storage_[1];
  int32_t indicatorId;
  NSMutableArray *syncedAtArray;
  GPBFloatArray *valueArray;
} KEYAPISTELEMETRYMETRICYV1ReportEntry__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 = "indicatorId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYMETRICYV1ReportEntry_FieldNumber_IndicatorId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1ReportEntry__storage_, indicatorId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "syncedAtArray",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISTELEMETRYMETRICYV1ReportEntry_FieldNumber_SyncedAtArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1ReportEntry__storage_, syncedAtArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "valueArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYMETRICYV1ReportEntry_FieldNumber_ValueArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1ReportEntry__storage_, valueArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeFloat,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYMETRICYV1ReportEntry)
                                   messageName:@"ReportEntry"
                               fileDescription:&KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYMETRICYV1ReportEntry__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 - KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateResponse

@implementation KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateResponse

@dynamic requestId;
@dynamic hasReportDateAt, reportDateAt;
@dynamic hasData_p, data_p;

typedef struct KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateResponse__storage_ {
  uint32_t _has_storage_[1];
  NSString *requestId;
  GPBTimestamp *reportDateAt;
  KEYAPISTELEMETRYMETRICYV1ReportData *data_p;
} KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateResponse__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 = KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateResponse_FieldNumber_RequestId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateResponse__storage_, requestId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "reportDateAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateResponse_FieldNumber_ReportDateAt,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateResponse__storage_, reportDateAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYMETRICYV1ReportData),
        .number = KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateResponse_FieldNumber_Data_p,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateResponse)
                                   messageName:@"GetMeasurementReportDateResponse"
                               fileDescription:&KEYAPISTELEMETRYMETRICYV1KeyapisTelemetryMetricMeasurementV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYMETRICYV1GetMeasurementReportDateResponse__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
