// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/vc/v1/keyapis_vc_camera_group_v1.proto

// This CPP symbol can be defined to use imports that match up to the framework
// imports needed when using CocoaPods.
#if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
 #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
#endif

#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
 #import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h>
#else
 #import "GPBProtocolBuffers_RuntimeSupport.h"
#endif

#if GOOGLE_PROTOBUF_OBJC_VERSION < 30007
#error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
#endif
#if 30007 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
#error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
#endif

#import <stdatomic.h>

#import "keyapis/vc/v1/KeyapisVcCameraGroupV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#import "keyapis/vc/v1/KeyapisVcCameraV1.pbobjc.h"
// @@protoc_insertion_point(imports)

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

#pragma mark - Objective-C Class declarations
// Forward declarations of Objective-C classes that we can use as
// static values in struct initializers.
// We don't use [Foo class] because it is not a static value.
GPBObjCClassDeclaration(GPBBoolValue);
GPBObjCClassDeclaration(GPBTimestamp);
GPBObjCClassDeclaration(KEYAPISVCV1CameraCollection);
GPBObjCClassDeclaration(KEYAPISVCV1CameraCollectionFilter);
GPBObjCClassDeclaration(KEYAPISVCV1CameraCollectionPaging);
GPBObjCClassDeclaration(KEYAPISVCV1CameraCollection_SavingError);
GPBObjCClassDeclaration(KEYAPISVCV1CameraCollection_SavingError_Conflict);
GPBObjCClassDeclaration(KEYAPISVCV1CameraCollection_SavingError_WrongCompanyId);
GPBObjCClassDeclaration(KEYAPISVCV1DeleteCameraCollectionRequest);
GPBObjCClassDeclaration(KEYAPISVCV1DeleteCameraCollectionResponse);
GPBObjCClassDeclaration(KEYAPISVCV1DeleteCameraCollectionResponse_Error);
GPBObjCClassDeclaration(KEYAPISVCV1GetCameraCollectionCountRequest);
GPBObjCClassDeclaration(KEYAPISVCV1GetCameraCollectionCountResponse);
GPBObjCClassDeclaration(KEYAPISVCV1GetCameraCollectionCountResponse_Error);
GPBObjCClassDeclaration(KEYAPISVCV1GetCameraCollectionListRequest);
GPBObjCClassDeclaration(KEYAPISVCV1GetCameraCollectionListResponse);
GPBObjCClassDeclaration(KEYAPISVCV1GetCameraCollectionListResponse_Error);
GPBObjCClassDeclaration(KEYAPISVCV1GetCameraCollectionRequest);
GPBObjCClassDeclaration(KEYAPISVCV1GetCameraCollectionResponse);
GPBObjCClassDeclaration(KEYAPISVCV1GetCameraCollectionResponse_Error);
GPBObjCClassDeclaration(KEYAPISVCV1PostCameraCollectionRestoreRequest);
GPBObjCClassDeclaration(KEYAPISVCV1PostCameraCollectionRestoreResponse);
GPBObjCClassDeclaration(KEYAPISVCV1PostCameraCollectionRestoreResponse_Error);
GPBObjCClassDeclaration(KEYAPISVCV1SaveCameraCollectionRequest);
GPBObjCClassDeclaration(KEYAPISVCV1SaveCameraCollectionResponse);
GPBObjCClassDeclaration(KEYAPISVCV1SaveCameraCollectionResponse_Error);
GPBObjCClassDeclaration(KEYAPISVCV1ValidationError);

#pragma mark - KEYAPISVCV1KeyapisVcCameraGroupV1Root

@implementation KEYAPISVCV1KeyapisVcCameraGroupV1Root

