// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/identity/v1/keyapis_identity_authorization_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/KeyapisIdentityAuthorizationV1.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(GPBTimestamp);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1Captcha);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1CaptchaAnswer);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1CaptchaAnswer_Error);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1CaptchaAnswer_Error_WrongAnswer);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1KeyError);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1KeyError_UserCreation);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1OtpCode);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1OtpCode_Error);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1OtpCode_Error_AddressNotFound);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1OtpCode_Error_InvalidCode);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1OtpCode_Error_LifeTimeExpired);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1OtpCode_Error_NoAttempts);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordRequest);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse_Error);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1PostAuthorizationLoginRequest);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1PostAuthorizationLoginResponse);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1PostAuthorizationLoginResponse_Error);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1PostAuthorizationSendCodeRequest);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse_Error);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1SsoError);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1SsoError_IntervalExceeded);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1SsoError_UserIsBlocked);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1SsoError_UserIsTemporaryBlocked);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1SsoError_UserNotFound);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1SsoError_WrongCredentials);
GPBObjCClassDeclaration(KEYAPISIDENTITYV1UserToken);

#pragma mark - KEYAPISIDENTITYV1KeyapisIdentityAuthorizationV1Root

@implementation KEYAPISIDENTITYV1KeyapisIdentityAuthorizationV1Root

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

#pragma mark - KEYAPISIDENTITYV1UserToken

@implementation KEYAPISIDENTITYV1UserToken

@dynamic accessToken;
@dynamic hasExpiredAt, expiredAt;

typedef struct KEYAPISIDENTITYV1UserToken__storage_ {
  uint32_t _has_storage_[1];
  NSString *accessToken;
  GPBTimestamp *expiredAt;
} KEYAPISIDENTITYV1UserToken__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 = "accessToken",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYV1UserToken_FieldNumber_AccessToken,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1UserToken__storage_, accessToken),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "expiredAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISIDENTITYV1UserToken_FieldNumber_ExpiredAt,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1UserToken__storage_, expiredAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1UserToken)
                                   messageName:@"UserToken"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1UserToken__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 - KEYAPISIDENTITYV1Captcha

@implementation KEYAPISIDENTITYV1Captcha

@dynamic id_p;
@dynamic URL;

typedef struct KEYAPISIDENTITYV1Captcha__storage_ {
  uint32_t _has_storage_[1];
  NSString *id_p;
  NSString *URL;
} KEYAPISIDENTITYV1Captcha__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 = "id_p",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYV1Captcha_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1Captcha__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "URL",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYV1Captcha_FieldNumber_URL,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1Captcha__storage_, URL),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1Captcha)
                                   messageName:@"Captcha"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1Captcha__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
#if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
    static const char *extraTextFormatInfo =
        "\001\002!!!\000";
    [localDescriptor setupExtraTextInfo:extraTextFormatInfo];
#endif  // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISIDENTITYV1CaptchaAnswer

@implementation KEYAPISIDENTITYV1CaptchaAnswer

@dynamic id_p;
@dynamic code;

typedef struct KEYAPISIDENTITYV1CaptchaAnswer__storage_ {
  uint32_t _has_storage_[1];
  NSString *id_p;
  NSString *code;
} KEYAPISIDENTITYV1CaptchaAnswer__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 = "id_p",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYV1CaptchaAnswer_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1CaptchaAnswer__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "code",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYV1CaptchaAnswer_FieldNumber_Code,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1CaptchaAnswer__storage_, code),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1CaptchaAnswer)
                                   messageName:@"CaptchaAnswer"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1CaptchaAnswer__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 - KEYAPISIDENTITYV1CaptchaAnswer_Error

@implementation KEYAPISIDENTITYV1CaptchaAnswer_Error

@dynamic reasonOneOfCase;
@dynamic wrongAnswer;
@dynamic hasCaptcha, captcha;

