Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: third_party/protobuf/objectivec/google/protobuf/Any.pbobjc.m

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

Powered by Google App Engine
This is Rietveld 408576698