+ (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 KEYAPISVCV1KeyapisVcCameraGroupV1Root_FileDescription = {
  .package = "keyapis.vc.v1",
  .prefix = "KEYAPISVCV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - Enum KEYAPISVCV1CameraCollectionPaging_OrderByType

GPBEnumDescriptor *KEYAPISVCV1CameraCollectionPaging_OrderByType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "OrderByTypeUnknown\000Id\000Name\000ChangedAt\000";
    static const int32_t values[] = {
        KEYAPISVCV1CameraCollectionPaging_OrderByType_OrderByTypeUnknown,
        KEYAPISVCV1CameraCollectionPaging_OrderByType_Id,
        KEYAPISVCV1CameraCollectionPaging_OrderByType_Name,
        KEYAPISVCV1CameraCollectionPaging_OrderByType_ChangedAt,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISVCV1CameraCollectionPaging_OrderByType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISVCV1CameraCollectionPaging_OrderByType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISVCV1CameraCollectionPaging_OrderByType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISVCV1CameraCollectionPaging_OrderByType_OrderByTypeUnknown:
    case KEYAPISVCV1CameraCollectionPaging_OrderByType_Id:
    case KEYAPISVCV1CameraCollectionPaging_OrderByType_Name:
    case KEYAPISVCV1CameraCollectionPaging_OrderByType_ChangedAt:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - Enum KEYAPISVCV1CameraCollectionPaging_DirectionType

GPBEnumDescriptor *KEYAPISVCV1CameraCollectionPaging_DirectionType_EnumDescriptor(void) {
  static _Atomic(GPBEnumDescriptor*) descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static const char *valueNames =
        "DirectionTypeUnknown\000Desc\000Asc\000";
    static const int32_t values[] = {
        KEYAPISVCV1CameraCollectionPaging_DirectionType_DirectionTypeUnknown,
        KEYAPISVCV1CameraCollectionPaging_DirectionType_Desc,
        KEYAPISVCV1CameraCollectionPaging_DirectionType_Asc,
    };
    GPBEnumDescriptor *worker =
        [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(KEYAPISVCV1CameraCollectionPaging_DirectionType)
                                       valueNames:valueNames
                                           values:values
                                            count:(uint32_t)(sizeof(values) / sizeof(int32_t))
                                     enumVerifier:KEYAPISVCV1CameraCollectionPaging_DirectionType_IsValidValue
                                            flags:GPBEnumDescriptorInitializationFlag_None];
    GPBEnumDescriptor *expected = nil;
    if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) {
      [worker release];
    }
  }
  return descriptor;
}

BOOL KEYAPISVCV1CameraCollectionPaging_DirectionType_IsValidValue(int32_t value__) {
  switch (value__) {
    case KEYAPISVCV1CameraCollectionPaging_DirectionType_DirectionTypeUnknown:
    case KEYAPISVCV1CameraCollectionPaging_DirectionType_Desc:
    case KEYAPISVCV1CameraCollectionPaging_DirectionType_Asc:
      return YES;
    default:
      return NO;
  }
}

#pragma mark - KEYAPISVCV1GetCameraCollectionCountRequest

@implementation KEYAPISVCV1GetCameraCollectionCountRequest

@dynamic hasFilter, filter;

typedef struct KEYAPISVCV1GetCameraCollectionCountRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISVCV1CameraCollectionFilter *filter;
} KEYAPISVCV1GetCameraCollectionCountRequest__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(KEYAPISVCV1CameraCollectionFilter),
        .number = KEYAPISVCV1GetCameraCollectionCountRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISVCV1GetCameraCollectionCountRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1GetCameraCollectionCountRequest)
                                   messageName:@"GetCameraCollectionCountRequest"
                               fileDescription:&KEYAPISVCV1KeyapisVcCameraGroupV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1GetCameraCollectionCountRequest__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 - KEYAPISVCV1GetCameraCollectionCountResponse

@implementation KEYAPISVCV1GetCameraCollectionCountResponse

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

typedef struct KEYAPISVCV1GetCameraCollectionCountResponse__storage_ {
  uint32_t _has_storage_[2];
  int32_t data_p;
  KEYAPISVCV1GetCameraCollectionCountResponse_Error *error;
} KEYAPISVCV1GetCameraCollectionCountResponse__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 = KEYAPISVCV1GetCameraCollectionCountResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1GetCameraCollectionCountResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISVCV1GetCameraCollectionCountResponse_Error),
        .number = KEYAPISVCV1GetCameraCollectionCountResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1GetCameraCollectionCountResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1GetCameraCollectionCountResponse)
                                   messageName:@"GetCameraCollectionCountResponse"
                               fileDescription:&KEYAPISVCV1KeyapisVcCameraGroupV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1GetCameraCollectionCountResponse__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 KEYAPISVCV1GetCameraCollectionCountResponse_ClearTypeOneOfCase(KEYAPISVCV1GetCameraCollectionCountResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISVCV1GetCameraCollectionCountResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISVCV1GetCameraCollectionCountResponse_Error

@implementation KEYAPISVCV1GetCameraCollectionCountResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation KEYAPISVCV1GetCameraCollectionRequest

@dynamic id_p;

typedef struct KEYAPISVCV1GetCameraCollectionRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *id_p;
} KEYAPISVCV1GetCameraCollectionRequest__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 = KEYAPISVCV1GetCameraCollectionRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISVCV1GetCameraCollectionRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1GetCameraCollectionRequest)
                                   messageName:@"GetCameraCollectionRequest"
                               fileDescription:&KEYAPISVCV1KeyapisVcCameraGroupV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1GetCameraCollectionRequest__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 - KEYAPISVCV1GetCameraCollectionResponse

