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