2015-05-01 12:57:16 +00:00
|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
|
// source: google/protobuf/duration.proto
|
|
|
|
|
2016-05-09 17:53:20 +00:00
|
|
|
// This CPP symbol can be defined to use imports that match up to the framework
|
|
|
|
// imports needed when using CocoaPods.
|
|
|
|
#if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
|
|
|
|
#define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
|
2020-01-22 20:50:52 +00:00
|
|
|
#import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h>
|
2016-05-09 17:53:20 +00:00
|
|
|
#else
|
|
|
|
#import "GPBProtocolBuffers_RuntimeSupport.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
|
2020-01-22 20:50:52 +00:00
|
|
|
#import <Protobuf/GPBDuration.pbobjc.h>
|
2016-05-09 17:53:20 +00:00
|
|
|
#else
|
2020-01-22 20:50:52 +00:00
|
|
|
#import "GPBDuration.pbobjc.h"
|
2016-05-09 17:53:20 +00:00
|
|
|
#endif
|
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 - GPBDurationRoot
|
|
|
|
|
|
|
|
@implementation GPBDurationRoot
|
|
|
|
|
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 - GPBDurationRoot_FileDescriptor
|
|
|
|
|
2015-05-01 12:57:16 +00:00
|
|
|
static GPBFileDescriptor *GPBDurationRoot_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 - GPBDuration
|
|
|
|
|
|
|
|
@implementation GPBDuration
|
|
|
|
|
|
|
|
@dynamic seconds;
|
|
|
|
@dynamic nanos;
|
|
|
|
|
2015-06-08 20:24:57 +00:00
|
|
|
typedef struct GPBDuration__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
|
|
|
} GPBDuration__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 = GPBDuration_FieldNumber_Seconds,
|
|
|
|
.hasIndex = 0,
|
2016-03-17 14:04:21 +00:00
|
|
|
.offset = (uint32_t)offsetof(GPBDuration__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 = GPBDuration_FieldNumber_Nanos,
|
|
|
|
.hasIndex = 1,
|
2016-03-17 14:04:21 +00:00
|
|
|
.offset = (uint32_t)offsetof(GPBDuration__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:[GPBDuration class]
|
|
|
|
rootClass:[GPBDurationRoot class]
|
|
|
|
file:GPBDurationRoot_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(GPBDuration__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)
|