blob: 93e9fbbb4163371ea85634617647d2d0e7dab426 [file] [log] [blame]
Thomas Van Lenten30650d82015-05-01 08:57:16 -04001// Generated by the protocol buffer compiler. DO NOT EDIT!
Protobuf Team Bot37b2e3c2024-04-15 14:34:06 -07002// NO CHECKED-IN PROTOBUF GENCODE
Thomas Van Lenten7c646282022-09-19 13:19:31 -04003// clang-format off
Thomas Van Lenten672adeb2022-10-06 16:16:07 -04004// source: google/protobuf/timestamp.proto
Thomas Van Lenten7c646282022-09-19 13:19:31 -04005
Thomas Van Lenten020e4e32022-03-01 14:16:50 -05006#import "GPBProtocolBuffers_RuntimeSupport.h"
Thomas Van Lentenb146d142023-12-08 10:42:19 -08007#import "GPBWellKnownTypes.h"
Thomas Van Lenten020e4e32022-03-01 14:16:50 -05008#import "GPBTimestamp.pbobjc.h"
Thomas Van Lenten7da023b2016-05-09 13:53:20 -04009
Protobuf Team Bote4d70bb2023-02-08 10:17:46 -080010#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 Lenten1dcc3292015-05-21 17:14:52 -040017// @@protoc_insertion_point(imports)
Thomas Van Lenten30650d82015-05-01 08:57:16 -040018
Thomas Van Lentene664aa62016-04-19 13:13:04 -040019#pragma clang diagnostic push
20#pragma clang diagnostic ignored "-Wdeprecated-declarations"
Protobuf Team Botbf7de742023-02-02 11:29:54 -080021#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
22
Protobuf Team Botaeae4302023-02-09 07:43:26 -080023#pragma mark - Objective-C Class declarations
24// Forward declarations of Objective-C classes that we can use as
Protobuf Team Botbf7de742023-02-02 11:29:54 -080025// static values in struct initializers.
26// We don't use [Foo class] because it is not a static value.
27GPBObjCClassDeclaration(GPBTimestamp);
Thomas Van Lentene664aa62016-04-19 13:13:04 -040028
Thomas Van Lenten30650d82015-05-01 08:57:16 -040029#pragma mark - GPBTimestampRoot
30
31@implementation GPBTimestampRoot
32
Thomas Van Lenten740d3142023-08-14 10:04:53 -070033// 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 Lenten13a41242016-09-01 11:45:50 -040035
Thomas Van Lenten30650d82015-05-01 08:57:16 -040036@end
37
Protobuf Team Bot4ed02cc2023-02-08 06:31:58 -080038static GPBFileDescription GPBTimestampRoot_FileDescription = {
39 .package = "google.protobuf",
40 .prefix = "GPB",
41 .syntax = GPBFileSyntaxProto3
42};
Thomas Van Lenten30650d82015-05-01 08:57:16 -040043
Thomas Van Lentenb146d142023-12-08 10:42:19 -080044// 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 Lentenf9731fd2024-02-23 07:08:34 -080047__attribute__((used)) static NSString* timestamp_importCategories(void) {
Thomas Van Lentenb146d142023-12-08 10:42:19 -080048 return GPBWellKnownTypesErrorDomain;
49}
50
Thomas Van Lenten30650d82015-05-01 08:57:16 -040051#pragma mark - GPBTimestamp
52
53@implementation GPBTimestamp
54
55@dynamic seconds;
56@dynamic nanos;
57
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040058typedef struct GPBTimestamp__storage_ {
Thomas Van Lenten30650d82015-05-01 08:57:16 -040059 uint32_t _has_storage_[1];
60 int32_t nanos;
61 int64_t seconds;
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040062} GPBTimestamp__storage_;
Thomas Van Lenten30650d82015-05-01 08:57:16 -040063
64// This method is threadsafe because it is initially called
65// in +initialize for each subclass.
66+ (GPBDescriptor *)descriptor {
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040067 static GPBDescriptor *descriptor = nil;
Thomas Van Lenten30650d82015-05-01 08:57:16 -040068 if (!descriptor) {
Protobuf Team Bot78376c32023-01-31 11:29:07 -080069 GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
Thomas Van Lenten30650d82015-05-01 08:57:16 -040070 static GPBMessageFieldDescription fields[] = {
71 {
72 .name = "seconds",
Dave MacLachlan74956e12019-12-17 17:32:09 -080073 .dataTypeSpecific.clazz = Nil,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040074 .number = GPBTimestamp_FieldNumber_Seconds,
75 .hasIndex = 0,
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040076 .offset = (uint32_t)offsetof(GPBTimestamp__storage_, seconds),
Thomas Van Lentenb0e27922020-04-13 13:36:56 -040077 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040078 .dataType = GPBDataTypeInt64,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040079 },
80 {
81 .name = "nanos",
Dave MacLachlan74956e12019-12-17 17:32:09 -080082 .dataTypeSpecific.clazz = Nil,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040083 .number = GPBTimestamp_FieldNumber_Nanos,
84 .hasIndex = 1,
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040085 .offset = (uint32_t)offsetof(GPBTimestamp__storage_, nanos),
Thomas Van Lentenb0e27922020-04-13 13:36:56 -040086 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040087 .dataType = GPBDataTypeInt32,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040088 },
89 };
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040090 GPBDescriptor *localDescriptor =
Protobuf Team Botbf7de742023-02-02 11:29:54 -080091 [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBTimestamp)
Protobuf Team Bot4ed02cc2023-02-08 06:31:58 -080092 messageName:@"Timestamp"
93 fileDescription:&GPBTimestampRoot_FileDescription
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040094 fields:fields
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040095 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040096 storageSize:sizeof(GPBTimestamp__storage_)
Protobuf Team Bot4a122472022-11-15 11:22:51 -080097 flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
Thomas Van Lenten6c4ab102023-07-11 07:49:55 -070098 #if defined(DEBUG) && DEBUG
Dave MacLachlanb6311762018-12-11 16:32:48 -080099 NSAssert(descriptor == nil, @"Startup recursed!");
Thomas Van Lenten6c4ab102023-07-11 07:49:55 -0700100 #endif // DEBUG
Thomas Van Lentend846b0b2015-06-08 16:24:57 -0400101 descriptor = localDescriptor;
Thomas Van Lenten30650d82015-05-01 08:57:16 -0400102 }
103 return descriptor;
104}
105
106@end
107
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -0400108
Thomas Van Lentene664aa62016-04-19 13:13:04 -0400109#pragma clang diagnostic pop
110
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -0400111// @@protoc_insertion_point(global_scope)
Thomas Van Lenten7c646282022-09-19 13:19:31 -0400112
Thomas Van Lenten672adeb2022-10-06 16:16:07 -0400113// clang-format on