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 | |
Protobuf Team Bot | e4d70bb | 2023-02-08 10:17:46 -0800 | [diff] [blame] | 8 | #if GOOGLE_PROTOBUF_OBJC_VERSION < 30007 |
| 9 | #error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources. |
| 10 | #endif |
| 11 | #if 30007 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION |
| 12 | #error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources. |
| 13 | #endif |
| 14 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 15 | // @@protoc_insertion_point(imports) |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 16 | |
Thomas Van Lenten | e664aa6 | 2016-04-19 13:13:04 -0400 | [diff] [blame] | 17 | #pragma clang diagnostic push |
| 18 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" |
Protobuf Team Bot | bf7de74 | 2023-02-02 11:29:54 -0800 | [diff] [blame] | 19 | #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" |
| 20 | |
Protobuf Team Bot | aeae430 | 2023-02-09 07:43:26 -0800 | [diff] [blame] | 21 | #pragma mark - Objective-C Class declarations |
| 22 | // Forward declarations of Objective-C classes that we can use as |
Protobuf Team Bot | bf7de74 | 2023-02-02 11:29:54 -0800 | [diff] [blame] | 23 | // static values in struct initializers. |
| 24 | // We don't use [Foo class] because it is not a static value. |
| 25 | GPBObjCClassDeclaration(GPBTimestamp); |
Thomas Van Lenten | e664aa6 | 2016-04-19 13:13:04 -0400 | [diff] [blame] | 26 | |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 27 | #pragma mark - GPBTimestampRoot |
| 28 | |
| 29 | @implementation GPBTimestampRoot |
| 30 | |
Thomas Van Lenten | 740d314 | 2023-08-14 10:04:53 -0700 | [diff] [blame] | 31 | // No extensions in the file and no imports or none of the imports (direct or |
| 32 | // indirect) defined extensions, so no need to generate +extensionRegistry. |
Thomas Van Lenten | 13a4124 | 2016-09-01 11:45:50 -0400 | [diff] [blame] | 33 | |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 34 | @end |
| 35 | |
Protobuf Team Bot | 4ed02cc | 2023-02-08 06:31:58 -0800 | [diff] [blame] | 36 | static GPBFileDescription GPBTimestampRoot_FileDescription = { |
| 37 | .package = "google.protobuf", |
| 38 | .prefix = "GPB", |
| 39 | .syntax = GPBFileSyntaxProto3 |
| 40 | }; |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 41 | |
| 42 | #pragma mark - GPBTimestamp |
| 43 | |
| 44 | @implementation GPBTimestamp |
| 45 | |
| 46 | @dynamic seconds; |
| 47 | @dynamic nanos; |
| 48 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 49 | typedef struct GPBTimestamp__storage_ { |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 50 | uint32_t _has_storage_[1]; |
| 51 | int32_t nanos; |
| 52 | int64_t seconds; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 53 | } GPBTimestamp__storage_; |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 54 | |
| 55 | // This method is threadsafe because it is initially called |
| 56 | // in +initialize for each subclass. |
| 57 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 58 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 59 | if (!descriptor) { |
Protobuf Team Bot | 78376c3 | 2023-01-31 11:29:07 -0800 | [diff] [blame] | 60 | GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 61 | static GPBMessageFieldDescription fields[] = { |
| 62 | { |
| 63 | .name = "seconds", |
Dave MacLachlan | 74956e1 | 2019-12-17 17:32:09 -0800 | [diff] [blame] | 64 | .dataTypeSpecific.clazz = Nil, |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 65 | .number = GPBTimestamp_FieldNumber_Seconds, |
| 66 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 67 | .offset = (uint32_t)offsetof(GPBTimestamp__storage_, seconds), |
Thomas Van Lenten | b0e2792 | 2020-04-13 13:36:56 -0400 | [diff] [blame] | 68 | .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 69 | .dataType = GPBDataTypeInt64, |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 70 | }, |
| 71 | { |
| 72 | .name = "nanos", |
Dave MacLachlan | 74956e1 | 2019-12-17 17:32:09 -0800 | [diff] [blame] | 73 | .dataTypeSpecific.clazz = Nil, |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 74 | .number = GPBTimestamp_FieldNumber_Nanos, |
| 75 | .hasIndex = 1, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 76 | .offset = (uint32_t)offsetof(GPBTimestamp__storage_, nanos), |
Thomas Van Lenten | b0e2792 | 2020-04-13 13:36:56 -0400 | [diff] [blame] | 77 | .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 78 | .dataType = GPBDataTypeInt32, |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 79 | }, |
| 80 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 81 | GPBDescriptor *localDescriptor = |
Protobuf Team Bot | bf7de74 | 2023-02-02 11:29:54 -0800 | [diff] [blame] | 82 | [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBTimestamp) |
Protobuf Team Bot | 4ed02cc | 2023-02-08 06:31:58 -0800 | [diff] [blame] | 83 | messageName:@"Timestamp" |
| 84 | fileDescription:&GPBTimestampRoot_FileDescription |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 85 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 86 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 87 | storageSize:sizeof(GPBTimestamp__storage_) |
Protobuf Team Bot | 4a12247 | 2022-11-15 11:22:51 -0800 | [diff] [blame] | 88 | flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)]; |
Thomas Van Lenten | 6c4ab10 | 2023-07-11 07:49:55 -0700 | [diff] [blame] | 89 | #if defined(DEBUG) && DEBUG |
Dave MacLachlan | b631176 | 2018-12-11 16:32:48 -0800 | [diff] [blame] | 90 | NSAssert(descriptor == nil, @"Startup recursed!"); |
Thomas Van Lenten | 6c4ab10 | 2023-07-11 07:49:55 -0700 | [diff] [blame] | 91 | #endif // DEBUG |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 92 | descriptor = localDescriptor; |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 93 | } |
| 94 | return descriptor; |
| 95 | } |
| 96 | |
| 97 | @end |
| 98 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 99 | |
Thomas Van Lenten | e664aa6 | 2016-04-19 13:13:04 -0400 | [diff] [blame] | 100 | #pragma clang diagnostic pop |
| 101 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 102 | // @@protoc_insertion_point(global_scope) |
Thomas Van Lenten | 7c64628 | 2022-09-19 13:19:31 -0400 | [diff] [blame] | 103 | |
Thomas Van Lenten | 672adeb | 2022-10-06 16:16:07 -0400 | [diff] [blame] | 104 | // clang-format on |