| 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/api.proto | 2 // source: google/protobuf/api.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/Api.pbobjc.h" | 5 // imports needed when using CocoaPods. |
| 6 #import "google/protobuf/SourceContext.pbobjc.h" | 6 #if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS) |
| 7 #import "google/protobuf/Type.pbobjc.h" | 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/Api.pbobjc.h> |
| 18 #import <Protobuf/SourceContext.pbobjc.h> |
| 19 #import <Protobuf/Type.pbobjc.h> |
| 20 #else |
| 21 #import "google/protobuf/Api.pbobjc.h" |
| 22 #import "google/protobuf/SourceContext.pbobjc.h" |
| 23 #import "google/protobuf/Type.pbobjc.h" |
| 24 #endif |
| 8 // @@protoc_insertion_point(imports) | 25 // @@protoc_insertion_point(imports) |
| 9 | 26 |
| 10 #pragma clang diagnostic push | 27 #pragma clang diagnostic push |
| 11 #pragma clang diagnostic ignored "-Wdeprecated-declarations" | 28 #pragma clang diagnostic ignored "-Wdeprecated-declarations" |
| 12 | 29 |
| 13 #pragma mark - GPBApiRoot | 30 #pragma mark - GPBApiRoot |
| 14 | 31 |
| 15 @implementation GPBApiRoot | 32 @implementation GPBApiRoot |
| 16 | 33 |
| 17 + (GPBExtensionRegistry*)extensionRegistry { | 34 // No extensions in the file and none of the imports (direct or indirect) |
| 18 // This is called by +initialize so there is no need to worry | 35 // defined extensions, so no need to generate +extensionRegistry. |
| 19 // about thread safety and initialization of registry. | |
| 20 static GPBExtensionRegistry* registry = nil; | |
| 21 if (!registry) { | |
| 22 GPBDebugCheckRuntimeVersion(); | |
| 23 registry = [[GPBExtensionRegistry alloc] init]; | |
| 24 [registry addExtensions:[GPBSourceContextRoot extensionRegistry]]; | |
| 25 [registry addExtensions:[GPBTypeRoot extensionRegistry]]; | |
| 26 } | |
| 27 return registry; | |
| 28 } | |
| 29 | 36 |
| 30 @end | 37 @end |
| 31 | 38 |
| 32 #pragma mark - GPBApiRoot_FileDescriptor | 39 #pragma mark - GPBApiRoot_FileDescriptor |
| 33 | 40 |
| 34 static GPBFileDescriptor *GPBApiRoot_FileDescriptor(void) { | 41 static GPBFileDescriptor *GPBApiRoot_FileDescriptor(void) { |
| 35 // This is called by +initialize so there is no need to worry | 42 // This is called by +initialize so there is no need to worry |
| 36 // about thread safety of the singleton. | 43 // about thread safety of the singleton. |
| 37 static GPBFileDescriptor *descriptor = NULL; | 44 static GPBFileDescriptor *descriptor = NULL; |
| 38 if (!descriptor) { | 45 if (!descriptor) { |
| 39 GPBDebugCheckRuntimeVersion(); | 46 GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); |
| 40 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" | 47 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" |
| 48 objcPrefix:@"GPB" |
| 41 syntax:GPBFileSyntaxProto3]
; | 49 syntax:GPBFileSyntaxProto3]
; |
| 42 } | 50 } |
| 43 return descriptor; | 51 return descriptor; |
| 44 } | 52 } |
| 45 | 53 |
| 46 #pragma mark - GPBApi | 54 #pragma mark - GPBApi |
| 47 | 55 |
| 48 @implementation GPBApi | 56 @implementation GPBApi |
| 49 | 57 |
| 50 @dynamic name; | 58 @dynamic name; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 .offset = (uint32_t)offsetof(GPBApi__storage_, mixinsArray), | 133 .offset = (uint32_t)offsetof(GPBApi__storage_, mixinsArray), |
| 126 .flags = GPBFieldRepeated, | 134 .flags = GPBFieldRepeated, |
| 127 .dataType = GPBDataTypeMessage, | 135 .dataType = GPBDataTypeMessage, |
| 128 }, | 136 }, |
| 129 { | 137 { |
| 130 .name = "syntax", | 138 .name = "syntax", |
| 131 .dataTypeSpecific.enumDescFunc = GPBSyntax_EnumDescriptor, | 139 .dataTypeSpecific.enumDescFunc = GPBSyntax_EnumDescriptor, |
| 132 .number = GPBApi_FieldNumber_Syntax, | 140 .number = GPBApi_FieldNumber_Syntax, |
| 133 .hasIndex = 3, | 141 .hasIndex = 3, |
| 134 .offset = (uint32_t)offsetof(GPBApi__storage_, syntax), | 142 .offset = (uint32_t)offsetof(GPBApi__storage_, syntax), |
| 135 .flags = GPBFieldOptional | GPBFieldHasEnumDescriptor, | 143 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor), |
| 136 .dataType = GPBDataTypeEnum, | 144 .dataType = GPBDataTypeEnum, |
| 137 }, | 145 }, |
| 138 }; | 146 }; |
| 139 GPBDescriptor *localDescriptor = | 147 GPBDescriptor *localDescriptor = |
| 140 [GPBDescriptor allocDescriptorForClass:[GPBApi class] | 148 [GPBDescriptor allocDescriptorForClass:[GPBApi class] |
| 141 rootClass:[GPBApiRoot class] | 149 rootClass:[GPBApiRoot class] |
| 142 file:GPBApiRoot_FileDescriptor() | 150 file:GPBApiRoot_FileDescriptor() |
| 143 fields:fields | 151 fields:fields |
| 144 fieldCount:(uint32_t)(sizeof(fields) / sizeo
f(GPBMessageFieldDescription)) | 152 fieldCount:(uint32_t)(sizeof(fields) / sizeo
f(GPBMessageFieldDescription)) |
| 145 storageSize:sizeof(GPBApi__storage_) | 153 storageSize:sizeof(GPBApi__storage_) |
| 146 flags:0]; | 154 flags:GPBDescriptorInitializationFlag_N
one]; |
| 147 NSAssert(descriptor == nil, @"Startup recursed!"); | 155 NSAssert(descriptor == nil, @"Startup recursed!"); |
| 148 descriptor = localDescriptor; | 156 descriptor = localDescriptor; |
| 149 } | 157 } |
| 150 return descriptor; | 158 return descriptor; |
| 151 } | 159 } |
| 152 | 160 |
| 153 @end | 161 @end |
| 154 | 162 |
| 155 int32_t GPBApi_Syntax_RawValue(GPBApi *message) { | 163 int32_t GPBApi_Syntax_RawValue(GPBApi *message) { |
| 156 GPBDescriptor *descriptor = [GPBApi descriptor]; | 164 GPBDescriptor *descriptor = [GPBApi descriptor]; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 .offset = (uint32_t)offsetof(GPBMethod__storage_, name), | 207 .offset = (uint32_t)offsetof(GPBMethod__storage_, name), |
| 200 .flags = GPBFieldOptional, | 208 .flags = GPBFieldOptional, |
| 201 .dataType = GPBDataTypeString, | 209 .dataType = GPBDataTypeString, |
| 202 }, | 210 }, |
| 203 { | 211 { |
| 204 .name = "requestTypeURL", | 212 .name = "requestTypeURL", |
| 205 .dataTypeSpecific.className = NULL, | 213 .dataTypeSpecific.className = NULL, |
| 206 .number = GPBMethod_FieldNumber_RequestTypeURL, | 214 .number = GPBMethod_FieldNumber_RequestTypeURL, |
| 207 .hasIndex = 1, | 215 .hasIndex = 1, |
| 208 .offset = (uint32_t)offsetof(GPBMethod__storage_, requestTypeURL), | 216 .offset = (uint32_t)offsetof(GPBMethod__storage_, requestTypeURL), |
| 209 .flags = GPBFieldOptional | GPBFieldTextFormatNameCustom, | 217 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom
), |
| 210 .dataType = GPBDataTypeString, | 218 .dataType = GPBDataTypeString, |
| 211 }, | 219 }, |
| 212 { | 220 { |
| 213 .name = "requestStreaming", | 221 .name = "requestStreaming", |
| 214 .dataTypeSpecific.className = NULL, | 222 .dataTypeSpecific.className = NULL, |
| 215 .number = GPBMethod_FieldNumber_RequestStreaming, | 223 .number = GPBMethod_FieldNumber_RequestStreaming, |
| 216 .hasIndex = 2, | 224 .hasIndex = 2, |
| 217 .offset = 3, // Stored in _has_storage_ to save space. | 225 .offset = 3, // Stored in _has_storage_ to save space. |
| 218 .flags = GPBFieldOptional, | 226 .flags = GPBFieldOptional, |
| 219 .dataType = GPBDataTypeBool, | 227 .dataType = GPBDataTypeBool, |
| 220 }, | 228 }, |
| 221 { | 229 { |
| 222 .name = "responseTypeURL", | 230 .name = "responseTypeURL", |
| 223 .dataTypeSpecific.className = NULL, | 231 .dataTypeSpecific.className = NULL, |
| 224 .number = GPBMethod_FieldNumber_ResponseTypeURL, | 232 .number = GPBMethod_FieldNumber_ResponseTypeURL, |
| 225 .hasIndex = 4, | 233 .hasIndex = 4, |
| 226 .offset = (uint32_t)offsetof(GPBMethod__storage_, responseTypeURL), | 234 .offset = (uint32_t)offsetof(GPBMethod__storage_, responseTypeURL), |
| 227 .flags = GPBFieldOptional | GPBFieldTextFormatNameCustom, | 235 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom
), |
| 228 .dataType = GPBDataTypeString, | 236 .dataType = GPBDataTypeString, |
| 229 }, | 237 }, |
| 230 { | 238 { |
| 231 .name = "responseStreaming", | 239 .name = "responseStreaming", |
| 232 .dataTypeSpecific.className = NULL, | 240 .dataTypeSpecific.className = NULL, |
| 233 .number = GPBMethod_FieldNumber_ResponseStreaming, | 241 .number = GPBMethod_FieldNumber_ResponseStreaming, |
| 234 .hasIndex = 5, | 242 .hasIndex = 5, |
| 235 .offset = 6, // Stored in _has_storage_ to save space. | 243 .offset = 6, // Stored in _has_storage_ to save space. |
| 236 .flags = GPBFieldOptional, | 244 .flags = GPBFieldOptional, |
| 237 .dataType = GPBDataTypeBool, | 245 .dataType = GPBDataTypeBool, |
| 238 }, | 246 }, |
| 239 { | 247 { |
| 240 .name = "optionsArray", | 248 .name = "optionsArray", |
| 241 .dataTypeSpecific.className = GPBStringifySymbol(GPBOption), | 249 .dataTypeSpecific.className = GPBStringifySymbol(GPBOption), |
| 242 .number = GPBMethod_FieldNumber_OptionsArray, | 250 .number = GPBMethod_FieldNumber_OptionsArray, |
| 243 .hasIndex = GPBNoHasBit, | 251 .hasIndex = GPBNoHasBit, |
| 244 .offset = (uint32_t)offsetof(GPBMethod__storage_, optionsArray), | 252 .offset = (uint32_t)offsetof(GPBMethod__storage_, optionsArray), |
| 245 .flags = GPBFieldRepeated, | 253 .flags = GPBFieldRepeated, |
| 246 .dataType = GPBDataTypeMessage, | 254 .dataType = GPBDataTypeMessage, |
| 247 }, | 255 }, |
| 248 { | 256 { |
| 249 .name = "syntax", | 257 .name = "syntax", |
| 250 .dataTypeSpecific.enumDescFunc = GPBSyntax_EnumDescriptor, | 258 .dataTypeSpecific.enumDescFunc = GPBSyntax_EnumDescriptor, |
| 251 .number = GPBMethod_FieldNumber_Syntax, | 259 .number = GPBMethod_FieldNumber_Syntax, |
| 252 .hasIndex = 7, | 260 .hasIndex = 7, |
| 253 .offset = (uint32_t)offsetof(GPBMethod__storage_, syntax), | 261 .offset = (uint32_t)offsetof(GPBMethod__storage_, syntax), |
| 254 .flags = GPBFieldOptional | GPBFieldHasEnumDescriptor, | 262 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor), |
| 255 .dataType = GPBDataTypeEnum, | 263 .dataType = GPBDataTypeEnum, |
| 256 }, | 264 }, |
| 257 }; | 265 }; |
| 258 GPBDescriptor *localDescriptor = | 266 GPBDescriptor *localDescriptor = |
| 259 [GPBDescriptor allocDescriptorForClass:[GPBMethod class] | 267 [GPBDescriptor allocDescriptorForClass:[GPBMethod class] |
| 260 rootClass:[GPBApiRoot class] | 268 rootClass:[GPBApiRoot class] |
| 261 file:GPBApiRoot_FileDescriptor() | 269 file:GPBApiRoot_FileDescriptor() |
| 262 fields:fields | 270 fields:fields |
| 263 fieldCount:(uint32_t)(sizeof(fields) / sizeo
f(GPBMessageFieldDescription)) | 271 fieldCount:(uint32_t)(sizeof(fields) / sizeo
f(GPBMessageFieldDescription)) |
| 264 storageSize:sizeof(GPBMethod__storage_) | 272 storageSize:sizeof(GPBMethod__storage_) |
| 265 flags:0]; | 273 flags:GPBDescriptorInitializationFlag_N
one]; |
| 266 #if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS | 274 #if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS |
| 267 static const char *extraTextFormatInfo = | 275 static const char *extraTextFormatInfo = |
| 268 "\002\002\007\244\241!!\000\004\010\244\241!!\000"; | 276 "\002\002\007\244\241!!\000\004\010\244\241!!\000"; |
| 269 [localDescriptor setupExtraTextInfo:extraTextFormatInfo]; | 277 [localDescriptor setupExtraTextInfo:extraTextFormatInfo]; |
| 270 #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS | 278 #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS |
| 271 NSAssert(descriptor == nil, @"Startup recursed!"); | 279 NSAssert(descriptor == nil, @"Startup recursed!"); |
| 272 descriptor = localDescriptor; | 280 descriptor = localDescriptor; |
| 273 } | 281 } |
| 274 return descriptor; | 282 return descriptor; |
| 275 } | 283 } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 .dataType = GPBDataTypeString, | 334 .dataType = GPBDataTypeString, |
| 327 }, | 335 }, |
| 328 }; | 336 }; |
| 329 GPBDescriptor *localDescriptor = | 337 GPBDescriptor *localDescriptor = |
| 330 [GPBDescriptor allocDescriptorForClass:[GPBMixin class] | 338 [GPBDescriptor allocDescriptorForClass:[GPBMixin class] |
| 331 rootClass:[GPBApiRoot class] | 339 rootClass:[GPBApiRoot class] |
| 332 file:GPBApiRoot_FileDescriptor() | 340 file:GPBApiRoot_FileDescriptor() |
| 333 fields:fields | 341 fields:fields |
| 334 fieldCount:(uint32_t)(sizeof(fields) / sizeo
f(GPBMessageFieldDescription)) | 342 fieldCount:(uint32_t)(sizeof(fields) / sizeo
f(GPBMessageFieldDescription)) |
| 335 storageSize:sizeof(GPBMixin__storage_) | 343 storageSize:sizeof(GPBMixin__storage_) |
| 336 flags:0]; | 344 flags:GPBDescriptorInitializationFlag_N
one]; |
| 337 NSAssert(descriptor == nil, @"Startup recursed!"); | 345 NSAssert(descriptor == nil, @"Startup recursed!"); |
| 338 descriptor = localDescriptor; | 346 descriptor = localDescriptor; |
| 339 } | 347 } |
| 340 return descriptor; | 348 return descriptor; |
| 341 } | 349 } |
| 342 | 350 |
| 343 @end | 351 @end |
| 344 | 352 |
| 345 | 353 |
| 346 #pragma clang diagnostic pop | 354 #pragma clang diagnostic pop |
| 347 | 355 |
| 348 // @@protoc_insertion_point(global_scope) | 356 // @@protoc_insertion_point(global_scope) |
| OLD | NEW |