// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/vc/v1/keyapis_vc_company_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 "keyapis/vc/v1/KeyapisVcCompanyV1.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(KEYAPISVCV1PostCompanyImpersonationRequest);
GPBObjCClassDeclaration(KEYAPISVCV1PostCompanyImpersonationResponse);
GPBObjCClassDeclaration(KEYAPISVCV1PostCompanyImpersonationResponse_CompanyImpersonation);
GPBObjCClassDeclaration(KEYAPISVCV1PostCompanyImpersonationResponse_Error);
GPBObjCClassDeclaration(KEYAPISVCV1PostCompanyImpersonationResponse_Error_OwnerNotFound);
GPBObjCClassDeclaration(KEYAPISVCV1PostCompanyImpersonationResponse_Error_UserServiceError);
GPBObjCClassDeclaration(KEYAPISVCV1PostCompanyImpersonationResponse_Error_VcfrontServiceError);
GPBObjCClassDeclaration(KEYAPISVCV1ValidationError);

#pragma mark - KEYAPISVCV1KeyapisVcCompanyV1Root

@implementation KEYAPISVCV1KeyapisVcCompanyV1Root

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

#pragma mark - KEYAPISVCV1PostCompanyImpersonationRequest

@implementation KEYAPISVCV1PostCompanyImpersonationRequest

@dynamic companyId;

typedef struct KEYAPISVCV1PostCompanyImpersonationRequest__storage_ {
  uint32_t _has_storage_[1];
  int32_t companyId;
} KEYAPISVCV1PostCompanyImpersonationRequest__storage_;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = nil;
  if (!descriptor) {
    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "companyId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1PostCompanyImpersonationRequest_FieldNumber_CompanyId,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISVCV1PostCompanyImpersonationRequest__storage_, companyId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1PostCompanyImpersonationRequest)
                                   messageName:@"PostCompanyImpersonationRequest"
                               fileDescription:&KEYAPISVCV1KeyapisVcCompanyV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1PostCompanyImpersonationRequest__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 - KEYAPISVCV1PostCompanyImpersonationResponse

@implementation KEYAPISVCV1PostCompanyImpersonationResponse

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

typedef struct KEYAPISVCV1PostCompanyImpersonationResponse__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISVCV1PostCompanyImpersonationResponse_CompanyImpersonation *data_p;
  KEYAPISVCV1PostCompanyImpersonationResponse_Error *error;
} KEYAPISVCV1PostCompanyImpersonationResponse__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(KEYAPISVCV1PostCompanyImpersonationResponse_CompanyImpersonation),
        .number = KEYAPISVCV1PostCompanyImpersonationResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1PostCompanyImpersonationResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISVCV1PostCompanyImpersonationResponse_Error),
        .number = KEYAPISVCV1PostCompanyImpersonationResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1PostCompanyImpersonationResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1PostCompanyImpersonationResponse)
                                   messageName:@"PostCompanyImpersonationResponse"
                               fileDescription:&KEYAPISVCV1KeyapisVcCompanyV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1PostCompanyImpersonationResponse__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 KEYAPISVCV1PostCompanyImpersonationResponse_ClearTypeOneOfCase(KEYAPISVCV1PostCompanyImpersonationResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISVCV1PostCompanyImpersonationResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISVCV1PostCompanyImpersonationResponse_Error

@implementation KEYAPISVCV1PostCompanyImpersonationResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;
@dynamic ownerNotFound;
@dynamic userServiceError;
@dynamic vcfrontServiceError;

typedef struct KEYAPISVCV1PostCompanyImpersonationResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISVCV1ValidationError *validation;
  KEYAPISVCV1PostCompanyImpersonationResponse_Error_OwnerNotFound *ownerNotFound;
  KEYAPISVCV1PostCompanyImpersonationResponse_Error_UserServiceError *userServiceError;
  KEYAPISVCV1PostCompanyImpersonationResponse_Error_VcfrontServiceError *vcfrontServiceError;
} KEYAPISVCV1PostCompanyImpersonationResponse_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 = KEYAPISVCV1PostCompanyImpersonationResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1PostCompanyImpersonationResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "ownerNotFound",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISVCV1PostCompanyImpersonationResponse_Error_OwnerNotFound),
        .number = KEYAPISVCV1PostCompanyImpersonationResponse_Error_FieldNumber_OwnerNotFound,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1PostCompanyImpersonationResponse_Error__storage_, ownerNotFound),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "userServiceError",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISVCV1PostCompanyImpersonationResponse_Error_UserServiceError),
        .number = KEYAPISVCV1PostCompanyImpersonationResponse_Error_FieldNumber_UserServiceError,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1PostCompanyImpersonationResponse_Error__storage_, userServiceError),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "vcfrontServiceError",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISVCV1PostCompanyImpersonationResponse_Error_VcfrontServiceError),
        .number = KEYAPISVCV1PostCompanyImpersonationResponse_Error_FieldNumber_VcfrontServiceError,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISVCV1PostCompanyImpersonationResponse_Error__storage_, vcfrontServiceError),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1PostCompanyImpersonationResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISVCV1KeyapisVcCompanyV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1PostCompanyImpersonationResponse_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(KEYAPISVCV1PostCompanyImpersonationResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISVCV1PostCompanyImpersonationResponse_Error_OwnerNotFound


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

@end

#pragma mark - KEYAPISVCV1PostCompanyImpersonationResponse_Error_UserServiceError

@implementation KEYAPISVCV1PostCompanyImpersonationResponse_Error_UserServiceError


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

@end

#pragma mark - KEYAPISVCV1PostCompanyImpersonationResponse_Error_VcfrontServiceError

@implementation KEYAPISVCV1PostCompanyImpersonationResponse_Error_VcfrontServiceError


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

@end

#pragma mark - KEYAPISVCV1PostCompanyImpersonationResponse_CompanyImpersonation

@implementation KEYAPISVCV1PostCompanyImpersonationResponse_CompanyImpersonation

@dynamic URL;

typedef struct KEYAPISVCV1PostCompanyImpersonationResponse_CompanyImpersonation__storage_ {
  uint32_t _has_storage_[1];
  NSString *URL;
} KEYAPISVCV1PostCompanyImpersonationResponse_CompanyImpersonation__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 = "URL",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISVCV1PostCompanyImpersonationResponse_CompanyImpersonation_FieldNumber_URL,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISVCV1PostCompanyImpersonationResponse_CompanyImpersonation__storage_, URL),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISVCV1PostCompanyImpersonationResponse_CompanyImpersonation)
                                   messageName:@"CompanyImpersonation"
                               fileDescription:&KEYAPISVCV1KeyapisVcCompanyV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISVCV1PostCompanyImpersonationResponse_CompanyImpersonation__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
#if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
    static const char *extraTextFormatInfo =
        "\001\001!!!\000";
    [localDescriptor setupExtraTextInfo:extraTextFormatInfo];
#endif  // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISVCV1PostCompanyImpersonationResponse)];
    #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
