GPBWrappers.pbobjc.m 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/wrappers.proto
  3. // This CPP symbol can be defined to use imports that match up to the framework
  4. // imports needed when using CocoaPods.
  5. #if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
  6. #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
  7. #endif
  8. #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
  9. #import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h>
  10. #else
  11. #import "GPBProtocolBuffers_RuntimeSupport.h"
  12. #endif
  13. #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
  14. #import <Protobuf/GPBWrappers.pbobjc.h>
  15. #else
  16. #import "GPBWrappers.pbobjc.h"
  17. #endif
  18. // @@protoc_insertion_point(imports)
  19. #pragma clang diagnostic push
  20. #pragma clang diagnostic ignored "-Wdeprecated-declarations"
  21. #pragma mark - GPBWrappersRoot
  22. @implementation GPBWrappersRoot
  23. // No extensions in the file and no imports, so no need to generate
  24. // +extensionRegistry.
  25. @end
  26. #pragma mark - GPBWrappersRoot_FileDescriptor
  27. static GPBFileDescriptor *GPBWrappersRoot_FileDescriptor(void) {
  28. // This is called by +initialize so there is no need to worry
  29. // about thread safety of the singleton.
  30. static GPBFileDescriptor *descriptor = NULL;
  31. if (!descriptor) {
  32. GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
  33. descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
  34. objcPrefix:@"GPB"
  35. syntax:GPBFileSyntaxProto3];
  36. }
  37. return descriptor;
  38. }
  39. #pragma mark - GPBDoubleValue
  40. @implementation GPBDoubleValue
  41. @dynamic value;
  42. typedef struct GPBDoubleValue__storage_ {
  43. uint32_t _has_storage_[1];
  44. double value;
  45. } GPBDoubleValue__storage_;
  46. // This method is threadsafe because it is initially called
  47. // in +initialize for each subclass.
  48. + (GPBDescriptor *)descriptor {
  49. static GPBDescriptor *descriptor = nil;
  50. if (!descriptor) {
  51. static GPBMessageFieldDescription fields[] = {
  52. {
  53. .name = "value",
  54. .dataTypeSpecific.clazz = Nil,
  55. .number = GPBDoubleValue_FieldNumber_Value,
  56. .hasIndex = 0,
  57. .offset = (uint32_t)offsetof(GPBDoubleValue__storage_, value),
  58. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
  59. .dataType = GPBDataTypeDouble,
  60. },
  61. };
  62. GPBDescriptor *localDescriptor =
  63. [GPBDescriptor allocDescriptorForClass:[GPBDoubleValue class]
  64. rootClass:[GPBWrappersRoot class]
  65. file:GPBWrappersRoot_FileDescriptor()
  66. fields:fields
  67. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  68. storageSize:sizeof(GPBDoubleValue__storage_)
  69. flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)];
  70. #if defined(DEBUG) && DEBUG
  71. NSAssert(descriptor == nil, @"Startup recursed!");
  72. #endif // DEBUG
  73. descriptor = localDescriptor;
  74. }
  75. return descriptor;
  76. }
  77. @end
  78. #pragma mark - GPBFloatValue
  79. @implementation GPBFloatValue
  80. @dynamic value;
  81. typedef struct GPBFloatValue__storage_ {
  82. uint32_t _has_storage_[1];
  83. float value;
  84. } GPBFloatValue__storage_;
  85. // This method is threadsafe because it is initially called
  86. // in +initialize for each subclass.
  87. + (GPBDescriptor *)descriptor {
  88. static GPBDescriptor *descriptor = nil;
  89. if (!descriptor) {
  90. static GPBMessageFieldDescription fields[] = {
  91. {
  92. .name = "value",
  93. .dataTypeSpecific.clazz = Nil,
  94. .number = GPBFloatValue_FieldNumber_Value,
  95. .hasIndex = 0,
  96. .offset = (uint32_t)offsetof(GPBFloatValue__storage_, value),
  97. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
  98. .dataType = GPBDataTypeFloat,
  99. },
  100. };
  101. GPBDescriptor *localDescriptor =
  102. [GPBDescriptor allocDescriptorForClass:[GPBFloatValue class]
  103. rootClass:[GPBWrappersRoot class]
  104. file:GPBWrappersRoot_FileDescriptor()
  105. fields:fields
  106. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  107. storageSize:sizeof(GPBFloatValue__storage_)
  108. flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)];
  109. #if defined(DEBUG) && DEBUG
  110. NSAssert(descriptor == nil, @"Startup recursed!");
  111. #endif // DEBUG
  112. descriptor = localDescriptor;
  113. }
  114. return descriptor;
  115. }
  116. @end
  117. #pragma mark - GPBInt64Value
  118. @implementation GPBInt64Value
  119. @dynamic value;
  120. typedef struct GPBInt64Value__storage_ {
  121. uint32_t _has_storage_[1];
  122. int64_t value;
  123. } GPBInt64Value__storage_;
  124. // This method is threadsafe because it is initially called
  125. // in +initialize for each subclass.
  126. + (GPBDescriptor *)descriptor {
  127. static GPBDescriptor *descriptor = nil;
  128. if (!descriptor) {
  129. static GPBMessageFieldDescription fields[] = {
  130. {
  131. .name = "value",
  132. .dataTypeSpecific.clazz = Nil,
  133. .number = GPBInt64Value_FieldNumber_Value,
  134. .hasIndex = 0,
  135. .offset = (uint32_t)offsetof(GPBInt64Value__storage_, value),
  136. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
  137. .dataType = GPBDataTypeInt64,
  138. },
  139. };
  140. GPBDescriptor *localDescriptor =
  141. [GPBDescriptor allocDescriptorForClass:[GPBInt64Value class]
  142. rootClass:[GPBWrappersRoot class]
  143. file:GPBWrappersRoot_FileDescriptor()
  144. fields:fields
  145. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  146. storageSize:sizeof(GPBInt64Value__storage_)
  147. flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)];
  148. #if defined(DEBUG) && DEBUG
  149. NSAssert(descriptor == nil, @"Startup recursed!");
  150. #endif // DEBUG
  151. descriptor = localDescriptor;
  152. }
  153. return descriptor;
  154. }
  155. @end
  156. #pragma mark - GPBUInt64Value
  157. @implementation GPBUInt64Value
  158. @dynamic value;
  159. typedef struct GPBUInt64Value__storage_ {
  160. uint32_t _has_storage_[1];
  161. uint64_t value;
  162. } GPBUInt64Value__storage_;
  163. // This method is threadsafe because it is initially called
  164. // in +initialize for each subclass.
  165. + (GPBDescriptor *)descriptor {
  166. static GPBDescriptor *descriptor = nil;
  167. if (!descriptor) {
  168. static GPBMessageFieldDescription fields[] = {
  169. {
  170. .name = "value",
  171. .dataTypeSpecific.clazz = Nil,
  172. .number = GPBUInt64Value_FieldNumber_Value,
  173. .hasIndex = 0,
  174. .offset = (uint32_t)offsetof(GPBUInt64Value__storage_, value),
  175. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
  176. .dataType = GPBDataTypeUInt64,
  177. },
  178. };
  179. GPBDescriptor *localDescriptor =
  180. [GPBDescriptor allocDescriptorForClass:[GPBUInt64Value class]
  181. rootClass:[GPBWrappersRoot class]
  182. file:GPBWrappersRoot_FileDescriptor()
  183. fields:fields
  184. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  185. storageSize:sizeof(GPBUInt64Value__storage_)
  186. flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)];
  187. #if defined(DEBUG) && DEBUG
  188. NSAssert(descriptor == nil, @"Startup recursed!");
  189. #endif // DEBUG
  190. descriptor = localDescriptor;
  191. }
  192. return descriptor;
  193. }
  194. @end
  195. #pragma mark - GPBInt32Value
  196. @implementation GPBInt32Value
  197. @dynamic value;
  198. typedef struct GPBInt32Value__storage_ {
  199. uint32_t _has_storage_[1];
  200. int32_t value;
  201. } GPBInt32Value__storage_;
  202. // This method is threadsafe because it is initially called
  203. // in +initialize for each subclass.
  204. + (GPBDescriptor *)descriptor {
  205. static GPBDescriptor *descriptor = nil;
  206. if (!descriptor) {
  207. static GPBMessageFieldDescription fields[] = {
  208. {
  209. .name = "value",
  210. .dataTypeSpecific.clazz = Nil,
  211. .number = GPBInt32Value_FieldNumber_Value,
  212. .hasIndex = 0,
  213. .offset = (uint32_t)offsetof(GPBInt32Value__storage_, value),
  214. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
  215. .dataType = GPBDataTypeInt32,
  216. },
  217. };
  218. GPBDescriptor *localDescriptor =
  219. [GPBDescriptor allocDescriptorForClass:[GPBInt32Value class]
  220. rootClass:[GPBWrappersRoot class]
  221. file:GPBWrappersRoot_FileDescriptor()
  222. fields:fields
  223. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  224. storageSize:sizeof(GPBInt32Value__storage_)
  225. flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)];
  226. #if defined(DEBUG) && DEBUG
  227. NSAssert(descriptor == nil, @"Startup recursed!");
  228. #endif // DEBUG
  229. descriptor = localDescriptor;
  230. }
  231. return descriptor;
  232. }
  233. @end
  234. #pragma mark - GPBUInt32Value
  235. @implementation GPBUInt32Value
  236. @dynamic value;
  237. typedef struct GPBUInt32Value__storage_ {
  238. uint32_t _has_storage_[1];
  239. uint32_t value;
  240. } GPBUInt32Value__storage_;
  241. // This method is threadsafe because it is initially called
  242. // in +initialize for each subclass.
  243. + (GPBDescriptor *)descriptor {
  244. static GPBDescriptor *descriptor = nil;
  245. if (!descriptor) {
  246. static GPBMessageFieldDescription fields[] = {
  247. {
  248. .name = "value",
  249. .dataTypeSpecific.clazz = Nil,
  250. .number = GPBUInt32Value_FieldNumber_Value,
  251. .hasIndex = 0,
  252. .offset = (uint32_t)offsetof(GPBUInt32Value__storage_, value),
  253. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
  254. .dataType = GPBDataTypeUInt32,
  255. },
  256. };
  257. GPBDescriptor *localDescriptor =
  258. [GPBDescriptor allocDescriptorForClass:[GPBUInt32Value class]
  259. rootClass:[GPBWrappersRoot class]
  260. file:GPBWrappersRoot_FileDescriptor()
  261. fields:fields
  262. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  263. storageSize:sizeof(GPBUInt32Value__storage_)
  264. flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)];
  265. #if defined(DEBUG) && DEBUG
  266. NSAssert(descriptor == nil, @"Startup recursed!");
  267. #endif // DEBUG
  268. descriptor = localDescriptor;
  269. }
  270. return descriptor;
  271. }
  272. @end
  273. #pragma mark - GPBBoolValue
  274. @implementation GPBBoolValue
  275. @dynamic value;
  276. typedef struct GPBBoolValue__storage_ {
  277. uint32_t _has_storage_[1];
  278. } GPBBoolValue__storage_;
  279. // This method is threadsafe because it is initially called
  280. // in +initialize for each subclass.
  281. + (GPBDescriptor *)descriptor {
  282. static GPBDescriptor *descriptor = nil;
  283. if (!descriptor) {
  284. static GPBMessageFieldDescription fields[] = {
  285. {
  286. .name = "value",
  287. .dataTypeSpecific.clazz = Nil,
  288. .number = GPBBoolValue_FieldNumber_Value,
  289. .hasIndex = 0,
  290. .offset = 1, // Stored in _has_storage_ to save space.
  291. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
  292. .dataType = GPBDataTypeBool,
  293. },
  294. };
  295. GPBDescriptor *localDescriptor =
  296. [GPBDescriptor allocDescriptorForClass:[GPBBoolValue class]
  297. rootClass:[GPBWrappersRoot class]
  298. file:GPBWrappersRoot_FileDescriptor()
  299. fields:fields
  300. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  301. storageSize:sizeof(GPBBoolValue__storage_)
  302. flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)];
  303. #if defined(DEBUG) && DEBUG
  304. NSAssert(descriptor == nil, @"Startup recursed!");
  305. #endif // DEBUG
  306. descriptor = localDescriptor;
  307. }
  308. return descriptor;
  309. }
  310. @end
  311. #pragma mark - GPBStringValue
  312. @implementation GPBStringValue
  313. @dynamic value;
  314. typedef struct GPBStringValue__storage_ {
  315. uint32_t _has_storage_[1];
  316. NSString *value;
  317. } GPBStringValue__storage_;
  318. // This method is threadsafe because it is initially called
  319. // in +initialize for each subclass.
  320. + (GPBDescriptor *)descriptor {
  321. static GPBDescriptor *descriptor = nil;
  322. if (!descriptor) {
  323. static GPBMessageFieldDescription fields[] = {
  324. {
  325. .name = "value",
  326. .dataTypeSpecific.clazz = Nil,
  327. .number = GPBStringValue_FieldNumber_Value,
  328. .hasIndex = 0,
  329. .offset = (uint32_t)offsetof(GPBStringValue__storage_, value),
  330. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
  331. .dataType = GPBDataTypeString,
  332. },
  333. };
  334. GPBDescriptor *localDescriptor =
  335. [GPBDescriptor allocDescriptorForClass:[GPBStringValue class]
  336. rootClass:[GPBWrappersRoot class]
  337. file:GPBWrappersRoot_FileDescriptor()
  338. fields:fields
  339. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  340. storageSize:sizeof(GPBStringValue__storage_)
  341. flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)];
  342. #if defined(DEBUG) && DEBUG
  343. NSAssert(descriptor == nil, @"Startup recursed!");
  344. #endif // DEBUG
  345. descriptor = localDescriptor;
  346. }
  347. return descriptor;
  348. }
  349. @end
  350. #pragma mark - GPBBytesValue
  351. @implementation GPBBytesValue
  352. @dynamic value;
  353. typedef struct GPBBytesValue__storage_ {
  354. uint32_t _has_storage_[1];
  355. NSData *value;
  356. } GPBBytesValue__storage_;
  357. // This method is threadsafe because it is initially called
  358. // in +initialize for each subclass.
  359. + (GPBDescriptor *)descriptor {
  360. static GPBDescriptor *descriptor = nil;
  361. if (!descriptor) {
  362. static GPBMessageFieldDescription fields[] = {
  363. {
  364. .name = "value",
  365. .dataTypeSpecific.clazz = Nil,
  366. .number = GPBBytesValue_FieldNumber_Value,
  367. .hasIndex = 0,
  368. .offset = (uint32_t)offsetof(GPBBytesValue__storage_, value),
  369. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
  370. .dataType = GPBDataTypeBytes,
  371. },
  372. };
  373. GPBDescriptor *localDescriptor =
  374. [GPBDescriptor allocDescriptorForClass:[GPBBytesValue class]
  375. rootClass:[GPBWrappersRoot class]
  376. file:GPBWrappersRoot_FileDescriptor()
  377. fields:fields
  378. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  379. storageSize:sizeof(GPBBytesValue__storage_)
  380. flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)];
  381. #if defined(DEBUG) && DEBUG
  382. NSAssert(descriptor == nil, @"Startup recursed!");
  383. #endif // DEBUG
  384. descriptor = localDescriptor;
  385. }
  386. return descriptor;
  387. }
  388. @end
  389. #pragma clang diagnostic pop
  390. // @@protoc_insertion_point(global_scope)