// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/access_control/v1/keyapis_access_control_flatgramm_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/access_control/v1/KeyapisAccessControlFlatgrammV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "keyapis/access_control/v1/KeyapisAccessControlAccessControlV1.pbobjc.h"
#import "google/api/Visibility.pbobjc.h"
// @@protoc_insertion_point(imports)

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma clang diagnostic ignored "-Wdirect-ivar-access"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"

#pragma mark - Objective-C Class declarations
// Forward declarations of Objective-C classes that we can use as
// static values in struct initializers.
// We don't use [Foo class] because it is not a static value.
GPBObjCClassDeclaration(GPBTimestamp);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1DcCompanyFlatgramm);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammFilter);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1Flatgramm);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationFilter);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1FlatgrammFilter);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1FlatgrammPaging);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetFlatgrammCountRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetFlatgrammCountResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetFlatgrammListRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetFlatgrammListResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetFlatgrammListResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetFlatgrammRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetFlatgrammResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1GetFlatgrammResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachRequest);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachResponse);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachResponse_Error);
GPBObjCClassDeclaration(KEYAPISACCESSCONTROLV1ValidationError);

#pragma mark - KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root

@implementation KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root

+ (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]];
    [registry addExtensions:[GAPIVisibilityRoot extensionRegistry]];
  }
  return registry;
}

@end

