@code0-tech/tucana 0.0.62 → 0.0.65
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.
- package/dist/aquila.cjs.js +1 -0
- package/dist/aquila.d.ts +2 -0
- package/dist/aquila.es.js +858 -0
- package/dist/helpers/helpers.d.ts +1 -0
- package/{helpers → dist/helpers}/shared.struct_helper.d.ts +2 -2
- package/dist/helpers.cjs.js +1 -0
- package/dist/helpers.d.ts +2 -0
- package/dist/helpers.es.js +61 -0
- package/{pb → dist/pb}/_generated/aquila.action_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/aquila.action_pb.d.ts +5 -14
- package/{pb → dist/pb}/_generated/aquila.data_type_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/aquila.data_type_pb.d.ts +4 -11
- package/{pb → dist/pb}/_generated/aquila.flow_type_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/aquila.flow_type_pb.d.ts +4 -11
- package/{pb → dist/pb}/_generated/aquila.runtime_function_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/aquila.runtime_function_pb.d.ts +4 -11
- package/{pb → dist/pb}/_generated/aquila.runtime_status_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/aquila.runtime_status_pb.d.ts +4 -12
- package/{pb → dist/pb}/_generated/aquila.runtime_usage_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/aquila.runtime_usage_pb.d.ts +4 -11
- package/{pb → dist/pb}/_generated/sagittarius.action_configuration_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/sagittarius.action_configuration_pb.d.ts +4 -11
- package/{pb → dist/pb}/_generated/sagittarius.data_type_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/sagittarius.data_type_pb.d.ts +4 -11
- package/{pb → dist/pb}/_generated/sagittarius.flow_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/sagittarius.flow_pb.d.ts +5 -13
- package/{pb → dist/pb}/_generated/sagittarius.flow_type_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/sagittarius.flow_type_pb.d.ts +4 -11
- package/{pb → dist/pb}/_generated/sagittarius.ping_pb.client.d.ts +7 -11
- package/{pb → dist/pb}/_generated/sagittarius.ping_pb.d.ts +3 -10
- package/{pb → dist/pb}/_generated/sagittarius.runtime_function_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/sagittarius.runtime_function_pb.d.ts +4 -11
- package/{pb → dist/pb}/_generated/sagittarius.runtime_status_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/sagittarius.runtime_status_pb.d.ts +4 -12
- package/{pb → dist/pb}/_generated/sagittarius.runtime_usage_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/sagittarius.runtime_usage_pb.d.ts +4 -11
- package/dist/pb/_generated/sagittarius.text_execution_pb.client.d.ts +27 -0
- package/{pb → dist/pb}/_generated/sagittarius.text_execution_pb.d.ts +4 -11
- package/{pb → dist/pb}/_generated/shared.action_configuration_pb.d.ts +3 -11
- package/{pb → dist/pb}/_generated/shared.data_type_pb.d.ts +2 -10
- package/{pb → dist/pb}/_generated/shared.flow_definition_pb.d.ts +35 -47
- package/{pb → dist/pb}/_generated/shared.flow_pb.d.ts +12 -24
- package/{pb → dist/pb}/_generated/shared.runtime_function_pb.d.ts +3 -11
- package/{pb → dist/pb}/_generated/shared.runtime_status_pb.d.ts +52 -32
- package/{pb → dist/pb}/_generated/shared.runtime_usage_pb.d.ts +1 -9
- package/{pb → dist/pb}/_generated/shared.struct_pb.d.ts +62 -55
- package/{pb → dist/pb}/_generated/shared.translation_pb.d.ts +1 -9
- package/dist/pb/aquila.d.ts +12 -0
- package/dist/pb/sagittarius.d.ts +18 -0
- package/dist/pb/shared.d.ts +9 -0
- package/dist/rpc-interceptor-DARwxsWH.cjs +1 -0
- package/dist/rpc-interceptor-Dzh_AxUX.js +52 -0
- package/dist/sagittarius.cjs.js +1 -0
- package/dist/sagittarius.d.ts +2 -0
- package/dist/sagittarius.es.js +1212 -0
- package/dist/shared.cjs.js +1 -0
- package/dist/shared.d.ts +2 -0
- package/dist/shared.es.js +3 -0
- package/dist/shared.flow_pb-BBS51Wou.cjs +1 -0
- package/dist/shared.flow_pb-Bt00q6yT.js +717 -0
- package/dist/shared.runtime_usage_pb-Cgr2Xle6.cjs +2 -0
- package/dist/shared.runtime_usage_pb-QD7fpRLv.js +3069 -0
- package/package.json +24 -22
- package/helpers/helpers.d.ts +0 -1
- package/helpers/helpers.js +0 -1
- package/helpers/helpers.ts +0 -1
- package/helpers/shared.struct_helper.js +0 -59
- package/helpers/shared.struct_helper.ts +0 -70
- package/index.js +0 -0
- package/pb/_generated/.gitkeep +0 -0
- package/pb/_generated/aquila.action_pb.client.js +0 -25
- package/pb/_generated/aquila.action_pb.js +0 -468
- package/pb/_generated/aquila.data_type_pb.client.js +0 -23
- package/pb/_generated/aquila.data_type_pb.js +0 -112
- package/pb/_generated/aquila.flow_type_pb.client.js +0 -25
- package/pb/_generated/aquila.flow_type_pb.js +0 -112
- package/pb/_generated/aquila.runtime_function_pb.client.js +0 -25
- package/pb/_generated/aquila.runtime_function_pb.js +0 -112
- package/pb/_generated/aquila.runtime_status_pb.client.js +0 -23
- package/pb/_generated/aquila.runtime_status_pb.js +0 -126
- package/pb/_generated/aquila.runtime_usage_pb.client.js +0 -23
- package/pb/_generated/aquila.runtime_usage_pb.js +0 -112
- package/pb/_generated/sagittarius.action_configuration_pb.client.js +0 -23
- package/pb/_generated/sagittarius.action_configuration_pb.js +0 -120
- package/pb/_generated/sagittarius.data_type_pb.client.js +0 -23
- package/pb/_generated/sagittarius.data_type_pb.js +0 -112
- package/pb/_generated/sagittarius.flow_pb.client.js +0 -23
- package/pb/_generated/sagittarius.flow_pb.js +0 -138
- package/pb/_generated/sagittarius.flow_type_pb.client.js +0 -25
- package/pb/_generated/sagittarius.flow_type_pb.js +0 -112
- package/pb/_generated/sagittarius.ping_pb.client.js +0 -23
- package/pb/_generated/sagittarius.ping_pb.js +0 -64
- package/pb/_generated/sagittarius.runtime_function_pb.client.js +0 -25
- package/pb/_generated/sagittarius.runtime_function_pb.js +0 -112
- package/pb/_generated/sagittarius.runtime_status_pb.client.js +0 -23
- package/pb/_generated/sagittarius.runtime_status_pb.js +0 -126
- package/pb/_generated/sagittarius.runtime_usage_pb.client.js +0 -23
- package/pb/_generated/sagittarius.runtime_usage_pb.js +0 -112
- package/pb/_generated/sagittarius.text_execution_pb.client.d.ts +0 -32
- package/pb/_generated/sagittarius.text_execution_pb.client.js +0 -23
- package/pb/_generated/sagittarius.text_execution_pb.js +0 -568
- package/pb/_generated/shared.action_configuration_pb.js +0 -251
- package/pb/_generated/shared.data_type_pb.js +0 -411
- package/pb/_generated/shared.flow_definition_pb.js +0 -269
- package/pb/_generated/shared.flow_pb.js +0 -762
- package/pb/_generated/shared.runtime_function_pb.js +0 -238
- package/pb/_generated/shared.runtime_status_pb.js +0 -315
- package/pb/_generated/shared.runtime_usage_pb.js +0 -62
- package/pb/_generated/shared.struct_pb.js +0 -274
- package/pb/_generated/shared.translation_pb.js +0 -62
- package/pb/aquila.d.ts +0 -24
- package/pb/aquila.js +0 -24
- package/pb/aquila.ts +0 -24
- package/pb/sagittarius.d.ts +0 -36
- package/pb/sagittarius.js +0 -36
- package/pb/sagittarius.ts +0 -36
- package/pb/shared.d.ts +0 -18
- package/pb/shared.js +0 -18
- package/pb/shared.ts +0 -18
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript,generate_dependencies
|
|
2
|
-
// @generated from protobuf file "shared.runtime_function.proto" (package "shared", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
5
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
6
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
7
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
8
|
-
import { Value } from "./shared.struct_pb";
|
|
9
|
-
import { Translation } from "./shared.translation_pb";
|
|
10
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
11
|
-
class RuntimeFunctionDefinition$Type extends MessageType {
|
|
12
|
-
constructor() {
|
|
13
|
-
super("shared.RuntimeFunctionDefinition", [
|
|
14
|
-
{ no: 1, name: "runtime_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
15
|
-
{ no: 2, name: "runtime_parameter_definitions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RuntimeParameterDefinition },
|
|
16
|
-
{ no: 3, name: "signature", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
17
|
-
{ no: 4, name: "throws_error", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
18
|
-
{ no: 5, name: "name", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
19
|
-
{ no: 6, name: "description", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
20
|
-
{ no: 7, name: "documentation", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
21
|
-
{ no: 8, name: "deprecation_message", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
22
|
-
{ no: 9, name: "display_message", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
23
|
-
{ no: 10, name: "alias", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
24
|
-
{ no: 11, name: "linked_data_type_identifiers", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
25
|
-
{ no: 12, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
26
|
-
{ no: 13, name: "display_icon", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
27
|
-
{ no: 14, name: "definition_source", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
28
|
-
]);
|
|
29
|
-
}
|
|
30
|
-
create(value) {
|
|
31
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
32
|
-
message.runtimeName = "";
|
|
33
|
-
message.runtimeParameterDefinitions = [];
|
|
34
|
-
message.signature = "";
|
|
35
|
-
message.throwsError = false;
|
|
36
|
-
message.name = [];
|
|
37
|
-
message.description = [];
|
|
38
|
-
message.documentation = [];
|
|
39
|
-
message.deprecationMessage = [];
|
|
40
|
-
message.displayMessage = [];
|
|
41
|
-
message.alias = [];
|
|
42
|
-
message.linkedDataTypeIdentifiers = [];
|
|
43
|
-
message.version = "";
|
|
44
|
-
message.displayIcon = "";
|
|
45
|
-
message.definitionSource = "";
|
|
46
|
-
if (value !== undefined)
|
|
47
|
-
reflectionMergePartial(this, message, value);
|
|
48
|
-
return message;
|
|
49
|
-
}
|
|
50
|
-
internalBinaryRead(reader, length, options, target) {
|
|
51
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
52
|
-
while (reader.pos < end) {
|
|
53
|
-
let [fieldNo, wireType] = reader.tag();
|
|
54
|
-
switch (fieldNo) {
|
|
55
|
-
case /* string runtime_name */ 1:
|
|
56
|
-
message.runtimeName = reader.string();
|
|
57
|
-
break;
|
|
58
|
-
case /* repeated shared.RuntimeParameterDefinition runtime_parameter_definitions */ 2:
|
|
59
|
-
message.runtimeParameterDefinitions.push(RuntimeParameterDefinition.internalBinaryRead(reader, reader.uint32(), options));
|
|
60
|
-
break;
|
|
61
|
-
case /* string signature */ 3:
|
|
62
|
-
message.signature = reader.string();
|
|
63
|
-
break;
|
|
64
|
-
case /* bool throws_error */ 4:
|
|
65
|
-
message.throwsError = reader.bool();
|
|
66
|
-
break;
|
|
67
|
-
case /* repeated shared.Translation name */ 5:
|
|
68
|
-
message.name.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
|
69
|
-
break;
|
|
70
|
-
case /* repeated shared.Translation description */ 6:
|
|
71
|
-
message.description.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
|
72
|
-
break;
|
|
73
|
-
case /* repeated shared.Translation documentation */ 7:
|
|
74
|
-
message.documentation.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
|
75
|
-
break;
|
|
76
|
-
case /* repeated shared.Translation deprecation_message */ 8:
|
|
77
|
-
message.deprecationMessage.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
|
78
|
-
break;
|
|
79
|
-
case /* repeated shared.Translation display_message */ 9:
|
|
80
|
-
message.displayMessage.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
|
81
|
-
break;
|
|
82
|
-
case /* repeated shared.Translation alias */ 10:
|
|
83
|
-
message.alias.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
|
84
|
-
break;
|
|
85
|
-
case /* repeated string linked_data_type_identifiers */ 11:
|
|
86
|
-
message.linkedDataTypeIdentifiers.push(reader.string());
|
|
87
|
-
break;
|
|
88
|
-
case /* string version */ 12:
|
|
89
|
-
message.version = reader.string();
|
|
90
|
-
break;
|
|
91
|
-
case /* string display_icon */ 13:
|
|
92
|
-
message.displayIcon = reader.string();
|
|
93
|
-
break;
|
|
94
|
-
case /* string definition_source */ 14:
|
|
95
|
-
message.definitionSource = reader.string();
|
|
96
|
-
break;
|
|
97
|
-
default:
|
|
98
|
-
let u = options.readUnknownField;
|
|
99
|
-
if (u === "throw")
|
|
100
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
101
|
-
let d = reader.skip(wireType);
|
|
102
|
-
if (u !== false)
|
|
103
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
return message;
|
|
107
|
-
}
|
|
108
|
-
internalBinaryWrite(message, writer, options) {
|
|
109
|
-
/* string runtime_name = 1; */
|
|
110
|
-
if (message.runtimeName !== "")
|
|
111
|
-
writer.tag(1, WireType.LengthDelimited).string(message.runtimeName);
|
|
112
|
-
/* repeated shared.RuntimeParameterDefinition runtime_parameter_definitions = 2; */
|
|
113
|
-
for (let i = 0; i < message.runtimeParameterDefinitions.length; i++)
|
|
114
|
-
RuntimeParameterDefinition.internalBinaryWrite(message.runtimeParameterDefinitions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
115
|
-
/* string signature = 3; */
|
|
116
|
-
if (message.signature !== "")
|
|
117
|
-
writer.tag(3, WireType.LengthDelimited).string(message.signature);
|
|
118
|
-
/* bool throws_error = 4; */
|
|
119
|
-
if (message.throwsError !== false)
|
|
120
|
-
writer.tag(4, WireType.Varint).bool(message.throwsError);
|
|
121
|
-
/* repeated shared.Translation name = 5; */
|
|
122
|
-
for (let i = 0; i < message.name.length; i++)
|
|
123
|
-
Translation.internalBinaryWrite(message.name[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
124
|
-
/* repeated shared.Translation description = 6; */
|
|
125
|
-
for (let i = 0; i < message.description.length; i++)
|
|
126
|
-
Translation.internalBinaryWrite(message.description[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
127
|
-
/* repeated shared.Translation documentation = 7; */
|
|
128
|
-
for (let i = 0; i < message.documentation.length; i++)
|
|
129
|
-
Translation.internalBinaryWrite(message.documentation[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
130
|
-
/* repeated shared.Translation deprecation_message = 8; */
|
|
131
|
-
for (let i = 0; i < message.deprecationMessage.length; i++)
|
|
132
|
-
Translation.internalBinaryWrite(message.deprecationMessage[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
133
|
-
/* repeated shared.Translation display_message = 9; */
|
|
134
|
-
for (let i = 0; i < message.displayMessage.length; i++)
|
|
135
|
-
Translation.internalBinaryWrite(message.displayMessage[i], writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
136
|
-
/* repeated shared.Translation alias = 10; */
|
|
137
|
-
for (let i = 0; i < message.alias.length; i++)
|
|
138
|
-
Translation.internalBinaryWrite(message.alias[i], writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
139
|
-
/* repeated string linked_data_type_identifiers = 11; */
|
|
140
|
-
for (let i = 0; i < message.linkedDataTypeIdentifiers.length; i++)
|
|
141
|
-
writer.tag(11, WireType.LengthDelimited).string(message.linkedDataTypeIdentifiers[i]);
|
|
142
|
-
/* string version = 12; */
|
|
143
|
-
if (message.version !== "")
|
|
144
|
-
writer.tag(12, WireType.LengthDelimited).string(message.version);
|
|
145
|
-
/* string display_icon = 13; */
|
|
146
|
-
if (message.displayIcon !== "")
|
|
147
|
-
writer.tag(13, WireType.LengthDelimited).string(message.displayIcon);
|
|
148
|
-
/* string definition_source = 14; */
|
|
149
|
-
if (message.definitionSource !== "")
|
|
150
|
-
writer.tag(14, WireType.LengthDelimited).string(message.definitionSource);
|
|
151
|
-
let u = options.writeUnknownFields;
|
|
152
|
-
if (u !== false)
|
|
153
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
154
|
-
return writer;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* @generated MessageType for protobuf message shared.RuntimeFunctionDefinition
|
|
159
|
-
*/
|
|
160
|
-
export const RuntimeFunctionDefinition = new RuntimeFunctionDefinition$Type();
|
|
161
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
162
|
-
class RuntimeParameterDefinition$Type extends MessageType {
|
|
163
|
-
constructor() {
|
|
164
|
-
super("shared.RuntimeParameterDefinition", [
|
|
165
|
-
{ no: 1, name: "runtime_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
166
|
-
{ no: 2, name: "default_value", kind: "message", T: () => Value },
|
|
167
|
-
{ no: 3, name: "name", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
168
|
-
{ no: 4, name: "description", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
169
|
-
{ no: 5, name: "documentation", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation }
|
|
170
|
-
]);
|
|
171
|
-
}
|
|
172
|
-
create(value) {
|
|
173
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
174
|
-
message.runtimeName = "";
|
|
175
|
-
message.name = [];
|
|
176
|
-
message.description = [];
|
|
177
|
-
message.documentation = [];
|
|
178
|
-
if (value !== undefined)
|
|
179
|
-
reflectionMergePartial(this, message, value);
|
|
180
|
-
return message;
|
|
181
|
-
}
|
|
182
|
-
internalBinaryRead(reader, length, options, target) {
|
|
183
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
184
|
-
while (reader.pos < end) {
|
|
185
|
-
let [fieldNo, wireType] = reader.tag();
|
|
186
|
-
switch (fieldNo) {
|
|
187
|
-
case /* string runtime_name */ 1:
|
|
188
|
-
message.runtimeName = reader.string();
|
|
189
|
-
break;
|
|
190
|
-
case /* optional shared.Value default_value */ 2:
|
|
191
|
-
message.defaultValue = Value.internalBinaryRead(reader, reader.uint32(), options, message.defaultValue);
|
|
192
|
-
break;
|
|
193
|
-
case /* repeated shared.Translation name */ 3:
|
|
194
|
-
message.name.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
|
195
|
-
break;
|
|
196
|
-
case /* repeated shared.Translation description */ 4:
|
|
197
|
-
message.description.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
|
198
|
-
break;
|
|
199
|
-
case /* repeated shared.Translation documentation */ 5:
|
|
200
|
-
message.documentation.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
|
201
|
-
break;
|
|
202
|
-
default:
|
|
203
|
-
let u = options.readUnknownField;
|
|
204
|
-
if (u === "throw")
|
|
205
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
206
|
-
let d = reader.skip(wireType);
|
|
207
|
-
if (u !== false)
|
|
208
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
return message;
|
|
212
|
-
}
|
|
213
|
-
internalBinaryWrite(message, writer, options) {
|
|
214
|
-
/* string runtime_name = 1; */
|
|
215
|
-
if (message.runtimeName !== "")
|
|
216
|
-
writer.tag(1, WireType.LengthDelimited).string(message.runtimeName);
|
|
217
|
-
/* optional shared.Value default_value = 2; */
|
|
218
|
-
if (message.defaultValue)
|
|
219
|
-
Value.internalBinaryWrite(message.defaultValue, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
220
|
-
/* repeated shared.Translation name = 3; */
|
|
221
|
-
for (let i = 0; i < message.name.length; i++)
|
|
222
|
-
Translation.internalBinaryWrite(message.name[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
223
|
-
/* repeated shared.Translation description = 4; */
|
|
224
|
-
for (let i = 0; i < message.description.length; i++)
|
|
225
|
-
Translation.internalBinaryWrite(message.description[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
226
|
-
/* repeated shared.Translation documentation = 5; */
|
|
227
|
-
for (let i = 0; i < message.documentation.length; i++)
|
|
228
|
-
Translation.internalBinaryWrite(message.documentation[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
229
|
-
let u = options.writeUnknownFields;
|
|
230
|
-
if (u !== false)
|
|
231
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
232
|
-
return writer;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* @generated MessageType for protobuf message shared.RuntimeParameterDefinition
|
|
237
|
-
*/
|
|
238
|
-
export const RuntimeParameterDefinition = new RuntimeParameterDefinition$Type();
|
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript,generate_dependencies
|
|
2
|
-
// @generated from protobuf file "shared.runtime_status.proto" (package "shared", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
5
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
6
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
7
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
8
|
-
import { Translation } from "./shared.translation_pb";
|
|
9
|
-
/**
|
|
10
|
-
* @generated from protobuf enum shared.AdapterRuntimeStatus.Status
|
|
11
|
-
*/
|
|
12
|
-
export var AdapterRuntimeStatus_Status;
|
|
13
|
-
(function (AdapterRuntimeStatus_Status) {
|
|
14
|
-
/**
|
|
15
|
-
* @generated from protobuf enum value: UNKNOWN = 0;
|
|
16
|
-
*/
|
|
17
|
-
AdapterRuntimeStatus_Status[AdapterRuntimeStatus_Status["UNKNOWN"] = 0] = "UNKNOWN";
|
|
18
|
-
/**
|
|
19
|
-
* @generated from protobuf enum value: NOT_RESPONDING = 1;
|
|
20
|
-
*/
|
|
21
|
-
AdapterRuntimeStatus_Status[AdapterRuntimeStatus_Status["NOT_RESPONDING"] = 1] = "NOT_RESPONDING";
|
|
22
|
-
/**
|
|
23
|
-
* @generated from protobuf enum value: NOT_READY = 2;
|
|
24
|
-
*/
|
|
25
|
-
AdapterRuntimeStatus_Status[AdapterRuntimeStatus_Status["NOT_READY"] = 2] = "NOT_READY";
|
|
26
|
-
/**
|
|
27
|
-
* @generated from protobuf enum value: RUNNING = 3;
|
|
28
|
-
*/
|
|
29
|
-
AdapterRuntimeStatus_Status[AdapterRuntimeStatus_Status["RUNNING"] = 3] = "RUNNING";
|
|
30
|
-
/**
|
|
31
|
-
* @generated from protobuf enum value: STOPPED = 4;
|
|
32
|
-
*/
|
|
33
|
-
AdapterRuntimeStatus_Status[AdapterRuntimeStatus_Status["STOPPED"] = 4] = "STOPPED";
|
|
34
|
-
})(AdapterRuntimeStatus_Status || (AdapterRuntimeStatus_Status = {}));
|
|
35
|
-
/**
|
|
36
|
-
* @generated from protobuf enum shared.ExecutionRuntimeStatus.Status
|
|
37
|
-
*/
|
|
38
|
-
export var ExecutionRuntimeStatus_Status;
|
|
39
|
-
(function (ExecutionRuntimeStatus_Status) {
|
|
40
|
-
/**
|
|
41
|
-
* @generated from protobuf enum value: UNKNOWN = 0;
|
|
42
|
-
*/
|
|
43
|
-
ExecutionRuntimeStatus_Status[ExecutionRuntimeStatus_Status["UNKNOWN"] = 0] = "UNKNOWN";
|
|
44
|
-
/**
|
|
45
|
-
* @generated from protobuf enum value: NOT_RESPONDING = 1;
|
|
46
|
-
*/
|
|
47
|
-
ExecutionRuntimeStatus_Status[ExecutionRuntimeStatus_Status["NOT_RESPONDING"] = 1] = "NOT_RESPONDING";
|
|
48
|
-
/**
|
|
49
|
-
* @generated from protobuf enum value: NOT_READY = 2;
|
|
50
|
-
*/
|
|
51
|
-
ExecutionRuntimeStatus_Status[ExecutionRuntimeStatus_Status["NOT_READY"] = 2] = "NOT_READY";
|
|
52
|
-
/**
|
|
53
|
-
* @generated from protobuf enum value: RUNNING = 3;
|
|
54
|
-
*/
|
|
55
|
-
ExecutionRuntimeStatus_Status[ExecutionRuntimeStatus_Status["RUNNING"] = 3] = "RUNNING";
|
|
56
|
-
/**
|
|
57
|
-
* @generated from protobuf enum value: STOPPED = 4;
|
|
58
|
-
*/
|
|
59
|
-
ExecutionRuntimeStatus_Status[ExecutionRuntimeStatus_Status["STOPPED"] = 4] = "STOPPED";
|
|
60
|
-
})(ExecutionRuntimeStatus_Status || (ExecutionRuntimeStatus_Status = {}));
|
|
61
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
62
|
-
class AdapterConfiguration$Type extends MessageType {
|
|
63
|
-
constructor() {
|
|
64
|
-
super("shared.AdapterConfiguration", [
|
|
65
|
-
{ no: 1, name: "endpoint", kind: "scalar", oneof: "data", T: 9 /*ScalarType.STRING*/ }
|
|
66
|
-
]);
|
|
67
|
-
}
|
|
68
|
-
create(value) {
|
|
69
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
70
|
-
message.data = { oneofKind: undefined };
|
|
71
|
-
if (value !== undefined)
|
|
72
|
-
reflectionMergePartial(this, message, value);
|
|
73
|
-
return message;
|
|
74
|
-
}
|
|
75
|
-
internalBinaryRead(reader, length, options, target) {
|
|
76
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
77
|
-
while (reader.pos < end) {
|
|
78
|
-
let [fieldNo, wireType] = reader.tag();
|
|
79
|
-
switch (fieldNo) {
|
|
80
|
-
case /* string endpoint */ 1:
|
|
81
|
-
message.data = {
|
|
82
|
-
oneofKind: "endpoint",
|
|
83
|
-
endpoint: reader.string()
|
|
84
|
-
};
|
|
85
|
-
break;
|
|
86
|
-
default:
|
|
87
|
-
let u = options.readUnknownField;
|
|
88
|
-
if (u === "throw")
|
|
89
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
90
|
-
let d = reader.skip(wireType);
|
|
91
|
-
if (u !== false)
|
|
92
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return message;
|
|
96
|
-
}
|
|
97
|
-
internalBinaryWrite(message, writer, options) {
|
|
98
|
-
/* string endpoint = 1; */
|
|
99
|
-
if (message.data.oneofKind === "endpoint")
|
|
100
|
-
writer.tag(1, WireType.LengthDelimited).string(message.data.endpoint);
|
|
101
|
-
let u = options.writeUnknownFields;
|
|
102
|
-
if (u !== false)
|
|
103
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
104
|
-
return writer;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* @generated MessageType for protobuf message shared.AdapterConfiguration
|
|
109
|
-
*/
|
|
110
|
-
export const AdapterConfiguration = new AdapterConfiguration$Type();
|
|
111
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
112
|
-
class RuntimeFeature$Type extends MessageType {
|
|
113
|
-
constructor() {
|
|
114
|
-
super("shared.RuntimeFeature", [
|
|
115
|
-
{ no: 1, name: "name", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
116
|
-
{ no: 2, name: "description", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation }
|
|
117
|
-
]);
|
|
118
|
-
}
|
|
119
|
-
create(value) {
|
|
120
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
121
|
-
message.name = [];
|
|
122
|
-
message.description = [];
|
|
123
|
-
if (value !== undefined)
|
|
124
|
-
reflectionMergePartial(this, message, value);
|
|
125
|
-
return message;
|
|
126
|
-
}
|
|
127
|
-
internalBinaryRead(reader, length, options, target) {
|
|
128
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
129
|
-
while (reader.pos < end) {
|
|
130
|
-
let [fieldNo, wireType] = reader.tag();
|
|
131
|
-
switch (fieldNo) {
|
|
132
|
-
case /* repeated shared.Translation name */ 1:
|
|
133
|
-
message.name.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
|
134
|
-
break;
|
|
135
|
-
case /* repeated shared.Translation description */ 2:
|
|
136
|
-
message.description.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
|
137
|
-
break;
|
|
138
|
-
default:
|
|
139
|
-
let u = options.readUnknownField;
|
|
140
|
-
if (u === "throw")
|
|
141
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
142
|
-
let d = reader.skip(wireType);
|
|
143
|
-
if (u !== false)
|
|
144
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
return message;
|
|
148
|
-
}
|
|
149
|
-
internalBinaryWrite(message, writer, options) {
|
|
150
|
-
/* repeated shared.Translation name = 1; */
|
|
151
|
-
for (let i = 0; i < message.name.length; i++)
|
|
152
|
-
Translation.internalBinaryWrite(message.name[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
153
|
-
/* repeated shared.Translation description = 2; */
|
|
154
|
-
for (let i = 0; i < message.description.length; i++)
|
|
155
|
-
Translation.internalBinaryWrite(message.description[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
156
|
-
let u = options.writeUnknownFields;
|
|
157
|
-
if (u !== false)
|
|
158
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
159
|
-
return writer;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* @generated MessageType for protobuf message shared.RuntimeFeature
|
|
164
|
-
*/
|
|
165
|
-
export const RuntimeFeature = new RuntimeFeature$Type();
|
|
166
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
167
|
-
class AdapterRuntimeStatus$Type extends MessageType {
|
|
168
|
-
constructor() {
|
|
169
|
-
super("shared.AdapterRuntimeStatus", [
|
|
170
|
-
{ no: 1, name: "status", kind: "enum", T: () => ["shared.AdapterRuntimeStatus.Status", AdapterRuntimeStatus_Status] },
|
|
171
|
-
{ no: 2, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
172
|
-
{ no: 3, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
173
|
-
{ no: 4, name: "features", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RuntimeFeature },
|
|
174
|
-
{ no: 5, name: "configurations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AdapterConfiguration }
|
|
175
|
-
]);
|
|
176
|
-
}
|
|
177
|
-
create(value) {
|
|
178
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
179
|
-
message.status = 0;
|
|
180
|
-
message.timestamp = 0n;
|
|
181
|
-
message.identifier = "";
|
|
182
|
-
message.features = [];
|
|
183
|
-
message.configurations = [];
|
|
184
|
-
if (value !== undefined)
|
|
185
|
-
reflectionMergePartial(this, message, value);
|
|
186
|
-
return message;
|
|
187
|
-
}
|
|
188
|
-
internalBinaryRead(reader, length, options, target) {
|
|
189
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
190
|
-
while (reader.pos < end) {
|
|
191
|
-
let [fieldNo, wireType] = reader.tag();
|
|
192
|
-
switch (fieldNo) {
|
|
193
|
-
case /* shared.AdapterRuntimeStatus.Status status */ 1:
|
|
194
|
-
message.status = reader.int32();
|
|
195
|
-
break;
|
|
196
|
-
case /* int64 timestamp */ 2:
|
|
197
|
-
message.timestamp = reader.int64().toBigInt();
|
|
198
|
-
break;
|
|
199
|
-
case /* string identifier */ 3:
|
|
200
|
-
message.identifier = reader.string();
|
|
201
|
-
break;
|
|
202
|
-
case /* repeated shared.RuntimeFeature features */ 4:
|
|
203
|
-
message.features.push(RuntimeFeature.internalBinaryRead(reader, reader.uint32(), options));
|
|
204
|
-
break;
|
|
205
|
-
case /* repeated shared.AdapterConfiguration configurations */ 5:
|
|
206
|
-
message.configurations.push(AdapterConfiguration.internalBinaryRead(reader, reader.uint32(), options));
|
|
207
|
-
break;
|
|
208
|
-
default:
|
|
209
|
-
let u = options.readUnknownField;
|
|
210
|
-
if (u === "throw")
|
|
211
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
212
|
-
let d = reader.skip(wireType);
|
|
213
|
-
if (u !== false)
|
|
214
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
return message;
|
|
218
|
-
}
|
|
219
|
-
internalBinaryWrite(message, writer, options) {
|
|
220
|
-
/* shared.AdapterRuntimeStatus.Status status = 1; */
|
|
221
|
-
if (message.status !== 0)
|
|
222
|
-
writer.tag(1, WireType.Varint).int32(message.status);
|
|
223
|
-
/* int64 timestamp = 2; */
|
|
224
|
-
if (message.timestamp !== 0n)
|
|
225
|
-
writer.tag(2, WireType.Varint).int64(message.timestamp);
|
|
226
|
-
/* string identifier = 3; */
|
|
227
|
-
if (message.identifier !== "")
|
|
228
|
-
writer.tag(3, WireType.LengthDelimited).string(message.identifier);
|
|
229
|
-
/* repeated shared.RuntimeFeature features = 4; */
|
|
230
|
-
for (let i = 0; i < message.features.length; i++)
|
|
231
|
-
RuntimeFeature.internalBinaryWrite(message.features[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
232
|
-
/* repeated shared.AdapterConfiguration configurations = 5; */
|
|
233
|
-
for (let i = 0; i < message.configurations.length; i++)
|
|
234
|
-
AdapterConfiguration.internalBinaryWrite(message.configurations[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
235
|
-
let u = options.writeUnknownFields;
|
|
236
|
-
if (u !== false)
|
|
237
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
238
|
-
return writer;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* @generated MessageType for protobuf message shared.AdapterRuntimeStatus
|
|
243
|
-
*/
|
|
244
|
-
export const AdapterRuntimeStatus = new AdapterRuntimeStatus$Type();
|
|
245
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
246
|
-
class ExecutionRuntimeStatus$Type extends MessageType {
|
|
247
|
-
constructor() {
|
|
248
|
-
super("shared.ExecutionRuntimeStatus", [
|
|
249
|
-
{ no: 1, name: "status", kind: "enum", T: () => ["shared.ExecutionRuntimeStatus.Status", ExecutionRuntimeStatus_Status] },
|
|
250
|
-
{ no: 2, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
251
|
-
{ no: 3, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
252
|
-
{ no: 4, name: "features", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RuntimeFeature }
|
|
253
|
-
]);
|
|
254
|
-
}
|
|
255
|
-
create(value) {
|
|
256
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
257
|
-
message.status = 0;
|
|
258
|
-
message.timestamp = 0n;
|
|
259
|
-
message.identifier = "";
|
|
260
|
-
message.features = [];
|
|
261
|
-
if (value !== undefined)
|
|
262
|
-
reflectionMergePartial(this, message, value);
|
|
263
|
-
return message;
|
|
264
|
-
}
|
|
265
|
-
internalBinaryRead(reader, length, options, target) {
|
|
266
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
267
|
-
while (reader.pos < end) {
|
|
268
|
-
let [fieldNo, wireType] = reader.tag();
|
|
269
|
-
switch (fieldNo) {
|
|
270
|
-
case /* shared.ExecutionRuntimeStatus.Status status */ 1:
|
|
271
|
-
message.status = reader.int32();
|
|
272
|
-
break;
|
|
273
|
-
case /* int64 timestamp */ 2:
|
|
274
|
-
message.timestamp = reader.int64().toBigInt();
|
|
275
|
-
break;
|
|
276
|
-
case /* string identifier */ 3:
|
|
277
|
-
message.identifier = reader.string();
|
|
278
|
-
break;
|
|
279
|
-
case /* repeated shared.RuntimeFeature features */ 4:
|
|
280
|
-
message.features.push(RuntimeFeature.internalBinaryRead(reader, reader.uint32(), options));
|
|
281
|
-
break;
|
|
282
|
-
default:
|
|
283
|
-
let u = options.readUnknownField;
|
|
284
|
-
if (u === "throw")
|
|
285
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
286
|
-
let d = reader.skip(wireType);
|
|
287
|
-
if (u !== false)
|
|
288
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
return message;
|
|
292
|
-
}
|
|
293
|
-
internalBinaryWrite(message, writer, options) {
|
|
294
|
-
/* shared.ExecutionRuntimeStatus.Status status = 1; */
|
|
295
|
-
if (message.status !== 0)
|
|
296
|
-
writer.tag(1, WireType.Varint).int32(message.status);
|
|
297
|
-
/* int64 timestamp = 2; */
|
|
298
|
-
if (message.timestamp !== 0n)
|
|
299
|
-
writer.tag(2, WireType.Varint).int64(message.timestamp);
|
|
300
|
-
/* string identifier = 3; */
|
|
301
|
-
if (message.identifier !== "")
|
|
302
|
-
writer.tag(3, WireType.LengthDelimited).string(message.identifier);
|
|
303
|
-
/* repeated shared.RuntimeFeature features = 4; */
|
|
304
|
-
for (let i = 0; i < message.features.length; i++)
|
|
305
|
-
RuntimeFeature.internalBinaryWrite(message.features[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
306
|
-
let u = options.writeUnknownFields;
|
|
307
|
-
if (u !== false)
|
|
308
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
309
|
-
return writer;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
/**
|
|
313
|
-
* @generated MessageType for protobuf message shared.ExecutionRuntimeStatus
|
|
314
|
-
*/
|
|
315
|
-
export const ExecutionRuntimeStatus = new ExecutionRuntimeStatus$Type();
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript,generate_dependencies
|
|
2
|
-
// @generated from protobuf file "shared.runtime_usage.proto" (package "shared", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
5
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
6
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
7
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
8
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
9
|
-
class RuntimeUsage$Type extends MessageType {
|
|
10
|
-
constructor() {
|
|
11
|
-
super("shared.RuntimeUsage", [
|
|
12
|
-
{ no: 1, name: "flow_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
13
|
-
{ no: 2, name: "duration", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
14
|
-
]);
|
|
15
|
-
}
|
|
16
|
-
create(value) {
|
|
17
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
18
|
-
message.flowId = 0n;
|
|
19
|
-
message.duration = 0n;
|
|
20
|
-
if (value !== undefined)
|
|
21
|
-
reflectionMergePartial(this, message, value);
|
|
22
|
-
return message;
|
|
23
|
-
}
|
|
24
|
-
internalBinaryRead(reader, length, options, target) {
|
|
25
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
26
|
-
while (reader.pos < end) {
|
|
27
|
-
let [fieldNo, wireType] = reader.tag();
|
|
28
|
-
switch (fieldNo) {
|
|
29
|
-
case /* int64 flow_id */ 1:
|
|
30
|
-
message.flowId = reader.int64().toBigInt();
|
|
31
|
-
break;
|
|
32
|
-
case /* int64 duration */ 2:
|
|
33
|
-
message.duration = reader.int64().toBigInt();
|
|
34
|
-
break;
|
|
35
|
-
default:
|
|
36
|
-
let u = options.readUnknownField;
|
|
37
|
-
if (u === "throw")
|
|
38
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
39
|
-
let d = reader.skip(wireType);
|
|
40
|
-
if (u !== false)
|
|
41
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return message;
|
|
45
|
-
}
|
|
46
|
-
internalBinaryWrite(message, writer, options) {
|
|
47
|
-
/* int64 flow_id = 1; */
|
|
48
|
-
if (message.flowId !== 0n)
|
|
49
|
-
writer.tag(1, WireType.Varint).int64(message.flowId);
|
|
50
|
-
/* int64 duration = 2; */
|
|
51
|
-
if (message.duration !== 0n)
|
|
52
|
-
writer.tag(2, WireType.Varint).int64(message.duration);
|
|
53
|
-
let u = options.writeUnknownFields;
|
|
54
|
-
if (u !== false)
|
|
55
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
56
|
-
return writer;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* @generated MessageType for protobuf message shared.RuntimeUsage
|
|
61
|
-
*/
|
|
62
|
-
export const RuntimeUsage = new RuntimeUsage$Type();
|