// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/identity_b2b/v1/keyapis_identity_b2b_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_b2b/v1/KeyapisIdentityB2BAuthorizationV1.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(KEYAPISIDENTITYB2BV1Captcha);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1CaptchaAnswer);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1CaptchaAnswer_Error);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1CaptchaAnswer_Error_WrongAnswer);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1Data2fa);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1KeyError);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1KeyError_UserCreation);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1OtpCode);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1OtpCode_Error);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1OtpCode_Error_AddressNotFound);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1OtpCode_Error_InvalidCode);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1OtpCode_Error_LifeTimeExpired);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1OtpCode_Error_NoAttempts);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeRequest);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse_Error);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordRequest);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse_Error);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1PostAuthorizationLoginRequest);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse_Error);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeRequest);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse_Error);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1SsoError);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1SsoError_IntervalExceeded);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1SsoError_UserIsBlocked);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1SsoError_UserIsTemporaryBlocked);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1SsoError_UserNotFound);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1SsoError_WrongCredentials);
GPBObjCClassDeclaration(KEYAPISIDENTITYB2BV1UserToken);

#pragma mark - KEYAPISIDENTITYB2BV1KeyapisIdentityB2BAuthorizationV1Root

@implementation KEYAPISIDENTITYB2BV1KeyapisIdentityB2BAuthorizationV1Root

+ (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 KEYAPISIDENTITYB2BV1KeyapisIdentityB2BAuthorizationV1Root_FileDescription = {
  .package = "keyapis.identity_b2b.v1",
  .prefix = "KEYAPISIDENTITYB2BV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - KEYAPISIDENTITYB2BV1UserToken

@implementation KEYAPISIDENTITYB2BV1UserToken

@dynamic accessToken;
@dynamic hasExpiredAt, expiredAt;

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

@implementation KEYAPISIDENTITYB2BV1Captcha

@dynamic id_p;
@dynamic URL;

typedef struct KEYAPISIDENTITYB2BV1Captcha__storage_ {
  uint32_t _has_storage_[1];
  NSString *id_p;
  NSString *URL;
} KEYAPISIDENTITYB2BV1Captcha__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 = KEYAPISIDENTITYB2BV1Captcha_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1Captcha__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "URL",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYB2BV1Captcha_FieldNumber_URL,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1Captcha__storage_, URL),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYB2BV1Captcha)
                                   messageName:@"Captcha"
                               fileDescription:&KEYAPISIDENTITYB2BV1KeyapisIdentityB2BAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYB2BV1Captcha__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 - KEYAPISIDENTITYB2BV1CaptchaAnswer

@implementation KEYAPISIDENTITYB2BV1CaptchaAnswer

@dynamic id_p;
@dynamic code;

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

@implementation KEYAPISIDENTITYB2BV1CaptchaAnswer_Error

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

typedef struct KEYAPISIDENTITYB2BV1CaptchaAnswer_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYB2BV1Captcha *captcha;
  KEYAPISIDENTITYB2BV1CaptchaAnswer_Error_WrongAnswer *wrongAnswer;
} KEYAPISIDENTITYB2BV1CaptchaAnswer_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 = "captcha",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1Captcha),
        .number = KEYAPISIDENTITYB2BV1CaptchaAnswer_Error_FieldNumber_Captcha,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1CaptchaAnswer_Error__storage_, captcha),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "wrongAnswer",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1CaptchaAnswer_Error_WrongAnswer),
        .number = KEYAPISIDENTITYB2BV1CaptchaAnswer_Error_FieldNumber_WrongAnswer,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1CaptchaAnswer_Error__storage_, wrongAnswer),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYB2BV1CaptchaAnswer_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISIDENTITYB2BV1KeyapisIdentityB2BAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYB2BV1CaptchaAnswer_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(KEYAPISIDENTITYB2BV1CaptchaAnswer)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISIDENTITYB2BV1CaptchaAnswer_Error_WrongAnswer


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

@end

#pragma mark - KEYAPISIDENTITYB2BV1OtpCode

@implementation KEYAPISIDENTITYB2BV1OtpCode

@dynamic codeId;
@dynamic timeout;

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

