| OLD | NEW |
| (Empty) |
| 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 mark - GPBApiRoot | |
| 11 | |
| 12 @implementation GPBApiRoot | |
| 13 | |
| 14 + (GPBExtensionRegistry*)extensionRegistry { | |
| 15 // This is called by +initialize so there is no need to worry | |
| 16 // about thread safety and initialization of registry. | |
| 17 static GPBExtensionRegistry* registry = nil; | |
| 18 if (!registry) { | |
| 19 GPBDebugCheckRuntimeVersion(); | |
| 20 registry = [[GPBExtensionRegistry alloc] init]; | |
| 21 [registry addExtensions:[GPBSourceContextRoot extensionRegistry]]; | |
| 22 [registry addExtensions:[GPBTypeRoot extensionRegistry]]; | |
| 23 } | |
| 24 return registry; | |
| 25 } | |
| 26 | |
| 27 @end | |
| 28 | |
| 29 #pragma mark - GPBApiRoot_FileDescriptor | |
| 30 | |
| 31 static GPBFileDescriptor *GPBApiRoot_FileDescriptor(void) { | |
| 32 // This is called by +initialize so there is no need to worry | |
| 33 // about thread safety of the singleton. | |
| 34 static GPBFileDescriptor *descriptor = NULL; | |
| 35 if (!descriptor) { | |
| 36 GPBDebugCheckRuntimeVersion(); | |
| 37 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" | |
| 38 syntax:GPBFileSyntaxProto3]
; | |
| 39 } | |
| 40 return descriptor; | |
| 41 } | |
| 42 | |
| 43 #pragma mark - GPBApi | |
| 44 | |
| 45 @implementation GPBApi | |
| 46 | |
| 47 @dynamic name; | |
| 48 @dynamic methodsArray, methodsArray_Count; | |
| 49 @dynamic optionsArray, optionsArray_Count; | |
| 50 @dynamic version; | |
| 51 @dynamic hasSourceContext, sourceContext; | |
| 52 | |
| 53 typedef struct GPBApi__storage_ { | |
| 54 uint32_t _has_storage_[1]; | |
| 55 NSString *name; | |
| 56 NSMutableArray *methodsArray; | |
| 57 NSMutableArray *optionsArray; | |
| 58 NSString *version; | |
| 59 GPBSourceContext *sourceContext; | |
| 60 } GPBApi__storage_; | |
| 61 | |
| 62 // This method is threadsafe because it is initially called | |
| 63 // in +initialize for each subclass. | |
| 64 + (GPBDescriptor *)descriptor { | |
| 65 static GPBDescriptor *descriptor = nil; | |
| 66 if (!descriptor) { | |
| 67 static GPBMessageFieldDescription fields[] = { | |
| 68 { | |
| 69 .name = "name", | |
| 70 .number = GPBApi_FieldNumber_Name, | |
| 71 .hasIndex = 0, | |
| 72 .flags = GPBFieldOptional, | |
| 73 .dataType = GPBDataTypeString, | |
| 74 .offset = offsetof(GPBApi__storage_, name), | |
| 75 .defaultValue.valueString = nil, | |
| 76 .dataTypeSpecific.className = NULL, | |
| 77 .fieldOptions = NULL, | |
| 78 }, | |
| 79 { | |
| 80 .name = "methodsArray", | |
| 81 .number = GPBApi_FieldNumber_MethodsArray, | |
| 82 .hasIndex = GPBNoHasBit, | |
| 83 .flags = GPBFieldRepeated, | |
| 84 .dataType = GPBDataTypeMessage, | |
| 85 .offset = offsetof(GPBApi__storage_, methodsArray), | |
| 86 .defaultValue.valueMessage = nil, | |
| 87 .dataTypeSpecific.className = GPBStringifySymbol(GPBMethod), | |
| 88 .fieldOptions = NULL, | |
| 89 }, | |
| 90 { | |
| 91 .name = "optionsArray", | |
| 92 .number = GPBApi_FieldNumber_OptionsArray, | |
| 93 .hasIndex = GPBNoHasBit, | |
| 94 .flags = GPBFieldRepeated, | |
| 95 .dataType = GPBDataTypeMessage, | |
| 96 .offset = offsetof(GPBApi__storage_, optionsArray), | |
| 97 .defaultValue.valueMessage = nil, | |
| 98 .dataTypeSpecific.className = GPBStringifySymbol(GPBOption), | |
| 99 .fieldOptions = NULL, | |
| 100 }, | |
| 101 { | |
| 102 .name = "version", | |
| 103 .number = GPBApi_FieldNumber_Version, | |
| 104 .hasIndex = 3, | |
| 105 .flags = GPBFieldOptional, | |
| 106 .dataType = GPBDataTypeString, | |
| 107 .offset = offsetof(GPBApi__storage_, version), | |
| 108 .defaultValue.valueString = nil, | |
| 109 .dataTypeSpecific.className = NULL, | |
| 110 .fieldOptions = NULL, | |
| 111 }, | |
| 112 { | |
| 113 .name = "sourceContext", | |
| 114 .number = GPBApi_FieldNumber_SourceContext, | |
| 115 .hasIndex = 4, | |
| 116 .flags = GPBFieldOptional, | |
| 117 .dataType = GPBDataTypeMessage, | |
| 118 .offset = offsetof(GPBApi__storage_, sourceContext), | |
| 119 .defaultValue.valueMessage = nil, | |
| 120 .dataTypeSpecific.className = GPBStringifySymbol(GPBSourceContext), | |
| 121 .fieldOptions = NULL, | |
| 122 }, | |
| 123 }; | |
| 124 GPBDescriptor *localDescriptor = | |
| 125 [GPBDescriptor allocDescriptorForClass:[GPBApi class] | |
| 126 rootClass:[GPBApiRoot class] | |
| 127 file:GPBApiRoot_FileDescriptor() | |
| 128 fields:fields | |
| 129 fieldCount:sizeof(fields) / sizeof(GPBMessag
eFieldDescription) | |
| 130 oneofs:NULL | |
| 131 oneofCount:0 | |
| 132 enums:NULL | |
| 133 enumCount:0 | |
| 134 ranges:NULL | |
| 135 rangeCount:0 | |
| 136 storageSize:sizeof(GPBApi__storage_) | |
| 137 wireFormat:NO]; | |
| 138 NSAssert(descriptor == nil, @"Startup recursed!"); | |
| 139 descriptor = localDescriptor; | |
| 140 } | |
| 141 return descriptor; | |
| 142 } | |
| 143 | |
| 144 @end | |
| 145 | |
| 146 #pragma mark - GPBMethod | |
| 147 | |
| 148 @implementation GPBMethod | |
| 149 | |
| 150 @dynamic name; | |
| 151 @dynamic requestTypeURL; | |
| 152 @dynamic requestStreaming; | |
| 153 @dynamic responseTypeURL; | |
| 154 @dynamic responseStreaming; | |
| 155 @dynamic optionsArray, optionsArray_Count; | |
| 156 | |
| 157 typedef struct GPBMethod__storage_ { | |
| 158 uint32_t _has_storage_[1]; | |
| 159 BOOL requestStreaming; | |
| 160 BOOL responseStreaming; | |
| 161 NSString *name; | |
| 162 NSString *requestTypeURL; | |
| 163 NSString *responseTypeURL; | |
| 164 NSMutableArray *optionsArray; | |
| 165 } GPBMethod__storage_; | |
| 166 | |
| 167 // This method is threadsafe because it is initially called | |
| 168 // in +initialize for each subclass. | |
| 169 + (GPBDescriptor *)descriptor { | |
| 170 static GPBDescriptor *descriptor = nil; | |
| 171 if (!descriptor) { | |
| 172 static GPBMessageFieldDescription fields[] = { | |
| 173 { | |
| 174 .name = "name", | |
| 175 .number = GPBMethod_FieldNumber_Name, | |
| 176 .hasIndex = 0, | |
| 177 .flags = GPBFieldOptional, | |
| 178 .dataType = GPBDataTypeString, | |
| 179 .offset = offsetof(GPBMethod__storage_, name), | |
| 180 .defaultValue.valueString = nil, | |
| 181 .dataTypeSpecific.className = NULL, | |
| 182 .fieldOptions = NULL, | |
| 183 }, | |
| 184 { | |
| 185 .name = "requestTypeURL", | |
| 186 .number = GPBMethod_FieldNumber_RequestTypeURL, | |
| 187 .hasIndex = 1, | |
| 188 .flags = GPBFieldOptional | GPBFieldTextFormatNameCustom, | |
| 189 .dataType = GPBDataTypeString, | |
| 190 .offset = offsetof(GPBMethod__storage_, requestTypeURL), | |
| 191 .defaultValue.valueString = nil, | |
| 192 .dataTypeSpecific.className = NULL, | |
| 193 .fieldOptions = NULL, | |
| 194 }, | |
| 195 { | |
| 196 .name = "requestStreaming", | |
| 197 .number = GPBMethod_FieldNumber_RequestStreaming, | |
| 198 .hasIndex = 2, | |
| 199 .flags = GPBFieldOptional, | |
| 200 .dataType = GPBDataTypeBool, | |
| 201 .offset = offsetof(GPBMethod__storage_, requestStreaming), | |
| 202 .defaultValue.valueBool = NO, | |
| 203 .dataTypeSpecific.className = NULL, | |
| 204 .fieldOptions = NULL, | |
| 205 }, | |
| 206 { | |
| 207 .name = "responseTypeURL", | |
| 208 .number = GPBMethod_FieldNumber_ResponseTypeURL, | |
| 209 .hasIndex = 3, | |
| 210 .flags = GPBFieldOptional | GPBFieldTextFormatNameCustom, | |
| 211 .dataType = GPBDataTypeString, | |
| 212 .offset = offsetof(GPBMethod__storage_, responseTypeURL), | |
| 213 .defaultValue.valueString = nil, | |
| 214 .dataTypeSpecific.className = NULL, | |
| 215 .fieldOptions = NULL, | |
| 216 }, | |
| 217 { | |
| 218 .name = "responseStreaming", | |
| 219 .number = GPBMethod_FieldNumber_ResponseStreaming, | |
| 220 .hasIndex = 4, | |
| 221 .flags = GPBFieldOptional, | |
| 222 .dataType = GPBDataTypeBool, | |
| 223 .offset = offsetof(GPBMethod__storage_, responseStreaming), | |
| 224 .defaultValue.valueBool = NO, | |
| 225 .dataTypeSpecific.className = NULL, | |
| 226 .fieldOptions = NULL, | |
| 227 }, | |
| 228 { | |
| 229 .name = "optionsArray", | |
| 230 .number = GPBMethod_FieldNumber_OptionsArray, | |
| 231 .hasIndex = GPBNoHasBit, | |
| 232 .flags = GPBFieldRepeated, | |
| 233 .dataType = GPBDataTypeMessage, | |
| 234 .offset = offsetof(GPBMethod__storage_, optionsArray), | |
| 235 .defaultValue.valueMessage = nil, | |
| 236 .dataTypeSpecific.className = GPBStringifySymbol(GPBOption), | |
| 237 .fieldOptions = NULL, | |
| 238 }, | |
| 239 }; | |
| 240 #if GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS | |
| 241 const char *extraTextFormatInfo = NULL; | |
| 242 #else | |
| 243 static const char *extraTextFormatInfo = "\002\002\007\244\241!!\000\004\010
\244\241!!\000"; | |
| 244 #endif // GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS | |
| 245 GPBDescriptor *localDescriptor = | |
| 246 [GPBDescriptor allocDescriptorForClass:[GPBMethod class] | |
| 247 rootClass:[GPBApiRoot class] | |
| 248 file:GPBApiRoot_FileDescriptor() | |
| 249 fields:fields | |
| 250 fieldCount:sizeof(fields) / sizeof(GPBMessag
eFieldDescription) | |
| 251 oneofs:NULL | |
| 252 oneofCount:0 | |
| 253 enums:NULL | |
| 254 enumCount:0 | |
| 255 ranges:NULL | |
| 256 rangeCount:0 | |
| 257 storageSize:sizeof(GPBMethod__storage_) | |
| 258 wireFormat:NO | |
| 259 extraTextFormatInfo:extraTextFormatInfo]; | |
| 260 NSAssert(descriptor == nil, @"Startup recursed!"); | |
| 261 descriptor = localDescriptor; | |
| 262 } | |
| 263 return descriptor; | |
| 264 } | |
| 265 | |
| 266 @end | |
| 267 | |
| 268 | |
| 269 // @@protoc_insertion_point(global_scope) | |
| OLD | NEW |