@milaboratories/pl-client 2.7.13 → 2.7.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/dist/core/auth.d.ts.map +1 -1
  2. package/dist/core/cache.d.ts.map +1 -1
  3. package/dist/core/client.d.ts +1 -1
  4. package/dist/core/client.d.ts.map +1 -1
  5. package/dist/core/default_client.d.ts.map +1 -1
  6. package/dist/core/driver.d.ts.map +1 -1
  7. package/dist/core/errors.d.ts.map +1 -1
  8. package/dist/core/final.d.ts.map +1 -1
  9. package/dist/core/ll_client.d.ts.map +1 -1
  10. package/dist/core/ll_transaction.d.ts.map +1 -1
  11. package/dist/core/transaction.d.ts +1 -1
  12. package/dist/core/transaction.d.ts.map +1 -1
  13. package/dist/core/type_conversion.d.ts.map +1 -1
  14. package/dist/core/types.d.ts +1 -1
  15. package/dist/core/types.d.ts.map +1 -1
  16. package/dist/core/unauth_client.d.ts.map +1 -1
  17. package/dist/helpers/pl.d.ts.map +1 -1
  18. package/dist/helpers/poll.d.ts.map +1 -1
  19. package/dist/helpers/state_helpers.d.ts.map +1 -1
  20. package/dist/helpers/tx_helpers.d.ts.map +1 -1
  21. package/dist/index.js +1 -1
  22. package/dist/index.js.map +1 -1
  23. package/dist/index.mjs +4069 -4075
  24. package/dist/index.mjs.map +1 -1
  25. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +15 -15
  26. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -1
  27. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +4 -4
  28. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
  29. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +16 -16
  30. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
  31. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +4 -4
  32. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +1 -1
  33. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +59 -59
  34. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -1
  35. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +8 -8
  36. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
  37. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +22 -22
  38. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
  39. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +72 -72
  40. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -1
  41. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +152 -152
  42. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
  43. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +156 -156
  44. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -1
  45. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +773 -773
  46. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
  47. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +163 -163
  48. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -1
  49. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +22 -22
  50. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -1
  51. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +32 -32
  52. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -1
  53. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +78 -78
  54. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -1
  55. package/dist/proto/google/api/http.d.ts +89 -89
  56. package/dist/proto/google/api/http.d.ts.map +1 -1
  57. package/dist/proto/google/protobuf/any.d.ts +52 -52
  58. package/dist/proto/google/protobuf/any.d.ts.map +1 -1
  59. package/dist/proto/google/protobuf/descriptor.d.ts +1151 -1151
  60. package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
  61. package/dist/proto/google/protobuf/duration.d.ts +19 -19
  62. package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
  63. package/dist/proto/google/protobuf/empty.d.ts.map +1 -1
  64. package/dist/proto/google/protobuf/struct.d.ts +56 -56
  65. package/dist/proto/google/protobuf/struct.d.ts.map +1 -1
  66. package/dist/proto/google/protobuf/timestamp.d.ts +25 -25
  67. package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
  68. package/dist/proto/google/protobuf/wrappers.d.ts +72 -72
  69. package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -1
  70. package/dist/test/test_config.d.ts.map +1 -1
  71. package/dist/util/util.d.ts.map +1 -1
  72. package/package.json +7 -3
  73. package/src/core/auth.ts +3 -3
  74. package/src/core/cache.ts +1 -1
  75. package/src/core/client.ts +39 -31
  76. package/src/core/config.ts +21 -21
  77. package/src/core/default_client.ts +15 -14
  78. package/src/core/driver.ts +4 -4
  79. package/src/core/errors.ts +3 -3
  80. package/src/core/final.ts +7 -4
  81. package/src/core/ll_client.ts +31 -27
  82. package/src/core/ll_transaction.ts +17 -17
  83. package/src/core/stat.ts +2 -2
  84. package/src/core/transaction.ts +93 -95
  85. package/src/core/type_conversion.ts +11 -8
  86. package/src/core/types.ts +25 -26
  87. package/src/core/unauth_client.ts +6 -6
  88. package/src/helpers/pl.ts +8 -7
  89. package/src/helpers/poll.ts +25 -21
  90. package/src/helpers/state_helpers.ts +2 -1
  91. package/src/helpers/tx_helpers.ts +4 -3
  92. package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +74 -71
  93. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +21 -20
  94. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +240 -225
  95. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +21 -20
  96. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +290 -275
  97. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +32 -30
  98. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +388 -364
  99. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +58 -53
  100. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +490 -469
  101. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +262 -237
  102. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +11751 -11032
  103. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1155 -1114
  104. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +131 -125
  105. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +203 -200
  106. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +559 -540
  107. package/src/proto/google/api/http.ts +280 -271
  108. package/src/proto/google/protobuf/any.ts +149 -139
  109. package/src/proto/google/protobuf/descriptor.ts +2952 -2853
  110. package/src/proto/google/protobuf/duration.ts +107 -102
  111. package/src/proto/google/protobuf/empty.ts +41 -38
  112. package/src/proto/google/protobuf/struct.ts +336 -322
  113. package/src/proto/google/protobuf/timestamp.ts +131 -123
  114. package/src/proto/google/protobuf/wrappers.ts +536 -491
  115. package/src/test/test_config.ts +21 -19
  116. package/src/util/util.ts +1 -0
@@ -1,16 +1,16 @@
1
1
  // @generated by protobuf-ts 2.9.5 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
2
2
  // @generated from protobuf file "github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.proto" (package "MiLaboratories.Controller.Shared", syntax proto3)
3
3
  // tslint:disable
4
- import { ServiceType } from "@protobuf-ts/runtime-rpc";
5
- import { WireType } from "@protobuf-ts/runtime";
6
- import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
7
- import type { IBinaryWriter } from "@protobuf-ts/runtime";
8
- import type { BinaryReadOptions } from "@protobuf-ts/runtime";
9
- import type { IBinaryReader } from "@protobuf-ts/runtime";
10
- import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
- import type { PartialMessage } from "@protobuf-ts/runtime";
12
- import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
- import { MessageType } from "@protobuf-ts/runtime";
4
+ import { ServiceType } from '@protobuf-ts/runtime-rpc';
5
+ import { WireType } from '@protobuf-ts/runtime';
6
+ import type { BinaryWriteOptions } from '@protobuf-ts/runtime';
7
+ import type { IBinaryWriter } from '@protobuf-ts/runtime';
8
+ import type { BinaryReadOptions } from '@protobuf-ts/runtime';
9
+ import type { IBinaryReader } from '@protobuf-ts/runtime';
10
+ import { UnknownFieldHandler } from '@protobuf-ts/runtime';
11
+ import type { PartialMessage } from '@protobuf-ts/runtime';
12
+ import { reflectionMergePartial } from '@protobuf-ts/runtime';
13
+ import { MessageType } from '@protobuf-ts/runtime';
14
14
  /**
15
15
  * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI
16
16
  */
