@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.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2026 -2480
- package/dist/index.mjs.map +1 -1
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +48 -0
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +2 -2
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +13 -5
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +2 -2
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +11 -11
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +4 -4
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +10 -10
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +10 -10
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +25 -25
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts +8 -8
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts +24 -16
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +277 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +5344 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +530 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +82 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +91 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +251 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -0
- package/dist/proto/google/api/http.d.ts +46 -42
- package/dist/proto/google/api/http.d.ts.map +1 -1
- package/dist/proto/google/protobuf/any.d.ts +172 -0
- package/dist/proto/google/protobuf/any.d.ts.map +1 -0
- package/dist/proto/google/protobuf/descriptor.d.ts +1003 -170
- package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/proto/google/protobuf/duration.d.ts +2 -3
- package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
- package/dist/proto/google/protobuf/empty.d.ts +27 -0
- package/dist/proto/google/protobuf/empty.d.ts.map +1 -0
- package/dist/proto/google/protobuf/struct.d.ts +179 -0
- package/dist/proto/google/protobuf/struct.d.ts.map +1 -0
- package/dist/proto/google/protobuf/timestamp.d.ts +3 -6
- package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/proto/google/protobuf/wrappers.d.ts +327 -0
- package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -0
- package/package.json +5 -5
- package/src/clients/download.ts +1 -1
- package/src/clients/upload.ts +1 -1
- package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +125 -0
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +25 -40
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +252 -396
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +25 -37
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +341 -453
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +39 -65
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +398 -630
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +126 -194
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +626 -964
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.ts +102 -153
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.ts +741 -1082
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +406 -0
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +14986 -0
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1474 -0
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +181 -0
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +251 -0
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +693 -0
- package/src/proto/google/api/http.ts +336 -492
- package/src/proto/google/protobuf/any.ts +326 -0
- package/src/proto/google/protobuf/descriptor.ts +4383 -4772
- package/src/proto/google/protobuf/duration.ts +122 -169
- package/src/proto/google/protobuf/empty.ts +94 -0
- package/src/proto/google/protobuf/struct.ts +484 -0
- package/src/proto/google/protobuf/timestamp.ts +150 -225
- package/src/proto/google/protobuf/wrappers.ts +785 -0
package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts
CHANGED
|
@@ -1,288 +1,286 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
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
|
|
5
|
-
import { WireType } from
|
|
6
|
-
import type { BinaryWriteOptions } from
|
|
7
|
-
import type { IBinaryWriter } from
|
|
8
|
-
import {
|
|
9
|
-
import type {
|
|
10
|
-
import
|
|
11
|
-
import type { PartialMessage } from
|
|
12
|
-
import { reflectionMergePartial } from
|
|
13
|
-
import { MessageType } from
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
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
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
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
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
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
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
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
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
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
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
options:
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
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
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
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
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
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
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
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
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
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
|
-
|
|
1023
|
-
|
|
1024
|
-
{
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
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
|
+
]);
|