static GPBFileDescription KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription = {
  .package = "keyapis.access_control.v1",
  .prefix = "KEYAPISACCESSCONTROLV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum KEYAPISACCESSCONTROLV1FlatgrammPaging_OrderByType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1FlatgrammPaging_OrderByType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "OrderByTypeUnknown\000Id\000CreatedAt\000ChangedA"
        "t\000Rank\000";
    static const int32_t values[] = {
        KEYAPISACCESSCONTROLV1FlatgrammPaging_OrderByType_OrderByTypeUnknown,
        KEYAPISACCESSCONTROLV1FlatgrammPaging_OrderByType_Id,
        KEYAPISACCESSCONTROLV1FlatgrammPaging_OrderByType_CreatedAt,
        KEYAPISACCESSCONTROLV1FlatgrammPaging_OrderByType_ChangedAt,
        KEYAPISACCESSCONTROLV1FlatgrammPaging_OrderByType_Rank,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1FlatgrammPaging_OrderByType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1FlatgrammPaging_OrderByType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1FlatgrammPaging_OrderByType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1FlatgrammPaging_OrderByType_OrderByTypeUnknown:
    case KEYAPISACCESSCONTROLV1FlatgrammPaging_OrderByType_Id:
    case KEYAPISACCESSCONTROLV1FlatgrammPaging_OrderByType_CreatedAt:
    case KEYAPISACCESSCONTROLV1FlatgrammPaging_OrderByType_ChangedAt:
    case KEYAPISACCESSCONTROLV1FlatgrammPaging_OrderByType_Rank:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISACCESSCONTROLV1FlatgrammPaging_DirectionType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1FlatgrammPaging_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[] = {
        KEYAPISACCESSCONTROLV1FlatgrammPaging_DirectionType_DirectionTypeUnknown,
        KEYAPISACCESSCONTROLV1FlatgrammPaging_DirectionType_Desc,
        KEYAPISACCESSCONTROLV1FlatgrammPaging_DirectionType_Asc,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1FlatgrammPaging_DirectionType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1FlatgrammPaging_DirectionType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1FlatgrammPaging_DirectionType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1FlatgrammPaging_DirectionType_DirectionTypeUnknown:
    case KEYAPISACCESSCONTROLV1FlatgrammPaging_DirectionType_Desc:
    case KEYAPISACCESSCONTROLV1FlatgrammPaging_DirectionType_Asc:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_OrderByType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_OrderByType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "OrderByTypeUnknown\000CompanyId\000FlatgrammId"
        "\000";
    static const int32_t values[] = {
        KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_OrderByType_OrderByTypeUnknown,
        KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_OrderByType_CompanyId,
        KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_OrderByType_FlatgrammId,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_OrderByType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_OrderByType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_OrderByType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_OrderByType_OrderByTypeUnknown:
    case KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_OrderByType_CompanyId:
    case KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_OrderByType_FlatgrammId:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_DirectionType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_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[] = {
        KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_DirectionType_DirectionTypeUnknown,
        KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_DirectionType_Desc,
        KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_DirectionType_Asc,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_DirectionType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_DirectionType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_DirectionType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_DirectionType_DirectionTypeUnknown:
    case KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_DirectionType_Desc:
    case KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_DirectionType_Asc:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_OrderByType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_OrderByType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "OrderByTypeUnknown\000CompanyId\000FlatgrammId"
        "\000";
    static const int32_t values[] = {
        KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_OrderByType_OrderByTypeUnknown,
        KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_OrderByType_CompanyId,
        KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_OrderByType_FlatgrammId,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_OrderByType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_OrderByType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_OrderByType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_OrderByType_OrderByTypeUnknown:
    case KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_OrderByType_CompanyId:
    case KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_OrderByType_FlatgrammId:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_DirectionType

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_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[] = {
        KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_DirectionType_DirectionTypeUnknown,
        KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_DirectionType_Desc,
        KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_DirectionType_Asc,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_DirectionType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_DirectionType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_DirectionType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_DirectionType_DirectionTypeUnknown:
    case KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_DirectionType_Desc:
    case KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_DirectionType_Asc:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_Type

GPBEnumDescriptor *KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_Type_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "TypeUnknown\000Management\000DeviceService\000";
    static const int32_t values[] = {
        KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_Type_TypeUnknown,
        KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_Type_Management,
        KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_Type_DeviceService,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_Type)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_Type_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_Type_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_Type_TypeUnknown:
    case KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_Type_Management:
    case KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_Type_DeviceService:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISACCESSCONTROLV1Flatgramm

@implementation KEYAPISACCESSCONTROLV1Flatgramm

@dynamic id_p;
@dynamic title;
@dynamic companyId;
@dynamic hasCreatedAt, createdAt;
@dynamic hasChangedAt, changedAt;

typedef struct KEYAPISACCESSCONTROLV1Flatgramm__storage_ {
  uint32_t _has_storage_[1];
  int32_t id_p;
  int32_t companyId;
  NSString *title;
  GPBTimestamp *createdAt;
  GPBTimestamp *changedAt;
} KEYAPISACCESSCONTROLV1Flatgramm__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 = KEYAPISACCESSCONTROLV1Flatgramm_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Flatgramm__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "title",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1Flatgramm_FieldNumber_Title,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Flatgramm__storage_, title),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "companyId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1Flatgramm_FieldNumber_CompanyId,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Flatgramm__storage_, companyId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "createdAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISACCESSCONTROLV1Flatgramm_FieldNumber_CreatedAt,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Flatgramm__storage_, createdAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "changedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISACCESSCONTROLV1Flatgramm_FieldNumber_ChangedAt,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1Flatgramm__storage_, changedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1Flatgramm)
                                   messageName:@"Flatgramm"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1Flatgramm__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 - KEYAPISACCESSCONTROLV1GetFlatgrammRequest

@implementation KEYAPISACCESSCONTROLV1GetFlatgrammRequest

@dynamic id_p;

typedef struct KEYAPISACCESSCONTROLV1GetFlatgrammRequest__storage_ {
  uint32_t _has_storage_[1];
  int32_t id_p;
} KEYAPISACCESSCONTROLV1GetFlatgrammRequest__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 = KEYAPISACCESSCONTROLV1GetFlatgrammRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammRequest)
                                   messageName:@"GetFlatgrammRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetFlatgrammRequest__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 - KEYAPISACCESSCONTROLV1GetFlatgrammResponse

@implementation KEYAPISACCESSCONTROLV1GetFlatgrammResponse

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

typedef struct KEYAPISACCESSCONTROLV1GetFlatgrammResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1Flatgramm *data_p;
  KEYAPISACCESSCONTROLV1GetFlatgrammResponse_Error *error;
} KEYAPISACCESSCONTROLV1GetFlatgrammResponse__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(KEYAPISACCESSCONTROLV1Flatgramm),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammResponse_Error),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammResponse)
                                   messageName:@"GetFlatgrammResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetFlatgrammResponse__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 KEYAPISACCESSCONTROLV1GetFlatgrammResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1GetFlatgrammResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetFlatgrammResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetFlatgrammResponse_Error

@implementation KEYAPISACCESSCONTROLV1GetFlatgrammResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISACCESSCONTROLV1GetFlatgrammResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1ValidationError *validation;
} KEYAPISACCESSCONTROLV1GetFlatgrammResponse_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(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetFlatgrammResponse_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(KEYAPISACCESSCONTROLV1GetFlatgrammResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISACCESSCONTROLV1GetFlatgrammListRequest

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

typedef struct KEYAPISACCESSCONTROLV1GetFlatgrammListRequest__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1FlatgrammFilter *filter;
  KEYAPISACCESSCONTROLV1FlatgrammPaging *paging;
} KEYAPISACCESSCONTROLV1GetFlatgrammListRequest__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(KEYAPISACCESSCONTROLV1FlatgrammFilter),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammListRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammListRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "paging",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1FlatgrammPaging),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammListRequest_FieldNumber_Paging,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammListRequest__storage_, paging),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammListRequest)
                                   messageName:@"GetFlatgrammListRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetFlatgrammListRequest__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 KEYAPISACCESSCONTROLV1GetFlatgrammListRequest_ClearPaginationOneOfCase(KEYAPISACCESSCONTROLV1GetFlatgrammListRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetFlatgrammListRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetFlatgrammListResponse

