1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/duration.proto
4 // This CPP symbol can be defined to use imports that match up to the framework
5 // imports needed when using CocoaPods.
6 #if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
7 #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
10 #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
11 #import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h>
13 #import "GPBProtocolBuffers_RuntimeSupport.h"
16 #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
17 #import <Protobuf/Duration.pbobjc.h>
19 #import "google/protobuf/Duration.pbobjc.h"
21 // @@protoc_insertion_point(imports)
23 #pragma clang diagnostic push
24 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
26 #pragma mark - GPBDurationRoot
28 @implementation GPBDurationRoot
30 // No extensions in the file and no imports, so no need to generate
31 // +extensionRegistry.
35 #pragma mark - GPBDurationRoot_FileDescriptor
37 static GPBFileDescriptor *GPBDurationRoot_FileDescriptor(void) {
38 // This is called by +initialize so there is no need to worry
39 // about thread safety of the singleton.
40 static GPBFileDescriptor *descriptor = NULL;
42 GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
43 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
45 syntax:GPBFileSyntaxProto3];
50 #pragma mark - GPBDuration
52 @implementation GPBDuration
57 typedef struct GPBDuration__storage_ {
58 uint32_t _has_storage_[1];
61 } GPBDuration__storage_;
63 // This method is threadsafe because it is initially called
64 // in +initialize for each subclass.
65 + (GPBDescriptor *)descriptor {
66 static GPBDescriptor *descriptor = nil;
68 static GPBMessageFieldDescription fields[] = {
71 .dataTypeSpecific.className = NULL,
72 .number = GPBDuration_FieldNumber_Seconds,
74 .offset = (uint32_t)offsetof(GPBDuration__storage_, seconds),
75 .flags = GPBFieldOptional,
76 .dataType = GPBDataTypeInt64,
80 .dataTypeSpecific.className = NULL,
81 .number = GPBDuration_FieldNumber_Nanos,
83 .offset = (uint32_t)offsetof(GPBDuration__storage_, nanos),
84 .flags = GPBFieldOptional,
85 .dataType = GPBDataTypeInt32,
88 GPBDescriptor *localDescriptor =
89 [GPBDescriptor allocDescriptorForClass:[GPBDuration class]
90 rootClass:[GPBDurationRoot class]
91 file:GPBDurationRoot_FileDescriptor()
93 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
94 storageSize:sizeof(GPBDuration__storage_)
95 flags:GPBDescriptorInitializationFlag_None];
96 NSAssert(descriptor == nil, @"Startup recursed!");
97 descriptor = localDescriptor;
105 #pragma clang diagnostic pop
107 // @@protoc_insertion_point(global_scope)