@@ -20,19 +20,19 @@ export interface StreamingAPI {
20
20
  * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary
21
21
  */
22
22
  export interface StreamingAPI_StreamBinary {
23
- /**
23
+ /**
24
24
  * <resource_id> of Stream resource, that keeps info on item to be streamed.
25
25
  *
26
26
  * @generated from protobuf field: uint64 resource_id = 1;
27
27
  */
28
- resourceId: bigint;
29
- /**
28
+ resourceId: bigint;
29
+ /**
30
30
  * <offset> makes streamer to perform seek operation to given offset before sending the data.
31
31
  *
32
32
  * @generated from protobuf field: int64 offset = 2;
33
33
  */
34
- offset: bigint;
35
- /**
34
+ offset: bigint;
35
+ /**
36
36
  * <chunk_size> limits the maximum size of <data> for each response message in stream.
37
37
  *
38
38
  * Default value: 32 768 (32 KiB)
@@ -40,8 +40,8 @@ export interface StreamingAPI_StreamBinary {
40
40
  *
41
41
  * @generated from protobuf field: optional uint32 chunk_size = 11;
42
42
  */
43
- chunkSize?: number;
44
- /**
43
+ chunkSize?: number;
44
+ /**
45
45
  * <read_limit> allows client to limit total data sent from server.
46
46
  * This limit is aggregation of all data, sent in all chunks.
47
47
  * E.g. to read 2000 bytes of data in chunks of at most
@@ -51,25 +51,25 @@ export interface StreamingAPI_StreamBinary {
51
51
  *
52
52
  * @generated from protobuf field: optional int64 read_limit = 20;
53
53
  */
54
- readLimit?: bigint;
54
+ readLimit?: bigint;
55
55
  }
56
56
  /**
57
57
  * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary
58
58
  */
59
59
  export interface StreamingAPI_ReadBinary {
60
- /**
60
+ /**
61
61
  * <resource_id> of Stream resource, that keeps info on item to be streamed.
62
62
  *
63
63
  * @generated from protobuf field: uint64 resource_id = 1;
64
64
  */
65
- resourceId: bigint;
66
- /**
65
+ resourceId: bigint;
66
+ /**
67
67
  * <offset> makes streamer to perform seek operation to given offset before sending the data.
68
68
  *
69
69
  * @generated from protobuf field: int64 offset = 2;
70
70
  */
71
- offset: bigint;
72
- /**
71
+ offset: bigint;
72
+ /**
73
73
  * <chunk_size> limits the maximum size of <data> for response message in stream.
74
74
  *
75
75
  * Default value: 32 768 (32 KiB)
@@ -77,27 +77,27 @@ export interface StreamingAPI_ReadBinary {
77
77
  *
78
78
  * @generated from protobuf field: optional uint32 chunk_size = 11;
79
79
  */
80
- chunkSize?: number;
80
+ chunkSize?: number;
81
81
  }
82
82
  /**
83
83
  * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamText
84
84
  */
85
85
  export interface StreamingAPI_StreamText {
86
- /**
86
+ /**
87
87
  * <resource_id> of Stream resource, that keeps info on item to be streamed.
88
88
  *
89
89
  * @generated from protobuf field: uint64 resource_id = 1;
90
90
  */
91
- resourceId: bigint;
92
- /**
91
+ resourceId: bigint;
92
+ /**
93
93
  * <offset> makes streamer to perform seek operation to given offset before sending the contents.
94
94
  * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
95
95
  * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
96
96
  *
97
97
  * @generated from protobuf field: int64 offset = 2;
98
98
  */
99
- offset: bigint;
100
- /**
99
+ offset: bigint;
100
+ /**
101
101
  * <read_limit> allows client to limit total data sent from server.
102
102
  * This limit is aggregation of all data, sent in all chunks, measured
103
103
  * in lines of text.
@@ -107,43 +107,43 @@ export interface StreamingAPI_StreamText {
107
107
  *
108
108
  * @generated from protobuf field: optional int64 read_limit = 20;
109
109
  */
110
- readLimit?: bigint;
111
- /**
110
+ readLimit?: bigint;
111
+ /**
112
112
  * <search> is substring for line search pattern.
113
113
  * This option makes controller to send to the client only lines, that
114
114
  * have given substring.
115
115
  *
116
116
  * @generated from protobuf field: optional string search = 21;
117
117
  */
118
- search?: string;
119
- /**
118
+ search?: string;
119
+ /**
120
120
  * <search_re> is regular expression for line search pattern.
121
121
  * This option makes controller to send to the client only lines, that
122
122
  * match given regular expression.
123
123
  *
124
124
  * @generated from protobuf field: optional string search_re = 22;
125
125
  */
126
- searchRe?: string;
126
+ searchRe?: string;
127
127
  }
128
128
  /**
129
129
  * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText
130
130
  */
131
131
  export interface StreamingAPI_ReadText {
132
- /**
132
+ /**
133
133
  * <resource_id> of Stream resource, that keeps info on item to be streamed.
134
134
  *
135
135
  * @generated from protobuf field: uint64 resource_id = 1;
136
136
  */
137
- resourceId: bigint;
138
- /**
137
+ resourceId: bigint;
138
+ /**
139
139
  * <offset> makes streamer to perform seek operation to given offset before sending the contents.
140
140
  * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
141
141
  * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
142
142
  *
143
143
  * @generated from protobuf field: int64 offset = 2;
144
144
  */
145
- offset: bigint;
146
- /**
145
+ offset: bigint;
146
+ /**
147
147
  * <read_limit> allows client to limit total data sent from server.
148
148
  * Measured in lines of text.
149
149
  * E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.
@@ -155,35 +155,35 @@ export interface StreamingAPI_ReadText {
155
155
  *
156
156
  * @generated from protobuf field: optional int64 read_limit = 20;
157
157
  */
158
- readLimit?: bigint;
159
- /**
158
+ readLimit?: bigint;
159
+ /**
160
160
  * <search> is substring for line search pattern.
161
161
  * This option makes controller to send to the client only lines, that
162
162
  * have given substring.
163
163
  *
164
164
  * @generated from protobuf field: optional string search = 21;
165
165
  */
166
- search?: string;
167
- /**
166
+ search?: string;
167
+ /**
168
168
  * <search_re> is regular expression for line search pattern.
169
169
  * This option makes controller to send to the client only lines, that
170
170
  * match given regular expression.
171
171
  *
172
172
  * @generated from protobuf field: optional string search_re = 22;
173
173
  */
174
- searchRe?: string;
174
+ searchRe?: string;
175
175
  }
176
176
  /**
177
177
  * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.LastLines
178
178
  */
179
179
  export interface StreamingAPI_LastLines {
180
- /**
180
+ /**
181
181
  * <resource_id> of Stream resource, that keeps info on item to be streamed.
182
182
  *
183
183
  * @generated from protobuf field: uint64 resource_id = 1;
184
184
  */
185
- resourceId: bigint;
186
- /**
185
+ resourceId: bigint;
186
+ /**
187
187
  * <offset> makes streamer to perform seek operation to given offset before sending the contents.
188
188
  * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
189
189
  * By default, LastLines starts to treat the data source from the very last byte available in data stream
@@ -191,42 +191,42 @@ export interface StreamingAPI_LastLines {
191
191
  *
192
192
  * @generated from protobuf field: optional int64 offset = 2;
193
193
  */
194
- offset?: bigint;
195
- /**
194
+ offset?: bigint;
195
+ /**
196
196
  * <line_count> makes streamer to return up to <line_count> lines to the client.
197
197
  * Default value: 1
198
198
  *
199
199
  * @generated from protobuf field: optional int32 line_count = 3;
200
200
  */
201
- lineCount?: number;
202
- /**
201
+ lineCount?: number;
202
+ /**
203
203
  * <search> is substring for line search pattern.
204
204
  * This option makes controller to send to the client only lines, that
205
205
  * have given substring.
206
206
  *
207
207
  * @generated from protobuf field: optional string search = 21;
208
208
  */
209
- search?: string;
210
- /**
209
+ search?: string;
210
+ /**
211
211
  * <search_re> is regular expression for line search pattern.
212
212
  * This option makes controller to send to the client only lines, that
213
213
  * match given regular expression.
214
214
  *
215
215
  * @generated from protobuf field: optional string search_re = 22;
216
216
  */
217
- searchRe?: string;
217
+ searchRe?: string;
218
218
  }
219
219
  /**
220
220
  * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.Response
221
221
  */
222
222
  export interface StreamingAPI_Response {
223
- /**
223
+ /**
224
224
  * data chunk from item, starting from the <new_offset> of the previous message in the same stream.
225
225
  *
226
226
  * @generated from protobuf field: bytes data = 1;
227
227
  */
228
- data: Uint8Array;
229
- /**
228
+ data: Uint8Array;
229
+ /**
230
230
  * <size> is the actual size of the streamed item at the moment of this message.
231
231
  * This might be not a final amount of streamed data, as stream source can be updated
232
232
  * by other independent process (e.g., data is written to log file).
@@ -235,8 +235,8 @@ export interface StreamingAPI_Response {
235
235
  *
236
236
  * @generated from protobuf field: uint64 size = 2;
237
237
  */
238
- size: bigint;
239
- /**
238
+ size: bigint;
239
+ /**
240
240
  * <new_offset> is the new offset in bytes from the start of the streamed item,
241
241
  * including size of <data> in current response.
242
242
  * Call to Stream rpc with <offset> = <new_offset> will continue
@@ -246,41 +246,44 @@ export interface StreamingAPI_Response {
246
246
  *
247
247
  * @generated from protobuf field: uint64 new_offset = 3;
248
248
  */
249
- newOffset: bigint;
249
+ newOffset: bigint;
250
250
  }
251
251
  // @generated message type with reflection information, may provide speed optimized methods
252
252
  class StreamingAPI$Type extends MessageType<StreamingAPI> {
253
- constructor() {
254
- super("MiLaboratories.Controller.Shared.StreamingAPI", []);
255
- }
256
- create(value?: PartialMessage<StreamingAPI>): StreamingAPI {
257
- const message = globalThis.Object.create((this.messagePrototype!));
258
- if (value !== undefined)
259
- reflectionMergePartial<StreamingAPI>(this, message, value);
260
- return message;
261
- }
262
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI): StreamingAPI {
263
- let message = target ?? this.create(), end = reader.pos + length;
264
- while (reader.pos < end) {
265
- let [fieldNo, wireType] = reader.tag();
266
- switch (fieldNo) {
267
- default:
268
- let u = options.readUnknownField;
269
- if (u === "throw")
270
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
271
- let d = reader.skip(wireType);
272
- if (u !== false)
273
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
274
- }
275
- }
276
- return message;
277
- }
278
- internalBinaryWrite(message: StreamingAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
279
- let u = options.writeUnknownFields;
280
- if (u !== false)
281
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
282
- return writer;
253
+ constructor() {
254
+ super('MiLaboratories.Controller.Shared.StreamingAPI', []);
255
+ }
256
+
257
+ create(value?: PartialMessage<StreamingAPI>): StreamingAPI {
258
+ const message = globalThis.Object.create((this.messagePrototype!));
259
+ if (value !== undefined)
260
+ reflectionMergePartial<StreamingAPI>(this, message, value);
261
+ return message;
262
+ }
263
+
264
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI): StreamingAPI {
265
+ const message = target ?? this.create(), end = reader.pos + length;
266
+ while (reader.pos < end) {
267
+ const [fieldNo, wireType] = reader.tag();
268
+ switch (fieldNo) {
269
+ default:
270
+ const u = options.readUnknownField;
271
+ if (u === 'throw')
272
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
273
+ const d = reader.skip(wireType);
274
+ if (u !== false)
275
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
276
+ }
283
277
  }
278
+ return message;
279
+ }
280
+
281
+ internalBinaryWrite(message: StreamingAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
282
+ const u = options.writeUnknownFields;
283
+ if (u !== false)
284
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
285
+ return writer;
286
+ }
284
287
  }
