@milaboratories/pl-client 2.7.13 → 2.7.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/auth.d.ts.map +1 -1
- package/dist/core/cache.d.ts.map +1 -1
- package/dist/core/client.d.ts +1 -1
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/default_client.d.ts.map +1 -1
- package/dist/core/driver.d.ts.map +1 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/final.d.ts.map +1 -1
- package/dist/core/ll_client.d.ts.map +1 -1
- package/dist/core/ll_transaction.d.ts.map +1 -1
- package/dist/core/transaction.d.ts +1 -1
- package/dist/core/transaction.d.ts.map +1 -1
- package/dist/core/type_conversion.d.ts.map +1 -1
- package/dist/core/types.d.ts +1 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/unauth_client.d.ts.map +1 -1
- package/dist/helpers/pl.d.ts.map +1 -1
- package/dist/helpers/poll.d.ts.map +1 -1
- package/dist/helpers/state_helpers.d.ts.map +1 -1
- package/dist/helpers/tx_helpers.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4069 -4075
- package/dist/index.mjs.map +1 -1
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +15 -15
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +4 -4
- 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 +16 -16
- 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 +4 -4
- 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 +59 -59
- 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 +8 -8
- 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 +22 -22
- 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 +72 -72
- 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 +152 -152
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +156 -156
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +773 -773
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +163 -163
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +22 -22
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +32 -32
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +78 -78
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -1
- package/dist/proto/google/api/http.d.ts +89 -89
- package/dist/proto/google/api/http.d.ts.map +1 -1
- package/dist/proto/google/protobuf/any.d.ts +52 -52
- package/dist/proto/google/protobuf/any.d.ts.map +1 -1
- package/dist/proto/google/protobuf/descriptor.d.ts +1151 -1151
- package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/proto/google/protobuf/duration.d.ts +19 -19
- package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
- package/dist/proto/google/protobuf/empty.d.ts.map +1 -1
- package/dist/proto/google/protobuf/struct.d.ts +56 -56
- package/dist/proto/google/protobuf/struct.d.ts.map +1 -1
- package/dist/proto/google/protobuf/timestamp.d.ts +25 -25
- package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/proto/google/protobuf/wrappers.d.ts +72 -72
- package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -1
- package/dist/test/test_config.d.ts.map +1 -1
- package/dist/util/util.d.ts.map +1 -1
- package/package.json +7 -3
- package/src/core/auth.ts +3 -3
- package/src/core/cache.ts +1 -1
- package/src/core/client.ts +39 -31
- package/src/core/config.ts +21 -21
- package/src/core/default_client.ts +15 -14
- package/src/core/driver.ts +4 -4
- package/src/core/errors.ts +3 -3
- package/src/core/final.ts +7 -4
- package/src/core/ll_client.ts +31 -27
- package/src/core/ll_transaction.ts +17 -17
- package/src/core/stat.ts +2 -2
- package/src/core/transaction.ts +93 -95
- package/src/core/type_conversion.ts +11 -8
- package/src/core/types.ts +25 -26
- package/src/core/unauth_client.ts +6 -6
- package/src/helpers/pl.ts +8 -7
- package/src/helpers/poll.ts +25 -21
- package/src/helpers/state_helpers.ts +2 -1
- package/src/helpers/tx_helpers.ts +4 -3
- package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +74 -71
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +21 -20
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +240 -225
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +21 -20
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +290 -275
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +32 -30
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +388 -364
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +58 -53
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +490 -469
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +262 -237
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +11751 -11032
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1155 -1114
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +131 -125
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +203 -200
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +559 -540
- package/src/proto/google/api/http.ts +280 -271
- package/src/proto/google/protobuf/any.ts +149 -139
- package/src/proto/google/protobuf/descriptor.ts +2952 -2853
- package/src/proto/google/protobuf/duration.ts +107 -102
- package/src/proto/google/protobuf/empty.ts +41 -38
- package/src/proto/google/protobuf/struct.ts +336 -322
- package/src/proto/google/protobuf/timestamp.ts +131 -123
- package/src/proto/google/protobuf/wrappers.ts +536 -491
- package/src/test/test_config.ts +21 -19
- package/src/util/util.ts +1 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// @generated by protobuf-ts 2.9.5 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
|
|
2
2
|
// @generated from protobuf file "github.com/milaboratory/pl/controllers/shared/grpc/lsapi/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 type { BinaryReadOptions } from
|
|
9
|
-
import type { IBinaryReader } from
|
|
10
|
-
import { UnknownFieldHandler } from
|
|
11
|
-
import type { PartialMessage } from
|
|
12
|
-
import { reflectionMergePartial } from
|
|
13
|
-
import { MessageType } from
|
|
14
|
-
import { Timestamp } 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
|
+
import { Timestamp } from '../../../../../../../google/protobuf/timestamp';
|
|
15
15
|
/**
|
|
16
16
|
* @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI
|
|
17
17
|
*/
|
|
@@ -21,47 +21,47 @@ export interface LsAPI {
|
|
|
21
21
|
* @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.ListItem
|
|
22
22
|
*/
|
|
23
23
|
export interface LsAPI_ListItem {
|
|
24
|
-
|
|
24
|
+
/**
|
|
25
25
|
* name of the item in storage, without any prefixes
|
|
26
26
|
*
|
|
27
27
|
* @generated from protobuf field: string name = 1;
|
|
28
28
|
*/
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
31
|
* size of item in bytes
|
|
32
32
|
* is always zero for directories (is_dir = true)
|
|
33
33
|
*
|
|
34
34
|
* @generated from protobuf field: uint64 size = 2;
|
|
35
35
|
*/
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
size: bigint;
|
|
37
|
+
/**
|
|
38
38
|
* is_dir is true for item, that can have subitems.
|
|
39
39
|
*
|
|
40
40
|
* @generated from protobuf field: bool is_dir = 3;
|
|
41
41
|
*/
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
isDir: boolean;
|
|
43
|
+
/**
|
|
44
44
|
* full_name is the name of item absolute to storage root.
|
|
45
45
|
* it is <directory> + <name>
|
|
46
46
|
* The <delimiter>, used in names, is storage-specific and is NOT guaranteed to be '/'.
|
|
47
47
|
*
|
|
48
48
|
* @generated from protobuf field: string full_name = 10;
|
|
49
49
|
*/
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
fullName: string;
|
|
51
|
+
/**
|
|
52
52
|
* directory, the item is located in. The value here is always a prefix of name:
|
|
53
53
|
* name.HasPrefix(directory) is always true.
|
|
54
54
|
*
|
|
55
55
|
* @generated from protobuf field: string directory = 11;
|
|
56
56
|
*/
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
directory: string;
|
|
58
|
+
/**
|
|
59
59
|
* last_modified keeps the item last modification timestamp
|
|
60
60
|
*
|
|
61
61
|
* @generated from protobuf field: google.protobuf.Timestamp last_modified = 12;
|
|
62
62
|
*/
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
lastModified?: Timestamp;
|
|
64
|
+
/**
|
|
65
65
|
* version of item in storage.
|
|
66
66
|
* When storage supports versioning or provides checksums for the data stored,
|
|
67
67
|
* the <version> field keeps that data.
|
|
@@ -72,7 +72,7 @@ export interface LsAPI_ListItem {
|
|
|
72
72
|
*
|
|
73
73
|
* @generated from protobuf field: string version = 13;
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
version: string;
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
78
|
* @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.List
|
|
@@ -83,25 +83,25 @@ export interface LsAPI_List {
|
|
|
83
83
|
* @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Request
|
|
84
84
|
*/
|
|
85
85
|
export interface LsAPI_List_Request {
|
|
86
|
-
|
|
86
|
+
/**
|
|
87
87
|
* resource_id of 'LS/<Storage>' resource
|
|
88
88
|
*
|
|
89
89
|
* @generated from protobuf field: uint64 resource_id = 1;
|
|
90
90
|
*/
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
resourceId: bigint;
|
|
92
|
+
/**
|
|
93
93
|
* location to list, absolute to storage root. Only items, that have <full_name> starting
|
|
94
94
|
* from <location> are included into list response.
|
|
95
95
|
*
|
|
96
96
|
* @generated from protobuf field: string location = 2;
|
|
97
97
|
*/
|
|
98
|
-
|
|
98
|
+
location: string;
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
101
|
* @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Response
|
|
102
102
|
*/
|
|
103
103
|
export interface LsAPI_List_Response {
|
|
104
|
-
|
|
104
|
+
/**
|
|
105
105
|
* List of the full (absolute to storage root) names of items from storage.
|
|
106
106
|
* E.g., for 'fs' storage each name will consist of names of all directories, where the
|
|
107
107
|
* item is located, and the item name itself.
|
|
@@ -109,48 +109,51 @@ export interface LsAPI_List_Response {
|
|
|
109
109
|
*
|
|
110
110
|
* @generated from protobuf field: repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items = 1;
|
|
111
111
|
*/
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
items: LsAPI_ListItem[];
|
|
113
|
+
/**
|
|
114
114
|
* delimiter is path separator, used in this storage. Client can use it to parse item names into parts,
|
|
115
115
|
* to extract directory names.
|
|
116
116
|
*
|
|
117
117
|
* @generated from protobuf field: string delimiter = 2;
|
|
118
118
|
*/
|
|
119
|
-
|
|
119
|
+
delimiter: string;
|
|
120
120
|
}
|
|
121
121
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
122
122
|
class LsAPI$Type extends MessageType<LsAPI> {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
internalBinaryWrite(message: LsAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
149
|
-
let u = options.writeUnknownFields;
|
|
150
|
-
if (u !== false)
|
|
151
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
152
|
-
return writer;
|
|
123
|
+
constructor() {
|
|
124
|
+
super('MiLaboratories.Controller.Shared.LsAPI', []);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
create(value?: PartialMessage<LsAPI>): LsAPI {
|
|
128
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
129
|
+
if (value !== undefined)
|
|
130
|
+
reflectionMergePartial<LsAPI>(this, message, value);
|
|
131
|
+
return message;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI): LsAPI {
|
|
135
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
136
|
+
while (reader.pos < end) {
|
|
137
|
+
const [fieldNo, wireType] = reader.tag();
|
|
138
|
+
switch (fieldNo) {
|
|
139
|
+
default:
|
|
140
|
+
const u = options.readUnknownField;
|
|
141
|
+
if (u === 'throw')
|
|
142
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
143
|
+
const d = reader.skip(wireType);
|
|
144
|
+
if (u !== false)
|
|
145
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
146
|
+
}
|
|
153
147
|
}
|
|
148
|
+
return message;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
internalBinaryWrite(message: LsAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
152
|
+
const u = options.writeUnknownFields;
|
|
153
|
+
if (u !== false)
|
|
154
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
155
|
+
return writer;
|
|
156
|
+
}
|
|
154
157
|
}
|
|
155
158
|
/**
|
|
156
159
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI
|
|
@@ -158,93 +161,96 @@ class LsAPI$Type extends MessageType<LsAPI> {
|
|
|
158
161
|
export const LsAPI = new LsAPI$Type();
|
|
159
162
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
160
163
|
class LsAPI_ListItem$Type extends MessageType<LsAPI_ListItem> {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}
|
|
221
|
-
internalBinaryWrite(message: LsAPI_ListItem, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
222
|
-
/* string name = 1; */
|
|
223
|
-
if (message.name !== "")
|
|
224
|
-
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
225
|
-
/* uint64 size = 2; */
|
|
226
|
-
if (message.size !== 0n)
|
|
227
|
-
writer.tag(2, WireType.Varint).uint64(message.size);
|
|
228
|
-
/* bool is_dir = 3; */
|
|
229
|
-
if (message.isDir !== false)
|
|
230
|
-
writer.tag(3, WireType.Varint).bool(message.isDir);
|
|
231
|
-
/* string full_name = 10; */
|
|
232
|
-
if (message.fullName !== "")
|
|
233
|
-
writer.tag(10, WireType.LengthDelimited).string(message.fullName);
|
|
234
|
-
/* string directory = 11; */
|
|
235
|
-
if (message.directory !== "")
|
|
236
|
-
writer.tag(11, WireType.LengthDelimited).string(message.directory);
|
|
237
|
-
/* google.protobuf.Timestamp last_modified = 12; */
|
|
238
|
-
if (message.lastModified)
|
|
239
|
-
Timestamp.internalBinaryWrite(message.lastModified, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
240
|
-
/* string version = 13; */
|
|
241
|
-
if (message.version !== "")
|
|
242
|
-
writer.tag(13, WireType.LengthDelimited).string(message.version);
|
|
243
|
-
let u = options.writeUnknownFields;
|
|
244
|
-
if (u !== false)
|
|
245
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
246
|
-
return writer;
|
|
164
|
+
constructor() {
|
|
165
|
+
super('MiLaboratories.Controller.Shared.LsAPI.ListItem', [
|
|
166
|
+
{ no: 1, name: 'name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
167
|
+
{ no: 2, name: 'size', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
|
|
168
|
+
{ no: 3, name: 'is_dir', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
169
|
+
{ no: 10, name: 'full_name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
170
|
+
{ no: 11, name: 'directory', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
171
|
+
{ no: 12, name: 'last_modified', kind: 'message', T: () => Timestamp },
|
|
172
|
+
{ no: 13, name: 'version', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
173
|
+
]);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
create(value?: PartialMessage<LsAPI_ListItem>): LsAPI_ListItem {
|
|
177
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
178
|
+
message.name = '';
|
|
179
|
+
message.size = 0n;
|
|
180
|
+
message.isDir = false;
|
|
181
|
+
message.fullName = '';
|
|
182
|
+
message.directory = '';
|
|
183
|
+
message.version = '';
|
|
184
|
+
if (value !== undefined)
|
|
185
|
+
reflectionMergePartial<LsAPI_ListItem>(this, message, value);
|
|
186
|
+
return message;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_ListItem): LsAPI_ListItem {
|
|
190
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
191
|
+
while (reader.pos < end) {
|
|
192
|
+
const [fieldNo, wireType] = reader.tag();
|
|
193
|
+
switch (fieldNo) {
|
|
194
|
+
case /* string name */ 1:
|
|
195
|
+
message.name = reader.string();
|
|
196
|
+
break;
|
|
197
|
+
case /* uint64 size */ 2:
|
|
198
|
+
message.size = reader.uint64().toBigInt();
|
|
199
|
+
break;
|
|
200
|
+
case /* bool is_dir */ 3:
|
|
201
|
+
message.isDir = reader.bool();
|
|
202
|
+
break;
|
|
203
|
+
case /* string full_name */ 10:
|
|
204
|
+
message.fullName = reader.string();
|
|
205
|
+
break;
|
|
206
|
+
case /* string directory */ 11:
|
|
207
|
+
message.directory = reader.string();
|
|
208
|
+
break;
|
|
209
|
+
case /* google.protobuf.Timestamp last_modified */ 12:
|
|
210
|
+
message.lastModified = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastModified);
|
|
211
|
+
break;
|
|
212
|
+
case /* string version */ 13:
|
|
213
|
+
message.version = reader.string();
|
|
214
|
+
break;
|
|
215
|
+
default:
|
|
216
|
+
const u = options.readUnknownField;
|
|
217
|
+
if (u === 'throw')
|
|
218
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
219
|
+
const d = reader.skip(wireType);
|
|
220
|
+
if (u !== false)
|
|
221
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
222
|
+
}
|
|
247
223
|
}
|
|
224
|
+
return message;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
internalBinaryWrite(message: LsAPI_ListItem, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
228
|
+
/* string name = 1; */
|
|
229
|
+
if (message.name !== '')
|
|
230
|
+
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
231
|
+
/* uint64 size = 2; */
|
|
232
|
+
if (message.size !== 0n)
|
|
233
|
+
writer.tag(2, WireType.Varint).uint64(message.size);
|
|
234
|
+
/* bool is_dir = 3; */
|
|
235
|
+
if (message.isDir !== false)
|
|
236
|
+
writer.tag(3, WireType.Varint).bool(message.isDir);
|
|
237
|
+
/* string full_name = 10; */
|
|
238
|
+
if (message.fullName !== '')
|
|
239
|
+
writer.tag(10, WireType.LengthDelimited).string(message.fullName);
|
|
240
|
+
/* string directory = 11; */
|
|
241
|
+
if (message.directory !== '')
|
|
242
|
+
writer.tag(11, WireType.LengthDelimited).string(message.directory);
|
|
243
|
+
/* google.protobuf.Timestamp last_modified = 12; */
|
|
244
|
+
if (message.lastModified)
|
|
245
|
+
Timestamp.internalBinaryWrite(message.lastModified, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
246
|
+
/* string version = 13; */
|
|
247
|
+
if (message.version !== '')
|
|
248
|
+
writer.tag(13, WireType.LengthDelimited).string(message.version);
|
|
249
|
+
const u = options.writeUnknownFields;
|
|
250
|
+
if (u !== false)
|
|
251
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
252
|
+
return writer;
|
|
253
|
+
}
|
|
248
254
|
}
|
|
249
255
|
/**
|
|
250
256
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.ListItem
|
|
@@ -252,37 +258,40 @@ class LsAPI_ListItem$Type extends MessageType<LsAPI_ListItem> {
|
|
|
252
258
|
export const LsAPI_ListItem = new LsAPI_ListItem$Type();
|
|
253
259
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
254
260
|
class LsAPI_List$Type extends MessageType<LsAPI_List> {
|
|
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
|
-
internalBinaryWrite(message: LsAPI_List, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
281
|
-
let u = options.writeUnknownFields;
|
|
282
|
-
if (u !== false)
|
|
283
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
284
|
-
return writer;
|
|
261
|
+
constructor() {
|
|
262
|
+
super('MiLaboratories.Controller.Shared.LsAPI.List', []);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
create(value?: PartialMessage<LsAPI_List>): LsAPI_List {
|
|
266
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
267
|
+
if (value !== undefined)
|
|
268
|
+
reflectionMergePartial<LsAPI_List>(this, message, value);
|
|
269
|
+
return message;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_List): LsAPI_List {
|
|
273
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
274
|
+
while (reader.pos < end) {
|
|
275
|
+
const [fieldNo, wireType] = reader.tag();
|
|
276
|
+
switch (fieldNo) {
|
|
277
|
+
default:
|
|
278
|
+
const u = options.readUnknownField;
|
|
279
|
+
if (u === 'throw')
|
|
280
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
281
|
+
const d = reader.skip(wireType);
|
|
282
|
+
if (u !== false)
|
|
283
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
284
|
+
}
|
|
285
285
|
}
|
|
286
|
+
return message;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
internalBinaryWrite(message: LsAPI_List, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
290
|
+
const u = options.writeUnknownFields;
|
|
291
|
+
if (u !== false)
|
|
292
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
293
|
+
return writer;
|
|
294
|
+
}
|
|
286
295
|
}
|
|
287
296
|
/**
|
|
288
297
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.List
|
|
@@ -290,54 +299,57 @@ class LsAPI_List$Type extends MessageType<LsAPI_List> {
|
|
|
290
299
|
export const LsAPI_List = new LsAPI_List$Type();
|
|
291
300
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
292
301
|
class LsAPI_List_Request$Type extends MessageType<LsAPI_List_Request> {
|
|
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
|
-
internalBinaryWrite(message: LsAPI_List_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
330
|
-
/* uint64 resource_id = 1; */
|
|
331
|
-
if (message.resourceId !== 0n)
|
|
332
|
-
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
333
|
-
/* string location = 2; */
|
|
334
|
-
if (message.location !== "")
|
|
335
|
-
writer.tag(2, WireType.LengthDelimited).string(message.location);
|
|
336
|
-
let u = options.writeUnknownFields;
|
|
337
|
-
if (u !== false)
|
|
338
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
339
|
-
return writer;
|
|
302
|
+
constructor() {
|
|
303
|
+
super('MiLaboratories.Controller.Shared.LsAPI.List.Request', [
|
|
304
|
+
{ no: 1, name: 'resource_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
|
|
305
|
+
{ no: 2, name: 'location', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
306
|
+
]);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
create(value?: PartialMessage<LsAPI_List_Request>): LsAPI_List_Request {
|
|
310
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
311
|
+
message.resourceId = 0n;
|
|
312
|
+
message.location = '';
|
|
313
|
+
if (value !== undefined)
|
|
314
|
+
reflectionMergePartial<LsAPI_List_Request>(this, message, value);
|
|
315
|
+
return message;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_List_Request): LsAPI_List_Request {
|
|
319
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
320
|
+
while (reader.pos < end) {
|
|
321
|
+
const [fieldNo, wireType] = reader.tag();
|
|
322
|
+
switch (fieldNo) {
|
|
323
|
+
case /* uint64 resource_id */ 1:
|
|
324
|
+
message.resourceId = reader.uint64().toBigInt();
|
|
325
|
+
break;
|
|
326
|
+
case /* string location */ 2:
|
|
327
|
+
message.location = reader.string();
|
|
328
|
+
break;
|
|
329
|
+
default:
|
|
330
|
+
const u = options.readUnknownField;
|
|
331
|
+
if (u === 'throw')
|
|
332
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
333
|
+
const d = reader.skip(wireType);
|
|
334
|
+
if (u !== false)
|
|
335
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
336
|
+
}
|
|
340
337
|
}
|
|
338
|
+
return message;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
internalBinaryWrite(message: LsAPI_List_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
342
|
+
/* uint64 resource_id = 1; */
|
|
343
|
+
if (message.resourceId !== 0n)
|
|
344
|
+
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
345
|
+
/* string location = 2; */
|
|
346
|
+
if (message.location !== '')
|
|
347
|
+
writer.tag(2, WireType.LengthDelimited).string(message.location);
|
|
348
|
+
const u = options.writeUnknownFields;
|
|
349
|
+
if (u !== false)
|
|
350
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
351
|
+
return writer;
|
|
352
|
+
}
|
|
341
353
|
}
|
|
342
354
|
/**
|
|
343
355
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Request
|
|
@@ -345,54 +357,57 @@ class LsAPI_List_Request$Type extends MessageType<LsAPI_List_Request> {
|
|
|
345
357
|
export const LsAPI_List_Request = new LsAPI_List_Request$Type();
|
|
346
358
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
347
359
|
class LsAPI_List_Response$Type extends MessageType<LsAPI_List_Response> {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
}
|
|
384
|
-
internalBinaryWrite(message: LsAPI_List_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
385
|
-
/* repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items = 1; */
|
|
386
|
-
for (let i = 0; i < message.items.length; i++)
|
|
387
|
-
LsAPI_ListItem.internalBinaryWrite(message.items[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
388
|
-
/* string delimiter = 2; */
|
|
389
|
-
if (message.delimiter !== "")
|
|
390
|
-
writer.tag(2, WireType.LengthDelimited).string(message.delimiter);
|
|
391
|
-
let u = options.writeUnknownFields;
|
|
392
|
-
if (u !== false)
|
|
393
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
394
|
-
return writer;
|
|
360
|
+
constructor() {
|
|
361
|
+
super('MiLaboratories.Controller.Shared.LsAPI.List.Response', [
|
|
362
|
+
{ no: 1, name: 'items', kind: 'message', repeat: 1 /* RepeatType.PACKED */, T: () => LsAPI_ListItem },
|
|
363
|
+
{ no: 2, name: 'delimiter', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
364
|
+
]);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
create(value?: PartialMessage<LsAPI_List_Response>): LsAPI_List_Response {
|
|
368
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
369
|
+
message.items = [];
|
|
370
|
+
message.delimiter = '';
|
|
371
|
+
if (value !== undefined)
|
|
372
|
+
reflectionMergePartial<LsAPI_List_Response>(this, message, value);
|
|
373
|
+
return message;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_List_Response): LsAPI_List_Response {
|
|
377
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
378
|
+
while (reader.pos < end) {
|
|
379
|
+
const [fieldNo, wireType] = reader.tag();
|
|
380
|
+
switch (fieldNo) {
|
|
381
|
+
case /* repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items */ 1:
|
|
382
|
+
message.items.push(LsAPI_ListItem.internalBinaryRead(reader, reader.uint32(), options));
|
|
383
|
+
break;
|
|
384
|
+
case /* string delimiter */ 2:
|
|
385
|
+
message.delimiter = reader.string();
|
|
386
|
+
break;
|
|
387
|
+
default:
|
|
388
|
+
const u = options.readUnknownField;
|
|
389
|
+
if (u === 'throw')
|
|
390
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
391
|
+
const d = reader.skip(wireType);
|
|
392
|
+
if (u !== false)
|
|
393
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
394
|
+
}
|
|
395
395
|
}
|
|
396
|
+
return message;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
internalBinaryWrite(message: LsAPI_List_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
400
|
+
/* repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items = 1; */
|
|
401
|
+
for (let i = 0; i < message.items.length; i++)
|
|
402
|
+
LsAPI_ListItem.internalBinaryWrite(message.items[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
403
|
+
/* string delimiter = 2; */
|
|
404
|
+
if (message.delimiter !== '')
|
|
405
|
+
writer.tag(2, WireType.LengthDelimited).string(message.delimiter);
|
|
406
|
+
const u = options.writeUnknownFields;
|
|
407
|
+
if (u !== false)
|
|
408
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
409
|
+
return writer;
|
|
410
|
+
}
|
|
396
411
|
}
|
|
397
412
|
/**
|
|
398
413
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Response
|
|
@@ -401,6 +416,6 @@ export const LsAPI_List_Response = new LsAPI_List_Response$Type();
|
|
|
401
416
|
/**
|
|
402
417
|
* @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.LS
|
|
403
418
|
*/
|
|
404
|
-
export const LS = new ServiceType(
|
|
405
|
-
|
|
419
|
+
export const LS = new ServiceType('MiLaboratories.Controller.Shared.LS', [
|
|
420
|
+
{ name: 'List', options: {}, I: LsAPI_List_Request, O: LsAPI_List_Response },
|
|
406
421
|
]);
|