| Index: third_party/protobuf/objectivec/google/protobuf/Struct.pbobjc.m
|
| diff --git a/third_party/protobuf/objectivec/google/protobuf/Struct.pbobjc.m b/third_party/protobuf/objectivec/google/protobuf/Struct.pbobjc.m
|
| index 609400274ae49938c6edea5d88308fcc50d058fc..f36ec582f9805d755462977e3bc97d0893793da9 100644
|
| --- a/third_party/protobuf/objectivec/google/protobuf/Struct.pbobjc.m
|
| +++ b/third_party/protobuf/objectivec/google/protobuf/Struct.pbobjc.m
|
| @@ -1,17 +1,36 @@
|
| // Generated by the protocol buffer compiler. DO NOT EDIT!
|
| // source: google/protobuf/struct.proto
|
|
|
| -#import "GPBProtocolBuffers_RuntimeSupport.h"
|
| -#import "google/protobuf/Struct.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/Struct.pbobjc.h>
|
| +#else
|
| + #import "google/protobuf/Struct.pbobjc.h"
|
| +#endif
|
| // @@protoc_insertion_point(imports)
|
|
|
| #pragma clang diagnostic push
|
| #pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
| +#pragma clang diagnostic ignored "-Wdirect-ivar-access"
|
|
|
| #pragma mark - GPBStructRoot
|
|
|
| @implementation GPBStructRoot
|
|
|
| +// No extensions in the file and no imports, so no need to generate
|
| +// +extensionRegistry.
|
| +
|
| @end
|
|
|
| #pragma mark - GPBStructRoot_FileDescriptor
|
| @@ -21,8 +40,9 @@ static GPBFileDescriptor *GPBStructRoot_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;
|
| @@ -94,7 +114,7 @@ typedef struct GPBStruct__storage_ {
|
| fields:fields
|
| fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
|
| storageSize:sizeof(GPBStruct__storage_)
|
| - flags:0];
|
| + flags:GPBDescriptorInitializationFlag_None];
|
| NSAssert(descriptor == nil, @"Startup recursed!");
|
| descriptor = localDescriptor;
|
| }
|
| @@ -136,7 +156,7 @@ typedef struct GPBValue__storage_ {
|
| .number = GPBValue_FieldNumber_NullValue,
|
| .hasIndex = -1,
|
| .offset = (uint32_t)offsetof(GPBValue__storage_, nullValue),
|
| - .flags = GPBFieldOptional | GPBFieldHasEnumDescriptor,
|
| + .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor),
|
| .dataType = GPBDataTypeEnum,
|
| },
|
| {
|
| @@ -192,7 +212,7 @@ typedef struct GPBValue__storage_ {
|
| fields:fields
|
| fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
|
| storageSize:sizeof(GPBValue__storage_)
|
| - flags:0];
|
| + flags:GPBDescriptorInitializationFlag_None];
|
| static const char *oneofs[] = {
|
| "kind",
|
| };
|
| @@ -221,7 +241,7 @@ void SetGPBValue_NullValue_RawValue(GPBValue *message, int32_t value) {
|
|
|
| void GPBValue_ClearKindOneOfCase(GPBValue *message) {
|
| GPBDescriptor *descriptor = [message descriptor];
|
| - GPBOneofDescriptor *oneof = descriptor->oneofs_[0];
|
| + GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
|
| GPBMaybeClearOneof(message, oneof, -1, 0);
|
| }
|
| #pragma mark - GPBListValue
|
| @@ -258,7 +278,7 @@ typedef struct GPBListValue__storage_ {
|
| fields:fields
|
| fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
|
| storageSize:sizeof(GPBListValue__storage_)
|
| - flags:0];
|
| + flags:GPBDescriptorInitializationFlag_None];
|
| NSAssert(descriptor == nil, @"Startup recursed!");
|
| descriptor = localDescriptor;
|
| }
|
|
|