@implementation KEYAPISVCV1GetCameraCollectionResponse

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

typedef struct KEYAPISVCV1GetCameraCollectionResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISVCV1CameraCollection *data_p;
  KEYAPISVCV1GetCameraCollectionResponse_Error *error;
} KEYAPISVCV1GetCameraCollectionResponse__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(KEYAPISVCV1CameraCollection),
        .number = KEYAPISVCV1GetCameraCollectionResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1GetCameraCollectionResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISVCV1GetCameraCollectionResponse_Error),
        .number = KEYAPISVCV1GetCameraCollectionResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1GetCameraCollectionResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1GetCameraCollectionResponse)
                                   messageName:@"GetCameraCollectionResponse"
                               fileDescription:&KEYAPISVCV1KeyapisVcCameraGroupV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1GetCameraCollectionResponse__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 KEYAPISVCV1GetCameraCollectionResponse_ClearTypeOneOfCase(KEYAPISVCV1GetCameraCollectionResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISVCV1GetCameraCollectionResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISVCV1GetCameraCollectionResponse_Error

@implementation KEYAPISVCV1GetCameraCollectionResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation KEYAPISVCV1GetCameraCollectionListRequest

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

typedef struct KEYAPISVCV1GetCameraCollectionListRequest__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISVCV1CameraCollectionFilter *filter;
  KEYAPISVCV1CameraCollectionPaging *paging;
} KEYAPISVCV1GetCameraCollectionListRequest__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(KEYAPISVCV1CameraCollectionFilter),
        .number = KEYAPISVCV1GetCameraCollectionListRequest_FieldNumber_Filter,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISVCV1GetCameraCollectionListRequest__storage_, filter),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "paging",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISVCV1CameraCollectionPaging),
        .number = KEYAPISVCV1GetCameraCollectionListRequest_FieldNumber_Paging,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1GetCameraCollectionListRequest__storage_, paging),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1GetCameraCollectionListRequest)
                                   messageName:@"GetCameraCollectionListRequest"
                               fileDescription:&KEYAPISVCV1KeyapisVcCameraGroupV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1GetCameraCollectionListRequest__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    static const char *oneofs[] = {
      "pagination",
    };
    [localDescriptor setupOneofs:oneofs
                           count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
                   firstHasIndex:-1];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISVCV1CameraCollectionFilter

@dynamic text;
@dynamic tagsArray, tagsArray_Count;
@dynamic companyIdsArray, companyIdsArray_Count;
@dynamic hasIsDeleted, isDeleted;

typedef struct KEYAPISVCV1CameraCollectionFilter__storage_ {
  uint32_t _has_storage_[1];
  NSString *text;
  NSMutableArray *tagsArray;
  GPBInt64Array *companyIdsArray;
  GPBBoolValue *isDeleted;
} KEYAPISVCV1CameraCollectionFilter__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "text",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraCollectionFilter_FieldNumber_Text,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraCollectionFilter__storage_, text),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "tagsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraCollectionFilter_FieldNumber_TagsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraCollectionFilter__storage_, tagsArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "companyIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraCollectionFilter_FieldNumber_CompanyIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraCollectionFilter__storage_, companyIdsArray),
        .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldPacked),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "isDeleted",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBBoolValue),
        .number = KEYAPISVCV1CameraCollectionFilter_FieldNumber_IsDeleted,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraCollectionFilter__storage_, isDeleted),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1CameraCollectionFilter)
                                   messageName:@"CameraCollectionFilter"
                               fileDescription:&KEYAPISVCV1KeyapisVcCameraGroupV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1CameraCollectionFilter__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 - KEYAPISVCV1CameraCollectionPaging