@implementation KEYAPISACCESSCONTROLV1GetFlatgrammListResponse

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

typedef struct KEYAPISACCESSCONTROLV1GetFlatgrammListResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1Flatgramm *data_p;
  KEYAPISACCESSCONTROLV1GetFlatgrammListResponse_Error *error;
} KEYAPISACCESSCONTROLV1GetFlatgrammListResponse__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(KEYAPISACCESSCONTROLV1Flatgramm),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammListResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammListResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammListResponse_Error),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammListResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammListResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammListResponse)
                                   messageName:@"GetFlatgrammListResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetFlatgrammListResponse__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 KEYAPISACCESSCONTROLV1GetFlatgrammListResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1GetFlatgrammListResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetFlatgrammListResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetFlatgrammListResponse_Error

@implementation KEYAPISACCESSCONTROLV1GetFlatgrammListResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISACCESSCONTROLV1GetFlatgrammListResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1ValidationError *validation;
} KEYAPISACCESSCONTROLV1GetFlatgrammListResponse_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(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammListResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammListResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammListResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetFlatgrammListResponse_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(KEYAPISACCESSCONTROLV1GetFlatgrammListResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISACCESSCONTROLV1GetFlatgrammCountRequest

@dynamic hasFilter, filter;

typedef struct KEYAPISACCESSCONTROLV1GetFlatgrammCountRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1FlatgrammFilter *filter;
} KEYAPISACCESSCONTROLV1GetFlatgrammCountRequest__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(KEYAPISACCESSCONTROLV1FlatgrammFilter),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammCountRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammCountRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammCountRequest)
                                   messageName:@"GetFlatgrammCountRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetFlatgrammCountRequest__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 - KEYAPISACCESSCONTROLV1GetFlatgrammCountResponse

@implementation KEYAPISACCESSCONTROLV1GetFlatgrammCountResponse

@dynamic typeOneOfCase;
@dynamic data_p;

typedef struct KEYAPISACCESSCONTROLV1GetFlatgrammCountResponse__storage_ {
  uint32_t _has_storage_[2];
  int32_t data_p;
} KEYAPISACCESSCONTROLV1GetFlatgrammCountResponse__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 = KEYAPISACCESSCONTROLV1GetFlatgrammCountResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammCountResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammCountResponse)
                                   messageName:@"GetFlatgrammCountResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetFlatgrammCountResponse__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 KEYAPISACCESSCONTROLV1GetFlatgrammCountResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1GetFlatgrammCountResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetFlatgrammCountResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1FlatgrammFilter

@implementation KEYAPISACCESSCONTROLV1FlatgrammFilter

