// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/invoice/v1/keyapis_invoice_paymethod_v1.proto

// This CPP symbol can be defined to use imports that match up to the framework
// imports needed when using CocoaPods.
#if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
 #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
#endif

#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
 #import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h>
#else
 #import "GPBProtocolBuffers_RuntimeSupport.h"
#endif

#if GOOGLE_PROTOBUF_OBJC_VERSION < 30007
#error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
#endif
#if 30007 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
#error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
#endif

#import <stdatomic.h>

#import "keyapis/invoice/v1/KeyapisInvoicePaymethodV1.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(KEYAPISINVOICEV1DeletePayMethodRequest);
GPBObjCClassDeclaration(KEYAPISINVOICEV1DeletePayMethodResponse);
GPBObjCClassDeclaration(KEYAPISINVOICEV1GetPayMethodListRequest);
GPBObjCClassDeclaration(KEYAPISINVOICEV1GetPayMethodListResponse);
GPBObjCClassDeclaration(KEYAPISINVOICEV1PayMethod);
GPBObjCClassDeclaration(KEYAPISINVOICEV1PostPayMethodBankcardRequest);
GPBObjCClassDeclaration(KEYAPISINVOICEV1PostPayMethodBankcardResponse);
GPBObjCClassDeclaration(KEYAPISINVOICEV1PostPayMethodBankcardResponse_Error);
GPBObjCClassDeclaration(KEYAPISINVOICEV1PostPayMethodBankcardResponse_RegisterData);
GPBObjCClassDeclaration(KEYAPISINVOICEV1PostPayMethodDefaultRequest);
GPBObjCClassDeclaration(KEYAPISINVOICEV1PostPayMethodDefaultResponse);
GPBObjCClassDeclaration(KEYAPISINVOICEV1PostPayMethodDefaultResponse_Error);
GPBObjCClassDeclaration(KEYAPISINVOICEV1PostPayMethodSbpRequest);
GPBObjCClassDeclaration(KEYAPISINVOICEV1PostPayMethodSbpResponse);
GPBObjCClassDeclaration(KEYAPISINVOICEV1PostPayMethodSbpResponse_Error);
GPBObjCClassDeclaration(KEYAPISINVOICEV1PostPayMethodSbpResponse_RegisterData);
GPBObjCClassDeclaration(KEYAPISINVOICEV1ValidationError);

#pragma mark - KEYAPISINVOICEV1KeyapisInvoicePaymethodV1Root

@implementation KEYAPISINVOICEV1KeyapisInvoicePaymethodV1Root