285
288
  /**
286
289
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI
@@ -288,68 +291,71 @@ class StreamingAPI$Type extends MessageType<StreamingAPI> {
288
291
  export const StreamingAPI = new StreamingAPI$Type();
289
292
  // @generated message type with reflection information, may provide speed optimized methods
290
293
  class StreamingAPI_StreamBinary$Type extends MessageType<StreamingAPI_StreamBinary> {
291
- constructor() {
292
- super("MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary", [
293
- { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
294
- { no: 2, name: "offset", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
295
- { no: 11, name: "chunk_size", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
296
- { no: 20, name: "read_limit", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
297
- ]);
298
- }
299
- create(value?: PartialMessage<StreamingAPI_StreamBinary>): StreamingAPI_StreamBinary {
300
- const message = globalThis.Object.create((this.messagePrototype!));
301
- message.resourceId = 0n;
302
- message.offset = 0n;
303
- if (value !== undefined)
304
- reflectionMergePartial<StreamingAPI_StreamBinary>(this, message, value);
305
- return message;
306
- }
307
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_StreamBinary): StreamingAPI_StreamBinary {
308
- let message = target ?? this.create(), end = reader.pos + length;
309
- while (reader.pos < end) {
310
- let [fieldNo, wireType] = reader.tag();
311
- switch (fieldNo) {
312
- case /* uint64 resource_id */ 1:
313
- message.resourceId = reader.uint64().toBigInt();
314
- break;
315
- case /* int64 offset */ 2:
316
- message.offset = reader.int64().toBigInt();
317
- break;
318
- case /* optional uint32 chunk_size */ 11:
319
- message.chunkSize = reader.uint32();
320
- break;
321
- case /* optional int64 read_limit */ 20:
322
- message.readLimit = reader.int64().toBigInt();
323
- break;
324
- default:
325
- let u = options.readUnknownField;
326
- if (u === "throw")
327
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
328
- let d = reader.skip(wireType);
329
- if (u !== false)
330
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
331
- }
332
- }
333
- return message;
334
- }
335
- internalBinaryWrite(message: StreamingAPI_StreamBinary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
336
- /* uint64 resource_id = 1; */
337
- if (message.resourceId !== 0n)
338
- writer.tag(1, WireType.Varint).uint64(message.resourceId);
339
- /* int64 offset = 2; */
340
- if (message.offset !== 0n)
341
- writer.tag(2, WireType.Varint).int64(message.offset);
342
- /* optional uint32 chunk_size = 11; */
343
- if (message.chunkSize !== undefined)
344
- writer.tag(11, WireType.Varint).uint32(message.chunkSize);
345
- /* optional int64 read_limit = 20; */
346
- if (message.readLimit !== undefined)
347
- writer.tag(20, WireType.Varint).int64(message.readLimit);
348
- let u = options.writeUnknownFields;
349
- if (u !== false)
350
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
351
- return writer;
294
+ constructor() {
295
+ super('MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary', [
296
+ { no: 1, name: 'resource_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
297
+ { no: 2, name: 'offset', kind: 'scalar', T: 3 /* ScalarType.INT64 */, L: 0 /* LongType.BIGINT */ },
298
+ { no: 11, name: 'chunk_size', kind: 'scalar', opt: true, T: 13 /* ScalarType.UINT32 */ },
299
+ { no: 20, name: 'read_limit', kind: 'scalar', opt: true, T: 3 /* ScalarType.INT64 */, L: 0 /* LongType.BIGINT */ },
300
+ ]);
301
+ }
302
+
303
+ create(value?: PartialMessage<StreamingAPI_StreamBinary>): StreamingAPI_StreamBinary {
304
+ const message = globalThis.Object.create((this.messagePrototype!));
305
+ message.resourceId = 0n;
306
+ message.offset = 0n;
307
+ if (value !== undefined)
308
+ reflectionMergePartial<StreamingAPI_StreamBinary>(this, message, value);
309
+ return message;
310
+ }
311
+
312
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_StreamBinary): StreamingAPI_StreamBinary {
313
+ const message = target ?? this.create(), end = reader.pos + length;
314
+ while (reader.pos < end) {
315
+ const [fieldNo, wireType] = reader.tag();
316
+ switch (fieldNo) {
317
+ case /* uint64 resource_id */ 1:
318
+ message.resourceId = reader.uint64().toBigInt();
319
+ break;
320
+ case /* int64 offset */ 2:
321
+ message.offset = reader.int64().toBigInt();
322
+ break;
323
+ case /* optional uint32 chunk_size */ 11:
324
+ message.chunkSize = reader.uint32();
325
+ break;
326
+ case /* optional int64 read_limit */ 20:
327
+ message.readLimit = reader.int64().toBigInt();
328
+ break;
329
+ default:
330
+ const u = options.readUnknownField;
331
+ if (u === 'throw')
332
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
333
+ const d = reader.skip(wireType);
334
+ if (u !== false)
335
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
336
+ }
352
337
  }
338
+ return message;
339
+ }
340
+
341
+ internalBinaryWrite(message: StreamingAPI_StreamBinary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
342
+ /* uint64 resource_id = 1; */
343
+ if (message.resourceId !== 0n)
344
+ writer.tag(1, WireType.Varint).uint64(message.resourceId);
345
+ /* int64 offset = 2; */
346
+ if (message.offset !== 0n)
347
+ writer.tag(2, WireType.Varint).int64(message.offset);
348
+ /* optional uint32 chunk_size = 11; */
349
+ if (message.chunkSize !== undefined)
350
+ writer.tag(11, WireType.Varint).uint32(message.chunkSize);
351
+ /* optional int64 read_limit = 20; */
352
+ if (message.readLimit !== undefined)
353
+ writer.tag(20, WireType.Varint).int64(message.readLimit);
354
+ const u = options.writeUnknownFields;
355
+ if (u !== false)
356
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
357
+ return writer;
358
+ }
353
359
  }
