// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: deviceapis/device/v1/deviceapis_device_safe_emergency_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 "deviceapis/device/v1/DeviceapisDeviceSafeEmergencyV1.pbobjc.h"
#import "protoc-gen-openapiv2/options/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "deviceapis/device/v1/DeviceapisDeviceCommonV1.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(DEVICEAPISDEVICEV1EmergencyScenario);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_Error);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_Error_SoundFileNotFound);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1PostSafeCityEmergencyStopRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1PostSafeCityEmergencyStopResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1ValidationError);

#pragma mark - DEVICEAPISDEVICEV1DeviceapisDeviceSafeEmergencyV1Root

@implementation DEVICEAPISDEVICEV1DeviceapisDeviceSafeEmergencyV1Root

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

@end

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

#pragma mark - Enum DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType

GPBEnumDescriptor *DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "PlayOrderTypeUnknown\000HandsetOnly\000Speaker"
        "Only\000HandsetFirst\000SpeakerFirst\000HandsetAn"
        "dSpeaker\000";
    static const int32_t values[] = {
        DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType_PlayOrderTypeUnknown,
        DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType_HandsetOnly,
        DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType_SpeakerOnly,
        DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType_HandsetFirst,
        DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType_SpeakerFirst,
        DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType_HandsetAndSpeaker,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType_IsValidValue(int32_t value__) {
  switch (value__) {
    case DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType_PlayOrderTypeUnknown:
    case DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType_HandsetOnly:
    case DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType_SpeakerOnly:
    case DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType_HandsetFirst:
    case DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType_SpeakerFirst:
    case DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType_HandsetAndSpeaker:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - DEVICEAPISDEVICEV1PostSafeCityEmergencyStopRequest

@implementation DEVICEAPISDEVICEV1PostSafeCityEmergencyStopRequest


typedef struct DEVICEAPISDEVICEV1PostSafeCityEmergencyStopRequest__storage_ {
  uint32_t _has_storage_[1];
} DEVICEAPISDEVICEV1PostSafeCityEmergencyStopRequest__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(DEVICEAPISDEVICEV1PostSafeCityEmergencyStopRequest)
                                   messageName:@"PostSafeCityEmergencyStopRequest"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceSafeEmergencyV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(DEVICEAPISDEVICEV1PostSafeCityEmergencyStopRequest__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 - DEVICEAPISDEVICEV1PostSafeCityEmergencyStopResponse

@implementation DEVICEAPISDEVICEV1PostSafeCityEmergencyStopResponse


typedef struct DEVICEAPISDEVICEV1PostSafeCityEmergencyStopResponse__storage_ {
  uint32_t _has_storage_[1];
} DEVICEAPISDEVICEV1PostSafeCityEmergencyStopResponse__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(DEVICEAPISDEVICEV1PostSafeCityEmergencyStopResponse)
                                   messageName:@"PostSafeCityEmergencyStopResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceSafeEmergencyV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(DEVICEAPISDEVICEV1PostSafeCityEmergencyStopResponse__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 - DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusRequest

@implementation DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusRequest


typedef struct DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusRequest__storage_ {
  uint32_t _has_storage_[1];
} DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusRequest__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(DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusRequest)
                                   messageName:@"GetSafeCityEmergencyStatusRequest"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceSafeEmergencyV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusRequest__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 - DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse

@implementation DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse

@dynamic hasData_p, data_p;

typedef struct DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse__storage_ {
  uint32_t _has_storage_[1];
  DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus *data_p;
} DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse__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(DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus),
        .number = DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse)
                                   messageName:@"GetSafeCityEmergencyStatusResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceSafeEmergencyV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse__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 - DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus

@implementation DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus

@dynamic isRunning;
@dynamic emergencyScenarioPlayOrderType;
@dynamic fileName;

typedef struct DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus__storage_ {
  uint32_t _has_storage_[1];
  DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType emergencyScenarioPlayOrderType;
  NSString *fileName;
} DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus__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 = "isRunning",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus_FieldNumber_IsRunning,
        .hasIndex = 0,
        .offset = 1,  // Stored in _has_storage_ to save space.
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeBool,
      },
      {
        .name = "emergencyScenarioPlayOrderType",
        .dataTypeSpecific.enumDescFunc = DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType_EnumDescriptor,
        .number = DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus_FieldNumber_EmergencyScenarioPlayOrderType,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus__storage_, emergencyScenarioPlayOrderType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "fileName",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus_FieldNumber_FileName,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus__storage_, fileName),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus)
                                   messageName:@"CurrentStatus"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceSafeEmergencyV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

int32_t DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus_EmergencyScenarioPlayOrderType_RawValue(DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus_FieldNumber_EmergencyScenarioPlayOrderType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetDEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus_EmergencyScenarioPlayOrderType_RawValue(DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus *message, int32_t value) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:DEVICEAPISDEVICEV1GetSafeCityEmergencyStatusResponse_CurrentStatus_FieldNumber_EmergencyScenarioPlayOrderType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - DEVICEAPISDEVICEV1EmergencyScenario

@implementation DEVICEAPISDEVICEV1EmergencyScenario

@dynamic fileName;
@dynamic totalDuration;
@dynamic playbackPerTick;
@dynamic tickCount;
@dynamic playOrderType;

typedef struct DEVICEAPISDEVICEV1EmergencyScenario__storage_ {
  uint32_t _has_storage_[1];
  int32_t totalDuration;
  int32_t playbackPerTick;
  int32_t tickCount;
  DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType playOrderType;
  NSString *fileName;
} DEVICEAPISDEVICEV1EmergencyScenario__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 = "fileName",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1EmergencyScenario_FieldNumber_FileName,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EmergencyScenario__storage_, fileName),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "totalDuration",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1EmergencyScenario_FieldNumber_TotalDuration,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EmergencyScenario__storage_, totalDuration),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "playbackPerTick",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1EmergencyScenario_FieldNumber_PlaybackPerTick,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EmergencyScenario__storage_, playbackPerTick),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "tickCount",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1EmergencyScenario_FieldNumber_TickCount,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EmergencyScenario__storage_, tickCount),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "playOrderType",
        .dataTypeSpecific.enumDescFunc = DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType_EnumDescriptor,
        .number = DEVICEAPISDEVICEV1EmergencyScenario_FieldNumber_PlayOrderType,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EmergencyScenario__storage_, playOrderType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1EmergencyScenario)
                                   messageName:@"EmergencyScenario"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceSafeEmergencyV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1EmergencyScenario__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 DEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType_RawValue(DEVICEAPISDEVICEV1EmergencyScenario *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1EmergencyScenario descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:DEVICEAPISDEVICEV1EmergencyScenario_FieldNumber_PlayOrderType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetDEVICEAPISDEVICEV1EmergencyScenario_PlayOrderType_RawValue(DEVICEAPISDEVICEV1EmergencyScenario *message, int32_t value) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1EmergencyScenario descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:DEVICEAPISDEVICEV1EmergencyScenario_FieldNumber_PlayOrderType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - DEVICEAPISDEVICEV1PostSafeCityEmergencyStartRequest

@implementation DEVICEAPISDEVICEV1PostSafeCityEmergencyStartRequest

@dynamic hasData_p, data_p;

typedef struct DEVICEAPISDEVICEV1PostSafeCityEmergencyStartRequest__storage_ {
  uint32_t _has_storage_[1];
  DEVICEAPISDEVICEV1EmergencyScenario *data_p;
} DEVICEAPISDEVICEV1PostSafeCityEmergencyStartRequest__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(DEVICEAPISDEVICEV1EmergencyScenario),
        .number = DEVICEAPISDEVICEV1PostSafeCityEmergencyStartRequest_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartRequest)
                                   messageName:@"PostSafeCityEmergencyStartRequest"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceSafeEmergencyV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartRequest__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 - DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse

@implementation DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse__storage_ {
  uint32_t _has_storage_[2];
  DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_Error *error;
} DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse__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 = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_Error),
        .number = DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse)
                                   messageName:@"PostSafeCityEmergencyStartResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceSafeEmergencyV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse__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 DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_ClearTypeOneOfCase(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_Error

@implementation DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;
@dynamic soundFileNotFound;

typedef struct DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  DEVICEAPISDEVICEV1ValidationError *validation;
  DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_Error_SoundFileNotFound *soundFileNotFound;
} DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_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 = "validation",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1ValidationError),
        .number = DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "soundFileNotFound",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_Error_SoundFileNotFound),
        .number = DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_Error_FieldNumber_SoundFileNotFound,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_Error__storage_, soundFileNotFound),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceSafeEmergencyV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_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(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_Error_SoundFileNotFound


typedef struct DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_Error_SoundFileNotFound__storage_ {
  uint32_t _has_storage_[1];
} DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_Error_SoundFileNotFound__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(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_Error_SoundFileNotFound)
                                   messageName:@"SoundFileNotFound"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceSafeEmergencyV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_Error_SoundFileNotFound__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(DEVICEAPISDEVICEV1PostSafeCityEmergencyStartResponse_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
