@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
package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// @generated by protobuf-ts 2.9.5 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
|
|
2
2
|
// @generated from protobuf file "github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/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
|
|
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.DownloadAPI
|
|
16
16
|
*/
|
|
@@ -25,78 +25,81 @@ export interface DownloadAPI_GetDownloadURL {
|
|
|
25
25
|
* @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Request
|
|
26
26
|
*/
|
|
27
27
|
export interface DownloadAPI_GetDownloadURL_Request {
|
|
28
|
-
|
|
28
|
+
/**
|
|
29
29
|
* @generated from protobuf field: uint64 resource_id = 1;
|
|
30
30
|
*/
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
resourceId: bigint;
|
|
32
|
+
/**
|
|
33
33
|
* Pass `true` here if the blob will be downloaded from internal network,
|
|
34
34
|
* e.g. controllers could use this if they are trying to download something from internal network.
|
|
35
35
|
* For backward compatibility, by default pl treats all requests as from external network.
|
|
36
36
|
*
|
|
37
37
|
* @generated from protobuf field: bool is_internal_use = 2;
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
isInternalUse: boolean;
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader
|
|
43
43
|
*/
|
|
44
44
|
export interface DownloadAPI_GetDownloadURL_HTTPHeader {
|
|
45
|
-
|
|
45
|
+
/**
|
|
46
46
|
* @generated from protobuf field: string Name = 1 [json_name = "Name"];
|
|
47
47
|
*/
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
name: string;
|
|
49
|
+
/**
|
|
50
50
|
* @generated from protobuf field: string Value = 2 [json_name = "Value"];
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
value: string;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
55
|
* @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Response
|
|
56
56
|
*/
|
|
57
57
|
export interface DownloadAPI_GetDownloadURL_Response {
|
|
58
|
-
|
|
58
|
+
/**
|
|
59
59
|
* @generated from protobuf field: string download_url = 1;
|
|
60
60
|
*/
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
downloadUrl: string;
|
|
62
|
+
/**
|
|
63
63
|
* @generated from protobuf field: repeated MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader headers = 2;
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
headers: DownloadAPI_GetDownloadURL_HTTPHeader[];
|
|
66
66
|
}
|
|
67
67
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
68
68
|
class DownloadAPI$Type extends MessageType<DownloadAPI> {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
internalBinaryWrite(message: DownloadAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
95
|
-
let u = options.writeUnknownFields;
|
|
96
|
-
if (u !== false)
|
|
97
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
98
|
-
return writer;
|
|
69
|
+
constructor() {
|
|
70
|
+
super('MiLaboratories.Controller.Shared.DownloadAPI', []);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
create(value?: PartialMessage<DownloadAPI>): DownloadAPI {
|
|
74
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
75
|
+
if (value !== undefined)
|
|
76
|
+
reflectionMergePartial<DownloadAPI>(this, message, value);
|
|
77
|
+
return message;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI): DownloadAPI {
|
|
81
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
82
|
+
while (reader.pos < end) {
|
|
83
|
+
const [fieldNo, wireType] = reader.tag();
|
|
84
|
+
switch (fieldNo) {
|
|
85
|
+
default:
|
|
86
|
+
const u = options.readUnknownField;
|
|
87
|
+
if (u === 'throw')
|
|
88
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
89
|
+
const d = reader.skip(wireType);
|
|
90
|
+
if (u !== false)
|
|
91
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
92
|
+
}
|
|
99
93
|
}
|
|
94
|
+
return message;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
internalBinaryWrite(message: DownloadAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
98
|
+
const u = options.writeUnknownFields;
|
|
99
|
+
if (u !== false)
|
|
100
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
101
|
+
return writer;
|
|
102
|
+
}
|
|
100
103
|
}
|
|
101
104
|
/**
|
|
102
105
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI
|
|
@@ -104,37 +107,40 @@ class DownloadAPI$Type extends MessageType<DownloadAPI> {
|
|
|
104
107
|
export const DownloadAPI = new DownloadAPI$Type();
|
|
105
108
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
106
109
|
class DownloadAPI_GetDownloadURL$Type extends MessageType<DownloadAPI_GetDownloadURL> {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
internalBinaryWrite(message: DownloadAPI_GetDownloadURL, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
133
|
-
let u = options.writeUnknownFields;
|
|
134
|
-
if (u !== false)
|
|
135
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
136
|
-
return writer;
|
|
110
|
+
constructor() {
|
|
111
|
+
super('MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL', []);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
create(value?: PartialMessage<DownloadAPI_GetDownloadURL>): DownloadAPI_GetDownloadURL {
|
|
115
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
116
|
+
if (value !== undefined)
|
|
117
|
+
reflectionMergePartial<DownloadAPI_GetDownloadURL>(this, message, value);
|
|
118
|
+
return message;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI_GetDownloadURL): DownloadAPI_GetDownloadURL {
|
|
122
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
123
|
+
while (reader.pos < end) {
|
|
124
|
+
const [fieldNo, wireType] = reader.tag();
|
|
125
|
+
switch (fieldNo) {
|
|
126
|
+
default:
|
|
127
|
+
const u = options.readUnknownField;
|
|
128
|
+
if (u === 'throw')
|
|
129
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
130
|
+
const d = reader.skip(wireType);
|
|
131
|
+
if (u !== false)
|
|
132
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
133
|
+
}
|
|
137
134
|
}
|
|
135
|
+
return message;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
internalBinaryWrite(message: DownloadAPI_GetDownloadURL, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
139
|
+
const u = options.writeUnknownFields;
|
|
140
|
+
if (u !== false)
|
|
141
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
142
|
+
return writer;
|
|
143
|
+
}
|
|
138
144
|
}
|
|
139
145
|
/**
|
|
140
146
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL
|
|
@@ -142,54 +148,57 @@ class DownloadAPI_GetDownloadURL$Type extends MessageType<DownloadAPI_GetDownloa
|
|
|
142
148
|
export const DownloadAPI_GetDownloadURL = new DownloadAPI_GetDownloadURL$Type();
|
|
143
149
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
144
150
|
class DownloadAPI_GetDownloadURL_Request$Type extends MessageType<DownloadAPI_GetDownloadURL_Request> {
|
|
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
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
181
|
-
internalBinaryWrite(message: DownloadAPI_GetDownloadURL_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
182
|
-
/* uint64 resource_id = 1; */
|
|
183
|
-
if (message.resourceId !== 0n)
|
|
184
|
-
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
185
|
-
/* bool is_internal_use = 2; */
|
|
186
|
-
if (message.isInternalUse !== false)
|
|
187
|
-
writer.tag(2, WireType.Varint).bool(message.isInternalUse);
|
|
188
|
-
let u = options.writeUnknownFields;
|
|
189
|
-
if (u !== false)
|
|
190
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
191
|
-
return writer;
|
|
151
|
+
constructor() {
|
|
152
|
+
super('MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Request', [
|
|
153
|
+
{ no: 1, name: 'resource_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
|
|
154
|
+
{ no: 2, name: 'is_internal_use', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
155
|
+
]);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
create(value?: PartialMessage<DownloadAPI_GetDownloadURL_Request>): DownloadAPI_GetDownloadURL_Request {
|
|
159
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
160
|
+
message.resourceId = 0n;
|
|
161
|
+
message.isInternalUse = false;
|
|
162
|
+
if (value !== undefined)
|
|
163
|
+
reflectionMergePartial<DownloadAPI_GetDownloadURL_Request>(this, message, value);
|
|
164
|
+
return message;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI_GetDownloadURL_Request): DownloadAPI_GetDownloadURL_Request {
|
|
168
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
169
|
+
while (reader.pos < end) {
|
|
170
|
+
const [fieldNo, wireType] = reader.tag();
|
|
171
|
+
switch (fieldNo) {
|
|
172
|
+
case /* uint64 resource_id */ 1:
|
|
173
|
+
message.resourceId = reader.uint64().toBigInt();
|
|
174
|
+
break;
|
|
175
|
+
case /* bool is_internal_use */ 2:
|
|
176
|
+
message.isInternalUse = reader.bool();
|
|
177
|
+
break;
|
|
178
|
+
default:
|
|
179
|
+
const u = options.readUnknownField;
|
|
180
|
+
if (u === 'throw')
|
|
181
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
182
|
+
const d = reader.skip(wireType);
|
|
183
|
+
if (u !== false)
|
|
184
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
185
|
+
}
|
|
192
186
|
}
|
|
187
|
+
return message;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
internalBinaryWrite(message: DownloadAPI_GetDownloadURL_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
191
|
+
/* uint64 resource_id = 1; */
|
|
192
|
+
if (message.resourceId !== 0n)
|
|
193
|
+
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
194
|
+
/* bool is_internal_use = 2; */
|
|
195
|
+
if (message.isInternalUse !== false)
|
|
196
|
+
writer.tag(2, WireType.Varint).bool(message.isInternalUse);
|
|
197
|
+
const u = options.writeUnknownFields;
|
|
198
|
+
if (u !== false)
|
|
199
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
200
|
+
return writer;
|
|
201
|
+
}
|
|
193
202
|
}
|
|
194
203
|
/**
|
|
195
204
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Request
|
|
@@ -197,54 +206,57 @@ class DownloadAPI_GetDownloadURL_Request$Type extends MessageType<DownloadAPI_Ge
|
|
|
197
206
|
export const DownloadAPI_GetDownloadURL_Request = new DownloadAPI_GetDownloadURL_Request$Type();
|
|
198
207
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
199
208
|
class DownloadAPI_GetDownloadURL_HTTPHeader$Type extends MessageType<DownloadAPI_GetDownloadURL_HTTPHeader> {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
}
|
|
236
|
-
internalBinaryWrite(message: DownloadAPI_GetDownloadURL_HTTPHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
237
|
-
/* string Name = 1 [json_name = "Name"]; */
|
|
238
|
-
if (message.name !== "")
|
|
239
|
-
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
240
|
-
/* string Value = 2 [json_name = "Value"]; */
|
|
241
|
-
if (message.value !== "")
|
|
242
|
-
writer.tag(2, WireType.LengthDelimited).string(message.value);
|
|
243
|
-
let u = options.writeUnknownFields;
|
|
244
|
-
if (u !== false)
|
|
245
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
246
|
-
return writer;
|
|
209
|
+
constructor() {
|
|
210
|
+
super('MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader', [
|
|
211
|
+
{ no: 1, name: 'Name', kind: 'scalar', jsonName: 'Name', T: 9 /* ScalarType.STRING */ },
|
|
212
|
+
{ no: 2, name: 'Value', kind: 'scalar', jsonName: 'Value', T: 9 /* ScalarType.STRING */ },
|
|
213
|
+
]);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
create(value?: PartialMessage<DownloadAPI_GetDownloadURL_HTTPHeader>): DownloadAPI_GetDownloadURL_HTTPHeader {
|
|
217
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
218
|
+
message.name = '';
|
|
219
|
+
message.value = '';
|
|
220
|
+
if (value !== undefined)
|
|
221
|
+
reflectionMergePartial<DownloadAPI_GetDownloadURL_HTTPHeader>(this, message, value);
|
|
222
|
+
return message;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI_GetDownloadURL_HTTPHeader): DownloadAPI_GetDownloadURL_HTTPHeader {
|
|
226
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
227
|
+
while (reader.pos < end) {
|
|
228
|
+
const [fieldNo, wireType] = reader.tag();
|
|
229
|
+
switch (fieldNo) {
|
|
230
|
+
case /* string Name = 1 [json_name = "Name"]; */ 1:
|
|
231
|
+
message.name = reader.string();
|
|
232
|
+
break;
|
|
233
|
+
case /* string Value = 2 [json_name = "Value"]; */ 2:
|
|
234
|
+
message.value = reader.string();
|
|
235
|
+
break;
|
|
236
|
+
default:
|
|
237
|
+
const u = options.readUnknownField;
|
|
238
|
+
if (u === 'throw')
|
|
239
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
240
|
+
const d = reader.skip(wireType);
|
|
241
|
+
if (u !== false)
|
|
242
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
243
|
+
}
|
|
247
244
|
}
|
|
245
|
+
return message;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
internalBinaryWrite(message: DownloadAPI_GetDownloadURL_HTTPHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
249
|
+
/* string Name = 1 [json_name = "Name"]; */
|
|
250
|
+
if (message.name !== '')
|
|
251
|
+
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
252
|
+
/* string Value = 2 [json_name = "Value"]; */
|
|
253
|
+
if (message.value !== '')
|
|
254
|
+
writer.tag(2, WireType.LengthDelimited).string(message.value);
|
|
255
|
+
const u = options.writeUnknownFields;
|
|
256
|
+
if (u !== false)
|
|
257
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
258
|
+
return writer;
|
|
259
|
+
}
|
|
248
260
|
}
|
|
249
261
|
/**
|
|
250
262
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader
|
|
@@ -252,54 +264,57 @@ class DownloadAPI_GetDownloadURL_HTTPHeader$Type extends MessageType<DownloadAPI
|
|
|
252
264
|
export const DownloadAPI_GetDownloadURL_HTTPHeader = new DownloadAPI_GetDownloadURL_HTTPHeader$Type();
|
|
253
265
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
254
266
|
class DownloadAPI_GetDownloadURL_Response$Type extends MessageType<DownloadAPI_GetDownloadURL_Response> {
|
|
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
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}
|
|
291
|
-
internalBinaryWrite(message: DownloadAPI_GetDownloadURL_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
292
|
-
/* string download_url = 1; */
|
|
293
|
-
if (message.downloadUrl !== "")
|
|
294
|
-
writer.tag(1, WireType.LengthDelimited).string(message.downloadUrl);
|
|
295
|
-
/* repeated MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader headers = 2; */
|
|
296
|
-
for (let i = 0; i < message.headers.length; i++)
|
|
297
|
-
DownloadAPI_GetDownloadURL_HTTPHeader.internalBinaryWrite(message.headers[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
298
|
-
let u = options.writeUnknownFields;
|
|
299
|
-
if (u !== false)
|
|
300
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
301
|
-
return writer;
|
|
267
|
+
constructor() {
|
|
268
|
+
super('MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Response', [
|
|
269
|
+
{ no: 1, name: 'download_url', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
270
|
+
{ no: 2, name: 'headers', kind: 'message', repeat: 1 /* RepeatType.PACKED */, T: () => DownloadAPI_GetDownloadURL_HTTPHeader },
|
|
271
|
+
]);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
create(value?: PartialMessage<DownloadAPI_GetDownloadURL_Response>): DownloadAPI_GetDownloadURL_Response {
|
|
275
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
276
|
+
message.downloadUrl = '';
|
|
277
|
+
message.headers = [];
|
|
278
|
+
if (value !== undefined)
|
|
279
|
+
reflectionMergePartial<DownloadAPI_GetDownloadURL_Response>(this, message, value);
|
|
280
|
+
return message;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI_GetDownloadURL_Response): DownloadAPI_GetDownloadURL_Response {
|
|
284
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
285
|
+
while (reader.pos < end) {
|
|
286
|
+
const [fieldNo, wireType] = reader.tag();
|
|
287
|
+
switch (fieldNo) {
|
|
288
|
+
case /* string download_url */ 1:
|
|
289
|
+
message.downloadUrl = reader.string();
|
|
290
|
+
break;
|
|
291
|
+
case /* repeated MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader headers */ 2:
|
|
292
|
+
message.headers.push(DownloadAPI_GetDownloadURL_HTTPHeader.internalBinaryRead(reader, reader.uint32(), options));
|
|
293
|
+
break;
|
|
294
|
+
default:
|
|
295
|
+
const u = options.readUnknownField;
|
|
296
|
+
if (u === 'throw')
|
|
297
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
298
|
+
const d = reader.skip(wireType);
|
|
299
|
+
if (u !== false)
|
|
300
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
301
|
+
}
|
|
302
302
|
}
|
|
303
|
+
return message;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
internalBinaryWrite(message: DownloadAPI_GetDownloadURL_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
307
|
+
/* string download_url = 1; */
|
|
308
|
+
if (message.downloadUrl !== '')
|
|
309
|
+
writer.tag(1, WireType.LengthDelimited).string(message.downloadUrl);
|
|
310
|
+
/* repeated MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader headers = 2; */
|
|
311
|
+
for (let i = 0; i < message.headers.length; i++)
|
|
312
|
+
DownloadAPI_GetDownloadURL_HTTPHeader.internalBinaryWrite(message.headers[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
313
|
+
const u = options.writeUnknownFields;
|
|
314
|
+
if (u !== false)
|
|
315
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
316
|
+
return writer;
|
|
317
|
+
}
|
|
303
318
|
}
|
|
304
319
|
/**
|
|
305
320
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Response
|
|
@@ -308,6 +323,6 @@ export const DownloadAPI_GetDownloadURL_Response = new DownloadAPI_GetDownloadUR
|
|
|
308
323
|
/**
|
|
309
324
|
* @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Download
|
|
310
325
|
*/
|
|
311
|
-
export const Download = new ServiceType(
|
|
312
|
-
|
|
326
|
+
export const Download = new ServiceType('MiLaboratories.Controller.Shared.Download', [
|
|
327
|
+
{ name: 'GetDownloadURL', options: { 'google.api.http': { get: '/resources/{resource_id}/get-download-url' } }, I: DownloadAPI_GetDownloadURL_Request, O: DownloadAPI_GetDownloadURL_Response },
|
|
313
328
|
]);
|
package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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 type { RpcTransport } from
|
|
5
|
-
import type { ServiceInfo } from
|
|
6
|
-
import { LS } from
|
|
7
|
-
import { stackIntercept } from
|
|
8
|
-
import type { LsAPI_List_Response } from
|
|
9
|
-
import type { LsAPI_List_Request } from
|
|
10
|
-
import type { UnaryCall } from
|
|
11
|
-
import type { RpcOptions } from
|
|
4
|
+
import type { RpcTransport } from '@protobuf-ts/runtime-rpc';
|
|
5
|
+
import type { ServiceInfo } from '@protobuf-ts/runtime-rpc';
|
|
6
|
+
import { LS } from './protocol';
|
|
7
|
+
import { stackIntercept } from '@protobuf-ts/runtime-rpc';
|
|
8
|
+
import type { LsAPI_List_Response } from './protocol';
|
|
9
|
+
import type { LsAPI_List_Request } from './protocol';
|
|
10
|
+
import type { UnaryCall } from '@protobuf-ts/runtime-rpc';
|
|
11
|
+
import type { RpcOptions } from '@protobuf-ts/runtime-rpc';
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* LS provides access to lists of blobs (files, S3 objects and so on) is some storage.
|
|
@@ -20,10 +20,10 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
|
20
20
|
* @generated from protobuf service MiLaboratories.Controller.Shared.LS
|
|
21
21
|
*/
|
|
22
22
|
export interface ILSClient {
|
|
23
|
-
|
|
23
|
+
/**
|
|
24
24
|
* @generated from protobuf rpc: List(MiLaboratories.Controller.Shared.LsAPI.List.Request) returns (MiLaboratories.Controller.Shared.LsAPI.List.Response);
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
list(input: LsAPI_List_Request, options?: RpcOptions): UnaryCall<LsAPI_List_Request, LsAPI_List_Response>;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
@@ -36,16 +36,17 @@ export interface ILSClient {
|
|
|
36
36
|
* @generated from protobuf service MiLaboratories.Controller.Shared.LS
|
|
37
37
|
*/
|
|
38
38
|
export class LSClient implements ILSClient, ServiceInfo {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
typeName = LS.typeName;
|
|
40
|
+
methods = LS.methods;
|
|
41
|
+
options = LS.options;
|
|
42
|
+
constructor(private readonly _transport: RpcTransport) {
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
45
46
|
* @generated from protobuf rpc: List(MiLaboratories.Controller.Shared.LsAPI.List.Request) returns (MiLaboratories.Controller.Shared.LsAPI.List.Response);
|
|
46
47
|
*/
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
list(input: LsAPI_List_Request, options?: RpcOptions): UnaryCall<LsAPI_List_Request, LsAPI_List_Response> {
|
|
49
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
50
|
+
return stackIntercept<LsAPI_List_Request, LsAPI_List_Response>('unary', this._transport, method, opt, input);
|
|
51
|
+
}
|
|
51
52
|
}
|