354
360
  /**
355
361
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary
@@ -357,61 +363,64 @@ class StreamingAPI_StreamBinary$Type extends MessageType<StreamingAPI_StreamBina
357
363
  export const StreamingAPI_StreamBinary = new StreamingAPI_StreamBinary$Type();
358
364
  // @generated message type with reflection information, may provide speed optimized methods
359
365
  class StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_ReadBinary> {
360
- constructor() {
361
- super("MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary", [
362
- { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
363
- { no: 2, name: "offset", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
364
- { no: 11, name: "chunk_size", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ }
365
- ]);
366
- }
367
- create(value?: PartialMessage<StreamingAPI_ReadBinary>): StreamingAPI_ReadBinary {
368
- const message = globalThis.Object.create((this.messagePrototype!));
369
- message.resourceId = 0n;
370
- message.offset = 0n;
371
- if (value !== undefined)
372
- reflectionMergePartial<StreamingAPI_ReadBinary>(this, message, value);
373
- return message;
374
- }
375
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_ReadBinary): StreamingAPI_ReadBinary {
376
- let message = target ?? this.create(), end = reader.pos + length;
377
- while (reader.pos < end) {
378
- let [fieldNo, wireType] = reader.tag();
379
- switch (fieldNo) {
380
- case /* uint64 resource_id */ 1:
381
- message.resourceId = reader.uint64().toBigInt();
382
- break;
383
- case /* int64 offset */ 2:
384
- message.offset = reader.int64().toBigInt();
385
- break;
386
- case /* optional uint32 chunk_size */ 11:
387
- message.chunkSize = reader.uint32();
388
- break;
389
- default:
390
- let u = options.readUnknownField;
391
- if (u === "throw")
392
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
393
- let d = reader.skip(wireType);
394
- if (u !== false)
395
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
396
- }
397
- }
398
- return message;
399
- }
400
- internalBinaryWrite(message: StreamingAPI_ReadBinary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
401
- /* uint64 resource_id = 1; */
402
- if (message.resourceId !== 0n)
403
- writer.tag(1, WireType.Varint).uint64(message.resourceId);
404
- /* int64 offset = 2; */
405
- if (message.offset !== 0n)
406
- writer.tag(2, WireType.Varint).int64(message.offset);
407
- /* optional uint32 chunk_size = 11; */
408
- if (message.chunkSize !== undefined)
409
- writer.tag(11, WireType.Varint).uint32(message.chunkSize);
410
- let u = options.writeUnknownFields;
411
- if (u !== false)
412
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
413
- return writer;
366
+ constructor() {
367
+ super('MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary', [
368
+ { no: 1, name: 'resource_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
369
+ { no: 2, name: 'offset', kind: 'scalar', T: 3 /* ScalarType.INT64 */, L: 0 /* LongType.BIGINT */ },
370
+ { no: 11, name: 'chunk_size', kind: 'scalar', opt: true, T: 13 /* ScalarType.UINT32 */ },
371
+ ]);
372
+ }
373
+
374
+ create(value?: PartialMessage<StreamingAPI_ReadBinary>): StreamingAPI_ReadBinary {
375
+ const message = globalThis.Object.create((this.messagePrototype!));
376
+ message.resourceId = 0n;
377
+ message.offset = 0n;
378
+ if (value !== undefined)
379
+ reflectionMergePartial<StreamingAPI_ReadBinary>(this, message, value);
380
+ return message;
381
+ }
382
+
383
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_ReadBinary): StreamingAPI_ReadBinary {
384
+ const message = target ?? this.create(), end = reader.pos + length;
385
+ while (reader.pos < end) {
386
+ const [fieldNo, wireType] = reader.tag();
387
+ switch (fieldNo) {
388
+ case /* uint64 resource_id */ 1:
389
+ message.resourceId = reader.uint64().toBigInt();
390
+ break;
391
+ case /* int64 offset */ 2:
392
+ message.offset = reader.int64().toBigInt();
393
+ break;
394
+ case /* optional uint32 chunk_size */ 11:
395
+ message.chunkSize = reader.uint32();
396
+ break;
397
+ default:
398
+ const u = options.readUnknownField;
399
+ if (u === 'throw')
400
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
401
+ const d = reader.skip(wireType);
402
+ if (u !== false)
403
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
404
+ }
414
405
  }
406
+ return message;
407
+ }
408
+
409
+ internalBinaryWrite(message: StreamingAPI_ReadBinary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
410
+ /* uint64 resource_id = 1; */
411
+ if (message.resourceId !== 0n)
412
+ writer.tag(1, WireType.Varint).uint64(message.resourceId);
413
+ /* int64 offset = 2; */
414
+ if (message.offset !== 0n)
415
+ writer.tag(2, WireType.Varint).int64(message.offset);
416
+ /* optional uint32 chunk_size = 11; */
417
+ if (message.chunkSize !== undefined)
418
+ writer.tag(11, WireType.Varint).uint32(message.chunkSize);
419
+ const u = options.writeUnknownFields;
420
+ if (u !== false)
421
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
422
+ return writer;
423
+ }
415
424
  }