@dynamic companyIdsArray, companyIdsArray_Count;
@dynamic text;
@dynamic dcCompanyIdsArray, dcCompanyIdsArray_Count;
@dynamic flatgrammCompanyRelationTypesArray, flatgrammCompanyRelationTypesArray_Count;

typedef struct KEYAPISACCESSCONTROLV1FlatgrammFilter__storage_ {
  uint32_t _has_storage_[1];
  GPBInt32Array *companyIdsArray;
  NSString *text;
  GPBInt32Array *dcCompanyIdsArray;
  GPBEnumArray *flatgrammCompanyRelationTypesArray;
} KEYAPISACCESSCONTROLV1FlatgrammFilter__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 = "companyIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1FlatgrammFilter_FieldNumber_CompanyIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1FlatgrammFilter__storage_, companyIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "text",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1FlatgrammFilter_FieldNumber_Text,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1FlatgrammFilter__storage_, text),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "dcCompanyIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1FlatgrammFilter_FieldNumber_DcCompanyIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1FlatgrammFilter__storage_, dcCompanyIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "flatgrammCompanyRelationTypesArray",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_Type_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1FlatgrammFilter_FieldNumber_FlatgrammCompanyRelationTypesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1FlatgrammFilter__storage_, flatgrammCompanyRelationTypesArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked | GPBFieldHasEnumDescriptor),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1FlatgrammFilter)
                                   messageName:@"FlatgrammFilter"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1FlatgrammFilter__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 - KEYAPISACCESSCONTROLV1FlatgrammPaging

@implementation KEYAPISACCESSCONTROLV1FlatgrammPaging

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

typedef struct KEYAPISACCESSCONTROLV1FlatgrammPaging__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1FlatgrammPaging_OrderByType orderByType;
  KEYAPISACCESSCONTROLV1FlatgrammPaging_DirectionType directionType;
  int32_t limit;
  int32_t offset;
} KEYAPISACCESSCONTROLV1FlatgrammPaging__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 = KEYAPISACCESSCONTROLV1FlatgrammPaging_OrderByType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1FlatgrammPaging_FieldNumber_OrderByType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1FlatgrammPaging__storage_, orderByType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "directionType",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1FlatgrammPaging_DirectionType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1FlatgrammPaging_FieldNumber_DirectionType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1FlatgrammPaging__storage_, directionType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "limit",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1FlatgrammPaging_FieldNumber_Limit,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1FlatgrammPaging__storage_, limit),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "offset",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1FlatgrammPaging_FieldNumber_Offset,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1FlatgrammPaging__storage_, offset),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1FlatgrammPaging)
                                   messageName:@"FlatgrammPaging"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1FlatgrammPaging__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 KEYAPISACCESSCONTROLV1FlatgrammPaging_OrderByType_RawValue(KEYAPISACCESSCONTROLV1FlatgrammPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1FlatgrammPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1FlatgrammPaging_FieldNumber_OrderByType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1FlatgrammPaging_OrderByType_RawValue(KEYAPISACCESSCONTROLV1FlatgrammPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1FlatgrammPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1FlatgrammPaging_FieldNumber_OrderByType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISACCESSCONTROLV1FlatgrammPaging_DirectionType_RawValue(KEYAPISACCESSCONTROLV1FlatgrammPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1FlatgrammPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1FlatgrammPaging_FieldNumber_DirectionType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1FlatgrammPaging_DirectionType_RawValue(KEYAPISACCESSCONTROLV1FlatgrammPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1FlatgrammPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1FlatgrammPaging_FieldNumber_DirectionType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListRequest

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-implementations"

@implementation KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListRequest

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

typedef struct KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListRequest__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1DcCompanyFlatgrammFilter *filter;
  KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging *paging;
} KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListRequest__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(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammFilter),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "paging",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListRequest_FieldNumber_Paging,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListRequest__storage_, paging),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListRequest)
                                   messageName:@"GetFlatgrammDcCompanyListRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListRequest__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

#pragma clang diagnostic pop

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

@implementation KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListRequest

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

typedef struct KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListRequest__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationFilter *filter;
  KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging *paging;
} KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListRequest__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(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationFilter),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "paging",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListRequest_FieldNumber_Paging,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListRequest__storage_, paging),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListRequest)
                                   messageName:@"GetFlatgrammCompanyRelationListRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListRequest__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 KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListRequest_ClearPaginationOneOfCase(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountRequest

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-implementations"

