// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: deviceapis/device/v1/deviceapis_device_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 "deviceapis/device/v1/DeviceapisDeviceEncryptionProfileV1.pbobjc.h"
#import "deviceapis/device/v1/DeviceapisDeviceCommonV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
// @@protoc_insertion_point(imports)

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

#pragma mark - Objective-C Class declarations
// Forward declarations of Objective-C classes that we can use as
// static values in struct initializers.
// We don't use [Foo class] because it is not a static value.
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1DeleteEncryptionProfileListRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse_Error);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1DeleteEncryptionProfileRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse_Error);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1EncryptionProfile);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1EncryptionProfileFilter);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1EncryptionProfile_DeletingError);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1EncryptionProfile_DeletingError_EncryptionProfileInUse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1EncryptionProfile_SavingError);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1EncryptionProfile_SavingError_DuplicateName);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1EncryptionProfile_SavingError_TooMuchEncryptionProfiles);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1GetEncryptionProfileListRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1GetEncryptionProfileListResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1GetEncryptionProfileRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1GetEncryptionProfileResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1SaveEncryptionProfileRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1SaveEncryptionProfileResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1SaveEncryptionProfileResponse_Error);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1ValidationError);
GPBObjCClassDeclaration(GPBStringValue);

#pragma mark - DEVICEAPISDEVICEV1DeviceapisDeviceEncryptionProfileV1Root

@implementation DEVICEAPISDEVICEV1DeviceapisDeviceEncryptionProfileV1Root

+ (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 DEVICEAPISDEVICEV1DeviceapisDeviceEncryptionProfileV1Root_FileDescription = {
  .package = "deviceapis.device.v1",
  .prefix = "DEVICEAPISDEVICEV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum DEVICEAPISDEVICEV1EncryptionProfile_Type

GPBEnumDescriptor *DEVICEAPISDEVICEV1EncryptionProfile_Type_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "TypeUnknown\000Sl3\000Sl1\000";
    static const int32_t values[] = {
        DEVICEAPISDEVICEV1EncryptionProfile_Type_TypeUnknown,
        DEVICEAPISDEVICEV1EncryptionProfile_Type_Sl3,
        DEVICEAPISDEVICEV1EncryptionProfile_Type_Sl1,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(DEVICEAPISDEVICEV1EncryptionProfile_Type)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:DEVICEAPISDEVICEV1EncryptionProfile_Type_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL DEVICEAPISDEVICEV1EncryptionProfile_Type_IsValidValue(int32_t value__) {
  switch (value__) {
    case DEVICEAPISDEVICEV1EncryptionProfile_Type_TypeUnknown:
    case DEVICEAPISDEVICEV1EncryptionProfile_Type_Sl3:
    case DEVICEAPISDEVICEV1EncryptionProfile_Type_Sl1:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - DEVICEAPISDEVICEV1DeleteEncryptionProfileListRequest

@implementation DEVICEAPISDEVICEV1DeleteEncryptionProfileListRequest


typedef struct DEVICEAPISDEVICEV1DeleteEncryptionProfileListRequest__storage_ {
  uint32_t _has_storage_[1];
} DEVICEAPISDEVICEV1DeleteEncryptionProfileListRequest__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(DEVICEAPISDEVICEV1DeleteEncryptionProfileListRequest)
                                   messageName:@"DeleteEncryptionProfileListRequest"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceEncryptionProfileV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(DEVICEAPISDEVICEV1DeleteEncryptionProfileListRequest__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 - DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse

@implementation DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse

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

typedef struct DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse__storage_ {
  uint32_t _has_storage_[2];
  int32_t data_p;
  DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse_Error *error;
} DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse__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 = DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse_Error),
        .number = DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse)
                                   messageName:@"DeleteEncryptionProfileListResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse__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 DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse_ClearTypeOneOfCase(DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse_Error

@implementation DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;
@dynamic deleting;

typedef struct DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  DEVICEAPISDEVICEV1ValidationError *validation;
  DEVICEAPISDEVICEV1EncryptionProfile_DeletingError *deleting;
} DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse_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(DEVICEAPISDEVICEV1ValidationError),
        .number = DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "deleting",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1EncryptionProfile_DeletingError),
        .number = DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse_Error_FieldNumber_Deleting,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse_Error__storage_, deleting),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse_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(DEVICEAPISDEVICEV1DeleteEncryptionProfileListResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation DEVICEAPISDEVICEV1DeleteEncryptionProfileRequest

@dynamic id_p;

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

@implementation DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse

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

typedef struct DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse__storage_ {
  uint32_t _has_storage_[2];
  int32_t data_p;
  DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse_Error *error;
} DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse__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 = DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse_Error),
        .number = DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse)
                                   messageName:@"DeleteEncryptionProfileResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse__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 DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse_ClearTypeOneOfCase(DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse_Error

