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

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

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

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

#import "keyapis/telemetry_control/v1/KeyapisTelemetryControlStreamV1.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "keyapis/telemetry_control/v1/KeyapisTelemetryControlBuildingV1.pbobjc.h"
#import "keyapis/telemetry_control/v1/KeyapisTelemetryControlDeviceV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/Visibility.pbobjc.h"
// @@protoc_insertion_point(imports)

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma clang diagnostic ignored "-Wdirect-ivar-access"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"

#pragma mark - Objective-C Class declarations
// Forward declarations of Objective-C classes that we can use as
// static values in struct initializers.
// We don't use [Foo class] because it is not a static value.
GPBObjCClassDeclaration(KEYAPISTELEMETRYCONTROLV1Building);
GPBObjCClassDeclaration(KEYAPISTELEMETRYCONTROLV1Device);
GPBObjCClassDeclaration(KEYAPISTELEMETRYCONTROLV1DeviceIndicatorMetricPoint);
GPBObjCClassDeclaration(KEYAPISTELEMETRYCONTROLV1Device_MetricPoint);
GPBObjCClassDeclaration(KEYAPISTELEMETRYCONTROLV1Indicator);
GPBObjCClassDeclaration(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest);
GPBObjCClassDeclaration(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus);
GPBObjCClassDeclaration(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error);
GPBObjCClassDeclaration(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error_UnknownError);
GPBObjCClassDeclaration(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Success);
GPBObjCClassDeclaration(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse);
GPBObjCClassDeclaration(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_RemoveResourceEvent);
GPBObjCClassDeclaration(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_UpsertResourceEvent);
GPBObjCClassDeclaration(KEYAPISTELEMETRYCONTROLV1Resource);
GPBObjCClassDeclaration(KEYAPISTELEMETRYCONTROLV1ResourceId);

#pragma mark - KEYAPISTELEMETRYCONTROLV1KeyapisTelemetryControlStreamV1Root

@implementation KEYAPISTELEMETRYCONTROLV1KeyapisTelemetryControlStreamV1Root

+ (GPBExtensionRegistry*)extensionRegistry {
  // This is called by +initialize so there is no need to worry
  // about thread safety and initialization of registry.
  static GPBExtensionRegistry* registry = nil;
  if (!registry) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    registry = [[GPBExtensionRegistry alloc] init];
    // Merge in the imports (direct or indirect) that defined extensions.
    [registry addExtensions:[GAPIAnnotationsRoot extensionRegistry]];
    [registry addExtensions:[GAPIFieldBehaviorRoot extensionRegistry]];
    [registry addExtensions:[GAPIVisibilityRoot extensionRegistry]];
  }
  return registry;
}

@end

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

#pragma mark - KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse

@implementation KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse

@dynamic eventOneOfCase;
@dynamic requestId;
@dynamic upsertResourceEvent;
@dynamic removeResourceEvent;

typedef struct KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse__storage_ {
  uint32_t _has_storage_[2];
  NSString *requestId;
  KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_UpsertResourceEvent *upsertResourceEvent;
  KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_RemoveResourceEvent *removeResourceEvent;
} KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse__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 = KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_FieldNumber_RequestId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse__storage_, requestId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "upsertResourceEvent",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_UpsertResourceEvent),
        .number = KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_FieldNumber_UpsertResourceEvent,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse__storage_, upsertResourceEvent),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "removeResourceEvent",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_RemoveResourceEvent),
        .number = KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_FieldNumber_RemoveResourceEvent,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse__storage_, removeResourceEvent),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse)
                                   messageName:@"PostResourceFullDuplexResponse"
                               fileDescription:&KEYAPISTELEMETRYCONTROLV1KeyapisTelemetryControlStreamV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "event",
    };
    [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 KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_ClearEventOneOfCase(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_RemoveResourceEvent

@implementation KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_RemoveResourceEvent

@dynamic hasResourceId, resourceId;

typedef struct KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_RemoveResourceEvent__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISTELEMETRYCONTROLV1ResourceId *resourceId;
} KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_RemoveResourceEvent__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 = "resourceId",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYCONTROLV1ResourceId),
        .number = KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_RemoveResourceEvent_FieldNumber_ResourceId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_RemoveResourceEvent__storage_, resourceId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_RemoveResourceEvent)
                                   messageName:@"RemoveResourceEvent"
                               fileDescription:&KEYAPISTELEMETRYCONTROLV1KeyapisTelemetryControlStreamV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_RemoveResourceEvent__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_UpsertResourceEvent

