@milaboratories/pl-drivers 1.6.4 → 1.6.6

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 (82) hide show
  1. package/dist/index.js +2 -2
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +2026 -2480
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +48 -0
  6. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -0
  7. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +2 -2
  8. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
  9. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +13 -5
  10. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
  11. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +2 -2
  12. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +1 -1
  13. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +11 -11
  14. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -1
  15. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +4 -4
  16. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
  17. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +10 -10
  18. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
  19. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +10 -10
  20. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -1
  21. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +25 -25
  22. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
  23. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts +8 -8
  24. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts.map +1 -1
  25. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts +24 -16
  26. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts.map +1 -1
  27. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +277 -0
  28. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -0
  29. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +5344 -0
  30. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -0
  31. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +530 -0
  32. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -0
  33. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +82 -0
  34. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -0
  35. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +91 -0
  36. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -0
  37. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +251 -0
  38. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -0
  39. package/dist/proto/google/api/http.d.ts +46 -42
  40. package/dist/proto/google/api/http.d.ts.map +1 -1
  41. package/dist/proto/google/protobuf/any.d.ts +172 -0
  42. package/dist/proto/google/protobuf/any.d.ts.map +1 -0
  43. package/dist/proto/google/protobuf/descriptor.d.ts +1003 -170
  44. package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
  45. package/dist/proto/google/protobuf/duration.d.ts +2 -3
  46. package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
  47. package/dist/proto/google/protobuf/empty.d.ts +27 -0
  48. package/dist/proto/google/protobuf/empty.d.ts.map +1 -0
  49. package/dist/proto/google/protobuf/struct.d.ts +179 -0
  50. package/dist/proto/google/protobuf/struct.d.ts.map +1 -0
  51. package/dist/proto/google/protobuf/timestamp.d.ts +3 -6
  52. package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
  53. package/dist/proto/google/protobuf/wrappers.d.ts +327 -0
  54. package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -0
  55. package/package.json +5 -5
  56. package/src/clients/download.ts +1 -1
  57. package/src/clients/upload.ts +1 -1
  58. package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +125 -0
  59. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +25 -40
  60. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +252 -396
  61. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +25 -37
  62. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +341 -453
  63. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +39 -65
  64. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +398 -630
  65. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +126 -194
  66. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +626 -964
  67. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.ts +102 -153
  68. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.ts +741 -1082
  69. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +406 -0
  70. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +14986 -0
  71. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1474 -0
  72. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +181 -0
  73. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +251 -0
  74. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +693 -0
  75. package/src/proto/google/api/http.ts +336 -492
  76. package/src/proto/google/protobuf/any.ts +326 -0
  77. package/src/proto/google/protobuf/descriptor.ts +4383 -4772
  78. package/src/proto/google/protobuf/duration.ts +122 -169
  79. package/src/proto/google/protobuf/empty.ts +94 -0
  80. package/src/proto/google/protobuf/struct.ts +484 -0
  81. package/src/proto/google/protobuf/timestamp.ts +150 -225
  82. package/src/proto/google/protobuf/wrappers.ts +785 -0
@@ -1,288 +1,286 @@
1
- // @generated by protobuf-ts 2.9.4 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
1
+ // @generated by protobuf-ts 2.11.0 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 { UnknownFieldHandler } from '@protobuf-ts/runtime';
9
- import type { BinaryReadOptions } from '@protobuf-ts/runtime';
10
- import type { IBinaryReader } 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
  */
17
- export interface StreamingAPI {}
17
+ export interface StreamingAPI {
18
+ }
18
19
  /**
19
20
  * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary
20
21
  */
21
22
  export interface StreamingAPI_StreamBinary {
22
- /**
23
- * <resource_id> of Stream resource, that keeps info on item to be streamed.
24
- *
25
- * @generated from protobuf field: uint64 resource_id = 1;
26
- */
27
- resourceId: bigint;
28
- /**
29
- * <offset> makes streamer to perform seek operation to given offset before sending the data.
30
- *
31
- * @generated from protobuf field: int64 offset = 2;
32
- */
33
- offset: bigint;
34
- /**
35
- * <chunk_size> limits the maximum size of <data> for each response message in stream.
36
- *
37
- * Default value: 32 768 (32 KiB)
38
- * Max value: 3900 * 1024 (3.9 MiB)
39
- *
40
- * @generated from protobuf field: optional uint32 chunk_size = 11;
41
- */
42
- chunkSize?: number;
43
- /**
44
- * <read_limit> allows client to limit total data sent from server.
45
- * This limit is aggregation of all data, sent in all chunks.
46
- * E.g. to read 2000 bytes of data in chunks of at most
47
- * 130 bytes, use <chunk_size> = 130; <read_limit> = 2000.
48
- * For storage item of appropriate size this settings will result in
49
- * 16 messages from server: 15 of 130 bytes and one of 50 bytes.
50
- *
51
- * @generated from protobuf field: optional int64 read_limit = 20;
52
- */
53
- readLimit?: bigint;
23
+ /**
24
+ * <resource_id> of Stream resource, that keeps info on item to be streamed.
25
+ *
26
+ * @generated from protobuf field: uint64 resource_id = 1
27
+ */
28
+ resourceId: bigint;
29
+ /**
30
+ * <offset> makes streamer to perform seek operation to given offset before sending the data.
31
+ *
32
+ * @generated from protobuf field: int64 offset = 2
33
+ */
34
+ offset: bigint;
35
+ /**
36
+ * <chunk_size> limits the maximum size of <data> for each response message in stream.
37
+ *
38
+ * Default value: 32 768 (32 KiB)
39
+ * Max value: 3900 * 1024 (3.9 MiB)
40
+ *
41
+ * @generated from protobuf field: optional uint32 chunk_size = 11
42
+ */
43
+ chunkSize?: number;
44
+ /**
45
+ * <read_limit> allows client to limit total data sent from server.
46
+ * This limit is aggregation of all data, sent in all chunks.
47
+ * E.g. to read 2000 bytes of data in chunks of at most
48
+ * 130 bytes, use <chunk_size> = 130; <read_limit> = 2000.
49
+ * For storage item of appropriate size this settings will result in
50
+ * 16 messages from server: 15 of 130 bytes and one of 50 bytes.
51
+ *
52
+ * @generated from protobuf field: optional int64 read_limit = 20
53
+ */
54
+ readLimit?: bigint;
54
55
  }
