@milaboratories/pl-drivers 1.12.7 → 1.12.8
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/clients/download.cjs +1 -0
- package/dist/clients/download.cjs.map +1 -1
- package/dist/clients/download.js +1 -0
- package/dist/clients/download.js.map +1 -1
- package/dist/clients/logs.cjs +2 -0
- package/dist/clients/logs.cjs.map +1 -1
- package/dist/clients/logs.js +2 -0
- package/dist/clients/logs.js.map +1 -1
- package/dist/clients/ls_api.cjs +1 -0
- package/dist/clients/ls_api.cjs.map +1 -1
- package/dist/clients/ls_api.js +1 -0
- package/dist/clients/ls_api.js.map +1 -1
- package/dist/clients/progress.cjs +4 -1
- package/dist/clients/progress.cjs.map +1 -1
- package/dist/clients/progress.js +4 -1
- package/dist/clients/progress.js.map +1 -1
- package/dist/clients/upload.cjs +17 -3
- package/dist/clients/upload.cjs.map +1 -1
- package/dist/clients/upload.js +17 -3
- package/dist/clients/upload.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.cjs +28 -16
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.cjs +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +2 -2
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.js +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +11 -5
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.js +28 -16
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.cjs +26 -12
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.cjs +4 -4
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.js +4 -4
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +16 -16
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.js +26 -12
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.cjs +36 -12
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.cjs +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +2 -2
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.js +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +8 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.js +36 -12
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.cjs +29 -189
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.cjs +20 -41
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +36 -66
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.js +20 -41
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +52 -137
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.js +29 -189
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.cjs +225 -24
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.cjs +21 -7
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.js +21 -7
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js +225 -24
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js.map +1 -1
- package/dist/proto-rest/downloadapi.d.ts +8 -3
- package/dist/proto-rest/progressapi.d.ts +4 -2
- package/dist/proto-rest/streamingapi.d.ts +64 -203
- package/package.json +5 -5
- package/src/clients/download.ts +1 -0
- package/src/clients/logs.ts +2 -0
- package/src/clients/ls_api.ts +1 -0
- package/src/clients/progress.ts +1 -1
- package/src/clients/upload.ts +14 -1
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +2 -2
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +24 -11
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +8 -8
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +31 -18
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +2 -2
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +23 -1
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +39 -78
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +72 -263
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.ts +41 -14
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.ts +286 -44
- package/src/proto-grpc/google/protobuf/descriptor.ts +2 -5
- package/src/proto-rest/downloadapi.ts +8 -3
- package/src/proto-rest/lsapi.ts +23 -18
- package/src/proto-rest/progressapi.ts +4 -0
- package/src/proto-rest/streamingapi.ts +65 -211
- package/src/proto-rest/uploadapi.ts +141 -39
package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.cjs
CHANGED
|
@@ -36,9 +36,9 @@ var StreamingAPI$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
|
36
36
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI
|
|
37
37
|
*/
|
|
38
38
|
const StreamingAPI = new StreamingAPI$Type();
|
|
39
|
-
var
|
|
39
|
+
var StreamingAPI_ReadBinary$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
40
40
|
constructor() {
|
|
41
|
-
super("MiLaboratories.Controller.Shared.StreamingAPI.
|
|
41
|
+
super("MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary", [
|
|
42
42
|
{
|
|
43
43
|
no: 1,
|
|
44
44
|
name: "resource_id",
|
|
@@ -47,85 +47,11 @@ var StreamingAPI_StreamBinary$Type = class extends _protobuf_ts_runtime.MessageT
|
|
|
47
47
|
L: 0
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
|
-
no:
|
|
51
|
-
name: "
|
|
52
|
-
kind: "scalar",
|
|
53
|
-
T: 3,
|
|
54
|
-
L: 0
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
no: 11,
|
|
58
|
-
name: "chunk_size",
|
|
59
|
-
kind: "scalar",
|
|
60
|
-
opt: true,
|
|
61
|
-
T: 13
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
no: 20,
|
|
65
|
-
name: "read_limit",
|
|
50
|
+
no: 3,
|
|
51
|
+
name: "resource_signature",
|
|
66
52
|
kind: "scalar",
|
|
67
53
|
opt: true,
|
|
68
|
-
T:
|
|
69
|
-
L: 0
|
|
70
|
-
}
|
|
71
|
-
]);
|
|
72
|
-
}
|
|
73
|
-
create(value) {
|
|
74
|
-
const message = globalThis.Object.create(this.messagePrototype);
|
|
75
|
-
message.resourceId = 0n;
|
|
76
|
-
message.offset = 0n;
|
|
77
|
-
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
78
|
-
return message;
|
|
79
|
-
}
|
|
80
|
-
internalBinaryRead(reader, length, options, target) {
|
|
81
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
82
|
-
while (reader.pos < end) {
|
|
83
|
-
let [fieldNo, wireType] = reader.tag();
|
|
84
|
-
switch (fieldNo) {
|
|
85
|
-
case 1:
|
|
86
|
-
message.resourceId = reader.uint64().toBigInt();
|
|
87
|
-
break;
|
|
88
|
-
case 2:
|
|
89
|
-
message.offset = reader.int64().toBigInt();
|
|
90
|
-
break;
|
|
91
|
-
case 11:
|
|
92
|
-
message.chunkSize = reader.uint32();
|
|
93
|
-
break;
|
|
94
|
-
case 20:
|
|
95
|
-
message.readLimit = reader.int64().toBigInt();
|
|
96
|
-
break;
|
|
97
|
-
default:
|
|
98
|
-
let u = options.readUnknownField;
|
|
99
|
-
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
100
|
-
let d = reader.skip(wireType);
|
|
101
|
-
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
return message;
|
|
105
|
-
}
|
|
106
|
-
internalBinaryWrite(message, writer, options) {
|
|
107
|
-
if (message.resourceId !== 0n) writer.tag(1, _protobuf_ts_runtime.WireType.Varint).uint64(message.resourceId);
|
|
108
|
-
if (message.offset !== 0n) writer.tag(2, _protobuf_ts_runtime.WireType.Varint).int64(message.offset);
|
|
109
|
-
if (message.chunkSize !== void 0) writer.tag(11, _protobuf_ts_runtime.WireType.Varint).uint32(message.chunkSize);
|
|
110
|
-
if (message.readLimit !== void 0) writer.tag(20, _protobuf_ts_runtime.WireType.Varint).int64(message.readLimit);
|
|
111
|
-
let u = options.writeUnknownFields;
|
|
112
|
-
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
113
|
-
return writer;
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary
|
|
118
|
-
*/
|
|
119
|
-
const StreamingAPI_StreamBinary = new StreamingAPI_StreamBinary$Type();
|
|
120
|
-
var StreamingAPI_ReadBinary$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
121
|
-
constructor() {
|
|
122
|
-
super("MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary", [
|
|
123
|
-
{
|
|
124
|
-
no: 1,
|
|
125
|
-
name: "resource_id",
|
|
126
|
-
kind: "scalar",
|
|
127
|
-
T: 4,
|
|
128
|
-
L: 0
|
|
54
|
+
T: 12
|
|
129
55
|
},
|
|
130
56
|
{
|
|
131
57
|
no: 2,
|
|
@@ -158,6 +84,9 @@ var StreamingAPI_ReadBinary$Type = class extends _protobuf_ts_runtime.MessageTyp
|
|
|
158
84
|
case 1:
|
|
159
85
|
message.resourceId = reader.uint64().toBigInt();
|
|
160
86
|
break;
|
|
87
|
+
case 3:
|
|
88
|
+
message.resourceSignature = reader.bytes();
|
|
89
|
+
break;
|
|
161
90
|
case 2:
|
|
162
91
|
message.offset = reader.int64().toBigInt();
|
|
163
92
|
break;
|
|
@@ -176,6 +105,7 @@ var StreamingAPI_ReadBinary$Type = class extends _protobuf_ts_runtime.MessageTyp
|
|
|
176
105
|
internalBinaryWrite(message, writer, options) {
|
|
177
106
|
if (message.resourceId !== 0n) writer.tag(1, _protobuf_ts_runtime.WireType.Varint).uint64(message.resourceId);
|
|
178
107
|
if (message.offset !== 0n) writer.tag(2, _protobuf_ts_runtime.WireType.Varint).int64(message.offset);
|
|
108
|
+
if (message.resourceSignature !== void 0) writer.tag(3, _protobuf_ts_runtime.WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
179
109
|
if (message.chunkSize !== void 0) writer.tag(11, _protobuf_ts_runtime.WireType.Varint).uint32(message.chunkSize);
|
|
180
110
|
let u = options.writeUnknownFields;
|
|
181
111
|
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -186,9 +116,9 @@ var StreamingAPI_ReadBinary$Type = class extends _protobuf_ts_runtime.MessageTyp
|
|
|
186
116
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary
|
|
187
117
|
*/
|
|
188
118
|
const StreamingAPI_ReadBinary = new StreamingAPI_ReadBinary$Type();
|
|
189
|
-
var
|
|
119
|
+
var StreamingAPI_ReadText$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
190
120
|
constructor() {
|
|
191
|
-
super("MiLaboratories.Controller.Shared.StreamingAPI.
|
|
121
|
+
super("MiLaboratories.Controller.Shared.StreamingAPI.ReadText", [
|
|
192
122
|
{
|
|
193
123
|
no: 1,
|
|
194
124
|
name: "resource_id",
|
|
@@ -197,96 +127,11 @@ var StreamingAPI_StreamText$Type = class extends _protobuf_ts_runtime.MessageTyp
|
|
|
197
127
|
L: 0
|
|
198
128
|
},
|
|
199
129
|
{
|
|
200
|
-
no:
|
|
201
|
-
name: "
|
|
202
|
-
kind: "scalar",
|
|
203
|
-
T: 3,
|
|
204
|
-
L: 0
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
no: 20,
|
|
208
|
-
name: "read_limit",
|
|
209
|
-
kind: "scalar",
|
|
210
|
-
opt: true,
|
|
211
|
-
T: 3,
|
|
212
|
-
L: 0
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
no: 21,
|
|
216
|
-
name: "search",
|
|
217
|
-
kind: "scalar",
|
|
218
|
-
opt: true,
|
|
219
|
-
T: 9
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
no: 22,
|
|
223
|
-
name: "search_re",
|
|
130
|
+
no: 3,
|
|
131
|
+
name: "resource_signature",
|
|
224
132
|
kind: "scalar",
|
|
225
133
|
opt: true,
|
|
226
|
-
T:
|
|
227
|
-
}
|
|
228
|
-
]);
|
|
229
|
-
}
|
|
230
|
-
create(value) {
|
|
231
|
-
const message = globalThis.Object.create(this.messagePrototype);
|
|
232
|
-
message.resourceId = 0n;
|
|
233
|
-
message.offset = 0n;
|
|
234
|
-
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
235
|
-
return message;
|
|
236
|
-
}
|
|
237
|
-
internalBinaryRead(reader, length, options, target) {
|
|
238
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
239
|
-
while (reader.pos < end) {
|
|
240
|
-
let [fieldNo, wireType] = reader.tag();
|
|
241
|
-
switch (fieldNo) {
|
|
242
|
-
case 1:
|
|
243
|
-
message.resourceId = reader.uint64().toBigInt();
|
|
244
|
-
break;
|
|
245
|
-
case 2:
|
|
246
|
-
message.offset = reader.int64().toBigInt();
|
|
247
|
-
break;
|
|
248
|
-
case 20:
|
|
249
|
-
message.readLimit = reader.int64().toBigInt();
|
|
250
|
-
break;
|
|
251
|
-
case 21:
|
|
252
|
-
message.search = reader.string();
|
|
253
|
-
break;
|
|
254
|
-
case 22:
|
|
255
|
-
message.searchRe = reader.string();
|
|
256
|
-
break;
|
|
257
|
-
default:
|
|
258
|
-
let u = options.readUnknownField;
|
|
259
|
-
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
260
|
-
let d = reader.skip(wireType);
|
|
261
|
-
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
return message;
|
|
265
|
-
}
|
|
266
|
-
internalBinaryWrite(message, writer, options) {
|
|
267
|
-
if (message.resourceId !== 0n) writer.tag(1, _protobuf_ts_runtime.WireType.Varint).uint64(message.resourceId);
|
|
268
|
-
if (message.offset !== 0n) writer.tag(2, _protobuf_ts_runtime.WireType.Varint).int64(message.offset);
|
|
269
|
-
if (message.readLimit !== void 0) writer.tag(20, _protobuf_ts_runtime.WireType.Varint).int64(message.readLimit);
|
|
270
|
-
if (message.search !== void 0) writer.tag(21, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.search);
|
|
271
|
-
if (message.searchRe !== void 0) writer.tag(22, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.searchRe);
|
|
272
|
-
let u = options.writeUnknownFields;
|
|
273
|
-
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
274
|
-
return writer;
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
/**
|
|
278
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamText
|
|
279
|
-
*/
|
|
280
|
-
const StreamingAPI_StreamText = new StreamingAPI_StreamText$Type();
|
|
281
|
-
var StreamingAPI_ReadText$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
282
|
-
constructor() {
|
|
283
|
-
super("MiLaboratories.Controller.Shared.StreamingAPI.ReadText", [
|
|
284
|
-
{
|
|
285
|
-
no: 1,
|
|
286
|
-
name: "resource_id",
|
|
287
|
-
kind: "scalar",
|
|
288
|
-
T: 4,
|
|
289
|
-
L: 0
|
|
134
|
+
T: 12
|
|
290
135
|
},
|
|
291
136
|
{
|
|
292
137
|
no: 2,
|
|
@@ -334,6 +179,9 @@ var StreamingAPI_ReadText$Type = class extends _protobuf_ts_runtime.MessageType
|
|
|
334
179
|
case 1:
|
|
335
180
|
message.resourceId = reader.uint64().toBigInt();
|
|
336
181
|
break;
|
|
182
|
+
case 3:
|
|
183
|
+
message.resourceSignature = reader.bytes();
|
|
184
|
+
break;
|
|
337
185
|
case 2:
|
|
338
186
|
message.offset = reader.int64().toBigInt();
|
|
339
187
|
break;
|
|
@@ -358,6 +206,7 @@ var StreamingAPI_ReadText$Type = class extends _protobuf_ts_runtime.MessageType
|
|
|
358
206
|
internalBinaryWrite(message, writer, options) {
|
|
359
207
|
if (message.resourceId !== 0n) writer.tag(1, _protobuf_ts_runtime.WireType.Varint).uint64(message.resourceId);
|
|
360
208
|
if (message.offset !== 0n) writer.tag(2, _protobuf_ts_runtime.WireType.Varint).int64(message.offset);
|
|
209
|
+
if (message.resourceSignature !== void 0) writer.tag(3, _protobuf_ts_runtime.WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
361
210
|
if (message.readLimit !== void 0) writer.tag(20, _protobuf_ts_runtime.WireType.Varint).int64(message.readLimit);
|
|
362
211
|
if (message.search !== void 0) writer.tag(21, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.search);
|
|
363
212
|
if (message.searchRe !== void 0) writer.tag(22, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.searchRe);
|
|
@@ -380,6 +229,13 @@ var StreamingAPI_LastLines$Type = class extends _protobuf_ts_runtime.MessageType
|
|
|
380
229
|
T: 4,
|
|
381
230
|
L: 0
|
|
382
231
|
},
|
|
232
|
+
{
|
|
233
|
+
no: 4,
|
|
234
|
+
name: "resource_signature",
|
|
235
|
+
kind: "scalar",
|
|
236
|
+
opt: true,
|
|
237
|
+
T: 12
|
|
238
|
+
},
|
|
383
239
|
{
|
|
384
240
|
no: 2,
|
|
385
241
|
name: "offset",
|
|
@@ -425,6 +281,9 @@ var StreamingAPI_LastLines$Type = class extends _protobuf_ts_runtime.MessageType
|
|
|
425
281
|
case 1:
|
|
426
282
|
message.resourceId = reader.uint64().toBigInt();
|
|
427
283
|
break;
|
|
284
|
+
case 4:
|
|
285
|
+
message.resourceSignature = reader.bytes();
|
|
286
|
+
break;
|
|
428
287
|
case 2:
|
|
429
288
|
message.offset = reader.int64().toBigInt();
|
|
430
289
|
break;
|
|
@@ -450,6 +309,7 @@ var StreamingAPI_LastLines$Type = class extends _protobuf_ts_runtime.MessageType
|
|
|
450
309
|
if (message.resourceId !== 0n) writer.tag(1, _protobuf_ts_runtime.WireType.Varint).uint64(message.resourceId);
|
|
451
310
|
if (message.offset !== void 0) writer.tag(2, _protobuf_ts_runtime.WireType.Varint).int64(message.offset);
|
|
452
311
|
if (message.lineCount !== void 0) writer.tag(3, _protobuf_ts_runtime.WireType.Varint).int32(message.lineCount);
|
|
312
|
+
if (message.resourceSignature !== void 0) writer.tag(4, _protobuf_ts_runtime.WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
453
313
|
if (message.search !== void 0) writer.tag(21, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.search);
|
|
454
314
|
if (message.searchRe !== void 0) writer.tag(22, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.searchRe);
|
|
455
315
|
let u = options.writeUnknownFields;
|
|
@@ -534,16 +394,6 @@ const StreamingAPI_Response = new StreamingAPI_Response$Type();
|
|
|
534
394
|
* @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Streaming
|
|
535
395
|
*/
|
|
536
396
|
const Streaming = new _protobuf_ts_runtime_rpc.ServiceType("MiLaboratories.Controller.Shared.Streaming", [
|
|
537
|
-
{
|
|
538
|
-
name: "StreamBinary",
|
|
539
|
-
serverStreaming: true,
|
|
540
|
-
options: { "google.api.http": {
|
|
541
|
-
post: "/v1/stream/binary",
|
|
542
|
-
body: "*"
|
|
543
|
-
} },
|
|
544
|
-
I: StreamingAPI_StreamBinary,
|
|
545
|
-
O: StreamingAPI_Response
|
|
546
|
-
},
|
|
547
397
|
{
|
|
548
398
|
name: "ReadBinary",
|
|
549
399
|
options: { "google.api.http": {
|
|
@@ -553,16 +403,6 @@ const Streaming = new _protobuf_ts_runtime_rpc.ServiceType("MiLaboratories.Contr
|
|
|
553
403
|
I: StreamingAPI_ReadBinary,
|
|
554
404
|
O: StreamingAPI_Response
|
|
555
405
|
},
|
|
556
|
-
{
|
|
557
|
-
name: "StreamText",
|
|
558
|
-
serverStreaming: true,
|
|
559
|
-
options: { "google.api.http": {
|
|
560
|
-
post: "/v1/stream/text",
|
|
561
|
-
body: "*"
|
|
562
|
-
} },
|
|
563
|
-
I: StreamingAPI_StreamText,
|
|
564
|
-
O: StreamingAPI_Response
|
|
565
|
-
},
|
|
566
406
|
{
|
|
567
407
|
name: "ReadText",
|
|
568
408
|
options: { "google.api.http": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.cjs","names":["MessageType","UnknownFieldHandler","WireType","ServiceType"],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport { ServiceType } from \"@protobuf-ts/runtime-rpc\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI\n */\nexport interface StreamingAPI {\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary\n */\nexport interface StreamingAPI_StreamBinary {\n /**\n * <resource_id> of Stream resource, that keeps info on item to be streamed.\n *\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * <offset> makes streamer to perform seek operation to given offset before sending the data.\n *\n * @generated from protobuf field: int64 offset = 2\n */\n offset: bigint;\n /**\n * <chunk_size> limits the maximum size of <data> for each response message in stream.\n *\n * Default value: 32 768 (32 KiB)\n * Max value: 3900 * 1024 (3.9 MiB)\n *\n * @generated from protobuf field: optional uint32 chunk_size = 11\n */\n chunkSize?: number;\n /**\n * <read_limit> allows client to limit total data sent from server.\n * This limit is aggregation of all data, sent in all chunks.\n * E.g. to read 2000 bytes of data in chunks of at most\n * 130 bytes, use <chunk_size> = 130; <read_limit> = 2000.\n * For storage item of appropriate size this settings will result in\n * 16 messages from server: 15 of 130 bytes and one of 50 bytes.\n *\n * @generated from protobuf field: optional int64 read_limit = 20\n */\n readLimit?: bigint;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary\n */\nexport interface StreamingAPI_ReadBinary {\n /**\n * <resource_id> of Stream resource, that keeps info on item to be streamed.\n *\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * <offset> makes streamer to perform seek operation to given offset before sending the data.\n *\n * @generated from protobuf field: int64 offset = 2\n */\n offset: bigint;\n /**\n * <chunk_size> limits the maximum size of <data> for response message in stream.\n *\n * Default value: 32 768 (32 KiB)\n * Max value: 3900 * 1024 (3.9 MiB)\n *\n * @generated from protobuf field: optional uint32 chunk_size = 11\n */\n chunkSize?: number;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamText\n */\nexport interface StreamingAPI_StreamText {\n /**\n * <resource_id> of Stream resource, that keeps info on item to be streamed.\n *\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * <offset> makes streamer to perform seek operation to given offset before sending the contents.\n * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.\n * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.\n *\n * @generated from protobuf field: int64 offset = 2\n */\n offset: bigint;\n /**\n * <read_limit> allows client to limit total data sent from server.\n * This limit is aggregation of all data, sent in all chunks, measured\n * in lines of text.\n * E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.\n * When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.\n * this is equivalent to 'head -n <read_limit> | grep <search>'.\n *\n * @generated from protobuf field: optional int64 read_limit = 20\n */\n readLimit?: bigint;\n /**\n * <search> is substring for line search pattern.\n * This option makes controller to send to the client only lines, that\n * have given substring.\n *\n * @generated from protobuf field: optional string search = 21\n */\n search?: string;\n /**\n * <search_re> is regular expression for line search pattern.\n * This option makes controller to send to the client only lines, that\n * match given regular expression.\n *\n * @generated from protobuf field: optional string search_re = 22\n */\n searchRe?: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText\n */\nexport interface StreamingAPI_ReadText {\n /**\n * <resource_id> of Stream resource, that keeps info on item to be streamed.\n *\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * <offset> makes streamer to perform seek operation to given offset before sending the contents.\n * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.\n * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.\n *\n * @generated from protobuf field: int64 offset = 2\n */\n offset: bigint;\n /**\n * <read_limit> allows client to limit total data sent from server.\n * Measured in lines of text.\n * E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.\n * When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.\n * this is equivalent to 'head -n <read_limit> | grep <search>'.\n * At most 3.9 MiB (3900 * 1024 KiB) of data is returned in single read regardless of <read_limit> option\n * Only full lines of text are returned except for the last line from the completed source\n * (the one that is not expected to have new data, like blob in storage)\n *\n * @generated from protobuf field: optional int64 read_limit = 20\n */\n readLimit?: bigint;\n /**\n * <search> is substring for line search pattern.\n * This option makes controller to send to the client only lines, that\n * have given substring.\n *\n * @generated from protobuf field: optional string search = 21\n */\n search?: string;\n /**\n * <search_re> is regular expression for line search pattern.\n * This option makes controller to send to the client only lines, that\n * match given regular expression.\n *\n * @generated from protobuf field: optional string search_re = 22\n */\n searchRe?: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.LastLines\n */\nexport interface StreamingAPI_LastLines {\n /**\n * <resource_id> of Stream resource, that keeps info on item to be streamed.\n *\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * <offset> makes streamer to perform seek operation to given offset before sending the contents.\n * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.\n * By default, LastLines starts to treat the data source from the very last byte available in data stream\n * at the moment of call, but client can set the server to start from earlier position.\n *\n * @generated from protobuf field: optional int64 offset = 2\n */\n offset?: bigint;\n /**\n * <line_count> makes streamer to return up to <line_count> lines to the client.\n * Default value: 1\n *\n * @generated from protobuf field: optional int32 line_count = 3\n */\n lineCount?: number;\n /**\n * <search> is substring for line search pattern.\n * This option makes controller to send to the client only lines, that\n * have given substring.\n *\n * @generated from protobuf field: optional string search = 21\n */\n search?: string;\n /**\n * <search_re> is regular expression for line search pattern.\n * This option makes controller to send to the client only lines, that\n * match given regular expression.\n *\n * @generated from protobuf field: optional string search_re = 22\n */\n searchRe?: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.Response\n */\nexport interface StreamingAPI_Response {\n /**\n * data chunk from item, starting from the <new_offset> of the previous message in the same stream.\n *\n * @generated from protobuf field: bytes data = 1\n */\n data: Uint8Array;\n /**\n * <size> is the actual size of the streamed item at the moment of this message.\n * This might be not a final amount of streamed data, as stream source can be updated\n * by other independent process (e.g., data is written to log file).\n * This field in combination with <new_offset> shows, how far the client is from the end\n * of the data right now.\n *\n * @generated from protobuf field: uint64 size = 2\n */\n size: bigint;\n /**\n * <new_offset> is the new offset in bytes from the start of the streamed item,\n * including size of <data> in current response.\n * Call to Stream rpc with <offset> = <new_offset> will continue\n * streaming from the place of last received message\n * (e.g. <offset> = <new_offset> - 1 will repeat the last byte of\n * previously received <data>)\n *\n * @generated from protobuf field: uint64 new_offset = 3\n */\n newOffset: bigint;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI$Type extends MessageType<StreamingAPI> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI\", []);\n }\n create(value?: PartialMessage<StreamingAPI>): StreamingAPI {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI): StreamingAPI {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI\n */\nexport const StreamingAPI = new StreamingAPI$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI_StreamBinary$Type extends MessageType<StreamingAPI_StreamBinary> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 2, name: \"offset\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 11, name: \"chunk_size\", kind: \"scalar\", opt: true, T: 13 /*ScalarType.UINT32*/ },\n { no: 20, name: \"read_limit\", kind: \"scalar\", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }\n ]);\n }\n create(value?: PartialMessage<StreamingAPI_StreamBinary>): StreamingAPI_StreamBinary {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.offset = 0n;\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI_StreamBinary>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_StreamBinary): StreamingAPI_StreamBinary {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* int64 offset */ 2:\n message.offset = reader.int64().toBigInt();\n break;\n case /* optional uint32 chunk_size */ 11:\n message.chunkSize = reader.uint32();\n break;\n case /* optional int64 read_limit */ 20:\n message.readLimit = reader.int64().toBigInt();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI_StreamBinary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* int64 offset = 2; */\n if (message.offset !== 0n)\n writer.tag(2, WireType.Varint).int64(message.offset);\n /* optional uint32 chunk_size = 11; */\n if (message.chunkSize !== undefined)\n writer.tag(11, WireType.Varint).uint32(message.chunkSize);\n /* optional int64 read_limit = 20; */\n if (message.readLimit !== undefined)\n writer.tag(20, WireType.Varint).int64(message.readLimit);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary\n */\nexport const StreamingAPI_StreamBinary = new StreamingAPI_StreamBinary$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_ReadBinary> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 2, name: \"offset\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 11, name: \"chunk_size\", kind: \"scalar\", opt: true, T: 13 /*ScalarType.UINT32*/ }\n ]);\n }\n create(value?: PartialMessage<StreamingAPI_ReadBinary>): StreamingAPI_ReadBinary {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.offset = 0n;\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI_ReadBinary>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_ReadBinary): StreamingAPI_ReadBinary {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* int64 offset */ 2:\n message.offset = reader.int64().toBigInt();\n break;\n case /* optional uint32 chunk_size */ 11:\n message.chunkSize = reader.uint32();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI_ReadBinary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* int64 offset = 2; */\n if (message.offset !== 0n)\n writer.tag(2, WireType.Varint).int64(message.offset);\n /* optional uint32 chunk_size = 11; */\n if (message.chunkSize !== undefined)\n writer.tag(11, WireType.Varint).uint32(message.chunkSize);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary\n */\nexport const StreamingAPI_ReadBinary = new StreamingAPI_ReadBinary$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI_StreamText$Type extends MessageType<StreamingAPI_StreamText> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI.StreamText\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 2, name: \"offset\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 20, name: \"read_limit\", kind: \"scalar\", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 21, name: \"search\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 22, name: \"search_re\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<StreamingAPI_StreamText>): StreamingAPI_StreamText {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.offset = 0n;\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI_StreamText>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_StreamText): StreamingAPI_StreamText {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* int64 offset */ 2:\n message.offset = reader.int64().toBigInt();\n break;\n case /* optional int64 read_limit */ 20:\n message.readLimit = reader.int64().toBigInt();\n break;\n case /* optional string search */ 21:\n message.search = reader.string();\n break;\n case /* optional string search_re */ 22:\n message.searchRe = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI_StreamText, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* int64 offset = 2; */\n if (message.offset !== 0n)\n writer.tag(2, WireType.Varint).int64(message.offset);\n /* optional int64 read_limit = 20; */\n if (message.readLimit !== undefined)\n writer.tag(20, WireType.Varint).int64(message.readLimit);\n /* optional string search = 21; */\n if (message.search !== undefined)\n writer.tag(21, WireType.LengthDelimited).string(message.search);\n /* optional string search_re = 22; */\n if (message.searchRe !== undefined)\n writer.tag(22, WireType.LengthDelimited).string(message.searchRe);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamText\n */\nexport const StreamingAPI_StreamText = new StreamingAPI_StreamText$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI_ReadText$Type extends MessageType<StreamingAPI_ReadText> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI.ReadText\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 2, name: \"offset\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 20, name: \"read_limit\", kind: \"scalar\", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 21, name: \"search\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 22, name: \"search_re\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<StreamingAPI_ReadText>): StreamingAPI_ReadText {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.offset = 0n;\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI_ReadText>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_ReadText): StreamingAPI_ReadText {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* int64 offset */ 2:\n message.offset = reader.int64().toBigInt();\n break;\n case /* optional int64 read_limit */ 20:\n message.readLimit = reader.int64().toBigInt();\n break;\n case /* optional string search */ 21:\n message.search = reader.string();\n break;\n case /* optional string search_re */ 22:\n message.searchRe = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI_ReadText, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* int64 offset = 2; */\n if (message.offset !== 0n)\n writer.tag(2, WireType.Varint).int64(message.offset);\n /* optional int64 read_limit = 20; */\n if (message.readLimit !== undefined)\n writer.tag(20, WireType.Varint).int64(message.readLimit);\n /* optional string search = 21; */\n if (message.search !== undefined)\n writer.tag(21, WireType.LengthDelimited).string(message.search);\n /* optional string search_re = 22; */\n if (message.searchRe !== undefined)\n writer.tag(22, WireType.LengthDelimited).string(message.searchRe);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText\n */\nexport const StreamingAPI_ReadText = new StreamingAPI_ReadText$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI_LastLines$Type extends MessageType<StreamingAPI_LastLines> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI.LastLines\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 2, name: \"offset\", kind: \"scalar\", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"line_count\", kind: \"scalar\", opt: true, T: 5 /*ScalarType.INT32*/ },\n { no: 21, name: \"search\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 22, name: \"search_re\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<StreamingAPI_LastLines>): StreamingAPI_LastLines {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI_LastLines>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_LastLines): StreamingAPI_LastLines {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* optional int64 offset */ 2:\n message.offset = reader.int64().toBigInt();\n break;\n case /* optional int32 line_count */ 3:\n message.lineCount = reader.int32();\n break;\n case /* optional string search */ 21:\n message.search = reader.string();\n break;\n case /* optional string search_re */ 22:\n message.searchRe = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI_LastLines, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* optional int64 offset = 2; */\n if (message.offset !== undefined)\n writer.tag(2, WireType.Varint).int64(message.offset);\n /* optional int32 line_count = 3; */\n if (message.lineCount !== undefined)\n writer.tag(3, WireType.Varint).int32(message.lineCount);\n /* optional string search = 21; */\n if (message.search !== undefined)\n writer.tag(21, WireType.LengthDelimited).string(message.search);\n /* optional string search_re = 22; */\n if (message.searchRe !== undefined)\n writer.tag(22, WireType.LengthDelimited).string(message.searchRe);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.LastLines\n */\nexport const StreamingAPI_LastLines = new StreamingAPI_LastLines$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI_Response$Type extends MessageType<StreamingAPI_Response> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI.Response\", [\n { no: 1, name: \"data\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"size\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"new_offset\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }\n ]);\n }\n create(value?: PartialMessage<StreamingAPI_Response>): StreamingAPI_Response {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.data = new Uint8Array(0);\n message.size = 0n;\n message.newOffset = 0n;\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI_Response>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_Response): StreamingAPI_Response {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* bytes data */ 1:\n message.data = reader.bytes();\n break;\n case /* uint64 size */ 2:\n message.size = reader.uint64().toBigInt();\n break;\n case /* uint64 new_offset */ 3:\n message.newOffset = reader.uint64().toBigInt();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* bytes data = 1; */\n if (message.data.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.data);\n /* uint64 size = 2; */\n if (message.size !== 0n)\n writer.tag(2, WireType.Varint).uint64(message.size);\n /* uint64 new_offset = 3; */\n if (message.newOffset !== 0n)\n writer.tag(3, WireType.Varint).uint64(message.newOffset);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.Response\n */\nexport const StreamingAPI_Response = new StreamingAPI_Response$Type();\n/**\n * @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Streaming\n */\nexport const Streaming = new ServiceType(\"MiLaboratories.Controller.Shared.Streaming\", [\n { name: \"StreamBinary\", serverStreaming: true, options: { \"google.api.http\": { post: \"/v1/stream/binary\", body: \"*\" } }, I: StreamingAPI_StreamBinary, O: StreamingAPI_Response },\n { name: \"ReadBinary\", options: { \"google.api.http\": { post: \"/v1/read/binary\", body: \"*\" } }, I: StreamingAPI_ReadBinary, O: StreamingAPI_Response },\n { name: \"StreamText\", serverStreaming: true, options: { \"google.api.http\": { post: \"/v1/stream/text\", body: \"*\" } }, I: StreamingAPI_StreamText, O: StreamingAPI_Response },\n { name: \"ReadText\", options: { \"google.api.http\": { post: \"/v1/read/text\", body: \"*\" } }, I: StreamingAPI_ReadText, O: StreamingAPI_Response },\n { name: \"LastLines\", options: { \"google.api.http\": { post: \"/v1/last-lines\", body: \"*\" } }, I: StreamingAPI_LastLines, O: StreamingAPI_Response }\n]);\n"],"mappings":";;;;;AA2PA,IAAM,oBAAN,cAAgCA,iCAA0B;CACtD,cAAc;AACV,QAAM,iDAAiD,EAAE,CAAC;;CAE9D,OAAO,OAAoD;EACvD,MAAM,UAAU,WAAW,OAAO,OAAQ,KAAK,iBAAmB;AAClE,MAAI,UAAU,OACV,kDAAqC,MAAM,SAAS,MAAM;AAC9D,SAAO;;CAEX,mBAAmB,QAAuB,QAAgB,SAA4B,QAAqC;EACvH,IAAI,UAAU,UAAU,KAAK,QAAQ,EAAE,MAAM,OAAO,MAAM;AAC1D,SAAO,OAAO,MAAM,KAAK;GACrB,IAAI,CAAC,SAAS,YAAY,OAAO,KAAK;AACtC,WAAQ,SAAR;IACI;KACI,IAAI,IAAI,QAAQ;AAChB,SAAI,MAAM,QACN,OAAM,IAAI,WAAW,MAAM,iBAAiB,QAAQ,cAAc,SAAS,QAAQ,KAAK,WAAW;KACvG,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ieldHandler","WireType","ServiceType"],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport { ServiceType } from \"@protobuf-ts/runtime-rpc\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI\n */\nexport interface StreamingAPI {\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary\n */\nexport interface StreamingAPI_ReadBinary {\n /**\n * <resource_id> of Stream resource that keeps info on item to be streamed.\n *\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * Signature proving the caller is authorized to access this resource.\n *\n * @generated from protobuf field: optional bytes resource_signature = 3\n */\n resourceSignature?: Uint8Array;\n /**\n * <offset> makes the streamer perform a seek operation to the given offset before sending the data.\n *\n * @generated from protobuf field: int64 offset = 2\n */\n offset: bigint;\n /**\n * <chunk_size> limits the maximum size of <data> for response message in stream.\n *\n * Default value: 32 768 (32 KiB)\n * Max value: 3900 * 1024 (3.9 MiB)\n *\n * @generated from protobuf field: optional uint32 chunk_size = 11\n */\n chunkSize?: number;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText\n */\nexport interface StreamingAPI_ReadText {\n /**\n * <resource_id> of Stream resource that keeps info on item to be streamed.\n *\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * Signature proving the caller is authorized to access this resource.\n *\n * @generated from protobuf field: optional bytes resource_signature = 3\n */\n resourceSignature?: Uint8Array;\n /**\n * <offset> makes the streamer perform a seek operation to the given offset before sending the contents.\n * This offset is taken in BYTES, as it eases streaming recovery after a client reconnection or controller restart.\n * The client can just use the <new_offset> value of the last response from the server to continue streaming after reconnection.\n *\n * @generated from protobuf field: int64 offset = 2\n */\n offset: bigint;\n /**\n * <read_limit> allows the client to limit total data sent from the server.\n * Measured in lines of text.\n * E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.\n * When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.\n * This is equivalent to 'head -n <read_limit> | grep <search>'.\n * At most 3.9 MiB (3900 KiB) of data is returned in a single read regardless of the <read_limit> option\n * Only full lines of text are returned except for the last line from the completed source\n * (the one that is not expected to have new data, like a blob in storage)\n *\n * @generated from protobuf field: optional int64 read_limit = 20\n */\n readLimit?: bigint;\n /**\n * <search> is a substring for the line search pattern.\n * This option makes the controller send to the client only lines that\n * have the given substring.\n *\n * @generated from protobuf field: optional string search = 21\n */\n search?: string;\n /**\n * <search_re> is a regular expression for the line search pattern.\n * This option makes the controller send to the client only lines that\n * match the given regular expression.\n *\n * @generated from protobuf field: optional string search_re = 22\n */\n searchRe?: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.LastLines\n */\nexport interface StreamingAPI_LastLines {\n /**\n * <resource_id> of Stream resource that keeps info on item to be streamed.\n *\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * Signature proving the caller is authorized to access this resource.\n *\n * @generated from protobuf field: optional bytes resource_signature = 4\n */\n resourceSignature?: Uint8Array;\n /**\n * <offset> makes the streamer perform a seek operation to the given offset before sending the contents.\n * This offset is taken in BYTES, as it eases streaming recovery after a client reconnection or controller restart.\n * By default, LastLines starts reading the data source from the very last byte available in the data stream\n * at the moment of the call, but the client can set the server to start from an earlier position.\n *\n * @generated from protobuf field: optional int64 offset = 2\n */\n offset?: bigint;\n /**\n * <line_count> makes the streamer return up to <line_count> lines to the client.\n * Default value: 1\n *\n * @generated from protobuf field: optional int32 line_count = 3\n */\n lineCount?: number;\n /**\n * <search> is a substring for the line search pattern.\n * This option makes the controller send to the client only lines that\n * have the given substring.\n *\n * @generated from protobuf field: optional string search = 21\n */\n search?: string;\n /**\n * <search_re> is a regular expression for the line search pattern.\n * This option makes the controller send to the client only lines that\n * match the given regular expression.\n *\n * @generated from protobuf field: optional string search_re = 22\n */\n searchRe?: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.Response\n */\nexport interface StreamingAPI_Response {\n /**\n * data chunk from the item, starting from the <new_offset> of the previous message in the same stream.\n *\n * @generated from protobuf field: bytes data = 1\n */\n data: Uint8Array;\n /**\n * <size> is the actual size of the streamed item at the moment of this message.\n * This might not be the final amount of streamed data, as the stream source can be updated\n * by another independent process (e.g., data is written to a log file).\n * This field in combination with <new_offset> shows how far the client is from the end\n * of the data right now.\n *\n * @generated from protobuf field: uint64 size = 2\n */\n size: bigint;\n /**\n * <new_offset> is the new offset in bytes from the start of the streamed item,\n * including the size of <data> in the current response.\n * A call to the Stream RPC with <offset> = <new_offset> will continue\n * streaming from the place of the last received message\n * (e.g. <offset> = <new_offset> - 1 will repeat the last byte of\n * previously received <data>)\n *\n * @generated from protobuf field: uint64 new_offset = 3\n */\n newOffset: bigint;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI$Type extends MessageType<StreamingAPI> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI\", []);\n }\n create(value?: PartialMessage<StreamingAPI>): StreamingAPI {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI): StreamingAPI {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI\n */\nexport const StreamingAPI = new StreamingAPI$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_ReadBinary> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"resource_signature\", kind: \"scalar\", opt: true, T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"offset\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 11, name: \"chunk_size\", kind: \"scalar\", opt: true, T: 13 /*ScalarType.UINT32*/ }\n ]);\n }\n create(value?: PartialMessage<StreamingAPI_ReadBinary>): StreamingAPI_ReadBinary {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.offset = 0n;\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI_ReadBinary>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_ReadBinary): StreamingAPI_ReadBinary {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* optional bytes resource_signature */ 3:\n message.resourceSignature = reader.bytes();\n break;\n case /* int64 offset */ 2:\n message.offset = reader.int64().toBigInt();\n break;\n case /* optional uint32 chunk_size */ 11:\n message.chunkSize = reader.uint32();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI_ReadBinary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* int64 offset = 2; */\n if (message.offset !== 0n)\n writer.tag(2, WireType.Varint).int64(message.offset);\n /* optional bytes resource_signature = 3; */\n if (message.resourceSignature !== undefined)\n writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);\n /* optional uint32 chunk_size = 11; */\n if (message.chunkSize !== undefined)\n writer.tag(11, WireType.Varint).uint32(message.chunkSize);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary\n */\nexport const StreamingAPI_ReadBinary = new StreamingAPI_ReadBinary$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI_ReadText$Type extends MessageType<StreamingAPI_ReadText> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI.ReadText\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"resource_signature\", kind: \"scalar\", opt: true, T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"offset\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 20, name: \"read_limit\", kind: \"scalar\", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 21, name: \"search\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 22, name: \"search_re\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<StreamingAPI_ReadText>): StreamingAPI_ReadText {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.offset = 0n;\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI_ReadText>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_ReadText): StreamingAPI_ReadText {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* optional bytes resource_signature */ 3:\n message.resourceSignature = reader.bytes();\n break;\n case /* int64 offset */ 2:\n message.offset = reader.int64().toBigInt();\n break;\n case /* optional int64 read_limit */ 20:\n message.readLimit = reader.int64().toBigInt();\n break;\n case /* optional string search */ 21:\n message.search = reader.string();\n break;\n case /* optional string search_re */ 22:\n message.searchRe = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI_ReadText, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* int64 offset = 2; */\n if (message.offset !== 0n)\n writer.tag(2, WireType.Varint).int64(message.offset);\n /* optional bytes resource_signature = 3; */\n if (message.resourceSignature !== undefined)\n writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);\n /* optional int64 read_limit = 20; */\n if (message.readLimit !== undefined)\n writer.tag(20, WireType.Varint).int64(message.readLimit);\n /* optional string search = 21; */\n if (message.search !== undefined)\n writer.tag(21, WireType.LengthDelimited).string(message.search);\n /* optional string search_re = 22; */\n if (message.searchRe !== undefined)\n writer.tag(22, WireType.LengthDelimited).string(message.searchRe);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText\n */\nexport const StreamingAPI_ReadText = new StreamingAPI_ReadText$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI_LastLines$Type extends MessageType<StreamingAPI_LastLines> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI.LastLines\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 4, name: \"resource_signature\", kind: \"scalar\", opt: true, T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"offset\", kind: \"scalar\", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"line_count\", kind: \"scalar\", opt: true, T: 5 /*ScalarType.INT32*/ },\n { no: 21, name: \"search\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 22, name: \"search_re\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<StreamingAPI_LastLines>): StreamingAPI_LastLines {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI_LastLines>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_LastLines): StreamingAPI_LastLines {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* optional bytes resource_signature */ 4:\n message.resourceSignature = reader.bytes();\n break;\n case /* optional int64 offset */ 2:\n message.offset = reader.int64().toBigInt();\n break;\n case /* optional int32 line_count */ 3:\n message.lineCount = reader.int32();\n break;\n case /* optional string search */ 21:\n message.search = reader.string();\n break;\n case /* optional string search_re */ 22:\n message.searchRe = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI_LastLines, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* optional int64 offset = 2; */\n if (message.offset !== undefined)\n writer.tag(2, WireType.Varint).int64(message.offset);\n /* optional int32 line_count = 3; */\n if (message.lineCount !== undefined)\n writer.tag(3, WireType.Varint).int32(message.lineCount);\n /* optional bytes resource_signature = 4; */\n if (message.resourceSignature !== undefined)\n writer.tag(4, WireType.LengthDelimited).bytes(message.resourceSignature);\n /* optional string search = 21; */\n if (message.search !== undefined)\n writer.tag(21, WireType.LengthDelimited).string(message.search);\n /* optional string search_re = 22; */\n if (message.searchRe !== undefined)\n writer.tag(22, WireType.LengthDelimited).string(message.searchRe);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.LastLines\n */\nexport const StreamingAPI_LastLines = new StreamingAPI_LastLines$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI_Response$Type extends MessageType<StreamingAPI_Response> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI.Response\", [\n { no: 1, name: \"data\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"size\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"new_offset\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }\n ]);\n }\n create(value?: PartialMessage<StreamingAPI_Response>): StreamingAPI_Response {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.data = new Uint8Array(0);\n message.size = 0n;\n message.newOffset = 0n;\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI_Response>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_Response): StreamingAPI_Response {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* bytes data */ 1:\n message.data = reader.bytes();\n break;\n case /* uint64 size */ 2:\n message.size = reader.uint64().toBigInt();\n break;\n case /* uint64 new_offset */ 3:\n message.newOffset = reader.uint64().toBigInt();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* bytes data = 1; */\n if (message.data.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.data);\n /* uint64 size = 2; */\n if (message.size !== 0n)\n writer.tag(2, WireType.Varint).uint64(message.size);\n /* uint64 new_offset = 3; */\n if (message.newOffset !== 0n)\n writer.tag(3, WireType.Varint).uint64(message.newOffset);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.Response\n */\nexport const StreamingAPI_Response = new StreamingAPI_Response$Type();\n/**\n * @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Streaming\n */\nexport const Streaming = new ServiceType(\"MiLaboratories.Controller.Shared.Streaming\", [\n { name: \"ReadBinary\", options: { \"google.api.http\": { post: \"/v1/read/binary\", body: \"*\" } }, I: StreamingAPI_ReadBinary, O: StreamingAPI_Response },\n { name: \"ReadText\", options: { \"google.api.http\": { post: \"/v1/read/text\", body: \"*\" } }, I: StreamingAPI_ReadText, O: StreamingAPI_Response },\n { name: \"LastLines\", options: { \"google.api.http\": { post: \"/v1/last-lines\", body: \"*\" } }, I: StreamingAPI_LastLines, O: StreamingAPI_Response }\n]);\n"],"mappings":";;;;;AA0LA,IAAM,oBAAN,cAAgCA,iCAA0B;CACtD,cAAc;AACV,QAAM,iDAAiD,EAAE,CAAC;;CAE9D,OAAO,OAAoD;EACvD,MAAM,UAAU,WAAW,OAAO,OAAQ,KAAK,iBAAmB;AAClE,MAAI,UAAU,OACV,kDAAqC,MA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,OAAOD,yCAAoB,UAAU,GAAG,KAAK,UAAU,SAAS,OAAO;AACjF,SAAO;;;;;;AAMf,MAAa,wBAAwB,IAAI,4BAA4B;;;;AAIrE,MAAa,YAAY,IAAIE,qCAAY,8CAA8C;CACnF;EAAE,MAAM;EAAc,SAAS,EAAE,mBAAmB;GAAE,MAAM;GAAmB,MAAM;GAAK,EAAE;EAAE,GAAG;EAAyB,GAAG;EAAuB;CACpJ;EAAE,MAAM;EAAY,SAAS,EAAE,mBAAmB;GAAE,MAAM;GAAiB,MAAM;GAAK,EAAE;EAAE,GAAG;EAAuB,GAAG;EAAuB;CAC9I;EAAE,MAAM;EAAa,SAAS,EAAE,mBAAmB;GAAE,MAAM;GAAkB,MAAM;GAAK,EAAE;EAAE,GAAG;EAAwB,GAAG;EAAuB;CACpJ,CAAC"}
|
|
@@ -5,8 +5,8 @@ let _protobuf_ts_runtime_rpc = require("@protobuf-ts/runtime-rpc");
|
|
|
5
5
|
//#region src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
8
|
-
* Streaming provides access to online data stream from item in storage. Whenever
|
|
9
|
-
* the caller receives this fresh data in stream from server.
|
|
8
|
+
* Streaming provides access to an online data stream from an item in storage. Whenever data is appended to an item,
|
|
9
|
+
* the caller receives this fresh data in a stream from the server.
|
|
10
10
|
*
|
|
11
11
|
*
|
|
12
12
|
* @generated from protobuf service MiLaboratories.Controller.Shared.Streaming
|
|
@@ -19,64 +19,43 @@ var StreamingClient = class {
|
|
|
19
19
|
this._transport = _transport;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* @generated from protobuf rpc: StreamBinary
|
|
27
|
-
*/
|
|
28
|
-
streamBinary(input, options) {
|
|
29
|
-
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
30
|
-
return (0, _protobuf_ts_runtime_rpc.stackIntercept)("serverStreaming", this._transport, method, opt, input);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* ReadBinary allows to read remote item in chunks using stream-like API.
|
|
34
|
-
* The difference to StreamBinary is that the client receives single response for each
|
|
35
|
-
* call and has to send new calls to the server to get fresh data from remote item.
|
|
36
|
-
* Each response (each chunk from server) keeps not more than 3.9MiB of data.
|
|
22
|
+
* ReadBinary allows reading a remote item in chunks using a stream-like API.
|
|
23
|
+
* The client receives a single response for each call and has to send new calls
|
|
24
|
+
* to the server to get fresh data from the remote item.
|
|
25
|
+
* Each response (each chunk from the server) contains no more than 3.9MiB of data.
|
|
37
26
|
*
|
|
38
27
|
* @generated from protobuf rpc: ReadBinary
|
|
39
28
|
*/
|
|
40
29
|
readBinary(input, options) {
|
|
41
|
-
const method = this.methods[
|
|
30
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
42
31
|
return (0, _protobuf_ts_runtime_rpc.stackIntercept)("unary", this._transport, method, opt, input);
|
|
43
32
|
}
|
|
44
33
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
streamText(input, options) {
|
|
51
|
-
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
52
|
-
return (0, _protobuf_ts_runtime_rpc.stackIntercept)("serverStreaming", this._transport, method, opt, input);
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* ReadBinary allows to read remote item in chunks using stream-like API.
|
|
56
|
-
* The difference to StreamBinary is that the client receives single response for each
|
|
57
|
-
* call and has to send new calls to the server to get fresh data from remote item.
|
|
58
|
-
* Each response (each chunk from server) keeps not more than 3.9MiB of data.
|
|
34
|
+
* ReadText allows reading a remote item in chunks using a stream-like API.
|
|
35
|
+
* The client receives a single response for each call and has to send new calls
|
|
36
|
+
* to the server to get fresh data from the remote item.
|
|
37
|
+
* Each response (each chunk from the server) contains no more than 3.9MiB of data.
|
|
59
38
|
*
|
|
60
39
|
* @generated from protobuf rpc: ReadText
|
|
61
40
|
*/
|
|
62
41
|
readText(input, options) {
|
|
63
|
-
const method = this.methods[
|
|
42
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
64
43
|
return (0, _protobuf_ts_runtime_rpc.stackIntercept)("unary", this._transport, method, opt, input);
|
|
65
44
|
}
|
|
66
45
|
/**
|
|
67
|
-
* LastLines provides single message with the last lines from data source.
|
|
68
|
-
* When search pattern is specified, the last lines matching the given pattern are returned.
|
|
69
|
-
* The lines are returned in
|
|
70
|
-
* Consider it
|
|
46
|
+
* LastLines provides a single message with the last lines from the data source.
|
|
47
|
+
* When a search pattern is specified, the last lines matching the given pattern are returned.
|
|
48
|
+
* The lines are returned in reverse order, as the server reads the data source from the end.
|
|
49
|
+
* Consider it equivalent to 'tac <file> | grep <search> | head -n <line_count>'
|
|
71
50
|
* The <new_offset> returned in the response points to the _beginning_ of the last
|
|
72
|
-
* line found, so client can continue reading the file backwards in subsequent calls.
|
|
73
|
-
* This means
|
|
74
|
-
* returned
|
|
51
|
+
* line found, so the client can continue reading the file backwards in subsequent calls.
|
|
52
|
+
* This means that the use of this <new_offset> in ReadText() will return the last line
|
|
53
|
+
* returned in the LastLines() response.
|
|
75
54
|
*
|
|
76
55
|
* @generated from protobuf rpc: LastLines
|
|
77
56
|
*/
|
|
78
57
|
lastLines(input, options) {
|
|
79
|
-
const method = this.methods[
|
|
58
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
80
59
|
return (0, _protobuf_ts_runtime_rpc.stackIntercept)("unary", this._transport, method, opt, input);
|
|
81
60
|
}
|
|
82
61
|
};
|