@implementation KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_UpsertResourceEvent

@dynamic hasResource, resource;

typedef struct KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_UpsertResourceEvent__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISTELEMETRYCONTROLV1Resource *resource;
} KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_UpsertResourceEvent__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 = "resource",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYCONTROLV1Resource),
        .number = KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_UpsertResourceEvent_FieldNumber_Resource,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_UpsertResourceEvent__storage_, resource),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_UpsertResourceEvent)
                                   messageName:@"UpsertResourceEvent"
                               fileDescription:&KEYAPISTELEMETRYCONTROLV1KeyapisTelemetryControlStreamV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse_UpsertResourceEvent__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISTELEMETRYCONTROLV1ResourceId

@implementation KEYAPISTELEMETRYCONTROLV1ResourceId

@dynamic typeOneOfCase;
@dynamic buildingId;
@dynamic deviceId;
@dynamic metricPointId;
@dynamic indicatorId;
@dynamic indicatorMetricPoint;

typedef struct KEYAPISTELEMETRYCONTROLV1ResourceId__storage_ {
  uint32_t _has_storage_[2];
  int32_t buildingId;
  int32_t deviceId;
  int32_t indicatorId;
  NSString *metricPointId;
  KEYAPISTELEMETRYCONTROLV1DeviceIndicatorMetricPoint *indicatorMetricPoint;
} KEYAPISTELEMETRYCONTROLV1ResourceId__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 = "buildingId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYCONTROLV1ResourceId_FieldNumber_BuildingId,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1ResourceId__storage_, buildingId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "deviceId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYCONTROLV1ResourceId_FieldNumber_DeviceId,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1ResourceId__storage_, deviceId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "metricPointId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYCONTROLV1ResourceId_FieldNumber_MetricPointId,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1ResourceId__storage_, metricPointId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "indicatorId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYCONTROLV1ResourceId_FieldNumber_IndicatorId,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1ResourceId__storage_, indicatorId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "indicatorMetricPoint",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYCONTROLV1DeviceIndicatorMetricPoint),
        .number = KEYAPISTELEMETRYCONTROLV1ResourceId_FieldNumber_IndicatorMetricPoint,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1ResourceId__storage_, indicatorMetricPoint),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYCONTROLV1ResourceId)
                                   messageName:@"ResourceId"
                               fileDescription:&KEYAPISTELEMETRYCONTROLV1KeyapisTelemetryControlStreamV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYCONTROLV1ResourceId__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 KEYAPISTELEMETRYCONTROLV1ResourceId_ClearTypeOneOfCase(KEYAPISTELEMETRYCONTROLV1ResourceId *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYCONTROLV1ResourceId descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISTELEMETRYCONTROLV1Resource

@implementation KEYAPISTELEMETRYCONTROLV1Resource

@dynamic typeOneOfCase;
@dynamic building;
@dynamic device;
@dynamic metricPoint;
@dynamic indicator;
@dynamic indicatorMetricPoint;

typedef struct KEYAPISTELEMETRYCONTROLV1Resource__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISTELEMETRYCONTROLV1Building *building;
  KEYAPISTELEMETRYCONTROLV1Device *device;
  KEYAPISTELEMETRYCONTROLV1Device_MetricPoint *metricPoint;
  KEYAPISTELEMETRYCONTROLV1Indicator *indicator;
  KEYAPISTELEMETRYCONTROLV1DeviceIndicatorMetricPoint *indicatorMetricPoint;
} KEYAPISTELEMETRYCONTROLV1Resource__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 = "building",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYCONTROLV1Building),
        .number = KEYAPISTELEMETRYCONTROLV1Resource_FieldNumber_Building,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1Resource__storage_, building),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "device",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYCONTROLV1Device),
        .number = KEYAPISTELEMETRYCONTROLV1Resource_FieldNumber_Device,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1Resource__storage_, device),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "metricPoint",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYCONTROLV1Device_MetricPoint),
        .number = KEYAPISTELEMETRYCONTROLV1Resource_FieldNumber_MetricPoint,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1Resource__storage_, metricPoint),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "indicator",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYCONTROLV1Indicator),
        .number = KEYAPISTELEMETRYCONTROLV1Resource_FieldNumber_Indicator,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1Resource__storage_, indicator),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "indicatorMetricPoint",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYCONTROLV1DeviceIndicatorMetricPoint),
        .number = KEYAPISTELEMETRYCONTROLV1Resource_FieldNumber_IndicatorMetricPoint,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1Resource__storage_, indicatorMetricPoint),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYCONTROLV1Resource)
                                   messageName:@"Resource"
                               fileDescription:&KEYAPISTELEMETRYCONTROLV1KeyapisTelemetryControlStreamV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYCONTROLV1Resource__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 KEYAPISTELEMETRYCONTROLV1Resource_ClearTypeOneOfCase(KEYAPISTELEMETRYCONTROLV1Resource *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYCONTROLV1Resource descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest

@implementation KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest

@dynamic taskOneOfCase;
@dynamic requestId;
@dynamic resourceAsyncStatus;

typedef struct KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest__storage_ {
  uint32_t _has_storage_[2];
  NSString *requestId;
  KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus *resourceAsyncStatus;
} KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest__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 = KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_FieldNumber_RequestId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest__storage_, requestId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "resourceAsyncStatus",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus),
        .number = KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_FieldNumber_ResourceAsyncStatus,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest__storage_, resourceAsyncStatus),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest)
                                   messageName:@"PostResourceFullDuplexRequest"
                               fileDescription:&KEYAPISTELEMETRYCONTROLV1KeyapisTelemetryControlStreamV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "task",
    };
    [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 KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ClearTaskOneOfCase(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus

@implementation KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus

@dynamic typeOneOfCase;
@dynamic hasResourceId, resourceId;
@dynamic data_p;
@dynamic error;

typedef struct KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISTELEMETRYCONTROLV1ResourceId *resourceId;
  KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Success *data_p;
  KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error *error;
} KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus__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 = "resourceId",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYCONTROLV1ResourceId),
        .number = KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_FieldNumber_ResourceId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus__storage_, resourceId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Success),
        .number = KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error),
        .number = KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus)
                                   messageName:@"ResourceAsyncStatus"
                               fileDescription:&KEYAPISTELEMETRYCONTROLV1KeyapisTelemetryControlStreamV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus__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];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_ClearTypeOneOfCase(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Success

@implementation KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Success


typedef struct KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Success__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Success__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(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Success)
                                   messageName:@"Success"
                               fileDescription:&KEYAPISTELEMETRYCONTROLV1KeyapisTelemetryControlStreamV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Success__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error

@implementation KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error

@dynamic reasonOneOfCase;
@dynamic unknown;

typedef struct KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error_UnknownError *unknown;
} KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "unknown",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error_UnknownError),
        .number = KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error_FieldNumber_Unknown,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error__storage_, unknown),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISTELEMETRYCONTROLV1KeyapisTelemetryControlStreamV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "reason",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error_ClearReasonOneOfCase(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error *message) {
  GPBDescriptor *descriptor = [KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error_UnknownError

@implementation KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error_UnknownError

@dynamic message;

typedef struct KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error_UnknownError__storage_ {
  uint32_t _has_storage_[1];
  NSString *message;
} KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error_UnknownError__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 = "message",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error_UnknownError_FieldNumber_Message,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error_UnknownError__storage_, message),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error_UnknownError)
                                   messageName:@"UnknownError"
                               fileDescription:&KEYAPISTELEMETRYCONTROLV1KeyapisTelemetryControlStreamV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error_UnknownError__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISTELEMETRYCONTROLV1PostResourceFullDuplexRequest_ResourceAsyncStatus_Error)];
    #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