55
56
  /**
56
57
  * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary
57
58
  */
58
59
  export interface StreamingAPI_ReadBinary {
59
- /**
60
- * <resource_id> of Stream resource, that keeps info on item to be streamed.
61
- *
62
- * @generated from protobuf field: uint64 resource_id = 1;
63
- */
64
- resourceId: bigint;
65
- /**
66
- * <offset> makes streamer to perform seek operation to given offset before sending the data.
67
- *
68
- * @generated from protobuf field: int64 offset = 2;
69
- */
70
- offset: bigint;
71
- /**
72
- * <chunk_size> limits the maximum size of <data> for response message in stream.
73
- *
74
- * Default value: 32 768 (32 KiB)
75
- * Max value: 3900 * 1024 (3.9 MiB)
76
- *
77
- * @generated from protobuf field: optional uint32 chunk_size = 11;
78
- */
79
- chunkSize?: number;
60
+ /**
61
+ * <resource_id> of Stream resource, that keeps info on item to be streamed.
62
+ *
63
+ * @generated from protobuf field: uint64 resource_id = 1
64
+ */
65
+ resourceId: bigint;
66
+ /**
67
+ * <offset> makes streamer to perform seek operation to given offset before sending the data.
68
+ *
69
+ * @generated from protobuf field: int64 offset = 2
70
+ */
71
+ offset: bigint;
72
+ /**
73
+ * <chunk_size> limits the maximum size of <data> for response message in stream.
74
+ *
75
+ * Default value: 32 768 (32 KiB)
76
+ * Max value: 3900 * 1024 (3.9 MiB)
77
+ *
78
+ * @generated from protobuf field: optional uint32 chunk_size = 11
79
+ */
80
+ chunkSize?: number;
80
81
  }
81
82
  /**
82
83
  * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamText
83
84
  */
84
85
  export interface StreamingAPI_StreamText {
85
- /**
86
- * <resource_id> of Stream resource, that keeps info on item to be streamed.
87
- *
88
- * @generated from protobuf field: uint64 resource_id = 1;
89
- */
90
- resourceId: bigint;
91
- /**
92
- * <offset> makes streamer to perform seek operation to given offset before sending the contents.
93
- * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
94
- * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
95
- *
96
- * @generated from protobuf field: int64 offset = 2;
97
- */
98
- offset: bigint;
99
- /**
100
- * <read_limit> allows client to limit total data sent from server.
101
- * This limit is aggregation of all data, sent in all chunks, measured
102
- * in lines of text.
103
- * E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.
104
- * When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.
105
- * this is equivalent to 'head -n <read_limit> | grep <search>'.
106
- *
107
- * @generated from protobuf field: optional int64 read_limit = 20;
108
- */
109
- readLimit?: bigint;
110
- /**
111
- * <search> is substring for line search pattern.
112
- * This option makes controller to send to the client only lines, that
113
- * have given substring.
114
- *
115
- * @generated from protobuf field: optional string search = 21;
116
- */
117
- search?: string;
118
- /**
119
- * <search_re> is regular expression for line search pattern.
120
- * This option makes controller to send to the client only lines, that
121
- * match given regular expression.
122
- *
123
- * @generated from protobuf field: optional string search_re = 22;
124
- */
125
- searchRe?: string;
86
+ /**
87
+ * <resource_id> of Stream resource, that keeps info on item to be streamed.
88
+ *
89
+ * @generated from protobuf field: uint64 resource_id = 1
90
+ */
91
+ resourceId: bigint;
92
+ /**
93
+ * <offset> makes streamer to perform seek operation to given offset before sending the contents.
94
+ * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
95
+ * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
96
+ *
97
+ * @generated from protobuf field: int64 offset = 2
98
+ */
99
+ offset: bigint;
100
+ /**
101
+ * <read_limit> allows client to limit total data sent from server.
102
+ * This limit is aggregation of all data, sent in all chunks, measured
103
+ * in lines of text.
104
+ * E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.
105
+ * When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.
106
+ * this is equivalent to 'head -n <read_limit> | grep <search>'.
107
+ *
108
+ * @generated from protobuf field: optional int64 read_limit = 20
109
+ */
110
+ readLimit?: bigint;
111
+ /**
112
+ * <search> is substring for line search pattern.
113
+ * This option makes controller to send to the client only lines, that
114
+ * have given substring.
115
+ *
116
+ * @generated from protobuf field: optional string search = 21
117
+ */
118
+ search?: string;
119
+ /**
120
+ * <search_re> is regular expression for line search pattern.
121
+ * This option makes controller to send to the client only lines, that
122
+ * match given regular expression.
123
+ *
124
+ * @generated from protobuf field: optional string search_re = 22
125
+ */
126
+ searchRe?: string;
126
127
  }
127
128
  /**
128
129
  * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText
129
130
  */
