Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
Thomas Van Lenten | 7c64628 | 2022-09-19 13:19:31 -0400 | [diff] [blame] | 2 | // clang-format off |
Thomas Van Lenten | 672adeb | 2022-10-06 16:16:07 -0400 | [diff] [blame] | 3 | // source: google/protobuf/timestamp.proto |
Thomas Van Lenten | 7c64628 | 2022-09-19 13:19:31 -0400 | [diff] [blame] | 4 | |
Thomas Van Lenten | 020e4e3 | 2022-03-01 14:16:50 -0500 | [diff] [blame] | 5 | #import "GPBProtocolBuffers_RuntimeSupport.h" |
| 6 | #import "GPBTimestamp.pbobjc.h" |
Thomas Van Lenten | 7da023b | 2016-05-09 13:53:20 -0400 | [diff] [blame] | 7 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 8 | // @@protoc_insertion_point(imports) |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 9 | |
Thomas Van Lenten | e664aa6 | 2016-04-19 13:13:04 -0400 | [diff] [blame] | 10 | #pragma clang diagnostic push |
| 11 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" |
| 12 | |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 13 | #pragma mark - GPBTimestampRoot |
| 14 | |
| 15 | @implementation GPBTimestampRoot |
| 16 | |
Thomas Van Lenten | 13a4124 | 2016-09-01 11:45:50 -0400 | [diff] [blame] | 17 | // No extensions in the file and no imports, so no need to generate |
| 18 | // +extensionRegistry. |
| 19 | |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 20 | @end |
| 21 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 22 | #pragma mark - GPBTimestampRoot_FileDescriptor |
| 23 | |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 24 | static 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 Lenten | 1aa6500 | 2016-09-15 13:27:17 -0400 | [diff] [blame] | 29 | GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 30 | descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" |
Thomas Van Lenten | 337ec30 | 2016-08-16 11:26:49 -0400 | [diff] [blame] | 31 | objcPrefix:@"GPB" |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 32 | 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 Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 44 | typedef struct GPBTimestamp__storage_ { |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 45 | uint32_t _has_storage_[1]; |
| 46 | int32_t nanos; |
| 47 | int64_t seconds; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 48 | } GPBTimestamp__storage_; |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 49 | |
| 50 | // This method is threadsafe because it is initially called |
| 51 | // in +initialize for each subclass. |
| 52 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 53 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 54 | if (!descriptor) { |
| 55 | static GPBMessageFieldDescription fields[] = { |
| 56 | { |
| 57 | .name = "seconds", |
Dave MacLachlan | 74956e1 | 2019-12-17 17:32:09 -0800 | [diff] [blame] | 58 | .dataTypeSpecific.clazz = Nil, |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 59 | .number = GPBTimestamp_FieldNumber_Seconds, |
| 60 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 61 | .offset = (uint32_t)offsetof(GPBTimestamp__storage_, seconds), |
Thomas Van Lenten | b0e2792 | 2020-04-13 13:36:56 -0400 | [diff] [blame] | 62 | .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 63 | .dataType = GPBDataTypeInt64, |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 64 | }, |
| 65 | { |
| 66 | .name = "nanos", |
Dave MacLachlan | 74956e1 | 2019-12-17 17:32:09 -0800 | [diff] [blame] | 67 | .dataTypeSpecific.clazz = Nil, |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 68 | .number = GPBTimestamp_FieldNumber_Nanos, |
| 69 | .hasIndex = 1, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 70 | .offset = (uint32_t)offsetof(GPBTimestamp__storage_, nanos), |
Thomas Van Lenten | b0e2792 | 2020-04-13 13:36:56 -0400 | [diff] [blame] | 71 | .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 72 | .dataType = GPBDataTypeInt32, |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 73 | }, |
| 74 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 75 | GPBDescriptor *localDescriptor = |
| 76 | [GPBDescriptor allocDescriptorForClass:[GPBTimestamp class] |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 77 | file:GPBTimestampRoot_FileDescriptor() |
| 78 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 79 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 80 | storageSize:sizeof(GPBTimestamp__storage_) |
Protobuf Team Bot | 4a12247 | 2022-11-15 11:22:51 -0800 | [diff] [blame] | 81 | flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)]; |
Dave MacLachlan | b631176 | 2018-12-11 16:32:48 -0800 | [diff] [blame] | 82 | #if defined(DEBUG) && DEBUG |
| 83 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 84 | #endif // DEBUG |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 85 | descriptor = localDescriptor; |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 86 | } |
| 87 | return descriptor; |
| 88 | } |
| 89 | |
| 90 | @end |
| 91 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 92 | |
Thomas Van Lenten | e664aa6 | 2016-04-19 13:13:04 -0400 | [diff] [blame] | 93 | #pragma clang diagnostic pop |
| 94 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 95 | // @@protoc_insertion_point(global_scope) |
Thomas Van Lenten | 7c64628 | 2022-09-19 13:19:31 -0400 | [diff] [blame] | 96 | |
Thomas Van Lenten | 672adeb | 2022-10-06 16:16:07 -0400 | [diff] [blame] | 97 | // clang-format on |