// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/access_control/v1/keyapis_access_control_broadcast_alert_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/access_control/v1/KeyapisAccessControlBroadcastAlertV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "keyapis/access_control/v1/KeyapisAccessControlAccessControlV1.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(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse_Error_SoundFileNotFound);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1ValidationError);

#pragma mark - KEYAPISACCESSCONTROLV1KeyapisAccessControlBroadcastAlertV1Root

@implementation KEYAPISACCESSCONTROLV1KeyapisAccessControlBroadcastAlertV1Root

+ (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 KEYAPISACCESSCONTROLV1KeyapisAccessControlBroadcastAlertV1Root_FileDescription = {
  .package = "keyapis.access_control.v1",
  .prefix = "KEYAPISACCESSCONTROLV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_PlayType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_PlayType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "PlayTypeUnknown\000HandsetOnly\000SpeakerOnly\000"
        "HandsetAndSpeaker\000SpeakerAndHandset\000";
    static const int32_t values[] = {
        KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_PlayType_PlayTypeUnknown,
        KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_PlayType_HandsetOnly,
        KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_PlayType_SpeakerOnly,
        KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_PlayType_HandsetAndSpeaker,
        KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_PlayType_SpeakerAndHandset,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_PlayType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_PlayType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_PlayType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_PlayType_PlayTypeUnknown:
    case KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_PlayType_HandsetOnly:
    case KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_PlayType_SpeakerOnly:
    case KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_PlayType_HandsetAndSpeaker:
    case KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_PlayType_SpeakerAndHandset:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest

@implementation KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest

@dynamic soundFileUri;
@dynamic orponsArray, orponsArray_Count;
@dynamic tactPlayDuration;
@dynamic tactRepeatCount;
@dynamic playRepeatCount;
@dynamic playType;

typedef struct KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest__storage_ {
  uint32_t _has_storage_[1];
  int32_t tactPlayDuration;
  int32_t tactRepeatCount;
  int32_t playRepeatCount;
  KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_PlayType playType;
  NSString *soundFileUri;
  GPBInt64Array *orponsArray;
} KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest__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 = "soundFileUri",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_FieldNumber_SoundFileUri,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest__storage_, soundFileUri),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "orponsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_FieldNumber_OrponsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest__storage_, orponsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "tactPlayDuration",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_FieldNumber_TactPlayDuration,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest__storage_, tactPlayDuration),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "tactRepeatCount",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_FieldNumber_TactRepeatCount,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest__storage_, tactRepeatCount),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "playRepeatCount",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_FieldNumber_PlayRepeatCount,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest__storage_, playRepeatCount),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "playType",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_PlayType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_FieldNumber_PlayType,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest__storage_, playType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest)
                                   messageName:@"PostBroadcastAlertStartRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlBroadcastAlertV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest__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 KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_PlayType_RawValue(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_FieldNumber_PlayType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_PlayType_RawValue(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest_FieldNumber_PlayType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse

@implementation KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse_Error *error;
} KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse__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(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse_Error),
        .number = KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse)
                                   messageName:@"PostBroadcastAlertStartResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlBroadcastAlertV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse__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 KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse_Error

@implementation KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse_Error

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

typedef struct KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1ValidationError *validation;
  KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse_Error_SoundFileNotFound *soundFileNotFound;
} KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse_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(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "soundFileNotFound",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse_Error_SoundFileNotFound),
        .number = KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse_Error_FieldNumber_SoundFileNotFound,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse_Error__storage_, soundFileNotFound),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlBroadcastAlertV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse_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(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse_Error_SoundFileNotFound


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

@end

#pragma mark - KEYAPISACCESSCONTROLV1PostBroadcastAlertStopRequest

@implementation KEYAPISACCESSCONTROLV1PostBroadcastAlertStopRequest

@dynamic orponsArray, orponsArray_Count;

typedef struct KEYAPISACCESSCONTROLV1PostBroadcastAlertStopRequest__storage_ {
  uint32_t _has_storage_[1];
  GPBInt64Array *orponsArray;
} KEYAPISACCESSCONTROLV1PostBroadcastAlertStopRequest__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 = "orponsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1PostBroadcastAlertStopRequest_FieldNumber_OrponsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopRequest__storage_, orponsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt64,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopRequest)
                                   messageName:@"PostBroadcastAlertStopRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlBroadcastAlertV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopRequest__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 - KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse

@implementation KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse_Error *error;
} KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse__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(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse_Error),
        .number = KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse)
                                   messageName:@"PostBroadcastAlertStopResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlBroadcastAlertV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse__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 KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse_Error

@implementation KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1ValidationError *validation;
} KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse_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(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlBroadcastAlertV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse_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(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

void KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse_Error_ClearReasonOneOfCase(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse_Error *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse_Error descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}

#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