+ (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 KEYAPISINVOICEV1KeyapisInvoicePaymethodV1Root_FileDescription = {
  .package = "keyapis.invoice.v1",
  .prefix = "KEYAPISINVOICEV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum KEYAPISINVOICEV1PayMethod_Type

GPBEnumDescriptor *KEYAPISINVOICEV1PayMethod_Type_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "TypeUnknown\000BankCard\000Sbp\000SberBind\000";
    static const int32_t values[] = {
        KEYAPISINVOICEV1PayMethod_Type_TypeUnknown,
        KEYAPISINVOICEV1PayMethod_Type_BankCard,
        KEYAPISINVOICEV1PayMethod_Type_Sbp,
        KEYAPISINVOICEV1PayMethod_Type_SberBind,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISINVOICEV1PayMethod_Type)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISINVOICEV1PayMethod_Type_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISINVOICEV1PayMethod_Type_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISINVOICEV1PayMethod_Type_TypeUnknown:
    case KEYAPISINVOICEV1PayMethod_Type_BankCard:
    case KEYAPISINVOICEV1PayMethod_Type_Sbp:
    case KEYAPISINVOICEV1PayMethod_Type_SberBind:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISINVOICEV1PayMethod_CardType

GPBEnumDescriptor *KEYAPISINVOICEV1PayMethod_CardType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "CardTypeUnknown\000Visa\000EcMc\000Dcl\000Jcb\000Amex\000M"
        "ir\000";
    static const int32_t values[] = {
        KEYAPISINVOICEV1PayMethod_CardType_CardTypeUnknown,
        KEYAPISINVOICEV1PayMethod_CardType_Visa,
        KEYAPISINVOICEV1PayMethod_CardType_EcMc,
        KEYAPISINVOICEV1PayMethod_CardType_Dcl,
        KEYAPISINVOICEV1PayMethod_CardType_Jcb,
        KEYAPISINVOICEV1PayMethod_CardType_Amex,
        KEYAPISINVOICEV1PayMethod_CardType_Mir,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISINVOICEV1PayMethod_CardType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISINVOICEV1PayMethod_CardType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISINVOICEV1PayMethod_CardType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISINVOICEV1PayMethod_CardType_CardTypeUnknown:
    case KEYAPISINVOICEV1PayMethod_CardType_Visa:
    case KEYAPISINVOICEV1PayMethod_CardType_EcMc:
    case KEYAPISINVOICEV1PayMethod_CardType_Dcl:
    case KEYAPISINVOICEV1PayMethod_CardType_Jcb:
    case KEYAPISINVOICEV1PayMethod_CardType_Amex:
    case KEYAPISINVOICEV1PayMethod_CardType_Mir:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISINVOICEV1PayMethod_StatusType

GPBEnumDescriptor *KEYAPISINVOICEV1PayMethod_StatusType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "StatusTypeUnknown\000Valid\000Expired\000Blocked\000";
    static const int32_t values[] = {
        KEYAPISINVOICEV1PayMethod_StatusType_StatusTypeUnknown,
        KEYAPISINVOICEV1PayMethod_StatusType_Valid,
        KEYAPISINVOICEV1PayMethod_StatusType_Expired,
        KEYAPISINVOICEV1PayMethod_StatusType_Blocked,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISINVOICEV1PayMethod_StatusType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISINVOICEV1PayMethod_StatusType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISINVOICEV1PayMethod_StatusType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISINVOICEV1PayMethod_StatusType_StatusTypeUnknown:
    case KEYAPISINVOICEV1PayMethod_StatusType_Valid:
    case KEYAPISINVOICEV1PayMethod_StatusType_Expired:
    case KEYAPISINVOICEV1PayMethod_StatusType_Blocked:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISINVOICEV1PayMethod

@implementation KEYAPISINVOICEV1PayMethod

@dynamic payMethodId;
@dynamic userId;
@dynamic type;
@dynamic isActive;
@dynamic isDefault;
@dynamic payMethodContact;
@dynamic payMethodDescription;
@dynamic payMethodAlias;
@dynamic cardType;
@dynamic maskedNum;
@dynamic bankName;
@dynamic isAuth;
@dynamic statusType;
@dynamic hasRegisterAt, registerAt;

typedef struct KEYAPISINVOICEV1PayMethod__storage_ {
  uint32_t _has_storage_[1];
  int32_t userId;
  KEYAPISINVOICEV1PayMethod_Type type;
  KEYAPISINVOICEV1PayMethod_CardType cardType;
  KEYAPISINVOICEV1PayMethod_StatusType statusType;
  NSString *payMethodId;
  NSString *payMethodContact;
  NSString *payMethodDescription;
  NSString *payMethodAlias;
  NSString *maskedNum;
  NSString *bankName;
  GPBTimestamp *registerAt;
} KEYAPISINVOICEV1PayMethod__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 = "payMethodId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1PayMethod_FieldNumber_PayMethodId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PayMethod__storage_, payMethodId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "userId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1PayMethod_FieldNumber_UserId,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PayMethod__storage_, userId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "type",
        .dataTypeSpecific.enumDescFunc = KEYAPISINVOICEV1PayMethod_Type_EnumDescriptor,
        .number = KEYAPISINVOICEV1PayMethod_FieldNumber_Type,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PayMethod__storage_, type),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "isActive",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1PayMethod_FieldNumber_IsActive,
        .hasIndex = 3,
        .offset = 4,  // Stored in _has_storage_ to save space.
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeBool,
      },
      {
        .name = "isDefault",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1PayMethod_FieldNumber_IsDefault,
        .hasIndex = 5,
        .offset = 6,  // Stored in _has_storage_ to save space.
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeBool,
      },
      {
        .name = "payMethodContact",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1PayMethod_FieldNumber_PayMethodContact,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PayMethod__storage_, payMethodContact),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "payMethodDescription",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1PayMethod_FieldNumber_PayMethodDescription,
        .hasIndex = 8,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PayMethod__storage_, payMethodDescription),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "payMethodAlias",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1PayMethod_FieldNumber_PayMethodAlias,
        .hasIndex = 9,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PayMethod__storage_, payMethodAlias),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "cardType",
        .dataTypeSpecific.enumDescFunc = KEYAPISINVOICEV1PayMethod_CardType_EnumDescriptor,
        .number = KEYAPISINVOICEV1PayMethod_FieldNumber_CardType,
        .hasIndex = 10,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PayMethod__storage_, cardType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "maskedNum",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1PayMethod_FieldNumber_MaskedNum,
        .hasIndex = 11,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PayMethod__storage_, maskedNum),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "bankName",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1PayMethod_FieldNumber_BankName,
        .hasIndex = 12,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PayMethod__storage_, bankName),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "isAuth",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1PayMethod_FieldNumber_IsAuth,
        .hasIndex = 13,
        .offset = 14,  // Stored in _has_storage_ to save space.
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeBool,
      },
      {
        .name = "statusType",
        .dataTypeSpecific.enumDescFunc = KEYAPISINVOICEV1PayMethod_StatusType_EnumDescriptor,
        .number = KEYAPISINVOICEV1PayMethod_FieldNumber_StatusType,
        .hasIndex = 15,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PayMethod__storage_, statusType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "registerAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISINVOICEV1PayMethod_FieldNumber_RegisterAt,
        .hasIndex = 16,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PayMethod__storage_, registerAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISINVOICEV1PayMethod)
                                   messageName:@"PayMethod"
                               fileDescription:&KEYAPISINVOICEV1KeyapisInvoicePaymethodV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISINVOICEV1PayMethod__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

