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