@implementation DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;
@dynamic deleting;

typedef struct DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  DEVICEAPISDEVICEV1ValidationError *validation;
  DEVICEAPISDEVICEV1EncryptionProfile_DeletingError *deleting;
} DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse_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(DEVICEAPISDEVICEV1ValidationError),
        .number = DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "deleting",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1EncryptionProfile_DeletingError),
        .number = DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse_Error_FieldNumber_Deleting,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse_Error__storage_, deleting),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse_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(DEVICEAPISDEVICEV1DeleteEncryptionProfileResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation DEVICEAPISDEVICEV1EncryptionProfile

@dynamic id_p;
@dynamic title;
@dynamic type;
@dynamic sectorNumber;
@dynamic blockNumber;
@dynamic startIndex;
@dynamic endIndex;
@dynamic password;

typedef struct DEVICEAPISDEVICEV1EncryptionProfile__storage_ {
  uint32_t _has_storage_[1];
  DEVICEAPISDEVICEV1EncryptionProfile_Type type;
  int32_t sectorNumber;
  int32_t blockNumber;
  int32_t startIndex;
  int32_t endIndex;
  NSString *id_p;
  NSString *title;
  NSString *password;
} DEVICEAPISDEVICEV1EncryptionProfile__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 = DEVICEAPISDEVICEV1EncryptionProfile_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EncryptionProfile__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "title",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1EncryptionProfile_FieldNumber_Title,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EncryptionProfile__storage_, title),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "type",
        .dataTypeSpecific.enumDescFunc = DEVICEAPISDEVICEV1EncryptionProfile_Type_EnumDescriptor,
        .number = DEVICEAPISDEVICEV1EncryptionProfile_FieldNumber_Type,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EncryptionProfile__storage_, type),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "sectorNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1EncryptionProfile_FieldNumber_SectorNumber,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EncryptionProfile__storage_, sectorNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "blockNumber",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1EncryptionProfile_FieldNumber_BlockNumber,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EncryptionProfile__storage_, blockNumber),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "startIndex",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1EncryptionProfile_FieldNumber_StartIndex,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EncryptionProfile__storage_, startIndex),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "endIndex",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1EncryptionProfile_FieldNumber_EndIndex,
        .hasIndex = 6,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EncryptionProfile__storage_, endIndex),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "password",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1EncryptionProfile_FieldNumber_Password,
        .hasIndex = 7,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EncryptionProfile__storage_, password),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1EncryptionProfile)
                                   messageName:@"EncryptionProfile"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1EncryptionProfile__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 DEVICEAPISDEVICEV1EncryptionProfile_Type_RawValue(DEVICEAPISDEVICEV1EncryptionProfile *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1EncryptionProfile descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:DEVICEAPISDEVICEV1EncryptionProfile_FieldNumber_Type];
  return GPBGetMessageRawEnumField(message, field);
}

void SetDEVICEAPISDEVICEV1EncryptionProfile_Type_RawValue(DEVICEAPISDEVICEV1EncryptionProfile *message, int32_t value) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1EncryptionProfile descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:DEVICEAPISDEVICEV1EncryptionProfile_FieldNumber_Type];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - DEVICEAPISDEVICEV1EncryptionProfile_DeletingError

@implementation DEVICEAPISDEVICEV1EncryptionProfile_DeletingError

@dynamic reasonOneOfCase;
@dynamic id_p;
@dynamic encryptionProfileInUse;

typedef struct DEVICEAPISDEVICEV1EncryptionProfile_DeletingError__storage_ {
  uint32_t _has_storage_[2];
  NSString *id_p;
  DEVICEAPISDEVICEV1EncryptionProfile_DeletingError_EncryptionProfileInUse *encryptionProfileInUse;
} DEVICEAPISDEVICEV1EncryptionProfile_DeletingError__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 = DEVICEAPISDEVICEV1EncryptionProfile_DeletingError_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EncryptionProfile_DeletingError__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "encryptionProfileInUse",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1EncryptionProfile_DeletingError_EncryptionProfileInUse),
        .number = DEVICEAPISDEVICEV1EncryptionProfile_DeletingError_FieldNumber_EncryptionProfileInUse,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EncryptionProfile_DeletingError__storage_, encryptionProfileInUse),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1EncryptionProfile_DeletingError)
                                   messageName:@"DeletingError"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1EncryptionProfile_DeletingError__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(DEVICEAPISDEVICEV1EncryptionProfile)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation DEVICEAPISDEVICEV1EncryptionProfile_DeletingError_EncryptionProfileInUse


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

