// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: deviceapis/device/v1/deviceapis_device_user_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 "deviceapis/device/v1/DeviceapisDeviceUserV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "protoc-gen-openapiv2/options/Annotations.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(DEVICEAPISDEVICEV1DeleteUserRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1DeleteUserResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1GetUserListRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1GetUserListResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1PostUserNameReplaceRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1PostUserNameReplaceRequest_ReplaceTo);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1PostUserNameReplaceResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest_ReplaceTo);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1PostUserPasswordReplaceResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest_ReplaceTo);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1PostUserPermissionReplaceResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1SaveUserRequest);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1SaveUserResponse);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1User);
GPBObjCClassDeclaration(DEVICEAPISDEVICEV1User_Permission);

#pragma mark - DEVICEAPISDEVICEV1DeviceapisDeviceUserV1Root

@implementation DEVICEAPISDEVICEV1DeviceapisDeviceUserV1Root

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

@end

static GPBFileDescription DEVICEAPISDEVICEV1DeviceapisDeviceUserV1Root_FileDescription = {
  .package = "deviceapis.device.v1",
  .prefix = "DEVICEAPISDEVICEV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - DEVICEAPISDEVICEV1DeleteUserRequest

@implementation DEVICEAPISDEVICEV1DeleteUserRequest

@dynamic username;

typedef struct DEVICEAPISDEVICEV1DeleteUserRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *username;
} DEVICEAPISDEVICEV1DeleteUserRequest__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 = "username",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1DeleteUserRequest_FieldNumber_Username,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1DeleteUserRequest__storage_, username),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1DeleteUserRequest)
                                   messageName:@"DeleteUserRequest"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1DeleteUserRequest__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 - DEVICEAPISDEVICEV1DeleteUserResponse

@implementation DEVICEAPISDEVICEV1DeleteUserResponse


typedef struct DEVICEAPISDEVICEV1DeleteUserResponse__storage_ {
  uint32_t _has_storage_[1];
} DEVICEAPISDEVICEV1DeleteUserResponse__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(DEVICEAPISDEVICEV1DeleteUserResponse)
                                   messageName:@"DeleteUserResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceUserV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(DEVICEAPISDEVICEV1DeleteUserResponse__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 - DEVICEAPISDEVICEV1GetUserListRequest

@implementation DEVICEAPISDEVICEV1GetUserListRequest


typedef struct DEVICEAPISDEVICEV1GetUserListRequest__storage_ {
  uint32_t _has_storage_[1];
} DEVICEAPISDEVICEV1GetUserListRequest__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(DEVICEAPISDEVICEV1GetUserListRequest)
                                   messageName:@"GetUserListRequest"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceUserV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(DEVICEAPISDEVICEV1GetUserListRequest__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 - DEVICEAPISDEVICEV1GetUserListResponse

@implementation DEVICEAPISDEVICEV1GetUserListResponse

@dynamic dataArray, dataArray_Count;

typedef struct DEVICEAPISDEVICEV1GetUserListResponse__storage_ {
  uint32_t _has_storage_[1];
  NSMutableArray *dataArray;
} DEVICEAPISDEVICEV1GetUserListResponse__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(DEVICEAPISDEVICEV1User),
        .number = DEVICEAPISDEVICEV1GetUserListResponse_FieldNumber_DataArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1GetUserListResponse__storage_, dataArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1GetUserListResponse)
                                   messageName:@"GetUserListResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1GetUserListResponse__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 - DEVICEAPISDEVICEV1PostUserNameReplaceRequest

@implementation DEVICEAPISDEVICEV1PostUserNameReplaceRequest

@dynamic username;
@dynamic hasData_p, data_p;

typedef struct DEVICEAPISDEVICEV1PostUserNameReplaceRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *username;
  DEVICEAPISDEVICEV1PostUserNameReplaceRequest_ReplaceTo *data_p;
} DEVICEAPISDEVICEV1PostUserNameReplaceRequest__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 = "username",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1PostUserNameReplaceRequest_FieldNumber_Username,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1PostUserNameReplaceRequest__storage_, username),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1PostUserNameReplaceRequest_ReplaceTo),
        .number = DEVICEAPISDEVICEV1PostUserNameReplaceRequest_FieldNumber_Data_p,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1PostUserNameReplaceRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1PostUserNameReplaceRequest)
                                   messageName:@"PostUserNameReplaceRequest"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1PostUserNameReplaceRequest__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 - DEVICEAPISDEVICEV1PostUserNameReplaceRequest_ReplaceTo

