1// Generated by the protocol buffer compiler. DO NOT EDIT! 2// source: google/protobuf/api.proto 3 4#import "GPBProtocolBuffers_RuntimeSupport.h" 5#import "google/protobuf/Api.pbobjc.h" 6#import "google/protobuf/SourceContext.pbobjc.h" 7#import "google/protobuf/Type.pbobjc.h" 8// @@protoc_insertion_point(imports) 9 10#pragma clang diagnostic push 11#pragma clang diagnostic ignored "-Wdeprecated-declarations" 12 13#pragma mark - GPBApiRoot 14 15@implementation GPBApiRoot 16 17+ (GPBExtensionRegistry*)extensionRegistry { 18 // This is called by +initialize so there is no need to worry 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 30@end 31 32#pragma mark - GPBApiRoot_FileDescriptor 33 34static GPBFileDescriptor *GPBApiRoot_FileDescriptor(void) { 35 // This is called by +initialize so there is no need to worry 36 // about thread safety of the singleton. 37 static GPBFileDescriptor *descriptor = NULL; 38 if (!descriptor) { 39 GPBDebugCheckRuntimeVersion(); 40 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" 41 syntax:GPBFileSyntaxProto3]; 42 } 43 return descriptor; 44} 45 46#pragma mark - GPBApi 47 48@implementation GPBApi 49 50@dynamic name; 51@dynamic methodsArray, methodsArray_Count; 52@dynamic optionsArray, optionsArray_Count; 53@dynamic version; 54@dynamic hasSourceContext, sourceContext; 55@dynamic mixinsArray, mixinsArray_Count; 56@dynamic syntax; 57 58typedef struct GPBApi__storage_ { 59 uint32_t _has_storage_[1]; 60 GPBSyntax syntax; 61 NSString *name; 62 NSMutableArray *methodsArray; 63 NSMutableArray *optionsArray; 64 NSString *version; 65 GPBSourceContext *sourceContext; 66 NSMutableArray *mixinsArray; 67} GPBApi__storage_; 68 69// This method is threadsafe because it is initially called 70// in +initialize for each subclass. 71+ (GPBDescriptor *)descriptor { 72 static GPBDescriptor *descriptor = nil; 73 if (!descriptor) { 74 static GPBMessageFieldDescription fields[] = { 75 { 76 .name = "name", 77 .dataTypeSpecific.className = NULL, 78 .number = GPBApi_FieldNumber_Name, 79 .hasIndex = 0, 80 .offset = (uint32_t)offsetof(GPBApi__storage_, name), 81 .flags = GPBFieldOptional, 82 .dataType = GPBDataTypeString, 83 }, 84 { 85 .name = "methodsArray", 86 .dataTypeSpecific.className = GPBStringifySymbol(GPBMethod), 87 .number = GPBApi_FieldNumber_MethodsArray, 88 .hasIndex = GPBNoHasBit, 89 .offset = (uint32_t)offsetof(GPBApi__storage_, methodsArray), 90 .flags = GPBFieldRepeated, 91 .dataType = GPBDataTypeMessage, 92 }, 93 { 94 .name = "optionsArray", 95 .dataTypeSpecific.className = GPBStringifySymbol(GPBOption), 96 .number = GPBApi_FieldNumber_OptionsArray, 97 .hasIndex = GPBNoHasBit, 98 .offset = (uint32_t)offsetof(GPBApi__storage_, optionsArray), 99 .flags = GPBFieldRepeated, 100 .dataType = GPBDataTypeMessage, 101 }, 102 { 103 .name = "version", 104 .dataTypeSpecific.className = NULL, 105 .number = GPBApi_FieldNumber_Version, 106 .hasIndex = 1, 107 .offset = (uint32_t)offsetof(GPBApi__storage_, version), 108 .flags = GPBFieldOptional, 109 .dataType = GPBDataTypeString, 110 }, 111 { 112 .name = "sourceContext", 113 .dataTypeSpecific.className = GPBStringifySymbol(GPBSourceContext), 114 .number = GPBApi_FieldNumber_SourceContext, 115 .hasIndex = 2, 116 .offset = (uint32_t)offsetof(GPBApi__storage_, sourceContext), 117 .flags = GPBFieldOptional, 118 .dataType = GPBDataTypeMessage, 119 }, 120 { 121 .name = "mixinsArray", 122 .dataTypeSpecific.className = GPBStringifySymbol(GPBMixin), 123 .number = GPBApi_FieldNumber_MixinsArray, 124 .hasIndex = GPBNoHasBit, 125 .offset = (uint32_t)offsetof(GPBApi__storage_, mixinsArray), 126 .flags = GPBFieldRepeated, 127 .dataType = GPBDataTypeMessage, 128 }, 129 { 130 .name = "syntax", 131 .dataTypeSpecific.enumDescFunc = GPBSyntax_EnumDescriptor, 132 .number = GPBApi_FieldNumber_Syntax, 133 .hasIndex = 3, 134 .offset = (uint32_t)offsetof(GPBApi__storage_, syntax), 135 .flags = GPBFieldOptional | GPBFieldHasEnumDescriptor, 136 .dataType = GPBDataTypeEnum, 137 }, 138 }; 139 GPBDescriptor *localDescriptor = 140 [GPBDescriptor allocDescriptorForClass:[GPBApi class] 141 rootClass:[GPBApiRoot class] 142 file:GPBApiRoot_FileDescriptor() 143 fields:fields 144 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) 145 storageSize:sizeof(GPBApi__storage_) 146 flags:0]; 147 NSAssert(descriptor == nil, @"Startup recursed!"); 148 descriptor = localDescriptor; 149 } 150 return descriptor; 151} 152 153@end 154 155int32_t GPBApi_Syntax_RawValue(GPBApi *message) { 156 GPBDescriptor *descriptor = [GPBApi descriptor]; 157 GPBFieldDescriptor *field = [descriptor fieldWithNumber:GPBApi_FieldNumber_Syntax]; 158 return GPBGetMessageInt32Field(message, field); 159} 160 161void SetGPBApi_Syntax_RawValue(GPBApi *message, int32_t value) { 162 GPBDescriptor *descriptor = [GPBApi descriptor]; 163 GPBFieldDescriptor *field = [descriptor fieldWithNumber:GPBApi_FieldNumber_Syntax]; 164 GPBSetInt32IvarWithFieldInternal(message, field, value, descriptor.file.syntax); 165} 166 167#pragma mark - GPBMethod 168 169@implementation GPBMethod 170 171@dynamic name; 172@dynamic requestTypeURL; 173@dynamic requestStreaming; 174@dynamic responseTypeURL; 175@dynamic responseStreaming; 176@dynamic optionsArray, optionsArray_Count; 177@dynamic syntax; 178 179typedef struct GPBMethod__storage_ { 180 uint32_t _has_storage_[1]; 181 GPBSyntax syntax; 182 NSString *name; 183 NSString *requestTypeURL; 184 NSString *responseTypeURL; 185 NSMutableArray *optionsArray; 186} GPBMethod__storage_; 187 188// This method is threadsafe because it is initially called 189// in +initialize for each subclass. 190+ (GPBDescriptor *)descriptor { 191 static GPBDescriptor *descriptor = nil; 192 if (!descriptor) { 193 static GPBMessageFieldDescription fields[] = { 194 { 195 .name = "name", 196 .dataTypeSpecific.className = NULL, 197 .number = GPBMethod_FieldNumber_Name, 198 .hasIndex = 0, 199 .offset = (uint32_t)offsetof(GPBMethod__storage_, name), 200 .flags = GPBFieldOptional, 201 .dataType = GPBDataTypeString, 202 }, 203 { 204 .name = "requestTypeURL", 205 .dataTypeSpecific.className = NULL, 206 .number = GPBMethod_FieldNumber_RequestTypeURL, 207 .hasIndex = 1, 208 .offset = (uint32_t)offsetof(GPBMethod__storage_, requestTypeURL), 209 .flags = GPBFieldOptional | GPBFieldTextFormatNameCustom, 210 .dataType = GPBDataTypeString, 211 }, 212 { 213 .name = "requestStreaming", 214 .dataTypeSpecific.className = NULL, 215 .number = GPBMethod_FieldNumber_RequestStreaming, 216 .hasIndex = 2, 217 .offset = 3, // Stored in _has_storage_ to save space. 218 .flags = GPBFieldOptional, 219 .dataType = GPBDataTypeBool, 220 }, 221 { 222 .name = "responseTypeURL", 223 .dataTypeSpecific.className = NULL, 224 .number = GPBMethod_FieldNumber_ResponseTypeURL, 225 .hasIndex = 4, 226 .offset = (uint32_t)offsetof(GPBMethod__storage_, responseTypeURL), 227 .flags = GPBFieldOptional | GPBFieldTextFormatNameCustom, 228 .dataType = GPBDataTypeString, 229 }, 230 { 231 .name = "responseStreaming", 232 .dataTypeSpecific.className = NULL, 233 .number = GPBMethod_FieldNumber_ResponseStreaming, 234 .hasIndex = 5, 235 .offset = 6, // Stored in _has_storage_ to save space. 236 .flags = GPBFieldOptional, 237 .dataType = GPBDataTypeBool, 238 }, 239 { 240 .name = "optionsArray", 241 .dataTypeSpecific.className = GPBStringifySymbol(GPBOption), 242 .number = GPBMethod_FieldNumber_OptionsArray, 243 .hasIndex = GPBNoHasBit, 244 .offset = (uint32_t)offsetof(GPBMethod__storage_, optionsArray), 245 .flags = GPBFieldRepeated, 246 .dataType = GPBDataTypeMessage, 247 }, 248 { 249 .name = "syntax", 250 .dataTypeSpecific.enumDescFunc = GPBSyntax_EnumDescriptor, 251 .number = GPBMethod_FieldNumber_Syntax, 252 .hasIndex = 7, 253 .offset = (uint32_t)offsetof(GPBMethod__storage_, syntax), 254 .flags = GPBFieldOptional | GPBFieldHasEnumDescriptor, 255 .dataType = GPBDataTypeEnum, 256 }, 257 }; 258 GPBDescriptor *localDescriptor = 259 [GPBDescriptor allocDescriptorForClass:[GPBMethod class] 260 rootClass:[GPBApiRoot class] 261 file:GPBApiRoot_FileDescriptor() 262 fields:fields 263 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) 264 storageSize:sizeof(GPBMethod__storage_) 265 flags:0]; 266#if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS 267 static const char *extraTextFormatInfo = 268 "\002\002\007\244\241!!\000\004\010\244\241!!\000"; 269 [localDescriptor setupExtraTextInfo:extraTextFormatInfo]; 270#endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS 271 NSAssert(descriptor == nil, @"Startup recursed!"); 272 descriptor = localDescriptor; 273 } 274 return descriptor; 275} 276 277@end 278 279int32_t GPBMethod_Syntax_RawValue(GPBMethod *message) { 280 GPBDescriptor *descriptor = [GPBMethod descriptor]; 281 GPBFieldDescriptor *field = [descriptor fieldWithNumber:GPBMethod_FieldNumber_Syntax]; 282 return GPBGetMessageInt32Field(message, field); 283} 284 285void SetGPBMethod_Syntax_RawValue(GPBMethod *message, int32_t value) { 286 GPBDescriptor *descriptor = [GPBMethod descriptor]; 287 GPBFieldDescriptor *field = [descriptor fieldWithNumber:GPBMethod_FieldNumber_Syntax]; 288 GPBSetInt32IvarWithFieldInternal(message, field, value, descriptor.file.syntax); 289} 290 291#pragma mark - GPBMixin 292 293@implementation GPBMixin 294 295@dynamic name; 296@dynamic root; 297 298typedef struct GPBMixin__storage_ { 299 uint32_t _has_storage_[1]; 300 NSString *name; 301 NSString *root; 302} GPBMixin__storage_; 303 304// This method is threadsafe because it is initially called 305// in +initialize for each subclass. 306+ (GPBDescriptor *)descriptor { 307 static GPBDescriptor *descriptor = nil; 308 if (!descriptor) { 309 static GPBMessageFieldDescription fields[] = { 310 { 311 .name = "name", 312 .dataTypeSpecific.className = NULL, 313 .number = GPBMixin_FieldNumber_Name, 314 .hasIndex = 0, 315 .offset = (uint32_t)offsetof(GPBMixin__storage_, name), 316 .flags = GPBFieldOptional, 317 .dataType = GPBDataTypeString, 318 }, 319 { 320 .name = "root", 321 .dataTypeSpecific.className = NULL, 322 .number = GPBMixin_FieldNumber_Root, 323 .hasIndex = 1, 324 .offset = (uint32_t)offsetof(GPBMixin__storage_, root), 325 .flags = GPBFieldOptional, 326 .dataType = GPBDataTypeString, 327 }, 328 }; 329 GPBDescriptor *localDescriptor = 330 [GPBDescriptor allocDescriptorForClass:[GPBMixin class] 331 rootClass:[GPBApiRoot class] 332 file:GPBApiRoot_FileDescriptor() 333 fields:fields 334 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) 335 storageSize:sizeof(GPBMixin__storage_) 336 flags:0]; 337 NSAssert(descriptor == nil, @"Startup recursed!"); 338 descriptor = localDescriptor; 339 } 340 return descriptor; 341} 342 343@end 344 345 346#pragma clang diagnostic pop 347 348// @@protoc_insertion_point(global_scope) 349