130
131
  export interface StreamingAPI_ReadText {
131
- /**
132
- * <resource_id> of Stream resource, that keeps info on item to be streamed.
133
- *
134
- * @generated from protobuf field: uint64 resource_id = 1;
135
- */
136
- resourceId: bigint;
137
- /**
138
- * <offset> makes streamer to perform seek operation to given offset before sending the contents.
139
- * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
140
- * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
141
- *
142
- * @generated from protobuf field: int64 offset = 2;
143
- */
144
- offset: bigint;
145
- /**
146
- * <read_limit> allows client to limit total data sent from server.
147
- * Measured in lines of text.
148
- * E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.
149
- * When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.
150
- * this is equivalent to 'head -n <read_limit> | grep <search>'.
151
- * At most 3.9 MiB (3900 * 1024 KiB) of data is returned in single read regardless of <read_limit> option
152
- * Only full lines of text are returned except for the last line from the completed source
153
- * (the one that is not expected to have new data, like blob in storage)
154
- *
155
- * @generated from protobuf field: optional int64 read_limit = 20;
156
- */
157
- readLimit?: bigint;
158
- /**
159
- * <search> is substring for line search pattern.
160
- * This option makes controller to send to the client only lines, that
161
- * have given substring.
162
- *
163
- * @generated from protobuf field: optional string search = 21;
164
- */
165
- search?: string;
166
- /**
167
- * <search_re> is regular expression for line search pattern.
168
- * This option makes controller to send to the client only lines, that
169
- * match given regular expression.
170
- *
171
- * @generated from protobuf field: optional string search_re = 22;
172
- */
173
- searchRe?: string;
132
+ /**
133
+ * <resource_id> of Stream resource, that keeps info on item to be streamed.
134
+ *
135
+ * @generated from protobuf field: uint64 resource_id = 1
136
+ */
137
+ resourceId: bigint;
138
+ /**
139
+ * <offset> makes streamer to perform seek operation to given offset before sending the contents.
140
+ * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
141
+ * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
142
+ *
143
+ * @generated from protobuf field: int64 offset = 2
144
+ */
145
+ offset: bigint;
146
+ /**
147
+ * <read_limit> allows client to limit total data sent from server.
148
+ * Measured in lines of text.
149
+ * E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.
150
+ * When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.
151
+ * this is equivalent to 'head -n <read_limit> | grep <search>'.
152
+ * At most 3.9 MiB (3900 * 1024 KiB) of data is returned in single read regardless of <read_limit> option
153
+ * Only full lines of text are returned except for the last line from the completed source
154
+ * (the one that is not expected to have new data, like blob in storage)
155
+ *
156
+ * @generated from protobuf field: optional int64 read_limit = 20
157
+ */
158
+ readLimit?: bigint;
159
+ /**
160
+ * <search> is substring for line search pattern.
161
+ * This option makes controller to send to the client only lines, that
162
+ * have given substring.
163
+ *
164
+ * @generated from protobuf field: optional string search = 21
165
+ */
166
+ search?: string;
167
+ /**
168
+ * <search_re> is regular expression for line search pattern.
169
+ * This option makes controller to send to the client only lines, that
170
+ * match given regular expression.
171
+ *
172
+ * @generated from protobuf field: optional string search_re = 22
173
+ */
174
+ searchRe?: string;
174
175
  }
175
176
  /**
176
177
  * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.LastLines
177
178
  */
178
179
  export interface StreamingAPI_LastLines {
179
- /**
180
- * <resource_id> of Stream resource, that keeps info on item to be streamed.
181
- *
182
- * @generated from protobuf field: uint64 resource_id = 1;
183
- */
184
- resourceId: bigint;
185
- /**
186
- * <offset> makes streamer to perform seek operation to given offset before sending the contents.
187
- * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
188
- * By default, LastLines starts to treat the data source from the very last byte available in data stream
189
- * at the moment of call, but client can set the server to start from earlier position.
190
- *
191
- * @generated from protobuf field: optional int64 offset = 2;
192
- */
193
- offset?: bigint;
194
- /**
195
- * <line_count> makes streamer to return up to <line_count> lines to the client.
196
- * Default value: 1
197
- *
198
- * @generated from protobuf field: optional int32 line_count = 3;
199
- */
200
- lineCount?: number;
201
- /**
202
- * <search> is substring for line search pattern.
203
- * This option makes controller to send to the client only lines, that
204
- * have given substring.
205
- *
206
- * @generated from protobuf field: optional string search = 21;
207
- */
208
- search?: string;
209
- /**
210
- * <search_re> is regular expression for line search pattern.
211
- * This option makes controller to send to the client only lines, that
212
- * match given regular expression.
213
- *
214
- * @generated from protobuf field: optional string search_re = 22;
215
- */
216
- searchRe?: string;
180
+ /**
181
+ * <resource_id> of Stream resource, that keeps info on item to be streamed.
182
+ *
183
+ * @generated from protobuf field: uint64 resource_id = 1
184
+ */
185
+ resourceId: bigint;
186
+ /**
187
+ * <offset> makes streamer to perform seek operation to given offset before sending the contents.
188
+ * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
189
+ * By default, LastLines starts to treat the data source from the very last byte available in data stream
190
+ * at the moment of call, but client can set the server to start from earlier position.
191
+ *
192
+ * @generated from protobuf field: optional int64 offset = 2
193
+ */
194
+ offset?: bigint;
195
+ /**
196
+ * <line_count> makes streamer to return up to <line_count> lines to the client.
197
+ * Default value: 1
198
+ *
199
+ * @generated from protobuf field: optional int32 line_count = 3
200
+ */
201
+ lineCount?: number;
202
+ /**
203
+ * <search> is substring for line search pattern.
204
+ * This option makes controller to send to the client only lines, that
205
+ * have given substring.
206
+ *
207
+ * @generated from protobuf field: optional string search = 21
208
+ */
209
+ search?: string;
210
+ /**
211
+ * <search_re> is regular expression for line search pattern.
212
+ * This option makes controller to send to the client only lines, that
213
+ * match given regular expression.
214
+ *
215
+ * @generated from protobuf field: optional string search_re = 22
216
+ */
217
+ searchRe?: string;
217
218
  }
218
219
  /**
219
220
  * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.Response
220
221
  */