@implementation KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountRequest

@dynamic hasFilter, filter;

typedef struct KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1DcCompanyFlatgrammFilter *filter;
} KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountRequest__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(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammFilter),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountRequest)
                                   messageName:@"GetFlatgrammDcCompanyCountRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountRequest__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma clang diagnostic pop

#pragma mark - KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountRequest

@implementation KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountRequest

@dynamic hasFilter, filter;

typedef struct KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationFilter *filter;
} KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountRequest__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(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationFilter),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountRequest)
                                   messageName:@"GetFlatgrammCompanyRelationCountRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountRequest__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 - KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-implementations"

@implementation KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse

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

typedef struct KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse__storage_ {
  uint32_t _has_storage_[2];
  int32_t data_p;
  KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse_Error *error;
} KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse_Error),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse)
                                   messageName:@"GetFlatgrammDcCompanyCountResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse__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

#pragma clang diagnostic pop

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

@implementation KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1ValidationError *validation;
} KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse_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(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse_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(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyCountResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse

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

typedef struct KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse__storage_ {
  uint32_t _has_storage_[2];
  int32_t data_p;
  KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse_Error *error;
} KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse_Error),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse)
                                   messageName:@"GetFlatgrammCompanyRelationCountResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse__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 KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse_Error

@implementation KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1ValidationError *validation;
} KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse_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(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse_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(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationCountResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-implementations"

@implementation KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging

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

typedef struct KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_OrderByType orderByType;
  KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_DirectionType directionType;
  int32_t limit;
  int32_t offset;
} KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging__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 = KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_OrderByType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_FieldNumber_OrderByType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging__storage_, orderByType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "directionType",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_DirectionType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_FieldNumber_DirectionType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging__storage_, directionType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "limit",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_FieldNumber_Limit,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging__storage_, limit),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "offset",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_FieldNumber_Offset,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging__storage_, offset),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging)
                                   messageName:@"DcCompanyFlatgrammPaging"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma clang diagnostic pop

int32_t KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_OrderByType_RawValue(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_FieldNumber_OrderByType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_OrderByType_RawValue(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_FieldNumber_OrderByType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_DirectionType_RawValue(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_FieldNumber_DirectionType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_DirectionType_RawValue(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1DcCompanyFlatgrammPaging_FieldNumber_DirectionType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging

@implementation KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging

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

typedef struct KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_OrderByType orderByType;
  KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_DirectionType directionType;
  int32_t limit;
  int32_t offset;
} KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging__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 = KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_OrderByType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_FieldNumber_OrderByType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging__storage_, orderByType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "directionType",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_DirectionType_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_FieldNumber_DirectionType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging__storage_, directionType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "limit",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_FieldNumber_Limit,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging__storage_, limit),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "offset",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_FieldNumber_Offset,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging__storage_, offset),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging)
                                   messageName:@"FlatgrammCompanyRelationPaging"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging__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 KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_OrderByType_RawValue(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_FieldNumber_OrderByType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_OrderByType_RawValue(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_FieldNumber_OrderByType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_DirectionType_RawValue(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_FieldNumber_DirectionType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_DirectionType_RawValue(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationPaging_FieldNumber_DirectionType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-implementations"

@implementation KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse

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

typedef struct KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse_Error *error;
  KEYAPISACCESSCONTROLV1DcCompanyFlatgramm *data_p;
} KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse_Error),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1DcCompanyFlatgramm),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse)
                                   messageName:@"GetFlatgrammDcCompanyListResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse__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

#pragma clang diagnostic pop

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

@implementation KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1ValidationError *validation;
} KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse_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(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse_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(KEYAPISACCESSCONTROLV1GetFlatgrammDcCompanyListResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse

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

typedef struct KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse_Error *error;
  KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation *data_p;
} KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse_Error),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse)
                                   messageName:@"GetFlatgrammCompanyRelationListResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse__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 KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse_ClearTypeOneOfCase(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse_Error

