• 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 "google/protobuf/Duration.pbobjc.h"
6// @@protoc_insertion_point(imports)
7
8#pragma clang diagnostic push
9#pragma clang diagnostic ignored "-Wdeprecated-declarations"
10
11#pragma mark - GPBDurationRoot
12
13@implementation GPBDurationRoot
14
15@end
16
17#pragma mark - GPBDurationRoot_FileDescriptor
18
19static GPBFileDescriptor *GPBDurationRoot_FileDescriptor(void) {
20  // This is called by +initialize so there is no need to worry
21  // about thread safety of the singleton.
22  static GPBFileDescriptor *descriptor = NULL;
23  if (!descriptor) {
24    GPBDebugCheckRuntimeVersion();
25    descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
26                                                     syntax:GPBFileSyntaxProto3];
27  }
28  return descriptor;
29}
30
31#pragma mark - GPBDuration
32
33@implementation GPBDuration
34
35@dynamic seconds;
36@dynamic nanos;
37
38typedef struct GPBDuration__storage_ {
39  uint32_t _has_storage_[1];
40  int32_t nanos;
41  int64_t seconds;
42} GPBDuration__storage_;
43
44// This method is threadsafe because it is initially called
45// in +initialize for each subclass.
46+ (GPBDescriptor *)descriptor {
47  static GPBDescriptor *descriptor = nil;
48  if (!descriptor) {
49    static GPBMessageFieldDescription fields[] = {
50      {
51        .name = "seconds",
52        .dataTypeSpecific.className = NULL,
53        .number = GPBDuration_FieldNumber_Seconds,
54        .hasIndex = 0,
55        .offset = (uint32_t)offsetof(GPBDuration__storage_, seconds),
56        .flags = GPBFieldOptional,
57        .dataType = GPBDataTypeInt64,
58      },
59      {
60        .name = "nanos",
61        .dataTypeSpecific.className = NULL,
62        .number = GPBDuration_FieldNumber_Nanos,
63        .hasIndex = 1,
64        .offset = (uint32_t)offsetof(GPBDuration__storage_, nanos),
65        .flags = GPBFieldOptional,
66        .dataType = GPBDataTypeInt32,
67      },
68    };
69    GPBDescriptor *localDescriptor =
70        [GPBDescriptor allocDescriptorForClass:[GPBDuration class]
71                                     rootClass:[GPBDurationRoot class]
72                                          file:GPBDurationRoot_FileDescriptor()
73                                        fields:fields
74                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
75                                   storageSize:sizeof(GPBDuration__storage_)
76                                         flags:0];
77    NSAssert(descriptor == nil, @"Startup recursed!");
78    descriptor = localDescriptor;
79  }
80  return descriptor;
81}
82
83@end
84
85
86#pragma clang diagnostic pop
87
88// @@protoc_insertion_point(global_scope)
89