// automatically generated by the FlatBuffers compiler, do not modify #ifndef FLATBUFFERS_GENERATED_INSTATASK_IGDATA_H_ #define FLATBUFFERS_GENERATED_INSTATASK_IGDATA_H_ #include "flatbuffers/flatbuffers.h" namespace IGData { struct IGTask; struct IGTask FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE { VT_ID = 4, VT_FILE_INFO = 6, VT_TIME = 8, VT_DESCRIPTION = 10, VT_HASHTAGS = 12, VT_REQUESTED_BY = 14, VT_REQUESTED_BY_PHRASE = 16, VT_PROMOTE_SHARE = 18, VT_LINK_BIO = 20, VT_IS_VIDEO = 22, VT_MASK = 24, VT_HEADER = 26, VT_USER = 28 }; int32_t id() const { return GetField(VT_ID, 0); } const flatbuffers::String *file_info() const { return GetPointer(VT_FILE_INFO); } const flatbuffers::String *time() const { return GetPointer(VT_TIME); } const flatbuffers::String *description() const { return GetPointer(VT_DESCRIPTION); } const flatbuffers::String *hashtags() const { return GetPointer(VT_HASHTAGS); } const flatbuffers::String *requested_by() const { return GetPointer(VT_REQUESTED_BY); } const flatbuffers::String *requested_by_phrase() const { return GetPointer(VT_REQUESTED_BY_PHRASE); } const flatbuffers::String *promote_share() const { return GetPointer(VT_PROMOTE_SHARE); } const flatbuffers::String *link_bio() const { return GetPointer(VT_LINK_BIO); } bool is_video() const { return GetField(VT_IS_VIDEO, 0) != 0; } int32_t mask() const { return GetField(VT_MASK, 0); } const flatbuffers::String *header() const { return GetPointer(VT_HEADER); } const flatbuffers::String *user() const { return GetPointer(VT_USER); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_ID) && VerifyOffset(verifier, VT_FILE_INFO) && verifier.VerifyString(file_info()) && VerifyOffset(verifier, VT_TIME) && verifier.VerifyString(time()) && VerifyOffset(verifier, VT_DESCRIPTION) && verifier.VerifyString(description()) && VerifyOffset(verifier, VT_HASHTAGS) && verifier.VerifyString(hashtags()) && VerifyOffset(verifier, VT_REQUESTED_BY) && verifier.VerifyString(requested_by()) && VerifyOffset(verifier, VT_REQUESTED_BY_PHRASE) && verifier.VerifyString(requested_by_phrase()) && VerifyOffset(verifier, VT_PROMOTE_SHARE) && verifier.VerifyString(promote_share()) && VerifyOffset(verifier, VT_LINK_BIO) && verifier.VerifyString(link_bio()) && VerifyField(verifier, VT_IS_VIDEO) && VerifyField(verifier, VT_MASK) && VerifyOffset(verifier, VT_HEADER) && verifier.VerifyString(header()) && VerifyOffset(verifier, VT_USER) && verifier.VerifyString(user()) && verifier.EndTable(); } }; struct IGTaskBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_id(int32_t id) { fbb_.AddElement(IGTask::VT_ID, id, 0); } void add_file_info(flatbuffers::Offset file_info) { fbb_.AddOffset(IGTask::VT_FILE_INFO, file_info); } void add_time(flatbuffers::Offset time) { fbb_.AddOffset(IGTask::VT_TIME, time); } void add_description(flatbuffers::Offset description) { fbb_.AddOffset(IGTask::VT_DESCRIPTION, description); } void add_hashtags(flatbuffers::Offset hashtags) { fbb_.AddOffset(IGTask::VT_HASHTAGS, hashtags); } void add_requested_by(flatbuffers::Offset requested_by) { fbb_.AddOffset(IGTask::VT_REQUESTED_BY, requested_by); } void add_requested_by_phrase(flatbuffers::Offset requested_by_phrase) { fbb_.AddOffset(IGTask::VT_REQUESTED_BY_PHRASE, requested_by_phrase); } void add_promote_share(flatbuffers::Offset promote_share) { fbb_.AddOffset(IGTask::VT_PROMOTE_SHARE, promote_share); } void add_link_bio(flatbuffers::Offset link_bio) { fbb_.AddOffset(IGTask::VT_LINK_BIO, link_bio); } void add_is_video(bool is_video) { fbb_.AddElement(IGTask::VT_IS_VIDEO, static_cast(is_video), 0); } void add_mask(int32_t mask) { fbb_.AddElement(IGTask::VT_MASK, mask, 0); } void add_header(flatbuffers::Offset header) { fbb_.AddOffset(IGTask::VT_HEADER, header); } void add_user(flatbuffers::Offset user) { fbb_.AddOffset(IGTask::VT_USER, user); } explicit IGTaskBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } IGTaskBuilder &operator=(const IGTaskBuilder &); flatbuffers::Offset Finish() { const auto end = fbb_.EndTable(start_); auto o = flatbuffers::Offset(end); return o; } }; inline flatbuffers::Offset CreateIGTask( flatbuffers::FlatBufferBuilder &_fbb, int32_t id = 0, flatbuffers::Offset file_info = 0, flatbuffers::Offset time = 0, flatbuffers::Offset description = 0, flatbuffers::Offset hashtags = 0, flatbuffers::Offset requested_by = 0, flatbuffers::Offset requested_by_phrase = 0, flatbuffers::Offset promote_share = 0, flatbuffers::Offset link_bio = 0, bool is_video = false, int32_t mask = 0, flatbuffers::Offset header = 0, flatbuffers::Offset user = 0) { IGTaskBuilder builder_(_fbb); builder_.add_user(user); builder_.add_header(header); builder_.add_mask(mask); builder_.add_link_bio(link_bio); builder_.add_promote_share(promote_share); builder_.add_requested_by_phrase(requested_by_phrase); builder_.add_requested_by(requested_by); builder_.add_hashtags(hashtags); builder_.add_description(description); builder_.add_time(time); builder_.add_file_info(file_info); builder_.add_id(id); builder_.add_is_video(is_video); return builder_.Finish(); } inline flatbuffers::Offset CreateIGTaskDirect( flatbuffers::FlatBufferBuilder &_fbb, int32_t id = 0, const char *file_info = nullptr, const char *time = nullptr, const char *description = nullptr, const char *hashtags = nullptr, const char *requested_by = nullptr, const char *requested_by_phrase = nullptr, const char *promote_share = nullptr, const char *link_bio = nullptr, bool is_video = false, int32_t mask = 0, const char *header = nullptr, const char *user = nullptr) { auto file_info__ = file_info ? _fbb.CreateString(file_info) : 0; auto time__ = time ? _fbb.CreateString(time) : 0; auto description__ = description ? _fbb.CreateString(description) : 0; auto hashtags__ = hashtags ? _fbb.CreateString(hashtags) : 0; auto requested_by__ = requested_by ? _fbb.CreateString(requested_by) : 0; auto requested_by_phrase__ = requested_by_phrase ? _fbb.CreateString(requested_by_phrase) : 0; auto promote_share__ = promote_share ? _fbb.CreateString(promote_share) : 0; auto link_bio__ = link_bio ? _fbb.CreateString(link_bio) : 0; auto header__ = header ? _fbb.CreateString(header) : 0; auto user__ = user ? _fbb.CreateString(user) : 0; return IGData::CreateIGTask( _fbb, id, file_info__, time__, description__, hashtags__, requested_by__, requested_by_phrase__, promote_share__, link_bio__, is_video, mask, header__, user__); } inline const IGData::IGTask *GetIGTask(const void *buf) { return flatbuffers::GetRoot(buf); } inline const IGData::IGTask *GetSizePrefixedIGTask(const void *buf) { return flatbuffers::GetSizePrefixedRoot(buf); } inline bool VerifyIGTaskBuffer( flatbuffers::Verifier &verifier) { return verifier.VerifyBuffer(nullptr); } inline bool VerifySizePrefixedIGTaskBuffer( flatbuffers::Verifier &verifier) { return verifier.VerifySizePrefixedBuffer(nullptr); } inline void FinishIGTaskBuffer( flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset root) { fbb.Finish(root); } inline void FinishSizePrefixedIGTaskBuffer( flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset root) { fbb.FinishSizePrefixed(root); } } // namespace IGData #endif // FLATBUFFERS_GENERATED_INSTATASK_IGDATA_H_