| Index: third_party/protobuf/objectivec/google/protobuf/Type.pbobjc.m
|
| diff --git a/third_party/protobuf/objectivec/google/protobuf/Type.pbobjc.m b/third_party/protobuf/objectivec/google/protobuf/Type.pbobjc.m
|
| index 5554a222b5fba34173366224368bd82c91d21ce7..7a949388f8f4152cd2115216cd1e3063209446eb 100644
|
| --- a/third_party/protobuf/objectivec/google/protobuf/Type.pbobjc.m
|
| +++ b/third_party/protobuf/objectivec/google/protobuf/Type.pbobjc.m
|
| @@ -1,10 +1,27 @@
|
| // Generated by the protocol buffer compiler. DO NOT EDIT!
|
| // source: google/protobuf/type.proto
|
|
|
| -#import "GPBProtocolBuffers_RuntimeSupport.h"
|
| -#import "google/protobuf/Type.pbobjc.h"
|
| -#import "google/protobuf/Any.pbobjc.h"
|
| -#import "google/protobuf/SourceContext.pbobjc.h"
|
| +// 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/Type.pbobjc.h>
|
| + #import <Protobuf/Any.pbobjc.h>
|
| + #import <Protobuf/SourceContext.pbobjc.h>
|
| +#else
|
| + #import "google/protobuf/Type.pbobjc.h"
|
| + #import "google/protobuf/Any.pbobjc.h"
|
| + #import "google/protobuf/SourceContext.pbobjc.h"
|
| +#endif
|
| // @@protoc_insertion_point(imports)
|
|
|
| #pragma clang diagnostic push
|
| @@ -14,18 +31,8 @@
|
|
|
| @implementation GPBTypeRoot
|
|
|
| -+ (GPBExtensionRegistry*)extensionRegistry {
|
| - // This is called by +initialize so there is no need to worry
|
| - // about thread safety and initialization of registry.
|
| - static GPBExtensionRegistry* registry = nil;
|
| - if (!registry) {
|
| - GPBDebugCheckRuntimeVersion();
|
| - registry = [[GPBExtensionRegistry alloc] init];
|
| - [registry addExtensions:[GPBAnyRoot extensionRegistry]];
|
| - [registry addExtensions:[GPBSourceContextRoot extensionRegistry]];
|
| - }
|
| - return registry;
|
| -}
|
| +// No extensions in the file and none of the imports (direct or indirect)
|
| +// defined extensions, so no need to generate +extensionRegistry.
|
|
|
| @end
|
|
|
| @@ -36,8 +43,9 @@ static GPBFileDescriptor *GPBTypeRoot_FileDescriptor(void) {
|
| // about thread safety of the singleton.
|
| static GPBFileDescriptor *descriptor = NULL;
|
| if (!descriptor) {
|
| - GPBDebugCheckRuntimeVersion();
|
| + GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
|
| descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
|
| + objcPrefix:@"GPB"
|
| syntax:GPBFileSyntaxProto3];
|
| }
|
| return descriptor;
|
| @@ -155,7 +163,7 @@ typedef struct GPBType__storage_ {
|
| .number = GPBType_FieldNumber_Syntax,
|
| .hasIndex = 2,
|
| .offset = (uint32_t)offsetof(GPBType__storage_, syntax),
|
| - .flags = GPBFieldOptional | GPBFieldHasEnumDescriptor,
|
| + .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor),
|
| .dataType = GPBDataTypeEnum,
|
| },
|
| };
|
| @@ -166,7 +174,7 @@ typedef struct GPBType__storage_ {
|
| fields:fields
|
| fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
|
| storageSize:sizeof(GPBType__storage_)
|
| - flags:0];
|
| + flags:GPBDescriptorInitializationFlag_None];
|
| NSAssert(descriptor == nil, @"Startup recursed!");
|
| descriptor = localDescriptor;
|
| }
|
| @@ -227,7 +235,7 @@ typedef struct GPBField__storage_ {
|
| .number = GPBField_FieldNumber_Kind,
|
| .hasIndex = 0,
|
| .offset = (uint32_t)offsetof(GPBField__storage_, kind),
|
| - .flags = GPBFieldOptional | GPBFieldHasEnumDescriptor,
|
| + .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor),
|
| .dataType = GPBDataTypeEnum,
|
| },
|
| {
|
| @@ -236,7 +244,7 @@ typedef struct GPBField__storage_ {
|
| .number = GPBField_FieldNumber_Cardinality,
|
| .hasIndex = 1,
|
| .offset = (uint32_t)offsetof(GPBField__storage_, cardinality),
|
| - .flags = GPBFieldOptional | GPBFieldHasEnumDescriptor,
|
| + .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor),
|
| .dataType = GPBDataTypeEnum,
|
| },
|
| {
|
| @@ -263,7 +271,7 @@ typedef struct GPBField__storage_ {
|
| .number = GPBField_FieldNumber_TypeURL,
|
| .hasIndex = 4,
|
| .offset = (uint32_t)offsetof(GPBField__storage_, typeURL),
|
| - .flags = GPBFieldOptional | GPBFieldTextFormatNameCustom,
|
| + .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
|
| .dataType = GPBDataTypeString,
|
| },
|
| {
|
| @@ -319,7 +327,7 @@ typedef struct GPBField__storage_ {
|
| fields:fields
|
| fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
|
| storageSize:sizeof(GPBField__storage_)
|
| - flags:0];
|
| + flags:GPBDescriptorInitializationFlag_None];
|
| #if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
|
| static const char *extraTextFormatInfo =
|
| "\001\006\004\241!!\000";
|
| @@ -536,7 +544,7 @@ typedef struct GPBEnum__storage_ {
|
| .number = GPBEnum_FieldNumber_Syntax,
|
| .hasIndex = 2,
|
| .offset = (uint32_t)offsetof(GPBEnum__storage_, syntax),
|
| - .flags = GPBFieldOptional | GPBFieldHasEnumDescriptor,
|
| + .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor),
|
| .dataType = GPBDataTypeEnum,
|
| },
|
| };
|
| @@ -547,7 +555,7 @@ typedef struct GPBEnum__storage_ {
|
| fields:fields
|
| fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
|
| storageSize:sizeof(GPBEnum__storage_)
|
| - flags:0];
|
| + flags:GPBDescriptorInitializationFlag_None];
|
| NSAssert(descriptor == nil, @"Startup recursed!");
|
| descriptor = localDescriptor;
|
| }
|
| @@ -624,7 +632,7 @@ typedef struct GPBEnumValue__storage_ {
|
| fields:fields
|
| fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
|
| storageSize:sizeof(GPBEnumValue__storage_)
|
| - flags:0];
|
| + flags:GPBDescriptorInitializationFlag_None];
|
| NSAssert(descriptor == nil, @"Startup recursed!");
|
| descriptor = localDescriptor;
|
| }
|
| @@ -678,7 +686,7 @@ typedef struct GPBOption__storage_ {
|
| fields:fields
|
| fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
|
| storageSize:sizeof(GPBOption__storage_)
|
| - flags:0];
|
| + flags:GPBDescriptorInitializationFlag_None];
|
| NSAssert(descriptor == nil, @"Startup recursed!");
|
| descriptor = localDescriptor;
|
| }
|
|
|