blob: 7dd6b64a7b150c0c26343149c0f84448b7e3a1f5 [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/duration.proto
3
4#import "GPBProtocolBuffers_RuntimeSupport.h"
Thomas Van Lenten30650d82015-05-01 08:57:16 -04005#import "google/protobuf/Duration.pbobjc.h"
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -04006// @@protoc_insertion_point(imports)
Thomas Van Lenten30650d82015-05-01 08:57:16 -04007
Thomas Van Lentene664aa62016-04-19 13:13:04 -04008#pragma clang diagnostic push
9#pragma clang diagnostic ignored "-Wdeprecated-declarations"
10
Thomas Van Lenten30650d82015-05-01 08:57:16 -040011#pragma mark - GPBDurationRoot
12
13@implementation GPBDurationRoot
14
15@end
16
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040017#pragma mark - GPBDurationRoot_FileDescriptor
18
Thomas Van Lenten30650d82015-05-01 08:57:16 -040019static GPBFileDescriptor *GPBDurationRoot_FileDescriptor(void) {
20 // This is called by +initialize so there is no need to worry
21 // about thread safety of the singleton.
22 static GPBFileDescriptor *descriptor = NULL;
23 if (!descriptor) {
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040024 GPBDebugCheckRuntimeVersion();
Thomas Van Lenten30650d82015-05-01 08:57:16 -040025 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
26 syntax:GPBFileSyntaxProto3];
27 }
28 return descriptor;
29}
30
31#pragma mark - GPBDuration
32
33@implementation GPBDuration
34
35@dynamic seconds;
36@dynamic nanos;
37
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040038typedef struct GPBDuration__storage_ {
Thomas Van Lenten30650d82015-05-01 08:57:16 -040039 uint32_t _has_storage_[1];
40 int32_t nanos;
41 int64_t seconds;
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040042} GPBDuration__storage_;
Thomas Van Lenten30650d82015-05-01 08:57:16 -040043
44// This method is threadsafe because it is initially called
45// in +initialize for each subclass.
46+ (GPBDescriptor *)descriptor {
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040047 static GPBDescriptor *descriptor = nil;
Thomas Van Lenten30650d82015-05-01 08:57:16 -040048 if (!descriptor) {
49 static GPBMessageFieldDescription fields[] = {
50 {
51 .name = "seconds",
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040052 .dataTypeSpecific.className = NULL,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040053 .number = GPBDuration_FieldNumber_Seconds,
54 .hasIndex = 0,
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040055 .offset = (uint32_t)offsetof(GPBDuration__storage_, seconds),
Thomas Van Lenten30650d82015-05-01 08:57:16 -040056 .flags = GPBFieldOptional,
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040057 .dataType = GPBDataTypeInt64,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040058 },
59 {
60 .name = "nanos",
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040061 .dataTypeSpecific.className = NULL,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040062 .number = GPBDuration_FieldNumber_Nanos,
63 .hasIndex = 1,
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040064 .offset = (uint32_t)offsetof(GPBDuration__storage_, nanos),
Thomas Van Lenten30650d82015-05-01 08:57:16 -040065 .flags = GPBFieldOptional,
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040066 .dataType = GPBDataTypeInt32,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040067 },
68 };
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040069 GPBDescriptor *localDescriptor =
70 [GPBDescriptor allocDescriptorForClass:[GPBDuration class]
71 rootClass:[GPBDurationRoot class]
72 file:GPBDurationRoot_FileDescriptor()
73 fields:fields
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040074 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040075 storageSize:sizeof(GPBDuration__storage_)
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040076 flags:0];
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040077 NSAssert(descriptor == nil, @"Startup recursed!");
78 descriptor = localDescriptor;
Thomas Van Lenten30650d82015-05-01 08:57:16 -040079 }
80 return descriptor;
81}
82
83@end
84
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040085
Thomas Van Lentene664aa62016-04-19 13:13:04 -040086#pragma clang diagnostic pop
87
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040088// @@protoc_insertion_point(global_scope)