• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Generated by the protocol buffer compiler.  DO NOT EDIT!
2// source: google/protobuf/duration.proto
3
4#import "GPBProtocolBuffers_RuntimeSupport.h"
5#import "GPBDuration.pbobjc.h"
6
7// @@protoc_insertion_point(imports)
8
9#pragma clang diagnostic push
10#pragma clang diagnostic ignored "-Wdeprecated-declarations"
11
12#pragma mark - GPBDurationRoot
13
14@implementation GPBDurationRoot
15
16// No extensions in the file and no imports, so no need to generate
17// +extensionRegistry.
18
19@end
20
21#pragma mark - GPBDurationRoot_FileDescriptor
22
23static GPBFileDescriptor *GPBDurationRoot_FileDescriptor(void) {
24  // This is called by +initialize so there is no need to worry
25  // about thread safety of the singleton.
26  static GPBFileDescriptor *descriptor = NULL;
27  if (!descriptor) {
28    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
29    descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
30                                                 objcPrefix:@"GPB"
31                                                     syntax:GPBFileSyntaxProto3];
32  }
33  return descriptor;
34}
35
36#pragma mark - GPBDuration
37
38@implementation GPBDuration
39
40@dynamic seconds;
41@dynamic nanos;
42
43typedef struct GPBDuration__storage_ {
44  uint32_t _has_storage_[1];
45  int32_t nanos;
46  int64_t seconds;
47} GPBDuration__storage_;
48
49// This method is threadsafe because it is initially called
50// in +initialize for each subclass.
51+ (GPBDescriptor *)descriptor {
52  static GPBDescriptor *descriptor = nil;
53  if (!descriptor) {
54    static GPBMessageFieldDescription fields[] = {
55      {
56        .name = "seconds",
57        .dataTypeSpecific.clazz = Nil,
58        .number = GPBDuration_FieldNumber_Seconds,
59        .hasIndex = 0,
60        .offset = (uint32_t)offsetof(GPBDuration__storage_, seconds),
61        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
62        .dataType = GPBDataTypeInt64,
63      },
64      {
65        .name = "nanos",
66        .dataTypeSpecific.clazz = Nil,
67        .number = GPBDuration_FieldNumber_Nanos,
68        .hasIndex = 1,
69        .offset = (uint32_t)offsetof(GPBDuration__storage_, nanos),
70        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
71        .dataType = GPBDataTypeInt32,
72      },
73    };
74    GPBDescriptor *localDescriptor =
75        [GPBDescriptor allocDescriptorForClass:[GPBDuration class]
76                                     rootClass:[GPBDurationRoot class]
77                                          file:GPBDurationRoot_FileDescriptor()
78                                        fields:fields
79                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
80                                   storageSize:sizeof(GPBDuration__storage_)
81                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)];
82    #if defined(DEBUG) && DEBUG
83      NSAssert(descriptor == nil, @"Startup recursed!");
84    #endif  // DEBUG
85    descriptor = localDescriptor;
86  }
87  return descriptor;
88}
89
90@end
91
92
93#pragma clang diagnostic pop
94
95// @@protoc_insertion_point(global_scope)
96