int32_t KEYAPISINVOICEV1PayMethod_Type_RawValue(KEYAPISINVOICEV1PayMethod *message) {
  GPBDescriptor *descriptor = [KEYAPISINVOICEV1PayMethod descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISINVOICEV1PayMethod_FieldNumber_Type];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISINVOICEV1PayMethod_Type_RawValue(KEYAPISINVOICEV1PayMethod *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISINVOICEV1PayMethod descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISINVOICEV1PayMethod_FieldNumber_Type];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISINVOICEV1PayMethod_CardType_RawValue(KEYAPISINVOICEV1PayMethod *message) {
  GPBDescriptor *descriptor = [KEYAPISINVOICEV1PayMethod descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISINVOICEV1PayMethod_FieldNumber_CardType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISINVOICEV1PayMethod_CardType_RawValue(KEYAPISINVOICEV1PayMethod *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISINVOICEV1PayMethod descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISINVOICEV1PayMethod_FieldNumber_CardType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISINVOICEV1PayMethod_StatusType_RawValue(KEYAPISINVOICEV1PayMethod *message) {
  GPBDescriptor *descriptor = [KEYAPISINVOICEV1PayMethod descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISINVOICEV1PayMethod_FieldNumber_StatusType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISINVOICEV1PayMethod_StatusType_RawValue(KEYAPISINVOICEV1PayMethod *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISINVOICEV1PayMethod descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISINVOICEV1PayMethod_FieldNumber_StatusType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISINVOICEV1GetPayMethodListRequest

@implementation KEYAPISINVOICEV1GetPayMethodListRequest

@dynamic userId;

typedef struct KEYAPISINVOICEV1GetPayMethodListRequest__storage_ {
  uint32_t _has_storage_[1];
  int32_t userId;
} KEYAPISINVOICEV1GetPayMethodListRequest__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "userId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1GetPayMethodListRequest_FieldNumber_UserId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1GetPayMethodListRequest__storage_, userId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISINVOICEV1GetPayMethodListRequest)
                                   messageName:@"GetPayMethodListRequest"
                               fileDescription:&KEYAPISINVOICEV1KeyapisInvoicePaymethodV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISINVOICEV1GetPayMethodListRequest__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 - KEYAPISINVOICEV1GetPayMethodListResponse

@implementation KEYAPISINVOICEV1GetPayMethodListResponse

@dynamic dataArray, dataArray_Count;

typedef struct KEYAPISINVOICEV1GetPayMethodListResponse__storage_ {
  uint32_t _has_storage_[1];
  NSMutableArray *dataArray;
} KEYAPISINVOICEV1GetPayMethodListResponse__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 = "dataArray",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISINVOICEV1PayMethod),
        .number = KEYAPISINVOICEV1GetPayMethodListResponse_FieldNumber_DataArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1GetPayMethodListResponse__storage_, dataArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISINVOICEV1GetPayMethodListResponse)
                                   messageName:@"GetPayMethodListResponse"
                               fileDescription:&KEYAPISINVOICEV1KeyapisInvoicePaymethodV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISINVOICEV1GetPayMethodListResponse__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 - KEYAPISINVOICEV1DeletePayMethodRequest

@implementation KEYAPISINVOICEV1DeletePayMethodRequest

@dynamic payMethodId;

typedef struct KEYAPISINVOICEV1DeletePayMethodRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *payMethodId;
} KEYAPISINVOICEV1DeletePayMethodRequest__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 = "payMethodId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1DeletePayMethodRequest_FieldNumber_PayMethodId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1DeletePayMethodRequest__storage_, payMethodId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISINVOICEV1DeletePayMethodRequest)
                                   messageName:@"DeletePayMethodRequest"
                               fileDescription:&KEYAPISINVOICEV1KeyapisInvoicePaymethodV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISINVOICEV1DeletePayMethodRequest__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 - KEYAPISINVOICEV1DeletePayMethodResponse

@implementation KEYAPISINVOICEV1DeletePayMethodResponse


typedef struct KEYAPISINVOICEV1DeletePayMethodResponse__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISINVOICEV1DeletePayMethodResponse__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(KEYAPISINVOICEV1DeletePayMethodResponse)
                                   messageName:@"DeletePayMethodResponse"
                               fileDescription:&KEYAPISINVOICEV1KeyapisInvoicePaymethodV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISINVOICEV1DeletePayMethodResponse__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 - KEYAPISINVOICEV1PostPayMethodDefaultRequest

@implementation KEYAPISINVOICEV1PostPayMethodDefaultRequest

@dynamic payMethodId;

typedef struct KEYAPISINVOICEV1PostPayMethodDefaultRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *payMethodId;
} KEYAPISINVOICEV1PostPayMethodDefaultRequest__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 = "payMethodId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1PostPayMethodDefaultRequest_FieldNumber_PayMethodId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PostPayMethodDefaultRequest__storage_, payMethodId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISINVOICEV1PostPayMethodDefaultRequest)
                                   messageName:@"PostPayMethodDefaultRequest"
                               fileDescription:&KEYAPISINVOICEV1KeyapisInvoicePaymethodV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISINVOICEV1PostPayMethodDefaultRequest__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 - KEYAPISINVOICEV1PostPayMethodDefaultResponse

@implementation KEYAPISINVOICEV1PostPayMethodDefaultResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISINVOICEV1PostPayMethodDefaultResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISINVOICEV1PostPayMethodDefaultResponse_Error *error;
} KEYAPISINVOICEV1PostPayMethodDefaultResponse__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(KEYAPISINVOICEV1PostPayMethodDefaultResponse_Error),
        .number = KEYAPISINVOICEV1PostPayMethodDefaultResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PostPayMethodDefaultResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISINVOICEV1PostPayMethodDefaultResponse)
                                   messageName:@"PostPayMethodDefaultResponse"
                               fileDescription:&KEYAPISINVOICEV1KeyapisInvoicePaymethodV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISINVOICEV1PostPayMethodDefaultResponse__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 KEYAPISINVOICEV1PostPayMethodDefaultResponse_ClearTypeOneOfCase(KEYAPISINVOICEV1PostPayMethodDefaultResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISINVOICEV1PostPayMethodDefaultResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISINVOICEV1PostPayMethodDefaultResponse_Error

@implementation KEYAPISINVOICEV1PostPayMethodDefaultResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISINVOICEV1PostPayMethodDefaultResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISINVOICEV1ValidationError *validation;
} KEYAPISINVOICEV1PostPayMethodDefaultResponse_Error__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "validation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISINVOICEV1ValidationError),
        .number = KEYAPISINVOICEV1PostPayMethodDefaultResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PostPayMethodDefaultResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISINVOICEV1PostPayMethodDefaultResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISINVOICEV1KeyapisInvoicePaymethodV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISINVOICEV1PostPayMethodDefaultResponse_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(KEYAPISINVOICEV1PostPayMethodDefaultResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISINVOICEV1PostPayMethodBankcardRequest

@dynamic URLReturnOk;
@dynamic URLReturnNo;

typedef struct KEYAPISINVOICEV1PostPayMethodBankcardRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *URLReturnOk;
  NSString *URLReturnNo;
} KEYAPISINVOICEV1PostPayMethodBankcardRequest__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 = "URLReturnOk",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1PostPayMethodBankcardRequest_FieldNumber_URLReturnOk,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PostPayMethodBankcardRequest__storage_, URLReturnOk),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "URLReturnNo",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1PostPayMethodBankcardRequest_FieldNumber_URLReturnNo,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PostPayMethodBankcardRequest__storage_, URLReturnNo),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISINVOICEV1PostPayMethodBankcardRequest)
                                   messageName:@"PostPayMethodBankcardRequest"
                               fileDescription:&KEYAPISINVOICEV1KeyapisInvoicePaymethodV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISINVOICEV1PostPayMethodBankcardRequest__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
