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