blob: bc610923f4f60af71841f34b57b51e50d296807f [file] [log] [blame]
Thomas Van Lenten30650d82015-05-01 08:57:16 -04001// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: google/protobuf/duration.proto
3
Thomas Van Lenten7c646282022-09-19 13:19:31 -04004// clang-format off
5
Thomas Van Lenten020e4e32022-03-01 14:16:50 -05006#import "GPBProtocolBuffers_RuntimeSupport.h"
7#import "GPBDuration.pbobjc.h"
Thomas Van Lenten7da023b2016-05-09 13:53:20 -04008
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -04009// @@protoc_insertion_point(imports)
Thomas Van Lenten30650d82015-05-01 08:57:16 -040010
Thomas Van Lentene664aa62016-04-19 13:13:04 -040011#pragma clang diagnostic push
12#pragma clang diagnostic ignored "-Wdeprecated-declarations"
13
Thomas Van Lenten30650d82015-05-01 08:57:16 -040014#pragma mark - GPBDurationRoot
15
16@implementation GPBDurationRoot
17
Thomas Van Lenten13a41242016-09-01 11:45:50 -040018// No extensions in the file and no imports, so no need to generate
19// +extensionRegistry.
20
Thomas Van Lenten30650d82015-05-01 08:57:16 -040021@end
22
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040023#pragma mark - GPBDurationRoot_FileDescriptor
24
Thomas Van Lenten30650d82015-05-01 08:57:16 -040025static 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 Lenten1aa65002016-09-15 13:27:17 -040030 GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
Thomas Van Lenten30650d82015-05-01 08:57:16 -040031 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
Thomas Van Lenten337ec302016-08-16 11:26:49 -040032 objcPrefix:@"GPB"
Thomas Van Lenten30650d82015-05-01 08:57:16 -040033 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 Lentend846b0b2015-06-08 16:24:57 -040045typedef struct GPBDuration__storage_ {
Thomas Van Lenten30650d82015-05-01 08:57:16 -040046 uint32_t _has_storage_[1];
47 int32_t nanos;
48 int64_t seconds;
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040049} GPBDuration__storage_;
Thomas Van Lenten30650d82015-05-01 08:57:16 -040050
51// This method is threadsafe because it is initially called
52// in +initialize for each subclass.
53+ (GPBDescriptor *)descriptor {
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040054 static GPBDescriptor *descriptor = nil;
Thomas Van Lenten30650d82015-05-01 08:57:16 -040055 if (!descriptor) {
56 static GPBMessageFieldDescription fields[] = {
57 {
58 .name = "seconds",
Dave MacLachlan74956e12019-12-17 17:32:09 -080059 .dataTypeSpecific.clazz = Nil,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040060 .number = GPBDuration_FieldNumber_Seconds,
61 .hasIndex = 0,
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040062 .offset = (uint32_t)offsetof(GPBDuration__storage_, seconds),
Thomas Van Lentenb0e27922020-04-13 13:36:56 -040063 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040064 .dataType = GPBDataTypeInt64,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040065 },
66 {
67 .name = "nanos",
Dave MacLachlan74956e12019-12-17 17:32:09 -080068 .dataTypeSpecific.clazz = Nil,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040069 .number = GPBDuration_FieldNumber_Nanos,
70 .hasIndex = 1,
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040071 .offset = (uint32_t)offsetof(GPBDuration__storage_, nanos),
Thomas Van Lentenb0e27922020-04-13 13:36:56 -040072 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040073 .dataType = GPBDataTypeInt32,
Thomas Van Lenten30650d82015-05-01 08:57:16 -040074 },
75 };
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040076 GPBDescriptor *localDescriptor =
77 [GPBDescriptor allocDescriptorForClass:[GPBDuration class]
78 rootClass:[GPBDurationRoot class]
79 file:GPBDurationRoot_FileDescriptor()
80 fields:fields
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040081 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040082 storageSize:sizeof(GPBDuration__storage_)
Thomas Van Lentenb0e27922020-04-13 13:36:56 -040083 flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)];
Dave MacLachlanb6311762018-12-11 16:32:48 -080084 #if defined(DEBUG) && DEBUG
85 NSAssert(descriptor == nil, @"Startup recursed!");
86 #endif // DEBUG
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040087 descriptor = localDescriptor;
Thomas Van Lenten30650d82015-05-01 08:57:16 -040088 }
89 return descriptor;
90}
91
92@end
93
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040094
Thomas Van Lentene664aa62016-04-19 13:13:04 -040095#pragma clang diagnostic pop
96
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040097// @@protoc_insertion_point(global_scope)
Thomas Van Lenten7c646282022-09-19 13:19:31 -040098
99// clange-format on