221
222
  export interface StreamingAPI_Response {
222
- /**
223
- * data chunk from item, starting from the <new_offset> of the previous message in the same stream.
224
- *
225
- * @generated from protobuf field: bytes data = 1;
226
- */
227
- data: Uint8Array;
228
- /**
229
- * <size> is the actual size of the streamed item at the moment of this message.
230
- * This might be not a final amount of streamed data, as stream source can be updated
231
- * by other independent process (e.g., data is written to log file).
232
- * This field in combination with <new_offset> shows, how far the client is from the end
233
- * of the data right now.
234
- *
235
- * @generated from protobuf field: uint64 size = 2;
236
- */
237
- size: bigint;
238
- /**
239
- * <new_offset> is the new offset in bytes from the start of the streamed item,
240
- * including size of <data> in current response.
241
- * Call to Stream rpc with <offset> = <new_offset> will continue
242
- * streaming from the place of last received message
243
- * (e.g. <offset> = <new_offset> - 1 will repeat the last byte of
244
- * previously received <data>)
245
- *
246
- * @generated from protobuf field: uint64 new_offset = 3;
247
- */
248
- newOffset: bigint;
223
+ /**
224
+ * data chunk from item, starting from the <new_offset> of the previous message in the same stream.
225
+ *
226
+ * @generated from protobuf field: bytes data = 1
227
+ */
228
+ data: Uint8Array;
229
+ /**
230
+ * <size> is the actual size of the streamed item at the moment of this message.
231
+ * This might be not a final amount of streamed data, as stream source can be updated
232
+ * by other independent process (e.g., data is written to log file).
233
+ * This field in combination with <new_offset> shows, how far the client is from the end
234
+ * of the data right now.
235
+ *
236
+ * @generated from protobuf field: uint64 size = 2
237
+ */
238
+ size: bigint;
239
+ /**
240
+ * <new_offset> is the new offset in bytes from the start of the streamed item,
241
+ * including size of <data> in current response.
242
+ * Call to Stream rpc with <offset> = <new_offset> will continue
243
+ * streaming from the place of last received message
244
+ * (e.g. <offset> = <new_offset> - 1 will repeat the last byte of
245
+ * previously received <data>)
246
+ *
247
+ * @generated from protobuf field: uint64 new_offset = 3
248
+ */
249
+ newOffset: bigint;
249
250
  }
250
251
  // @generated message type with reflection information, may provide speed optimized methods
251
252
  class StreamingAPI$Type extends MessageType<StreamingAPI> {
252
- constructor() {
253
- super('MiLaboratories.Controller.Shared.StreamingAPI', []);
254
- }
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
-
263
- internalBinaryRead(
264
- reader: IBinaryReader,
265
- length: number,
266
- options: BinaryReadOptions,
267
- target?: StreamingAPI,
268
- ): StreamingAPI {
269
- return target ?? this.create();
270
- }
271
-
272
- internalBinaryWrite(
273
- message: StreamingAPI,
274
- writer: IBinaryWriter,
275
- options: BinaryWriteOptions,
276
- ): IBinaryWriter {
277
- const u = options.writeUnknownFields;
278
- if (u !== false)
279
- (u == true ? UnknownFieldHandler.onWrite : u)(
280
- this.typeName,
281
- message,
282
- writer,
283
- );
284
- return writer;
285
- }
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;
283
+ }
286
284
  }
287
285
  /**
288
286
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI
@@ -290,120 +288,68 @@ class StreamingAPI$Type extends MessageType<StreamingAPI> {
290
288
  export const StreamingAPI = new StreamingAPI$Type();
291
289
  // @generated message type with reflection information, may provide speed optimized methods
292
290
  class StreamingAPI_StreamBinary$Type extends MessageType<StreamingAPI_StreamBinary> {
293
- constructor() {
294
- super('MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary', [
295
- {
296
- no: 1,
297
- name: 'resource_id',
298
- kind: 'scalar',
299
- T: 4 /* ScalarType.UINT64 */,
300
- L: 0, /* LongType.BIGINT */
301
- },
302
- {
303
- no: 2,
304
- name: 'offset',
305
- kind: 'scalar',
306
- T: 3 /* ScalarType.INT64 */,
307
- L: 0, /* LongType.BIGINT */
308
- },
309
- {
310
- no: 11,
311
- name: 'chunk_size',
312
- kind: 'scalar',
313
- opt: true,
314
- T: 13, /* ScalarType.UINT32 */
315
- },
316
- {
317
- no: 20,
318
- name: 'read_limit',
319
- kind: 'scalar',
320
- opt: true,
321
- T: 3 /* ScalarType.INT64 */,
322
- L: 0, /* LongType.BIGINT */
323
- },
324
- ]);
325
- }
326
-
327
- create(
328
- value?: PartialMessage<StreamingAPI_StreamBinary>,
329
- ): StreamingAPI_StreamBinary {
330
- const message = globalThis.Object.create(this.messagePrototype!);
331
- message.resourceId = 0n;
332
- message.offset = 0n;
333
- if (value !== undefined)
334
- reflectionMergePartial<StreamingAPI_StreamBinary>(this, message, value);
335
- return message;
336
- }
337
-
338
- internalBinaryRead(
339
- reader: IBinaryReader,
340
- length: number,
341
- options: BinaryReadOptions,
342
- target?: StreamingAPI_StreamBinary,
343
- ): StreamingAPI_StreamBinary {
344
- const message = target ?? this.create(),
345
- end = reader.pos + length;
346
- while (reader.pos < end) {
347
- const [fieldNo, wireType] = reader.tag();
348
- switch (fieldNo) {
349
- case /* uint64 resource_id */ 1:
350
- message.resourceId = reader.uint64().toBigInt();
351
- break;
352
- case /* int64 offset */ 2:
353
- message.offset = reader.int64().toBigInt();
354
- break;
355
- case /* optional uint32 chunk_size */ 11:
356
- message.chunkSize = reader.uint32();
357
- break;
358
- case /* optional int64 read_limit */ 20:
359
- message.readLimit = reader.int64().toBigInt();
360
- break;
361
- default:
362
- const u = options.readUnknownField;
363
- if (u === 'throw')
364
- throw new globalThis.Error(
365
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
366
- );
367
- const d = reader.skip(wireType);
368
- if (u !== false)
369
- (u === true ? UnknownFieldHandler.onRead : u)(
370
- this.typeName,
371
- message,
372
- fieldNo,
373
- wireType,
374
- d,
375
- );
376
- }
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;
377
352
  }
378
- return message;
379
- }
380
-
381
- internalBinaryWrite(
382
- message: StreamingAPI_StreamBinary,
383
- writer: IBinaryWriter,
384
- options: BinaryWriteOptions,
385
- ): IBinaryWriter {
386
- /* uint64 resource_id = 1; */
387
- if (message.resourceId !== 0n)
388
- writer.tag(1, WireType.Varint).uint64(message.resourceId);
389
- /* int64 offset = 2; */
390
- if (message.offset !== 0n)
391
- writer.tag(2, WireType.Varint).int64(message.offset);
392
- /* optional uint32 chunk_size = 11; */
393
- if (message.chunkSize !== undefined)
394
- writer.tag(11, WireType.Varint).uint32(message.chunkSize);
395
- /* optional int64 read_limit = 20; */
396
- if (message.readLimit !== undefined)
397
- writer.tag(20, WireType.Varint).int64(message.readLimit);
398
- const u = options.writeUnknownFields;
399
- if (u !== false)
400
- (u == true ? UnknownFieldHandler.onWrite : u)(
401
- this.typeName,
402
- message,
403
- writer,
404
- );
405
- return writer;
406
- }
407
353
  }