#if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
    static const char *extraTextFormatInfo =
        "\002\001!!!\246\242\000\002!!!\246\242\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 - KEYAPISINVOICEV1PostPayMethodBankcardResponse

@implementation KEYAPISINVOICEV1PostPayMethodBankcardResponse

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

typedef struct KEYAPISINVOICEV1PostPayMethodBankcardResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISINVOICEV1PostPayMethodBankcardResponse_Error *error;
  KEYAPISINVOICEV1PostPayMethodBankcardResponse_RegisterData *data_p;
} KEYAPISINVOICEV1PostPayMethodBankcardResponse__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(KEYAPISINVOICEV1PostPayMethodBankcardResponse_Error),
        .number = KEYAPISINVOICEV1PostPayMethodBankcardResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PostPayMethodBankcardResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISINVOICEV1PostPayMethodBankcardResponse_RegisterData),
        .number = KEYAPISINVOICEV1PostPayMethodBankcardResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PostPayMethodBankcardResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISINVOICEV1PostPayMethodBankcardResponse)
                                   messageName:@"PostPayMethodBankcardResponse"
                               fileDescription:&KEYAPISINVOICEV1KeyapisInvoicePaymethodV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISINVOICEV1PostPayMethodBankcardResponse__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 KEYAPISINVOICEV1PostPayMethodBankcardResponse_ClearTypeOneOfCase(KEYAPISINVOICEV1PostPayMethodBankcardResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISINVOICEV1PostPayMethodBankcardResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISINVOICEV1PostPayMethodBankcardResponse_Error

@implementation KEYAPISINVOICEV1PostPayMethodBankcardResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISINVOICEV1PostPayMethodBankcardResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISINVOICEV1ValidationError *validation;
} KEYAPISINVOICEV1PostPayMethodBankcardResponse_Error__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "validation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISINVOICEV1ValidationError),
        .number = KEYAPISINVOICEV1PostPayMethodBankcardResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PostPayMethodBankcardResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISINVOICEV1PostPayMethodBankcardResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISINVOICEV1KeyapisInvoicePaymethodV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISINVOICEV1PostPayMethodBankcardResponse_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(KEYAPISINVOICEV1PostPayMethodBankcardResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISINVOICEV1PostPayMethodBankcardResponse_RegisterData

@dynamic reqId;
@dynamic URLRegistration;

typedef struct KEYAPISINVOICEV1PostPayMethodBankcardResponse_RegisterData__storage_ {
  uint32_t _has_storage_[1];
  NSString *reqId;
  NSString *URLRegistration;
} KEYAPISINVOICEV1PostPayMethodBankcardResponse_RegisterData__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 = "reqId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1PostPayMethodBankcardResponse_RegisterData_FieldNumber_ReqId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PostPayMethodBankcardResponse_RegisterData__storage_, reqId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "URLRegistration",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1PostPayMethodBankcardResponse_RegisterData_FieldNumber_URLRegistration,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PostPayMethodBankcardResponse_RegisterData__storage_, URLRegistration),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISINVOICEV1PostPayMethodBankcardResponse_RegisterData)
                                   messageName:@"RegisterData"
                               fileDescription:&KEYAPISINVOICEV1KeyapisInvoicePaymethodV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISINVOICEV1PostPayMethodBankcardResponse_RegisterData__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
#if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
    static const char *extraTextFormatInfo =
        "\001\002!!!\254\000";
    [localDescriptor setupExtraTextInfo:extraTextFormatInfo];
#endif  // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISINVOICEV1PostPayMethodBankcardResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISINVOICEV1PostPayMethodSbpRequest

@implementation KEYAPISINVOICEV1PostPayMethodSbpRequest

@dynamic URLReturnOk;
@dynamic URLReturnNo;

typedef struct KEYAPISINVOICEV1PostPayMethodSbpRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *URLReturnOk;
  NSString *URLReturnNo;
} KEYAPISINVOICEV1PostPayMethodSbpRequest__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 = "URLReturnOk",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1PostPayMethodSbpRequest_FieldNumber_URLReturnOk,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PostPayMethodSbpRequest__storage_, URLReturnOk),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "URLReturnNo",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1PostPayMethodSbpRequest_FieldNumber_URLReturnNo,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PostPayMethodSbpRequest__storage_, URLReturnNo),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISINVOICEV1PostPayMethodSbpRequest)
                                   messageName:@"PostPayMethodSbpRequest"
                               fileDescription:&KEYAPISINVOICEV1KeyapisInvoicePaymethodV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISINVOICEV1PostPayMethodSbpRequest__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
