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

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

#pragma mark - Objective-C Class declarations
// Forward declarations of Objective-C classes that we can use as
// static values in struct initializers.
// We don't use [Foo class] because it is not a static value.
GPBObjCClassDeclaration(GPBBoolValue);
GPBObjCClassDeclaration(GPBStringValue);
GPBObjCClassDeclaration(GPBTimestamp);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileRequest);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse_Error);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse_Error_LinkedDevicesExists);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1EncryptionProfileFilter);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError_Conflict);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError_RangeIsTooSmall);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountRequest);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountResponse);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountResponse_Error);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListRequest);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListResponse);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListResponse_Error);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileRequest);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileResponse);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileResponse_Error);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRequest);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse_Error);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRestoreRequest);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRestoreResponse);
GPBObjCClassDeclaration(KEYAPISENCRYPTIONPROFILEV1ValidationError);

#pragma mark - KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root

@implementation KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root

+ (GPBExtensionRegistry*)extensionRegistry {
  // This is called by +initialize so there is no need to worry
  // about thread safety and initialization of registry.
  static GPBExtensionRegistry* registry = nil;
  if (!registry) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    registry = [[GPBExtensionRegistry alloc] init];
    // Merge in the imports (direct or indirect) that defined extensions.
    [registry addExtensions:[GAPIAnnotationsRoot extensionRegistry]];
    [registry addExtensions:[GAPIFieldBehaviorRoot extensionRegistry]];
  }
  return registry;
}

@end