typedef struct KEYAPISIDENTITYV1CaptchaAnswer_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYV1CaptchaAnswer_Error_WrongAnswer *wrongAnswer;
  KEYAPISIDENTITYV1Captcha *captcha;
} KEYAPISIDENTITYV1CaptchaAnswer_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 = "wrongAnswer",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1CaptchaAnswer_Error_WrongAnswer),
        .number = KEYAPISIDENTITYV1CaptchaAnswer_Error_FieldNumber_WrongAnswer,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1CaptchaAnswer_Error__storage_, wrongAnswer),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "captcha",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1Captcha),
        .number = KEYAPISIDENTITYV1CaptchaAnswer_Error_FieldNumber_Captcha,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1CaptchaAnswer_Error__storage_, captcha),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1CaptchaAnswer_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1CaptchaAnswer_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(KEYAPISIDENTITYV1CaptchaAnswer)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISIDENTITYV1CaptchaAnswer_Error_WrongAnswer


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

@end

#pragma mark - KEYAPISIDENTITYV1OtpCode

@implementation KEYAPISIDENTITYV1OtpCode

@dynamic codeId;
@dynamic timeout;

typedef struct KEYAPISIDENTITYV1OtpCode__storage_ {
  uint32_t _has_storage_[1];
  int32_t timeout;
  NSString *codeId;
} KEYAPISIDENTITYV1OtpCode__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 = "codeId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYV1OtpCode_FieldNumber_CodeId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1OtpCode__storage_, codeId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "timeout",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYV1OtpCode_FieldNumber_Timeout,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1OtpCode__storage_, timeout),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1OtpCode)
                                   messageName:@"OtpCode"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1OtpCode__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 - KEYAPISIDENTITYV1OtpCode_Error

@implementation KEYAPISIDENTITYV1OtpCode_Error

@dynamic reasonOneOfCase;
@dynamic lifeTimeExpired;
@dynamic noAttempts;
@dynamic addressNotFound;
@dynamic invalidCode;

typedef struct KEYAPISIDENTITYV1OtpCode_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYV1OtpCode_Error_LifeTimeExpired *lifeTimeExpired;
  KEYAPISIDENTITYV1OtpCode_Error_NoAttempts *noAttempts;
  KEYAPISIDENTITYV1OtpCode_Error_AddressNotFound *addressNotFound;
  KEYAPISIDENTITYV1OtpCode_Error_InvalidCode *invalidCode;
} KEYAPISIDENTITYV1OtpCode_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 = "lifeTimeExpired",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1OtpCode_Error_LifeTimeExpired),
        .number = KEYAPISIDENTITYV1OtpCode_Error_FieldNumber_LifeTimeExpired,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1OtpCode_Error__storage_, lifeTimeExpired),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "noAttempts",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1OtpCode_Error_NoAttempts),
        .number = KEYAPISIDENTITYV1OtpCode_Error_FieldNumber_NoAttempts,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1OtpCode_Error__storage_, noAttempts),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "addressNotFound",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1OtpCode_Error_AddressNotFound),
        .number = KEYAPISIDENTITYV1OtpCode_Error_FieldNumber_AddressNotFound,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1OtpCode_Error__storage_, addressNotFound),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "invalidCode",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1OtpCode_Error_InvalidCode),
        .number = KEYAPISIDENTITYV1OtpCode_Error_FieldNumber_InvalidCode,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1OtpCode_Error__storage_, invalidCode),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1OtpCode_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1OtpCode_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(KEYAPISIDENTITYV1OtpCode)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISIDENTITYV1OtpCode_Error_LifeTimeExpired


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

@end

#pragma mark - KEYAPISIDENTITYV1OtpCode_Error_NoAttempts

@implementation KEYAPISIDENTITYV1OtpCode_Error_NoAttempts


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

@end

#pragma mark - KEYAPISIDENTITYV1OtpCode_Error_AddressNotFound

@implementation KEYAPISIDENTITYV1OtpCode_Error_AddressNotFound


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

@end

#pragma mark - KEYAPISIDENTITYV1OtpCode_Error_InvalidCode

@implementation KEYAPISIDENTITYV1OtpCode_Error_InvalidCode


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

@end

#pragma mark - KEYAPISIDENTITYV1SsoError

@implementation KEYAPISIDENTITYV1SsoError

@dynamic reasonOneOfCase;
@dynamic userIsTemporaryBlocked;
@dynamic userNotFound;
@dynamic wrongCredentials;
@dynamic userIsBlocked;
@dynamic intervalExceeded;

