space-data-module-sdk 0.8.26 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/README.md +5 -4
  2. package/docs/assembly.js +0 -18
  3. package/docs/assets/ai-credits/ai-credits.js +116 -0
  4. package/docs/assets/sdn-chrome/sdn-chrome.css +434 -0
  5. package/docs/assets/sdn-chrome/sdn-chrome.js +236 -0
  6. package/docs/browser-wasmedge-isomorphic.html +29 -41
  7. package/docs/byo-wasm-quickstart.html +29 -41
  8. package/docs/conformance.html +29 -41
  9. package/docs/events-abi.html +29 -41
  10. package/docs/families/analytics.html +29 -41
  11. package/docs/families/attitude.html +29 -41
  12. package/docs/families/behavior.html +29 -41
  13. package/docs/families/breakup.html +29 -41
  14. package/docs/families/conjunction.html +29 -41
  15. package/docs/families/data-source.html +29 -41
  16. package/docs/families/effects.html +29 -41
  17. package/docs/families/environment.html +29 -41
  18. package/docs/families/estimation.html +29 -41
  19. package/docs/families/gnc.html +29 -41
  20. package/docs/families/maneuver.html +29 -41
  21. package/docs/families/obstruction.html +29 -41
  22. package/docs/families/propagator.html +29 -41
  23. package/docs/families/propulsion.html +29 -41
  24. package/docs/families/reentry.html +29 -41
  25. package/docs/families/rf.html +29 -41
  26. package/docs/families/scheduler.html +29 -41
  27. package/docs/families/sensor.html +29 -41
  28. package/docs/families/signature.html +29 -41
  29. package/docs/flatsql-host-contract.html +29 -41
  30. package/docs/flatsql-streaming-standard.html +29 -41
  31. package/docs/gpu-module-abi.html +29 -41
  32. package/docs/index.html +43 -47
  33. package/docs/isomorphic-pthreads.html +29 -41
  34. package/docs/isomorphic-sdn-runtime-plan.html +29 -41
  35. package/docs/language-runtime-matrix.html +29 -41
  36. package/docs/media/module-sdk-reel-poster.webp +0 -0
  37. package/docs/media/module-sdk-reel.mp4 +0 -0
  38. package/docs/media/module-sdk-reel.webm +0 -0
  39. package/docs/media/reel/reel.css +53 -0
  40. package/docs/media/reel/reel.js +272 -0
  41. package/docs/module-bundle-runtime-plan.html +29 -41
  42. package/docs/module-publication-standard.html +29 -41
  43. package/docs/node-red-default-node-parity.html +29 -41
  44. package/docs/protect-and-sign.html +29 -41
  45. package/docs/protocol-installation.html +29 -41
  46. package/docs/publication-submission.html +29 -41
  47. package/docs/secrets-capability.html +29 -41
  48. package/docs/styles.css +89 -157
  49. package/docs/testing-harness.html +29 -41
  50. package/docs/tri-runtime-parity-gate.html +29 -41
  51. package/docs/tri-runtime-parity.html +29 -41
  52. package/package.json +5 -3
  53. package/schemas/runtime/FlowNotice.fbs +39 -0
  54. package/schemas/runtime/HostOps.fbs +453 -0
  55. package/schemas/runtime/HttpRequest.fbs +25 -0
  56. package/schemas/runtime/HttpResponse.fbs +24 -0
  57. package/schemas/runtime/IngestRequest.fbs +58 -0
  58. package/schemas/runtime/IngestResult.fbs +23 -0
  59. package/schemas/runtime/ModuleConfig.fbs +41 -0
  60. package/schemas/runtime/RuntimeCommon.fbs +33 -0
  61. package/schemas/runtime/TimerTick.fbs +18 -0
  62. package/src/compiler/compileModule.js +20 -2
  63. package/src/generated/runtime/aligned/HostOps_aligned.js +3924 -0
  64. package/src/generated/runtime/aligned/HostOps_aligned.ts +4620 -0
  65. package/src/generated/runtime/aligned/HostOps_enums.js +14 -0
  66. package/src/generated/runtime/aligned/HostOps_enums.ts +7 -0
  67. package/src/generated/runtime/cpp/FlowNotice_generated.h +367 -0
  68. package/src/generated/runtime/cpp/HostOps_aligned.h +3547 -0
  69. package/src/generated/runtime/cpp/HttpRequest_generated.h +317 -0
  70. package/src/generated/runtime/cpp/HttpResponse_generated.h +315 -0
  71. package/src/generated/runtime/cpp/IngestRequest_generated.h +764 -0
  72. package/src/generated/runtime/cpp/IngestResult_generated.h +319 -0
  73. package/src/generated/runtime/cpp/ModuleConfig_generated.h +604 -0
  74. package/src/generated/runtime/cpp/RuntimeCommon_generated.h +410 -0
  75. package/src/generated/runtime/cpp/TimerTick_generated.h +229 -0
  76. package/src/generated/runtime/sdn/runtime/ArchiveTarget.js +78 -0
  77. package/src/generated/runtime/sdn/runtime/ArchiveTarget.ts +104 -0
  78. package/src/generated/runtime/sdn/runtime/ConfigEntry.js +202 -0
  79. package/src/generated/runtime/sdn/runtime/ConfigEntry.ts +251 -0
  80. package/src/generated/runtime/sdn/runtime/ConfigTable.js +80 -0
  81. package/src/generated/runtime/sdn/runtime/ConfigTable.ts +97 -0
  82. package/src/generated/runtime/sdn/runtime/FlowNotice.js +196 -0
  83. package/src/generated/runtime/sdn/runtime/FlowNotice.ts +254 -0
  84. package/src/generated/runtime/sdn/runtime/Header.js +79 -0
  85. package/src/generated/runtime/sdn/runtime/Header.ts +100 -0
  86. package/src/generated/runtime/sdn/runtime/HttpRequest.js +216 -0
  87. package/src/generated/runtime/sdn/runtime/HttpRequest.ts +265 -0
  88. package/src/generated/runtime/sdn/runtime/HttpResponse.js +216 -0
  89. package/src/generated/runtime/sdn/runtime/HttpResponse.ts +267 -0
  90. package/src/generated/runtime/sdn/runtime/IngestRequest.js +121 -0
  91. package/src/generated/runtime/sdn/runtime/IngestRequest.ts +155 -0
  92. package/src/generated/runtime/sdn/runtime/IngestResult.js +184 -0
  93. package/src/generated/runtime/sdn/runtime/IngestResult.ts +235 -0
  94. package/src/generated/runtime/sdn/runtime/ModuleConfig.js +92 -0
  95. package/src/generated/runtime/sdn/runtime/ModuleConfig.ts +114 -0
  96. package/src/generated/runtime/sdn/runtime/Provenance.js +288 -0
  97. package/src/generated/runtime/sdn/runtime/Provenance.ts +368 -0
  98. package/src/generated/runtime/sdn/runtime/SourceTags.js +181 -0
  99. package/src/generated/runtime/sdn/runtime/SourceTags.ts +253 -0
  100. package/src/generated/runtime/sdn/runtime/TimerTick.js +119 -0
  101. package/src/generated/runtime/sdn/runtime/TimerTick.ts +148 -0
  102. package/src/generated/runtime/sdn/runtime/configValueKind.js +12 -0
  103. package/src/generated/runtime/sdn/runtime/configValueKind.ts +19 -0
  104. package/src/generated/runtime/sdn/runtime/flowNoticeKind.js +11 -0
  105. package/src/generated/runtime/sdn/runtime/flowNoticeKind.ts +34 -0
  106. package/src/generated/runtime/sdn/runtime/reconcileMode.js +9 -0
  107. package/src/generated/runtime/sdn/runtime/reconcileMode.ts +23 -0
  108. package/src/generated/runtime/sdn/runtime.js +16 -0
  109. package/src/generated/runtime/sdn/runtime.ts +17 -0
  110. package/src/host/abi.js +20 -3
  111. package/src/host/browserHost.js +2 -0
  112. package/src/host/cpp/typedHostcall.hpp +201 -0
  113. package/src/host/hostWorkerBundleSources.js +3 -3
  114. package/src/host/nodeHost.js +1 -0
  115. package/src/host/typedDispatch.js +230 -0
  116. package/src/index.d.ts +2 -0
  117. package/src/invoke/codec.js +3 -2
  118. package/src/licensing/records.js +10 -1
  119. package/src/standards/runtimeContracts.js +536 -0
  120. package/src/standards/sharedCatalog.js +27 -0