@implementation KEYAPISVCV1CameraCollectionPaging

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

typedef struct KEYAPISVCV1CameraCollectionPaging__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISVCV1CameraCollectionPaging_OrderByType orderByType;
  KEYAPISVCV1CameraCollectionPaging_DirectionType directionType;
  int32_t limit;
  int32_t offset;
} KEYAPISVCV1CameraCollectionPaging__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "orderByType",
        .dataTypeSpecific.enumDescFunc = KEYAPISVCV1CameraCollectionPaging_OrderByType_EnumDescriptor,
        .number = KEYAPISVCV1CameraCollectionPaging_FieldNumber_OrderByType,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraCollectionPaging__storage_, orderByType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "directionType",
        .dataTypeSpecific.enumDescFunc = KEYAPISVCV1CameraCollectionPaging_DirectionType_EnumDescriptor,
        .number = KEYAPISVCV1CameraCollectionPaging_FieldNumber_DirectionType,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraCollectionPaging__storage_, directionType),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeEnum,
      },
      {
        .name = "limit",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraCollectionPaging_FieldNumber_Limit,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraCollectionPaging__storage_, limit),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
      {
        .name = "offset",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraCollectionPaging_FieldNumber_Offset,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraCollectionPaging__storage_, offset),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1CameraCollectionPaging)
                                   messageName:@"CameraCollectionPaging"
                               fileDescription:&KEYAPISVCV1KeyapisVcCameraGroupV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1CameraCollectionPaging__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 KEYAPISVCV1CameraCollectionPaging_OrderByType_RawValue(KEYAPISVCV1CameraCollectionPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISVCV1CameraCollectionPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISVCV1CameraCollectionPaging_FieldNumber_OrderByType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISVCV1CameraCollectionPaging_OrderByType_RawValue(KEYAPISVCV1CameraCollectionPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISVCV1CameraCollectionPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISVCV1CameraCollectionPaging_FieldNumber_OrderByType];
  GPBSetMessageRawEnumField(message, field, value);
}

int32_t KEYAPISVCV1CameraCollectionPaging_DirectionType_RawValue(KEYAPISVCV1CameraCollectionPaging *message) {
  GPBDescriptor *descriptor = [KEYAPISVCV1CameraCollectionPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISVCV1CameraCollectionPaging_FieldNumber_DirectionType];
  return GPBGetMessageRawEnumField(message, field);
}

void SetKEYAPISVCV1CameraCollectionPaging_DirectionType_RawValue(KEYAPISVCV1CameraCollectionPaging *message, int32_t value) {
  GPBDescriptor *descriptor = [KEYAPISVCV1CameraCollectionPaging descriptor];
  GPBFieldDescriptor *field = [descriptor fieldWithNumber:KEYAPISVCV1CameraCollectionPaging_FieldNumber_DirectionType];
  GPBSetMessageRawEnumField(message, field, value);
}

#pragma mark - KEYAPISVCV1GetCameraCollectionListResponse

@implementation KEYAPISVCV1GetCameraCollectionListResponse

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

typedef struct KEYAPISVCV1GetCameraCollectionListResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISVCV1CameraCollection *data_p;
  KEYAPISVCV1GetCameraCollectionListResponse_Error *error;
} KEYAPISVCV1GetCameraCollectionListResponse__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(KEYAPISVCV1CameraCollection),
        .number = KEYAPISVCV1GetCameraCollectionListResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1GetCameraCollectionListResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISVCV1GetCameraCollectionListResponse_Error),
        .number = KEYAPISVCV1GetCameraCollectionListResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1GetCameraCollectionListResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1GetCameraCollectionListResponse)
                                   messageName:@"GetCameraCollectionListResponse"
                               fileDescription:&KEYAPISVCV1KeyapisVcCameraGroupV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1GetCameraCollectionListResponse__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 KEYAPISVCV1GetCameraCollectionListResponse_ClearTypeOneOfCase(KEYAPISVCV1GetCameraCollectionListResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISVCV1GetCameraCollectionListResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISVCV1GetCameraCollectionListResponse_Error

@implementation KEYAPISVCV1GetCameraCollectionListResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation KEYAPISVCV1SaveCameraCollectionRequest

@dynamic hasData_p, data_p;

typedef struct KEYAPISVCV1SaveCameraCollectionRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISVCV1CameraCollection *data_p;
} KEYAPISVCV1SaveCameraCollectionRequest__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(KEYAPISVCV1CameraCollection),
        .number = KEYAPISVCV1SaveCameraCollectionRequest_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISVCV1SaveCameraCollectionRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1SaveCameraCollectionRequest)
                                   messageName:@"SaveCameraCollectionRequest"
                               fileDescription:&KEYAPISVCV1KeyapisVcCameraGroupV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1SaveCameraCollectionRequest__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 - KEYAPISVCV1SaveCameraCollectionResponse

