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

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

#pragma mark - Objective-C Class declarations
// Forward declarations of Objective-C classes that we can use as
// static values in struct initializers.
// We don't use [Foo class] because it is not a static value.
GPBObjCClassDeclaration(KEYAPISKMSV1PostKmsJwtCreateJweRequest);
GPBObjCClassDeclaration(KEYAPISKMSV1PostKmsJwtCreateJweRequest_PayloadData);
GPBObjCClassDeclaration(KEYAPISKMSV1PostKmsJwtCreateJweResponse);
GPBObjCClassDeclaration(KEYAPISKMSV1PostKmsJwtCreateJweResponse_Error);
GPBObjCClassDeclaration(KEYAPISKMSV1PostKmsJwtCreateJweResponse_Error_PrivateKeyNotFound);
GPBObjCClassDeclaration(KEYAPISKMSV1ValidationError);

#pragma mark - KEYAPISKMSV1KeyapisKmsJwtV1Root

@implementation KEYAPISKMSV1KeyapisKmsJwtV1Root

+ (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 KEYAPISKMSV1KeyapisKmsJwtV1Root_FileDescription = {
  .package = "keyapis.kms.v1",
  .prefix = "KEYAPISKMSV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - KEYAPISKMSV1PostKmsJwtCreateJweRequest

@implementation KEYAPISKMSV1PostKmsJwtCreateJweRequest

@dynamic hasData_p, data_p;
@dynamic publicKey;

typedef struct KEYAPISKMSV1PostKmsJwtCreateJweRequest__storage_ {
  uint32_t _has_storage_[1];
  KEYAPISKMSV1PostKmsJwtCreateJweRequest_PayloadData *data_p;
  NSString *publicKey;
} KEYAPISKMSV1PostKmsJwtCreateJweRequest__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(KEYAPISKMSV1PostKmsJwtCreateJweRequest_PayloadData),
        .number = KEYAPISKMSV1PostKmsJwtCreateJweRequest_FieldNumber_Data_p,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISKMSV1PostKmsJwtCreateJweRequest__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "publicKey",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISKMSV1PostKmsJwtCreateJweRequest_FieldNumber_PublicKey,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISKMSV1PostKmsJwtCreateJweRequest__storage_, publicKey),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISKMSV1PostKmsJwtCreateJweRequest)
                                   messageName:@"PostKmsJwtCreateJweRequest"
                               fileDescription:&KEYAPISKMSV1KeyapisKmsJwtV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISKMSV1PostKmsJwtCreateJweRequest__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 - KEYAPISKMSV1PostKmsJwtCreateJweRequest_PayloadData

@implementation KEYAPISKMSV1PostKmsJwtCreateJweRequest_PayloadData

@dynamic values, values_Count;