416
425
  /**
417
426
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary
@@ -419,75 +428,78 @@ class StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_ReadBinary>
419
428
  export const StreamingAPI_ReadBinary = new StreamingAPI_ReadBinary$Type();
420
429
  // @generated message type with reflection information, may provide speed optimized methods
421
430
  class StreamingAPI_StreamText$Type extends MessageType<StreamingAPI_StreamText> {
422
- constructor() {
423
- super("MiLaboratories.Controller.Shared.StreamingAPI.StreamText", [
424
- { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
425
- { no: 2, name: "offset", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
426
- { no: 20, name: "read_limit", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
427
- { no: 21, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
428
- { no: 22, name: "search_re", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
429
- ]);
430
- }
431
- create(value?: PartialMessage<StreamingAPI_StreamText>): StreamingAPI_StreamText {
432
- const message = globalThis.Object.create((this.messagePrototype!));
433
- message.resourceId = 0n;
434
- message.offset = 0n;
435
- if (value !== undefined)
436
- reflectionMergePartial<StreamingAPI_StreamText>(this, message, value);
437
- return message;
438
- }
439
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_StreamText): StreamingAPI_StreamText {
440
- let message = target ?? this.create(), end = reader.pos + length;
441
- while (reader.pos < end) {
442
- let [fieldNo, wireType] = reader.tag();
443
- switch (fieldNo) {
444
- case /* uint64 resource_id */ 1:
445
- message.resourceId = reader.uint64().toBigInt();
446
- break;
447
- case /* int64 offset */ 2:
448
- message.offset = reader.int64().toBigInt();
449
- break;
450
- case /* optional int64 read_limit */ 20:
451
- message.readLimit = reader.int64().toBigInt();
452
- break;
453
- case /* optional string search */ 21:
454
- message.search = reader.string();
455
- break;
456
- case /* optional string search_re */ 22:
457
- message.searchRe = reader.string();
458
- break;
459
- default:
460
- let u = options.readUnknownField;
461
- if (u === "throw")
462
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
463
- let d = reader.skip(wireType);
464
- if (u !== false)
465
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
466
- }
467
- }
468
- return message;
469
- }
470
- internalBinaryWrite(message: StreamingAPI_StreamText, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
471
- /* uint64 resource_id = 1; */
472
- if (message.resourceId !== 0n)
473
- writer.tag(1, WireType.Varint).uint64(message.resourceId);
474
- /* int64 offset = 2; */
475
- if (message.offset !== 0n)
476
- writer.tag(2, WireType.Varint).int64(message.offset);
477
- /* optional int64 read_limit = 20; */
478
- if (message.readLimit !== undefined)
479
- writer.tag(20, WireType.Varint).int64(message.readLimit);
480
- /* optional string search = 21; */
481
- if (message.search !== undefined)
482
- writer.tag(21, WireType.LengthDelimited).string(message.search);
483
- /* optional string search_re = 22; */
484
- if (message.searchRe !== undefined)
485
- writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
486
- let u = options.writeUnknownFields;
487
- if (u !== false)
488
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
489
- return writer;
431
+ constructor() {
432
+ super('MiLaboratories.Controller.Shared.StreamingAPI.StreamText', [
433
+ { no: 1, name: 'resource_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
434
+ { no: 2, name: 'offset', kind: 'scalar', T: 3 /* ScalarType.INT64 */, L: 0 /* LongType.BIGINT */ },
435
+ { no: 20, name: 'read_limit', kind: 'scalar', opt: true, T: 3 /* ScalarType.INT64 */, L: 0 /* LongType.BIGINT */ },
436
+ { no: 21, name: 'search', kind: 'scalar', opt: true, T: 9 /* ScalarType.STRING */ },
437
+ { no: 22, name: 'search_re', kind: 'scalar', opt: true, T: 9 /* ScalarType.STRING */ },
438
+ ]);
439
+ }
440
+
441
+ create(value?: PartialMessage<StreamingAPI_StreamText>): StreamingAPI_StreamText {
442
+ const message = globalThis.Object.create((this.messagePrototype!));
443
+ message.resourceId = 0n;
444
+ message.offset = 0n;
445
+ if (value !== undefined)
446
+ reflectionMergePartial<StreamingAPI_StreamText>(this, message, value);
447
+ return message;
448
+ }
449
+
450
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_StreamText): StreamingAPI_StreamText {
451
+ const message = target ?? this.create(), end = reader.pos + length;
452
+ while (reader.pos < end) {
453
+ const [fieldNo, wireType] = reader.tag();
454
+ switch (fieldNo) {
455
+ case /* uint64 resource_id */ 1:
456
+ message.resourceId = reader.uint64().toBigInt();
457
+ break;
458
+ case /* int64 offset */ 2:
459
+ message.offset = reader.int64().toBigInt();
460
+ break;
461
+ case /* optional int64 read_limit */ 20:
462
+ message.readLimit = reader.int64().toBigInt();
463
+ break;
464
+ case /* optional string search */ 21:
465
+ message.search = reader.string();
466
+ break;
467
+ case /* optional string search_re */ 22:
468
+ message.searchRe = reader.string();
469
+ break;
470
+ default:
471
+ const u = options.readUnknownField;
472
+ if (u === 'throw')
473
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
474
+ const d = reader.skip(wireType);
475
+ if (u !== false)
476
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
477
+ }
490
478
  }
479
+ return message;
480
+ }
481
+
482
+ internalBinaryWrite(message: StreamingAPI_StreamText, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
483
+ /* uint64 resource_id = 1; */
484
+ if (message.resourceId !== 0n)
485
+ writer.tag(1, WireType.Varint).uint64(message.resourceId);
486
+ /* int64 offset = 2; */
487
+ if (message.offset !== 0n)
488
+ writer.tag(2, WireType.Varint).int64(message.offset);
489
+ /* optional int64 read_limit = 20; */
490
+ if (message.readLimit !== undefined)
491
+ writer.tag(20, WireType.Varint).int64(message.readLimit);
492
+ /* optional string search = 21; */
493
+ if (message.search !== undefined)
494
+ writer.tag(21, WireType.LengthDelimited).string(message.search);
495
+ /* optional string search_re = 22; */
496
+ if (message.searchRe !== undefined)
497
+ writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
498
+ const u = options.writeUnknownFields;
499
+ if (u !== false)
500
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
501
+ return writer;
502
+ }
491
503
  }
