Svga.pbobjc.m 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: svga.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. #import "Svga.pbobjc.h"
  14. // @@protoc_insertion_point(imports)
  15. #pragma clang diagnostic push
  16. #pragma clang diagnostic ignored "-Wdeprecated-declarations"
  17. #pragma clang diagnostic ignored "-Wdirect-ivar-access"
  18. #pragma mark - SVGAProtoSvgaRoot
  19. @implementation SVGAProtoSvgaRoot
  20. // No extensions in the file and no imports, so no need to generate
  21. // +extensionRegistry.
  22. @end
  23. #pragma mark - SVGAProtoSvgaRoot_FileDescriptor
  24. static GPBFileDescriptor *SVGAProtoSvgaRoot_FileDescriptor(void) {
  25. // This is called by +initialize so there is no need to worry
  26. // about thread safety of the singleton.
  27. static GPBFileDescriptor *descriptor = NULL;
  28. if (!descriptor) {
  29. GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
  30. descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"com.opensource.svga"
  31. objcPrefix:@"SVGAProto"
  32. syntax:GPBFileSyntaxProto3];
  33. }
  34. return descriptor;
  35. }
  36. #pragma mark - SVGAProtoMovieParams
  37. @implementation SVGAProtoMovieParams
  38. @dynamic viewBoxWidth;
  39. @dynamic viewBoxHeight;
  40. @dynamic fps;
  41. @dynamic frames;
  42. typedef struct SVGAProtoMovieParams__storage_ {
  43. uint32_t _has_storage_[1];
  44. float viewBoxWidth;
  45. float viewBoxHeight;
  46. int32_t fps;
  47. int32_t frames;
  48. } SVGAProtoMovieParams__storage_;
  49. // This method is threadsafe because it is initially called
  50. // in +initialize for each subclass.
  51. + (GPBDescriptor *)descriptor {
  52. static GPBDescriptor *descriptor = nil;
  53. if (!descriptor) {
  54. static GPBMessageFieldDescription fields[] = {
  55. {
  56. .name = "viewBoxWidth",
  57. .dataTypeSpecific.className = NULL,
  58. .number = SVGAProtoMovieParams_FieldNumber_ViewBoxWidth,
  59. .hasIndex = 0,
  60. .offset = (uint32_t)offsetof(SVGAProtoMovieParams__storage_, viewBoxWidth),
  61. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
  62. .dataType = GPBDataTypeFloat,
  63. },
  64. {
  65. .name = "viewBoxHeight",
  66. .dataTypeSpecific.className = NULL,
  67. .number = SVGAProtoMovieParams_FieldNumber_ViewBoxHeight,
  68. .hasIndex = 1,
  69. .offset = (uint32_t)offsetof(SVGAProtoMovieParams__storage_, viewBoxHeight),
  70. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
  71. .dataType = GPBDataTypeFloat,
  72. },
  73. {
  74. .name = "fps",
  75. .dataTypeSpecific.className = NULL,
  76. .number = SVGAProtoMovieParams_FieldNumber_Fps,
  77. .hasIndex = 2,
  78. .offset = (uint32_t)offsetof(SVGAProtoMovieParams__storage_, fps),
  79. .flags = GPBFieldOptional,
  80. .dataType = GPBDataTypeInt32,
  81. },
  82. {
  83. .name = "frames",
  84. .dataTypeSpecific.className = NULL,
  85. .number = SVGAProtoMovieParams_FieldNumber_Frames,
  86. .hasIndex = 3,
  87. .offset = (uint32_t)offsetof(SVGAProtoMovieParams__storage_, frames),
  88. .flags = GPBFieldOptional,
  89. .dataType = GPBDataTypeInt32,
  90. },
  91. };
  92. GPBDescriptor *localDescriptor =
  93. [GPBDescriptor allocDescriptorForClass:[SVGAProtoMovieParams class]
  94. rootClass:[SVGAProtoSvgaRoot class]
  95. file:SVGAProtoSvgaRoot_FileDescriptor()
  96. fields:fields
  97. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  98. storageSize:sizeof(SVGAProtoMovieParams__storage_)
  99. flags:GPBDescriptorInitializationFlag_None];
  100. #if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
  101. static const char *extraTextFormatInfo =
  102. "\002\001\014\000\002\r\000";
  103. [localDescriptor setupExtraTextInfo:extraTextFormatInfo];
  104. #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
  105. NSAssert(descriptor == nil, @"Startup recursed!");
  106. descriptor = localDescriptor;
  107. }
  108. return descriptor;
  109. }
  110. @end
  111. #pragma mark - SVGAProtoSpriteEntity
  112. @implementation SVGAProtoSpriteEntity
  113. @dynamic imageKey;
  114. @dynamic framesArray, framesArray_Count;
  115. @dynamic matteKey;
  116. typedef struct SVGAProtoSpriteEntity__storage_ {
  117. uint32_t _has_storage_[1];
  118. NSString *imageKey;
  119. NSMutableArray *framesArray;
  120. NSString *matteKey;
  121. } SVGAProtoSpriteEntity__storage_;
  122. // This method is threadsafe because it is initially called
  123. // in +initialize for each subclass.
  124. + (GPBDescriptor *)descriptor {
  125. static GPBDescriptor *descriptor = nil;
  126. if (!descriptor) {
  127. static GPBMessageFieldDescription fields[] = {
  128. {
  129. .name = "imageKey",
  130. .dataTypeSpecific.className = NULL,
  131. .number = SVGAProtoSpriteEntity_FieldNumber_ImageKey,
  132. .hasIndex = 0,
  133. .offset = (uint32_t)offsetof(SVGAProtoSpriteEntity__storage_, imageKey),
  134. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
  135. .dataType = GPBDataTypeString,
  136. },
  137. {
  138. .name = "framesArray",
  139. .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoFrameEntity),
  140. .number = SVGAProtoSpriteEntity_FieldNumber_FramesArray,
  141. .hasIndex = GPBNoHasBit,
  142. .offset = (uint32_t)offsetof(SVGAProtoSpriteEntity__storage_, framesArray),
  143. .flags = GPBFieldRepeated,
  144. .dataType = GPBDataTypeMessage,
  145. },
  146. {
  147. .name = "matteKey",
  148. .dataTypeSpecific.className = NULL,
  149. .number = SVGAProtoSpriteEntity_FieldNumber_MatteKey,
  150. .hasIndex = 1,
  151. .offset = (uint32_t)offsetof(SVGAProtoSpriteEntity__storage_, matteKey),
  152. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
  153. .dataType = GPBDataTypeString,
  154. },
  155. };
  156. GPBDescriptor *localDescriptor =
  157. [GPBDescriptor allocDescriptorForClass:[SVGAProtoSpriteEntity class]
  158. rootClass:[SVGAProtoSvgaRoot class]
  159. file:SVGAProtoSvgaRoot_FileDescriptor()
  160. fields:fields
  161. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  162. storageSize:sizeof(SVGAProtoSpriteEntity__storage_)
  163. flags:GPBDescriptorInitializationFlag_None];
  164. #if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
  165. static const char *extraTextFormatInfo =
  166. "\002\001\010\000\003\010\000";
  167. [localDescriptor setupExtraTextInfo:extraTextFormatInfo];
  168. #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
  169. NSAssert(descriptor == nil, @"Startup recursed!");
  170. descriptor = localDescriptor;
  171. }
  172. return descriptor;
  173. }
  174. @end
  175. #pragma mark - SVGAProtoAudioEntity
  176. @implementation SVGAProtoAudioEntity
  177. @dynamic audioKey;
  178. @dynamic startFrame;
  179. @dynamic endFrame;
  180. @dynamic startTime;
  181. @dynamic totalTime;
  182. typedef struct SVGAProtoAudioEntity__storage_ {
  183. uint32_t _has_storage_[1];
  184. int32_t startFrame;
  185. int32_t endFrame;
  186. int32_t startTime;
  187. int32_t totalTime;
  188. NSString *audioKey;
  189. } SVGAProtoAudioEntity__storage_;
  190. // This method is threadsafe because it is initially called
  191. // in +initialize for each subclass.
  192. + (GPBDescriptor *)descriptor {
  193. static GPBDescriptor *descriptor = nil;
  194. if (!descriptor) {
  195. static GPBMessageFieldDescription fields[] = {
  196. {
  197. .name = "audioKey",
  198. .dataTypeSpecific.className = NULL,
  199. .number = SVGAProtoAudioEntity_FieldNumber_AudioKey,
  200. .hasIndex = 0,
  201. .offset = (uint32_t)offsetof(SVGAProtoAudioEntity__storage_, audioKey),
  202. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
  203. .dataType = GPBDataTypeString,
  204. },
  205. {
  206. .name = "startFrame",
  207. .dataTypeSpecific.className = NULL,
  208. .number = SVGAProtoAudioEntity_FieldNumber_StartFrame,
  209. .hasIndex = 1,
  210. .offset = (uint32_t)offsetof(SVGAProtoAudioEntity__storage_, startFrame),
  211. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
  212. .dataType = GPBDataTypeInt32,
  213. },
  214. {
  215. .name = "endFrame",
  216. .dataTypeSpecific.className = NULL,
  217. .number = SVGAProtoAudioEntity_FieldNumber_EndFrame,
  218. .hasIndex = 2,
  219. .offset = (uint32_t)offsetof(SVGAProtoAudioEntity__storage_, endFrame),
  220. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
  221. .dataType = GPBDataTypeInt32,
  222. },
  223. {
  224. .name = "startTime",
  225. .dataTypeSpecific.className = NULL,
  226. .number = SVGAProtoAudioEntity_FieldNumber_StartTime,
  227. .hasIndex = 3,
  228. .offset = (uint32_t)offsetof(SVGAProtoAudioEntity__storage_, startTime),
  229. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
  230. .dataType = GPBDataTypeInt32,
  231. },
  232. {
  233. .name = "totalTime",
  234. .dataTypeSpecific.className = NULL,
  235. .number = SVGAProtoAudioEntity_FieldNumber_TotalTime,
  236. .hasIndex = 4,
  237. .offset = (uint32_t)offsetof(SVGAProtoAudioEntity__storage_, totalTime),
  238. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
  239. .dataType = GPBDataTypeInt32,
  240. },
  241. };
  242. GPBDescriptor *localDescriptor =
  243. [GPBDescriptor allocDescriptorForClass:[SVGAProtoAudioEntity class]
  244. rootClass:[SVGAProtoSvgaRoot class]
  245. file:SVGAProtoSvgaRoot_FileDescriptor()
  246. fields:fields
  247. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  248. storageSize:sizeof(SVGAProtoAudioEntity__storage_)
  249. flags:GPBDescriptorInitializationFlag_None];
  250. #if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
  251. static const char *extraTextFormatInfo =
  252. "\005\001\010\000\002\n\000\003\010\000\004\t\000\005\t\000";
  253. [localDescriptor setupExtraTextInfo:extraTextFormatInfo];
  254. #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
  255. NSAssert(descriptor == nil, @"Startup recursed!");
  256. descriptor = localDescriptor;
  257. }
  258. return descriptor;
  259. }
  260. @end
  261. #pragma mark - SVGAProtoLayout
  262. @implementation SVGAProtoLayout
  263. @dynamic x;
  264. @dynamic y;
  265. @dynamic width;
  266. @dynamic height;
  267. typedef struct SVGAProtoLayout__storage_ {
  268. uint32_t _has_storage_[1];
  269. float x;
  270. float y;
  271. float width;
  272. float height;
  273. } SVGAProtoLayout__storage_;
  274. // This method is threadsafe because it is initially called
  275. // in +initialize for each subclass.
  276. + (GPBDescriptor *)descriptor {
  277. static GPBDescriptor *descriptor = nil;
  278. if (!descriptor) {
  279. static GPBMessageFieldDescription fields[] = {
  280. {
  281. .name = "x",
  282. .dataTypeSpecific.className = NULL,
  283. .number = SVGAProtoLayout_FieldNumber_X,
  284. .hasIndex = 0,
  285. .offset = (uint32_t)offsetof(SVGAProtoLayout__storage_, x),
  286. .flags = GPBFieldOptional,
  287. .dataType = GPBDataTypeFloat,
  288. },
  289. {
  290. .name = "y",
  291. .dataTypeSpecific.className = NULL,
  292. .number = SVGAProtoLayout_FieldNumber_Y,
  293. .hasIndex = 1,
  294. .offset = (uint32_t)offsetof(SVGAProtoLayout__storage_, y),
  295. .flags = GPBFieldOptional,
  296. .dataType = GPBDataTypeFloat,
  297. },
  298. {
  299. .name = "width",
  300. .dataTypeSpecific.className = NULL,
  301. .number = SVGAProtoLayout_FieldNumber_Width,
  302. .hasIndex = 2,
  303. .offset = (uint32_t)offsetof(SVGAProtoLayout__storage_, width),
  304. .flags = GPBFieldOptional,
  305. .dataType = GPBDataTypeFloat,
  306. },
  307. {
  308. .name = "height",
  309. .dataTypeSpecific.className = NULL,
  310. .number = SVGAProtoLayout_FieldNumber_Height,
  311. .hasIndex = 3,
  312. .offset = (uint32_t)offsetof(SVGAProtoLayout__storage_, height),
  313. .flags = GPBFieldOptional,
  314. .dataType = GPBDataTypeFloat,
  315. },
  316. };
  317. GPBDescriptor *localDescriptor =
  318. [GPBDescriptor allocDescriptorForClass:[SVGAProtoLayout class]
  319. rootClass:[SVGAProtoSvgaRoot class]
  320. file:SVGAProtoSvgaRoot_FileDescriptor()
  321. fields:fields
  322. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  323. storageSize:sizeof(SVGAProtoLayout__storage_)
  324. flags:GPBDescriptorInitializationFlag_None];
  325. NSAssert(descriptor == nil, @"Startup recursed!");
  326. descriptor = localDescriptor;
  327. }
  328. return descriptor;
  329. }
  330. @end
  331. #pragma mark - SVGAProtoTransform
  332. @implementation SVGAProtoTransform
  333. @dynamic a;
  334. @dynamic b;
  335. @dynamic c;
  336. @dynamic d;
  337. @dynamic tx;
  338. @dynamic ty;
  339. typedef struct SVGAProtoTransform__storage_ {
  340. uint32_t _has_storage_[1];
  341. float a;
  342. float b;
  343. float c;
  344. float d;
  345. float tx;
  346. float ty;
  347. } SVGAProtoTransform__storage_;
  348. // This method is threadsafe because it is initially called
  349. // in +initialize for each subclass.
  350. + (GPBDescriptor *)descriptor {
  351. static GPBDescriptor *descriptor = nil;
  352. if (!descriptor) {
  353. static GPBMessageFieldDescription fields[] = {
  354. {
  355. .name = "a",
  356. .dataTypeSpecific.className = NULL,
  357. .number = SVGAProtoTransform_FieldNumber_A,
  358. .hasIndex = 0,
  359. .offset = (uint32_t)offsetof(SVGAProtoTransform__storage_, a),
  360. .flags = GPBFieldOptional,
  361. .dataType = GPBDataTypeFloat,
  362. },
  363. {
  364. .name = "b",
  365. .dataTypeSpecific.className = NULL,
  366. .number = SVGAProtoTransform_FieldNumber_B,
  367. .hasIndex = 1,
  368. .offset = (uint32_t)offsetof(SVGAProtoTransform__storage_, b),
  369. .flags = GPBFieldOptional,
  370. .dataType = GPBDataTypeFloat,
  371. },
  372. {
  373. .name = "c",
  374. .dataTypeSpecific.className = NULL,
  375. .number = SVGAProtoTransform_FieldNumber_C,
  376. .hasIndex = 2,
  377. .offset = (uint32_t)offsetof(SVGAProtoTransform__storage_, c),
  378. .flags = GPBFieldOptional,
  379. .dataType = GPBDataTypeFloat,
  380. },
  381. {
  382. .name = "d",
  383. .dataTypeSpecific.className = NULL,
  384. .number = SVGAProtoTransform_FieldNumber_D,
  385. .hasIndex = 3,
  386. .offset = (uint32_t)offsetof(SVGAProtoTransform__storage_, d),
  387. .flags = GPBFieldOptional,
  388. .dataType = GPBDataTypeFloat,
  389. },
  390. {
  391. .name = "tx",
  392. .dataTypeSpecific.className = NULL,
  393. .number = SVGAProtoTransform_FieldNumber_Tx,
  394. .hasIndex = 4,
  395. .offset = (uint32_t)offsetof(SVGAProtoTransform__storage_, tx),
  396. .flags = GPBFieldOptional,
  397. .dataType = GPBDataTypeFloat,
  398. },
  399. {
  400. .name = "ty",
  401. .dataTypeSpecific.className = NULL,
  402. .number = SVGAProtoTransform_FieldNumber_Ty,
  403. .hasIndex = 5,
  404. .offset = (uint32_t)offsetof(SVGAProtoTransform__storage_, ty),
  405. .flags = GPBFieldOptional,
  406. .dataType = GPBDataTypeFloat,
  407. },
  408. };
  409. GPBDescriptor *localDescriptor =
  410. [GPBDescriptor allocDescriptorForClass:[SVGAProtoTransform class]
  411. rootClass:[SVGAProtoSvgaRoot class]
  412. file:SVGAProtoSvgaRoot_FileDescriptor()
  413. fields:fields
  414. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  415. storageSize:sizeof(SVGAProtoTransform__storage_)
  416. flags:GPBDescriptorInitializationFlag_None];
  417. NSAssert(descriptor == nil, @"Startup recursed!");
  418. descriptor = localDescriptor;
  419. }
  420. return descriptor;
  421. }
  422. @end
  423. #pragma mark - SVGAProtoShapeEntity
  424. @implementation SVGAProtoShapeEntity
  425. @dynamic argsOneOfCase;
  426. @dynamic type;
  427. @dynamic shape;
  428. @dynamic rect;
  429. @dynamic ellipse;
  430. @dynamic hasStyles, styles;
  431. @dynamic hasTransform, transform;
  432. typedef struct SVGAProtoShapeEntity__storage_ {
  433. uint32_t _has_storage_[2];
  434. SVGAProtoShapeEntity_ShapeType type;
  435. SVGAProtoShapeEntity_ShapeArgs *shape;
  436. SVGAProtoShapeEntity_RectArgs *rect;
  437. SVGAProtoShapeEntity_EllipseArgs *ellipse;
  438. SVGAProtoShapeEntity_ShapeStyle *styles;
  439. SVGAProtoTransform *transform;
  440. } SVGAProtoShapeEntity__storage_;
  441. // This method is threadsafe because it is initially called
  442. // in +initialize for each subclass.
  443. + (GPBDescriptor *)descriptor {
  444. static GPBDescriptor *descriptor = nil;
  445. if (!descriptor) {
  446. static GPBMessageFieldDescription fields[] = {
  447. {
  448. .name = "type",
  449. .dataTypeSpecific.enumDescFunc = SVGAProtoShapeEntity_ShapeType_EnumDescriptor,
  450. .number = SVGAProtoShapeEntity_FieldNumber_Type,
  451. .hasIndex = 0,
  452. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity__storage_, type),
  453. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor),
  454. .dataType = GPBDataTypeEnum,
  455. },
  456. {
  457. .name = "shape",
  458. .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoShapeEntity_ShapeArgs),
  459. .number = SVGAProtoShapeEntity_FieldNumber_Shape,
  460. .hasIndex = -1,
  461. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity__storage_, shape),
  462. .flags = GPBFieldOptional,
  463. .dataType = GPBDataTypeMessage,
  464. },
  465. {
  466. .name = "rect",
  467. .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoShapeEntity_RectArgs),
  468. .number = SVGAProtoShapeEntity_FieldNumber_Rect,
  469. .hasIndex = -1,
  470. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity__storage_, rect),
  471. .flags = GPBFieldOptional,
  472. .dataType = GPBDataTypeMessage,
  473. },
  474. {
  475. .name = "ellipse",
  476. .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoShapeEntity_EllipseArgs),
  477. .number = SVGAProtoShapeEntity_FieldNumber_Ellipse,
  478. .hasIndex = -1,
  479. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity__storage_, ellipse),
  480. .flags = GPBFieldOptional,
  481. .dataType = GPBDataTypeMessage,
  482. },
  483. {
  484. .name = "styles",
  485. .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoShapeEntity_ShapeStyle),
  486. .number = SVGAProtoShapeEntity_FieldNumber_Styles,
  487. .hasIndex = 1,
  488. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity__storage_, styles),
  489. .flags = GPBFieldOptional,
  490. .dataType = GPBDataTypeMessage,
  491. },
  492. {
  493. .name = "transform",
  494. .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoTransform),
  495. .number = SVGAProtoShapeEntity_FieldNumber_Transform,
  496. .hasIndex = 2,
  497. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity__storage_, transform),
  498. .flags = GPBFieldOptional,
  499. .dataType = GPBDataTypeMessage,
  500. },
  501. };
  502. GPBDescriptor *localDescriptor =
  503. [GPBDescriptor allocDescriptorForClass:[SVGAProtoShapeEntity class]
  504. rootClass:[SVGAProtoSvgaRoot class]
  505. file:SVGAProtoSvgaRoot_FileDescriptor()
  506. fields:fields
  507. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  508. storageSize:sizeof(SVGAProtoShapeEntity__storage_)
  509. flags:GPBDescriptorInitializationFlag_None];
  510. static const char *oneofs[] = {
  511. "args",
  512. };
  513. [localDescriptor setupOneofs:oneofs
  514. count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
  515. firstHasIndex:-1];
  516. NSAssert(descriptor == nil, @"Startup recursed!");
  517. descriptor = localDescriptor;
  518. }
  519. return descriptor;
  520. }
  521. @end
  522. int32_t SVGAProtoShapeEntity_Type_RawValue(SVGAProtoShapeEntity *message) {
  523. GPBDescriptor *descriptor = [SVGAProtoShapeEntity descriptor];
  524. GPBFieldDescriptor *field = [descriptor fieldWithNumber:SVGAProtoShapeEntity_FieldNumber_Type];
  525. return GPBGetMessageInt32Field(message, field);
  526. }
  527. void SetSVGAProtoShapeEntity_Type_RawValue(SVGAProtoShapeEntity *message, int32_t value) {
  528. GPBDescriptor *descriptor = [SVGAProtoShapeEntity descriptor];
  529. GPBFieldDescriptor *field = [descriptor fieldWithNumber:SVGAProtoShapeEntity_FieldNumber_Type];
  530. GPBSetInt32IvarWithFieldInternal(message, field, value, descriptor.file.syntax);
  531. }
  532. void SVGAProtoShapeEntity_ClearArgsOneOfCase(SVGAProtoShapeEntity *message) {
  533. GPBDescriptor *descriptor = [message descriptor];
  534. GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
  535. GPBMaybeClearOneof(message, oneof, -1, 0);
  536. }
  537. #pragma mark - Enum SVGAProtoShapeEntity_ShapeType
  538. GPBEnumDescriptor *SVGAProtoShapeEntity_ShapeType_EnumDescriptor(void) {
  539. static GPBEnumDescriptor *descriptor = NULL;
  540. if (!descriptor) {
  541. static const char *valueNames =
  542. "Shape\000Rect\000Ellipse\000Keep\000";
  543. static const int32_t values[] = {
  544. SVGAProtoShapeEntity_ShapeType_Shape,
  545. SVGAProtoShapeEntity_ShapeType_Rect,
  546. SVGAProtoShapeEntity_ShapeType_Ellipse,
  547. SVGAProtoShapeEntity_ShapeType_Keep,
  548. };
  549. GPBEnumDescriptor *worker =
  550. [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(SVGAProtoShapeEntity_ShapeType)
  551. valueNames:valueNames
  552. values:values
  553. count:(uint32_t)(sizeof(values) / sizeof(int32_t))
  554. enumVerifier:SVGAProtoShapeEntity_ShapeType_IsValidValue];
  555. if (!OSAtomicCompareAndSwapPtrBarrier(nil, worker, (void * volatile *)&descriptor)) {
  556. [worker release];
  557. }
  558. }
  559. return descriptor;
  560. }
  561. BOOL SVGAProtoShapeEntity_ShapeType_IsValidValue(int32_t value__) {
  562. switch (value__) {
  563. case SVGAProtoShapeEntity_ShapeType_Shape:
  564. case SVGAProtoShapeEntity_ShapeType_Rect:
  565. case SVGAProtoShapeEntity_ShapeType_Ellipse:
  566. case SVGAProtoShapeEntity_ShapeType_Keep:
  567. return YES;
  568. default:
  569. return NO;
  570. }
  571. }
  572. #pragma mark - SVGAProtoShapeEntity_ShapeArgs
  573. @implementation SVGAProtoShapeEntity_ShapeArgs
  574. @dynamic d;
  575. typedef struct SVGAProtoShapeEntity_ShapeArgs__storage_ {
  576. uint32_t _has_storage_[1];
  577. NSString *d;
  578. } SVGAProtoShapeEntity_ShapeArgs__storage_;
  579. // This method is threadsafe because it is initially called
  580. // in +initialize for each subclass.
  581. + (GPBDescriptor *)descriptor {
  582. static GPBDescriptor *descriptor = nil;
  583. if (!descriptor) {
  584. static GPBMessageFieldDescription fields[] = {
  585. {
  586. .name = "d",
  587. .dataTypeSpecific.className = NULL,
  588. .number = SVGAProtoShapeEntity_ShapeArgs_FieldNumber_D,
  589. .hasIndex = 0,
  590. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeArgs__storage_, d),
  591. .flags = GPBFieldOptional,
  592. .dataType = GPBDataTypeString,
  593. },
  594. };
  595. GPBDescriptor *localDescriptor =
  596. [GPBDescriptor allocDescriptorForClass:[SVGAProtoShapeEntity_ShapeArgs class]
  597. rootClass:[SVGAProtoSvgaRoot class]
  598. file:SVGAProtoSvgaRoot_FileDescriptor()
  599. fields:fields
  600. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  601. storageSize:sizeof(SVGAProtoShapeEntity_ShapeArgs__storage_)
  602. flags:GPBDescriptorInitializationFlag_None];
  603. [localDescriptor setupContainingMessageClassName:GPBStringifySymbol(SVGAProtoShapeEntity)];
  604. NSAssert(descriptor == nil, @"Startup recursed!");
  605. descriptor = localDescriptor;
  606. }
  607. return descriptor;
  608. }
  609. @end
  610. #pragma mark - SVGAProtoShapeEntity_RectArgs
  611. @implementation SVGAProtoShapeEntity_RectArgs
  612. @dynamic x;
  613. @dynamic y;
  614. @dynamic width;
  615. @dynamic height;
  616. @dynamic cornerRadius;
  617. typedef struct SVGAProtoShapeEntity_RectArgs__storage_ {
  618. uint32_t _has_storage_[1];
  619. float x;
  620. float y;
  621. float width;
  622. float height;
  623. float cornerRadius;
  624. } SVGAProtoShapeEntity_RectArgs__storage_;
  625. // This method is threadsafe because it is initially called
  626. // in +initialize for each subclass.
  627. + (GPBDescriptor *)descriptor {
  628. static GPBDescriptor *descriptor = nil;
  629. if (!descriptor) {
  630. static GPBMessageFieldDescription fields[] = {
  631. {
  632. .name = "x",
  633. .dataTypeSpecific.className = NULL,
  634. .number = SVGAProtoShapeEntity_RectArgs_FieldNumber_X,
  635. .hasIndex = 0,
  636. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_RectArgs__storage_, x),
  637. .flags = GPBFieldOptional,
  638. .dataType = GPBDataTypeFloat,
  639. },
  640. {
  641. .name = "y",
  642. .dataTypeSpecific.className = NULL,
  643. .number = SVGAProtoShapeEntity_RectArgs_FieldNumber_Y,
  644. .hasIndex = 1,
  645. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_RectArgs__storage_, y),
  646. .flags = GPBFieldOptional,
  647. .dataType = GPBDataTypeFloat,
  648. },
  649. {
  650. .name = "width",
  651. .dataTypeSpecific.className = NULL,
  652. .number = SVGAProtoShapeEntity_RectArgs_FieldNumber_Width,
  653. .hasIndex = 2,
  654. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_RectArgs__storage_, width),
  655. .flags = GPBFieldOptional,
  656. .dataType = GPBDataTypeFloat,
  657. },
  658. {
  659. .name = "height",
  660. .dataTypeSpecific.className = NULL,
  661. .number = SVGAProtoShapeEntity_RectArgs_FieldNumber_Height,
  662. .hasIndex = 3,
  663. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_RectArgs__storage_, height),
  664. .flags = GPBFieldOptional,
  665. .dataType = GPBDataTypeFloat,
  666. },
  667. {
  668. .name = "cornerRadius",
  669. .dataTypeSpecific.className = NULL,
  670. .number = SVGAProtoShapeEntity_RectArgs_FieldNumber_CornerRadius,
  671. .hasIndex = 4,
  672. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_RectArgs__storage_, cornerRadius),
  673. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
  674. .dataType = GPBDataTypeFloat,
  675. },
  676. };
  677. GPBDescriptor *localDescriptor =
  678. [GPBDescriptor allocDescriptorForClass:[SVGAProtoShapeEntity_RectArgs class]
  679. rootClass:[SVGAProtoSvgaRoot class]
  680. file:SVGAProtoSvgaRoot_FileDescriptor()
  681. fields:fields
  682. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  683. storageSize:sizeof(SVGAProtoShapeEntity_RectArgs__storage_)
  684. flags:GPBDescriptorInitializationFlag_None];
  685. #if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
  686. static const char *extraTextFormatInfo =
  687. "\001\005\014\000";
  688. [localDescriptor setupExtraTextInfo:extraTextFormatInfo];
  689. #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
  690. [localDescriptor setupContainingMessageClassName:GPBStringifySymbol(SVGAProtoShapeEntity)];
  691. NSAssert(descriptor == nil, @"Startup recursed!");
  692. descriptor = localDescriptor;
  693. }
  694. return descriptor;
  695. }
  696. @end
  697. #pragma mark - SVGAProtoShapeEntity_EllipseArgs
  698. @implementation SVGAProtoShapeEntity_EllipseArgs
  699. @dynamic x;
  700. @dynamic y;
  701. @dynamic radiusX;
  702. @dynamic radiusY;
  703. typedef struct SVGAProtoShapeEntity_EllipseArgs__storage_ {
  704. uint32_t _has_storage_[1];
  705. float x;
  706. float y;
  707. float radiusX;
  708. float radiusY;
  709. } SVGAProtoShapeEntity_EllipseArgs__storage_;
  710. // This method is threadsafe because it is initially called
  711. // in +initialize for each subclass.
  712. + (GPBDescriptor *)descriptor {
  713. static GPBDescriptor *descriptor = nil;
  714. if (!descriptor) {
  715. static GPBMessageFieldDescription fields[] = {
  716. {
  717. .name = "x",
  718. .dataTypeSpecific.className = NULL,
  719. .number = SVGAProtoShapeEntity_EllipseArgs_FieldNumber_X,
  720. .hasIndex = 0,
  721. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_EllipseArgs__storage_, x),
  722. .flags = GPBFieldOptional,
  723. .dataType = GPBDataTypeFloat,
  724. },
  725. {
  726. .name = "y",
  727. .dataTypeSpecific.className = NULL,
  728. .number = SVGAProtoShapeEntity_EllipseArgs_FieldNumber_Y,
  729. .hasIndex = 1,
  730. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_EllipseArgs__storage_, y),
  731. .flags = GPBFieldOptional,
  732. .dataType = GPBDataTypeFloat,
  733. },
  734. {
  735. .name = "radiusX",
  736. .dataTypeSpecific.className = NULL,
  737. .number = SVGAProtoShapeEntity_EllipseArgs_FieldNumber_RadiusX,
  738. .hasIndex = 2,
  739. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_EllipseArgs__storage_, radiusX),
  740. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
  741. .dataType = GPBDataTypeFloat,
  742. },
  743. {
  744. .name = "radiusY",
  745. .dataTypeSpecific.className = NULL,
  746. .number = SVGAProtoShapeEntity_EllipseArgs_FieldNumber_RadiusY,
  747. .hasIndex = 3,
  748. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_EllipseArgs__storage_, radiusY),
  749. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
  750. .dataType = GPBDataTypeFloat,
  751. },
  752. };
  753. GPBDescriptor *localDescriptor =
  754. [GPBDescriptor allocDescriptorForClass:[SVGAProtoShapeEntity_EllipseArgs class]
  755. rootClass:[SVGAProtoSvgaRoot class]
  756. file:SVGAProtoSvgaRoot_FileDescriptor()
  757. fields:fields
  758. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  759. storageSize:sizeof(SVGAProtoShapeEntity_EllipseArgs__storage_)
  760. flags:GPBDescriptorInitializationFlag_None];
  761. #if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
  762. static const char *extraTextFormatInfo =
  763. "\002\003\007\000\004\007\000";
  764. [localDescriptor setupExtraTextInfo:extraTextFormatInfo];
  765. #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
  766. [localDescriptor setupContainingMessageClassName:GPBStringifySymbol(SVGAProtoShapeEntity)];
  767. NSAssert(descriptor == nil, @"Startup recursed!");
  768. descriptor = localDescriptor;
  769. }
  770. return descriptor;
  771. }
  772. @end
  773. #pragma mark - SVGAProtoShapeEntity_ShapeStyle
  774. @implementation SVGAProtoShapeEntity_ShapeStyle
  775. @dynamic hasFill, fill;
  776. @dynamic hasStroke, stroke;
  777. @dynamic strokeWidth;
  778. @dynamic lineCap;
  779. @dynamic lineJoin;
  780. @dynamic miterLimit;
  781. @dynamic lineDashI;
  782. @dynamic lineDashIi;
  783. @dynamic lineDashIii;
  784. typedef struct SVGAProtoShapeEntity_ShapeStyle__storage_ {
  785. uint32_t _has_storage_[1];
  786. float strokeWidth;
  787. SVGAProtoShapeEntity_ShapeStyle_LineCap lineCap;
  788. SVGAProtoShapeEntity_ShapeStyle_LineJoin lineJoin;
  789. float miterLimit;
  790. float lineDashI;
  791. float lineDashIi;
  792. float lineDashIii;
  793. SVGAProtoShapeEntity_ShapeStyle_RGBAColor *fill;
  794. SVGAProtoShapeEntity_ShapeStyle_RGBAColor *stroke;
  795. } SVGAProtoShapeEntity_ShapeStyle__storage_;
  796. // This method is threadsafe because it is initially called
  797. // in +initialize for each subclass.
  798. + (GPBDescriptor *)descriptor {
  799. static GPBDescriptor *descriptor = nil;
  800. if (!descriptor) {
  801. static GPBMessageFieldDescription fields[] = {
  802. {
  803. .name = "fill",
  804. .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoShapeEntity_ShapeStyle_RGBAColor),
  805. .number = SVGAProtoShapeEntity_ShapeStyle_FieldNumber_Fill,
  806. .hasIndex = 0,
  807. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle__storage_, fill),
  808. .flags = GPBFieldOptional,
  809. .dataType = GPBDataTypeMessage,
  810. },
  811. {
  812. .name = "stroke",
  813. .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoShapeEntity_ShapeStyle_RGBAColor),
  814. .number = SVGAProtoShapeEntity_ShapeStyle_FieldNumber_Stroke,
  815. .hasIndex = 1,
  816. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle__storage_, stroke),
  817. .flags = GPBFieldOptional,
  818. .dataType = GPBDataTypeMessage,
  819. },
  820. {
  821. .name = "strokeWidth",
  822. .dataTypeSpecific.className = NULL,
  823. .number = SVGAProtoShapeEntity_ShapeStyle_FieldNumber_StrokeWidth,
  824. .hasIndex = 2,
  825. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle__storage_, strokeWidth),
  826. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
  827. .dataType = GPBDataTypeFloat,
  828. },
  829. {
  830. .name = "lineCap",
  831. .dataTypeSpecific.enumDescFunc = SVGAProtoShapeEntity_ShapeStyle_LineCap_EnumDescriptor,
  832. .number = SVGAProtoShapeEntity_ShapeStyle_FieldNumber_LineCap,
  833. .hasIndex = 3,
  834. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle__storage_, lineCap),
  835. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom | GPBFieldHasEnumDescriptor),
  836. .dataType = GPBDataTypeEnum,
  837. },
  838. {
  839. .name = "lineJoin",
  840. .dataTypeSpecific.enumDescFunc = SVGAProtoShapeEntity_ShapeStyle_LineJoin_EnumDescriptor,
  841. .number = SVGAProtoShapeEntity_ShapeStyle_FieldNumber_LineJoin,
  842. .hasIndex = 4,
  843. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle__storage_, lineJoin),
  844. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom | GPBFieldHasEnumDescriptor),
  845. .dataType = GPBDataTypeEnum,
  846. },
  847. {
  848. .name = "miterLimit",
  849. .dataTypeSpecific.className = NULL,
  850. .number = SVGAProtoShapeEntity_ShapeStyle_FieldNumber_MiterLimit,
  851. .hasIndex = 5,
  852. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle__storage_, miterLimit),
  853. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
  854. .dataType = GPBDataTypeFloat,
  855. },
  856. {
  857. .name = "lineDashI",
  858. .dataTypeSpecific.className = NULL,
  859. .number = SVGAProtoShapeEntity_ShapeStyle_FieldNumber_LineDashI,
  860. .hasIndex = 6,
  861. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle__storage_, lineDashI),
  862. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
  863. .dataType = GPBDataTypeFloat,
  864. },
  865. {
  866. .name = "lineDashIi",
  867. .dataTypeSpecific.className = NULL,
  868. .number = SVGAProtoShapeEntity_ShapeStyle_FieldNumber_LineDashIi,
  869. .hasIndex = 7,
  870. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle__storage_, lineDashIi),
  871. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
  872. .dataType = GPBDataTypeFloat,
  873. },
  874. {
  875. .name = "lineDashIii",
  876. .dataTypeSpecific.className = NULL,
  877. .number = SVGAProtoShapeEntity_ShapeStyle_FieldNumber_LineDashIii,
  878. .hasIndex = 8,
  879. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle__storage_, lineDashIii),
  880. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
  881. .dataType = GPBDataTypeFloat,
  882. },
  883. };
  884. GPBDescriptor *localDescriptor =
  885. [GPBDescriptor allocDescriptorForClass:[SVGAProtoShapeEntity_ShapeStyle class]
  886. rootClass:[SVGAProtoSvgaRoot class]
  887. file:SVGAProtoSvgaRoot_FileDescriptor()
  888. fields:fields
  889. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  890. storageSize:sizeof(SVGAProtoShapeEntity_ShapeStyle__storage_)
  891. flags:GPBDescriptorInitializationFlag_None];
  892. #if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
  893. static const char *extraTextFormatInfo =
  894. "\007\003\013\000\004\007\000\005\010\000\006\n\000\007\t\000\010\tA\000\t\tb\000";
  895. [localDescriptor setupExtraTextInfo:extraTextFormatInfo];
  896. #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
  897. [localDescriptor setupContainingMessageClassName:GPBStringifySymbol(SVGAProtoShapeEntity)];
  898. NSAssert(descriptor == nil, @"Startup recursed!");
  899. descriptor = localDescriptor;
  900. }
  901. return descriptor;
  902. }
  903. @end
  904. int32_t SVGAProtoShapeEntity_ShapeStyle_LineCap_RawValue(SVGAProtoShapeEntity_ShapeStyle *message) {
  905. GPBDescriptor *descriptor = [SVGAProtoShapeEntity_ShapeStyle descriptor];
  906. GPBFieldDescriptor *field = [descriptor fieldWithNumber:SVGAProtoShapeEntity_ShapeStyle_FieldNumber_LineCap];
  907. return GPBGetMessageInt32Field(message, field);
  908. }
  909. void SetSVGAProtoShapeEntity_ShapeStyle_LineCap_RawValue(SVGAProtoShapeEntity_ShapeStyle *message, int32_t value) {
  910. GPBDescriptor *descriptor = [SVGAProtoShapeEntity_ShapeStyle descriptor];
  911. GPBFieldDescriptor *field = [descriptor fieldWithNumber:SVGAProtoShapeEntity_ShapeStyle_FieldNumber_LineCap];
  912. GPBSetInt32IvarWithFieldInternal(message, field, value, descriptor.file.syntax);
  913. }
  914. int32_t SVGAProtoShapeEntity_ShapeStyle_LineJoin_RawValue(SVGAProtoShapeEntity_ShapeStyle *message) {
  915. GPBDescriptor *descriptor = [SVGAProtoShapeEntity_ShapeStyle descriptor];
  916. GPBFieldDescriptor *field = [descriptor fieldWithNumber:SVGAProtoShapeEntity_ShapeStyle_FieldNumber_LineJoin];
  917. return GPBGetMessageInt32Field(message, field);
  918. }
  919. void SetSVGAProtoShapeEntity_ShapeStyle_LineJoin_RawValue(SVGAProtoShapeEntity_ShapeStyle *message, int32_t value) {
  920. GPBDescriptor *descriptor = [SVGAProtoShapeEntity_ShapeStyle descriptor];
  921. GPBFieldDescriptor *field = [descriptor fieldWithNumber:SVGAProtoShapeEntity_ShapeStyle_FieldNumber_LineJoin];
  922. GPBSetInt32IvarWithFieldInternal(message, field, value, descriptor.file.syntax);
  923. }
  924. #pragma mark - Enum SVGAProtoShapeEntity_ShapeStyle_LineCap
  925. GPBEnumDescriptor *SVGAProtoShapeEntity_ShapeStyle_LineCap_EnumDescriptor(void) {
  926. static GPBEnumDescriptor *descriptor = NULL;
  927. if (!descriptor) {
  928. static const char *valueNames =
  929. "LineCapButt\000LineCapRound\000LineCapSquare\000";
  930. static const int32_t values[] = {
  931. SVGAProtoShapeEntity_ShapeStyle_LineCap_LineCapButt,
  932. SVGAProtoShapeEntity_ShapeStyle_LineCap_LineCapRound,
  933. SVGAProtoShapeEntity_ShapeStyle_LineCap_LineCapSquare,
  934. };
  935. static const char *extraTextFormatInfo = "\003\000\007\344\000\001\007\345\000\002\007\346\000";
  936. GPBEnumDescriptor *worker =
  937. [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(SVGAProtoShapeEntity_ShapeStyle_LineCap)
  938. valueNames:valueNames
  939. values:values
  940. count:(uint32_t)(sizeof(values) / sizeof(int32_t))
  941. enumVerifier:SVGAProtoShapeEntity_ShapeStyle_LineCap_IsValidValue
  942. extraTextFormatInfo:extraTextFormatInfo];
  943. if (!OSAtomicCompareAndSwapPtrBarrier(nil, worker, (void * volatile *)&descriptor)) {
  944. [worker release];
  945. }
  946. }
  947. return descriptor;
  948. }
  949. BOOL SVGAProtoShapeEntity_ShapeStyle_LineCap_IsValidValue(int32_t value__) {
  950. switch (value__) {
  951. case SVGAProtoShapeEntity_ShapeStyle_LineCap_LineCapButt:
  952. case SVGAProtoShapeEntity_ShapeStyle_LineCap_LineCapRound:
  953. case SVGAProtoShapeEntity_ShapeStyle_LineCap_LineCapSquare:
  954. return YES;
  955. default:
  956. return NO;
  957. }
  958. }
  959. #pragma mark - Enum SVGAProtoShapeEntity_ShapeStyle_LineJoin
  960. GPBEnumDescriptor *SVGAProtoShapeEntity_ShapeStyle_LineJoin_EnumDescriptor(void) {
  961. static GPBEnumDescriptor *descriptor = NULL;
  962. if (!descriptor) {
  963. static const char *valueNames =
  964. "LineJoinMiter\000LineJoinRound\000LineJoinBeve"
  965. "l\000";
  966. static const int32_t values[] = {
  967. SVGAProtoShapeEntity_ShapeStyle_LineJoin_LineJoinMiter,
  968. SVGAProtoShapeEntity_ShapeStyle_LineJoin_LineJoinRound,
  969. SVGAProtoShapeEntity_ShapeStyle_LineJoin_LineJoinBevel,
  970. };
  971. static const char *extraTextFormatInfo = "\003\000\010\345\000\001\010\345\000\002\010\345\000";
  972. GPBEnumDescriptor *worker =
  973. [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(SVGAProtoShapeEntity_ShapeStyle_LineJoin)
  974. valueNames:valueNames
  975. values:values
  976. count:(uint32_t)(sizeof(values) / sizeof(int32_t))
  977. enumVerifier:SVGAProtoShapeEntity_ShapeStyle_LineJoin_IsValidValue
  978. extraTextFormatInfo:extraTextFormatInfo];
  979. if (!OSAtomicCompareAndSwapPtrBarrier(nil, worker, (void * volatile *)&descriptor)) {
  980. [worker release];
  981. }
  982. }
  983. return descriptor;
  984. }
  985. BOOL SVGAProtoShapeEntity_ShapeStyle_LineJoin_IsValidValue(int32_t value__) {
  986. switch (value__) {
  987. case SVGAProtoShapeEntity_ShapeStyle_LineJoin_LineJoinMiter:
  988. case SVGAProtoShapeEntity_ShapeStyle_LineJoin_LineJoinRound:
  989. case SVGAProtoShapeEntity_ShapeStyle_LineJoin_LineJoinBevel:
  990. return YES;
  991. default:
  992. return NO;
  993. }
  994. }
  995. #pragma mark - SVGAProtoShapeEntity_ShapeStyle_RGBAColor
  996. @implementation SVGAProtoShapeEntity_ShapeStyle_RGBAColor
  997. @dynamic r;
  998. @dynamic g;
  999. @dynamic b;
  1000. @dynamic a;
  1001. typedef struct SVGAProtoShapeEntity_ShapeStyle_RGBAColor__storage_ {
  1002. uint32_t _has_storage_[1];
  1003. float r;
  1004. float g;
  1005. float b;
  1006. float a;
  1007. } SVGAProtoShapeEntity_ShapeStyle_RGBAColor__storage_;
  1008. // This method is threadsafe because it is initially called
  1009. // in +initialize for each subclass.
  1010. + (GPBDescriptor *)descriptor {
  1011. static GPBDescriptor *descriptor = nil;
  1012. if (!descriptor) {
  1013. static GPBMessageFieldDescription fields[] = {
  1014. {
  1015. .name = "r",
  1016. .dataTypeSpecific.className = NULL,
  1017. .number = SVGAProtoShapeEntity_ShapeStyle_RGBAColor_FieldNumber_R,
  1018. .hasIndex = 0,
  1019. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle_RGBAColor__storage_, r),
  1020. .flags = GPBFieldOptional,
  1021. .dataType = GPBDataTypeFloat,
  1022. },
  1023. {
  1024. .name = "g",
  1025. .dataTypeSpecific.className = NULL,
  1026. .number = SVGAProtoShapeEntity_ShapeStyle_RGBAColor_FieldNumber_G,
  1027. .hasIndex = 1,
  1028. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle_RGBAColor__storage_, g),
  1029. .flags = GPBFieldOptional,
  1030. .dataType = GPBDataTypeFloat,
  1031. },
  1032. {
  1033. .name = "b",
  1034. .dataTypeSpecific.className = NULL,
  1035. .number = SVGAProtoShapeEntity_ShapeStyle_RGBAColor_FieldNumber_B,
  1036. .hasIndex = 2,
  1037. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle_RGBAColor__storage_, b),
  1038. .flags = GPBFieldOptional,
  1039. .dataType = GPBDataTypeFloat,
  1040. },
  1041. {
  1042. .name = "a",
  1043. .dataTypeSpecific.className = NULL,
  1044. .number = SVGAProtoShapeEntity_ShapeStyle_RGBAColor_FieldNumber_A,
  1045. .hasIndex = 3,
  1046. .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle_RGBAColor__storage_, a),
  1047. .flags = GPBFieldOptional,
  1048. .dataType = GPBDataTypeFloat,
  1049. },
  1050. };
  1051. GPBDescriptor *localDescriptor =
  1052. [GPBDescriptor allocDescriptorForClass:[SVGAProtoShapeEntity_ShapeStyle_RGBAColor class]
  1053. rootClass:[SVGAProtoSvgaRoot class]
  1054. file:SVGAProtoSvgaRoot_FileDescriptor()
  1055. fields:fields
  1056. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  1057. storageSize:sizeof(SVGAProtoShapeEntity_ShapeStyle_RGBAColor__storage_)
  1058. flags:GPBDescriptorInitializationFlag_None];
  1059. [localDescriptor setupContainingMessageClassName:GPBStringifySymbol(SVGAProtoShapeEntity_ShapeStyle)];
  1060. NSAssert(descriptor == nil, @"Startup recursed!");
  1061. descriptor = localDescriptor;
  1062. }
  1063. return descriptor;
  1064. }
  1065. @end
  1066. #pragma mark - SVGAProtoFrameEntity
  1067. @implementation SVGAProtoFrameEntity
  1068. @dynamic alpha;
  1069. @dynamic hasLayout, layout;
  1070. @dynamic hasTransform, transform;
  1071. @dynamic clipPath;
  1072. @dynamic shapesArray, shapesArray_Count;
  1073. typedef struct SVGAProtoFrameEntity__storage_ {
  1074. uint32_t _has_storage_[1];
  1075. float alpha;
  1076. SVGAProtoLayout *layout;
  1077. SVGAProtoTransform *transform;
  1078. NSString *clipPath;
  1079. NSMutableArray *shapesArray;
  1080. } SVGAProtoFrameEntity__storage_;
  1081. // This method is threadsafe because it is initially called
  1082. // in +initialize for each subclass.
  1083. + (GPBDescriptor *)descriptor {
  1084. static GPBDescriptor *descriptor = nil;
  1085. if (!descriptor) {
  1086. static GPBMessageFieldDescription fields[] = {
  1087. {
  1088. .name = "alpha",
  1089. .dataTypeSpecific.className = NULL,
  1090. .number = SVGAProtoFrameEntity_FieldNumber_Alpha,
  1091. .hasIndex = 0,
  1092. .offset = (uint32_t)offsetof(SVGAProtoFrameEntity__storage_, alpha),
  1093. .flags = GPBFieldOptional,
  1094. .dataType = GPBDataTypeFloat,
  1095. },
  1096. {
  1097. .name = "layout",
  1098. .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoLayout),
  1099. .number = SVGAProtoFrameEntity_FieldNumber_Layout,
  1100. .hasIndex = 1,
  1101. .offset = (uint32_t)offsetof(SVGAProtoFrameEntity__storage_, layout),
  1102. .flags = GPBFieldOptional,
  1103. .dataType = GPBDataTypeMessage,
  1104. },
  1105. {
  1106. .name = "transform",
  1107. .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoTransform),
  1108. .number = SVGAProtoFrameEntity_FieldNumber_Transform,
  1109. .hasIndex = 2,
  1110. .offset = (uint32_t)offsetof(SVGAProtoFrameEntity__storage_, transform),
  1111. .flags = GPBFieldOptional,
  1112. .dataType = GPBDataTypeMessage,
  1113. },
  1114. {
  1115. .name = "clipPath",
  1116. .dataTypeSpecific.className = NULL,
  1117. .number = SVGAProtoFrameEntity_FieldNumber_ClipPath,
  1118. .hasIndex = 3,
  1119. .offset = (uint32_t)offsetof(SVGAProtoFrameEntity__storage_, clipPath),
  1120. .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
  1121. .dataType = GPBDataTypeString,
  1122. },
  1123. {
  1124. .name = "shapesArray",
  1125. .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoShapeEntity),
  1126. .number = SVGAProtoFrameEntity_FieldNumber_ShapesArray,
  1127. .hasIndex = GPBNoHasBit,
  1128. .offset = (uint32_t)offsetof(SVGAProtoFrameEntity__storage_, shapesArray),
  1129. .flags = GPBFieldRepeated,
  1130. .dataType = GPBDataTypeMessage,
  1131. },
  1132. };
  1133. GPBDescriptor *localDescriptor =
  1134. [GPBDescriptor allocDescriptorForClass:[SVGAProtoFrameEntity class]
  1135. rootClass:[SVGAProtoSvgaRoot class]
  1136. file:SVGAProtoSvgaRoot_FileDescriptor()
  1137. fields:fields
  1138. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  1139. storageSize:sizeof(SVGAProtoFrameEntity__storage_)
  1140. flags:GPBDescriptorInitializationFlag_None];
  1141. #if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
  1142. static const char *extraTextFormatInfo =
  1143. "\001\004\010\000";
  1144. [localDescriptor setupExtraTextInfo:extraTextFormatInfo];
  1145. #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
  1146. NSAssert(descriptor == nil, @"Startup recursed!");
  1147. descriptor = localDescriptor;
  1148. }
  1149. return descriptor;
  1150. }
  1151. @end
  1152. #pragma mark - SVGAProtoMovieEntity
  1153. @implementation SVGAProtoMovieEntity
  1154. @dynamic version;
  1155. @dynamic hasParams, params;
  1156. @dynamic images, images_Count;
  1157. @dynamic spritesArray, spritesArray_Count;
  1158. @dynamic audiosArray, audiosArray_Count;
  1159. typedef struct SVGAProtoMovieEntity__storage_ {
  1160. uint32_t _has_storage_[1];
  1161. NSString *version;
  1162. SVGAProtoMovieParams *params;
  1163. NSMutableDictionary *images;
  1164. NSMutableArray *spritesArray;
  1165. NSMutableArray *audiosArray;
  1166. } SVGAProtoMovieEntity__storage_;
  1167. // This method is threadsafe because it is initially called
  1168. // in +initialize for each subclass.
  1169. + (GPBDescriptor *)descriptor {
  1170. static GPBDescriptor *descriptor = nil;
  1171. if (!descriptor) {
  1172. static GPBMessageFieldDescription fields[] = {
  1173. {
  1174. .name = "version",
  1175. .dataTypeSpecific.className = NULL,
  1176. .number = SVGAProtoMovieEntity_FieldNumber_Version,
  1177. .hasIndex = 0,
  1178. .offset = (uint32_t)offsetof(SVGAProtoMovieEntity__storage_, version),
  1179. .flags = GPBFieldOptional,
  1180. .dataType = GPBDataTypeString,
  1181. },
  1182. {
  1183. .name = "params",
  1184. .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoMovieParams),
  1185. .number = SVGAProtoMovieEntity_FieldNumber_Params,
  1186. .hasIndex = 1,
  1187. .offset = (uint32_t)offsetof(SVGAProtoMovieEntity__storage_, params),
  1188. .flags = GPBFieldOptional,
  1189. .dataType = GPBDataTypeMessage,
  1190. },
  1191. {
  1192. .name = "images",
  1193. .dataTypeSpecific.className = NULL,
  1194. .number = SVGAProtoMovieEntity_FieldNumber_Images,
  1195. .hasIndex = GPBNoHasBit,
  1196. .offset = (uint32_t)offsetof(SVGAProtoMovieEntity__storage_, images),
  1197. .flags = GPBFieldMapKeyString,
  1198. .dataType = GPBDataTypeBytes,
  1199. },
  1200. {
  1201. .name = "spritesArray",
  1202. .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoSpriteEntity),
  1203. .number = SVGAProtoMovieEntity_FieldNumber_SpritesArray,
  1204. .hasIndex = GPBNoHasBit,
  1205. .offset = (uint32_t)offsetof(SVGAProtoMovieEntity__storage_, spritesArray),
  1206. .flags = GPBFieldRepeated,
  1207. .dataType = GPBDataTypeMessage,
  1208. },
  1209. {
  1210. .name = "audiosArray",
  1211. .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoAudioEntity),
  1212. .number = SVGAProtoMovieEntity_FieldNumber_AudiosArray,
  1213. .hasIndex = GPBNoHasBit,
  1214. .offset = (uint32_t)offsetof(SVGAProtoMovieEntity__storage_, audiosArray),
  1215. .flags = GPBFieldRepeated,
  1216. .dataType = GPBDataTypeMessage,
  1217. },
  1218. };
  1219. GPBDescriptor *localDescriptor =
  1220. [GPBDescriptor allocDescriptorForClass:[SVGAProtoMovieEntity class]
  1221. rootClass:[SVGAProtoSvgaRoot class]
  1222. file:SVGAProtoSvgaRoot_FileDescriptor()
  1223. fields:fields
  1224. fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
  1225. storageSize:sizeof(SVGAProtoMovieEntity__storage_)
  1226. flags:GPBDescriptorInitializationFlag_None];
  1227. NSAssert(descriptor == nil, @"Startup recursed!");
  1228. descriptor = localDescriptor;
  1229. }
  1230. return descriptor;
  1231. }
  1232. @end
  1233. #pragma clang diagnostic pop
  1234. // @@protoc_insertion_point(global_scope)