blob: 927eb941190fe556bea875e9f3e469a830ca7d26 [file] [log] [blame]
Thomas Van Lenten30650d82015-05-01 08:57:16 -04001// Generated by the protocol buffer compiler. DO NOT EDIT!
Thomas Van Lenten7c646282022-09-19 13:19:31 -04002// clang-format off
Thomas Van Lenten672adeb2022-10-06 16:16:07 -04003// source: google/protobuf/timestamp.proto
Thomas Van Lenten7c646282022-09-19 13:19:31 -04004
Thomas Van Lenten020e4e32022-03-01 14:16:50 -05005#import "GPBProtocolBuffers_RuntimeSupport.h"
6#import "GPBTimestamp.pbobjc.h"
Thomas Van Lenten7da023b2016-05-09 13:53:20 -04007
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -04008// @@protoc_insertion_point(imports)
Thomas Van Lenten30650d82015-05-01 08:57:16 -04009
Thomas Van Lentene664aa62016-04-19 13:13:04 -040010#pragma clang diagnostic push
11#pragma clang diagnostic ignored "-Wdeprecated-declarations"
12
Thomas Van Lenten30650d82015-05-01 08:57:16 -040013#pragma mark - GPBTimestampRoot
14
15@implementation GPBTimestampRoot
16
Thomas Van Lenten13a41242016-09-01 11:45:50 -040017// No extensions in the file and no imports, so no need to generate
18// +extensionRegistry.
19
Thomas Van Lenten30650d82015-05-01 08:57:16 -040020@end
21
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040022#pragma mark - GPBTimestampRoot_FileDescriptor
23
Thomas Van Lenten30650d82015-05-01 08:57:16 -040024static GPBFileDescriptor *GPBTimestampRoot_FileDescriptor(void) {
25 // This is called by +initialize so there is no need to worry
26 // about thread safety of the singleton.
27 static GPBFileDescriptor *descriptor = NULL;
28 if (!descriptor) {
Thomas Van Lenten1aa65002016-09-15 13:27:17 -040029 GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
Thomas Van Lenten30650d82015-05-01 08:57:16 -040030 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
Thomas Van Lenten337ec302016-08-16 11:26:49 -040031 objcPrefix:@"GPB"
Thomas Van Lenten30650d82015-05-01 08:57:16 -040032 syntax:GPBFileSyntaxProto3];
33 }
34 return descriptor;
35}
36
37#pragma mark - GPBTimestamp
38
39@implementation GPBTimestamp
40
41@dynamic seconds;
42@dynamic nanos;
43
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040044typedef struct GPBTimestamp__storage_ {
Thomas Van Lenten30650d82015-05-01 08:57:16 -040045 uint32_t _has_storage_[1];
46 int32_t nanos;
47 int64_t seconds;
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040048} GPBTimestamp__storage_;
Thomas Van Lenten30650d82015-05-01 08:57:16 -040049
50// This method is threadsafe because it is initially called
51// in +initialize for each subclass.
52+ (GPBDescriptor *)descriptor {
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040053 static GPBDescriptor *descriptor = nil;
Thomas Van Lenten30650d82015-05-01 08:57:16 -040054 if (!descriptor) {
55 static GPBMessageFieldDescription fields[] = {
56 {
57 .name = "seconds",
Dave MacLachlan74956e12019-12-17 17:32:09 -080058 .dataTypeSpecific.clazz = Nil,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040059 .number = GPBTimestamp_FieldNumber_Seconds,
60 .hasIndex = 0,
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040061 .offset = (uint32_t)offsetof(GPBTimestamp__storage_, seconds),
Thomas Van Lentenb0e27922020-04-13 13:36:56 -040062 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040063 .dataType = GPBDataTypeInt64,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040064 },
65 {
66 .name = "nanos",
Dave MacLachlan74956e12019-12-17 17:32:09 -080067 .dataTypeSpecific.clazz = Nil,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040068 .number = GPBTimestamp_FieldNumber_Nanos,
69 .hasIndex = 1,
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040070 .offset = (uint32_t)offsetof(GPBTimestamp__storage_, nanos),
Thomas Van Lentenb0e27922020-04-13 13:36:56 -040071 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040072 .dataType = GPBDataTypeInt32,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040073 },
74 };
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040075 GPBDescriptor *localDescriptor =
76 [GPBDescriptor allocDescriptorForClass:[GPBTimestamp class]
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040077 file:GPBTimestampRoot_FileDescriptor()
78 fields:fields
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040079 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040080 storageSize:sizeof(GPBTimestamp__storage_)
Protobuf Team Bot4a122472022-11-15 11:22:51 -080081 flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
Dave MacLachlanb6311762018-12-11 16:32:48 -080082 #if defined(DEBUG) && DEBUG
83 NSAssert(descriptor == nil, @"Startup recursed!");
84 #endif // DEBUG
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040085 descriptor = localDescriptor;
Thomas Van Lenten30650d82015-05-01 08:57:16 -040086 }
87 return descriptor;
88}
89
90@end
91
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040092
Thomas Van Lentene664aa62016-04-19 13:13:04 -040093#pragma clang diagnostic pop
94
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040095// @@protoc_insertion_point(global_scope)
Thomas Van Lenten7c646282022-09-19 13:19:31 -040096
Thomas Van Lenten672adeb2022-10-06 16:16:07 -040097// clang-format on