492
504
  /**
493
505
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamText
@@ -495,75 +507,78 @@ class StreamingAPI_StreamText$Type extends MessageType<StreamingAPI_StreamText>
495
507
  export const StreamingAPI_StreamText = new StreamingAPI_StreamText$Type();
496
508
  // @generated message type with reflection information, may provide speed optimized methods
497
509
  class StreamingAPI_ReadText$Type extends MessageType<StreamingAPI_ReadText> {
498
- constructor() {
499
- super("MiLaboratories.Controller.Shared.StreamingAPI.ReadText", [
500
- { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
501
- { no: 2, name: "offset", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
502
- { no: 20, name: "read_limit", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
503
- { no: 21, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
504
- { no: 22, name: "search_re", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
505
- ]);
506
- }
507
- create(value?: PartialMessage<StreamingAPI_ReadText>): StreamingAPI_ReadText {
508
- const message = globalThis.Object.create((this.messagePrototype!));
509
- message.resourceId = 0n;
510
- message.offset = 0n;
511
- if (value !== undefined)
512
- reflectionMergePartial<StreamingAPI_ReadText>(this, message, value);
513
- return message;
514
- }
515
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_ReadText): StreamingAPI_ReadText {
516
- let message = target ?? this.create(), end = reader.pos + length;
517
- while (reader.pos < end) {
518
- let [fieldNo, wireType] = reader.tag();
519
- switch (fieldNo) {
520
- case /* uint64 resource_id */ 1:
521
- message.resourceId = reader.uint64().toBigInt();
522
- break;
523
- case /* int64 offset */ 2:
524
- message.offset = reader.int64().toBigInt();
525
- break;
526
- case /* optional int64 read_limit */ 20:
527
- message.readLimit = reader.int64().toBigInt();
528
- break;
529
- case /* optional string search */ 21:
530
- message.search = reader.string();
531
- break;
532
- case /* optional string search_re */ 22:
533
- message.searchRe = reader.string();
534
- break;
535
- default:
536
- let u = options.readUnknownField;
537
- if (u === "throw")
538
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
539
- let d = reader.skip(wireType);
540
- if (u !== false)
541
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
542
- }
543
- }
544
- return message;
545
- }
546
- internalBinaryWrite(message: StreamingAPI_ReadText, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
547
- /* uint64 resource_id = 1; */
548
- if (message.resourceId !== 0n)
549
- writer.tag(1, WireType.Varint).uint64(message.resourceId);
550
- /* int64 offset = 2; */
551
- if (message.offset !== 0n)
552
- writer.tag(2, WireType.Varint).int64(message.offset);
553
- /* optional int64 read_limit = 20; */
554
- if (message.readLimit !== undefined)
555
- writer.tag(20, WireType.Varint).int64(message.readLimit);
556
- /* optional string search = 21; */
557
- if (message.search !== undefined)
558
- writer.tag(21, WireType.LengthDelimited).string(message.search);
559
- /* optional string search_re = 22; */
560
- if (message.searchRe !== undefined)
561
- writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
562
- let u = options.writeUnknownFields;
563
- if (u !== false)
564
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
565
- return writer;
510
+ constructor() {
511
+ super('MiLaboratories.Controller.Shared.StreamingAPI.ReadText', [
512
+ { no: 1, name: 'resource_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
513
+ { no: 2, name: 'offset', kind: 'scalar', T: 3 /* ScalarType.INT64 */, L: 0 /* LongType.BIGINT */ },
514
+ { no: 20, name: 'read_limit', kind: 'scalar', opt: true, T: 3 /* ScalarType.INT64 */, L: 0 /* LongType.BIGINT */ },
515
+ { no: 21, name: 'search', kind: 'scalar', opt: true, T: 9 /* ScalarType.STRING */ },
516
+ { no: 22, name: 'search_re', kind: 'scalar', opt: true, T: 9 /* ScalarType.STRING */ },
517
+ ]);
518
+ }
519
+
520
+ create(value?: PartialMessage<StreamingAPI_ReadText>): StreamingAPI_ReadText {
521
+ const message = globalThis.Object.create((this.messagePrototype!));
522
+ message.resourceId = 0n;
523
+ message.offset = 0n;
524
+ if (value !== undefined)
525
+ reflectionMergePartial<StreamingAPI_ReadText>(this, message, value);
526
+ return message;
527
+ }
528
+
529
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_ReadText): StreamingAPI_ReadText {
530
+ const message = target ?? this.create(), end = reader.pos + length;
531
+ while (reader.pos < end) {
532
+ const [fieldNo, wireType] = reader.tag();
533
+ switch (fieldNo) {
534
+ case /* uint64 resource_id */ 1:
535
+ message.resourceId = reader.uint64().toBigInt();
536
+ break;
537
+ case /* int64 offset */ 2:
538
+ message.offset = reader.int64().toBigInt();
539
+ break;
540
+ case /* optional int64 read_limit */ 20:
541
+ message.readLimit = reader.int64().toBigInt();
542
+ break;
543
+ case /* optional string search */ 21:
544
+ message.search = reader.string();
545
+ break;
546
+ case /* optional string search_re */ 22:
547
+ message.searchRe = reader.string();
548
+ break;
549
+ default:
550
+ const u = options.readUnknownField;
551
+ if (u === 'throw')
552
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
553
+ const d = reader.skip(wireType);
554
+ if (u !== false)
555
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
556
+ }
566
557
  }
558
+ return message;
559
+ }
560
+
561
+ internalBinaryWrite(message: StreamingAPI_ReadText, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
562
+ /* uint64 resource_id = 1; */
563
+ if (message.resourceId !== 0n)
564
+ writer.tag(1, WireType.Varint).uint64(message.resourceId);
565
+ /* int64 offset = 2; */
566
+ if (message.offset !== 0n)
567
+ writer.tag(2, WireType.Varint).int64(message.offset);
568
+ /* optional int64 read_limit = 20; */
569
+ if (message.readLimit !== undefined)
570
+ writer.tag(20, WireType.Varint).int64(message.readLimit);
571
+ /* optional string search = 21; */
572
+ if (message.search !== undefined)
573
+ writer.tag(21, WireType.LengthDelimited).string(message.search);
574
+ /* optional string search_re = 22; */
575
+ if (message.searchRe !== undefined)
576
+ writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
577
+ const u = options.writeUnknownFields;
578
+ if (u !== false)
579
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
580
+ return writer;
581
+ }
567
582
  }
