// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/dial/v1/keyapis_dial_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 "keyapis/dial/v1/KeyapisDialEmergencyV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "keyapis/dial/v1/KeyapisDialAlertScenarioV1.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(KEYAPISDIALV1GetSipLoginRequest);
GPBObjCClassDeclaration(KEYAPISDIALV1GetSipLoginResponse);
GPBObjCClassDeclaration(KEYAPISDIALV1GetSipLoginResponse_Error);
GPBObjCClassDeclaration(KEYAPISDIALV1ValidationError);

#pragma mark - KEYAPISDIALV1KeyapisDialEmergencyV1Root

@implementation KEYAPISDIALV1KeyapisDialEmergencyV1Root

+ (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 KEYAPISDIALV1KeyapisDialEmergencyV1Root_FileDescription = {
  .package = "keyapis.dial.v1",
  .prefix = "KEYAPISDIALV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - KEYAPISDIALV1GetSipLoginRequest

@implementation KEYAPISDIALV1GetSipLoginRequest

@dynamic abcNumber;

typedef struct KEYAPISDIALV1GetSipLoginRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *abcNumber;
} KEYAPISDIALV1GetSipLoginRequest__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 = "abcNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDIALV1GetSipLoginRequest_FieldNumber_AbcNumber,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1GetSipLoginRequest__storage_, abcNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1GetSipLoginRequest)
                                   messageName:@"GetSipLoginRequest"
                               fileDescription:&KEYAPISDIALV1KeyapisDialEmergencyV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1GetSipLoginRequest__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 - KEYAPISDIALV1GetSipLoginResponse

@implementation KEYAPISDIALV1GetSipLoginResponse

@dynamic typeOneOfCase;
@dynamic sipAccount;
@dynamic error;

typedef struct KEYAPISDIALV1GetSipLoginResponse__storage_ {
  uint32_t _has_storage_[2];
  NSString *sipAccount;
  KEYAPISDIALV1GetSipLoginResponse_Error *error;
} KEYAPISDIALV1GetSipLoginResponse__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 = "sipAccount",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISDIALV1GetSipLoginResponse_FieldNumber_SipAccount,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1GetSipLoginResponse__storage_, sipAccount),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISDIALV1GetSipLoginResponse_Error),
        .number = KEYAPISDIALV1GetSipLoginResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISDIALV1GetSipLoginResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISDIALV1GetSipLoginResponse)
                                   messageName:@"GetSipLoginResponse"
                               fileDescription:&KEYAPISDIALV1KeyapisDialEmergencyV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISDIALV1GetSipLoginResponse__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 KEYAPISDIALV1GetSipLoginResponse_ClearTypeOneOfCase(KEYAPISDIALV1GetSipLoginResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISDIALV1GetSipLoginResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISDIALV1GetSipLoginResponse_Error

@implementation KEYAPISDIALV1GetSipLoginResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