@implementation DEVICEAPISDEVICEV1PostUserNameReplaceRequest_ReplaceTo

@dynamic targetUsername;

typedef struct DEVICEAPISDEVICEV1PostUserNameReplaceRequest_ReplaceTo__storage_ {
  uint32_t _has_storage_[1];
  NSString *targetUsername;
} DEVICEAPISDEVICEV1PostUserNameReplaceRequest_ReplaceTo__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 = "targetUsername",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1PostUserNameReplaceRequest_ReplaceTo_FieldNumber_TargetUsername,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1PostUserNameReplaceRequest_ReplaceTo__storage_, targetUsername),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1PostUserNameReplaceRequest_ReplaceTo)
                                   messageName:@"ReplaceTo"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1PostUserNameReplaceRequest_ReplaceTo__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(DEVICEAPISDEVICEV1PostUserNameReplaceRequest)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - DEVICEAPISDEVICEV1PostUserNameReplaceResponse

@implementation DEVICEAPISDEVICEV1PostUserNameReplaceResponse


typedef struct DEVICEAPISDEVICEV1PostUserNameReplaceResponse__storage_ {
  uint32_t _has_storage_[1];
} DEVICEAPISDEVICEV1PostUserNameReplaceResponse__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(DEVICEAPISDEVICEV1PostUserNameReplaceResponse)
                                   messageName:@"PostUserNameReplaceResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceUserV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(DEVICEAPISDEVICEV1PostUserNameReplaceResponse__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 - DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest

@implementation DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest

@dynamic username;
@dynamic hasData_p, data_p;

typedef struct DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *username;
  DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest_ReplaceTo *data_p;
} DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest__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 = "username",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest_FieldNumber_Username,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest__storage_, username),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest_ReplaceTo),
        .number = DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest_FieldNumber_Data_p,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest)
                                   messageName:@"PostUserPasswordReplaceRequest"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest__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 - DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest_ReplaceTo

@implementation DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest_ReplaceTo

@dynamic password;

typedef struct DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest_ReplaceTo__storage_ {
  uint32_t _has_storage_[1];
  NSString *password;
} DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest_ReplaceTo__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 = "password",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest_ReplaceTo_FieldNumber_Password,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest_ReplaceTo__storage_, password),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest_ReplaceTo)
                                   messageName:@"ReplaceTo"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest_ReplaceTo__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(DEVICEAPISDEVICEV1PostUserPasswordReplaceRequest)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - DEVICEAPISDEVICEV1PostUserPasswordReplaceResponse

@implementation DEVICEAPISDEVICEV1PostUserPasswordReplaceResponse


typedef struct DEVICEAPISDEVICEV1PostUserPasswordReplaceResponse__storage_ {
  uint32_t _has_storage_[1];
} DEVICEAPISDEVICEV1PostUserPasswordReplaceResponse__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(DEVICEAPISDEVICEV1PostUserPasswordReplaceResponse)
                                   messageName:@"PostUserPasswordReplaceResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceUserV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(DEVICEAPISDEVICEV1PostUserPasswordReplaceResponse__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 - DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest

@implementation DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest

@dynamic username;
@dynamic hasData_p, data_p;

typedef struct DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *username;
  DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest_ReplaceTo *data_p;
} DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest__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 = "username",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest_FieldNumber_Username,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest__storage_, username),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "data_p",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest_ReplaceTo),
        .number = DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest_FieldNumber_Data_p,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest)
                                   messageName:@"PostUserPermissionReplaceRequest"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest__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 - DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest_ReplaceTo

@implementation DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest_ReplaceTo

@dynamic permissionArray, permissionArray_Count;

typedef struct DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest_ReplaceTo__storage_ {
  uint32_t _has_storage_[1];
  NSMutableArray *permissionArray;
} DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest_ReplaceTo__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 = "permissionArray",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1User_Permission),
        .number = DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest_ReplaceTo_FieldNumber_PermissionArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest_ReplaceTo__storage_, permissionArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest_ReplaceTo)
                                   messageName:@"ReplaceTo"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest_ReplaceTo__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(DEVICEAPISDEVICEV1PostUserPermissionReplaceRequest)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - DEVICEAPISDEVICEV1PostUserPermissionReplaceResponse

