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