// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/identity/v1/keyapis_identity_user_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/identity/v1/KeyapisIdentityUserV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
// @@protoc_insertion_point(imports)

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma clang diagnostic ignored "-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(KEYAPISIDENTITYV1PostUserSsoMigrationRequest);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1PostUserSsoMigrationResponse);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1PostUserSsoMigrationResponse_Error);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1PostUserSsoMigrationResponse_Error_UserExists);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1ValidationError);

#pragma mark - KEYAPISIDENTITYV1KeyapisIdentityUserV1Root

@implementation KEYAPISIDENTITYV1KeyapisIdentityUserV1Root

+ (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 KEYAPISIDENTITYV1KeyapisIdentityUserV1Root_FileDescription = {
  .package = "keyapis.identity.v1",
  .prefix = "KEYAPISIDENTITYV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - KEYAPISIDENTITYV1PostUserSsoMigrationRequest

@implementation KEYAPISIDENTITYV1PostUserSsoMigrationRequest

@dynamic userId;
@dynamic phoneNumber;

typedef struct KEYAPISIDENTITYV1PostUserSsoMigrationRequest__storage_ {
  uint32_t _has_storage_[1];
  int32_t userId;
  NSString *phoneNumber;
} KEYAPISIDENTITYV1PostUserSsoMigrationRequest__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 = "userId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYV1PostUserSsoMigrationRequest_FieldNumber_UserId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostUserSsoMigrationRequest__storage_, userId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "phoneNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYV1PostUserSsoMigrationRequest_FieldNumber_PhoneNumber,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostUserSsoMigrationRequest__storage_, phoneNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1PostUserSsoMigrationRequest)
                                   messageName:@"PostUserSsoMigrationRequest"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1PostUserSsoMigrationRequest__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 - KEYAPISIDENTITYV1PostUserSsoMigrationResponse

@implementation KEYAPISIDENTITYV1PostUserSsoMigrationResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISIDENTITYV1PostUserSsoMigrationResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYV1PostUserSsoMigrationResponse_Error *error;
} KEYAPISIDENTITYV1PostUserSsoMigrationResponse__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(KEYAPISIDENTITYV1PostUserSsoMigrationResponse_Error),
        .number = KEYAPISIDENTITYV1PostUserSsoMigrationResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostUserSsoMigrationResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1PostUserSsoMigrationResponse)
                                   messageName:@"PostUserSsoMigrationResponse"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1PostUserSsoMigrationResponse__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 KEYAPISIDENTITYV1PostUserSsoMigrationResponse_ClearTypeOneOfCase(KEYAPISIDENTITYV1PostUserSsoMigrationResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISIDENTITYV1PostUserSsoMigrationResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISIDENTITYV1PostUserSsoMigrationResponse_Error

@implementation KEYAPISIDENTITYV1PostUserSsoMigrationResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;
@dynamic userExists;

typedef struct KEYAPISIDENTITYV1PostUserSsoMigrationResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYV1ValidationError *validation;
  KEYAPISIDENTITYV1PostUserSsoMigrationResponse_Error_UserExists *userExists;
} KEYAPISIDENTITYV1PostUserSsoMigrationResponse_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(KEYAPISIDENTITYV1ValidationError),
        .number = KEYAPISIDENTITYV1PostUserSsoMigrationResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostUserSsoMigrationResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "userExists",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1PostUserSsoMigrationResponse_Error_UserExists),
        .number = KEYAPISIDENTITYV1PostUserSsoMigrationResponse_Error_FieldNumber_UserExists,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostUserSsoMigrationResponse_Error__storage_, userExists),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1PostUserSsoMigrationResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1PostUserSsoMigrationResponse_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(KEYAPISIDENTITYV1PostUserSsoMigrationResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISIDENTITYV1PostUserSsoMigrationResponse_Error_UserExists


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

@end

#pragma mark - KEYAPISIDENTITYV1ValidationError

@implementation KEYAPISIDENTITYV1ValidationError

@dynamic path;
@dynamic message;

typedef struct KEYAPISIDENTITYV1ValidationError__storage_ {
  uint32_t _has_storage_[1];
  NSString *path;
  NSString *message;
} KEYAPISIDENTITYV1ValidationError__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 = "path",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYV1ValidationError_FieldNumber_Path,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1ValidationError__storage_, path),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "message",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYV1ValidationError_FieldNumber_Message,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1ValidationError__storage_, message),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1ValidationError)
                                   messageName:@"ValidationError"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1ValidationError__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end


#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
