blob: f2b44fdef81dafde211ae435834aad00aa0de919 [file] [log] [blame]
Thomas Van Lenten30650d82015-05-01 08:57:16 -04001// Generated by the protocol buffer compiler. DO NOT EDIT!
Thomas Van Lenten7c646282022-09-19 13:19:31 -04002// clang-format off
Thomas Van Lenten672adeb2022-10-06 16:16:07 -04003// source: google/protobuf/timestamp.proto
Thomas Van Lenten7c646282022-09-19 13:19:31 -04004
Thomas Van Lenten020e4e32022-03-01 14:16:50 -05005#import "GPBProtocolBuffers_RuntimeSupport.h"
6#import "GPBTimestamp.pbobjc.h"
Thomas Van Lenten7da023b2016-05-09 13:53:20 -04007
Protobuf Team Bote4d70bb2023-02-08 10:17:46 -08008#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 Lenten1dcc3292015-05-21 17:14:52 -040015// @@protoc_insertion_point(imports)
Thomas Van Lenten30650d82015-05-01 08:57:16 -040016
Thomas Van Lentene664aa62016-04-19 13:13:04 -040017#pragma clang diagnostic push
18#pragma clang diagnostic ignored "-Wdeprecated-declarations"
Protobuf Team Botbf7de742023-02-02 11:29:54 -080019#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
20
Protobuf Team Botaeae4302023-02-09 07:43:26 -080021#pragma mark - Objective-C Class declarations
22// Forward declarations of Objective-C classes that we can use as
Protobuf Team Botbf7de742023-02-02 11:29:54 -080023// static values in struct initializers.
24// We don't use [Foo class] because it is not a static value.
25GPBObjCClassDeclaration(GPBTimestamp);
Thomas Van Lentene664aa62016-04-19 13:13:04 -040026
Thomas Van Lenten30650d82015-05-01 08:57:16 -040027#pragma mark - GPBTimestampRoot
28
29@implementation GPBTimestampRoot
30
Thomas Van Lenten740d3142023-08-14 10:04:53 -070031// 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 Lenten13a41242016-09-01 11:45:50 -040033
Thomas Van Lenten30650d82015-05-01 08:57:16 -040034@end
35
Protobuf Team Bot4ed02cc2023-02-08 06:31:58 -080036static GPBFileDescription GPBTimestampRoot_FileDescription = {
37 .package = "google.protobuf",
38 .prefix = "GPB",
39 .syntax = GPBFileSyntaxProto3
40};
Thomas Van Lenten30650d82015-05-01 08:57:16 -040041
42#pragma mark - GPBTimestamp
43
44@implementation GPBTimestamp
45
46@dynamic seconds;
47@dynamic nanos;
48
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040049typedef struct GPBTimestamp__storage_ {
Thomas Van Lenten30650d82015-05-01 08:57:16 -040050 uint32_t _has_storage_[1];
51 int32_t nanos;
52 int64_t seconds;
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040053} GPBTimestamp__storage_;
Thomas Van Lenten30650d82015-05-01 08:57:16 -040054
55// This method is threadsafe because it is initially called
56// in +initialize for each subclass.
57+ (GPBDescriptor *)descriptor {
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040058 static GPBDescriptor *descriptor = nil;
Thomas Van Lenten30650d82015-05-01 08:57:16 -040059 if (!descriptor) {
Protobuf Team Bot78376c32023-01-31 11:29:07 -080060 GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
Thomas Van Lenten30650d82015-05-01 08:57:16 -040061 static GPBMessageFieldDescription fields[] = {
62 {
63 .name = "seconds",
Dave MacLachlan74956e12019-12-17 17:32:09 -080064 .dataTypeSpecific.clazz = Nil,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040065 .number = GPBTimestamp_FieldNumber_Seconds,
66 .hasIndex = 0,
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040067 .offset = (uint32_t)offsetof(GPBTimestamp__storage_, seconds),
Thomas Van Lentenb0e27922020-04-13 13:36:56 -040068 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040069 .dataType = GPBDataTypeInt64,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040070 },
71 {
72 .name = "nanos",
Dave MacLachlan74956e12019-12-17 17:32:09 -080073 .dataTypeSpecific.clazz = Nil,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040074 .number = GPBTimestamp_FieldNumber_Nanos,
75 .hasIndex = 1,
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040076 .offset = (uint32_t)offsetof(GPBTimestamp__storage_, nanos),
Thomas Van Lentenb0e27922020-04-13 13:36:56 -040077 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040078 .dataType = GPBDataTypeInt32,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040079 },
80 };
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040081 GPBDescriptor *localDescriptor =
Protobuf Team Botbf7de742023-02-02 11:29:54 -080082 [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBTimestamp)
Protobuf Team Bot4ed02cc2023-02-08 06:31:58 -080083 messageName:@"Timestamp"
84 fileDescription:&GPBTimestampRoot_FileDescription
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040085 fields:fields
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040086 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040087 storageSize:sizeof(GPBTimestamp__storage_)
Protobuf Team Bot4a122472022-11-15 11:22:51 -080088 flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
Thomas Van Lenten6c4ab102023-07-11 07:49:55 -070089 #if defined(DEBUG) && DEBUG
Dave MacLachlanb6311762018-12-11 16:32:48 -080090 NSAssert(descriptor == nil, @"Startup recursed!");
Thomas Van Lenten6c4ab102023-07-11 07:49:55 -070091 #endif // DEBUG
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040092 descriptor = localDescriptor;
Thomas Van Lenten30650d82015-05-01 08:57:16 -040093 }
94 return descriptor;
95}
96
97@end
98
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040099
Thomas Van Lentene664aa62016-04-19 13:13:04 -0400100#pragma clang diagnostic pop
101
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -0400102// @@protoc_insertion_point(global_scope)
Thomas Van Lenten7c646282022-09-19 13:19:31 -0400103
Thomas Van Lenten672adeb2022-10-06 16:16:07 -0400104// clang-format on