@implementation KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1ValidationError *validation;
} KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse_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(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse_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(KEYAPISACCESSCONTROLV1GetFlatgrammCompanyRelationListResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-implementations"

@implementation KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachRequest

@dynamic hasDcCompanyFlatgramm, dcCompanyFlatgramm;

typedef struct KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1DcCompanyFlatgramm *dcCompanyFlatgramm;
} KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachRequest__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 = "dcCompanyFlatgramm",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1DcCompanyFlatgramm),
        .number = KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachRequest_FieldNumber_DcCompanyFlatgramm,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachRequest__storage_, dcCompanyFlatgramm),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachRequest)
                                   messageName:@"PutFlatgrammDcCompanyAttachRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachRequest__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma clang diagnostic pop

#pragma mark - KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachRequest

@implementation KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachRequest

@dynamic hasFlatgrammCompanyRelation, flatgrammCompanyRelation;

typedef struct KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation *flatgrammCompanyRelation;
} KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachRequest__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 = "flatgrammCompanyRelation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation),
        .number = KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachRequest_FieldNumber_FlatgrammCompanyRelation,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachRequest__storage_, flatgrammCompanyRelation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachRequest)
                                   messageName:@"PutFlatgrammCompanyRelationAttachRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachRequest__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 - KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachResponse

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-implementations"

@implementation KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachResponse_Error *error;
} KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachResponse_Error),
        .number = KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachResponse)
                                   messageName:@"PutFlatgrammDcCompanyAttachResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachResponse__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

#pragma clang diagnostic pop

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

@implementation KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1ValidationError *validation;
} KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachResponse_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(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachResponse_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(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyAttachResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachResponse_Error *error;
} KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachResponse__storage_;

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

@implementation KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1ValidationError *validation;
} KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachResponse_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(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachResponse_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(KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationAttachResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-implementations"

@implementation KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachRequest

@dynamic hasDcCompanyFlatgramm, dcCompanyFlatgramm;

typedef struct KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1DcCompanyFlatgramm *dcCompanyFlatgramm;
} KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachRequest__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 = "dcCompanyFlatgramm",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1DcCompanyFlatgramm),
        .number = KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachRequest_FieldNumber_DcCompanyFlatgramm,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachRequest__storage_, dcCompanyFlatgramm),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachRequest)
                                   messageName:@"PutFlatgrammDcCompanyDetachRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachRequest__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma clang diagnostic pop

#pragma mark - KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachRequest

@implementation KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachRequest

@dynamic hasFlatgrammCompanyRelation, flatgrammCompanyRelation;

typedef struct KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation *flatgrammCompanyRelation;
} KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachRequest__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 = "flatgrammCompanyRelation",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation),
        .number = KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachRequest_FieldNumber_FlatgrammCompanyRelation,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachRequest__storage_, flatgrammCompanyRelation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachRequest)
                                   messageName:@"PutFlatgrammCompanyRelationDetachRequest"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachRequest__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 - KEYAPISACCESSCONTROLV1DcCompanyFlatgramm

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-implementations"

@implementation KEYAPISACCESSCONTROLV1DcCompanyFlatgramm

@dynamic companyId;
@dynamic flatgrammId;

typedef struct KEYAPISACCESSCONTROLV1DcCompanyFlatgramm__storage_ {
  uint32_t _has_storage_[1];
  int32_t companyId;
  int32_t flatgrammId;
} KEYAPISACCESSCONTROLV1DcCompanyFlatgramm__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 = "companyId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1DcCompanyFlatgramm_FieldNumber_CompanyId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1DcCompanyFlatgramm__storage_, companyId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "flatgrammId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1DcCompanyFlatgramm_FieldNumber_FlatgrammId,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1DcCompanyFlatgramm__storage_, flatgrammId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1DcCompanyFlatgramm)
                                   messageName:@"DcCompanyFlatgramm"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1DcCompanyFlatgramm__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma clang diagnostic pop

#pragma mark - KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation

@implementation KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation

