// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/subscription/v1/keyapis_subscription_subscription_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/subscription/v1/KeyapisSubscriptionSubscriptionV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "google/protobuf/Descriptor.pbobjc.h"
#import "keyapis/subscription/v1/KeyapisSubscriptionOfferV1.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(GPBDoubleValue);
GPBObjCClassDeclaration(GPBInt64Value);
GPBObjCClassDeclaration(GPBStringValue);
GPBObjCClassDeclaration(GPBTimestamp);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1GetSubscriptionCountRequest);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse_Error);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1GetSubscriptionListRequest);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse_Error);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1GetSubscriptionRequest);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1GetSubscriptionResponse);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1Offer);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusRequest);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ValidationError);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ValidationError_IdInvalid);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1Subscription);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1SubscriptionFilter);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError_FlatNumbersInvalid);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError_OrponsInvalid);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1SubscriptionPaging);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError_LimitInvalid);
GPBObjCClassDeclaration(KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError_OffsetInvalid);

#pragma mark - KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root

@implementation KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root

+ (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 KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root_FileDescription = {
  .package = "keyapis.subscription.v1",
  .prefix = "KEYAPISSUBSCRIPTIONV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum KEYAPISSUBSCRIPTIONV1Subscription_StatusType

GPBEnumDescriptor *KEYAPISSUBSCRIPTIONV1Subscription_StatusType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "StatusTypeUnknown\000Setup\000Active\000Blocked\000C"
        "anceled\000ScheduledCanceled\000";
    static const int32_t values[] = {
        KEYAPISSUBSCRIPTIONV1Subscription_StatusType_StatusTypeUnknown,
        KEYAPISSUBSCRIPTIONV1Subscription_StatusType_Setup,
        KEYAPISSUBSCRIPTIONV1Subscription_StatusType_Active,
        KEYAPISSUBSCRIPTIONV1Subscription_StatusType_Blocked,
        KEYAPISSUBSCRIPTIONV1Subscription_StatusType_Canceled,
        KEYAPISSUBSCRIPTIONV1Subscription_StatusType_ScheduledCanceled,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISSUBSCRIPTIONV1Subscription_StatusType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISSUBSCRIPTIONV1Subscription_StatusType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISSUBSCRIPTIONV1Subscription_StatusType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISSUBSCRIPTIONV1Subscription_StatusType_StatusTypeUnknown:
    case KEYAPISSUBSCRIPTIONV1Subscription_StatusType_Setup:
    case KEYAPISSUBSCRIPTIONV1Subscription_StatusType_Active:
    case KEYAPISSUBSCRIPTIONV1Subscription_StatusType_Blocked:
    case KEYAPISSUBSCRIPTIONV1Subscription_StatusType_Canceled:
    case KEYAPISSUBSCRIPTIONV1Subscription_StatusType_ScheduledCanceled:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISSUBSCRIPTIONV1Subscription_BillingType

GPBEnumDescriptor *KEYAPISSUBSCRIPTIONV1Subscription_BillingType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "BillingTypeUnknown\000AsrMrf\000AsrKey\000AsrMc\000";
    static const int32_t values[] = {
        KEYAPISSUBSCRIPTIONV1Subscription_BillingType_BillingTypeUnknown,
        KEYAPISSUBSCRIPTIONV1Subscription_BillingType_AsrMrf,
        KEYAPISSUBSCRIPTIONV1Subscription_BillingType_AsrKey,
        KEYAPISSUBSCRIPTIONV1Subscription_BillingType_AsrMc,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISSUBSCRIPTIONV1Subscription_BillingType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISSUBSCRIPTIONV1Subscription_BillingType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISSUBSCRIPTIONV1Subscription_BillingType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISSUBSCRIPTIONV1Subscription_BillingType_BillingTypeUnknown:
    case KEYAPISSUBSCRIPTIONV1Subscription_BillingType_AsrMrf:
    case KEYAPISSUBSCRIPTIONV1Subscription_BillingType_AsrKey:
    case KEYAPISSUBSCRIPTIONV1Subscription_BillingType_AsrMc:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISSUBSCRIPTIONV1SubscriptionPaging_OrderByType

GPBEnumDescriptor *KEYAPISSUBSCRIPTIONV1SubscriptionPaging_OrderByType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "OrderByTypeUnknown\000Id\000";
    static const int32_t values[] = {
        KEYAPISSUBSCRIPTIONV1SubscriptionPaging_OrderByType_OrderByTypeUnknown,
        KEYAPISSUBSCRIPTIONV1SubscriptionPaging_OrderByType_Id,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISSUBSCRIPTIONV1SubscriptionPaging_OrderByType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISSUBSCRIPTIONV1SubscriptionPaging_OrderByType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISSUBSCRIPTIONV1SubscriptionPaging_OrderByType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISSUBSCRIPTIONV1SubscriptionPaging_OrderByType_OrderByTypeUnknown:
    case KEYAPISSUBSCRIPTIONV1SubscriptionPaging_OrderByType_Id:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISSUBSCRIPTIONV1SubscriptionPaging_DirectionType

GPBEnumDescriptor *KEYAPISSUBSCRIPTIONV1SubscriptionPaging_DirectionType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "DirectionTypeUnknown\000Desc\000Asc\000";
    static const int32_t values[] = {
        KEYAPISSUBSCRIPTIONV1SubscriptionPaging_DirectionType_DirectionTypeUnknown,
        KEYAPISSUBSCRIPTIONV1SubscriptionPaging_DirectionType_Desc,
        KEYAPISSUBSCRIPTIONV1SubscriptionPaging_DirectionType_Asc,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISSUBSCRIPTIONV1SubscriptionPaging_DirectionType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISSUBSCRIPTIONV1SubscriptionPaging_DirectionType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISSUBSCRIPTIONV1SubscriptionPaging_DirectionType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISSUBSCRIPTIONV1SubscriptionPaging_DirectionType_DirectionTypeUnknown:
    case KEYAPISSUBSCRIPTIONV1SubscriptionPaging_DirectionType_Desc:
    case KEYAPISSUBSCRIPTIONV1SubscriptionPaging_DirectionType_Asc:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISSUBSCRIPTIONV1Subscription

@implementation KEYAPISSUBSCRIPTIONV1Subscription

@dynamic id_p;
@dynamic orpon;
@dynamic flatNumber;
@dynamic offerId;
@dynamic statusType;
@dynamic previousStatusType;
@dynamic hasPrice, price;
@dynamic hasCreatedAt, createdAt;
@dynamic hasChangedAt, changedAt;
@dynamic isEnableAutoSubscribe;
@dynamic billingType;
@dynamic hasExpiredAt, expiredAt;
@dynamic hasParentId, parentId;
@dynamic hasAccount, account;
@dynamic hasOffer, offer;
@dynamic hasDiscountPrice, discountPrice;

typedef struct KEYAPISSUBSCRIPTIONV1Subscription__storage_ {
  uint32_t _has_storage_[1];
  int32_t offerId;
  KEYAPISSUBSCRIPTIONV1Subscription_StatusType statusType;
  KEYAPISSUBSCRIPTIONV1Subscription_StatusType previousStatusType;
  KEYAPISSUBSCRIPTIONV1Subscription_BillingType billingType;
  NSString *id_p;
  NSString *flatNumber;
  GPBDoubleValue *price;
  GPBTimestamp *createdAt;
  GPBTimestamp *changedAt;
  GPBTimestamp *expiredAt;
  GPBStringValue *parentId;
  GPBInt64Value *account;
  KEYAPISSUBSCRIPTIONV1Offer *offer;
  GPBDoubleValue *discountPrice;
  int64_t orpon;
} KEYAPISSUBSCRIPTIONV1Subscription__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 = KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1Subscription__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "orpon",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_Orpon,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1Subscription__storage_, orpon),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "flatNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_FlatNumber,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1Subscription__storage_, flatNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "offerId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_OfferId,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1Subscription__storage_, offerId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "statusType",
        .dataTypeSpecific.enumDescFunc = KEYAPISSUBSCRIPTIONV1Subscription_StatusType_EnumDescriptor,
        .number = KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_StatusType,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1Subscription__storage_, statusType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "previousStatusType",
        .dataTypeSpecific.enumDescFunc = KEYAPISSUBSCRIPTIONV1Subscription_StatusType_EnumDescriptor,
        .number = KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_PreviousStatusType,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1Subscription__storage_, previousStatusType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "price",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBDoubleValue),
        .number = KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_Price,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1Subscription__storage_, price),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "createdAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_CreatedAt,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1Subscription__storage_, createdAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "changedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_ChangedAt,
        .hasIndex = 8,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1Subscription__storage_, changedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "isEnableAutoSubscribe",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_IsEnableAutoSubscribe,
        .hasIndex = 9,
        .offset = 10,  // Stored in _has_storage_ to save space.
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeBool,
      },
      {
        .name = "billingType",
        .dataTypeSpecific.enumDescFunc = KEYAPISSUBSCRIPTIONV1Subscription_BillingType_EnumDescriptor,
        .number = KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_BillingType,
        .hasIndex = 11,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1Subscription__storage_, billingType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "expiredAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_ExpiredAt,
        .hasIndex = 12,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1Subscription__storage_, expiredAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "parentId",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_ParentId,
        .hasIndex = 13,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1Subscription__storage_, parentId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "account",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBInt64Value),
        .number = KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_Account,
        .hasIndex = 14,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1Subscription__storage_, account),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "offer",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISSUBSCRIPTIONV1Offer),
        .number = KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_Offer,
        .hasIndex = 15,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1Subscription__storage_, offer),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "discountPrice",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBDoubleValue),
        .number = KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_DiscountPrice,
        .hasIndex = 16,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1Subscription__storage_, discountPrice),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1Subscription)
                                   messageName:@"Subscription"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1Subscription__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 KEYAPISSUBSCRIPTIONV1Subscription_StatusType_RawValue(KEYAPISSUBSCRIPTIONV1Subscription *message) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1Subscription descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_StatusType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISSUBSCRIPTIONV1Subscription_StatusType_RawValue(KEYAPISSUBSCRIPTIONV1Subscription *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1Subscription descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_StatusType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISSUBSCRIPTIONV1Subscription_PreviousStatusType_RawValue(KEYAPISSUBSCRIPTIONV1Subscription *message) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1Subscription descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_PreviousStatusType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISSUBSCRIPTIONV1Subscription_PreviousStatusType_RawValue(KEYAPISSUBSCRIPTIONV1Subscription *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1Subscription descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_PreviousStatusType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISSUBSCRIPTIONV1Subscription_BillingType_RawValue(KEYAPISSUBSCRIPTIONV1Subscription *message) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1Subscription descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_BillingType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISSUBSCRIPTIONV1Subscription_BillingType_RawValue(KEYAPISSUBSCRIPTIONV1Subscription *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1Subscription descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1Subscription_FieldNumber_BillingType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISSUBSCRIPTIONV1SubscriptionFilter

@implementation KEYAPISSUBSCRIPTIONV1SubscriptionFilter

@dynamic orponsArray, orponsArray_Count;
@dynamic flatNumbersArray, flatNumbersArray_Count;
@dynamic billingTypesArray, billingTypesArray_Count;

typedef struct KEYAPISSUBSCRIPTIONV1SubscriptionFilter__storage_ {
  uint32_t _has_storage_[1];
  GPBInt64Array *orponsArray;
  NSMutableArray *flatNumbersArray;
  GPBEnumArray *billingTypesArray;
} KEYAPISSUBSCRIPTIONV1SubscriptionFilter__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 = "orponsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISSUBSCRIPTIONV1SubscriptionFilter_FieldNumber_OrponsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1SubscriptionFilter__storage_, orponsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "flatNumbersArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISSUBSCRIPTIONV1SubscriptionFilter_FieldNumber_FlatNumbersArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1SubscriptionFilter__storage_, flatNumbersArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "billingTypesArray",
        .dataTypeSpecific.enumDescFunc = KEYAPISSUBSCRIPTIONV1Subscription_BillingType_EnumDescriptor,
        .number = KEYAPISSUBSCRIPTIONV1SubscriptionFilter_FieldNumber_BillingTypesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1SubscriptionFilter__storage_, billingTypesArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked | GPBFieldHasEnumDescriptor),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1SubscriptionFilter)
                                   messageName:@"SubscriptionFilter"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1SubscriptionFilter__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 - KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError

@implementation KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError

@dynamic reasonOneOfCase;
@dynamic orpons;
@dynamic flatNumbers;

typedef struct KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError_OrponsInvalid *orpons;
  KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError_FlatNumbersInvalid *flatNumbers;
} KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError__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 = "orpons",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError_OrponsInvalid),
        .number = KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError_FieldNumber_Orpons,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError__storage_, orpons),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "flatNumbers",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError_FlatNumbersInvalid),
        .number = KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError_FieldNumber_FlatNumbers,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError__storage_, flatNumbers),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError)
                                   messageName:@"ValidationError"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError__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(KEYAPISSUBSCRIPTIONV1SubscriptionFilter)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError_OrponsInvalid


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