@implementation KEYAPISVCV1SaveCameraCollectionResponse

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

typedef struct KEYAPISVCV1SaveCameraCollectionResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISVCV1CameraCollection *data_p;
  KEYAPISVCV1SaveCameraCollectionResponse_Error *error;
} KEYAPISVCV1SaveCameraCollectionResponse__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(KEYAPISVCV1CameraCollection),
        .number = KEYAPISVCV1SaveCameraCollectionResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1SaveCameraCollectionResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISVCV1SaveCameraCollectionResponse_Error),
        .number = KEYAPISVCV1SaveCameraCollectionResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1SaveCameraCollectionResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1SaveCameraCollectionResponse)
                                   messageName:@"SaveCameraCollectionResponse"
                               fileDescription:&KEYAPISVCV1KeyapisVcCameraGroupV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1SaveCameraCollectionResponse__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 KEYAPISVCV1SaveCameraCollectionResponse_ClearTypeOneOfCase(KEYAPISVCV1SaveCameraCollectionResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISVCV1SaveCameraCollectionResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISVCV1SaveCameraCollectionResponse_Error

@implementation KEYAPISVCV1SaveCameraCollectionResponse_Error

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

typedef struct KEYAPISVCV1SaveCameraCollectionResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISVCV1ValidationError *validation;
  KEYAPISVCV1CameraCollection_SavingError *saving;
} KEYAPISVCV1SaveCameraCollectionResponse_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(KEYAPISVCV1ValidationError),
        .number = KEYAPISVCV1SaveCameraCollectionResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1SaveCameraCollectionResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "saving",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISVCV1CameraCollection_SavingError),
        .number = KEYAPISVCV1SaveCameraCollectionResponse_Error_FieldNumber_Saving,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1SaveCameraCollectionResponse_Error__storage_, saving),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1SaveCameraCollectionResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISVCV1KeyapisVcCameraGroupV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1SaveCameraCollectionResponse_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(KEYAPISVCV1SaveCameraCollectionResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISVCV1CameraCollection

@dynamic id_p;
@dynamic name;
@dynamic hasChangedAt, changedAt;
@dynamic companyId;
@dynamic hasDeletedAt, deletedAt;
@dynamic description_p;
@dynamic tagsArray, tagsArray_Count;
@dynamic externalCameraIdsArray, externalCameraIdsArray_Count;

typedef struct KEYAPISVCV1CameraCollection__storage_ {
  uint32_t _has_storage_[1];
  NSString *id_p;
  NSString *name;
  GPBTimestamp *changedAt;
  GPBTimestamp *deletedAt;
  NSString *description_p;
  NSMutableArray *tagsArray;
  NSMutableArray *externalCameraIdsArray;
  int64_t companyId;
} KEYAPISVCV1CameraCollection__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 = KEYAPISVCV1CameraCollection_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraCollection__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "name",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraCollection_FieldNumber_Name,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraCollection__storage_, name),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "changedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISVCV1CameraCollection_FieldNumber_ChangedAt,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraCollection__storage_, changedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "companyId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraCollection_FieldNumber_CompanyId,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraCollection__storage_, companyId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "deletedAt",
        .dataTypeSpecific.clazz = GPBObjCClass(GPBTimestamp),
        .number = KEYAPISVCV1CameraCollection_FieldNumber_DeletedAt,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraCollection__storage_, deletedAt),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "description_p",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraCollection_FieldNumber_Description_p,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraCollection__storage_, description_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "tagsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraCollection_FieldNumber_TagsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraCollection__storage_, tagsArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "externalCameraIdsArray",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1CameraCollection_FieldNumber_ExternalCameraIdsArray,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraCollection__storage_, externalCameraIdsArray),
        .flags = GPBFieldRepeated,
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1CameraCollection)
                                   messageName:@"CameraCollection"
                               fileDescription:&KEYAPISVCV1KeyapisVcCameraGroupV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1CameraCollection__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 - KEYAPISVCV1CameraCollection_SavingError

