2015-05-01 12:57:16 +00:00
|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
|
// source: google/protobuf/timestamp.proto
|
|
|
|
|
2022-03-01 19:16:50 +00:00
|
|
|
#import "GPBProtocolBuffers_RuntimeSupport.h"
|
|
|
|
#import "GPBTimestamp.pbobjc.h"
|
|
|
|
|
2015-05-21 21:14:52 +00:00
|
|
|
// @@protoc_insertion_point(imports)
|
2015-05-01 12:57:16 +00:00
|
|
|
|
2016-04-19 17:13:04 +00:00
|
|
|
#pragma clang diagnostic push
|
|
|
|
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2015-05-01 12:57:16 +00:00
|
|
|
#pragma mark - GPBTimestampRoot
|
|
|
|
|
|
|
|
@implementation GPBTimestampRoot
|
|
|
|
|
2016-09-01 15:45:50 +00:00
|
|
|
// No extensions in the file and no imports, so no need to generate
|
|
|
|
// +extensionRegistry.
|
|
|
|
|
2015-05-01 12:57:16 +00:00
|
|
|
@end
|
|
|
|
|
2015-06-08 20:24:57 +00:00
|
|
|
#pragma mark - GPBTimestampRoot_FileDescriptor
|
|
|
|
|
2015-05-01 12:57:16 +00:00
|
|
|
static GPBFileDescriptor *GPBTimestampRoot_FileDescriptor(void) {
|
|
|
|
// This is called by +initialize so there is no need to worry
|
|
|
|
// about thread safety of the singleton.
|
|
|
|
static GPBFileDescriptor *descriptor = NULL;
|
|
|
|
if (!descriptor) {
|
2016-09-15 17:27:17 +00:00
|
|
|
GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
|
2015-05-01 12:57:16 +00:00
|
|
|
descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
|
2016-08-16 15:26:49 +00:00
|
|
|
objcPrefix:@"GPB"
|
2015-05-01 12:57:16 +00:00
|
|
|
syntax:GPBFileSyntaxProto3];
|
|
|
|
}
|
|
|
|
return descriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
#pragma mark - GPBTimestamp
|
|
|
|
|
|
|
|
@implementation GPBTimestamp
|
|
|
|
|
|
|
|
@dynamic seconds;
|
|
|
|
@dynamic nanos;
|
|
|
|
|
2015-06-08 20:24:57 +00:00
|
|
|
typedef struct GPBTimestamp__storage_ {
|
2015-05-01 12:57:16 +00:00
|
|
|
uint32_t _has_storage_[1];
|
|
|
|
int32_t nanos;
|
|
|
|
int64_t seconds;
|
2015-06-08 20:24:57 +00:00
|
|
|
} GPBTimestamp__storage_;
|
2015-05-01 12:57:16 +00:00
|
|
|
|
|
|
|
// This method is threadsafe because it is initially called
|
|
|
|
// in +initialize for each subclass.
|
|
|
|
+ (GPBDescriptor *)descriptor {
|
2015-06-08 20:24:57 +00:00
|
|
|
static GPBDescriptor *descriptor = nil;
|
2015-05-01 12:57:16 +00:00
|
|
|
if (!descriptor) {
|
|
|
|
static GPBMessageFieldDescription fields[] = {
|
|
|
|
{
|
|
|
|
.name = "seconds",
|
2019-12-18 01:32:09 +00:00
|
|
|
.dataTypeSpecific.clazz = Nil,
|
2015-05-01 12:57:16 +00:00
|
|
|
.number = GPBTimestamp_FieldNumber_Seconds,
|
|
|
|
.hasIndex = 0,
|
2016-03-17 14:04:21 +00:00
|
|
|
.offset = (uint32_t)offsetof(GPBTimestamp__storage_, seconds),
|
2020-04-13 17:36:56 +00:00
|
|
|
.flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
|
2015-06-08 20:24:57 +00:00
|
|
|
.dataType = GPBDataTypeInt64,
|
2015-05-01 12:57:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.name = "nanos",
|
2019-12-18 01:32:09 +00:00
|
|
|
.dataTypeSpecific.clazz = Nil,
|
2015-05-01 12:57:16 +00:00
|
|
|
.number = GPBTimestamp_FieldNumber_Nanos,
|
|
|
|
.hasIndex = 1,
|
2016-03-17 14:04:21 +00:00
|
|
|
.offset = (uint32_t)offsetof(GPBTimestamp__storage_, nanos),
|
2020-04-13 17:36:56 +00:00
|
|
|
.flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
|
2015-06-08 20:24:57 +00:00
|
|
|
.dataType = GPBDataTypeInt32,
|
2015-05-01 12:57:16 +00:00
|
|
|
},
|
|
|
|
};
|
2015-06-08 20:24:57 +00:00
|
|
|
GPBDescriptor *localDescriptor =
|
|
|
|
[GPBDescriptor allocDescriptorForClass:[GPBTimestamp class]
|
|
|
|
rootClass:[GPBTimestampRoot class]
|
|
|
|
file:GPBTimestampRoot_FileDescriptor()
|
|
|
|
fields:fields
|
2016-03-17 14:04:21 +00:00
|
|
|
fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
|
2015-06-08 20:24:57 +00:00
|
|
|
storageSize:sizeof(GPBTimestamp__storage_)
|
2020-04-13 17:36:56 +00:00
|
|
|
flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)];
|
2018-12-12 00:32:48 +00:00
|
|
|
#if defined(DEBUG) && DEBUG
|
|
|
|
NSAssert(descriptor == nil, @"Startup recursed!");
|
|
|
|
#endif // DEBUG
|
2015-06-08 20:24:57 +00:00
|
|
|
descriptor = localDescriptor;
|
2015-05-01 12:57:16 +00:00
|
|
|
}
|
|
|
|
return descriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2015-05-21 21:14:52 +00:00
|
|
|
|
2016-04-19 17:13:04 +00:00
|
|
|
#pragma clang diagnostic pop
|
|
|
|
|
2015-05-21 21:14:52 +00:00
|
|
|
// @@protoc_insertion_point(global_scope)
|