@dynamic companyId;
@dynamic flatgrammId;
@dynamic type;

typedef struct KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation__storage_ {
  uint32_t _has_storage_[1];
  int32_t companyId;
  int32_t flatgrammId;
  KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_Type type;
} KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation__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 = "companyId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_FieldNumber_CompanyId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation__storage_, companyId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "flatgrammId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_FieldNumber_FlatgrammId,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation__storage_, flatgrammId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "type",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_Type_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_FieldNumber_Type,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation__storage_, type),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation)
                                   messageName:@"FlatgrammCompanyRelation"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation__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 KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_Type_RawValue(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation *message) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_FieldNumber_Type];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_Type_RawValue(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_FieldNumber_Type];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISACCESSCONTROLV1DcCompanyFlatgrammFilter

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-implementations"

@implementation KEYAPISACCESSCONTROLV1DcCompanyFlatgrammFilter

@dynamic companyIdsArray, companyIdsArray_Count;
@dynamic flatgrammIdsArray, flatgrammIdsArray_Count;

typedef struct KEYAPISACCESSCONTROLV1DcCompanyFlatgrammFilter__storage_ {
  uint32_t _has_storage_[1];
  GPBInt32Array *companyIdsArray;
  GPBInt32Array *flatgrammIdsArray;
} KEYAPISACCESSCONTROLV1DcCompanyFlatgrammFilter__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 = "companyIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1DcCompanyFlatgrammFilter_FieldNumber_CompanyIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammFilter__storage_, companyIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "flatgrammIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1DcCompanyFlatgrammFilter_FieldNumber_FlatgrammIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammFilter__storage_, flatgrammIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammFilter)
                                   messageName:@"DcCompanyFlatgrammFilter"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1DcCompanyFlatgrammFilter__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma clang diagnostic pop

#pragma mark - KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationFilter

@implementation KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationFilter

@dynamic flatgrammIdsArray, flatgrammIdsArray_Count;
@dynamic companyIdsArray, companyIdsArray_Count;
@dynamic flatgrammCompanyRelationTypesArray, flatgrammCompanyRelationTypesArray_Count;

typedef struct KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationFilter__storage_ {
  uint32_t _has_storage_[1];
  GPBInt32Array *flatgrammIdsArray;
  GPBInt32Array *companyIdsArray;
  GPBEnumArray *flatgrammCompanyRelationTypesArray;
} KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationFilter__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 = "flatgrammIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationFilter_FieldNumber_FlatgrammIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationFilter__storage_, flatgrammIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "companyIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationFilter_FieldNumber_CompanyIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationFilter__storage_, companyIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "flatgrammCompanyRelationTypesArray",
        .dataTypeSpecific.enumDescFunc = KEYAPISACCESSCONTROLV1FlatgrammCompanyRelation_Type_EnumDescriptor,
        .number = KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationFilter_FieldNumber_FlatgrammCompanyRelationTypesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationFilter__storage_, flatgrammCompanyRelationTypesArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked | GPBFieldHasEnumDescriptor),
        .dataType = GPBDataTypeEnum,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationFilter)
                                   messageName:@"FlatgrammCompanyRelationFilter"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1FlatgrammCompanyRelationFilter__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 - KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachResponse

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-implementations"

@implementation KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachResponse_Error *error;
} KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachResponse_Error),
        .number = KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachResponse)
                                   messageName:@"PutFlatgrammDcCompanyDetachResponse"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachResponse__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

#pragma clang diagnostic pop

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

@implementation KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1ValidationError *validation;
} KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachResponse_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(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachResponse_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(KEYAPISACCESSCONTROLV1PutFlatgrammDcCompanyDetachResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachResponse_Error *error;
} KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachResponse__storage_;

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

@implementation KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

typedef struct KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISACCESSCONTROLV1ValidationError *validation;
} KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachResponse_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(KEYAPISACCESSCONTROLV1ValidationError),
        .number = KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISACCESSCONTROLV1KeyapisAccessControlFlatgrammV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachResponse_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(KEYAPISACCESSCONTROLV1PutFlatgrammCompanyRelationDetachResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