@implementation KEYAPISVCV1CameraCollection_SavingError

@dynamic reasonOneOfCase;
@dynamic conflict;
@dynamic wrongCompanyId;

typedef struct KEYAPISVCV1CameraCollection_SavingError__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISVCV1CameraCollection_SavingError_Conflict *conflict;
  KEYAPISVCV1CameraCollection_SavingError_WrongCompanyId *wrongCompanyId;
} KEYAPISVCV1CameraCollection_SavingError__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "conflict",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISVCV1CameraCollection_SavingError_Conflict),
        .number = KEYAPISVCV1CameraCollection_SavingError_FieldNumber_Conflict,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraCollection_SavingError__storage_, conflict),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "wrongCompanyId",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISVCV1CameraCollection_SavingError_WrongCompanyId),
        .number = KEYAPISVCV1CameraCollection_SavingError_FieldNumber_WrongCompanyId,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1CameraCollection_SavingError__storage_, wrongCompanyId),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1CameraCollection_SavingError)
                                   messageName:@"SavingError"
                               fileDescription:&KEYAPISVCV1KeyapisVcCameraGroupV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1CameraCollection_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(KEYAPISVCV1CameraCollection)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISVCV1CameraCollection_SavingError_Conflict


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

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

@end

#pragma mark - KEYAPISVCV1CameraCollection_SavingError_WrongCompanyId

@implementation KEYAPISVCV1CameraCollection_SavingError_WrongCompanyId


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

@end

#pragma mark - KEYAPISVCV1DeleteCameraCollectionRequest

@implementation KEYAPISVCV1DeleteCameraCollectionRequest

@dynamic id_p;

typedef struct KEYAPISVCV1DeleteCameraCollectionRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *id_p;
} KEYAPISVCV1DeleteCameraCollectionRequest__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 = KEYAPISVCV1DeleteCameraCollectionRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISVCV1DeleteCameraCollectionRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1DeleteCameraCollectionRequest)
                                   messageName:@"DeleteCameraCollectionRequest"
                               fileDescription:&KEYAPISVCV1KeyapisVcCameraGroupV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1DeleteCameraCollectionRequest__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 - KEYAPISVCV1PostCameraCollectionRestoreRequest

@implementation KEYAPISVCV1PostCameraCollectionRestoreRequest

@dynamic id_p;

typedef struct KEYAPISVCV1PostCameraCollectionRestoreRequest__storage_ {
  uint32_t _has_storage_[1];
  NSString *id_p;
} KEYAPISVCV1PostCameraCollectionRestoreRequest__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 = KEYAPISVCV1PostCameraCollectionRestoreRequest_FieldNumber_Id_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISVCV1PostCameraCollectionRestoreRequest__storage_, id_p),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1PostCameraCollectionRestoreRequest)
                                   messageName:@"PostCameraCollectionRestoreRequest"
                               fileDescription:&KEYAPISVCV1KeyapisVcCameraGroupV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1PostCameraCollectionRestoreRequest__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 - KEYAPISVCV1DeleteCameraCollectionResponse

@implementation KEYAPISVCV1DeleteCameraCollectionResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISVCV1DeleteCameraCollectionResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISVCV1DeleteCameraCollectionResponse_Error *error;
} KEYAPISVCV1DeleteCameraCollectionResponse__storage_;

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

@implementation KEYAPISVCV1DeleteCameraCollectionResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

@implementation KEYAPISVCV1PostCameraCollectionRestoreResponse

@dynamic typeOneOfCase;
@dynamic error;

typedef struct KEYAPISVCV1PostCameraCollectionRestoreResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISVCV1PostCameraCollectionRestoreResponse_Error *error;
} KEYAPISVCV1PostCameraCollectionRestoreResponse__storage_;

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

@implementation KEYAPISVCV1PostCameraCollectionRestoreResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;

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

@end

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

#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
