@milaboratories/pl-client 2.7.14 → 2.8.0
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/client.d.ts +4 -1
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/ll_client.d.ts +12 -2
- package/dist/core/ll_client.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4341 -4316
- 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/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/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 +790 -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/protobuf/any.d.ts +52 -52
- package/dist/proto/google/protobuf/any.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/package.json +3 -3
- package/src/core/client.ts +31 -35
- package/src/core/ll_client.ts +48 -23
- package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +72 -75
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +21 -22
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +276 -291
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +54 -59
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +470 -491
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +238 -263
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +11058 -11752
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1115 -1156
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +126 -132
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +201 -204
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +541 -560
- package/src/proto/google/protobuf/any.ts +140 -150
- package/src/proto/google/protobuf/duration.ts +103 -108
- package/src/proto/google/protobuf/empty.ts +39 -42
- package/src/proto/google/protobuf/struct.ts +323 -337
- package/src/proto/google/protobuf/timestamp.ts +124 -132
- package/src/proto/google/protobuf/wrappers.ts +492 -537
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 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,51 +109,48 @@ 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
|
-
|
|
123
|
+
constructor() {
|
|
124
|
+
super("MiLaboratories.Controller.Shared.LsAPI", []);
|
|
125
|
+
}
|
|
126
|
+
create(value?: PartialMessage<LsAPI>): LsAPI {
|
|
127
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
128
|
+
if (value !== undefined)
|
|
129
|
+
reflectionMergePartial<LsAPI>(this, message, value);
|
|
130
|
+
return message;
|
|
131
|
+
}
|
|
132
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI): LsAPI {
|
|
133
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
134
|
+
while (reader.pos < end) {
|
|
135
|
+
let [fieldNo, wireType] = reader.tag();
|
|
136
|
+
switch (fieldNo) {
|
|
137
|
+
default:
|
|
138
|
+
let u = options.readUnknownField;
|
|
139
|
+
if (u === "throw")
|
|
140
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
141
|
+
let d = reader.skip(wireType);
|
|
142
|
+
if (u !== false)
|
|
143
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return message;
|
|
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;
|
|
147
153
|
}
|
|
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
|
-
}
|
|
157
154
|
}
|
|
158
155
|
/**
|
|
159
156
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI
|
|
@@ -161,96 +158,93 @@ class LsAPI$Type extends MessageType<LsAPI> {
|
|
|
161
158
|
export const LsAPI = new LsAPI$Type();
|
|
162
159
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
163
160
|
class LsAPI_ListItem$Type extends MessageType<LsAPI_ListItem> {
|
|
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
|
-
|
|
222
|
-
|
|
161
|
+
constructor() {
|
|
162
|
+
super("MiLaboratories.Controller.Shared.LsAPI.ListItem", [
|
|
163
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
164
|
+
{ no: 2, name: "size", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
165
|
+
{ no: 3, name: "is_dir", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
166
|
+
{ no: 10, name: "full_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
167
|
+
{ no: 11, name: "directory", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
168
|
+
{ no: 12, name: "last_modified", kind: "message", T: () => Timestamp },
|
|
169
|
+
{ no: 13, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
170
|
+
]);
|
|
171
|
+
}
|
|
172
|
+
create(value?: PartialMessage<LsAPI_ListItem>): LsAPI_ListItem {
|
|
173
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
174
|
+
message.name = "";
|
|
175
|
+
message.size = 0n;
|
|
176
|
+
message.isDir = false;
|
|
177
|
+
message.fullName = "";
|
|
178
|
+
message.directory = "";
|
|
179
|
+
message.version = "";
|
|
180
|
+
if (value !== undefined)
|
|
181
|
+
reflectionMergePartial<LsAPI_ListItem>(this, message, value);
|
|
182
|
+
return message;
|
|
183
|
+
}
|
|
184
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_ListItem): LsAPI_ListItem {
|
|
185
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
186
|
+
while (reader.pos < end) {
|
|
187
|
+
let [fieldNo, wireType] = reader.tag();
|
|
188
|
+
switch (fieldNo) {
|
|
189
|
+
case /* string name */ 1:
|
|
190
|
+
message.name = reader.string();
|
|
191
|
+
break;
|
|
192
|
+
case /* uint64 size */ 2:
|
|
193
|
+
message.size = reader.uint64().toBigInt();
|
|
194
|
+
break;
|
|
195
|
+
case /* bool is_dir */ 3:
|
|
196
|
+
message.isDir = reader.bool();
|
|
197
|
+
break;
|
|
198
|
+
case /* string full_name */ 10:
|
|
199
|
+
message.fullName = reader.string();
|
|
200
|
+
break;
|
|
201
|
+
case /* string directory */ 11:
|
|
202
|
+
message.directory = reader.string();
|
|
203
|
+
break;
|
|
204
|
+
case /* google.protobuf.Timestamp last_modified */ 12:
|
|
205
|
+
message.lastModified = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastModified);
|
|
206
|
+
break;
|
|
207
|
+
case /* string version */ 13:
|
|
208
|
+
message.version = reader.string();
|
|
209
|
+
break;
|
|
210
|
+
default:
|
|
211
|
+
let u = options.readUnknownField;
|
|
212
|
+
if (u === "throw")
|
|
213
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
214
|
+
let d = reader.skip(wireType);
|
|
215
|
+
if (u !== false)
|
|
216
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return message;
|
|
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;
|
|
223
247
|
}
|
|
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
|
-
}
|
|
254
248
|
}
|
|
255
249
|
/**
|
|
256
250
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.ListItem
|
|
@@ -258,40 +252,37 @@ class LsAPI_ListItem$Type extends MessageType<LsAPI_ListItem> {
|
|
|
258
252
|
export const LsAPI_ListItem = new LsAPI_ListItem$Type();
|
|
259
253
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
260
254
|
class LsAPI_List$Type extends MessageType<LsAPI_List> {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
255
|
+
constructor() {
|
|
256
|
+
super("MiLaboratories.Controller.Shared.LsAPI.List", []);
|
|
257
|
+
}
|
|
258
|
+
create(value?: PartialMessage<LsAPI_List>): LsAPI_List {
|
|
259
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
260
|
+
if (value !== undefined)
|
|
261
|
+
reflectionMergePartial<LsAPI_List>(this, message, value);
|
|
262
|
+
return message;
|
|
263
|
+
}
|
|
264
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_List): LsAPI_List {
|
|
265
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
266
|
+
while (reader.pos < end) {
|
|
267
|
+
let [fieldNo, wireType] = reader.tag();
|
|
268
|
+
switch (fieldNo) {
|
|
269
|
+
default:
|
|
270
|
+
let u = options.readUnknownField;
|
|
271
|
+
if (u === "throw")
|
|
272
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
273
|
+
let d = reader.skip(wireType);
|
|
274
|
+
if (u !== false)
|
|
275
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
return message;
|
|
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;
|
|
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
|
-
}
|
|
295
286
|
}
|
|
296
287
|
/**
|
|
297
288
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.List
|
|
@@ -299,57 +290,54 @@ class LsAPI_List$Type extends MessageType<LsAPI_List> {
|
|
|
299
290
|
export const LsAPI_List = new LsAPI_List$Type();
|
|
300
291
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
301
292
|
class LsAPI_List_Request$Type extends MessageType<LsAPI_List_Request> {
|
|
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
|
-
|
|
293
|
+
constructor() {
|
|
294
|
+
super("MiLaboratories.Controller.Shared.LsAPI.List.Request", [
|
|
295
|
+
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
296
|
+
{ no: 2, name: "location", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
297
|
+
]);
|
|
298
|
+
}
|
|
299
|
+
create(value?: PartialMessage<LsAPI_List_Request>): LsAPI_List_Request {
|
|
300
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
301
|
+
message.resourceId = 0n;
|
|
302
|
+
message.location = "";
|
|
303
|
+
if (value !== undefined)
|
|
304
|
+
reflectionMergePartial<LsAPI_List_Request>(this, message, value);
|
|
305
|
+
return message;
|
|
306
|
+
}
|
|
307
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_List_Request): LsAPI_List_Request {
|
|
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 /* string location */ 2:
|
|
316
|
+
message.location = reader.string();
|
|
317
|
+
break;
|
|
318
|
+
default:
|
|
319
|
+
let u = options.readUnknownField;
|
|
320
|
+
if (u === "throw")
|
|
321
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
322
|
+
let d = reader.skip(wireType);
|
|
323
|
+
if (u !== false)
|
|
324
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
return message;
|
|
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;
|
|
337
340
|
}
|
|
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
|
-
}
|
|
353
341
|
}
|
|
354
342
|
/**
|
|
355
343
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Request
|
|
@@ -357,57 +345,54 @@ class LsAPI_List_Request$Type extends MessageType<LsAPI_List_Request> {
|
|
|
357
345
|
export const LsAPI_List_Request = new LsAPI_List_Request$Type();
|
|
358
346
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
359
347
|
class LsAPI_List_Response$Type extends MessageType<LsAPI_List_Response> {
|
|
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
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
348
|
+
constructor() {
|
|
349
|
+
super("MiLaboratories.Controller.Shared.LsAPI.List.Response", [
|
|
350
|
+
{ no: 1, name: "items", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => LsAPI_ListItem },
|
|
351
|
+
{ no: 2, name: "delimiter", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
352
|
+
]);
|
|
353
|
+
}
|
|
354
|
+
create(value?: PartialMessage<LsAPI_List_Response>): LsAPI_List_Response {
|
|
355
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
356
|
+
message.items = [];
|
|
357
|
+
message.delimiter = "";
|
|
358
|
+
if (value !== undefined)
|
|
359
|
+
reflectionMergePartial<LsAPI_List_Response>(this, message, value);
|
|
360
|
+
return message;
|
|
361
|
+
}
|
|
362
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_List_Response): LsAPI_List_Response {
|
|
363
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
364
|
+
while (reader.pos < end) {
|
|
365
|
+
let [fieldNo, wireType] = reader.tag();
|
|
366
|
+
switch (fieldNo) {
|
|
367
|
+
case /* repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items */ 1:
|
|
368
|
+
message.items.push(LsAPI_ListItem.internalBinaryRead(reader, reader.uint32(), options));
|
|
369
|
+
break;
|
|
370
|
+
case /* string delimiter */ 2:
|
|
371
|
+
message.delimiter = reader.string();
|
|
372
|
+
break;
|
|
373
|
+
default:
|
|
374
|
+
let u = options.readUnknownField;
|
|
375
|
+
if (u === "throw")
|
|
376
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
377
|
+
let d = reader.skip(wireType);
|
|
378
|
+
if (u !== false)
|
|
379
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
return message;
|
|
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;
|
|
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
|
-
}
|
|
411
396
|
}
|
|
412
397
|
/**
|
|
413
398
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Response
|
|
@@ -416,6 +401,6 @@ export const LsAPI_List_Response = new LsAPI_List_Response$Type();
|
|
|
416
401
|
/**
|
|
417
402
|
* @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.LS
|
|
418
403
|
*/
|
|
419
|
-
export const LS = new ServiceType(
|
|
420
|
-
|
|
404
|
+
export const LS = new ServiceType("MiLaboratories.Controller.Shared.LS", [
|
|
405
|
+
{ name: "List", options: {}, I: LsAPI_List_Request, O: LsAPI_List_Response }
|
|
421
406
|
]);
|