// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/ad/v1/keyapis_ad_marketplace_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/ad/v1/KeyapisAdMarketplaceV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "google/protobuf/Descriptor.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(GPBStringValue);
GPBObjCClassDeclaration(GPBTimestamp);
GPBObjCClassDeclaration(KEYAPISADV1GetMarketplaceCountRequest);
GPBObjCClassDeclaration(KEYAPISADV1GetMarketplaceCountResponse);
GPBObjCClassDeclaration(KEYAPISADV1GetMarketplaceListRequest);
GPBObjCClassDeclaration(KEYAPISADV1GetMarketplaceListResponse);
GPBObjCClassDeclaration(KEYAPISADV1GetMarketplaceRequest);
GPBObjCClassDeclaration(KEYAPISADV1GetMarketplaceResponse);
GPBObjCClassDeclaration(KEYAPISADV1Marketplace);
GPBObjCClassDeclaration(KEYAPISADV1PostMarketplaceRequest);
GPBObjCClassDeclaration(KEYAPISADV1PostMarketplaceResponse);

#pragma mark - KEYAPISADV1KeyapisAdMarketplaceV1Root

@implementation KEYAPISADV1KeyapisAdMarketplaceV1Root

+ (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 KEYAPISADV1KeyapisAdMarketplaceV1Root_FileDescription = {
  .package = "keyapis.ad.v1",
  .prefix = "KEYAPISADV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum KEYAPISADV1Marketplace_Type

GPBEnumDescriptor *KEYAPISADV1Marketplace_Type_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "TypeUnknown\000Ozon\000Wildberries\000YandexMarke"
        "t\000SberMarket\000";
    static const int32_t values[] = {
        KEYAPISADV1Marketplace_Type_TypeUnknown,
        KEYAPISADV1Marketplace_Type_Ozon,
        KEYAPISADV1Marketplace_Type_Wildberries,
        KEYAPISADV1Marketplace_Type_YandexMarket,
        KEYAPISADV1Marketplace_Type_SberMarket,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISADV1Marketplace_Type)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISADV1Marketplace_Type_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISADV1Marketplace_Type_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISADV1Marketplace_Type_TypeUnknown:
    case KEYAPISADV1Marketplace_Type_Ozon:
    case KEYAPISADV1Marketplace_Type_Wildberries:
    case KEYAPISADV1Marketplace_Type_YandexMarket:
    case KEYAPISADV1Marketplace_Type_SberMarket:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISADV1Marketplace

@implementation KEYAPISADV1Marketplace

@dynamic id_p;
@dynamic title;
@dynamic type;
@dynamic isDisabled;
@dynamic hasCardURL, cardURL;
@dynamic hasCreatedAt, createdAt;
@dynamic hasChangedAt, changedAt;

typedef struct KEYAPISADV1Marketplace__storage_ {
  uint32_t _has_storage_[1];
  int32_t id_p;
  KEYAPISADV1Marketplace_Type type;
  NSString *title;
  GPBStringValue *cardURL;
  GPBTimestamp *createdAt;
  GPBTimestamp *changedAt;
} KEYAPISADV1Marketplace__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 = KEYAPISADV1Marketplace_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISADV1Marketplace__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "title",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISADV1Marketplace_FieldNumber_Title,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISADV1Marketplace__storage_, title),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "type",
        .dataTypeSpecific.enumDescFunc = KEYAPISADV1Marketplace_Type_EnumDescriptor,
        .number = KEYAPISADV1Marketplace_FieldNumber_Type,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISADV1Marketplace__storage_, type),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "isDisabled",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISADV1Marketplace_FieldNumber_IsDisabled,
        .hasIndex = 3,
        .offset = 4,  // Stored in _has_storage_ to save space.
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeBool,
      },
      {
        .name = "cardURL",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISADV1Marketplace_FieldNumber_CardURL,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISADV1Marketplace__storage_, cardURL),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "createdAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISADV1Marketplace_FieldNumber_CreatedAt,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISADV1Marketplace__storage_, createdAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "changedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISADV1Marketplace_FieldNumber_ChangedAt,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(KEYAPISADV1Marketplace__storage_, changedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISADV1Marketplace)
                                   messageName:@"Marketplace"
                               fileDescription:&KEYAPISADV1KeyapisAdMarketplaceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISADV1Marketplace__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
#if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
    static const char *extraTextFormatInfo =
        "\001\005\004\241!!\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

int32_t KEYAPISADV1Marketplace_Type_RawValue(KEYAPISADV1Marketplace *message) {
  GPBDescriptor *descriptor = [KEYAPISADV1Marketplace descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISADV1Marketplace_FieldNumber_Type];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISADV1Marketplace_Type_RawValue(KEYAPISADV1Marketplace *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISADV1Marketplace descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISADV1Marketplace_FieldNumber_Type];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISADV1PostMarketplaceRequest

@implementation KEYAPISADV1PostMarketplaceRequest

@dynamic hasData_p, data_p;

typedef struct KEYAPISADV1PostMarketplaceRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISADV1Marketplace *data_p;
} KEYAPISADV1PostMarketplaceRequest__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISADV1Marketplace),
        .number = KEYAPISADV1PostMarketplaceRequest_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISADV1PostMarketplaceRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISADV1PostMarketplaceRequest)
                                   messageName:@"PostMarketplaceRequest"
                               fileDescription:&KEYAPISADV1KeyapisAdMarketplaceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISADV1PostMarketplaceRequest__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 - KEYAPISADV1PostMarketplaceResponse

