blob: 450d131b6c72556e1c3d4159a3c62de9ffb8deb5 [file] [log] [blame]
Thomas Van Lenten30650d82015-05-01 08:57:16 -04001// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: google/protobuf/timestamp.proto
3
Thomas Van Lenten7da023b2016-05-09 13:53:20 -04004// 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
Thomas Van Lenten56c48ae2020-01-22 15:50:52 -050011 #import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h>
Thomas Van Lenten7da023b2016-05-09 13:53:20 -040012#else
13 #import "GPBProtocolBuffers_RuntimeSupport.h"
14#endif
15
16#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
Thomas Van Lenten56c48ae2020-01-22 15:50:52 -050017 #import <Protobuf/GPBTimestamp.pbobjc.h>
Thomas Van Lenten7da023b2016-05-09 13:53:20 -040018#else
Thomas Van Lenten56c48ae2020-01-22 15:50:52 -050019 #import "GPBTimestamp.pbobjc.h"
Thomas Van Lenten7da023b2016-05-09 13:53:20 -040020#endif
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040021// @@protoc_insertion_point(imports)
Thomas Van Lenten30650d82015-05-01 08:57:16 -040022
Thomas Van Lentene664aa62016-04-19 13:13:04 -040023#pragma clang diagnostic push
24#pragma clang diagnostic ignored "-Wdeprecated-declarations"
25
Thomas Van Lenten30650d82015-05-01 08:57:16 -040026#pragma mark - GPBTimestampRoot
27
28@implementation GPBTimestampRoot
29
Thomas Van Lenten13a41242016-09-01 11:45:50 -040030// No extensions in the file and no imports, so no need to generate
31// +extensionRegistry.
32
Thomas Van Lenten30650d82015-05-01 08:57:16 -040033@end
34
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040035#pragma mark - GPBTimestampRoot_FileDescriptor
36
Thomas Van Lenten30650d82015-05-01 08:57:16 -040037static 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) {
Thomas Van Lenten1aa65002016-09-15 13:27:17 -040042 GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
Thomas Van Lenten30650d82015-05-01 08:57:16 -040043 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
Thomas Van Lenten337ec302016-08-16 11:26:49 -040044 objcPrefix:@"GPB"
Thomas Van Lenten30650d82015-05-01 08:57:16 -040045 syntax:GPBFileSyntaxProto3];
46 }
47 return descriptor;
48}
49
50#pragma mark - GPBTimestamp
51
52@implementation GPBTimestamp
53
54@dynamic seconds;
55@dynamic nanos;
56
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040057typedef struct GPBTimestamp__storage_ {
Thomas Van Lenten30650d82015-05-01 08:57:16 -040058 uint32_t _has_storage_[1];
59 int32_t nanos;
60 int64_t seconds;
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040061} GPBTimestamp__storage_;
Thomas Van Lenten30650d82015-05-01 08:57:16 -040062
63// This method is threadsafe because it is initially called
64// in +initialize for each subclass.
65+ (GPBDescriptor *)descriptor {
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040066 static GPBDescriptor *descriptor = nil;
Thomas Van Lenten30650d82015-05-01 08:57:16 -040067 if (!descriptor) {
68 static GPBMessageFieldDescription fields[] = {
69 {
70 .name = "seconds",
Dave MacLachlan74956e12019-12-17 17:32:09 -080071 .dataTypeSpecific.clazz = Nil,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040072 .number = GPBTimestamp_FieldNumber_Seconds,
73 .hasIndex = 0,
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040074 .offset = (uint32_t)offsetof(GPBTimestamp__storage_, seconds),
Thomas Van Lenten30650d82015-05-01 08:57:16 -040075 .flags = GPBFieldOptional,
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040076 .dataType = GPBDataTypeInt64,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040077 },
78 {
79 .name = "nanos",
Dave MacLachlan74956e12019-12-17 17:32:09 -080080 .dataTypeSpecific.clazz = Nil,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040081 .number = GPBTimestamp_FieldNumber_Nanos,
82 .hasIndex = 1,
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040083 .offset = (uint32_t)offsetof(GPBTimestamp__storage_, nanos),
Thomas Van Lenten30650d82015-05-01 08:57:16 -040084 .flags = GPBFieldOptional,
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040085 .dataType = GPBDataTypeInt32,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040086 },
87 };
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040088 GPBDescriptor *localDescriptor =
89 [GPBDescriptor allocDescriptorForClass:[GPBTimestamp class]
90 rootClass:[GPBTimestampRoot class]
91 file:GPBTimestampRoot_FileDescriptor()
92 fields:fields
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040093 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040094 storageSize:sizeof(GPBTimestamp__storage_)
Dave MacLachlan74956e12019-12-17 17:32:09 -080095 flags:GPBDescriptorInitializationFlag_UsesClassRefs];
Dave MacLachlanb6311762018-12-11 16:32:48 -080096 #if defined(DEBUG) && DEBUG
97 NSAssert(descriptor == nil, @"Startup recursed!");
98 #endif // DEBUG
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040099 descriptor = localDescriptor;
Thomas Van Lenten30650d82015-05-01 08:57:16 -0400100 }
101 return descriptor;
102}
103
104@end
105
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -0400106
Thomas Van Lentene664aa62016-04-19 13:13:04 -0400107#pragma clang diagnostic pop
108
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -0400109// @@protoc_insertion_point(global_scope)