typedef struct KEYAPISIDENTITYV1SsoError__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYV1SsoError_UserIsTemporaryBlocked *userIsTemporaryBlocked;
  KEYAPISIDENTITYV1SsoError_UserNotFound *userNotFound;
  KEYAPISIDENTITYV1SsoError_WrongCredentials *wrongCredentials;
  KEYAPISIDENTITYV1SsoError_UserIsBlocked *userIsBlocked;
  KEYAPISIDENTITYV1SsoError_IntervalExceeded *intervalExceeded;
} KEYAPISIDENTITYV1SsoError__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 = "userIsTemporaryBlocked",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1SsoError_UserIsTemporaryBlocked),
        .number = KEYAPISIDENTITYV1SsoError_FieldNumber_UserIsTemporaryBlocked,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1SsoError__storage_, userIsTemporaryBlocked),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "userNotFound",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1SsoError_UserNotFound),
        .number = KEYAPISIDENTITYV1SsoError_FieldNumber_UserNotFound,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1SsoError__storage_, userNotFound),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "wrongCredentials",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1SsoError_WrongCredentials),
        .number = KEYAPISIDENTITYV1SsoError_FieldNumber_WrongCredentials,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1SsoError__storage_, wrongCredentials),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "userIsBlocked",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1SsoError_UserIsBlocked),
        .number = KEYAPISIDENTITYV1SsoError_FieldNumber_UserIsBlocked,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1SsoError__storage_, userIsBlocked),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "intervalExceeded",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1SsoError_IntervalExceeded),
        .number = KEYAPISIDENTITYV1SsoError_FieldNumber_IntervalExceeded,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1SsoError__storage_, intervalExceeded),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1SsoError)
                                   messageName:@"SsoError"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1SsoError__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];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISIDENTITYV1SsoError_UserIsTemporaryBlocked


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

@end

#pragma mark - KEYAPISIDENTITYV1SsoError_UserNotFound

@implementation KEYAPISIDENTITYV1SsoError_UserNotFound


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

@end

#pragma mark - KEYAPISIDENTITYV1SsoError_WrongCredentials

@implementation KEYAPISIDENTITYV1SsoError_WrongCredentials

@dynamic hasCaptcha, captcha;

typedef struct KEYAPISIDENTITYV1SsoError_WrongCredentials__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISIDENTITYV1Captcha *captcha;
} KEYAPISIDENTITYV1SsoError_WrongCredentials__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 = "captcha",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1Captcha),
        .number = KEYAPISIDENTITYV1SsoError_WrongCredentials_FieldNumber_Captcha,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1SsoError_WrongCredentials__storage_, captcha),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1SsoError_WrongCredentials)
                                   messageName:@"WrongCredentials"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1SsoError_WrongCredentials__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISIDENTITYV1SsoError)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISIDENTITYV1SsoError_UserIsBlocked

@implementation KEYAPISIDENTITYV1SsoError_UserIsBlocked


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

@end

#pragma mark - KEYAPISIDENTITYV1SsoError_IntervalExceeded

@implementation KEYAPISIDENTITYV1SsoError_IntervalExceeded


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

@end

#pragma mark - KEYAPISIDENTITYV1KeyError

@implementation KEYAPISIDENTITYV1KeyError

@dynamic reasonOneOfCase;
@dynamic userCreation;

typedef struct KEYAPISIDENTITYV1KeyError__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYV1KeyError_UserCreation *userCreation;
} KEYAPISIDENTITYV1KeyError__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 = "userCreation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1KeyError_UserCreation),
        .number = KEYAPISIDENTITYV1KeyError_FieldNumber_UserCreation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1KeyError__storage_, userCreation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1KeyError)
                                   messageName:@"KeyError"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1KeyError__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];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISIDENTITYV1KeyError_UserCreation


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

@end

#pragma mark - KEYAPISIDENTITYV1PostAuthorizationSendCodeRequest

@implementation KEYAPISIDENTITYV1PostAuthorizationSendCodeRequest

@dynamic otpTextOneOfCase;
@dynamic phoneNumber;
@dynamic hasCaptchaAnswer, captchaAnswer;

