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/struct.proto | 2 // source: google/protobuf/struct.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/Struct.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/Struct.pbobjc.h> | |
18 #else | |
19 #import "google/protobuf/Struct.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 #pragma clang diagnostic ignored "-Wdirect-ivar-access" | |
26 | 10 |
27 #pragma mark - GPBStructRoot | 11 #pragma mark - GPBStructRoot |
28 | 12 |
29 @implementation GPBStructRoot | 13 @implementation GPBStructRoot |
30 | 14 |
31 // No extensions in the file and no imports, so no need to generate | |
32 // +extensionRegistry. | |
33 | |
34 @end | 15 @end |
35 | 16 |
36 #pragma mark - GPBStructRoot_FileDescriptor | 17 #pragma mark - GPBStructRoot_FileDescriptor |
37 | 18 |
38 static GPBFileDescriptor *GPBStructRoot_FileDescriptor(void) { | 19 static GPBFileDescriptor *GPBStructRoot_FileDescriptor(void) { |
39 // 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 |
40 // about thread safety of the singleton. | 21 // about thread safety of the singleton. |
41 static GPBFileDescriptor *descriptor = NULL; | 22 static GPBFileDescriptor *descriptor = NULL; |
42 if (!descriptor) { | 23 if (!descriptor) { |
43 GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); | 24 GPBDebugCheckRuntimeVersion(); |
44 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" | 25 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" |
45 objcPrefix:@"GPB" | |
46 syntax:GPBFileSyntaxProto3]
; | 26 syntax:GPBFileSyntaxProto3]
; |
47 } | 27 } |
48 return descriptor; | 28 return descriptor; |
49 } | 29 } |
50 | 30 |
51 #pragma mark - Enum GPBNullValue | 31 #pragma mark - Enum GPBNullValue |
52 | 32 |
53 GPBEnumDescriptor *GPBNullValue_EnumDescriptor(void) { | 33 GPBEnumDescriptor *GPBNullValue_EnumDescriptor(void) { |
54 static GPBEnumDescriptor *descriptor = NULL; | 34 static GPBEnumDescriptor *descriptor = NULL; |
55 if (!descriptor) { | 35 if (!descriptor) { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 .dataType = GPBDataTypeMessage, | 87 .dataType = GPBDataTypeMessage, |
108 }, | 88 }, |
109 }; | 89 }; |
110 GPBDescriptor *localDescriptor = | 90 GPBDescriptor *localDescriptor = |
111 [GPBDescriptor allocDescriptorForClass:[GPBStruct class] | 91 [GPBDescriptor allocDescriptorForClass:[GPBStruct class] |
112 rootClass:[GPBStructRoot class] | 92 rootClass:[GPBStructRoot class] |
113 file:GPBStructRoot_FileDescriptor() | 93 file:GPBStructRoot_FileDescriptor() |
114 fields:fields | 94 fields:fields |
115 fieldCount:(uint32_t)(sizeof(fields) / sizeo
f(GPBMessageFieldDescription)) | 95 fieldCount:(uint32_t)(sizeof(fields) / sizeo
f(GPBMessageFieldDescription)) |
116 storageSize:sizeof(GPBStruct__storage_) | 96 storageSize:sizeof(GPBStruct__storage_) |
117 flags:GPBDescriptorInitializationFlag_N
one]; | 97 flags:0]; |
118 NSAssert(descriptor == nil, @"Startup recursed!"); | 98 NSAssert(descriptor == nil, @"Startup recursed!"); |
119 descriptor = localDescriptor; | 99 descriptor = localDescriptor; |
120 } | 100 } |
121 return descriptor; | 101 return descriptor; |
122 } | 102 } |
123 | 103 |
124 @end | 104 @end |
125 | 105 |
126 #pragma mark - GPBValue | 106 #pragma mark - GPBValue |
127 | 107 |
(...skipping 21 matching lines...) Expand all Loading... |
149 + (GPBDescriptor *)descriptor { | 129 + (GPBDescriptor *)descriptor { |
150 static GPBDescriptor *descriptor = nil; | 130 static GPBDescriptor *descriptor = nil; |
151 if (!descriptor) { | 131 if (!descriptor) { |
152 static GPBMessageFieldDescription fields[] = { | 132 static GPBMessageFieldDescription fields[] = { |
153 { | 133 { |
154 .name = "nullValue", | 134 .name = "nullValue", |
155 .dataTypeSpecific.enumDescFunc = GPBNullValue_EnumDescriptor, | 135 .dataTypeSpecific.enumDescFunc = GPBNullValue_EnumDescriptor, |
156 .number = GPBValue_FieldNumber_NullValue, | 136 .number = GPBValue_FieldNumber_NullValue, |
157 .hasIndex = -1, | 137 .hasIndex = -1, |
158 .offset = (uint32_t)offsetof(GPBValue__storage_, nullValue), | 138 .offset = (uint32_t)offsetof(GPBValue__storage_, nullValue), |
159 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor), | 139 .flags = GPBFieldOptional | GPBFieldHasEnumDescriptor, |
160 .dataType = GPBDataTypeEnum, | 140 .dataType = GPBDataTypeEnum, |
161 }, | 141 }, |
162 { | 142 { |
163 .name = "numberValue", | 143 .name = "numberValue", |
164 .dataTypeSpecific.className = NULL, | 144 .dataTypeSpecific.className = NULL, |
165 .number = GPBValue_FieldNumber_NumberValue, | 145 .number = GPBValue_FieldNumber_NumberValue, |
166 .hasIndex = -1, | 146 .hasIndex = -1, |
167 .offset = (uint32_t)offsetof(GPBValue__storage_, numberValue), | 147 .offset = (uint32_t)offsetof(GPBValue__storage_, numberValue), |
168 .flags = GPBFieldOptional, | 148 .flags = GPBFieldOptional, |
169 .dataType = GPBDataTypeDouble, | 149 .dataType = GPBDataTypeDouble, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 .dataType = GPBDataTypeMessage, | 185 .dataType = GPBDataTypeMessage, |
206 }, | 186 }, |
207 }; | 187 }; |
208 GPBDescriptor *localDescriptor = | 188 GPBDescriptor *localDescriptor = |
209 [GPBDescriptor allocDescriptorForClass:[GPBValue class] | 189 [GPBDescriptor allocDescriptorForClass:[GPBValue class] |
210 rootClass:[GPBStructRoot class] | 190 rootClass:[GPBStructRoot class] |
211 file:GPBStructRoot_FileDescriptor() | 191 file:GPBStructRoot_FileDescriptor() |
212 fields:fields | 192 fields:fields |
213 fieldCount:(uint32_t)(sizeof(fields) / sizeo
f(GPBMessageFieldDescription)) | 193 fieldCount:(uint32_t)(sizeof(fields) / sizeo
f(GPBMessageFieldDescription)) |
214 storageSize:sizeof(GPBValue__storage_) | 194 storageSize:sizeof(GPBValue__storage_) |
215 flags:GPBDescriptorInitializationFlag_N
one]; | 195 flags:0]; |
216 static const char *oneofs[] = { | 196 static const char *oneofs[] = { |
217 "kind", | 197 "kind", |
218 }; | 198 }; |
219 [localDescriptor setupOneofs:oneofs | 199 [localDescriptor setupOneofs:oneofs |
220 count:(uint32_t)(sizeof(oneofs) / sizeof(char*)) | 200 count:(uint32_t)(sizeof(oneofs) / sizeof(char*)) |
221 firstHasIndex:-1]; | 201 firstHasIndex:-1]; |
222 NSAssert(descriptor == nil, @"Startup recursed!"); | 202 NSAssert(descriptor == nil, @"Startup recursed!"); |
223 descriptor = localDescriptor; | 203 descriptor = localDescriptor; |
224 } | 204 } |
225 return descriptor; | 205 return descriptor; |
226 } | 206 } |
227 | 207 |
228 @end | 208 @end |
229 | 209 |
230 int32_t GPBValue_NullValue_RawValue(GPBValue *message) { | 210 int32_t GPBValue_NullValue_RawValue(GPBValue *message) { |
231 GPBDescriptor *descriptor = [GPBValue descriptor]; | 211 GPBDescriptor *descriptor = [GPBValue descriptor]; |
232 GPBFieldDescriptor *field = [descriptor fieldWithNumber:GPBValue_FieldNumber_N
ullValue]; | 212 GPBFieldDescriptor *field = [descriptor fieldWithNumber:GPBValue_FieldNumber_N
ullValue]; |
233 return GPBGetMessageInt32Field(message, field); | 213 return GPBGetMessageInt32Field(message, field); |
234 } | 214 } |
235 | 215 |
236 void SetGPBValue_NullValue_RawValue(GPBValue *message, int32_t value) { | 216 void SetGPBValue_NullValue_RawValue(GPBValue *message, int32_t value) { |
237 GPBDescriptor *descriptor = [GPBValue descriptor]; | 217 GPBDescriptor *descriptor = [GPBValue descriptor]; |
238 GPBFieldDescriptor *field = [descriptor fieldWithNumber:GPBValue_FieldNumber_N
ullValue]; | 218 GPBFieldDescriptor *field = [descriptor fieldWithNumber:GPBValue_FieldNumber_N
ullValue]; |
239 GPBSetInt32IvarWithFieldInternal(message, field, value, descriptor.file.syntax
); | 219 GPBSetInt32IvarWithFieldInternal(message, field, value, descriptor.file.syntax
); |
240 } | 220 } |
241 | 221 |
242 void GPBValue_ClearKindOneOfCase(GPBValue *message) { | 222 void GPBValue_ClearKindOneOfCase(GPBValue *message) { |
243 GPBDescriptor *descriptor = [message descriptor]; | 223 GPBDescriptor *descriptor = [message descriptor]; |
244 GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0]; | 224 GPBOneofDescriptor *oneof = descriptor->oneofs_[0]; |
245 GPBMaybeClearOneof(message, oneof, -1, 0); | 225 GPBMaybeClearOneof(message, oneof, -1, 0); |
246 } | 226 } |
247 #pragma mark - GPBListValue | 227 #pragma mark - GPBListValue |
248 | 228 |
249 @implementation GPBListValue | 229 @implementation GPBListValue |
250 | 230 |
251 @dynamic valuesArray, valuesArray_Count; | 231 @dynamic valuesArray, valuesArray_Count; |
252 | 232 |
253 typedef struct GPBListValue__storage_ { | 233 typedef struct GPBListValue__storage_ { |
254 uint32_t _has_storage_[1]; | 234 uint32_t _has_storage_[1]; |
(...skipping 16 matching lines...) Expand all Loading... |
271 .dataType = GPBDataTypeMessage, | 251 .dataType = GPBDataTypeMessage, |
272 }, | 252 }, |
273 }; | 253 }; |
274 GPBDescriptor *localDescriptor = | 254 GPBDescriptor *localDescriptor = |
275 [GPBDescriptor allocDescriptorForClass:[GPBListValue class] | 255 [GPBDescriptor allocDescriptorForClass:[GPBListValue class] |
276 rootClass:[GPBStructRoot class] | 256 rootClass:[GPBStructRoot class] |
277 file:GPBStructRoot_FileDescriptor() | 257 file:GPBStructRoot_FileDescriptor() |
278 fields:fields | 258 fields:fields |
279 fieldCount:(uint32_t)(sizeof(fields) / sizeo
f(GPBMessageFieldDescription)) | 259 fieldCount:(uint32_t)(sizeof(fields) / sizeo
f(GPBMessageFieldDescription)) |
280 storageSize:sizeof(GPBListValue__storage_) | 260 storageSize:sizeof(GPBListValue__storage_) |
281 flags:GPBDescriptorInitializationFlag_N
one]; | 261 flags:0]; |
282 NSAssert(descriptor == nil, @"Startup recursed!"); | 262 NSAssert(descriptor == nil, @"Startup recursed!"); |
283 descriptor = localDescriptor; | 263 descriptor = localDescriptor; |
284 } | 264 } |
285 return descriptor; | 265 return descriptor; |
286 } | 266 } |
287 | 267 |
288 @end | 268 @end |
289 | 269 |
290 | 270 |
291 #pragma clang diagnostic pop | 271 #pragma clang diagnostic pop |
292 | 272 |
293 // @@protoc_insertion_point(global_scope) | 273 // @@protoc_insertion_point(global_scope) |
OLD | NEW |