@end

#pragma mark - KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError_FlatNumbersInvalid

@implementation KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError_FlatNumbersInvalid


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

@end

#pragma mark - KEYAPISSUBSCRIPTIONV1SubscriptionPaging

@implementation KEYAPISSUBSCRIPTIONV1SubscriptionPaging

@dynamic orderByType;
@dynamic directionType;
@dynamic limit;
@dynamic offset;

typedef struct KEYAPISSUBSCRIPTIONV1SubscriptionPaging__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISSUBSCRIPTIONV1SubscriptionPaging_OrderByType orderByType;
  KEYAPISSUBSCRIPTIONV1SubscriptionPaging_DirectionType directionType;
  int32_t limit;
  int32_t offset;
} KEYAPISSUBSCRIPTIONV1SubscriptionPaging__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 = "orderByType",
        .dataTypeSpecific.enumDescFunc = KEYAPISSUBSCRIPTIONV1SubscriptionPaging_OrderByType_EnumDescriptor,
        .number = KEYAPISSUBSCRIPTIONV1SubscriptionPaging_FieldNumber_OrderByType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1SubscriptionPaging__storage_, orderByType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "directionType",
        .dataTypeSpecific.enumDescFunc = KEYAPISSUBSCRIPTIONV1SubscriptionPaging_DirectionType_EnumDescriptor,
        .number = KEYAPISSUBSCRIPTIONV1SubscriptionPaging_FieldNumber_DirectionType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1SubscriptionPaging__storage_, directionType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "limit",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISSUBSCRIPTIONV1SubscriptionPaging_FieldNumber_Limit,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1SubscriptionPaging__storage_, limit),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "offset",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISSUBSCRIPTIONV1SubscriptionPaging_FieldNumber_Offset,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1SubscriptionPaging__storage_, offset),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1SubscriptionPaging)
                                   messageName:@"SubscriptionPaging"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1SubscriptionPaging__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 KEYAPISSUBSCRIPTIONV1SubscriptionPaging_OrderByType_RawValue(KEYAPISSUBSCRIPTIONV1SubscriptionPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1SubscriptionPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1SubscriptionPaging_FieldNumber_OrderByType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISSUBSCRIPTIONV1SubscriptionPaging_OrderByType_RawValue(KEYAPISSUBSCRIPTIONV1SubscriptionPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1SubscriptionPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1SubscriptionPaging_FieldNumber_OrderByType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISSUBSCRIPTIONV1SubscriptionPaging_DirectionType_RawValue(KEYAPISSUBSCRIPTIONV1SubscriptionPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1SubscriptionPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1SubscriptionPaging_FieldNumber_DirectionType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISSUBSCRIPTIONV1SubscriptionPaging_DirectionType_RawValue(KEYAPISSUBSCRIPTIONV1SubscriptionPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1SubscriptionPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1SubscriptionPaging_FieldNumber_DirectionType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError

@implementation KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError

@dynamic reasonOneOfCase;
@dynamic limit;
@dynamic offset;

typedef struct KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError_LimitInvalid *limit;
  KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError_OffsetInvalid *offset;
} KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError__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 = "limit",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError_LimitInvalid),
        .number = KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError_FieldNumber_Limit,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError__storage_, limit),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "offset",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError_OffsetInvalid),
        .number = KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError_FieldNumber_Offset,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError__storage_, offset),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError)
                                   messageName:@"ValidationError"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError__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(KEYAPISSUBSCRIPTIONV1SubscriptionPaging)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError_LimitInvalid


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