typedef struct KEYAPISIDENTITYV1PostAuthorizationSendCodeRequest__storage_ {
  uint32_t _has_storage_[2];
  NSString *phoneNumber;
  KEYAPISIDENTITYV1CaptchaAnswer *captchaAnswer;
} KEYAPISIDENTITYV1PostAuthorizationSendCodeRequest__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 = "phoneNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYV1PostAuthorizationSendCodeRequest_FieldNumber_PhoneNumber,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationSendCodeRequest__storage_, phoneNumber),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "captchaAnswer",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1CaptchaAnswer),
        .number = KEYAPISIDENTITYV1PostAuthorizationSendCodeRequest_FieldNumber_CaptchaAnswer,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationSendCodeRequest__storage_, captchaAnswer),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1PostAuthorizationSendCodeRequest)
                                   messageName:@"PostAuthorizationSendCodeRequest"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1PostAuthorizationSendCodeRequest__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "otpText",
    };
    [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 KEYAPISIDENTITYV1PostAuthorizationSendCodeRequest_ClearOtpTextOneOfCase(KEYAPISIDENTITYV1PostAuthorizationSendCodeRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISIDENTITYV1PostAuthorizationSendCodeRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse

@implementation KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse

@dynamic typeOneOfCase;
@dynamic data_p;
@dynamic error;

typedef struct KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYV1OtpCode *data_p;
  KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse_Error *error;
} KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse__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(KEYAPISIDENTITYV1OtpCode),
        .number = KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse_Error),
        .number = KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse)
                                   messageName:@"PostAuthorizationSendCodeResponse"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse__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 KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse_ClearTypeOneOfCase(KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse_Error

@implementation KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse_Error

@dynamic reasonOneOfCase;
@dynamic captchaAnswer;
@dynamic sso;

typedef struct KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYV1CaptchaAnswer_Error *captchaAnswer;
  KEYAPISIDENTITYV1SsoError *sso;
} KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse_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 = "captchaAnswer",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1CaptchaAnswer_Error),
        .number = KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse_Error_FieldNumber_CaptchaAnswer,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse_Error__storage_, captchaAnswer),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "sso",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1SsoError),
        .number = KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse_Error_FieldNumber_Sso,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse_Error__storage_, sso),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse_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(KEYAPISIDENTITYV1PostAuthorizationSendCodeResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISIDENTITYV1PostAuthorizationLoginRequest

@dynamic codeId;
@dynamic code;

typedef struct KEYAPISIDENTITYV1PostAuthorizationLoginRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *codeId;
  NSString *code;
} KEYAPISIDENTITYV1PostAuthorizationLoginRequest__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 = "codeId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYV1PostAuthorizationLoginRequest_FieldNumber_CodeId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationLoginRequest__storage_, codeId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "code",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYV1PostAuthorizationLoginRequest_FieldNumber_Code,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationLoginRequest__storage_, code),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1PostAuthorizationLoginRequest)
                                   messageName:@"PostAuthorizationLoginRequest"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1PostAuthorizationLoginRequest__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 - KEYAPISIDENTITYV1PostAuthorizationLoginResponse

@implementation KEYAPISIDENTITYV1PostAuthorizationLoginResponse

@dynamic typeOneOfCase;
@dynamic data_p;
@dynamic error;