@end

#pragma mark - DEVICEAPISDEVICEV1EncryptionProfile_SavingError

@implementation DEVICEAPISDEVICEV1EncryptionProfile_SavingError

@dynamic reasonOneOfCase;
@dynamic duplicateName;
@dynamic tooMuchEncryptionProfiles;

typedef struct DEVICEAPISDEVICEV1EncryptionProfile_SavingError__storage_ {
  uint32_t _has_storage_[2];
  DEVICEAPISDEVICEV1EncryptionProfile_SavingError_DuplicateName *duplicateName;
  DEVICEAPISDEVICEV1EncryptionProfile_SavingError_TooMuchEncryptionProfiles *tooMuchEncryptionProfiles;
} DEVICEAPISDEVICEV1EncryptionProfile_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 = "duplicateName",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1EncryptionProfile_SavingError_DuplicateName),
        .number = DEVICEAPISDEVICEV1EncryptionProfile_SavingError_FieldNumber_DuplicateName,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EncryptionProfile_SavingError__storage_, duplicateName),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "tooMuchEncryptionProfiles",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1EncryptionProfile_SavingError_TooMuchEncryptionProfiles),
        .number = DEVICEAPISDEVICEV1EncryptionProfile_SavingError_FieldNumber_TooMuchEncryptionProfiles,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EncryptionProfile_SavingError__storage_, tooMuchEncryptionProfiles),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1EncryptionProfile_SavingError)
                                   messageName:@"SavingError"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1EncryptionProfile_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(DEVICEAPISDEVICEV1EncryptionProfile)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation DEVICEAPISDEVICEV1EncryptionProfile_SavingError_DuplicateName


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

@end

#pragma mark - DEVICEAPISDEVICEV1EncryptionProfile_SavingError_TooMuchEncryptionProfiles

@implementation DEVICEAPISDEVICEV1EncryptionProfile_SavingError_TooMuchEncryptionProfiles


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

@end

#pragma mark - DEVICEAPISDEVICEV1EncryptionProfileFilter

@implementation DEVICEAPISDEVICEV1EncryptionProfileFilter

@dynamic hasText, text;

typedef struct DEVICEAPISDEVICEV1EncryptionProfileFilter__storage_ {
  uint32_t _has_storage_[1];
  GPBStringValue *text;
} DEVICEAPISDEVICEV1EncryptionProfileFilter__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 = GPBObjCClass(GPBStringValue),
        .number = DEVICEAPISDEVICEV1EncryptionProfileFilter_FieldNumber_Text,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1EncryptionProfileFilter__storage_, text),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1EncryptionProfileFilter)
                                   messageName:@"EncryptionProfileFilter"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1EncryptionProfileFilter__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 - DEVICEAPISDEVICEV1GetEncryptionProfileListRequest

@implementation DEVICEAPISDEVICEV1GetEncryptionProfileListRequest

@dynamic hasFilter, filter;

typedef struct DEVICEAPISDEVICEV1GetEncryptionProfileListRequest__storage_ {
  uint32_t _has_storage_[1];
  DEVICEAPISDEVICEV1EncryptionProfileFilter *filter;
} DEVICEAPISDEVICEV1GetEncryptionProfileListRequest__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(DEVICEAPISDEVICEV1EncryptionProfileFilter),
        .number = DEVICEAPISDEVICEV1GetEncryptionProfileListRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1GetEncryptionProfileListRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1GetEncryptionProfileListRequest)
                                   messageName:@"GetEncryptionProfileListRequest"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1GetEncryptionProfileListRequest__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 - DEVICEAPISDEVICEV1GetEncryptionProfileListResponse

@implementation DEVICEAPISDEVICEV1GetEncryptionProfileListResponse

@dynamic dataArray, dataArray_Count;

typedef struct DEVICEAPISDEVICEV1GetEncryptionProfileListResponse__storage_ {
  uint32_t _has_storage_[1];
  NSMutableArray *dataArray;
} DEVICEAPISDEVICEV1GetEncryptionProfileListResponse__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "dataArray",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1EncryptionProfile),
        .number = DEVICEAPISDEVICEV1GetEncryptionProfileListResponse_FieldNumber_DataArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1GetEncryptionProfileListResponse__storage_, dataArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1GetEncryptionProfileListResponse)
                                   messageName:@"GetEncryptionProfileListResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1GetEncryptionProfileListResponse__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 - DEVICEAPISDEVICEV1GetEncryptionProfileRequest