@implementation KEYAPISADV1PostMarketplaceResponse

@dynamic typeOneOfCase;
@dynamic data_p;

typedef struct KEYAPISADV1PostMarketplaceResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISADV1Marketplace *data_p;
} KEYAPISADV1PostMarketplaceResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISADV1Marketplace),
        .number = KEYAPISADV1PostMarketplaceResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISADV1PostMarketplaceResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISADV1PostMarketplaceResponse)
                                   messageName:@"PostMarketplaceResponse"
                               fileDescription:&KEYAPISADV1KeyapisAdMarketplaceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISADV1PostMarketplaceResponse__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 KEYAPISADV1PostMarketplaceResponse_ClearTypeOneOfCase(KEYAPISADV1PostMarketplaceResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISADV1PostMarketplaceResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISADV1GetMarketplaceRequest

@implementation KEYAPISADV1GetMarketplaceRequest

@dynamic id_p;

typedef struct KEYAPISADV1GetMarketplaceRequest__storage_ {
  uint32_t _has_storage_[1];
  int32_t id_p;
} KEYAPISADV1GetMarketplaceRequest__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 = KEYAPISADV1GetMarketplaceRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISADV1GetMarketplaceRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISADV1GetMarketplaceRequest)
                                   messageName:@"GetMarketplaceRequest"
                               fileDescription:&KEYAPISADV1KeyapisAdMarketplaceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISADV1GetMarketplaceRequest__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 - KEYAPISADV1GetMarketplaceResponse

@implementation KEYAPISADV1GetMarketplaceResponse

@dynamic typeOneOfCase;
@dynamic data_p;

typedef struct KEYAPISADV1GetMarketplaceResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISADV1Marketplace *data_p;
} KEYAPISADV1GetMarketplaceResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISADV1Marketplace),
        .number = KEYAPISADV1GetMarketplaceResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISADV1GetMarketplaceResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISADV1GetMarketplaceResponse)
                                   messageName:@"GetMarketplaceResponse"
                               fileDescription:&KEYAPISADV1KeyapisAdMarketplaceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISADV1GetMarketplaceResponse__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 KEYAPISADV1GetMarketplaceResponse_ClearTypeOneOfCase(KEYAPISADV1GetMarketplaceResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISADV1GetMarketplaceResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISADV1GetMarketplaceListRequest

@implementation KEYAPISADV1GetMarketplaceListRequest


typedef struct KEYAPISADV1GetMarketplaceListRequest__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISADV1GetMarketplaceListRequest__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(KEYAPISADV1GetMarketplaceListRequest)
                                   messageName:@"GetMarketplaceListRequest"
                               fileDescription:&KEYAPISADV1KeyapisAdMarketplaceV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISADV1GetMarketplaceListRequest__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 - KEYAPISADV1GetMarketplaceListResponse

@implementation KEYAPISADV1GetMarketplaceListResponse

@dynamic typeOneOfCase;
@dynamic data_p;

typedef struct KEYAPISADV1GetMarketplaceListResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISADV1Marketplace *data_p;
} KEYAPISADV1GetMarketplaceListResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISADV1Marketplace),
        .number = KEYAPISADV1GetMarketplaceListResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISADV1GetMarketplaceListResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISADV1GetMarketplaceListResponse)
                                   messageName:@"GetMarketplaceListResponse"
                               fileDescription:&KEYAPISADV1KeyapisAdMarketplaceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISADV1GetMarketplaceListResponse__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 KEYAPISADV1GetMarketplaceListResponse_ClearTypeOneOfCase(KEYAPISADV1GetMarketplaceListResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISADV1GetMarketplaceListResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISADV1GetMarketplaceCountRequest

@implementation KEYAPISADV1GetMarketplaceCountRequest


typedef struct KEYAPISADV1GetMarketplaceCountRequest__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISADV1GetMarketplaceCountRequest__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(KEYAPISADV1GetMarketplaceCountRequest)
                                   messageName:@"GetMarketplaceCountRequest"
                               fileDescription:&KEYAPISADV1KeyapisAdMarketplaceV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISADV1GetMarketplaceCountRequest__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 - KEYAPISADV1GetMarketplaceCountResponse

@implementation KEYAPISADV1GetMarketplaceCountResponse

@dynamic typeOneOfCase;
@dynamic data_p;

typedef struct KEYAPISADV1GetMarketplaceCountResponse__storage_ {
  uint32_t _has_storage_[2];
  int32_t data_p;
} KEYAPISADV1GetMarketplaceCountResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISADV1GetMarketplaceCountResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISADV1GetMarketplaceCountResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISADV1GetMarketplaceCountResponse)
                                   messageName:@"GetMarketplaceCountResponse"
                               fileDescription:&KEYAPISADV1KeyapisAdMarketplaceV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISADV1GetMarketplaceCountResponse__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 KEYAPISADV1GetMarketplaceCountResponse_ClearTypeOneOfCase(KEYAPISADV1GetMarketplaceCountResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISADV1GetMarketplaceCountResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}

#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