@implementation KEYAPISIDENTITYB2BV1OtpCode_Error

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

typedef struct KEYAPISIDENTITYB2BV1OtpCode_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYB2BV1OtpCode_Error_LifeTimeExpired *lifeTimeExpired;
  KEYAPISIDENTITYB2BV1OtpCode_Error_NoAttempts *noAttempts;
  KEYAPISIDENTITYB2BV1OtpCode_Error_AddressNotFound *addressNotFound;
  KEYAPISIDENTITYB2BV1OtpCode_Error_InvalidCode *invalidCode;
} KEYAPISIDENTITYB2BV1OtpCode_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(KEYAPISIDENTITYB2BV1OtpCode_Error_LifeTimeExpired),
        .number = KEYAPISIDENTITYB2BV1OtpCode_Error_FieldNumber_LifeTimeExpired,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1OtpCode_Error__storage_, lifeTimeExpired),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "noAttempts",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1OtpCode_Error_NoAttempts),
        .number = KEYAPISIDENTITYB2BV1OtpCode_Error_FieldNumber_NoAttempts,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1OtpCode_Error__storage_, noAttempts),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "addressNotFound",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1OtpCode_Error_AddressNotFound),
        .number = KEYAPISIDENTITYB2BV1OtpCode_Error_FieldNumber_AddressNotFound,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1OtpCode_Error__storage_, addressNotFound),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "invalidCode",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1OtpCode_Error_InvalidCode),
        .number = KEYAPISIDENTITYB2BV1OtpCode_Error_FieldNumber_InvalidCode,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1OtpCode_Error__storage_, invalidCode),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYB2BV1OtpCode_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISIDENTITYB2BV1KeyapisIdentityB2BAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYB2BV1OtpCode_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(KEYAPISIDENTITYB2BV1OtpCode)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISIDENTITYB2BV1OtpCode_Error_LifeTimeExpired


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

@end

#pragma mark - KEYAPISIDENTITYB2BV1OtpCode_Error_NoAttempts

@implementation KEYAPISIDENTITYB2BV1OtpCode_Error_NoAttempts


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

@end

#pragma mark - KEYAPISIDENTITYB2BV1OtpCode_Error_AddressNotFound

@implementation KEYAPISIDENTITYB2BV1OtpCode_Error_AddressNotFound


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

@end

#pragma mark - KEYAPISIDENTITYB2BV1OtpCode_Error_InvalidCode

@implementation KEYAPISIDENTITYB2BV1OtpCode_Error_InvalidCode


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

@end

#pragma mark - KEYAPISIDENTITYB2BV1SsoError

@implementation KEYAPISIDENTITYB2BV1SsoError

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

