blob: 14161159dcef215c4affaafe21e6a83e59d19a26 [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
4#import "GPBProtocolBuffers_RuntimeSupport.h"
Thomas Van Lenten30650d82015-05-01 08:57:16 -04005#import "google/protobuf/Timestamp.pbobjc.h"
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -04006// @@protoc_insertion_point(imports)
Thomas Van Lenten30650d82015-05-01 08:57:16 -04007
8#pragma mark - GPBTimestampRoot
9
10@implementation GPBTimestampRoot
11
12@end
13
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040014#pragma mark - GPBTimestampRoot_FileDescriptor
15
Thomas Van Lenten30650d82015-05-01 08:57:16 -040016static GPBFileDescriptor *GPBTimestampRoot_FileDescriptor(void) {
17 // This is called by +initialize so there is no need to worry
18 // about thread safety of the singleton.
19 static GPBFileDescriptor *descriptor = NULL;
20 if (!descriptor) {
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040021 GPBDebugCheckRuntimeVersion();
Thomas Van Lenten30650d82015-05-01 08:57:16 -040022 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
23 syntax:GPBFileSyntaxProto3];
24 }
25 return descriptor;
26}
27
28#pragma mark - GPBTimestamp
29
30@implementation GPBTimestamp
31
32@dynamic seconds;
33@dynamic nanos;
34
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040035typedef struct GPBTimestamp__storage_ {
Thomas Van Lenten30650d82015-05-01 08:57:16 -040036 uint32_t _has_storage_[1];
37 int32_t nanos;
38 int64_t seconds;
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040039} GPBTimestamp__storage_;
Thomas Van Lenten30650d82015-05-01 08:57:16 -040040
41// This method is threadsafe because it is initially called
42// in +initialize for each subclass.
43+ (GPBDescriptor *)descriptor {
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040044 static GPBDescriptor *descriptor = nil;
Thomas Van Lenten30650d82015-05-01 08:57:16 -040045 if (!descriptor) {
46 static GPBMessageFieldDescription fields[] = {
47 {
48 .name = "seconds",
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040049 .dataTypeSpecific.className = NULL,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040050 .number = GPBTimestamp_FieldNumber_Seconds,
51 .hasIndex = 0,
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040052 .offset = (uint32_t)offsetof(GPBTimestamp__storage_, seconds),
Thomas Van Lenten30650d82015-05-01 08:57:16 -040053 .flags = GPBFieldOptional,
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040054 .dataType = GPBDataTypeInt64,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040055 },
56 {
57 .name = "nanos",
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040058 .dataTypeSpecific.className = NULL,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040059 .number = GPBTimestamp_FieldNumber_Nanos,
60 .hasIndex = 1,
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040061 .offset = (uint32_t)offsetof(GPBTimestamp__storage_, nanos),
Thomas Van Lenten30650d82015-05-01 08:57:16 -040062 .flags = GPBFieldOptional,
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040063 .dataType = GPBDataTypeInt32,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040064 },
65 };
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040066 GPBDescriptor *localDescriptor =
67 [GPBDescriptor allocDescriptorForClass:[GPBTimestamp class]
68 rootClass:[GPBTimestampRoot class]
69 file:GPBTimestampRoot_FileDescriptor()
70 fields:fields
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040071 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040072 storageSize:sizeof(GPBTimestamp__storage_)
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040073 flags:0];
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040074 NSAssert(descriptor == nil, @"Startup recursed!");
75 descriptor = localDescriptor;
Thomas Van Lenten30650d82015-05-01 08:57:16 -040076 }
77 return descriptor;
78}
79
80@end
81
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040082
83// @@protoc_insertion_point(global_scope)