408
354
  /**
409
355
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary
@@ -411,106 +357,61 @@ class StreamingAPI_StreamBinary$Type extends MessageType<StreamingAPI_StreamBina
411
357
  export const StreamingAPI_StreamBinary = new StreamingAPI_StreamBinary$Type();
412
358
  // @generated message type with reflection information, may provide speed optimized methods
413
359
  class StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_ReadBinary> {
414
- constructor() {
415
- super('MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary', [
416
- {
417
- no: 1,
418
- name: 'resource_id',
419
- kind: 'scalar',
420
- T: 4 /* ScalarType.UINT64 */,
421
- L: 0, /* LongType.BIGINT */
422
- },
423
- {
424
- no: 2,
425
- name: 'offset',
426
- kind: 'scalar',
427
- T: 3 /* ScalarType.INT64 */,
428
- L: 0, /* LongType.BIGINT */
429
- },
430
- {
431
- no: 11,
432
- name: 'chunk_size',
433
- kind: 'scalar',
434
- opt: true,
435
- T: 13, /* ScalarType.UINT32 */
436
- },
437
- ]);
438
- }
439
-
440
- create(
441
- value?: PartialMessage<StreamingAPI_ReadBinary>,
442
- ): StreamingAPI_ReadBinary {
443
- const message = globalThis.Object.create(this.messagePrototype!);
444
- message.resourceId = 0n;
445
- message.offset = 0n;
446
- if (value !== undefined)
447
- reflectionMergePartial<StreamingAPI_ReadBinary>(this, message, value);
448
- return message;
449
- }
450
-
451
- internalBinaryRead(
452
- reader: IBinaryReader,
453
- length: number,
454
- options: BinaryReadOptions,
455
- target?: StreamingAPI_ReadBinary,
456
- ): StreamingAPI_ReadBinary {
457
- const message = target ?? this.create(),
458
- end = reader.pos + length;
459
- while (reader.pos < end) {
460
- const [fieldNo, wireType] = reader.tag();
461
- switch (fieldNo) {
462
- case /* uint64 resource_id */ 1:
463
- message.resourceId = reader.uint64().toBigInt();
464
- break;
465
- case /* int64 offset */ 2:
466
- message.offset = reader.int64().toBigInt();
467
- break;
468
- case /* optional uint32 chunk_size */ 11:
469
- message.chunkSize = reader.uint32();
470
- break;
471
- default:
472
- const u = options.readUnknownField;
473
- if (u === 'throw')
474
- throw new globalThis.Error(
475
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
476
- );
477
- const d = reader.skip(wireType);
478
- if (u !== false)
479
- (u === true ? UnknownFieldHandler.onRead : u)(
480
- this.typeName,
481
- message,
482
- fieldNo,
483
- wireType,
484
- d,
485
- );
486
- }
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;
487
414
  }
488
- return message;
489
- }
490
-
491
- internalBinaryWrite(
492
- message: StreamingAPI_ReadBinary,
493
- writer: IBinaryWriter,
494
- options: BinaryWriteOptions,
495
- ): IBinaryWriter {
496
- /* uint64 resource_id = 1; */
497
- if (message.resourceId !== 0n)
498
- writer.tag(1, WireType.Varint).uint64(message.resourceId);
499
- /* int64 offset = 2; */
500
- if (message.offset !== 0n)
501
- writer.tag(2, WireType.Varint).int64(message.offset);
502
- /* optional uint32 chunk_size = 11; */
503
- if (message.chunkSize !== undefined)
504
- writer.tag(11, WireType.Varint).uint32(message.chunkSize);
505
- const u = options.writeUnknownFields;
506
- if (u !== false)
507
- (u == true ? UnknownFieldHandler.onWrite : u)(
508
- this.typeName,
509
- message,
510
- writer,
511
- );
512
- return writer;
513
- }
514
415
  }