568
583
  /**
569
584
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText
@@ -571,74 +586,77 @@ class StreamingAPI_ReadText$Type extends MessageType<StreamingAPI_ReadText> {
571
586
  export const StreamingAPI_ReadText = new StreamingAPI_ReadText$Type();
572
587
  // @generated message type with reflection information, may provide speed optimized methods
573
588
  class StreamingAPI_LastLines$Type extends MessageType<StreamingAPI_LastLines> {
574
- constructor() {
575
- super("MiLaboratories.Controller.Shared.StreamingAPI.LastLines", [
576
- { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
577
- { no: 2, name: "offset", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
578
- { no: 3, name: "line_count", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
579
- { no: 21, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
580
- { no: 22, name: "search_re", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
581
- ]);
582
- }
583
- create(value?: PartialMessage<StreamingAPI_LastLines>): StreamingAPI_LastLines {
584
- const message = globalThis.Object.create((this.messagePrototype!));
585
- message.resourceId = 0n;
586
- if (value !== undefined)
587
- reflectionMergePartial<StreamingAPI_LastLines>(this, message, value);
588
- return message;
589
- }
590
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_LastLines): StreamingAPI_LastLines {
591
- let message = target ?? this.create(), end = reader.pos + length;
592
- while (reader.pos < end) {
593
- let [fieldNo, wireType] = reader.tag();
594
- switch (fieldNo) {
595
- case /* uint64 resource_id */ 1:
596
- message.resourceId = reader.uint64().toBigInt();
597
- break;
598
- case /* optional int64 offset */ 2:
599
- message.offset = reader.int64().toBigInt();
600
- break;
601
- case /* optional int32 line_count */ 3:
602
- message.lineCount = reader.int32();
603
- break;
604
- case /* optional string search */ 21:
605
- message.search = reader.string();
606
- break;
607
- case /* optional string search_re */ 22:
608
- message.searchRe = reader.string();
609
- break;
610
- default:
611
- let u = options.readUnknownField;
612
- if (u === "throw")
613
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
614
- let d = reader.skip(wireType);
615
- if (u !== false)
616
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
617
- }
618
- }
619
- return message;
620
- }
621
- internalBinaryWrite(message: StreamingAPI_LastLines, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
622
- /* uint64 resource_id = 1; */
623
- if (message.resourceId !== 0n)
624
- writer.tag(1, WireType.Varint).uint64(message.resourceId);
625
- /* optional int64 offset = 2; */
626
- if (message.offset !== undefined)
627
- writer.tag(2, WireType.Varint).int64(message.offset);
628
- /* optional int32 line_count = 3; */
629
- if (message.lineCount !== undefined)
630
- writer.tag(3, WireType.Varint).int32(message.lineCount);
631
- /* optional string search = 21; */
632
- if (message.search !== undefined)
633
- writer.tag(21, WireType.LengthDelimited).string(message.search);
634
- /* optional string search_re = 22; */
635
- if (message.searchRe !== undefined)
636
- writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
637
- let u = options.writeUnknownFields;
638
- if (u !== false)
639
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
640
- return writer;
589
+ constructor() {
590
+ super('MiLaboratories.Controller.Shared.StreamingAPI.LastLines', [
591
+ { no: 1, name: 'resource_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
592
+ { no: 2, name: 'offset', kind: 'scalar', opt: true, T: 3 /* ScalarType.INT64 */, L: 0 /* LongType.BIGINT */ },
593
+ { no: 3, name: 'line_count', kind: 'scalar', opt: true, T: 5 /* ScalarType.INT32 */ },
594
+ { no: 21, name: 'search', kind: 'scalar', opt: true, T: 9 /* ScalarType.STRING */ },
595
+ { no: 22, name: 'search_re', kind: 'scalar', opt: true, T: 9 /* ScalarType.STRING */ },
596
+ ]);
597
+ }
598
+
599
+ create(value?: PartialMessage<StreamingAPI_LastLines>): StreamingAPI_LastLines {
600
+ const message = globalThis.Object.create((this.messagePrototype!));
601
+ message.resourceId = 0n;
602
+ if (value !== undefined)
603
+ reflectionMergePartial<StreamingAPI_LastLines>(this, message, value);
604
+ return message;
605
+ }
606
+
607
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_LastLines): StreamingAPI_LastLines {
608
+ const message = target ?? this.create(), end = reader.pos + length;
609
+ while (reader.pos < end) {
610
+ const [fieldNo, wireType] = reader.tag();
611
+ switch (fieldNo) {
612
+ case /* uint64 resource_id */ 1:
613
+ message.resourceId = reader.uint64().toBigInt();
614
+ break;
615
+ case /* optional int64 offset */ 2:
616
+ message.offset = reader.int64().toBigInt();
617
+ break;
618
+ case /* optional int32 line_count */ 3:
619
+ message.lineCount = reader.int32();
620
+ break;
621
+ case /* optional string search */ 21:
622
+ message.search = reader.string();
623
+ break;
624
+ case /* optional string search_re */ 22:
625
+ message.searchRe = reader.string();
626
+ break;
627
+ default:
628
+ const u = options.readUnknownField;
629
+ if (u === 'throw')
630
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
631
+ const d = reader.skip(wireType);
632
+ if (u !== false)
633
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
634
+ }
641
635
  }
636
+ return message;
637
+ }
638
+
639
+ internalBinaryWrite(message: StreamingAPI_LastLines, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
640
+ /* uint64 resource_id = 1; */
641
+ if (message.resourceId !== 0n)
642
+ writer.tag(1, WireType.Varint).uint64(message.resourceId);
643
+ /* optional int64 offset = 2; */
644
+ if (message.offset !== undefined)
645
+ writer.tag(2, WireType.Varint).int64(message.offset);
646
+ /* optional int32 line_count = 3; */
647
+ if (message.lineCount !== undefined)
648
+ writer.tag(3, WireType.Varint).int32(message.lineCount);
649
+ /* optional string search = 21; */
650
+ if (message.search !== undefined)
651
+ writer.tag(21, WireType.LengthDelimited).string(message.search);
652
+ /* optional string search_re = 22; */
653
+ if (message.searchRe !== undefined)
654
+ writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
655
+ const u = options.writeUnknownFields;
656
+ if (u !== false)
657
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
658
+ return writer;
659
+ }
642
660
  }