@implementation DEVICEAPISDEVICEV1GetEncryptionProfileRequest

@dynamic id_p;

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

@implementation DEVICEAPISDEVICEV1GetEncryptionProfileResponse

@dynamic typeOneOfCase;
@dynamic data_p;

typedef struct DEVICEAPISDEVICEV1GetEncryptionProfileResponse__storage_ {
  uint32_t _has_storage_[2];
  DEVICEAPISDEVICEV1EncryptionProfile *data_p;
} DEVICEAPISDEVICEV1GetEncryptionProfileResponse__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(DEVICEAPISDEVICEV1EncryptionProfile),
        .number = DEVICEAPISDEVICEV1GetEncryptionProfileResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1GetEncryptionProfileResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1GetEncryptionProfileResponse)
                                   messageName:@"GetEncryptionProfileResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1GetEncryptionProfileResponse__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 DEVICEAPISDEVICEV1GetEncryptionProfileResponse_ClearTypeOneOfCase(DEVICEAPISDEVICEV1GetEncryptionProfileResponse *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1GetEncryptionProfileResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - DEVICEAPISDEVICEV1SaveEncryptionProfileRequest

@implementation DEVICEAPISDEVICEV1SaveEncryptionProfileRequest

@dynamic hasData_p, data_p;

typedef struct DEVICEAPISDEVICEV1SaveEncryptionProfileRequest__storage_ {
  uint32_t _has_storage_[1];
  DEVICEAPISDEVICEV1EncryptionProfile *data_p;
} DEVICEAPISDEVICEV1SaveEncryptionProfileRequest__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(DEVICEAPISDEVICEV1EncryptionProfile),
        .number = DEVICEAPISDEVICEV1SaveEncryptionProfileRequest_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1SaveEncryptionProfileRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1SaveEncryptionProfileRequest)
                                   messageName:@"SaveEncryptionProfileRequest"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1SaveEncryptionProfileRequest__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 - DEVICEAPISDEVICEV1SaveEncryptionProfileResponse

@implementation DEVICEAPISDEVICEV1SaveEncryptionProfileResponse

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

typedef struct DEVICEAPISDEVICEV1SaveEncryptionProfileResponse__storage_ {
  uint32_t _has_storage_[2];
  DEVICEAPISDEVICEV1EncryptionProfile *data_p;
  DEVICEAPISDEVICEV1SaveEncryptionProfileResponse_Error *error;
} DEVICEAPISDEVICEV1SaveEncryptionProfileResponse__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(DEVICEAPISDEVICEV1EncryptionProfile),
        .number = DEVICEAPISDEVICEV1SaveEncryptionProfileResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1SaveEncryptionProfileResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1SaveEncryptionProfileResponse_Error),
        .number = DEVICEAPISDEVICEV1SaveEncryptionProfileResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1SaveEncryptionProfileResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1SaveEncryptionProfileResponse)
                                   messageName:@"SaveEncryptionProfileResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1SaveEncryptionProfileResponse__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 DEVICEAPISDEVICEV1SaveEncryptionProfileResponse_ClearTypeOneOfCase(DEVICEAPISDEVICEV1SaveEncryptionProfileResponse *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1SaveEncryptionProfileResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - DEVICEAPISDEVICEV1SaveEncryptionProfileResponse_Error

@implementation DEVICEAPISDEVICEV1SaveEncryptionProfileResponse_Error

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

typedef struct DEVICEAPISDEVICEV1SaveEncryptionProfileResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  DEVICEAPISDEVICEV1ValidationError *validation;
  DEVICEAPISDEVICEV1EncryptionProfile_SavingError *saving;
} DEVICEAPISDEVICEV1SaveEncryptionProfileResponse_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(DEVICEAPISDEVICEV1ValidationError),
        .number = DEVICEAPISDEVICEV1SaveEncryptionProfileResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1SaveEncryptionProfileResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "saving",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1EncryptionProfile_SavingError),
        .number = DEVICEAPISDEVICEV1SaveEncryptionProfileResponse_Error_FieldNumber_Saving,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1SaveEncryptionProfileResponse_Error__storage_, saving),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1SaveEncryptionProfileResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceEncryptionProfileV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1SaveEncryptionProfileResponse_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(DEVICEAPISDEVICEV1SaveEncryptionProfileResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
