instatask_generated.h 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. // automatically generated by the FlatBuffers compiler, do not modify
  2. #ifndef FLATBUFFERS_GENERATED_INSTATASK_IGDATA_H_
  3. #define FLATBUFFERS_GENERATED_INSTATASK_IGDATA_H_
  4. #include "flatbuffers/flatbuffers.h"
  5. namespace IGData {
  6. struct IGTask;
  7. struct IGTask FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
  8. enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
  9. VT_ID = 4,
  10. VT_FILENAME = 6,
  11. VT_TIME = 8,
  12. VT_DESCRIPTION = 10,
  13. VT_HASHTAGS = 12,
  14. VT_REQUESTED_BY = 14,
  15. VT_REQUESTED_BY_PHRASE = 16,
  16. VT_PROMOTE_SHARE = 18,
  17. VT_LINK_BIO = 20,
  18. VT_MASK = 22
  19. };
  20. int32_t id() const {
  21. return GetField<int32_t>(VT_ID, 0);
  22. }
  23. const flatbuffers::String *filename() const {
  24. return GetPointer<const flatbuffers::String *>(VT_FILENAME);
  25. }
  26. const flatbuffers::String *time() const {
  27. return GetPointer<const flatbuffers::String *>(VT_TIME);
  28. }
  29. const flatbuffers::String *description() const {
  30. return GetPointer<const flatbuffers::String *>(VT_DESCRIPTION);
  31. }
  32. const flatbuffers::String *hashtags() const {
  33. return GetPointer<const flatbuffers::String *>(VT_HASHTAGS);
  34. }
  35. const flatbuffers::String *requested_by() const {
  36. return GetPointer<const flatbuffers::String *>(VT_REQUESTED_BY);
  37. }
  38. const flatbuffers::String *requested_by_phrase() const {
  39. return GetPointer<const flatbuffers::String *>(VT_REQUESTED_BY_PHRASE);
  40. }
  41. const flatbuffers::String *promote_share() const {
  42. return GetPointer<const flatbuffers::String *>(VT_PROMOTE_SHARE);
  43. }
  44. const flatbuffers::String *link_bio() const {
  45. return GetPointer<const flatbuffers::String *>(VT_LINK_BIO);
  46. }
  47. int32_t mask() const {
  48. return GetField<int32_t>(VT_MASK, 0);
  49. }
  50. bool Verify(flatbuffers::Verifier &verifier) const {
  51. return VerifyTableStart(verifier) &&
  52. VerifyField<int32_t>(verifier, VT_ID) &&
  53. VerifyOffset(verifier, VT_FILENAME) &&
  54. verifier.VerifyString(filename()) &&
  55. VerifyOffset(verifier, VT_TIME) &&
  56. verifier.VerifyString(time()) &&
  57. VerifyOffset(verifier, VT_DESCRIPTION) &&
  58. verifier.VerifyString(description()) &&
  59. VerifyOffset(verifier, VT_HASHTAGS) &&
  60. verifier.VerifyString(hashtags()) &&
  61. VerifyOffset(verifier, VT_REQUESTED_BY) &&
  62. verifier.VerifyString(requested_by()) &&
  63. VerifyOffset(verifier, VT_REQUESTED_BY_PHRASE) &&
  64. verifier.VerifyString(requested_by_phrase()) &&
  65. VerifyOffset(verifier, VT_PROMOTE_SHARE) &&
  66. verifier.VerifyString(promote_share()) &&
  67. VerifyOffset(verifier, VT_LINK_BIO) &&
  68. verifier.VerifyString(link_bio()) &&
  69. VerifyField<int32_t>(verifier, VT_MASK) &&
  70. verifier.EndTable();
  71. }
  72. };
  73. struct IGTaskBuilder {
  74. flatbuffers::FlatBufferBuilder &fbb_;
  75. flatbuffers::uoffset_t start_;
  76. void add_id(int32_t id) {
  77. fbb_.AddElement<int32_t>(IGTask::VT_ID, id, 0);
  78. }
  79. void add_filename(flatbuffers::Offset<flatbuffers::String> filename) {
  80. fbb_.AddOffset(IGTask::VT_FILENAME, filename);
  81. }
  82. void add_time(flatbuffers::Offset<flatbuffers::String> time) {
  83. fbb_.AddOffset(IGTask::VT_TIME, time);
  84. }
  85. void add_description(flatbuffers::Offset<flatbuffers::String> description) {
  86. fbb_.AddOffset(IGTask::VT_DESCRIPTION, description);
  87. }
  88. void add_hashtags(flatbuffers::Offset<flatbuffers::String> hashtags) {
  89. fbb_.AddOffset(IGTask::VT_HASHTAGS, hashtags);
  90. }
  91. void add_requested_by(flatbuffers::Offset<flatbuffers::String> requested_by) {
  92. fbb_.AddOffset(IGTask::VT_REQUESTED_BY, requested_by);
  93. }
  94. void add_requested_by_phrase(flatbuffers::Offset<flatbuffers::String> requested_by_phrase) {
  95. fbb_.AddOffset(IGTask::VT_REQUESTED_BY_PHRASE, requested_by_phrase);
  96. }
  97. void add_promote_share(flatbuffers::Offset<flatbuffers::String> promote_share) {
  98. fbb_.AddOffset(IGTask::VT_PROMOTE_SHARE, promote_share);
  99. }
  100. void add_link_bio(flatbuffers::Offset<flatbuffers::String> link_bio) {
  101. fbb_.AddOffset(IGTask::VT_LINK_BIO, link_bio);
  102. }
  103. void add_mask(int32_t mask) {
  104. fbb_.AddElement<int32_t>(IGTask::VT_MASK, mask, 0);
  105. }
  106. explicit IGTaskBuilder(flatbuffers::FlatBufferBuilder &_fbb)
  107. : fbb_(_fbb) {
  108. start_ = fbb_.StartTable();
  109. }
  110. IGTaskBuilder &operator=(const IGTaskBuilder &);
  111. flatbuffers::Offset<IGTask> Finish() {
  112. const auto end = fbb_.EndTable(start_);
  113. auto o = flatbuffers::Offset<IGTask>(end);
  114. return o;
  115. }
  116. };
  117. inline flatbuffers::Offset<IGTask> CreateIGTask(
  118. flatbuffers::FlatBufferBuilder &_fbb,
  119. int32_t id = 0,
  120. flatbuffers::Offset<flatbuffers::String> filename = 0,
  121. flatbuffers::Offset<flatbuffers::String> time = 0,
  122. flatbuffers::Offset<flatbuffers::String> description = 0,
  123. flatbuffers::Offset<flatbuffers::String> hashtags = 0,
  124. flatbuffers::Offset<flatbuffers::String> requested_by = 0,
  125. flatbuffers::Offset<flatbuffers::String> requested_by_phrase = 0,
  126. flatbuffers::Offset<flatbuffers::String> promote_share = 0,
  127. flatbuffers::Offset<flatbuffers::String> link_bio = 0,
  128. int32_t mask = 0) {
  129. IGTaskBuilder builder_(_fbb);
  130. builder_.add_mask(mask);
  131. builder_.add_link_bio(link_bio);
  132. builder_.add_promote_share(promote_share);
  133. builder_.add_requested_by_phrase(requested_by_phrase);
  134. builder_.add_requested_by(requested_by);
  135. builder_.add_hashtags(hashtags);
  136. builder_.add_description(description);
  137. builder_.add_time(time);
  138. builder_.add_filename(filename);
  139. builder_.add_id(id);
  140. return builder_.Finish();
  141. }
  142. inline flatbuffers::Offset<IGTask> CreateIGTaskDirect(
  143. flatbuffers::FlatBufferBuilder &_fbb,
  144. int32_t id = 0,
  145. const char *filename = nullptr,
  146. const char *time = nullptr,
  147. const char *description = nullptr,
  148. const char *hashtags = nullptr,
  149. const char *requested_by = nullptr,
  150. const char *requested_by_phrase = nullptr,
  151. const char *promote_share = nullptr,
  152. const char *link_bio = nullptr,
  153. int32_t mask = 0) {
  154. auto filename__ = filename ? _fbb.CreateString(filename) : 0;
  155. auto time__ = time ? _fbb.CreateString(time) : 0;
  156. auto description__ = description ? _fbb.CreateString(description) : 0;
  157. auto hashtags__ = hashtags ? _fbb.CreateString(hashtags) : 0;
  158. auto requested_by__ = requested_by ? _fbb.CreateString(requested_by) : 0;
  159. auto requested_by_phrase__ = requested_by_phrase ? _fbb.CreateString(requested_by_phrase) : 0;
  160. auto promote_share__ = promote_share ? _fbb.CreateString(promote_share) : 0;
  161. auto link_bio__ = link_bio ? _fbb.CreateString(link_bio) : 0;
  162. return IGData::CreateIGTask(
  163. _fbb,
  164. id,
  165. filename__,
  166. time__,
  167. description__,
  168. hashtags__,
  169. requested_by__,
  170. requested_by_phrase__,
  171. promote_share__,
  172. link_bio__,
  173. mask);
  174. }
  175. inline const IGData::IGTask *GetIGTask(const void *buf) {
  176. return flatbuffers::GetRoot<IGData::IGTask>(buf);
  177. }
  178. inline const IGData::IGTask *GetSizePrefixedIGTask(const void *buf) {
  179. return flatbuffers::GetSizePrefixedRoot<IGData::IGTask>(buf);
  180. }
  181. inline bool VerifyIGTaskBuffer(
  182. flatbuffers::Verifier &verifier) {
  183. return verifier.VerifyBuffer<IGData::IGTask>(nullptr);
  184. }
  185. inline bool VerifySizePrefixedIGTaskBuffer(
  186. flatbuffers::Verifier &verifier) {
  187. return verifier.VerifySizePrefixedBuffer<IGData::IGTask>(nullptr);
  188. }
  189. inline void FinishIGTaskBuffer(
  190. flatbuffers::FlatBufferBuilder &fbb,
  191. flatbuffers::Offset<IGData::IGTask> root) {
  192. fbb.Finish(root);
  193. }
  194. inline void FinishSizePrefixedIGTaskBuffer(
  195. flatbuffers::FlatBufferBuilder &fbb,
  196. flatbuffers::Offset<IGData::IGTask> root) {
  197. fbb.FinishSizePrefixed(root);
  198. }
  199. } // namespace IGData
  200. #endif // FLATBUFFERS_GENERATED_INSTATASK_IGDATA_H_