// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/telemetry_control/v1/keyapis_telemetry_control_events_v1.proto

// This CPP symbol can be defined to use imports that match up to the framework
// imports needed when using CocoaPods.
#if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
 #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
#endif

#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
 #import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h>
#else
 #import "GPBProtocolBuffers_RuntimeSupport.h"
#endif

#if GOOGLE_PROTOBUF_OBJC_VERSION < 30007
#error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
#endif
#if 30007 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
#error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
#endif

#import <stdatomic.h>

#import "keyapis/telemetry_control/v1/KeyapisTelemetryControlEventsV1.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 "-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(KEYAPISTELEMETRYCONTROLV1CollectorParams);
GPBObjCClassDeclaration(KEYAPISTELEMETRYCONTROLV1EICAllFiasStartTask);

#pragma mark - KEYAPISTELEMETRYCONTROLV1KeyapisTelemetryControlEventsV1Root

@implementation KEYAPISTELEMETRYCONTROLV1KeyapisTelemetryControlEventsV1Root

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

@end

static GPBFileDescription KEYAPISTELEMETRYCONTROLV1KeyapisTelemetryControlEventsV1Root_FileDescription = {
  .package = "keyapis.telemetry_control.v1",
  .prefix = "KEYAPISTELEMETRYCONTROLV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType

GPBEnumDescriptor *KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "SignTypeUnknown\000AbsoluteDs\000AbsoluteRc\000In"
        "tervalDs\000IntervalRc\000CurrentDs\000CurrentRs\000"
        "Volume\000Parameter\000Flag\000";
    static const int32_t values[] = {
        KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_SignTypeUnknown,
        KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_AbsoluteDs,
        KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_AbsoluteRc,
        KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_IntervalDs,
        KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_IntervalRc,
        KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_CurrentDs,
        KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_CurrentRs,
        KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_Volume,
        KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_Parameter,
        KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_Flag,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_SignTypeUnknown:
    case KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_AbsoluteDs:
    case KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_AbsoluteRc:
    case KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_IntervalDs:
    case KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_IntervalRc:
    case KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_CurrentDs:
    case KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_CurrentRs:
    case KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_Volume:
    case KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_Parameter:
    case KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_Flag:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType

GPBEnumDescriptor *KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "ArchiveTypeUnknown\000Current\000Halfhour\000Hour"
        "\000Day\000Month\000Year\000";
    static const int32_t values[] = {
        KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType_ArchiveTypeUnknown,
        KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType_Current,
        KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType_Halfhour,
        KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType_Hour,
        KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType_Day,
        KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType_Month,
        KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType_Year,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType_ArchiveTypeUnknown:
    case KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType_Current:
    case KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType_Halfhour:
    case KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType_Hour:
    case KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType_Day:
    case KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType_Month:
    case KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType_Year:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISTELEMETRYCONTROLV1CollectorParams

@implementation KEYAPISTELEMETRYCONTROLV1CollectorParams

@dynamic date;
@dynamic archiveType;
@dynamic signType;

typedef struct KEYAPISTELEMETRYCONTROLV1CollectorParams__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType archiveType;
  KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType signType;
  NSString *date;
} KEYAPISTELEMETRYCONTROLV1CollectorParams__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 = "date",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYCONTROLV1CollectorParams_FieldNumber_Date,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1CollectorParams__storage_, date),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "archiveType",
        .dataTypeSpecific.enumDescFunc = KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType_EnumDescriptor,
        .number = KEYAPISTELEMETRYCONTROLV1CollectorParams_FieldNumber_ArchiveType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1CollectorParams__storage_, archiveType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "signType",
        .dataTypeSpecific.enumDescFunc = KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_EnumDescriptor,
        .number = KEYAPISTELEMETRYCONTROLV1CollectorParams_FieldNumber_SignType,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1CollectorParams__storage_, signType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYCONTROLV1CollectorParams)
                                   messageName:@"CollectorParams"
                               fileDescription:&KEYAPISTELEMETRYCONTROLV1KeyapisTelemetryControlEventsV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYCONTROLV1CollectorParams__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 KEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType_RawValue(KEYAPISTELEMETRYCONTROLV1CollectorParams *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYCONTROLV1CollectorParams descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYCONTROLV1CollectorParams_FieldNumber_ArchiveType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISTELEMETRYCONTROLV1CollectorParams_ArchiveType_RawValue(KEYAPISTELEMETRYCONTROLV1CollectorParams *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYCONTROLV1CollectorParams descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYCONTROLV1CollectorParams_FieldNumber_ArchiveType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_RawValue(KEYAPISTELEMETRYCONTROLV1CollectorParams *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYCONTROLV1CollectorParams descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYCONTROLV1CollectorParams_FieldNumber_SignType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISTELEMETRYCONTROLV1CollectorParams_SignType_RawValue(KEYAPISTELEMETRYCONTROLV1CollectorParams *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYCONTROLV1CollectorParams descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISTELEMETRYCONTROLV1CollectorParams_FieldNumber_SignType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISTELEMETRYCONTROLV1EICAllFiasStartTask

@implementation KEYAPISTELEMETRYCONTROLV1EICAllFiasStartTask

@dynamic hasCollectorParams, collectorParams;

typedef struct KEYAPISTELEMETRYCONTROLV1EICAllFiasStartTask__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISTELEMETRYCONTROLV1CollectorParams *collectorParams;
} KEYAPISTELEMETRYCONTROLV1EICAllFiasStartTask__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 = "collectorParams",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYCONTROLV1CollectorParams),
        .number = KEYAPISTELEMETRYCONTROLV1EICAllFiasStartTask_FieldNumber_CollectorParams,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1EICAllFiasStartTask__storage_, collectorParams),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYCONTROLV1EICAllFiasStartTask)
                                   messageName:@"EICAllFiasStartTask"
                               fileDescription:&KEYAPISTELEMETRYCONTROLV1KeyapisTelemetryControlEventsV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYCONTROLV1EICAllFiasStartTask__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