#if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
    static const char *extraTextFormatInfo =
        "\002\001!!!\246\242\000\002!!!\246\242\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 - KEYAPISINVOICEV1PostPayMethodSbpResponse

@implementation KEYAPISINVOICEV1PostPayMethodSbpResponse

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

typedef struct KEYAPISINVOICEV1PostPayMethodSbpResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISINVOICEV1PostPayMethodSbpResponse_Error *error;
  KEYAPISINVOICEV1PostPayMethodSbpResponse_RegisterData *data_p;
} KEYAPISINVOICEV1PostPayMethodSbpResponse__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(KEYAPISINVOICEV1PostPayMethodSbpResponse_Error),
        .number = KEYAPISINVOICEV1PostPayMethodSbpResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PostPayMethodSbpResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISINVOICEV1PostPayMethodSbpResponse_RegisterData),
        .number = KEYAPISINVOICEV1PostPayMethodSbpResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PostPayMethodSbpResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISINVOICEV1PostPayMethodSbpResponse)
                                   messageName:@"PostPayMethodSbpResponse"
                               fileDescription:&KEYAPISINVOICEV1KeyapisInvoicePaymethodV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISINVOICEV1PostPayMethodSbpResponse__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 KEYAPISINVOICEV1PostPayMethodSbpResponse_ClearTypeOneOfCase(KEYAPISINVOICEV1PostPayMethodSbpResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISINVOICEV1PostPayMethodSbpResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISINVOICEV1PostPayMethodSbpResponse_Error

@implementation KEYAPISINVOICEV1PostPayMethodSbpResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISINVOICEV1PostPayMethodSbpResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISINVOICEV1ValidationError *validation;
} KEYAPISINVOICEV1PostPayMethodSbpResponse_Error__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "validation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISINVOICEV1ValidationError),
        .number = KEYAPISINVOICEV1PostPayMethodSbpResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PostPayMethodSbpResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISINVOICEV1PostPayMethodSbpResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISINVOICEV1KeyapisInvoicePaymethodV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISINVOICEV1PostPayMethodSbpResponse_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(KEYAPISINVOICEV1PostPayMethodSbpResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISINVOICEV1PostPayMethodSbpResponse_RegisterData

@dynamic reqId;
@dynamic URLRegistration;
@dynamic sbpPayload;

typedef struct KEYAPISINVOICEV1PostPayMethodSbpResponse_RegisterData__storage_ {
  uint32_t _has_storage_[1];
  NSString *reqId;
  NSString *URLRegistration;
  NSString *sbpPayload;
} KEYAPISINVOICEV1PostPayMethodSbpResponse_RegisterData__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 = "reqId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1PostPayMethodSbpResponse_RegisterData_FieldNumber_ReqId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PostPayMethodSbpResponse_RegisterData__storage_, reqId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "URLRegistration",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1PostPayMethodSbpResponse_RegisterData_FieldNumber_URLRegistration,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PostPayMethodSbpResponse_RegisterData__storage_, URLRegistration),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "sbpPayload",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1PostPayMethodSbpResponse_RegisterData_FieldNumber_SbpPayload,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1PostPayMethodSbpResponse_RegisterData__storage_, sbpPayload),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISINVOICEV1PostPayMethodSbpResponse_RegisterData)
                                   messageName:@"RegisterData"
                               fileDescription:&KEYAPISINVOICEV1KeyapisInvoicePaymethodV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISINVOICEV1PostPayMethodSbpResponse_RegisterData__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
#if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
    static const char *extraTextFormatInfo =
        "\001\002!!!\254\000";
    [localDescriptor setupExtraTextInfo:extraTextFormatInfo];
#endif  // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISINVOICEV1PostPayMethodSbpResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISINVOICEV1ValidationError

@implementation KEYAPISINVOICEV1ValidationError

@dynamic path;
@dynamic message;

typedef struct KEYAPISINVOICEV1ValidationError__storage_ {
  uint32_t _has_storage_[1];
  NSString *path;
  NSString *message;
} KEYAPISINVOICEV1ValidationError__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "path",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1ValidationError_FieldNumber_Path,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1ValidationError__storage_, path),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "message",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISINVOICEV1ValidationError_FieldNumber_Message,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISINVOICEV1ValidationError__storage_, message),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISINVOICEV1ValidationError)
                                   messageName:@"ValidationError"
                               fileDescription:&KEYAPISINVOICEV1KeyapisInvoicePaymethodV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISINVOICEV1ValidationError__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