@end

#pragma mark - KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError_OffsetInvalid

@implementation KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError_OffsetInvalid


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

@end

#pragma mark - KEYAPISSUBSCRIPTIONV1GetSubscriptionRequest

@implementation KEYAPISSUBSCRIPTIONV1GetSubscriptionRequest

@dynamic id_p;

typedef struct KEYAPISSUBSCRIPTIONV1GetSubscriptionRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *id_p;
} KEYAPISSUBSCRIPTIONV1GetSubscriptionRequest__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 = KEYAPISSUBSCRIPTIONV1GetSubscriptionRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1GetSubscriptionRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1GetSubscriptionRequest)
                                   messageName:@"GetSubscriptionRequest"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1GetSubscriptionRequest__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 - KEYAPISSUBSCRIPTIONV1GetSubscriptionResponse

@implementation KEYAPISSUBSCRIPTIONV1GetSubscriptionResponse

@dynamic typeOneOfCase;
@dynamic data_p;

typedef struct KEYAPISSUBSCRIPTIONV1GetSubscriptionResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISSUBSCRIPTIONV1Subscription *data_p;
} KEYAPISSUBSCRIPTIONV1GetSubscriptionResponse__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(KEYAPISSUBSCRIPTIONV1Subscription),
        .number = KEYAPISSUBSCRIPTIONV1GetSubscriptionResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1GetSubscriptionResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1GetSubscriptionResponse)
                                   messageName:@"GetSubscriptionResponse"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1GetSubscriptionResponse__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 KEYAPISSUBSCRIPTIONV1GetSubscriptionResponse_ClearTypeOneOfCase(KEYAPISSUBSCRIPTIONV1GetSubscriptionResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1GetSubscriptionResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISSUBSCRIPTIONV1GetSubscriptionListRequest

@implementation KEYAPISSUBSCRIPTIONV1GetSubscriptionListRequest

@dynamic paginationOneOfCase;
@dynamic hasFilter, filter;
@dynamic paging;

typedef struct KEYAPISSUBSCRIPTIONV1GetSubscriptionListRequest__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISSUBSCRIPTIONV1SubscriptionFilter *filter;
  KEYAPISSUBSCRIPTIONV1SubscriptionPaging *paging;
} KEYAPISSUBSCRIPTIONV1GetSubscriptionListRequest__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 = "filter",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISSUBSCRIPTIONV1SubscriptionFilter),
        .number = KEYAPISSUBSCRIPTIONV1GetSubscriptionListRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1GetSubscriptionListRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "paging",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISSUBSCRIPTIONV1SubscriptionPaging),
        .number = KEYAPISSUBSCRIPTIONV1GetSubscriptionListRequest_FieldNumber_Paging,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1GetSubscriptionListRequest__storage_, paging),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1GetSubscriptionListRequest)
                                   messageName:@"GetSubscriptionListRequest"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1GetSubscriptionListRequest__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "pagination",
    };
    [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 KEYAPISSUBSCRIPTIONV1GetSubscriptionListRequest_ClearPaginationOneOfCase(KEYAPISSUBSCRIPTIONV1GetSubscriptionListRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1GetSubscriptionListRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse

@implementation KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse

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

typedef struct KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISSUBSCRIPTIONV1Subscription *data_p;
  KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse_Error *error;
} KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse__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(KEYAPISSUBSCRIPTIONV1Subscription),
        .number = KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse_Error),
        .number = KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse)
                                   messageName:@"GetSubscriptionListResponse"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse__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 KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse_ClearTypeOneOfCase(KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse_Error

@implementation KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse_Error

@dynamic reasonOneOfCase;
@dynamic subscriptionFilterValidation;
@dynamic subscriptionPagingValidation;

typedef struct KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError *subscriptionFilterValidation;
  KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError *subscriptionPagingValidation;
} KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse_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 = "subscriptionFilterValidation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError),
        .number = KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse_Error_FieldNumber_SubscriptionFilterValidation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse_Error__storage_, subscriptionFilterValidation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "subscriptionPagingValidation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISSUBSCRIPTIONV1SubscriptionPaging_ValidationError),
        .number = KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse_Error_FieldNumber_SubscriptionPagingValidation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse_Error__storage_, subscriptionPagingValidation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse_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(KEYAPISSUBSCRIPTIONV1GetSubscriptionListResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISSUBSCRIPTIONV1GetSubscriptionCountRequest

@dynamic hasFilter, filter;

typedef struct KEYAPISSUBSCRIPTIONV1GetSubscriptionCountRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISSUBSCRIPTIONV1SubscriptionFilter *filter;
} KEYAPISSUBSCRIPTIONV1GetSubscriptionCountRequest__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 = "filter",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISSUBSCRIPTIONV1SubscriptionFilter),
        .number = KEYAPISSUBSCRIPTIONV1GetSubscriptionCountRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1GetSubscriptionCountRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1GetSubscriptionCountRequest)
                                   messageName:@"GetSubscriptionCountRequest"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1GetSubscriptionCountRequest__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 - KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse

@implementation KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse

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

typedef struct KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse__storage_ {
  uint32_t _has_storage_[2];
  int32_t data_p;
  KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse_Error *error;
} KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse__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 = KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse_Error),
        .number = KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse)
                                   messageName:@"GetSubscriptionCountResponse"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse__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 KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse_ClearTypeOneOfCase(KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse_Error

@implementation KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse_Error

@dynamic reasonOneOfCase;
@dynamic subscriptionFilterValidation;

typedef struct KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError *subscriptionFilterValidation;
} KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse_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 = "subscriptionFilterValidation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISSUBSCRIPTIONV1SubscriptionFilter_ValidationError),
        .number = KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse_Error_FieldNumber_SubscriptionFilterValidation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse_Error__storage_, subscriptionFilterValidation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse_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(KEYAPISSUBSCRIPTIONV1GetSubscriptionCountResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusRequest

@dynamic id_p;
@dynamic statusType;

typedef struct KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISSUBSCRIPTIONV1Subscription_StatusType statusType;
  NSString *id_p;
} KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusRequest__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 = KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "statusType",
        .dataTypeSpecific.enumDescFunc = KEYAPISSUBSCRIPTIONV1Subscription_StatusType_EnumDescriptor,
        .number = KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusRequest_FieldNumber_StatusType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusRequest__storage_, statusType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusRequest)
                                   messageName:@"PostSubscriptionSetStatusRequest"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusRequest__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 KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusRequest_StatusType_RawValue(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusRequest descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusRequest_FieldNumber_StatusType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusRequest_StatusType_RawValue(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusRequest *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusRequest descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusRequest_FieldNumber_StatusType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse

@implementation KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse

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

typedef struct KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISSUBSCRIPTIONV1Subscription *data_p;
  KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error *error;
} KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse__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(KEYAPISSUBSCRIPTIONV1Subscription),
        .number = KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error),
        .number = KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse)
                                   messageName:@"PostSubscriptionSetStatusResponse"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse__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 KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_ClearTypeOneOfCase(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error

@implementation KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;
@dynamic changeStatusError;

typedef struct KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ValidationError *validation;
  KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError *changeStatusError;
} KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_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(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ValidationError),
        .number = KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "changeStatusError",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError),
        .number = KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_FieldNumber_ChangeStatusError,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error__storage_, changeStatusError),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_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(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ValidationError

@dynamic reasonOneOfCase;
@dynamic id_p;

typedef struct KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ValidationError__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ValidationError_IdInvalid *id_p;
} KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ValidationError__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 = GPBObjCClass(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ValidationError_IdInvalid),
        .number = KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ValidationError_FieldNumber_Id_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ValidationError__storage_, id_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ValidationError)
                                   messageName:@"ValidationError"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ValidationError__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(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ValidationError_IdInvalid


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

@end

#pragma mark - KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError

@implementation KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError

@dynamic currentStatusType;
@dynamic targetStatusType;

typedef struct KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISSUBSCRIPTIONV1Subscription_StatusType currentStatusType;
  KEYAPISSUBSCRIPTIONV1Subscription_StatusType targetStatusType;
} KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError__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 = "currentStatusType",
        .dataTypeSpecific.enumDescFunc = KEYAPISSUBSCRIPTIONV1Subscription_StatusType_EnumDescriptor,
        .number = KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError_FieldNumber_CurrentStatusType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError__storage_, currentStatusType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "targetStatusType",
        .dataTypeSpecific.enumDescFunc = KEYAPISSUBSCRIPTIONV1Subscription_StatusType_EnumDescriptor,
        .number = KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError_FieldNumber_TargetStatusType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError__storage_, targetStatusType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError)
                                   messageName:@"ChangeStatusError"
                               fileDescription:&KEYAPISSUBSCRIPTIONV1KeyapisSubscriptionSubscriptionV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

int32_t KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError_CurrentStatusType_RawValue(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError *message) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError_FieldNumber_CurrentStatusType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError_CurrentStatusType_RawValue(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError_FieldNumber_CurrentStatusType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError_TargetStatusType_RawValue(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError *message) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError_FieldNumber_TargetStatusType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError_TargetStatusType_RawValue(KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISSUBSCRIPTIONV1PostSubscriptionSetStatusResponse_Error_ChangeStatusError_FieldNumber_TargetStatusType];
  GPBSetMessageRawEnumField(message, field, value);
}


#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
