Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | // source: google/protobuf/duration.proto |
| 3 | |
| 4 | #import "GPBProtocolBuffers_RuntimeSupport.h" |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 5 | #import "google/protobuf/Duration.pbobjc.h" |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 6 | // @@protoc_insertion_point(imports) |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 7 | |
Thomas Van Lenten | e664aa6 | 2016-04-19 13:13:04 -0400 | [diff] [blame] | 8 | #pragma clang diagnostic push |
| 9 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" |
| 10 | |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 11 | #pragma mark - GPBDurationRoot |
| 12 | |
| 13 | @implementation GPBDurationRoot |
| 14 | |
| 15 | @end |
| 16 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 17 | #pragma mark - GPBDurationRoot_FileDescriptor |
| 18 | |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 19 | static 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 Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 24 | GPBDebugCheckRuntimeVersion(); |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 25 | 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 Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 38 | typedef struct GPBDuration__storage_ { |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 39 | uint32_t _has_storage_[1]; |
| 40 | int32_t nanos; |
| 41 | int64_t seconds; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 42 | } GPBDuration__storage_; |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 43 | |
| 44 | // This method is threadsafe because it is initially called |
| 45 | // in +initialize for each subclass. |
| 46 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 47 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 48 | if (!descriptor) { |
| 49 | static GPBMessageFieldDescription fields[] = { |
| 50 | { |
| 51 | .name = "seconds", |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 52 | .dataTypeSpecific.className = NULL, |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 53 | .number = GPBDuration_FieldNumber_Seconds, |
| 54 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 55 | .offset = (uint32_t)offsetof(GPBDuration__storage_, seconds), |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 56 | .flags = GPBFieldOptional, |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 57 | .dataType = GPBDataTypeInt64, |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 58 | }, |
| 59 | { |
| 60 | .name = "nanos", |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 61 | .dataTypeSpecific.className = NULL, |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 62 | .number = GPBDuration_FieldNumber_Nanos, |
| 63 | .hasIndex = 1, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 64 | .offset = (uint32_t)offsetof(GPBDuration__storage_, nanos), |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 65 | .flags = GPBFieldOptional, |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 66 | .dataType = GPBDataTypeInt32, |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 67 | }, |
| 68 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 69 | GPBDescriptor *localDescriptor = |
| 70 | [GPBDescriptor allocDescriptorForClass:[GPBDuration class] |
| 71 | rootClass:[GPBDurationRoot class] |
| 72 | file:GPBDurationRoot_FileDescriptor() |
| 73 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 74 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 75 | storageSize:sizeof(GPBDuration__storage_) |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 76 | flags:0]; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 77 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 78 | descriptor = localDescriptor; |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 79 | } |
| 80 | return descriptor; |
| 81 | } |
| 82 | |
| 83 | @end |
| 84 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 85 | |
Thomas Van Lenten | e664aa6 | 2016-04-19 13:13:04 -0400 | [diff] [blame] | 86 | #pragma clang diagnostic pop |
| 87 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 88 | // @@protoc_insertion_point(global_scope) |