2015-05-21 21:14:52 +00:00
|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
|
// source: google/protobuf/struct.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
|
|
|
|
#import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h>
|
|
|
|
#else
|
|
|
|
#import "GPBProtocolBuffers_RuntimeSupport.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
|
|
|
|
#import <Protobuf/Struct.pbobjc.h>
|
|
|
|
#else
|
|
|
|
#import "google/protobuf/Struct.pbobjc.h"
|
|
|
|
#endif
|
2015-05-21 21:14:52 +00:00
|
|
|
// @@protoc_insertion_point(imports)
|
|
|
|
|
2016-04-19 17:13:04 +00:00
|
|
|
#pragma clang diagnostic push
|
|
|
|
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
2016-05-25 17:46:00 +00:00
|
|
|
#pragma clang diagnostic ignored "-Wdirect-ivar-access"
|
2016-04-19 17:13:04 +00:00
|
|
|
|
2015-05-21 21:14:52 +00:00
|
|
|
#pragma mark - GPBStructRoot
|
|
|
|
|
|
|
|
@implementation GPBStructRoot
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2015-06-08 20:24:57 +00:00
|
|
|
#pragma mark - GPBStructRoot_FileDescriptor
|
|
|
|
|
2015-05-21 21:14:52 +00:00
|
|
|
static GPBFileDescriptor *GPBStructRoot_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) {
|
2015-06-08 20:24:57 +00:00
|
|
|
GPBDebugCheckRuntimeVersion();
|
2015-05-21 21:14:52 +00:00
|
|
|
descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
|
|
|
|
syntax:GPBFileSyntaxProto3];
|
|
|
|
}
|
|
|
|
return descriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
#pragma mark - Enum GPBNullValue
|
|
|
|
|
|
|
|
GPBEnumDescriptor *GPBNullValue_EnumDescriptor(void) {
|
|
|
|
static GPBEnumDescriptor *descriptor = NULL;
|
|
|
|
if (!descriptor) {
|
2016-03-17 14:04:21 +00:00
|
|
|
static const char *valueNames =
|
|
|
|
"NullValue\000";
|
|
|
|
static const int32_t values[] = {
|
|
|
|
GPBNullValue_NullValue,
|
2015-05-21 21:14:52 +00:00
|
|
|
};
|
2016-03-17 14:04:21 +00:00
|
|
|
GPBEnumDescriptor *worker =
|
|
|
|
[GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(GPBNullValue)
|
|
|
|
valueNames:valueNames
|
|
|
|
values:values
|
|
|
|
count:(uint32_t)(sizeof(values) / sizeof(int32_t))
|
|
|
|
enumVerifier:GPBNullValue_IsValidValue];
|
|
|
|
if (!OSAtomicCompareAndSwapPtrBarrier(nil, worker, (void * volatile *)&descriptor)) {
|
|
|
|
[worker release];
|
|
|
|
}
|
2015-05-21 21:14:52 +00:00
|
|
|
}
|
|
|
|
return descriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL GPBNullValue_IsValidValue(int32_t value__) {
|
|
|
|
switch (value__) {
|
|
|
|
case GPBNullValue_NullValue:
|
|
|
|
return YES;
|
|
|
|
default:
|
|
|
|
return NO;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#pragma mark - GPBStruct
|
|
|
|
|
|
|
|
@implementation GPBStruct
|
|
|
|
|
2015-06-08 20:24:57 +00:00
|
|
|
@dynamic fields, fields_Count;
|
2015-05-21 21:14:52 +00:00
|
|
|
|
2015-06-08 20:24:57 +00:00
|
|
|
typedef struct GPBStruct__storage_ {
|
2015-05-21 21:14:52 +00:00
|
|
|
uint32_t _has_storage_[1];
|
|
|
|
NSMutableDictionary *fields;
|
2015-06-08 20:24:57 +00:00
|
|
|
} GPBStruct__storage_;
|
2015-05-21 21:14:52 +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-21 21:14:52 +00:00
|
|
|
if (!descriptor) {
|
|
|
|
static GPBMessageFieldDescription fields[] = {
|
|
|
|
{
|
|
|
|
.name = "fields",
|
2016-03-17 14:04:21 +00:00
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBValue),
|
2015-05-21 21:14:52 +00:00
|
|
|
.number = GPBStruct_FieldNumber_Fields,
|
|
|
|
.hasIndex = GPBNoHasBit,
|
2016-03-17 14:04:21 +00:00
|
|
|
.offset = (uint32_t)offsetof(GPBStruct__storage_, fields),
|
2015-05-21 21:14:52 +00:00
|
|
|
.flags = GPBFieldMapKeyString,
|
2015-06-08 20:24:57 +00:00
|
|
|
.dataType = GPBDataTypeMessage,
|
2015-05-21 21:14:52 +00:00
|
|
|
},
|
|
|
|
};
|
2015-06-08 20:24:57 +00:00
|
|
|
GPBDescriptor *localDescriptor =
|
|
|
|
[GPBDescriptor allocDescriptorForClass:[GPBStruct class]
|
|
|
|
rootClass:[GPBStructRoot class]
|
|
|
|
file:GPBStructRoot_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(GPBStruct__storage_)
|
2016-03-17 14:04:21 +00:00
|
|
|
flags:0];
|
2015-06-08 20:24:57 +00:00
|
|
|
NSAssert(descriptor == nil, @"Startup recursed!");
|
|
|
|
descriptor = localDescriptor;
|
2015-05-21 21:14:52 +00:00
|
|
|
}
|
|
|
|
return descriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
#pragma mark - GPBValue
|
|
|
|
|
|
|
|
@implementation GPBValue
|
|
|
|
|
|
|
|
@dynamic kindOneOfCase;
|
|
|
|
@dynamic nullValue;
|
|
|
|
@dynamic numberValue;
|
|
|
|
@dynamic stringValue;
|
|
|
|
@dynamic boolValue;
|
|
|
|
@dynamic structValue;
|
|
|
|
@dynamic listValue;
|
|
|
|
|
2015-06-08 20:24:57 +00:00
|
|
|
typedef struct GPBValue__storage_ {
|
2015-05-21 21:14:52 +00:00
|
|
|
uint32_t _has_storage_[2];
|
|
|
|
GPBNullValue nullValue;
|
|
|
|
NSString *stringValue;
|
|
|
|
GPBStruct *structValue;
|
|
|
|
GPBListValue *listValue;
|
|
|
|
double numberValue;
|
2015-06-08 20:24:57 +00:00
|
|
|
} GPBValue__storage_;
|
2015-05-21 21:14:52 +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-21 21:14:52 +00:00
|
|
|
if (!descriptor) {
|
|
|
|
static GPBMessageFieldDescription fields[] = {
|
|
|
|
{
|
|
|
|
.name = "nullValue",
|
2016-03-17 14:04:21 +00:00
|
|
|
.dataTypeSpecific.enumDescFunc = GPBNullValue_EnumDescriptor,
|
2015-05-21 21:14:52 +00:00
|
|
|
.number = GPBValue_FieldNumber_NullValue,
|
|
|
|
.hasIndex = -1,
|
2016-03-17 14:04:21 +00:00
|
|
|
.offset = (uint32_t)offsetof(GPBValue__storage_, nullValue),
|
2015-05-21 21:14:52 +00:00
|
|
|
.flags = GPBFieldOptional | GPBFieldHasEnumDescriptor,
|
2015-06-08 20:24:57 +00:00
|
|
|
.dataType = GPBDataTypeEnum,
|
2015-05-21 21:14:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.name = "numberValue",
|
2016-03-17 14:04:21 +00:00
|
|
|
.dataTypeSpecific.className = NULL,
|
2015-05-21 21:14:52 +00:00
|
|
|
.number = GPBValue_FieldNumber_NumberValue,
|
|
|
|
.hasIndex = -1,
|
2016-03-17 14:04:21 +00:00
|
|
|
.offset = (uint32_t)offsetof(GPBValue__storage_, numberValue),
|
2015-05-21 21:14:52 +00:00
|
|
|
.flags = GPBFieldOptional,
|
2015-06-08 20:24:57 +00:00
|
|
|
.dataType = GPBDataTypeDouble,
|
2015-05-21 21:14:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.name = "stringValue",
|
2016-03-17 14:04:21 +00:00
|
|
|
.dataTypeSpecific.className = NULL,
|
2015-05-21 21:14:52 +00:00
|
|
|
.number = GPBValue_FieldNumber_StringValue,
|
|
|
|
.hasIndex = -1,
|
2016-03-17 14:04:21 +00:00
|
|
|
.offset = (uint32_t)offsetof(GPBValue__storage_, stringValue),
|
2015-05-21 21:14:52 +00:00
|
|
|
.flags = GPBFieldOptional,
|
2015-06-08 20:24:57 +00:00
|
|
|
.dataType = GPBDataTypeString,
|
2015-05-21 21:14:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.name = "boolValue",
|
2016-03-17 14:04:21 +00:00
|
|
|
.dataTypeSpecific.className = NULL,
|
2015-05-21 21:14:52 +00:00
|
|
|
.number = GPBValue_FieldNumber_BoolValue,
|
|
|
|
.hasIndex = -1,
|
2016-03-17 14:04:21 +00:00
|
|
|
.offset = 0, // Stored in _has_storage_ to save space.
|
2015-05-21 21:14:52 +00:00
|
|
|
.flags = GPBFieldOptional,
|
2015-06-08 20:24:57 +00:00
|
|
|
.dataType = GPBDataTypeBool,
|
2015-05-21 21:14:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.name = "structValue",
|
2016-03-17 14:04:21 +00:00
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBStruct),
|
2015-05-21 21:14:52 +00:00
|
|
|
.number = GPBValue_FieldNumber_StructValue,
|
|
|
|
.hasIndex = -1,
|
2016-03-17 14:04:21 +00:00
|
|
|
.offset = (uint32_t)offsetof(GPBValue__storage_, structValue),
|
2015-05-21 21:14:52 +00:00
|
|
|
.flags = GPBFieldOptional,
|
2015-06-08 20:24:57 +00:00
|
|
|
.dataType = GPBDataTypeMessage,
|
2015-05-21 21:14:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.name = "listValue",
|
2016-03-17 14:04:21 +00:00
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBListValue),
|
2015-05-21 21:14:52 +00:00
|
|
|
.number = GPBValue_FieldNumber_ListValue,
|
|
|
|
.hasIndex = -1,
|
2016-03-17 14:04:21 +00:00
|
|
|
.offset = (uint32_t)offsetof(GPBValue__storage_, listValue),
|
2015-05-21 21:14:52 +00:00
|
|
|
.flags = GPBFieldOptional,
|
2015-06-08 20:24:57 +00:00
|
|
|
.dataType = GPBDataTypeMessage,
|
2015-05-21 21:14:52 +00:00
|
|
|
},
|
|
|
|
};
|
2015-06-08 20:24:57 +00:00
|
|
|
GPBDescriptor *localDescriptor =
|
|
|
|
[GPBDescriptor allocDescriptorForClass:[GPBValue class]
|
|
|
|
rootClass:[GPBStructRoot class]
|
|
|
|
file:GPBStructRoot_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(GPBValue__storage_)
|
2016-03-17 14:04:21 +00:00
|
|
|
flags:0];
|
|
|
|
static const char *oneofs[] = {
|
|
|
|
"kind",
|
|
|
|
};
|
|
|
|
[localDescriptor setupOneofs:oneofs
|
|
|
|
count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
|
|
|
|
firstHasIndex:-1];
|
2015-06-08 20:24:57 +00:00
|
|
|
NSAssert(descriptor == nil, @"Startup recursed!");
|
|
|
|
descriptor = localDescriptor;
|
2015-05-21 21:14:52 +00:00
|
|
|
}
|
|
|
|
return descriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
int32_t GPBValue_NullValue_RawValue(GPBValue *message) {
|
|
|
|
GPBDescriptor *descriptor = [GPBValue descriptor];
|
|
|
|
GPBFieldDescriptor *field = [descriptor fieldWithNumber:GPBValue_FieldNumber_NullValue];
|
2015-06-08 20:24:57 +00:00
|
|
|
return GPBGetMessageInt32Field(message, field);
|
2015-05-21 21:14:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void SetGPBValue_NullValue_RawValue(GPBValue *message, int32_t value) {
|
|
|
|
GPBDescriptor *descriptor = [GPBValue descriptor];
|
|
|
|
GPBFieldDescriptor *field = [descriptor fieldWithNumber:GPBValue_FieldNumber_NullValue];
|
|
|
|
GPBSetInt32IvarWithFieldInternal(message, field, value, descriptor.file.syntax);
|
|
|
|
}
|
|
|
|
|
|
|
|
void GPBValue_ClearKindOneOfCase(GPBValue *message) {
|
|
|
|
GPBDescriptor *descriptor = [message descriptor];
|
|
|
|
GPBOneofDescriptor *oneof = descriptor->oneofs_[0];
|
2016-03-17 14:04:21 +00:00
|
|
|
GPBMaybeClearOneof(message, oneof, -1, 0);
|
2015-05-21 21:14:52 +00:00
|
|
|
}
|
|
|
|
#pragma mark - GPBListValue
|
|
|
|
|
|
|
|
@implementation GPBListValue
|
|
|
|
|
2015-06-08 20:24:57 +00:00
|
|
|
@dynamic valuesArray, valuesArray_Count;
|
2015-05-21 21:14:52 +00:00
|
|
|
|
2015-06-08 20:24:57 +00:00
|
|
|
typedef struct GPBListValue__storage_ {
|
2015-05-21 21:14:52 +00:00
|
|
|
uint32_t _has_storage_[1];
|
|
|
|
NSMutableArray *valuesArray;
|
2015-06-08 20:24:57 +00:00
|
|
|
} GPBListValue__storage_;
|
2015-05-21 21:14:52 +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-21 21:14:52 +00:00
|
|
|
if (!descriptor) {
|
|
|
|
static GPBMessageFieldDescription fields[] = {
|
|
|
|
{
|
|
|
|
.name = "valuesArray",
|
2016-03-17 14:04:21 +00:00
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBValue),
|
2015-05-21 21:14:52 +00:00
|
|
|
.number = GPBListValue_FieldNumber_ValuesArray,
|
|
|
|
.hasIndex = GPBNoHasBit,
|
2016-03-17 14:04:21 +00:00
|
|
|
.offset = (uint32_t)offsetof(GPBListValue__storage_, valuesArray),
|
2015-05-21 21:14:52 +00:00
|
|
|
.flags = GPBFieldRepeated,
|
2015-06-08 20:24:57 +00:00
|
|
|
.dataType = GPBDataTypeMessage,
|
2015-05-21 21:14:52 +00:00
|
|
|
},
|
|
|
|
};
|
2015-06-08 20:24:57 +00:00
|
|
|
GPBDescriptor *localDescriptor =
|
|
|
|
[GPBDescriptor allocDescriptorForClass:[GPBListValue class]
|
|
|
|
rootClass:[GPBStructRoot class]
|
|
|
|
file:GPBStructRoot_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(GPBListValue__storage_)
|
2016-03-17 14:04:21 +00:00
|
|
|
flags:0];
|
2015-06-08 20:24:57 +00:00
|
|
|
NSAssert(descriptor == nil, @"Startup recursed!");
|
|
|
|
descriptor = localDescriptor;
|
2015-05-21 21:14:52 +00:00
|
|
|
}
|
|
|
|
return descriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
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)
|