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/Timestamp.pbobjc.h> 18#else 19 #import "google/protobuf/Timestamp.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@end 31 32#pragma mark - GPBTimestampRoot_FileDescriptor 33 34static GPBFileDescriptor *GPBTimestampRoot_FileDescriptor(void) { 35 // This is called by +initialize so there is no need to worry 36 // about thread safety of the singleton. 37 static GPBFileDescriptor *descriptor = NULL; 38 if (!descriptor) { 39 GPBDebugCheckRuntimeVersion(); 40 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" 41 syntax:GPBFileSyntaxProto3]; 42 } 43 return descriptor; 44} 45 46#pragma mark - GPBTimestamp 47 48@implementation GPBTimestamp 49 50@dynamic seconds; 51@dynamic nanos; 52 53typedef struct GPBTimestamp__storage_ { 54 uint32_t _has_storage_[1]; 55 int32_t nanos; 56 int64_t seconds; 57} GPBTimestamp__storage_; 58 59// This method is threadsafe because it is initially called 60// in +initialize for each subclass. 61+ (GPBDescriptor *)descriptor { 62 static GPBDescriptor *descriptor = nil; 63 if (!descriptor) { 64 static GPBMessageFieldDescription fields[] = { 65 { 66 .name = "seconds", 67 .dataTypeSpecific.className = NULL, 68 .number = GPBTimestamp_FieldNumber_Seconds, 69 .hasIndex = 0, 70 .offset = (uint32_t)offsetof(GPBTimestamp__storage_, seconds), 71 .flags = GPBFieldOptional, 72 .dataType = GPBDataTypeInt64, 73 }, 74 { 75 .name = "nanos", 76 .dataTypeSpecific.className = NULL, 77 .number = GPBTimestamp_FieldNumber_Nanos, 78 .hasIndex = 1, 79 .offset = (uint32_t)offsetof(GPBTimestamp__storage_, nanos), 80 .flags = GPBFieldOptional, 81 .dataType = GPBDataTypeInt32, 82 }, 83 }; 84 GPBDescriptor *localDescriptor = 85 [GPBDescriptor allocDescriptorForClass:[GPBTimestamp class] 86 rootClass:[GPBTimestampRoot class] 87 file:GPBTimestampRoot_FileDescriptor() 88 fields:fields 89 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) 90 storageSize:sizeof(GPBTimestamp__storage_) 91 flags:0]; 92 NSAssert(descriptor == nil, @"Startup recursed!"); 93 descriptor = localDescriptor; 94 } 95 return descriptor; 96} 97 98@end 99 100 101#pragma clang diagnostic pop 102 103// @@protoc_insertion_point(global_scope) 104