@@ -0,0 +1,14 @@
1
+ const deliverMode = Object.freeze({ "Inline": 0, "Ref": 1 });
2
+ const configEntryKind = Object.freeze({ "String": 0, "Number": 1, "Bool": 2 });
3
+ const reconcileKind = Object.freeze({ "Duplicates": 0, "None": 1, "Current": 2 });
4
+ const sqlValueKind = Object.freeze({ "Null": 0, "Bool": 1, "I64": 2, "F64": 3, "Str": 4 });
5
+ const sandboxWant = Object.freeze({ "Stream": 0, "Rows": 1, "Auto": 2 });
6
+ const cryptoAlgorithm = Object.freeze({ "Default": 0, "Ed25519": 1, "Secp256k1": 2, "Secp256k1Digest": 3, "X25519": 4, "Sha256": 5, "Sha512": 6, "Aes256Gcm": 7, "HkdfSha256": 8 });
7
+ export {
8
+ configEntryKind,
9
+ cryptoAlgorithm,
10
+ deliverMode,
11
+ reconcileKind,
12
+ sandboxWant,
13
+ sqlValueKind
14
+ };
@@ -0,0 +1,7 @@
1
+ // generated by scripts/generate-runtime-bindings.mjs from HostOps.fbs
2
+ export const deliverMode = Object.freeze({"Inline":0,"Ref":1});
3
+ export const configEntryKind = Object.freeze({"String":0,"Number":1,"Bool":2});
4
+ export const reconcileKind = Object.freeze({"Duplicates":0,"None":1,"Current":2});
5
+ export const sqlValueKind = Object.freeze({"Null":0,"Bool":1,"I64":2,"F64":3,"Str":4});
6
+ export const sandboxWant = Object.freeze({"Stream":0,"Rows":1,"Auto":2});
7
+ export const cryptoAlgorithm = Object.freeze({"Default":0,"Ed25519":1,"Secp256k1":2,"Secp256k1Digest":3,"X25519":4,"Sha256":5,"Sha512":6,"Aes256Gcm":7,"HkdfSha256":8});
@@ -0,0 +1,367 @@
1
+ // automatically generated by the FlatBuffers compiler, do not modify
2
+
3
+
4
+ #ifndef FLATBUFFERS_GENERATED_FLOWNOTICE_SDN_RUNTIME_H_
5
+ #define FLATBUFFERS_GENERATED_FLOWNOTICE_SDN_RUNTIME_H_
6
+
7
+ #include "flatbuffers/flatbuffers.h"
8
+
9
+ // Ensure the included flatbuffers.h is the same version as when this file was
10
+ // generated, otherwise it may not be compatible.
11
+ // flatc version static_assert relaxed by generate-runtime-bindings.mjs:
12
+ // the HTTP envelope tables use only basic FlatBuffers features and are
13
+ // inlined next to spacedatastandards.org headers pinned to a different
14
+ // flatbuffers runtime version.
15
+
16
+ #include "RuntimeCommon_generated.h"
17
+
18
+ namespace sdn {
19
+ namespace runtime {
20
+
21
+ struct FlowNotice;
22
+ struct FlowNoticeBuilder;
23
+ struct FlowNoticeT;
24
+
25
+ /// What a module pass did that is not a stored batch.
26
+ enum flowNoticeKind : uint8_t {
27
+ /// The source has nothing new (a 304, or the planned run already planned): a success without a batch. The flow
28
+ /// runtime does not count it as a failed retrieval.
29
+ flowNoticeKind_Unchanged = 0,
30
+ /// The pass did nothing by design (live access off, nothing to fetch).
31
+ flowNoticeKind_Skipped = 1,
32
+ /// Something expected was not there (a lead the run lacks, a file not yet published).
33
+ flowNoticeKind_Missing = 2,
34
+ /// Records left a rolling window and were deleted.
35
+ flowNoticeKind_Expired = 3,
36
+ /// Anything else worth recording.
37
+ flowNoticeKind_Info = 4,
38
+ flowNoticeKind_MIN = flowNoticeKind_Unchanged,
39
+ flowNoticeKind_MAX = flowNoticeKind_Info
40
+ };
41
+
42
+ inline const flowNoticeKind (&EnumValuesflowNoticeKind())[5] {
43
+ static const flowNoticeKind values[] = {
44
+ flowNoticeKind_Unchanged,
45
+ flowNoticeKind_Skipped,
46
+ flowNoticeKind_Missing,
47
+ flowNoticeKind_Expired,
48
+ flowNoticeKind_Info
49
+ };
50
+ return values;
51
+ }
52
+
53
+ inline const char * const *EnumNamesflowNoticeKind() {
54
+ static const char * const names[6] = {
55
+ "Unchanged",
56
+ "Skipped",
57
+ "Missing",
58
+ "Expired",
59
+ "Info",
60
+ nullptr
61
+ };
62
+ return names;
63
+ }
64
+
65
+ inline const char *EnumNameflowNoticeKind(flowNoticeKind e) {
66
+ if (::flatbuffers::IsOutRange(e, flowNoticeKind_Unchanged, flowNoticeKind_Info)) return "";
67
+ const size_t index = static_cast<size_t>(e);
68
+ return EnumNamesflowNoticeKind()[index];
69
+ }
70
+
71
+ struct FlowNoticeT : public ::flatbuffers::NativeTable {
72
+ typedef FlowNotice TableType;
73
+ sdn::runtime::flowNoticeKind KIND = sdn::runtime::flowNoticeKind_Unchanged;
74
+ std::string SCHEMA{};
75
+ std::string PROVIDER_ID{};
76
+ std::string SOURCE_NAME{};
77
+ std::string BATCH_ID{};
78
+ uint64_t COUNT = 0;
79
+ std::string REASON{};
80
+ std::vector<std::string> ITEMS{};
81
+ uint64_t AT_MS = 0;
82
+ };
83
+
84
+ /// A module's report of a pass, to the flow's egress and the node's ledger. Replaces the JSON status, report and
85
+ /// unchanged-notice frames.
86
+ struct FlowNotice FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
87
+ typedef FlowNoticeT NativeTableType;
88
+ typedef FlowNoticeBuilder Builder;
89
+ enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
90
+ VT_KIND = 4,
91
+ VT_SCHEMA = 6,
92
+ VT_PROVIDER_ID = 8,
93
+ VT_SOURCE_NAME = 10,
94
+ VT_BATCH_ID = 12,
95
+ VT_COUNT = 14,
96
+ VT_REASON = 16,
97
+ VT_ITEMS = 18,
98
+ VT_AT_MS = 20
99
+ };
100
+ sdn::runtime::flowNoticeKind KIND() const {
101
+ return static_cast<sdn::runtime::flowNoticeKind>(GetField<uint8_t>(VT_KIND, 0));
102
+ }
103
+ /// The lane it concerns (any of them may be empty).
104
+ const ::flatbuffers::String *SCHEMA() const {
105
+ return GetPointer<const ::flatbuffers::String *>(VT_SCHEMA);
106
+ }
107
+ const ::flatbuffers::String *PROVIDER_ID() const {
108
+ return GetPointer<const ::flatbuffers::String *>(VT_PROVIDER_ID);
109
+ }
110
+ const ::flatbuffers::String *SOURCE_NAME() const {
111
+ return GetPointer<const ::flatbuffers::String *>(VT_SOURCE_NAME);
112
+ }
113
+ const ::flatbuffers::String *BATCH_ID() const {
114
+ return GetPointer<const ::flatbuffers::String *>(VT_BATCH_ID);
115
+ }
116
+ /// How many (records expired, leads missing, inventories unchanged ...).
117
+ uint64_t COUNT() const {
118
+ return GetField<uint64_t>(VT_COUNT, 0);
119
+ }
120
+ /// A short reason, e.g. "already-planned".
121
+ const ::flatbuffers::String *REASON() const {
122
+ return GetPointer<const ::flatbuffers::String *>(VT_REASON);
123
+ }
124
+ /// The items concerned, e.g. the missing inventories' URLs.
125
+ const ::flatbuffers::Vector<::flatbuffers::Offset<::flatbuffers::String>> *ITEMS() const {
126
+ return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<::flatbuffers::String>> *>(VT_ITEMS);
127
+ }
128
+ /// A time the notice is about (e.g. a retention cutoff), Unix milliseconds UTC; 0 = none.
129
+ uint64_t AT_MS() const {
130
+ return GetField<uint64_t>(VT_AT_MS, 0);
131
+ }
132
+ template <bool B = false>
133
+ bool Verify(::flatbuffers::VerifierTemplate<B> &verifier) const {
134
+ return VerifyTableStart(verifier) &&
135
+ VerifyField<uint8_t>(verifier, VT_KIND, 1) &&
136
+ VerifyOffset(verifier, VT_SCHEMA) &&
137
+ verifier.VerifyString(SCHEMA()) &&
138
+ VerifyOffset(verifier, VT_PROVIDER_ID) &&
139
+ verifier.VerifyString(PROVIDER_ID()) &&
140
+ VerifyOffset(verifier, VT_SOURCE_NAME) &&
141
+ verifier.VerifyString(SOURCE_NAME()) &&
142
+ VerifyOffset(verifier, VT_BATCH_ID) &&
143
+ verifier.VerifyString(BATCH_ID()) &&
144
+ VerifyField<uint64_t>(verifier, VT_COUNT, 8) &&
145
+ VerifyOffset(verifier, VT_REASON) &&
146
+ verifier.VerifyString(REASON()) &&
147
+ VerifyOffset(verifier, VT_ITEMS) &&
148
+ verifier.VerifyVector(ITEMS()) &&
149
+ verifier.VerifyVectorOfStrings(ITEMS()) &&
150
+ VerifyField<uint64_t>(verifier, VT_AT_MS, 8) &&
151
+ verifier.EndTable();
152
+ }
153
+ FlowNoticeT *UnPack(const ::flatbuffers::resolver_function_t *_resolver = nullptr) const;
154
+ void UnPackTo(FlowNoticeT *_o, const ::flatbuffers::resolver_function_t *_resolver = nullptr) const;
155
+ static ::flatbuffers::Offset<FlowNotice> Pack(::flatbuffers::FlatBufferBuilder &_fbb, const FlowNoticeT* _o, const ::flatbuffers::rehasher_function_t *_rehasher = nullptr);
156
+ };
157
+
158
+ struct FlowNoticeBuilder {
159
+ typedef FlowNotice Table;
160
+ ::flatbuffers::FlatBufferBuilder &fbb_;
161
+ ::flatbuffers::uoffset_t start_;
162
+ void add_KIND(sdn::runtime::flowNoticeKind KIND) {
163
+ fbb_.AddElement<uint8_t>(FlowNotice::VT_KIND, static_cast<uint8_t>(KIND), 0);
164
+ }
165
+ void add_SCHEMA(::flatbuffers::Offset<::flatbuffers::String> SCHEMA) {
166
+ fbb_.AddOffset(FlowNotice::VT_SCHEMA, SCHEMA);
167
+ }
168
+ void add_PROVIDER_ID(::flatbuffers::Offset<::flatbuffers::String> PROVIDER_ID) {
169
+ fbb_.AddOffset(FlowNotice::VT_PROVIDER_ID, PROVIDER_ID);
170
+ }
171
+ void add_SOURCE_NAME(::flatbuffers::Offset<::flatbuffers::String> SOURCE_NAME) {
172
+ fbb_.AddOffset(FlowNotice::VT_SOURCE_NAME, SOURCE_NAME);
173
+ }
174
+ void add_BATCH_ID(::flatbuffers::Offset<::flatbuffers::String> BATCH_ID) {
175
+ fbb_.AddOffset(FlowNotice::VT_BATCH_ID, BATCH_ID);
176
+ }
177
+ void add_COUNT(uint64_t COUNT) {
178
+ fbb_.AddElement<uint64_t>(FlowNotice::VT_COUNT, COUNT, 0);
179
+ }
180
+ void add_REASON(::flatbuffers::Offset<::flatbuffers::String> REASON) {
181
+ fbb_.AddOffset(FlowNotice::VT_REASON, REASON);
182
+ }
183
+ void add_ITEMS(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<::flatbuffers::String>>> ITEMS) {
184
+ fbb_.AddOffset(FlowNotice::VT_ITEMS, ITEMS);
185
+ }
186
+ void add_AT_MS(uint64_t AT_MS) {
187
+ fbb_.AddElement<uint64_t>(FlowNotice::VT_AT_MS, AT_MS, 0);
188
+ }
189
+ explicit FlowNoticeBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
190
+ : fbb_(_fbb) {
191
+ start_ = fbb_.StartTable();
192
+ }
193
+ ::flatbuffers::Offset<FlowNotice> Finish() {
194
+ const auto end = fbb_.EndTable(start_);
195
+ auto o = ::flatbuffers::Offset<FlowNotice>(end);
196
+ return o;
197
+ }
198
+ };
199
+
200
+ inline ::flatbuffers::Offset<FlowNotice> CreateFlowNotice(
201
+ ::flatbuffers::FlatBufferBuilder &_fbb,
202
+ sdn::runtime::flowNoticeKind KIND = sdn::runtime::flowNoticeKind_Unchanged,
203
+ ::flatbuffers::Offset<::flatbuffers::String> SCHEMA = 0,
204
+ ::flatbuffers::Offset<::flatbuffers::String> PROVIDER_ID = 0,
205
+ ::flatbuffers::Offset<::flatbuffers::String> SOURCE_NAME = 0,
206
+ ::flatbuffers::Offset<::flatbuffers::String> BATCH_ID = 0,
207
+ uint64_t COUNT = 0,
208
+ ::flatbuffers::Offset<::flatbuffers::String> REASON = 0,
209
+ ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<::flatbuffers::String>>> ITEMS = 0,
210
+ uint64_t AT_MS = 0) {
211
+ FlowNoticeBuilder builder_(_fbb);
212
+ builder_.add_AT_MS(AT_MS);
213
+ builder_.add_COUNT(COUNT);
214
+ builder_.add_ITEMS(ITEMS);
215
+ builder_.add_REASON(REASON);
216
+ builder_.add_BATCH_ID(BATCH_ID);
217
+ builder_.add_SOURCE_NAME(SOURCE_NAME);
218
+ builder_.add_PROVIDER_ID(PROVIDER_ID);
219
+ builder_.add_SCHEMA(SCHEMA);
220
+ builder_.add_KIND(KIND);
221
+ return builder_.Finish();
222
+ }
223
+
224
+ inline ::flatbuffers::Offset<FlowNotice> CreateFlowNoticeDirect(
225
+ ::flatbuffers::FlatBufferBuilder &_fbb,
226
+ sdn::runtime::flowNoticeKind KIND = sdn::runtime::flowNoticeKind_Unchanged,
227
+ const char *SCHEMA = nullptr,
228
+ const char *PROVIDER_ID = nullptr,
229
+ const char *SOURCE_NAME = nullptr,
230
+ const char *BATCH_ID = nullptr,
231
+ uint64_t COUNT = 0,
232
+ const char *REASON = nullptr,
233
+ const std::vector<::flatbuffers::Offset<::flatbuffers::String>> *ITEMS = nullptr,
234
+ uint64_t AT_MS = 0) {
235
+ auto SCHEMA__ = SCHEMA ? _fbb.CreateString(SCHEMA) : 0;
236
+ auto PROVIDER_ID__ = PROVIDER_ID ? _fbb.CreateString(PROVIDER_ID) : 0;
237
+ auto SOURCE_NAME__ = SOURCE_NAME ? _fbb.CreateString(SOURCE_NAME) : 0;
238
+ auto BATCH_ID__ = BATCH_ID ? _fbb.CreateString(BATCH_ID) : 0;
239
+ auto REASON__ = REASON ? _fbb.CreateString(REASON) : 0;
240
+ auto ITEMS__ = ITEMS ? _fbb.CreateVector<::flatbuffers::Offset<::flatbuffers::String>>(*ITEMS) : 0;
241
+ return sdn::runtime::CreateFlowNotice(
242
+ _fbb,
243
+ KIND,
244
+ SCHEMA__,
245
+ PROVIDER_ID__,
246
+ SOURCE_NAME__,
247
+ BATCH_ID__,
248
+ COUNT,
249
+ REASON__,
250
+ ITEMS__,
251
+ AT_MS);
252
+ }
253
+
254
+ ::flatbuffers::Offset<FlowNotice> CreateFlowNotice(::flatbuffers::FlatBufferBuilder &_fbb, const FlowNoticeT *_o, const ::flatbuffers::rehasher_function_t *_rehasher = nullptr);
255
+
256
+ inline FlowNoticeT *FlowNotice::UnPack(const ::flatbuffers::resolver_function_t *_resolver) const {
257
+ auto _o = std::unique_ptr<FlowNoticeT>(new FlowNoticeT());
258
+ UnPackTo(_o.get(), _resolver);
259
+ return _o.release();
260
+ }
261
+
262
+ inline void FlowNotice::UnPackTo(FlowNoticeT *_o, const ::flatbuffers::resolver_function_t *_resolver) const {
263
+ (void)_o;
264
+ (void)_resolver;
265
+ { auto _e = KIND(); _o->KIND = _e; }
266
+ { auto _e = SCHEMA(); if (_e) _o->SCHEMA = _e->str(); }
267
+ { auto _e = PROVIDER_ID(); if (_e) _o->PROVIDER_ID = _e->str(); }
268
+ { auto _e = SOURCE_NAME(); if (_e) _o->SOURCE_NAME = _e->str(); }
269
+ { auto _e = BATCH_ID(); if (_e) _o->BATCH_ID = _e->str(); }
270
+ { auto _e = COUNT(); _o->COUNT = _e; }
271
+ { auto _e = REASON(); if (_e) _o->REASON = _e->str(); }
272
+ { auto _e = ITEMS(); if (_e) { _o->ITEMS.resize(_e->size()); for (::flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->ITEMS[_i] = _e->Get(_i)->str(); } } else { _o->ITEMS.resize(0); } }
273
+ { auto _e = AT_MS(); _o->AT_MS = _e; }
274
+ }
275
+
276
+ inline ::flatbuffers::Offset<FlowNotice> CreateFlowNotice(::flatbuffers::FlatBufferBuilder &_fbb, const FlowNoticeT *_o, const ::flatbuffers::rehasher_function_t *_rehasher) {
277
+ return FlowNotice::Pack(_fbb, _o, _rehasher);
278
+ }
279
+
280
+ inline ::flatbuffers::Offset<FlowNotice> FlowNotice::Pack(::flatbuffers::FlatBufferBuilder &_fbb, const FlowNoticeT* _o, const ::flatbuffers::rehasher_function_t *_rehasher) {
281
+ (void)_rehasher;
282
+ (void)_o;
283
+ struct _VectorArgs { ::flatbuffers::FlatBufferBuilder *__fbb; const FlowNoticeT* __o; const ::flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
284
+ auto _KIND = _o->KIND;
285
+ auto _SCHEMA = _o->SCHEMA.empty() ? 0 : _fbb.CreateString(_o->SCHEMA);
286
+ auto _PROVIDER_ID = _o->PROVIDER_ID.empty() ? 0 : _fbb.CreateString(_o->PROVIDER_ID);
287
+ auto _SOURCE_NAME = _o->SOURCE_NAME.empty() ? 0 : _fbb.CreateString(_o->SOURCE_NAME);
288
+ auto _BATCH_ID = _o->BATCH_ID.empty() ? 0 : _fbb.CreateString(_o->BATCH_ID);
289
+ auto _COUNT = _o->COUNT;
290
+ auto _REASON = _o->REASON.empty() ? 0 : _fbb.CreateString(_o->REASON);
291
+ auto _ITEMS = _o->ITEMS.size() ? _fbb.CreateVectorOfStrings(_o->ITEMS) : 0;
292
+ auto _AT_MS = _o->AT_MS;
293
+ return sdn::runtime::CreateFlowNotice(
294
+ _fbb,
295
+ _KIND,
296
+ _SCHEMA,
297
+ _PROVIDER_ID,
298
+ _SOURCE_NAME,
299
+ _BATCH_ID,
300
+ _COUNT,
301
+ _REASON,
302
+ _ITEMS,
303
+ _AT_MS);
304
+ }
305
+
306
+ inline const sdn::runtime::FlowNotice *GetFlowNotice(const void *buf) {
307
+ return ::flatbuffers::GetRoot<sdn::runtime::FlowNotice>(buf);
308
+ }
309
+
310
+ inline const sdn::runtime::FlowNotice *GetSizePrefixedFlowNotice(const void *buf) {
311
+ return ::flatbuffers::GetSizePrefixedRoot<sdn::runtime::FlowNotice>(buf);
312
+ }
313
+
314
+ inline const char *FlowNoticeIdentifier() {
315
+ return "FNTC";
316
+ }
317
+
318
+ inline bool FlowNoticeBufferHasIdentifier(const void *buf) {
319
+ return ::flatbuffers::BufferHasIdentifier(
320
+ buf, FlowNoticeIdentifier());
321
+ }
322
+
323
+ inline bool SizePrefixedFlowNoticeBufferHasIdentifier(const void *buf) {
324
+ return ::flatbuffers::BufferHasIdentifier(
325
+ buf, FlowNoticeIdentifier(), true);
326
+ }
327
+
328
+ template <bool B = false>
329
+ inline bool VerifyFlowNoticeBuffer(
330
+ ::flatbuffers::VerifierTemplate<B> &verifier) {
331
+ return verifier.template VerifyBuffer<sdn::runtime::FlowNotice>(FlowNoticeIdentifier());
332
+ }
333
+
334
+ template <bool B = false>
335
+ inline bool VerifySizePrefixedFlowNoticeBuffer(
336
+ ::flatbuffers::VerifierTemplate<B> &verifier) {
337
+ return verifier.template VerifySizePrefixedBuffer<sdn::runtime::FlowNotice>(FlowNoticeIdentifier());
338
+ }
339
+
340
+ inline void FinishFlowNoticeBuffer(
341
+ ::flatbuffers::FlatBufferBuilder &fbb,
342
+ ::flatbuffers::Offset<sdn::runtime::FlowNotice> root) {
343
+ fbb.Finish(root, FlowNoticeIdentifier());
344
+ }
345
+
346
+ inline void FinishSizePrefixedFlowNoticeBuffer(
347
+ ::flatbuffers::FlatBufferBuilder &fbb,
348
+ ::flatbuffers::Offset<sdn::runtime::FlowNotice> root) {
349
+ fbb.FinishSizePrefixed(root, FlowNoticeIdentifier());
350
+ }
351
+
352
+ inline std::unique_ptr<sdn::runtime::FlowNoticeT> UnPackFlowNotice(
353
+ const void *buf,
354
+ const ::flatbuffers::resolver_function_t *res = nullptr) {
355
+ return std::unique_ptr<sdn::runtime::FlowNoticeT>(GetFlowNotice(buf)->UnPack(res));
356
+ }
357
+
358
+ inline std::unique_ptr<sdn::runtime::FlowNoticeT> UnPackSizePrefixedFlowNotice(
359
+ const void *buf,
360
+ const ::flatbuffers::resolver_function_t *res = nullptr) {
361
+ return std::unique_ptr<sdn::runtime::FlowNoticeT>(GetSizePrefixedFlowNotice(buf)->UnPack(res));
362
+ }
363
+
364
+ } // namespace runtime
365
+ } // namespace sdn
366
+
367
+ #endif // FLATBUFFERS_GENERATED_FLOWNOTICE_SDN_RUNTIME_H_