static GPBFileDescription KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription = {
  .package = "keyapis.encryption_profile.v1",
  .prefix = "KEYAPISENCRYPTIONPROFILEV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_Type

GPBEnumDescriptor *KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_Type_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "TypeUnknown\000Sl3\000";
    static const int32_t values[] = {
        KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_Type_TypeUnknown,
        KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_Type_Sl3,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_Type)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_Type_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_Type_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_Type_TypeUnknown:
    case KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_Type_Sl3:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_OrderByType

GPBEnumDescriptor *KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_OrderByType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "OrderByTypeUnknown\000Id\000ChangedAt\000CreatedA"
        "t\000Rank\000";
    static const int32_t values[] = {
        KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_OrderByType_OrderByTypeUnknown,
        KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_OrderByType_Id,
        KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_OrderByType_ChangedAt,
        KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_OrderByType_CreatedAt,
        KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_OrderByType_Rank,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_OrderByType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_OrderByType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_OrderByType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_OrderByType_OrderByTypeUnknown:
    case KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_OrderByType_Id:
    case KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_OrderByType_ChangedAt:
    case KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_OrderByType_CreatedAt:
    case KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_OrderByType_Rank:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_DirectionType

GPBEnumDescriptor *KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_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[] = {
        KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_DirectionType_DirectionTypeUnknown,
        KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_DirectionType_Desc,
        KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_DirectionType_Asc,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_DirectionType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_DirectionType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_DirectionType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_DirectionType_DirectionTypeUnknown:
    case KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_DirectionType_Desc:
    case KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_DirectionType_Asc:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISENCRYPTIONPROFILEV1EncryptionProfile

@implementation KEYAPISENCRYPTIONPROFILEV1EncryptionProfile

@dynamic id_p;
@dynamic name;
@dynamic hasDescription_p, description_p;
@dynamic type;
@dynamic sectorNumber;
@dynamic blockNumber;
@dynamic startIndex;
@dynamic endIndex;
@dynamic secretA;
@dynamic encryptedSecretA;
@dynamic secretB;
@dynamic encryptedSecretB;
@dynamic hasCreatedAt, createdAt;
@dynamic hasChangedAt, changedAt;
@dynamic hasDeletedAt, deletedAt;

typedef struct KEYAPISENCRYPTIONPROFILEV1EncryptionProfile__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_Type type;
  int32_t sectorNumber;
  int32_t blockNumber;
  int32_t startIndex;
  int32_t endIndex;
  NSString *id_p;
  NSString *name;
  GPBStringValue *description_p;
  NSString *secretA;
  NSString *encryptedSecretA;
  NSString *secretB;
  NSString *encryptedSecretB;
  GPBTimestamp *createdAt;
  GPBTimestamp *changedAt;
  GPBTimestamp *deletedAt;
} KEYAPISENCRYPTIONPROFILEV1EncryptionProfile__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 = KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "name",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_FieldNumber_Name,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile__storage_, name),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "description_p",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBStringValue),
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_FieldNumber_Description_p,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile__storage_, description_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "type",
        .dataTypeSpecific.enumDescFunc = KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_Type_EnumDescriptor,
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_FieldNumber_Type,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile__storage_, type),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "sectorNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_FieldNumber_SectorNumber,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile__storage_, sectorNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "blockNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_FieldNumber_BlockNumber,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile__storage_, blockNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "startIndex",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_FieldNumber_StartIndex,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile__storage_, startIndex),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "endIndex",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_FieldNumber_EndIndex,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile__storage_, endIndex),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "secretA",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_FieldNumber_SecretA,
        .hasIndex = 8,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile__storage_, secretA),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "encryptedSecretA",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_FieldNumber_EncryptedSecretA,
        .hasIndex = 9,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile__storage_, encryptedSecretA),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "secretB",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_FieldNumber_SecretB,
        .hasIndex = 10,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile__storage_, secretB),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "encryptedSecretB",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_FieldNumber_EncryptedSecretB,
        .hasIndex = 11,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile__storage_, encryptedSecretB),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "createdAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_FieldNumber_CreatedAt,
        .hasIndex = 12,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile__storage_, createdAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "changedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_FieldNumber_ChangedAt,
        .hasIndex = 13,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile__storage_, changedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "deletedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_FieldNumber_DeletedAt,
        .hasIndex = 14,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile__storage_, deletedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile)
                                   messageName:@"EncryptionProfile"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile__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 KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_Type_RawValue(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile *message) {
  GPBDescriptor *descriptor = [KEYAPISENCRYPTIONPROFILEV1EncryptionProfile descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_FieldNumber_Type];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISENCRYPTIONPROFILEV1EncryptionProfile_Type_RawValue(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISENCRYPTIONPROFILEV1EncryptionProfile descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_FieldNumber_Type];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError

@implementation KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError

@dynamic reasonOneOfCase;
@dynamic conflict;
@dynamic rangeIsTooSmall;

typedef struct KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError_Conflict *conflict;
  KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError_RangeIsTooSmall *rangeIsTooSmall;
} KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError__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 = "conflict",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError_Conflict),
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError_FieldNumber_Conflict,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError__storage_, conflict),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "rangeIsTooSmall",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError_RangeIsTooSmall),
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError_FieldNumber_RangeIsTooSmall,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError__storage_, rangeIsTooSmall),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError)
                                   messageName:@"SavingError"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError__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(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError_Conflict


typedef struct KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError_Conflict__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError_Conflict__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError_Conflict)
                                   messageName:@"Conflict"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError_Conflict__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError_RangeIsTooSmall

@implementation KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError_RangeIsTooSmall


typedef struct KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError_RangeIsTooSmall__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError_RangeIsTooSmall__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError_RangeIsTooSmall)
                                   messageName:@"RangeIsTooSmall"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError_RangeIsTooSmall__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISENCRYPTIONPROFILEV1EncryptionProfileFilter

@implementation KEYAPISENCRYPTIONPROFILEV1EncryptionProfileFilter

@dynamic text;
@dynamic typesArray, typesArray_Count;
@dynamic hasShowDeleted, showDeleted;