typedef struct KEYAPISKMSV1PostKmsJwtCreateJweRequest_PayloadData__storage_ {
  uint32_t _has_storage_[1];
  NSMutableDictionary *values;
} KEYAPISKMSV1PostKmsJwtCreateJweRequest_PayloadData__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 = "values",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISKMSV1PostKmsJwtCreateJweRequest_PayloadData_FieldNumber_Values,
        .hasIndex = GPBNoHasBit,
        .offset = (uint32_t)offsetof(KEYAPISKMSV1PostKmsJwtCreateJweRequest_PayloadData__storage_, values),
        .flags = GPBFieldMapKeyString,
        .dataType = GPBDataTypeString,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISKMSV1PostKmsJwtCreateJweRequest_PayloadData)
                                   messageName:@"PayloadData"
                               fileDescription:&KEYAPISKMSV1KeyapisKmsJwtV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISKMSV1PostKmsJwtCreateJweRequest_PayloadData__storage_)
                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
    [localDescriptor setupContainingMessageClass:GPBObjCClass(KEYAPISKMSV1PostKmsJwtCreateJweRequest)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

#pragma mark - KEYAPISKMSV1PostKmsJwtCreateJweResponse

@implementation KEYAPISKMSV1PostKmsJwtCreateJweResponse

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

typedef struct KEYAPISKMSV1PostKmsJwtCreateJweResponse__storage_ {
  uint32_t _has_storage_[2];
  NSString *data_p;
  KEYAPISKMSV1PostKmsJwtCreateJweResponse_Error *error;
} KEYAPISKMSV1PostKmsJwtCreateJweResponse__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 = KEYAPISKMSV1PostKmsJwtCreateJweResponse_FieldNumber_Data_p,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISKMSV1PostKmsJwtCreateJweResponse__storage_, data_p),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeString,
      },
      {
        .name = "error",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISKMSV1PostKmsJwtCreateJweResponse_Error),
        .number = KEYAPISKMSV1PostKmsJwtCreateJweResponse_FieldNumber_Error,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISKMSV1PostKmsJwtCreateJweResponse__storage_, error),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISKMSV1PostKmsJwtCreateJweResponse)
                                   messageName:@"PostKmsJwtCreateJweResponse"
                               fileDescription:&KEYAPISKMSV1KeyapisKmsJwtV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISKMSV1PostKmsJwtCreateJweResponse__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 KEYAPISKMSV1PostKmsJwtCreateJweResponse_ClearTypeOneOfCase(KEYAPISKMSV1PostKmsJwtCreateJweResponse *message) {
  GPBDescriptor *descriptor = [KEYAPISKMSV1PostKmsJwtCreateJweResponse descriptor];
  GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  GPBClearOneof(message, oneof);
}
#pragma mark - KEYAPISKMSV1PostKmsJwtCreateJweResponse_Error

@implementation KEYAPISKMSV1PostKmsJwtCreateJweResponse_Error

@dynamic reasonOneOfCase;
@dynamic validation;
@dynamic privateKeyNotFound;

typedef struct KEYAPISKMSV1PostKmsJwtCreateJweResponse_Error__storage_ {
  uint32_t _has_storage_[2];
  KEYAPISKMSV1ValidationError *validation;
  KEYAPISKMSV1PostKmsJwtCreateJweResponse_Error_PrivateKeyNotFound *privateKeyNotFound;
} KEYAPISKMSV1PostKmsJwtCreateJweResponse_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(KEYAPISKMSV1ValidationError),
        .number = KEYAPISKMSV1PostKmsJwtCreateJweResponse_Error_FieldNumber_Validation,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISKMSV1PostKmsJwtCreateJweResponse_Error__storage_, validation),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
      {
        .name = "privateKeyNotFound",
        .dataTypeSpecific.clazz = GPBObjCClass(KEYAPISKMSV1PostKmsJwtCreateJweResponse_Error_PrivateKeyNotFound),
        .number = KEYAPISKMSV1PostKmsJwtCreateJweResponse_Error_FieldNumber_PrivateKeyNotFound,
        .hasIndex = -1,
        .offset = (uint32_t)offsetof(KEYAPISKMSV1PostKmsJwtCreateJweResponse_Error__storage_, privateKeyNotFound),
        .flags = GPBFieldOptional,
        .dataType = GPBDataTypeMessage,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISKMSV1PostKmsJwtCreateJweResponse_Error)
                                   messageName:@"Error"
                               fileDescription:&KEYAPISKMSV1KeyapisKmsJwtV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISKMSV1PostKmsJwtCreateJweResponse_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(KEYAPISKMSV1PostKmsJwtCreateJweResponse)];
    #if defined(DEBUG) && DEBUG
      NSAssert(descriptor == nil, @"Startup recursed!");
    #endif  // DEBUG
    descriptor = localDescriptor;
  }
  return descriptor;
}

@end

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

@implementation KEYAPISKMSV1PostKmsJwtCreateJweResponse_Error_PrivateKeyNotFound


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

@end

#pragma mark - KEYAPISKMSV1ValidationError

@implementation KEYAPISKMSV1ValidationError

@dynamic path;
@dynamic message;

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

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

@end


#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