515
416
  /**
516
417
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary
@@ -518,133 +419,75 @@ class StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_ReadBinary>
518
419
  export const StreamingAPI_ReadBinary = new StreamingAPI_ReadBinary$Type();
519
420
  // @generated message type with reflection information, may provide speed optimized methods
520
421
  class StreamingAPI_StreamText$Type extends MessageType<StreamingAPI_StreamText> {
521
- constructor() {
522
- super('MiLaboratories.Controller.Shared.StreamingAPI.StreamText', [
523
- {
524
- no: 1,
525
- name: 'resource_id',
526
- kind: 'scalar',
527
- T: 4 /* ScalarType.UINT64 */,
528
- L: 0, /* LongType.BIGINT */
529
- },
530
- {
531
- no: 2,
532
- name: 'offset',
533
- kind: 'scalar',
534
- T: 3 /* ScalarType.INT64 */,
535
- L: 0, /* LongType.BIGINT */
536
- },
537
- {
538
- no: 20,
539
- name: 'read_limit',
540
- kind: 'scalar',
541
- opt: true,
542
- T: 3 /* ScalarType.INT64 */,
543
- L: 0, /* LongType.BIGINT */
544
- },
545
- {
546
- no: 21,
547
- name: 'search',
548
- kind: 'scalar',
549
- opt: true,
550
- T: 9, /* ScalarType.STRING */
551
- },
552
- {
553
- no: 22,
554
- name: 'search_re',
555
- kind: 'scalar',
556
- opt: true,
557
- T: 9, /* ScalarType.STRING */
558
- },
559
- ]);
560
- }
561
-
562
- create(
563
- value?: PartialMessage<StreamingAPI_StreamText>,
564
- ): StreamingAPI_StreamText {
565
- const message = globalThis.Object.create(this.messagePrototype!);
566
- message.resourceId = 0n;
567
- message.offset = 0n;
568
- if (value !== undefined)
569
- reflectionMergePartial<StreamingAPI_StreamText>(this, message, value);
570
- return message;
571
- }
572
-
573
- internalBinaryRead(
574
- reader: IBinaryReader,
575
- length: number,
576
- options: BinaryReadOptions,
577
- target?: StreamingAPI_StreamText,
578
- ): StreamingAPI_StreamText {
579
- const message = target ?? this.create(),
580
- end = reader.pos + length;
581
- while (reader.pos < end) {
582
- const [fieldNo, wireType] = reader.tag();
583
- switch (fieldNo) {
584
- case /* uint64 resource_id */ 1:
585
- message.resourceId = reader.uint64().toBigInt();
586
- break;
587
- case /* int64 offset */ 2:
588
- message.offset = reader.int64().toBigInt();
589
- break;
590
- case /* optional int64 read_limit */ 20:
591
- message.readLimit = reader.int64().toBigInt();
592
- break;
593
- case /* optional string search */ 21:
594
- message.search = reader.string();
595
- break;
596
- case /* optional string search_re */ 22:
597
- message.searchRe = reader.string();
598
- break;
599
- default:
600
- const u = options.readUnknownField;
601
- if (u === 'throw')
602
- throw new globalThis.Error(
603
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
604
- );
605
- const d = reader.skip(wireType);
606
- if (u !== false)
607
- (u === true ? UnknownFieldHandler.onRead : u)(
608
- this.typeName,
609
- message,
610
- fieldNo,
611
- wireType,
612
- d,
613
- );
614
- }
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;
615
490
  }
616
- return message;
617
- }
618
-
619
- internalBinaryWrite(
620
- message: StreamingAPI_StreamText,
621
- writer: IBinaryWriter,
622
- options: BinaryWriteOptions,
623
- ): IBinaryWriter {
624
- /* uint64 resource_id = 1; */
625
- if (message.resourceId !== 0n)
626
- writer.tag(1, WireType.Varint).uint64(message.resourceId);
627
- /* int64 offset = 2; */
628
- if (message.offset !== 0n)
629
- writer.tag(2, WireType.Varint).int64(message.offset);
630
- /* optional int64 read_limit = 20; */
631
- if (message.readLimit !== undefined)
632
- writer.tag(20, WireType.Varint).int64(message.readLimit);
633
- /* optional string search = 21; */
634
- if (message.search !== undefined)
635
- writer.tag(21, WireType.LengthDelimited).string(message.search);
636
- /* optional string search_re = 22; */
637
- if (message.searchRe !== undefined)
638
- writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
639
- const u = options.writeUnknownFields;
640
- if (u !== false)
641
- (u == true ? UnknownFieldHandler.onWrite : u)(
642
- this.typeName,
643
- message,
644
- writer,
645
- );
646
- return writer;
647
- }
648
491
  }
649
492
  /**
650
493
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamText
@@ -652,131 +495,75 @@ class StreamingAPI_StreamText$Type extends MessageType<StreamingAPI_StreamText>
652
495
  export const StreamingAPI_StreamText = new StreamingAPI_StreamText$Type();
653
496
  // @generated message type with reflection information, may provide speed optimized methods
654
497
  class StreamingAPI_ReadText$Type extends MessageType<StreamingAPI_ReadText> {
655
- constructor() {
656
- super('MiLaboratories.Controller.Shared.StreamingAPI.ReadText', [
657
- {
658
- no: 1,
659
- name: 'resource_id',
660
- kind: 'scalar',
661
- T: 4 /* ScalarType.UINT64 */,
662
- L: 0, /* LongType.BIGINT */
663
- },
664
- {
665
- no: 2,
666
- name: 'offset',
667
- kind: 'scalar',
668
- T: 3 /* ScalarType.INT64 */,
669
- L: 0, /* LongType.BIGINT */
670
- },
671
- {
672
- no: 20,
673
- name: 'read_limit',
674
- kind: 'scalar',
675
- opt: true,
676
- T: 3 /* ScalarType.INT64 */,
677
- L: 0, /* LongType.BIGINT */
678
- },
679
- {
680
- no: 21,
681
- name: 'search',
682
- kind: 'scalar',
683
- opt: true,
684
- T: 9, /* ScalarType.STRING */
685
- },
686
- {
687
- no: 22,
688
- name: 'search_re',
689
- kind: 'scalar',
690
- opt: true,
691
- T: 9, /* ScalarType.STRING */
692
- },
693
- ]);
694
- }
695
-
696
- create(value?: PartialMessage<StreamingAPI_ReadText>): StreamingAPI_ReadText {
697
- const message = globalThis.Object.create(this.messagePrototype!);
698
- message.resourceId = 0n;
699
- message.offset = 0n;
700
- if (value !== undefined)
701
- reflectionMergePartial<StreamingAPI_ReadText>(this, message, value);
702
- return message;
703
- }
704
-
705
- internalBinaryRead(
706
- reader: IBinaryReader,
707
- length: number,
708
- options: BinaryReadOptions,
709
- target?: StreamingAPI_ReadText,
710
- ): StreamingAPI_ReadText {
711
- const message = target ?? this.create(),
712
- end = reader.pos + length;
713
- while (reader.pos < end) {
714
- const [fieldNo, wireType] = reader.tag();
715
- switch (fieldNo) {
716
- case /* uint64 resource_id */ 1:
717
- message.resourceId = reader.uint64().toBigInt();
718
- break;
719
- case /* int64 offset */ 2:
720
- message.offset = reader.int64().toBigInt();
721
- break;
722
- case /* optional int64 read_limit */ 20:
723
- message.readLimit = reader.int64().toBigInt();
724
- break;
725
- case /* optional string search */ 21:
726
- message.search = reader.string();
727
- break;
728
- case /* optional string search_re */ 22:
729
- message.searchRe = reader.string();
730
- break;
731
- default:
732
- const u = options.readUnknownField;
733
- if (u === 'throw')
734
- throw new globalThis.Error(
735
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
736
- );
737
- const d = reader.skip(wireType);
738
- if (u !== false)
739
- (u === true ? UnknownFieldHandler.onRead : u)(
740
- this.typeName,
741
- message,
742
- fieldNo,
743
- wireType,
744
- d,
745
- );
746
- }
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;
747
566
  }
748
- return message;
749
- }
750
-
751
- internalBinaryWrite(
752
- message: StreamingAPI_ReadText,
753
- writer: IBinaryWriter,
754
- options: BinaryWriteOptions,
755
- ): IBinaryWriter {
756
- /* uint64 resource_id = 1; */
757
- if (message.resourceId !== 0n)
758
- writer.tag(1, WireType.Varint).uint64(message.resourceId);
759
- /* int64 offset = 2; */
760
- if (message.offset !== 0n)
761
- writer.tag(2, WireType.Varint).int64(message.offset);
762
- /* optional int64 read_limit = 20; */
763
- if (message.readLimit !== undefined)
764
- writer.tag(20, WireType.Varint).int64(message.readLimit);
765
- /* optional string search = 21; */
766
- if (message.search !== undefined)
767
- writer.tag(21, WireType.LengthDelimited).string(message.search);
768
- /* optional string search_re = 22; */
769
- if (message.searchRe !== undefined)
770
- writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
771
- const u = options.writeUnknownFields;
772
- if (u !== false)
773
- (u == true ? UnknownFieldHandler.onWrite : u)(
774
- this.typeName,
775
- message,
776
- writer,
777
- );
778
- return writer;
779
- }
780
567
  }