typedef struct KEYAPISIDENTITYB2BV1SsoError__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYB2BV1SsoError_UserIsTemporaryBlocked *userIsTemporaryBlocked;
  KEYAPISIDENTITYB2BV1SsoError_UserNotFound *userNotFound;
  KEYAPISIDENTITYB2BV1SsoError_WrongCredentials *wrongCredentials;
  KEYAPISIDENTITYB2BV1SsoError_UserIsBlocked *userIsBlocked;
  KEYAPISIDENTITYB2BV1SsoError_IntervalExceeded *intervalExceeded;
} KEYAPISIDENTITYB2BV1SsoError__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(KEYAPISIDENTITYB2BV1SsoError_UserIsTemporaryBlocked),
        .number = KEYAPISIDENTITYB2BV1SsoError_FieldNumber_UserIsTemporaryBlocked,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1SsoError__storage_, userIsTemporaryBlocked),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "userNotFound",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1SsoError_UserNotFound),
        .number = KEYAPISIDENTITYB2BV1SsoError_FieldNumber_UserNotFound,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1SsoError__storage_, userNotFound),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "wrongCredentials",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1SsoError_WrongCredentials),
        .number = KEYAPISIDENTITYB2BV1SsoError_FieldNumber_WrongCredentials,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1SsoError__storage_, wrongCredentials),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "userIsBlocked",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1SsoError_UserIsBlocked),
        .number = KEYAPISIDENTITYB2BV1SsoError_FieldNumber_UserIsBlocked,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1SsoError__storage_, userIsBlocked),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "intervalExceeded",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1SsoError_IntervalExceeded),
        .number = KEYAPISIDENTITYB2BV1SsoError_FieldNumber_IntervalExceeded,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1SsoError__storage_, intervalExceeded),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYB2BV1SsoError)
                                   messageName:@"SsoError"
                               fileDescription:&KEYAPISIDENTITYB2BV1KeyapisIdentityB2BAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYB2BV1SsoError__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 KEYAPISIDENTITYB2BV1SsoError_ClearReasonOneOfCase(KEYAPISIDENTITYB2BV1SsoError *message) {
  GPBDescriptor *descriptor = [KEYAPISIDENTITYB2BV1SsoError descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISIDENTITYB2BV1SsoError_UserIsTemporaryBlocked

@implementation KEYAPISIDENTITYB2BV1SsoError_UserIsTemporaryBlocked


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

@end

#pragma mark - KEYAPISIDENTITYB2BV1SsoError_UserNotFound

@implementation KEYAPISIDENTITYB2BV1SsoError_UserNotFound


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

@end

#pragma mark - KEYAPISIDENTITYB2BV1SsoError_WrongCredentials

@implementation KEYAPISIDENTITYB2BV1SsoError_WrongCredentials

@dynamic hasCaptcha, captcha;

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

@end

#pragma mark - KEYAPISIDENTITYB2BV1SsoError_UserIsBlocked

@implementation KEYAPISIDENTITYB2BV1SsoError_UserIsBlocked


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

@end

#pragma mark - KEYAPISIDENTITYB2BV1SsoError_IntervalExceeded

@implementation KEYAPISIDENTITYB2BV1SsoError_IntervalExceeded


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

@end

#pragma mark - KEYAPISIDENTITYB2BV1KeyError

@implementation KEYAPISIDENTITYB2BV1KeyError

@dynamic reasonOneOfCase;
@dynamic userCreation;

typedef struct KEYAPISIDENTITYB2BV1KeyError__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYB2BV1KeyError_UserCreation *userCreation;
} KEYAPISIDENTITYB2BV1KeyError__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(KEYAPISIDENTITYB2BV1KeyError_UserCreation),
        .number = KEYAPISIDENTITYB2BV1KeyError_FieldNumber_UserCreation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1KeyError__storage_, userCreation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYB2BV1KeyError)
                                   messageName:@"KeyError"
                               fileDescription:&KEYAPISIDENTITYB2BV1KeyapisIdentityB2BAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYB2BV1KeyError__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 KEYAPISIDENTITYB2BV1KeyError_ClearReasonOneOfCase(KEYAPISIDENTITYB2BV1KeyError *message) {
  GPBDescriptor *descriptor = [KEYAPISIDENTITYB2BV1KeyError descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISIDENTITYB2BV1KeyError_UserCreation

@implementation KEYAPISIDENTITYB2BV1KeyError_UserCreation


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

@end

#pragma mark - KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeRequest

@implementation KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeRequest

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

typedef struct KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeRequest__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYB2BV1CaptchaAnswer *captchaAnswer;
  NSString *phoneNumber;
  NSString *email;
} KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeRequest__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(KEYAPISIDENTITYB2BV1CaptchaAnswer),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeRequest_FieldNumber_CaptchaAnswer,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeRequest__storage_, captchaAnswer),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "phoneNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeRequest_FieldNumber_PhoneNumber,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeRequest__storage_, phoneNumber),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "email",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeRequest_FieldNumber_Email,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeRequest__storage_, email),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeRequest)
                                   messageName:@"PostAuthorizationSendCodeRequest"
                               fileDescription:&KEYAPISIDENTITYB2BV1KeyapisIdentityB2BAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeRequest__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 KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeRequest_ClearOtpTextOneOfCase(KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse

@implementation KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse

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

typedef struct KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse_Error *error;
  KEYAPISIDENTITYB2BV1OtpCode *data_p;
} KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse__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(KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse_Error),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1OtpCode),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse)
                                   messageName:@"PostAuthorizationSendCodeResponse"
                               fileDescription:&KEYAPISIDENTITYB2BV1KeyapisIdentityB2BAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse__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 KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse_ClearTypeOneOfCase(KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse_Error

@implementation KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse_Error

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

typedef struct KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYB2BV1CaptchaAnswer_Error *captchaAnswer;
  KEYAPISIDENTITYB2BV1SsoError *sso;
} KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse_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(KEYAPISIDENTITYB2BV1CaptchaAnswer_Error),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse_Error_FieldNumber_CaptchaAnswer,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse_Error__storage_, captchaAnswer),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "sso",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1SsoError),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse_Error_FieldNumber_Sso,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse_Error__storage_, sso),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISIDENTITYB2BV1KeyapisIdentityB2BAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse_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(KEYAPISIDENTITYB2BV1PostAuthorizationSendCodeResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISIDENTITYB2BV1PostAuthorizationLoginRequest

@dynamic codeId;
@dynamic code;

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

@implementation KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse

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

typedef struct KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse_Error *error;
  KEYAPISIDENTITYB2BV1UserToken *data_p;
} KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse__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(KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse_Error),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1UserToken),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse)
                                   messageName:@"PostAuthorizationLoginResponse"
                               fileDescription:&KEYAPISIDENTITYB2BV1KeyapisIdentityB2BAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse__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 KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse_ClearTypeOneOfCase(KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse_Error

@implementation KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse_Error

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

typedef struct KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYB2BV1OtpCode_Error *otpCode;
  KEYAPISIDENTITYB2BV1SsoError *sso;
  KEYAPISIDENTITYB2BV1KeyError *key;
} KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse_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(KEYAPISIDENTITYB2BV1OtpCode_Error),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse_Error_FieldNumber_OtpCode,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse_Error__storage_, otpCode),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "sso",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1SsoError),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse_Error_FieldNumber_Sso,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse_Error__storage_, sso),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "key",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1KeyError),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse_Error_FieldNumber_Key,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse_Error__storage_, key),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISIDENTITYB2BV1KeyapisIdentityB2BAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse_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(KEYAPISIDENTITYB2BV1PostAuthorizationLoginResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordRequest

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

typedef struct KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordRequest__storage_ {
  uint32_t _has_storage_[2];
  NSString *password;
  KEYAPISIDENTITYB2BV1CaptchaAnswer *captchaAnswer;
  NSString *phoneNumber;
  NSString *email;
  NSString *login;
} KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordRequest__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 = "password",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordRequest_FieldNumber_Password,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordRequest__storage_, password),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "captchaAnswer",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1CaptchaAnswer),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordRequest_FieldNumber_CaptchaAnswer,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordRequest__storage_, captchaAnswer),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "phoneNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordRequest_FieldNumber_PhoneNumber,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordRequest__storage_, phoneNumber),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "email",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordRequest_FieldNumber_Email,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordRequest__storage_, email),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "login",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordRequest_FieldNumber_Login,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordRequest__storage_, login),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordRequest)
                                   messageName:@"PostAuthorizationLoginByPasswordRequest"
                               fileDescription:&KEYAPISIDENTITYB2BV1KeyapisIdentityB2BAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordRequest__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 KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordRequest_ClearTypeOneOfCase(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse

@implementation KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse

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

typedef struct KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse_Error *error;
  KEYAPISIDENTITYB2BV1UserToken *data_p;
  KEYAPISIDENTITYB2BV1Data2fa *data2Fa;
} KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse__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(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse_Error),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1UserToken),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "data2Fa",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1Data2fa),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse_FieldNumber_Data2Fa,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse__storage_, data2Fa),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse)
                                   messageName:@"PostAuthorizationLoginByPasswordResponse"
                               fileDescription:&KEYAPISIDENTITYB2BV1KeyapisIdentityB2BAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse__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 !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
    static const char *extraTextFormatInfo =
        "\001\003\005\"\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

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

