| OLD | NEW |
| 1 // Generated by the protocol buffer compiler. DO NOT EDIT! | 1 // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 // source: google/protobuf/any.proto | 2 // source: google/protobuf/any.proto |
| 3 | 3 |
| 4 // This CPP symbol can be defined to use imports that match up to the framework | 4 #import "GPBProtocolBuffers_RuntimeSupport.h" |
| 5 // imports needed when using CocoaPods. | 5 #import "google/protobuf/Any.pbobjc.h" |
| 6 #if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS) | |
| 7 #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0 | |
| 8 #endif | |
| 9 | |
| 10 #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS | |
| 11 #import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h> | |
| 12 #else | |
| 13 #import "GPBProtocolBuffers_RuntimeSupport.h" | |
| 14 #endif | |
| 15 | |
| 16 #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS | |
| 17 #import <Protobuf/Any.pbobjc.h> | |
| 18 #else | |
| 19 #import "google/protobuf/Any.pbobjc.h" | |
| 20 #endif | |
| 21 // @@protoc_insertion_point(imports) | 6 // @@protoc_insertion_point(imports) |
| 22 | 7 |
| 23 #pragma clang diagnostic push | 8 #pragma clang diagnostic push |
| 24 #pragma clang diagnostic ignored "-Wdeprecated-declarations" | 9 #pragma clang diagnostic ignored "-Wdeprecated-declarations" |
| 25 | 10 |
| 26 #pragma mark - GPBAnyRoot | 11 #pragma mark - GPBAnyRoot |
| 27 | 12 |
| 28 @implementation GPBAnyRoot | 13 @implementation GPBAnyRoot |
| 29 | 14 |
| 30 // No extensions in the file and no imports, so no need to generate | |
| 31 // +extensionRegistry. | |
| 32 | |
| 33 @end | 15 @end |
| 34 | 16 |
| 35 #pragma mark - GPBAnyRoot_FileDescriptor | 17 #pragma mark - GPBAnyRoot_FileDescriptor |
| 36 | 18 |
| 37 static GPBFileDescriptor *GPBAnyRoot_FileDescriptor(void) { | 19 static GPBFileDescriptor *GPBAnyRoot_FileDescriptor(void) { |
| 38 // This is called by +initialize so there is no need to worry | 20 // This is called by +initialize so there is no need to worry |
| 39 // about thread safety of the singleton. | 21 // about thread safety of the singleton. |
| 40 static GPBFileDescriptor *descriptor = NULL; | 22 static GPBFileDescriptor *descriptor = NULL; |
| 41 if (!descriptor) { | 23 if (!descriptor) { |
| 42 GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); | 24 GPBDebugCheckRuntimeVersion(); |
| 43 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" | 25 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" |
| 44 objcPrefix:@"GPB" | |
| 45 syntax:GPBFileSyntaxProto3]
; | 26 syntax:GPBFileSyntaxProto3]
; |
| 46 } | 27 } |
| 47 return descriptor; | 28 return descriptor; |
| 48 } | 29 } |
| 49 | 30 |
| 50 #pragma mark - GPBAny | 31 #pragma mark - GPBAny |
| 51 | 32 |
| 52 @implementation GPBAny | 33 @implementation GPBAny |
| 53 | 34 |
| 54 @dynamic typeURL; | 35 @dynamic typeURL; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 65 + (GPBDescriptor *)descriptor { | 46 + (GPBDescriptor *)descriptor { |
| 66 static GPBDescriptor *descriptor = nil; | 47 static GPBDescriptor *descriptor = nil; |
| 67 if (!descriptor) { | 48 if (!descriptor) { |
| 68 static GPBMessageFieldDescription fields[] = { | 49 static GPBMessageFieldDescription fields[] = { |
| 69 { | 50 { |
| 70 .name = "typeURL", | 51 .name = "typeURL", |
| 71 .dataTypeSpecific.className = NULL, | 52 .dataTypeSpecific.className = NULL, |
| 72 .number = GPBAny_FieldNumber_TypeURL, | 53 .number = GPBAny_FieldNumber_TypeURL, |
| 73 .hasIndex = 0, | 54 .hasIndex = 0, |
| 74 .offset = (uint32_t)offsetof(GPBAny__storage_, typeURL), | 55 .offset = (uint32_t)offsetof(GPBAny__storage_, typeURL), |
| 75 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom
), | 56 .flags = GPBFieldOptional | GPBFieldTextFormatNameCustom, |
| 76 .dataType = GPBDataTypeString, | 57 .dataType = GPBDataTypeString, |
| 77 }, | 58 }, |
| 78 { | 59 { |
| 79 .name = "value", | 60 .name = "value", |
| 80 .dataTypeSpecific.className = NULL, | 61 .dataTypeSpecific.className = NULL, |
| 81 .number = GPBAny_FieldNumber_Value, | 62 .number = GPBAny_FieldNumber_Value, |
| 82 .hasIndex = 1, | 63 .hasIndex = 1, |
| 83 .offset = (uint32_t)offsetof(GPBAny__storage_, value), | 64 .offset = (uint32_t)offsetof(GPBAny__storage_, value), |
| 84 .flags = GPBFieldOptional, | 65 .flags = GPBFieldOptional, |
| 85 .dataType = GPBDataTypeBytes, | 66 .dataType = GPBDataTypeBytes, |
| 86 }, | 67 }, |
| 87 }; | 68 }; |
| 88 GPBDescriptor *localDescriptor = | 69 GPBDescriptor *localDescriptor = |
| 89 [GPBDescriptor allocDescriptorForClass:[GPBAny class] | 70 [GPBDescriptor allocDescriptorForClass:[GPBAny class] |
| 90 rootClass:[GPBAnyRoot class] | 71 rootClass:[GPBAnyRoot class] |
| 91 file:GPBAnyRoot_FileDescriptor() | 72 file:GPBAnyRoot_FileDescriptor() |
| 92 fields:fields | 73 fields:fields |
| 93 fieldCount:(uint32_t)(sizeof(fields) / sizeo
f(GPBMessageFieldDescription)) | 74 fieldCount:(uint32_t)(sizeof(fields) / sizeo
f(GPBMessageFieldDescription)) |
| 94 storageSize:sizeof(GPBAny__storage_) | 75 storageSize:sizeof(GPBAny__storage_) |
| 95 flags:GPBDescriptorInitializationFlag_N
one]; | 76 flags:0]; |
| 96 #if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS | 77 #if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS |
| 97 static const char *extraTextFormatInfo = | 78 static const char *extraTextFormatInfo = |
| 98 "\001\001\004\241!!\000"; | 79 "\001\001\004\241!!\000"; |
| 99 [localDescriptor setupExtraTextInfo:extraTextFormatInfo]; | 80 [localDescriptor setupExtraTextInfo:extraTextFormatInfo]; |
| 100 #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS | 81 #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS |
| 101 NSAssert(descriptor == nil, @"Startup recursed!"); | 82 NSAssert(descriptor == nil, @"Startup recursed!"); |
| 102 descriptor = localDescriptor; | 83 descriptor = localDescriptor; |
| 103 } | 84 } |
| 104 return descriptor; | 85 return descriptor; |
| 105 } | 86 } |
| 106 | 87 |
| 107 @end | 88 @end |
| 108 | 89 |
| 109 | 90 |
| 110 #pragma clang diagnostic pop | 91 #pragma clang diagnostic pop |
| 111 | 92 |
| 112 // @@protoc_insertion_point(global_scope) | 93 // @@protoc_insertion_point(global_scope) |
| OLD | NEW |