781
568
  /**
782
569
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText
@@ -784,132 +571,74 @@ class StreamingAPI_ReadText$Type extends MessageType<StreamingAPI_ReadText> {
784
571
  export const StreamingAPI_ReadText = new StreamingAPI_ReadText$Type();
785
572
  // @generated message type with reflection information, may provide speed optimized methods
786
573
  class StreamingAPI_LastLines$Type extends MessageType<StreamingAPI_LastLines> {
787
- constructor() {
788
- super('MiLaboratories.Controller.Shared.StreamingAPI.LastLines', [
789
- {
790
- no: 1,
791
- name: 'resource_id',
792
- kind: 'scalar',
793
- T: 4 /* ScalarType.UINT64 */,
794
- L: 0, /* LongType.BIGINT */
795
- },
796
- {
797
- no: 2,
798
- name: 'offset',
799
- kind: 'scalar',
800
- opt: true,
801
- T: 3 /* ScalarType.INT64 */,
802
- L: 0, /* LongType.BIGINT */
803
- },
804
- {
805
- no: 3,
806
- name: 'line_count',
807
- kind: 'scalar',
808
- opt: true,
809
- T: 5, /* ScalarType.INT32 */
810
- },
811
- {
812
- no: 21,
813
- name: 'search',
814
- kind: 'scalar',
815
- opt: true,
816
- T: 9, /* ScalarType.STRING */
817
- },
818
- {
819
- no: 22,
820
- name: 'search_re',
821
- kind: 'scalar',
822
- opt: true,
823
- T: 9, /* ScalarType.STRING */
824
- },
825
- ]);
826
- }
827
-
828
- create(
829
- value?: PartialMessage<StreamingAPI_LastLines>,
830
- ): StreamingAPI_LastLines {
831
- const message = globalThis.Object.create(this.messagePrototype!);
832
- message.resourceId = 0n;
833
- if (value !== undefined)
834
- reflectionMergePartial<StreamingAPI_LastLines>(this, message, value);
835
- return message;
836
- }
837
-
838
- internalBinaryRead(
839
- reader: IBinaryReader,
840
- length: number,
841
- options: BinaryReadOptions,
842
- target?: StreamingAPI_LastLines,
843
- ): StreamingAPI_LastLines {
844
- const message = target ?? this.create(),
845
- end = reader.pos + length;
846
- while (reader.pos < end) {
847
- const [fieldNo, wireType] = reader.tag();
848
- switch (fieldNo) {
849
- case /* uint64 resource_id */ 1:
850
- message.resourceId = reader.uint64().toBigInt();
851
- break;
852
- case /* optional int64 offset */ 2:
853
- message.offset = reader.int64().toBigInt();
854
- break;
855
- case /* optional int32 line_count */ 3:
856
- message.lineCount = reader.int32();
857
- break;
858
- case /* optional string search */ 21:
859
- message.search = reader.string();
860
- break;
861
- case /* optional string search_re */ 22:
862
- message.searchRe = reader.string();
863
- break;
864
- default:
865
- const u = options.readUnknownField;
866
- if (u === 'throw')
867
- throw new globalThis.Error(
868
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
869
- );
870
- const d = reader.skip(wireType);
871
- if (u !== false)
872
- (u === true ? UnknownFieldHandler.onRead : u)(
873
- this.typeName,
874
- message,
875
- fieldNo,
876
- wireType,
877
- d,
878
- );
879
- }
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;
880
641
  }
881
- return message;
882
- }
883
-
884
- internalBinaryWrite(
885
- message: StreamingAPI_LastLines,
886
- writer: IBinaryWriter,
887
- options: BinaryWriteOptions,
888
- ): IBinaryWriter {
889
- /* uint64 resource_id = 1; */
890
- if (message.resourceId !== 0n)
891
- writer.tag(1, WireType.Varint).uint64(message.resourceId);
892
- /* optional int64 offset = 2; */
893
- if (message.offset !== undefined)
894
- writer.tag(2, WireType.Varint).int64(message.offset);
895
- /* optional int32 line_count = 3; */
896
- if (message.lineCount !== undefined)
897
- writer.tag(3, WireType.Varint).int32(message.lineCount);
898
- /* optional string search = 21; */
899
- if (message.search !== undefined)
900
- writer.tag(21, WireType.LengthDelimited).string(message.search);
901
- /* optional string search_re = 22; */
902
- if (message.searchRe !== undefined)
903
- writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
904
- const u = options.writeUnknownFields;
905
- if (u !== false)
906
- (u == true ? UnknownFieldHandler.onWrite : u)(
907
- this.typeName,
908
- message,
909
- writer,
910
- );
911
- return writer;
912
- }
913
642
  }