@implementation KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse_Error

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

typedef struct KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYB2BV1CaptchaAnswer_Error *captchaAnswer;
  KEYAPISIDENTITYB2BV1SsoError *sso;
  KEYAPISIDENTITYB2BV1KeyError *key;
  KEYAPISIDENTITYB2BV1OtpCode_Error *otpCode;
} KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse_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(KEYAPISIDENTITYB2BV1CaptchaAnswer_Error),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse_Error_FieldNumber_CaptchaAnswer,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse_Error__storage_, captchaAnswer),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "sso",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1SsoError),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse_Error_FieldNumber_Sso,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse_Error__storage_, sso),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "key",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1KeyError),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse_Error_FieldNumber_Key,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse_Error__storage_, key),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "otpCode",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1OtpCode_Error),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse_Error_FieldNumber_OtpCode,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse_Error__storage_, otpCode),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISIDENTITYB2BV1KeyapisIdentityB2BAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse_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(KEYAPISIDENTITYB2BV1PostAuthorizationLoginByPasswordResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeRequest

@dynamic sessionId;
@dynamic actionId;
@dynamic codeId;
@dynamic code;

typedef struct KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *sessionId;
  NSString *actionId;
  NSString *codeId;
  NSString *code;
} KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeRequest__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 = "sessionId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeRequest_FieldNumber_SessionId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeRequest__storage_, sessionId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "actionId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeRequest_FieldNumber_ActionId,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeRequest__storage_, actionId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "codeId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeRequest_FieldNumber_CodeId,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeRequest__storage_, codeId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "code",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeRequest_FieldNumber_Code,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeRequest__storage_, code),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeRequest)
                                   messageName:@"PostAuthorizationCheckCodeRequest"
                               fileDescription:&KEYAPISIDENTITYB2BV1KeyapisIdentityB2BAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeRequest__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 - KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse

@implementation KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse

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

typedef struct KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse_Error *error;
  KEYAPISIDENTITYB2BV1UserToken *data_p;
} KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse__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(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse_Error),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1UserToken),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse)
                                   messageName:@"PostAuthorizationCheckCodeResponse"
                               fileDescription:&KEYAPISIDENTITYB2BV1KeyapisIdentityB2BAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse__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 KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse_ClearTypeOneOfCase(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse_Error

@implementation KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse_Error

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

typedef struct KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISIDENTITYB2BV1SsoError *sso;
  KEYAPISIDENTITYB2BV1KeyError *key;
  KEYAPISIDENTITYB2BV1OtpCode_Error *otpCode;
} KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse_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 = "sso",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1SsoError),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse_Error_FieldNumber_Sso,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse_Error__storage_, sso),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "key",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1KeyError),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse_Error_FieldNumber_Key,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse_Error__storage_, key),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "otpCode",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISIDENTITYB2BV1OtpCode_Error),
        .number = KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse_Error_FieldNumber_OtpCode,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse_Error__storage_, otpCode),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISIDENTITYB2BV1KeyapisIdentityB2BAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse_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(KEYAPISIDENTITYB2BV1PostAuthorizationCheckCodeResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISIDENTITYB2BV1Data2fa

@dynamic sessionId;
@dynamic actionId;
@dynamic codeId;
@dynamic timeout;

typedef struct KEYAPISIDENTITYB2BV1Data2fa__storage_ {
  uint32_t _has_storage_[1];
  int32_t timeout;
  NSString *sessionId;
  NSString *actionId;
  NSString *codeId;
} KEYAPISIDENTITYB2BV1Data2fa__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 = "sessionId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYB2BV1Data2fa_FieldNumber_SessionId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1Data2fa__storage_, sessionId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "actionId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYB2BV1Data2fa_FieldNumber_ActionId,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1Data2fa__storage_, actionId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "codeId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYB2BV1Data2fa_FieldNumber_CodeId,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1Data2fa__storage_, codeId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "timeout",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISIDENTITYB2BV1Data2fa_FieldNumber_Timeout,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISIDENTITYB2BV1Data2fa__storage_, timeout),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISIDENTITYB2BV1Data2fa)
                                   messageName:@"Data2fa"
                               fileDescription:&KEYAPISIDENTITYB2BV1KeyapisIdentityB2BAuthorizationV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISIDENTITYB2BV1Data2fa__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
