// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/audit/v1/keyapis_audit_events_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/audit/v1/KeyapisAuditEventsV1.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 "-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(KEYAPISAUDITV1AuditEvent);

#pragma mark - KEYAPISAUDITV1KeyapisAuditEventsV1Root

@implementation KEYAPISAUDITV1KeyapisAuditEventsV1Root

+ (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 KEYAPISAUDITV1KeyapisAuditEventsV1Root_FileDescription = {
  .package = "keyapis.audit.v1",
  .prefix = "KEYAPISAUDITV1",
  .syntax = GPBFileSyntaxProto3
};

#pragma mark - KEYAPISAUDITV1AuditEvent

@implementation KEYAPISAUDITV1AuditEvent

@dynamic time;
@dynamic kind;
@dynamic previousData;
@dynamic currentData;
@dynamic serviceName;
@dynamic userId;

typedef struct KEYAPISAUDITV1AuditEvent__storage_ {
  uint32_t _has_storage_[1];
  int32_t userId;
  NSString *kind;
  NSString *previousData;
  NSString *currentData;
  NSString *serviceName;
  int64_t time;
} KEYAPISAUDITV1AuditEvent__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 = "time",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISAUDITV1AuditEvent_FieldNumber_Time,
        .hasIndex = 0,
        .offset = (uint32_t)offsetof(KEYAPISAUDITV1AuditEvent__storage_, time),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt64,
      },
      {
        .name = "kind",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISAUDITV1AuditEvent_FieldNumber_Kind,
        .hasIndex = 1,
        .offset = (uint32_t)offsetof(KEYAPISAUDITV1AuditEvent__storage_, kind),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "previousData",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISAUDITV1AuditEvent_FieldNumber_PreviousData,
        .hasIndex = 2,
        .offset = (uint32_t)offsetof(KEYAPISAUDITV1AuditEvent__storage_, previousData),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "currentData",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISAUDITV1AuditEvent_FieldNumber_CurrentData,
        .hasIndex = 3,
        .offset = (uint32_t)offsetof(KEYAPISAUDITV1AuditEvent__storage_, currentData),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "serviceName",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISAUDITV1AuditEvent_FieldNumber_ServiceName,
        .hasIndex = 4,
        .offset = (uint32_t)offsetof(KEYAPISAUDITV1AuditEvent__storage_, serviceName),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeString,
      },
      {
        .name = "userId",
        .dataTypeSpecific.clazz = Nil,
        .number = KEYAPISAUDITV1AuditEvent_FieldNumber_UserId,
        .hasIndex = 5,
        .offset = (uint32_t)offsetof(KEYAPISAUDITV1AuditEvent__storage_, userId),
        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
        .dataType = GPBDataTypeInt32,
      },
    };
    GPBDescriptor *localDescriptor =
        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(KEYAPISAUDITV1AuditEvent)
                                   messageName:@"AuditEvent"
                               fileDescription:&KEYAPISAUDITV1KeyapisAuditEventsV1Root_FileDescription
                                        fields:fields
                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
                                   storageSize:sizeof(KEYAPISAUDITV1AuditEvent__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