914
643
  /**
915
644
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.LastLines
@@ -917,99 +646,62 @@ class StreamingAPI_LastLines$Type extends MessageType<StreamingAPI_LastLines> {
917
646
  export const StreamingAPI_LastLines = new StreamingAPI_LastLines$Type();
918
647
  // @generated message type with reflection information, may provide speed optimized methods
919
648
  class StreamingAPI_Response$Type extends MessageType<StreamingAPI_Response> {
920
- constructor() {
921
- super('MiLaboratories.Controller.Shared.StreamingAPI.Response', [
922
- { no: 1, name: 'data', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
923
- {
924
- no: 2,
925
- name: 'size',
926
- kind: 'scalar',
927
- T: 4 /* ScalarType.UINT64 */,
928
- L: 0, /* LongType.BIGINT */
929
- },
930
- {
931
- no: 3,
932
- name: 'new_offset',
933
- kind: 'scalar',
934
- T: 4 /* ScalarType.UINT64 */,
935
- L: 0, /* LongType.BIGINT */
936
- },
937
- ]);
938
- }
939
-
940
- create(value?: PartialMessage<StreamingAPI_Response>): StreamingAPI_Response {
941
- const message = globalThis.Object.create(this.messagePrototype!);
942
- message.data = new Uint8Array(0);
943
- message.size = 0n;
944
- message.newOffset = 0n;
945
- if (value !== undefined)
946
- reflectionMergePartial<StreamingAPI_Response>(this, message, value);
947
- return message;
948
- }
949
-
950
- internalBinaryRead(
951
- reader: IBinaryReader,
952
- length: number,
953
- options: BinaryReadOptions,
954
- target?: StreamingAPI_Response,
955
- ): StreamingAPI_Response {
956
- const message = target ?? this.create(),
957
- end = reader.pos + length;
958
- while (reader.pos < end) {
959
- const [fieldNo, wireType] = reader.tag();
960
- switch (fieldNo) {
961
- case /* bytes data */ 1:
962
- message.data = reader.bytes();
963
- break;
964
- case /* uint64 size */ 2:
965
- message.size = reader.uint64().toBigInt();
966
- break;
967
- case /* uint64 new_offset */ 3:
968
- message.newOffset = reader.uint64().toBigInt();
969
- break;
970
- default:
971
- const u = options.readUnknownField;
972
- if (u === 'throw')
973
- throw new globalThis.Error(
974
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
975
- );
976
- const d = reader.skip(wireType);
977
- if (u !== false)
978
- (u === true ? UnknownFieldHandler.onRead : u)(
979
- this.typeName,
980
- message,
981
- fieldNo,
982
- wireType,
983
- d,
984
- );
985
- }
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;
986
704
  }
987
- return message;
988
- }
989
-
990
- internalBinaryWrite(
991
- message: StreamingAPI_Response,
992
- writer: IBinaryWriter,
993
- options: BinaryWriteOptions,
994
- ): IBinaryWriter {
995
- /* bytes data = 1; */
996
- if (message.data.length)
997
- writer.tag(1, WireType.LengthDelimited).bytes(message.data);
998
- /* uint64 size = 2; */
999
- if (message.size !== 0n)
1000
- writer.tag(2, WireType.Varint).uint64(message.size);
1001
- /* uint64 new_offset = 3; */
1002
- if (message.newOffset !== 0n)
1003
- writer.tag(3, WireType.Varint).uint64(message.newOffset);
1004
- const u = options.writeUnknownFields;
1005
- if (u !== false)
1006
- (u == true ? UnknownFieldHandler.onWrite : u)(
1007
- this.typeName,
1008
- message,
1009
- writer,
1010
- );
1011
- return writer;
1012
- }
1013
705
  }
1014
706
  /**
1015
707
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.Response
@@ -1018,40 +710,10 @@ export const StreamingAPI_Response = new StreamingAPI_Response$Type();
1018
710
  /**
1019
711
  * @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Streaming
1020
712
  */
1021
- export const Streaming = new ServiceType(
1022
- 'MiLaboratories.Controller.Shared.Streaming',
1023
- [
1024
- {
1025
- name: 'StreamBinary',
1026
- serverStreaming: true,
1027
- options: {},
1028
- I: StreamingAPI_StreamBinary,
1029
- O: StreamingAPI_Response,
1030
- },
1031
- {
1032
- name: 'ReadBinary',
1033
- options: {},
1034
- I: StreamingAPI_ReadBinary,
1035
- O: StreamingAPI_Response,
1036
- },
1037
- {
1038
- name: 'StreamText',
1039
- serverStreaming: true,
1040
- options: {},
1041
- I: StreamingAPI_StreamText,
1042
- O: StreamingAPI_Response,
1043
- },
1044
- {
1045
- name: 'ReadText',
1046
- options: {},
1047
- I: StreamingAPI_ReadText,
1048
- O: StreamingAPI_Response,
1049
- },
1050
- {
1051
- name: 'LastLines',
1052
- options: {},
1053
- I: StreamingAPI_LastLines,
1054
- O: StreamingAPI_Response,
1055
- },
1056
- ],
1057
- );
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 }
719
+ ]);