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/timestamp.proto |
| 3 | |
| 4 | #import "GPBProtocolBuffers_RuntimeSupport.h" |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 5 | #import "google/protobuf/Timestamp.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 | |
| 8 | #pragma mark - GPBTimestampRoot |
| 9 | |
| 10 | @implementation GPBTimestampRoot |
| 11 | |
| 12 | @end |
| 13 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 14 | #pragma mark - GPBTimestampRoot_FileDescriptor |
| 15 | |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 16 | static 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 Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 21 | GPBDebugCheckRuntimeVersion(); |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 22 | 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 Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 35 | typedef struct GPBTimestamp__storage_ { |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 36 | uint32_t _has_storage_[1]; |
| 37 | int32_t nanos; |
| 38 | int64_t seconds; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 39 | } GPBTimestamp__storage_; |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 40 | |
| 41 | // This method is threadsafe because it is initially called |
| 42 | // in +initialize for each subclass. |
| 43 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 44 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 45 | if (!descriptor) { |
| 46 | static GPBMessageFieldDescription fields[] = { |
| 47 | { |
| 48 | .name = "seconds", |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 49 | .dataTypeSpecific.className = NULL, |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 50 | .number = GPBTimestamp_FieldNumber_Seconds, |
| 51 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 52 | .offset = (uint32_t)offsetof(GPBTimestamp__storage_, seconds), |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 53 | .flags = GPBFieldOptional, |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 54 | .dataType = GPBDataTypeInt64, |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 55 | }, |
| 56 | { |
| 57 | .name = "nanos", |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 58 | .dataTypeSpecific.className = NULL, |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 59 | .number = GPBTimestamp_FieldNumber_Nanos, |
| 60 | .hasIndex = 1, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 61 | .offset = (uint32_t)offsetof(GPBTimestamp__storage_, nanos), |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 62 | .flags = GPBFieldOptional, |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 63 | .dataType = GPBDataTypeInt32, |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 64 | }, |
| 65 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 66 | GPBDescriptor *localDescriptor = |
| 67 | [GPBDescriptor allocDescriptorForClass:[GPBTimestamp class] |
| 68 | rootClass:[GPBTimestampRoot class] |
| 69 | file:GPBTimestampRoot_FileDescriptor() |
| 70 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 71 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 72 | storageSize:sizeof(GPBTimestamp__storage_) |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 73 | flags:0]; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 74 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 75 | descriptor = localDescriptor; |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 76 | } |
| 77 | return descriptor; |
| 78 | } |
| 79 | |
| 80 | @end |
| 81 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 82 | |
| 83 | // @@protoc_insertion_point(global_scope) |