1// Generated by the protocol buffer compiler. DO NOT EDIT! 2// source: google/protobuf/timestamp.proto 3 4// This CPP symbol can be defined to use imports that match up to the framework 5// imports needed when using CocoaPods. 6#if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS) 7 #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0 8#endif 9 10#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 11 #import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h> 12#else 13 #import "GPBProtocolBuffers_RuntimeSupport.h" 14#endif 15 16#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 17 #import <Protobuf/GPBTimestamp.pbobjc.h> 18#else 19 #import "GPBTimestamp.pbobjc.h" 20#endif 21// @@protoc_insertion_point(imports) 22 23#pragma clang diagnostic push 24#pragma clang diagnostic ignored "-Wdeprecated-declarations" 25 26#pragma mark - GPBTimestampRoot 27 28@implementation GPBTimestampRoot 29 30// No extensions in the file and no imports, so no need to generate 31// +extensionRegistry. 32 33@end 34 35#pragma mark - GPBTimestampRoot_FileDescriptor 36 37static GPBFileDescriptor *GPBTimestampRoot_FileDescriptor(void) { 38 // This is called by +initialize so there is no need to worry 39 // about thread safety of the singleton. 40 static GPBFileDescriptor *descriptor = NULL; 41 if (!descriptor) { 42 GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); 43 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" 44 objcPrefix:@"GPB" 45 syntax:GPBFileSyntaxProto3]; 46 } 47 return descriptor; 48} 49 50#pragma mark - GPBTimestamp 51 52@implementation GPBTimestamp 53 54@dynamic seconds; 55@dynamic nanos; 56 57typedef struct GPBTimestamp__storage_ { 58 uint32_t _has_storage_[1]; 59 int32_t nanos; 60 int64_t seconds; 61} GPBTimestamp__storage_; 62 63// This method is threadsafe because it is initially called 64// in +initialize for each subclass. 65+ (GPBDescriptor *)descriptor { 66 static GPBDescriptor *descriptor = nil; 67 if (!descriptor) { 68 static GPBMessageFieldDescription fields[] = { 69 { 70 .name = "seconds", 71 .dataTypeSpecific.clazz = Nil, 72 .number = GPBTimestamp_FieldNumber_Seconds, 73 .hasIndex = 0, 74 .offset = (uint32_t)offsetof(GPBTimestamp__storage_, seconds), 75 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), 76 .dataType = GPBDataTypeInt64, 77 }, 78 { 79 .name = "nanos", 80 .dataTypeSpecific.clazz = Nil, 81 .number = GPBTimestamp_FieldNumber_Nanos, 82 .hasIndex = 1, 83 .offset = (uint32_t)offsetof(GPBTimestamp__storage_, nanos), 84 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), 85 .dataType = GPBDataTypeInt32, 86 }, 87 }; 88 GPBDescriptor *localDescriptor = 89 [GPBDescriptor allocDescriptorForClass:[GPBTimestamp class] 90 rootClass:[GPBTimestampRoot class] 91 file:GPBTimestampRoot_FileDescriptor() 92 fields:fields 93 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) 94 storageSize:sizeof(GPBTimestamp__storage_) 95 flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; 96 #if defined(DEBUG) && DEBUG 97 NSAssert(descriptor == nil, @"Startup recursed!"); 98 #endif // DEBUG 99 descriptor = localDescriptor; 100 } 101 return descriptor; 102} 103 104@end 105 106 107#pragma clang diagnostic pop 108 109// @@protoc_insertion_point(global_scope) 110