typedef struct KEYAPISENCRYPTIONPROFILEV1EncryptionProfileFilter__storage_ {
  uint32_t _has_storage_[1];
  NSString *text;
  GPBEnumArray *typesArray;
  GPBBoolValue *showDeleted;
} KEYAPISENCRYPTIONPROFILEV1EncryptionProfileFilter__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 = "text",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfileFilter_FieldNumber_Text,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfileFilter__storage_, text),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "typesArray",
        .dataTypeSpecific.enumDescFunc = KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_Type_EnumDescriptor,
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfileFilter_FieldNumber_TypesArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfileFilter__storage_, typesArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked | GPBFieldHasEnumDescriptor),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "showDeleted",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBBoolValue),
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfileFilter_FieldNumber_ShowDeleted,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfileFilter__storage_, showDeleted),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1EncryptionProfileFilter)
                                   messageName:@"EncryptionProfileFilter"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfileFilter__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 - KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging

@implementation KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging

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

typedef struct KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_OrderByType orderByType;
  KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_DirectionType directionType;
  int32_t limit;
  int32_t offset;
} KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging__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 = KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_OrderByType_EnumDescriptor,
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_FieldNumber_OrderByType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging__storage_, orderByType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "directionType",
        .dataTypeSpecific.enumDescFunc = KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_DirectionType_EnumDescriptor,
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_FieldNumber_DirectionType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging__storage_, directionType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "limit",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_FieldNumber_Limit,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging__storage_, limit),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "offset",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_FieldNumber_Offset,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging__storage_, offset),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging)
                                   messageName:@"EncryptionProfilePaging"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging__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 KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_OrderByType_RawValue(KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging *message) {
  GPBDescriptor *descriptor = [KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_FieldNumber_OrderByType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_OrderByType_RawValue(KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_FieldNumber_OrderByType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_DirectionType_RawValue(KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging *message) {
  GPBDescriptor *descriptor = [KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_FieldNumber_DirectionType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_DirectionType_RawValue(KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging_FieldNumber_DirectionType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRequest

@implementation KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRequest

@dynamic hasData_p, data_p;

typedef struct KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISENCRYPTIONPROFILEV1EncryptionProfile *data_p;
} KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRequest__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(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile),
        .number = KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRequest_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRequest)
                                   messageName:@"PostEncryptionProfileRequest"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRequest__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 - KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse

@implementation KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse

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

typedef struct KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISENCRYPTIONPROFILEV1EncryptionProfile *data_p;
  KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse_Error *error;
} KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse__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(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile),
        .number = KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse_Error),
        .number = KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse)
                                   messageName:@"PostEncryptionProfileResponse"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse__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 KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse_ClearTypeOneOfCase(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse_Error

@implementation KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;
@dynamic saving;

typedef struct KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISENCRYPTIONPROFILEV1ValidationError *validation;
  KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError *saving;
} KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse_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(KEYAPISENCRYPTIONPROFILEV1ValidationError),
        .number = KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "saving",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile_SavingError),
        .number = KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse_Error_FieldNumber_Saving,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse_Error__storage_, saving),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse_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(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListRequest

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

typedef struct KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListRequest__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISENCRYPTIONPROFILEV1EncryptionProfileFilter *filter;
  KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging *paging;
} KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListRequest__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(KEYAPISENCRYPTIONPROFILEV1EncryptionProfileFilter),
        .number = KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "paging",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1EncryptionProfilePaging),
        .number = KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListRequest_FieldNumber_Paging,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListRequest__storage_, paging),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListRequest)
                                   messageName:@"GetEncryptionProfileListRequest"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListRequest__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 KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListRequest_ClearPaginationOneOfCase(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListRequest *message) {
  GPBDescriptor *descriptor = [KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListRequest descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListResponse

@implementation KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListResponse

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

typedef struct KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISENCRYPTIONPROFILEV1EncryptionProfile *data_p;
  KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListResponse_Error *error;
} KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListResponse__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(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile),
        .number = KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListResponse_Error),
        .number = KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListResponse)
                                   messageName:@"GetEncryptionProfileListResponse"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListResponse__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 KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListResponse_ClearTypeOneOfCase(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListResponse_Error

@implementation KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileListResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileRequest

@dynamic id_p;

typedef struct KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *id_p;
} KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileRequest__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 = KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileRequest)
                                   messageName:@"GetEncryptionProfileRequest"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileRequest__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 - KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileResponse

