|
|
@ -45,14 +45,21 @@ static GPBFileDescriptor *GPBTypeRoot_FileDescriptor(void) { |
|
|
|
GPBEnumDescriptor *GPBSyntax_EnumDescriptor(void) { |
|
|
|
GPBEnumDescriptor *GPBSyntax_EnumDescriptor(void) { |
|
|
|
static GPBEnumDescriptor *descriptor = NULL; |
|
|
|
static GPBEnumDescriptor *descriptor = NULL; |
|
|
|
if (!descriptor) { |
|
|
|
if (!descriptor) { |
|
|
|
static GPBMessageEnumValueDescription values[] = { |
|
|
|
static const char *valueNames = |
|
|
|
{ .name = "SyntaxProto2", .number = GPBSyntax_SyntaxProto2 }, |
|
|
|
"SyntaxProto2\000SyntaxProto3\000"; |
|
|
|
{ .name = "SyntaxProto3", .number = GPBSyntax_SyntaxProto3 }, |
|
|
|
static const int32_t values[] = { |
|
|
|
|
|
|
|
GPBSyntax_SyntaxProto2, |
|
|
|
|
|
|
|
GPBSyntax_SyntaxProto3, |
|
|
|
}; |
|
|
|
}; |
|
|
|
descriptor = [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(GPBSyntax) |
|
|
|
GPBEnumDescriptor *worker = |
|
|
|
|
|
|
|
[GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(GPBSyntax) |
|
|
|
|
|
|
|
valueNames:valueNames |
|
|
|
values:values |
|
|
|
values:values |
|
|
|
valueCount:sizeof(values) / sizeof(GPBMessageEnumValueDescription) |
|
|
|
count:(uint32_t)(sizeof(values) / sizeof(int32_t)) |
|
|
|
enumVerifier:GPBSyntax_IsValidValue]; |
|
|
|
enumVerifier:GPBSyntax_IsValidValue]; |
|
|
|
|
|
|
|
if (!OSAtomicCompareAndSwapPtrBarrier(nil, worker, (void * volatile *)&descriptor)) { |
|
|
|
|
|
|
|
[worker release]; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return descriptor; |
|
|
|
return descriptor; |
|
|
|
} |
|
|
|
} |
|
|
@ -96,69 +103,57 @@ typedef struct GPBType__storage_ { |
|
|
|
static GPBMessageFieldDescription fields[] = { |
|
|
|
static GPBMessageFieldDescription fields[] = { |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "name", |
|
|
|
.name = "name", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
.number = GPBType_FieldNumber_Name, |
|
|
|
.number = GPBType_FieldNumber_Name, |
|
|
|
.hasIndex = 0, |
|
|
|
.hasIndex = 0, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBType__storage_, name), |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.dataType = GPBDataTypeString, |
|
|
|
.dataType = GPBDataTypeString, |
|
|
|
.offset = offsetof(GPBType__storage_, name), |
|
|
|
|
|
|
|
.defaultValue.valueString = nil, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "fieldsArray", |
|
|
|
.name = "fieldsArray", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBField), |
|
|
|
.number = GPBType_FieldNumber_FieldsArray, |
|
|
|
.number = GPBType_FieldNumber_FieldsArray, |
|
|
|
.hasIndex = GPBNoHasBit, |
|
|
|
.hasIndex = GPBNoHasBit, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBType__storage_, fieldsArray), |
|
|
|
.flags = GPBFieldRepeated, |
|
|
|
.flags = GPBFieldRepeated, |
|
|
|
.dataType = GPBDataTypeMessage, |
|
|
|
.dataType = GPBDataTypeMessage, |
|
|
|
.offset = offsetof(GPBType__storage_, fieldsArray), |
|
|
|
|
|
|
|
.defaultValue.valueMessage = nil, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBField), |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "oneofsArray", |
|
|
|
.name = "oneofsArray", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
.number = GPBType_FieldNumber_OneofsArray, |
|
|
|
.number = GPBType_FieldNumber_OneofsArray, |
|
|
|
.hasIndex = GPBNoHasBit, |
|
|
|
.hasIndex = GPBNoHasBit, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBType__storage_, oneofsArray), |
|
|
|
.flags = GPBFieldRepeated, |
|
|
|
.flags = GPBFieldRepeated, |
|
|
|
.dataType = GPBDataTypeString, |
|
|
|
.dataType = GPBDataTypeString, |
|
|
|
.offset = offsetof(GPBType__storage_, oneofsArray), |
|
|
|
|
|
|
|
.defaultValue.valueMessage = nil, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "optionsArray", |
|
|
|
.name = "optionsArray", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBOption), |
|
|
|
.number = GPBType_FieldNumber_OptionsArray, |
|
|
|
.number = GPBType_FieldNumber_OptionsArray, |
|
|
|
.hasIndex = GPBNoHasBit, |
|
|
|
.hasIndex = GPBNoHasBit, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBType__storage_, optionsArray), |
|
|
|
.flags = GPBFieldRepeated, |
|
|
|
.flags = GPBFieldRepeated, |
|
|
|
.dataType = GPBDataTypeMessage, |
|
|
|
.dataType = GPBDataTypeMessage, |
|
|
|
.offset = offsetof(GPBType__storage_, optionsArray), |
|
|
|
|
|
|
|
.defaultValue.valueMessage = nil, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBOption), |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "sourceContext", |
|
|
|
.name = "sourceContext", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBSourceContext), |
|
|
|
.number = GPBType_FieldNumber_SourceContext, |
|
|
|
.number = GPBType_FieldNumber_SourceContext, |
|
|
|
.hasIndex = 4, |
|
|
|
.hasIndex = 1, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBType__storage_, sourceContext), |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.dataType = GPBDataTypeMessage, |
|
|
|
.dataType = GPBDataTypeMessage, |
|
|
|
.offset = offsetof(GPBType__storage_, sourceContext), |
|
|
|
|
|
|
|
.defaultValue.valueMessage = nil, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBSourceContext), |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "syntax", |
|
|
|
.name = "syntax", |
|
|
|
|
|
|
|
.dataTypeSpecific.enumDescFunc = GPBSyntax_EnumDescriptor, |
|
|
|
.number = GPBType_FieldNumber_Syntax, |
|
|
|
.number = GPBType_FieldNumber_Syntax, |
|
|
|
.hasIndex = 5, |
|
|
|
.hasIndex = 2, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBType__storage_, syntax), |
|
|
|
.flags = GPBFieldOptional | GPBFieldHasEnumDescriptor, |
|
|
|
.flags = GPBFieldOptional | GPBFieldHasEnumDescriptor, |
|
|
|
.dataType = GPBDataTypeEnum, |
|
|
|
.dataType = GPBDataTypeEnum, |
|
|
|
.offset = offsetof(GPBType__storage_, syntax), |
|
|
|
|
|
|
|
.defaultValue.valueEnum = GPBSyntax_SyntaxProto2, |
|
|
|
|
|
|
|
.dataTypeSpecific.enumDescFunc = GPBSyntax_EnumDescriptor, |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
GPBDescriptor *localDescriptor = |
|
|
|
GPBDescriptor *localDescriptor = |
|
|
@ -166,15 +161,9 @@ typedef struct GPBType__storage_ { |
|
|
|
rootClass:[GPBTypeRoot class] |
|
|
|
rootClass:[GPBTypeRoot class] |
|
|
|
file:GPBTypeRoot_FileDescriptor() |
|
|
|
file:GPBTypeRoot_FileDescriptor() |
|
|
|
fields:fields |
|
|
|
fields:fields |
|
|
|
fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription) |
|
|
|
fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
|
|
|
oneofs:NULL |
|
|
|
|
|
|
|
oneofCount:0 |
|
|
|
|
|
|
|
enums:NULL |
|
|
|
|
|
|
|
enumCount:0 |
|
|
|
|
|
|
|
ranges:NULL |
|
|
|
|
|
|
|
rangeCount:0 |
|
|
|
|
|
|
|
storageSize:sizeof(GPBType__storage_) |
|
|
|
storageSize:sizeof(GPBType__storage_) |
|
|
|
wireFormat:NO]; |
|
|
|
flags:0]; |
|
|
|
NSAssert(descriptor == nil, @"Startup recursed!"); |
|
|
|
NSAssert(descriptor == nil, @"Startup recursed!"); |
|
|
|
descriptor = localDescriptor; |
|
|
|
descriptor = localDescriptor; |
|
|
|
} |
|
|
|
} |
|
|
@ -212,7 +201,6 @@ void SetGPBType_Syntax_RawValue(GPBType *message, int32_t value) { |
|
|
|
|
|
|
|
|
|
|
|
typedef struct GPBField__storage_ { |
|
|
|
typedef struct GPBField__storage_ { |
|
|
|
uint32_t _has_storage_[1]; |
|
|
|
uint32_t _has_storage_[1]; |
|
|
|
BOOL packed; |
|
|
|
|
|
|
|
GPBField_Kind kind; |
|
|
|
GPBField_Kind kind; |
|
|
|
GPBField_Cardinality cardinality; |
|
|
|
GPBField_Cardinality cardinality; |
|
|
|
int32_t number; |
|
|
|
int32_t number; |
|
|
@ -232,139 +220,108 @@ typedef struct GPBField__storage_ { |
|
|
|
static GPBMessageFieldDescription fields[] = { |
|
|
|
static GPBMessageFieldDescription fields[] = { |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "kind", |
|
|
|
.name = "kind", |
|
|
|
|
|
|
|
.dataTypeSpecific.enumDescFunc = GPBField_Kind_EnumDescriptor, |
|
|
|
.number = GPBField_FieldNumber_Kind, |
|
|
|
.number = GPBField_FieldNumber_Kind, |
|
|
|
.hasIndex = 0, |
|
|
|
.hasIndex = 0, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBField__storage_, kind), |
|
|
|
.flags = GPBFieldOptional | GPBFieldHasEnumDescriptor, |
|
|
|
.flags = GPBFieldOptional | GPBFieldHasEnumDescriptor, |
|
|
|
.dataType = GPBDataTypeEnum, |
|
|
|
.dataType = GPBDataTypeEnum, |
|
|
|
.offset = offsetof(GPBField__storage_, kind), |
|
|
|
|
|
|
|
.defaultValue.valueEnum = GPBField_Kind_TypeUnknown, |
|
|
|
|
|
|
|
.dataTypeSpecific.enumDescFunc = GPBField_Kind_EnumDescriptor, |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "cardinality", |
|
|
|
.name = "cardinality", |
|
|
|
|
|
|
|
.dataTypeSpecific.enumDescFunc = GPBField_Cardinality_EnumDescriptor, |
|
|
|
.number = GPBField_FieldNumber_Cardinality, |
|
|
|
.number = GPBField_FieldNumber_Cardinality, |
|
|
|
.hasIndex = 1, |
|
|
|
.hasIndex = 1, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBField__storage_, cardinality), |
|
|
|
.flags = GPBFieldOptional | GPBFieldHasEnumDescriptor, |
|
|
|
.flags = GPBFieldOptional | GPBFieldHasEnumDescriptor, |
|
|
|
.dataType = GPBDataTypeEnum, |
|
|
|
.dataType = GPBDataTypeEnum, |
|
|
|
.offset = offsetof(GPBField__storage_, cardinality), |
|
|
|
|
|
|
|
.defaultValue.valueEnum = GPBField_Cardinality_CardinalityUnknown, |
|
|
|
|
|
|
|
.dataTypeSpecific.enumDescFunc = GPBField_Cardinality_EnumDescriptor, |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "number", |
|
|
|
.name = "number", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
.number = GPBField_FieldNumber_Number, |
|
|
|
.number = GPBField_FieldNumber_Number, |
|
|
|
.hasIndex = 2, |
|
|
|
.hasIndex = 2, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBField__storage_, number), |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.dataType = GPBDataTypeInt32, |
|
|
|
.dataType = GPBDataTypeInt32, |
|
|
|
.offset = offsetof(GPBField__storage_, number), |
|
|
|
|
|
|
|
.defaultValue.valueInt32 = 0, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "name", |
|
|
|
.name = "name", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
.number = GPBField_FieldNumber_Name, |
|
|
|
.number = GPBField_FieldNumber_Name, |
|
|
|
.hasIndex = 3, |
|
|
|
.hasIndex = 3, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBField__storage_, name), |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.dataType = GPBDataTypeString, |
|
|
|
.dataType = GPBDataTypeString, |
|
|
|
.offset = offsetof(GPBField__storage_, name), |
|
|
|
|
|
|
|
.defaultValue.valueString = nil, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "typeURL", |
|
|
|
.name = "typeURL", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
.number = GPBField_FieldNumber_TypeURL, |
|
|
|
.number = GPBField_FieldNumber_TypeURL, |
|
|
|
.hasIndex = 4, |
|
|
|
.hasIndex = 4, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBField__storage_, typeURL), |
|
|
|
.flags = GPBFieldOptional | GPBFieldTextFormatNameCustom, |
|
|
|
.flags = GPBFieldOptional | GPBFieldTextFormatNameCustom, |
|
|
|
.dataType = GPBDataTypeString, |
|
|
|
.dataType = GPBDataTypeString, |
|
|
|
.offset = offsetof(GPBField__storage_, typeURL), |
|
|
|
|
|
|
|
.defaultValue.valueString = nil, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "oneofIndex", |
|
|
|
.name = "oneofIndex", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
.number = GPBField_FieldNumber_OneofIndex, |
|
|
|
.number = GPBField_FieldNumber_OneofIndex, |
|
|
|
.hasIndex = 5, |
|
|
|
.hasIndex = 5, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBField__storage_, oneofIndex), |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.dataType = GPBDataTypeInt32, |
|
|
|
.dataType = GPBDataTypeInt32, |
|
|
|
.offset = offsetof(GPBField__storage_, oneofIndex), |
|
|
|
|
|
|
|
.defaultValue.valueInt32 = 0, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "packed", |
|
|
|
.name = "packed", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
.number = GPBField_FieldNumber_Packed, |
|
|
|
.number = GPBField_FieldNumber_Packed, |
|
|
|
.hasIndex = 6, |
|
|
|
.hasIndex = 6, |
|
|
|
|
|
|
|
.offset = 7, // Stored in _has_storage_ to save space. |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.dataType = GPBDataTypeBool, |
|
|
|
.dataType = GPBDataTypeBool, |
|
|
|
.offset = offsetof(GPBField__storage_, packed), |
|
|
|
|
|
|
|
.defaultValue.valueBool = NO, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "optionsArray", |
|
|
|
.name = "optionsArray", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBOption), |
|
|
|
.number = GPBField_FieldNumber_OptionsArray, |
|
|
|
.number = GPBField_FieldNumber_OptionsArray, |
|
|
|
.hasIndex = GPBNoHasBit, |
|
|
|
.hasIndex = GPBNoHasBit, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBField__storage_, optionsArray), |
|
|
|
.flags = GPBFieldRepeated, |
|
|
|
.flags = GPBFieldRepeated, |
|
|
|
.dataType = GPBDataTypeMessage, |
|
|
|
.dataType = GPBDataTypeMessage, |
|
|
|
.offset = offsetof(GPBField__storage_, optionsArray), |
|
|
|
|
|
|
|
.defaultValue.valueMessage = nil, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBOption), |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "jsonName", |
|
|
|
.name = "jsonName", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
.number = GPBField_FieldNumber_JsonName, |
|
|
|
.number = GPBField_FieldNumber_JsonName, |
|
|
|
.hasIndex = 8, |
|
|
|
.hasIndex = 8, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBField__storage_, jsonName), |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.dataType = GPBDataTypeString, |
|
|
|
.dataType = GPBDataTypeString, |
|
|
|
.offset = offsetof(GPBField__storage_, jsonName), |
|
|
|
|
|
|
|
.defaultValue.valueString = nil, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "defaultValue", |
|
|
|
.name = "defaultValue", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
.number = GPBField_FieldNumber_DefaultValue, |
|
|
|
.number = GPBField_FieldNumber_DefaultValue, |
|
|
|
.hasIndex = 9, |
|
|
|
.hasIndex = 9, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBField__storage_, defaultValue), |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.dataType = GPBDataTypeString, |
|
|
|
.dataType = GPBDataTypeString, |
|
|
|
.offset = offsetof(GPBField__storage_, defaultValue), |
|
|
|
|
|
|
|
.defaultValue.valueString = nil, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
static GPBMessageEnumDescription enums[] = { |
|
|
|
|
|
|
|
{ .enumDescriptorFunc = GPBField_Kind_EnumDescriptor }, |
|
|
|
|
|
|
|
{ .enumDescriptorFunc = GPBField_Cardinality_EnumDescriptor }, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
#if GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS |
|
|
|
|
|
|
|
const char *extraTextFormatInfo = NULL; |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
static const char *extraTextFormatInfo = "\001\006\004\241!!\000"; |
|
|
|
|
|
|
|
#endif // GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS |
|
|
|
|
|
|
|
GPBDescriptor *localDescriptor = |
|
|
|
GPBDescriptor *localDescriptor = |
|
|
|
[GPBDescriptor allocDescriptorForClass:[GPBField class] |
|
|
|
[GPBDescriptor allocDescriptorForClass:[GPBField class] |
|
|
|
rootClass:[GPBTypeRoot class] |
|
|
|
rootClass:[GPBTypeRoot class] |
|
|
|
file:GPBTypeRoot_FileDescriptor() |
|
|
|
file:GPBTypeRoot_FileDescriptor() |
|
|
|
fields:fields |
|
|
|
fields:fields |
|
|
|
fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription) |
|
|
|
fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
|
|
|
oneofs:NULL |
|
|
|
|
|
|
|
oneofCount:0 |
|
|
|
|
|
|
|
enums:enums |
|
|
|
|
|
|
|
enumCount:sizeof(enums) / sizeof(GPBMessageEnumDescription) |
|
|
|
|
|
|
|
ranges:NULL |
|
|
|
|
|
|
|
rangeCount:0 |
|
|
|
|
|
|
|
storageSize:sizeof(GPBField__storage_) |
|
|
|
storageSize:sizeof(GPBField__storage_) |
|
|
|
wireFormat:NO |
|
|
|
flags:0]; |
|
|
|
extraTextFormatInfo:extraTextFormatInfo]; |
|
|
|
#if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS |
|
|
|
|
|
|
|
static const char *extraTextFormatInfo = |
|
|
|
|
|
|
|
"\001\006\004\241!!\000"; |
|
|
|
|
|
|
|
[localDescriptor setupExtraTextInfo:extraTextFormatInfo]; |
|
|
|
|
|
|
|
#endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS |
|
|
|
NSAssert(descriptor == nil, @"Startup recursed!"); |
|
|
|
NSAssert(descriptor == nil, @"Startup recursed!"); |
|
|
|
descriptor = localDescriptor; |
|
|
|
descriptor = localDescriptor; |
|
|
|
} |
|
|
|
} |
|
|
@ -402,31 +359,43 @@ void SetGPBField_Cardinality_RawValue(GPBField *message, int32_t value) { |
|
|
|
GPBEnumDescriptor *GPBField_Kind_EnumDescriptor(void) { |
|
|
|
GPBEnumDescriptor *GPBField_Kind_EnumDescriptor(void) { |
|
|
|
static GPBEnumDescriptor *descriptor = NULL; |
|
|
|
static GPBEnumDescriptor *descriptor = NULL; |
|
|
|
if (!descriptor) { |
|
|
|
if (!descriptor) { |
|
|
|
static GPBMessageEnumValueDescription values[] = { |
|
|
|
static const char *valueNames = |
|
|
|
{ .name = "TypeUnknown", .number = GPBField_Kind_TypeUnknown }, |
|
|
|
"TypeUnknown\000TypeDouble\000TypeFloat\000TypeInt" |
|
|
|
{ .name = "TypeDouble", .number = GPBField_Kind_TypeDouble }, |
|
|
|
"64\000TypeUint64\000TypeInt32\000TypeFixed64\000Type" |
|
|
|
{ .name = "TypeFloat", .number = GPBField_Kind_TypeFloat }, |
|
|
|
"Fixed32\000TypeBool\000TypeString\000TypeGroup\000Ty" |
|
|
|
{ .name = "TypeInt64", .number = GPBField_Kind_TypeInt64 }, |
|
|
|
"peMessage\000TypeBytes\000TypeUint32\000TypeEnum\000" |
|
|
|
{ .name = "TypeUint64", .number = GPBField_Kind_TypeUint64 }, |
|
|
|
"TypeSfixed32\000TypeSfixed64\000TypeSint32\000Typ" |
|
|
|
{ .name = "TypeInt32", .number = GPBField_Kind_TypeInt32 }, |
|
|
|
"eSint64\000"; |
|
|
|
{ .name = "TypeFixed64", .number = GPBField_Kind_TypeFixed64 }, |
|
|
|
static const int32_t values[] = { |
|
|
|
{ .name = "TypeFixed32", .number = GPBField_Kind_TypeFixed32 }, |
|
|
|
GPBField_Kind_TypeUnknown, |
|
|
|
{ .name = "TypeBool", .number = GPBField_Kind_TypeBool }, |
|
|
|
GPBField_Kind_TypeDouble, |
|
|
|
{ .name = "TypeString", .number = GPBField_Kind_TypeString }, |
|
|
|
GPBField_Kind_TypeFloat, |
|
|
|
{ .name = "TypeGroup", .number = GPBField_Kind_TypeGroup }, |
|
|
|
GPBField_Kind_TypeInt64, |
|
|
|
{ .name = "TypeMessage", .number = GPBField_Kind_TypeMessage }, |
|
|
|
GPBField_Kind_TypeUint64, |
|
|
|
{ .name = "TypeBytes", .number = GPBField_Kind_TypeBytes }, |
|
|
|
GPBField_Kind_TypeInt32, |
|
|
|
{ .name = "TypeUint32", .number = GPBField_Kind_TypeUint32 }, |
|
|
|
GPBField_Kind_TypeFixed64, |
|
|
|
{ .name = "TypeEnum", .number = GPBField_Kind_TypeEnum }, |
|
|
|
GPBField_Kind_TypeFixed32, |
|
|
|
{ .name = "TypeSfixed32", .number = GPBField_Kind_TypeSfixed32 }, |
|
|
|
GPBField_Kind_TypeBool, |
|
|
|
{ .name = "TypeSfixed64", .number = GPBField_Kind_TypeSfixed64 }, |
|
|
|
GPBField_Kind_TypeString, |
|
|
|
{ .name = "TypeSint32", .number = GPBField_Kind_TypeSint32 }, |
|
|
|
GPBField_Kind_TypeGroup, |
|
|
|
{ .name = "TypeSint64", .number = GPBField_Kind_TypeSint64 }, |
|
|
|
GPBField_Kind_TypeMessage, |
|
|
|
|
|
|
|
GPBField_Kind_TypeBytes, |
|
|
|
|
|
|
|
GPBField_Kind_TypeUint32, |
|
|
|
|
|
|
|
GPBField_Kind_TypeEnum, |
|
|
|
|
|
|
|
GPBField_Kind_TypeSfixed32, |
|
|
|
|
|
|
|
GPBField_Kind_TypeSfixed64, |
|
|
|
|
|
|
|
GPBField_Kind_TypeSint32, |
|
|
|
|
|
|
|
GPBField_Kind_TypeSint64, |
|
|
|
}; |
|
|
|
}; |
|
|
|
descriptor = [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(GPBField_Kind) |
|
|
|
GPBEnumDescriptor *worker = |
|
|
|
|
|
|
|
[GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(GPBField_Kind) |
|
|
|
|
|
|
|
valueNames:valueNames |
|
|
|
values:values |
|
|
|
values:values |
|
|
|
valueCount:sizeof(values) / sizeof(GPBMessageEnumValueDescription) |
|
|
|
count:(uint32_t)(sizeof(values) / sizeof(int32_t)) |
|
|
|
enumVerifier:GPBField_Kind_IsValidValue]; |
|
|
|
enumVerifier:GPBField_Kind_IsValidValue]; |
|
|
|
|
|
|
|
if (!OSAtomicCompareAndSwapPtrBarrier(nil, worker, (void * volatile *)&descriptor)) { |
|
|
|
|
|
|
|
[worker release]; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return descriptor; |
|
|
|
return descriptor; |
|
|
|
} |
|
|
|
} |
|
|
@ -463,16 +432,24 @@ BOOL GPBField_Kind_IsValidValue(int32_t value__) { |
|
|
|
GPBEnumDescriptor *GPBField_Cardinality_EnumDescriptor(void) { |
|
|
|
GPBEnumDescriptor *GPBField_Cardinality_EnumDescriptor(void) { |
|
|
|
static GPBEnumDescriptor *descriptor = NULL; |
|
|
|
static GPBEnumDescriptor *descriptor = NULL; |
|
|
|
if (!descriptor) { |
|
|
|
if (!descriptor) { |
|
|
|
static GPBMessageEnumValueDescription values[] = { |
|
|
|
static const char *valueNames = |
|
|
|
{ .name = "CardinalityUnknown", .number = GPBField_Cardinality_CardinalityUnknown }, |
|
|
|
"CardinalityUnknown\000CardinalityOptional\000C" |
|
|
|
{ .name = "CardinalityOptional", .number = GPBField_Cardinality_CardinalityOptional }, |
|
|
|
"ardinalityRequired\000CardinalityRepeated\000"; |
|
|
|
{ .name = "CardinalityRequired", .number = GPBField_Cardinality_CardinalityRequired }, |
|
|
|
static const int32_t values[] = { |
|
|
|
{ .name = "CardinalityRepeated", .number = GPBField_Cardinality_CardinalityRepeated }, |
|
|
|
GPBField_Cardinality_CardinalityUnknown, |
|
|
|
|
|
|
|
GPBField_Cardinality_CardinalityOptional, |
|
|
|
|
|
|
|
GPBField_Cardinality_CardinalityRequired, |
|
|
|
|
|
|
|
GPBField_Cardinality_CardinalityRepeated, |
|
|
|
}; |
|
|
|
}; |
|
|
|
descriptor = [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(GPBField_Cardinality) |
|
|
|
GPBEnumDescriptor *worker = |
|
|
|
|
|
|
|
[GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(GPBField_Cardinality) |
|
|
|
|
|
|
|
valueNames:valueNames |
|
|
|
values:values |
|
|
|
values:values |
|
|
|
valueCount:sizeof(values) / sizeof(GPBMessageEnumValueDescription) |
|
|
|
count:(uint32_t)(sizeof(values) / sizeof(int32_t)) |
|
|
|
enumVerifier:GPBField_Cardinality_IsValidValue]; |
|
|
|
enumVerifier:GPBField_Cardinality_IsValidValue]; |
|
|
|
|
|
|
|
if (!OSAtomicCompareAndSwapPtrBarrier(nil, worker, (void * volatile *)&descriptor)) { |
|
|
|
|
|
|
|
[worker release]; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return descriptor; |
|
|
|
return descriptor; |
|
|
|
} |
|
|
|
} |
|
|
@ -516,58 +493,48 @@ typedef struct GPBEnum__storage_ { |
|
|
|
static GPBMessageFieldDescription fields[] = { |
|
|
|
static GPBMessageFieldDescription fields[] = { |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "name", |
|
|
|
.name = "name", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
.number = GPBEnum_FieldNumber_Name, |
|
|
|
.number = GPBEnum_FieldNumber_Name, |
|
|
|
.hasIndex = 0, |
|
|
|
.hasIndex = 0, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBEnum__storage_, name), |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.dataType = GPBDataTypeString, |
|
|
|
.dataType = GPBDataTypeString, |
|
|
|
.offset = offsetof(GPBEnum__storage_, name), |
|
|
|
|
|
|
|
.defaultValue.valueString = nil, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "enumvalueArray", |
|
|
|
.name = "enumvalueArray", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBEnumValue), |
|
|
|
.number = GPBEnum_FieldNumber_EnumvalueArray, |
|
|
|
.number = GPBEnum_FieldNumber_EnumvalueArray, |
|
|
|
.hasIndex = GPBNoHasBit, |
|
|
|
.hasIndex = GPBNoHasBit, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBEnum__storage_, enumvalueArray), |
|
|
|
.flags = GPBFieldRepeated, |
|
|
|
.flags = GPBFieldRepeated, |
|
|
|
.dataType = GPBDataTypeMessage, |
|
|
|
.dataType = GPBDataTypeMessage, |
|
|
|
.offset = offsetof(GPBEnum__storage_, enumvalueArray), |
|
|
|
|
|
|
|
.defaultValue.valueMessage = nil, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBEnumValue), |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "optionsArray", |
|
|
|
.name = "optionsArray", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBOption), |
|
|
|
.number = GPBEnum_FieldNumber_OptionsArray, |
|
|
|
.number = GPBEnum_FieldNumber_OptionsArray, |
|
|
|
.hasIndex = GPBNoHasBit, |
|
|
|
.hasIndex = GPBNoHasBit, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBEnum__storage_, optionsArray), |
|
|
|
.flags = GPBFieldRepeated, |
|
|
|
.flags = GPBFieldRepeated, |
|
|
|
.dataType = GPBDataTypeMessage, |
|
|
|
.dataType = GPBDataTypeMessage, |
|
|
|
.offset = offsetof(GPBEnum__storage_, optionsArray), |
|
|
|
|
|
|
|
.defaultValue.valueMessage = nil, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBOption), |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "sourceContext", |
|
|
|
.name = "sourceContext", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBSourceContext), |
|
|
|
.number = GPBEnum_FieldNumber_SourceContext, |
|
|
|
.number = GPBEnum_FieldNumber_SourceContext, |
|
|
|
.hasIndex = 3, |
|
|
|
.hasIndex = 1, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBEnum__storage_, sourceContext), |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.dataType = GPBDataTypeMessage, |
|
|
|
.dataType = GPBDataTypeMessage, |
|
|
|
.offset = offsetof(GPBEnum__storage_, sourceContext), |
|
|
|
|
|
|
|
.defaultValue.valueMessage = nil, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBSourceContext), |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "syntax", |
|
|
|
.name = "syntax", |
|
|
|
|
|
|
|
.dataTypeSpecific.enumDescFunc = GPBSyntax_EnumDescriptor, |
|
|
|
.number = GPBEnum_FieldNumber_Syntax, |
|
|
|
.number = GPBEnum_FieldNumber_Syntax, |
|
|
|
.hasIndex = 4, |
|
|
|
.hasIndex = 2, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBEnum__storage_, syntax), |
|
|
|
.flags = GPBFieldOptional | GPBFieldHasEnumDescriptor, |
|
|
|
.flags = GPBFieldOptional | GPBFieldHasEnumDescriptor, |
|
|
|
.dataType = GPBDataTypeEnum, |
|
|
|
.dataType = GPBDataTypeEnum, |
|
|
|
.offset = offsetof(GPBEnum__storage_, syntax), |
|
|
|
|
|
|
|
.defaultValue.valueEnum = GPBSyntax_SyntaxProto2, |
|
|
|
|
|
|
|
.dataTypeSpecific.enumDescFunc = GPBSyntax_EnumDescriptor, |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
GPBDescriptor *localDescriptor = |
|
|
|
GPBDescriptor *localDescriptor = |
|
|
@ -575,15 +542,9 @@ typedef struct GPBEnum__storage_ { |
|
|
|
rootClass:[GPBTypeRoot class] |
|
|
|
rootClass:[GPBTypeRoot class] |
|
|
|
file:GPBTypeRoot_FileDescriptor() |
|
|
|
file:GPBTypeRoot_FileDescriptor() |
|
|
|
fields:fields |
|
|
|
fields:fields |
|
|
|
fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription) |
|
|
|
fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
|
|
|
oneofs:NULL |
|
|
|
|
|
|
|
oneofCount:0 |
|
|
|
|
|
|
|
enums:NULL |
|
|
|
|
|
|
|
enumCount:0 |
|
|
|
|
|
|
|
ranges:NULL |
|
|
|
|
|
|
|
rangeCount:0 |
|
|
|
|
|
|
|
storageSize:sizeof(GPBEnum__storage_) |
|
|
|
storageSize:sizeof(GPBEnum__storage_) |
|
|
|
wireFormat:NO]; |
|
|
|
flags:0]; |
|
|
|
NSAssert(descriptor == nil, @"Startup recursed!"); |
|
|
|
NSAssert(descriptor == nil, @"Startup recursed!"); |
|
|
|
descriptor = localDescriptor; |
|
|
|
descriptor = localDescriptor; |
|
|
|
} |
|
|
|
} |
|
|
@ -627,36 +588,30 @@ typedef struct GPBEnumValue__storage_ { |
|
|
|
static GPBMessageFieldDescription fields[] = { |
|
|
|
static GPBMessageFieldDescription fields[] = { |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "name", |
|
|
|
.name = "name", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
.number = GPBEnumValue_FieldNumber_Name, |
|
|
|
.number = GPBEnumValue_FieldNumber_Name, |
|
|
|
.hasIndex = 0, |
|
|
|
.hasIndex = 0, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBEnumValue__storage_, name), |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.dataType = GPBDataTypeString, |
|
|
|
.dataType = GPBDataTypeString, |
|
|
|
.offset = offsetof(GPBEnumValue__storage_, name), |
|
|
|
|
|
|
|
.defaultValue.valueString = nil, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "number", |
|
|
|
.name = "number", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
.number = GPBEnumValue_FieldNumber_Number, |
|
|
|
.number = GPBEnumValue_FieldNumber_Number, |
|
|
|
.hasIndex = 1, |
|
|
|
.hasIndex = 1, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBEnumValue__storage_, number), |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.dataType = GPBDataTypeInt32, |
|
|
|
.dataType = GPBDataTypeInt32, |
|
|
|
.offset = offsetof(GPBEnumValue__storage_, number), |
|
|
|
|
|
|
|
.defaultValue.valueInt32 = 0, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "optionsArray", |
|
|
|
.name = "optionsArray", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBOption), |
|
|
|
.number = GPBEnumValue_FieldNumber_OptionsArray, |
|
|
|
.number = GPBEnumValue_FieldNumber_OptionsArray, |
|
|
|
.hasIndex = GPBNoHasBit, |
|
|
|
.hasIndex = GPBNoHasBit, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBEnumValue__storage_, optionsArray), |
|
|
|
.flags = GPBFieldRepeated, |
|
|
|
.flags = GPBFieldRepeated, |
|
|
|
.dataType = GPBDataTypeMessage, |
|
|
|
.dataType = GPBDataTypeMessage, |
|
|
|
.offset = offsetof(GPBEnumValue__storage_, optionsArray), |
|
|
|
|
|
|
|
.defaultValue.valueMessage = nil, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBOption), |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
GPBDescriptor *localDescriptor = |
|
|
|
GPBDescriptor *localDescriptor = |
|
|
@ -664,15 +619,9 @@ typedef struct GPBEnumValue__storage_ { |
|
|
|
rootClass:[GPBTypeRoot class] |
|
|
|
rootClass:[GPBTypeRoot class] |
|
|
|
file:GPBTypeRoot_FileDescriptor() |
|
|
|
file:GPBTypeRoot_FileDescriptor() |
|
|
|
fields:fields |
|
|
|
fields:fields |
|
|
|
fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription) |
|
|
|
fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
|
|
|
oneofs:NULL |
|
|
|
|
|
|
|
oneofCount:0 |
|
|
|
|
|
|
|
enums:NULL |
|
|
|
|
|
|
|
enumCount:0 |
|
|
|
|
|
|
|
ranges:NULL |
|
|
|
|
|
|
|
rangeCount:0 |
|
|
|
|
|
|
|
storageSize:sizeof(GPBEnumValue__storage_) |
|
|
|
storageSize:sizeof(GPBEnumValue__storage_) |
|
|
|
wireFormat:NO]; |
|
|
|
flags:0]; |
|
|
|
NSAssert(descriptor == nil, @"Startup recursed!"); |
|
|
|
NSAssert(descriptor == nil, @"Startup recursed!"); |
|
|
|
descriptor = localDescriptor; |
|
|
|
descriptor = localDescriptor; |
|
|
|
} |
|
|
|
} |
|
|
@ -702,25 +651,21 @@ typedef struct GPBOption__storage_ { |
|
|
|
static GPBMessageFieldDescription fields[] = { |
|
|
|
static GPBMessageFieldDescription fields[] = { |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "name", |
|
|
|
.name = "name", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
.number = GPBOption_FieldNumber_Name, |
|
|
|
.number = GPBOption_FieldNumber_Name, |
|
|
|
.hasIndex = 0, |
|
|
|
.hasIndex = 0, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBOption__storage_, name), |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.dataType = GPBDataTypeString, |
|
|
|
.dataType = GPBDataTypeString, |
|
|
|
.offset = offsetof(GPBOption__storage_, name), |
|
|
|
|
|
|
|
.defaultValue.valueString = nil, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = NULL, |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
.name = "value", |
|
|
|
.name = "value", |
|
|
|
|
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBAny), |
|
|
|
.number = GPBOption_FieldNumber_Value, |
|
|
|
.number = GPBOption_FieldNumber_Value, |
|
|
|
.hasIndex = 1, |
|
|
|
.hasIndex = 1, |
|
|
|
|
|
|
|
.offset = (uint32_t)offsetof(GPBOption__storage_, value), |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.flags = GPBFieldOptional, |
|
|
|
.dataType = GPBDataTypeMessage, |
|
|
|
.dataType = GPBDataTypeMessage, |
|
|
|
.offset = offsetof(GPBOption__storage_, value), |
|
|
|
|
|
|
|
.defaultValue.valueMessage = nil, |
|
|
|
|
|
|
|
.dataTypeSpecific.className = GPBStringifySymbol(GPBAny), |
|
|
|
|
|
|
|
.fieldOptions = NULL, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
GPBDescriptor *localDescriptor = |
|
|
|
GPBDescriptor *localDescriptor = |
|
|
@ -728,15 +673,9 @@ typedef struct GPBOption__storage_ { |
|
|
|
rootClass:[GPBTypeRoot class] |
|
|
|
rootClass:[GPBTypeRoot class] |
|
|
|
file:GPBTypeRoot_FileDescriptor() |
|
|
|
file:GPBTypeRoot_FileDescriptor() |
|
|
|
fields:fields |
|
|
|
fields:fields |
|
|
|
fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription) |
|
|
|
fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
|
|
|
oneofs:NULL |
|
|
|
|
|
|
|
oneofCount:0 |
|
|
|
|
|
|
|
enums:NULL |
|
|
|
|
|
|
|
enumCount:0 |
|
|
|
|
|
|
|
ranges:NULL |
|
|
|
|
|
|
|
rangeCount:0 |
|
|
|
|
|
|
|
storageSize:sizeof(GPBOption__storage_) |
|
|
|
storageSize:sizeof(GPBOption__storage_) |
|
|
|
wireFormat:NO]; |
|
|
|
flags:0]; |
|
|
|
NSAssert(descriptor == nil, @"Startup recursed!"); |
|
|
|
NSAssert(descriptor == nil, @"Startup recursed!"); |
|
|
|
descriptor = localDescriptor; |
|
|
|
descriptor = localDescriptor; |
|
|
|
} |
|
|
|
} |
|
|
|