643
661
  /**
644
662
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.LastLines
@@ -646,62 +664,65 @@ class StreamingAPI_LastLines$Type extends MessageType<StreamingAPI_LastLines> {
646
664
  export const StreamingAPI_LastLines = new StreamingAPI_LastLines$Type();
647
665
  // @generated message type with reflection information, may provide speed optimized methods
648
666
  class StreamingAPI_Response$Type extends MessageType<StreamingAPI_Response> {
649
- constructor() {
650
- super("MiLaboratories.Controller.Shared.StreamingAPI.Response", [
651
- { no: 1, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
652
- { no: 2, name: "size", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
653
- { no: 3, name: "new_offset", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
654
- ]);
655
- }
656
- create(value?: PartialMessage<StreamingAPI_Response>): StreamingAPI_Response {
657
- const message = globalThis.Object.create((this.messagePrototype!));
658
- message.data = new Uint8Array(0);
659
- message.size = 0n;
660
- message.newOffset = 0n;
661
- if (value !== undefined)
662
- reflectionMergePartial<StreamingAPI_Response>(this, message, value);
663
- return message;
664
- }
665
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_Response): StreamingAPI_Response {
666
- let message = target ?? this.create(), end = reader.pos + length;
667
- while (reader.pos < end) {
668
- let [fieldNo, wireType] = reader.tag();
669
- switch (fieldNo) {
670
- case /* bytes data */ 1:
671
- message.data = reader.bytes();
672
- break;
673
- case /* uint64 size */ 2:
674
- message.size = reader.uint64().toBigInt();
675
- break;
676
- case /* uint64 new_offset */ 3:
677
- message.newOffset = reader.uint64().toBigInt();
678
- break;
679
- default:
680
- let u = options.readUnknownField;
681
- if (u === "throw")
682
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
683
- let d = reader.skip(wireType);
684
- if (u !== false)
685
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
686
- }
687
- }
688
- return message;
689
- }
690
- internalBinaryWrite(message: StreamingAPI_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
691
- /* bytes data = 1; */
692
- if (message.data.length)
693
- writer.tag(1, WireType.LengthDelimited).bytes(message.data);
694
- /* uint64 size = 2; */
695
- if (message.size !== 0n)
696
- writer.tag(2, WireType.Varint).uint64(message.size);
697
- /* uint64 new_offset = 3; */
698
- if (message.newOffset !== 0n)
699
- writer.tag(3, WireType.Varint).uint64(message.newOffset);
700
- let u = options.writeUnknownFields;
701
- if (u !== false)
702
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
703
- return writer;
667
+ constructor() {
668
+ super('MiLaboratories.Controller.Shared.StreamingAPI.Response', [
669
+ { no: 1, name: 'data', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
670
+ { no: 2, name: 'size', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
671
+ { no: 3, name: 'new_offset', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
672
+ ]);
673
+ }
674
+
675
+ create(value?: PartialMessage<StreamingAPI_Response>): StreamingAPI_Response {
676
+ const message = globalThis.Object.create((this.messagePrototype!));
677
+ message.data = new Uint8Array(0);
678
+ message.size = 0n;
679
+ message.newOffset = 0n;
680
+ if (value !== undefined)
681
+ reflectionMergePartial<StreamingAPI_Response>(this, message, value);
682
+ return message;
683
+ }
684
+
685
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_Response): StreamingAPI_Response {
686
+ const message = target ?? this.create(), end = reader.pos + length;
687
+ while (reader.pos < end) {
688
+ const [fieldNo, wireType] = reader.tag();
689
+ switch (fieldNo) {
690
+ case /* bytes data */ 1:
691
+ message.data = reader.bytes();
692
+ break;
693
+ case /* uint64 size */ 2:
694
+ message.size = reader.uint64().toBigInt();
695
+ break;
696
+ case /* uint64 new_offset */ 3:
697
+ message.newOffset = reader.uint64().toBigInt();
698
+ break;
699
+ default:
700
+ const u = options.readUnknownField;
701
+ if (u === 'throw')
702
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
703
+ const d = reader.skip(wireType);
704
+ if (u !== false)
705
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
706
+ }
704
707
  }
708
+ return message;
709
+ }
710
+
711
+ internalBinaryWrite(message: StreamingAPI_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
712
+ /* bytes data = 1; */
713
+ if (message.data.length)
714
+ writer.tag(1, WireType.LengthDelimited).bytes(message.data);
715
+ /* uint64 size = 2; */
716
+ if (message.size !== 0n)
717
+ writer.tag(2, WireType.Varint).uint64(message.size);
718
+ /* uint64 new_offset = 3; */
719
+ if (message.newOffset !== 0n)
720
+ writer.tag(3, WireType.Varint).uint64(message.newOffset);
721
+ const u = options.writeUnknownFields;
722
+ if (u !== false)
723
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
724
+ return writer;
725
+ }
705
726
  }
706
727
  /**
707
728
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.Response
@@ -710,10 +731,10 @@ export const StreamingAPI_Response = new StreamingAPI_Response$Type();
710
731
  /**
711
732
  * @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Streaming
712
733
  */
713
- export const Streaming = new ServiceType("MiLaboratories.Controller.Shared.Streaming", [
714
- { name: "StreamBinary", serverStreaming: true, options: {}, I: StreamingAPI_StreamBinary, O: StreamingAPI_Response },
715
- { name: "ReadBinary", options: {}, I: StreamingAPI_ReadBinary, O: StreamingAPI_Response },
716
- { name: "StreamText", serverStreaming: true, options: {}, I: StreamingAPI_StreamText, O: StreamingAPI_Response },
717
- { name: "ReadText", options: {}, I: StreamingAPI_ReadText, O: StreamingAPI_Response },
718
- { name: "LastLines", options: {}, I: StreamingAPI_LastLines, O: StreamingAPI_Response }
734
+ export const Streaming = new ServiceType('MiLaboratories.Controller.Shared.Streaming', [
735
+ { name: 'StreamBinary', serverStreaming: true, options: {}, I: StreamingAPI_StreamBinary, O: StreamingAPI_Response },
736
+ { name: 'ReadBinary', options: {}, I: StreamingAPI_ReadBinary, O: StreamingAPI_Response },
737
+ { name: 'StreamText', serverStreaming: true, options: {}, I: StreamingAPI_StreamText, O: StreamingAPI_Response },
738
+ { name: 'ReadText', options: {}, I: StreamingAPI_ReadText, O: StreamingAPI_Response },
739
+ { name: 'LastLines', options: {}, I: StreamingAPI_LastLines, O: StreamingAPI_Response },
719
740
  ]);