@implementation DEVICEAPISDEVICEV1PostUserPermissionReplaceResponse


typedef struct DEVICEAPISDEVICEV1PostUserPermissionReplaceResponse__storage_ {
  uint32_t _has_storage_[1];
} DEVICEAPISDEVICEV1PostUserPermissionReplaceResponse__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(DEVICEAPISDEVICEV1PostUserPermissionReplaceResponse)
                                   messageName:@"PostUserPermissionReplaceResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceUserV1Root_FileDescription
                                        fields:NULL
                                    fieldCount:0
                                   storageSize:sizeof(DEVICEAPISDEVICEV1PostUserPermissionReplaceResponse__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 - DEVICEAPISDEVICEV1SaveUserRequest

@implementation DEVICEAPISDEVICEV1SaveUserRequest

@dynamic hasData_p, data_p;

typedef struct DEVICEAPISDEVICEV1SaveUserRequest__storage_ {
  uint32_t _has_storage_[1];
  DEVICEAPISDEVICEV1User *data_p;
} DEVICEAPISDEVICEV1SaveUserRequest__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(DEVICEAPISDEVICEV1User),
        .number = DEVICEAPISDEVICEV1SaveUserRequest_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1SaveUserRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1SaveUserRequest)
                                   messageName:@"SaveUserRequest"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1SaveUserRequest__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 - DEVICEAPISDEVICEV1SaveUserResponse

@implementation DEVICEAPISDEVICEV1SaveUserResponse

@dynamic typeOneOfCase;
@dynamic data_p;

typedef struct DEVICEAPISDEVICEV1SaveUserResponse__storage_ {
  uint32_t _has_storage_[2];
  DEVICEAPISDEVICEV1User *data_p;
} DEVICEAPISDEVICEV1SaveUserResponse__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(DEVICEAPISDEVICEV1User),
        .number = DEVICEAPISDEVICEV1SaveUserResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1SaveUserResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1SaveUserResponse)
                                   messageName:@"SaveUserResponse"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1SaveUserResponse__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 DEVICEAPISDEVICEV1SaveUserResponse_ClearTypeOneOfCase(DEVICEAPISDEVICEV1SaveUserResponse *message) {
  GPBDescriptor *descriptor = [DEVICEAPISDEVICEV1SaveUserResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - DEVICEAPISDEVICEV1User

@implementation DEVICEAPISDEVICEV1User

@dynamic username;
@dynamic password;
@dynamic permissionArray, permissionArray_Count;

typedef struct DEVICEAPISDEVICEV1User__storage_ {
  uint32_t _has_storage_[1];
  NSString *username;
  NSString *password;
  NSMutableArray *permissionArray;
} DEVICEAPISDEVICEV1User__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 = "username",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1User_FieldNumber_Username,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1User__storage_, username),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "password",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1User_FieldNumber_Password,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1User__storage_, password),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "permissionArray",
        .dataTypeSpecific.clazz = GPBObjCClass(DEVICEAPISDEVICEV1User_Permission),
        .number = DEVICEAPISDEVICEV1User_FieldNumber_PermissionArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1User__storage_, permissionArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1User)
                                   messageName:@"User"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1User__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 - DEVICEAPISDEVICEV1User_Permission

@implementation DEVICEAPISDEVICEV1User_Permission

@dynamic permissionName;
@dynamic isEnabled;

typedef struct DEVICEAPISDEVICEV1User_Permission__storage_ {
  uint32_t _has_storage_[1];
  NSString *permissionName;
} DEVICEAPISDEVICEV1User_Permission__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 = "permissionName",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1User_Permission_FieldNumber_PermissionName,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(DEVICEAPISDEVICEV1User_Permission__storage_, permissionName),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "isEnabled",
        .dataTypeSpecific.clazz = Nil,
        .number = DEVICEAPISDEVICEV1User_Permission_FieldNumber_IsEnabled,
        .hasIndex = 1,
        .offset = 2,  // Stored in _has_storage_ to save space.
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeBool,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(DEVICEAPISDEVICEV1User_Permission)
                                   messageName:@"Permission"
                               fileDescription:&DEVICEAPISDEVICEV1DeviceapisDeviceUserV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(DEVICEAPISDEVICEV1User_Permission__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(DEVICEAPISDEVICEV1User)];
    #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