typedef struct KEYAPISIDENTITYV1PostAuthorizationLoginResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYV1UserToken *data_p;
  KEYAPISIDENTITYV1PostAuthorizationLoginResponse_Error *error;
} KEYAPISIDENTITYV1PostAuthorizationLoginResponse__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(KEYAPISIDENTITYV1UserToken),
        .number = KEYAPISIDENTITYV1PostAuthorizationLoginResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationLoginResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1PostAuthorizationLoginResponse_Error),
        .number = KEYAPISIDENTITYV1PostAuthorizationLoginResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationLoginResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1PostAuthorizationLoginResponse)
                                   messageName:@"PostAuthorizationLoginResponse"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1PostAuthorizationLoginResponse__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 KEYAPISIDENTITYV1PostAuthorizationLoginResponse_ClearTypeOneOfCase(KEYAPISIDENTITYV1PostAuthorizationLoginResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISIDENTITYV1PostAuthorizationLoginResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISIDENTITYV1PostAuthorizationLoginResponse_Error

@implementation KEYAPISIDENTITYV1PostAuthorizationLoginResponse_Error

@dynamic reasonOneOfCase;
@dynamic otpCode;
@dynamic sso;
@dynamic key;

typedef struct KEYAPISIDENTITYV1PostAuthorizationLoginResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYV1OtpCode_Error *otpCode;
  KEYAPISIDENTITYV1SsoError *sso;
  KEYAPISIDENTITYV1KeyError *key;
} KEYAPISIDENTITYV1PostAuthorizationLoginResponse_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 = "otpCode",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1OtpCode_Error),
        .number = KEYAPISIDENTITYV1PostAuthorizationLoginResponse_Error_FieldNumber_OtpCode,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationLoginResponse_Error__storage_, otpCode),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "sso",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1SsoError),
        .number = KEYAPISIDENTITYV1PostAuthorizationLoginResponse_Error_FieldNumber_Sso,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationLoginResponse_Error__storage_, sso),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "key",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1KeyError),
        .number = KEYAPISIDENTITYV1PostAuthorizationLoginResponse_Error_FieldNumber_Key,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationLoginResponse_Error__storage_, key),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1PostAuthorizationLoginResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1PostAuthorizationLoginResponse_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(KEYAPISIDENTITYV1PostAuthorizationLoginResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordRequest

@dynamic typeOneOfCase;
@dynamic phoneNumber;
@dynamic email;
@dynamic login;
@dynamic password;
@dynamic hasCaptchaAnswer, captchaAnswer;

typedef struct KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordRequest__storage_ {
  uint32_t _has_storage_[2];
  NSString *phoneNumber;
  NSString *email;
  NSString *login;
  NSString *password;
  KEYAPISIDENTITYV1CaptchaAnswer *captchaAnswer;
} KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordRequest__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 = "phoneNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordRequest_FieldNumber_PhoneNumber,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordRequest__storage_, phoneNumber),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "email",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordRequest_FieldNumber_Email,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordRequest__storage_, email),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "login",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordRequest_FieldNumber_Login,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordRequest__storage_, login),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "password",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordRequest_FieldNumber_Password,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordRequest__storage_, password),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "captchaAnswer",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1CaptchaAnswer),
        .number = KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordRequest_FieldNumber_CaptchaAnswer,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordRequest__storage_, captchaAnswer),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordRequest)
                                   messageName:@"PostAuthorizationLoginByPasswordRequest"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordRequest__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 KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordRequest_ClearTypeOneOfCase(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse

@implementation KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse

@dynamic typeOneOfCase;
@dynamic data_p;
@dynamic error;

typedef struct KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYV1UserToken *data_p;
  KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse_Error *error;
} KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse__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(KEYAPISIDENTITYV1UserToken),
        .number = KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse_Error),
        .number = KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse)
                                   messageName:@"PostAuthorizationLoginByPasswordResponse"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse__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 KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse_ClearTypeOneOfCase(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse_Error

@implementation KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse_Error

@dynamic reasonOneOfCase;
@dynamic captchaAnswer;
@dynamic sso;
@dynamic key;

typedef struct KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYV1CaptchaAnswer_Error *captchaAnswer;
  KEYAPISIDENTITYV1SsoError *sso;
  KEYAPISIDENTITYV1KeyError *key;
} KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse_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 = "captchaAnswer",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1CaptchaAnswer_Error),
        .number = KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse_Error_FieldNumber_CaptchaAnswer,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse_Error__storage_, captchaAnswer),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "sso",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1SsoError),
        .number = KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse_Error_FieldNumber_Sso,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse_Error__storage_, sso),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "key",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYV1KeyError),
        .number = KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse_Error_FieldNumber_Key,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse_Error__storage_, key),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISIDENTITYV1KeyapisIdentityAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse_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(KEYAPISIDENTITYV1PostAuthorizationLoginByPasswordResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