@implementation KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileResponse

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

typedef struct KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISENCRYPTIONPROFILEV1EncryptionProfile *data_p;
  KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileResponse_Error *error;
} KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileResponse__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(KEYAPISENCRYPTIONPROFILEV1EncryptionProfile),
        .number = KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileResponse_Error),
        .number = KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileResponse)
                                   messageName:@"GetEncryptionProfileResponse"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileResponse__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 KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileResponse_ClearTypeOneOfCase(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileResponse_Error

@implementation KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountRequest

@dynamic hasFilter, filter;

typedef struct KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISENCRYPTIONPROFILEV1EncryptionProfileFilter *filter;
} KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountRequest__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(KEYAPISENCRYPTIONPROFILEV1EncryptionProfileFilter),
        .number = KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountRequest)
                                   messageName:@"GetEncryptionProfileCountRequest"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountRequest__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 - KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountResponse

@implementation KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountResponse

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

typedef struct KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountResponse__storage_ {
  uint32_t _has_storage_[2];
  int32_t data_p;
  KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountResponse_Error *error;
} KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountResponse__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 = KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountResponse_Error),
        .number = KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountResponse)
                                   messageName:@"GetEncryptionProfileCountResponse"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountResponse__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 KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountResponse_ClearTypeOneOfCase(KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountResponse_Error

@implementation KEYAPISENCRYPTIONPROFILEV1GetEncryptionProfileCountResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileRequest

@dynamic id_p;

typedef struct KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *id_p;
} KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileRequest__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 = KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileRequest)
                                   messageName:@"DeleteEncryptionProfileRequest"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileRequest__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 - KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse

@implementation KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse_Error *error;
} KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse__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(KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse_Error),
        .number = KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse)
                                   messageName:@"DeleteEncryptionProfileResponse"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse__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 KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse_ClearTypeOneOfCase(KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse_Error

@implementation KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse_Error

@dynamic reasonOneOfCase;
@dynamic linkedDevicesExists;

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

@end

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

@implementation KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse_Error_LinkedDevicesExists


typedef struct KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse_Error_LinkedDevicesExists__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse_Error_LinkedDevicesExists__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse_Error_LinkedDevicesExists)
                                   messageName:@"LinkedDevicesExists"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse_Error_LinkedDevicesExists__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1DeleteEncryptionProfileResponse_Error)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRestoreRequest

@implementation KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRestoreRequest

@dynamic id_p;

typedef struct KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRestoreRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *id_p;
} KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRestoreRequest__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 = KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRestoreRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRestoreRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRestoreRequest)
                                   messageName:@"PostEncryptionProfileRestoreRequest"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRestoreRequest__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 - KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRestoreResponse

@implementation KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRestoreResponse


typedef struct KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRestoreResponse__storage_ {
  uint32_t _has_storage_[1];
} KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRestoreResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRestoreResponse)
                                   messageName:@"PostEncryptionProfileRestoreResponse"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1PostEncryptionProfileRestoreResponse__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 - KEYAPISENCRYPTIONPROFILEV1ValidationError

@implementation KEYAPISENCRYPTIONPROFILEV1ValidationError

@dynamic path;
@dynamic message;

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

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "path",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISENCRYPTIONPROFILEV1ValidationError_FieldNumber_Path,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1ValidationError__storage_, path),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "message",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISENCRYPTIONPROFILEV1ValidationError_FieldNumber_Message,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISENCRYPTIONPROFILEV1ValidationError__storage_, message),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISENCRYPTIONPROFILEV1ValidationError)
                                   messageName:@"ValidationError"
                               fileDescription:&KEYAPISENCRYPTIONPROFILEV1KeyapisEncryptionProfileEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISENCRYPTIONPROFILEV1ValidationError__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end


#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
