@milaboratories/pl-client 2.16.8 → 2.16.10
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/__external/.pnpm/{@rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.7.0_typescript@5.6.3 → @rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.8.1_typescript@5.6.3}/__external/tslib/tslib.es6.cjs +2 -2
- package/dist/__external/.pnpm/{@rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.7.0_typescript@5.6.3 → @rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.8.1_typescript@5.6.3}/__external/tslib/tslib.es6.cjs.map +1 -1
- package/dist/__external/.pnpm/{@rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.7.0_typescript@5.6.3 → @rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.8.1_typescript@5.6.3}/__external/tslib/tslib.es6.js +2 -2
- package/dist/__external/.pnpm/{@rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.7.0_typescript@5.6.3 → @rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.8.1_typescript@5.6.3}/__external/tslib/tslib.es6.js.map +1 -1
- package/dist/core/abstract_stream.d.ts +18 -0
- package/dist/core/abstract_stream.d.ts.map +1 -0
- package/dist/core/client.cjs +6 -6
- package/dist/core/client.cjs.map +1 -1
- package/dist/core/client.d.ts +3 -3
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/client.js +6 -6
- package/dist/core/client.js.map +1 -1
- package/dist/core/config.cjs +3 -0
- package/dist/core/config.cjs.map +1 -1
- package/dist/core/config.d.ts +4 -0
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +3 -1
- package/dist/core/config.js.map +1 -1
- package/dist/core/driver.cjs +11 -0
- package/dist/core/driver.cjs.map +1 -1
- package/dist/core/driver.d.ts +8 -2
- package/dist/core/driver.d.ts.map +1 -1
- package/dist/core/driver.js +11 -1
- package/dist/core/driver.js.map +1 -1
- package/dist/core/errors.cjs +9 -0
- package/dist/core/errors.cjs.map +1 -1
- package/dist/core/errors.d.ts +1 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +9 -0
- package/dist/core/errors.js.map +1 -1
- package/dist/core/ll_client.cjs +194 -39
- package/dist/core/ll_client.cjs.map +1 -1
- package/dist/core/ll_client.d.ts +36 -15
- package/dist/core/ll_client.d.ts.map +1 -1
- package/dist/core/ll_client.js +195 -40
- package/dist/core/ll_client.js.map +1 -1
- package/dist/core/ll_transaction.cjs.map +1 -1
- package/dist/core/ll_transaction.d.ts +3 -3
- package/dist/core/ll_transaction.d.ts.map +1 -1
- package/dist/core/ll_transaction.js.map +1 -1
- package/dist/core/transaction.cjs +2 -2
- package/dist/core/transaction.cjs.map +1 -1
- package/dist/core/transaction.js +2 -2
- package/dist/core/transaction.js.map +1 -1
- package/dist/core/type_conversion.cjs +2 -2
- package/dist/core/type_conversion.cjs.map +1 -1
- package/dist/core/type_conversion.d.ts +2 -2
- package/dist/core/type_conversion.d.ts.map +1 -1
- package/dist/core/type_conversion.js +2 -2
- package/dist/core/type_conversion.js.map +1 -1
- package/dist/core/unauth_client.cjs +4 -8
- package/dist/core/unauth_client.cjs.map +1 -1
- package/dist/core/unauth_client.d.ts +1 -1
- package/dist/core/unauth_client.d.ts.map +1 -1
- package/dist/core/unauth_client.js +4 -8
- package/dist/core/unauth_client.js.map +1 -1
- package/dist/core/wire.d.ts +34 -0
- package/dist/core/wire.d.ts.map +1 -0
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.cjs.map +1 -0
- package/dist/{proto → proto-grpc}/github.com/googleapis/googleapis/google/rpc/status.d.ts +4 -2
- package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.js.map +1 -0
- package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.cjs +25 -25
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.js.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -0
- package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.js +25 -25
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.js.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.js.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.cjs.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.js.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/ws-test.d.ts +73 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/ws-test.d.ts.map +1 -0
- package/dist/{proto → proto-grpc}/google/api/http.d.ts +28 -32
- package/dist/proto-grpc/google/api/http.d.ts.map +1 -0
- package/dist/proto-grpc/google/protobuf/any.cjs.map +1 -0
- package/dist/proto-grpc/google/protobuf/any.d.ts.map +1 -0
- package/dist/proto-grpc/google/protobuf/any.js.map +1 -0
- package/dist/{proto → proto-grpc}/google/protobuf/descriptor.d.ts +6 -152
- package/dist/proto-grpc/google/protobuf/descriptor.d.ts.map +1 -0
- package/dist/proto-grpc/google/protobuf/duration.cjs.map +1 -0
- package/dist/proto-grpc/google/protobuf/duration.d.ts.map +1 -0
- package/dist/proto-grpc/google/protobuf/duration.js.map +1 -0
- package/dist/proto-grpc/google/protobuf/empty.d.ts.map +1 -0
- package/dist/proto-grpc/google/protobuf/struct.d.ts.map +1 -0
- package/dist/proto-grpc/google/protobuf/timestamp.cjs.map +1 -0
- package/dist/proto-grpc/google/protobuf/timestamp.d.ts.map +1 -0
- package/dist/proto-grpc/google/protobuf/timestamp.js.map +1 -0
- package/dist/{proto → proto-grpc}/google/protobuf/wrappers.d.ts +0 -27
- package/dist/proto-grpc/google/protobuf/wrappers.d.ts.map +1 -0
- package/dist/proto-grpc/google/rpc/code.cjs +240 -0
- package/dist/proto-grpc/google/rpc/code.cjs.map +1 -0
- package/dist/proto-grpc/google/rpc/code.d.ts +219 -0
- package/dist/proto-grpc/google/rpc/code.d.ts.map +1 -0
- package/dist/proto-grpc/google/rpc/code.js +240 -0
- package/dist/proto-grpc/google/rpc/code.js.map +1 -0
- package/dist/proto-grpc/google/rpc/error_details.d.ts +654 -0
- package/dist/proto-grpc/google/rpc/error_details.d.ts.map +1 -0
- package/dist/proto-grpc/google/rpc/http.d.ts +121 -0
- package/dist/proto-grpc/google/rpc/http.d.ts.map +1 -0
- package/dist/proto-grpc/google/rpc/status.d.ts +55 -0
- package/dist/proto-grpc/google/rpc/status.d.ts.map +1 -0
- package/dist/proto-rest/index.cjs +64 -0
- package/dist/proto-rest/index.cjs.map +1 -0
- package/dist/proto-rest/index.d.ts +23 -0
- package/dist/proto-rest/index.d.ts.map +1 -0
- package/dist/proto-rest/index.js +61 -0
- package/dist/proto-rest/index.js.map +1 -0
- package/dist/proto-rest/plapi.d.ts +1488 -0
- package/dist/proto-rest/plapi.d.ts.map +1 -0
- package/package.json +8 -5
- package/src/core/abstract_stream.ts +25 -0
- package/src/core/client.ts +8 -8
- package/src/core/config.ts +9 -0
- package/src/core/driver.ts +13 -2
- package/src/core/errors.ts +7 -1
- package/src/core/ll_client.test.ts +1 -1
- package/src/core/ll_client.ts +212 -42
- package/src/core/ll_transaction.test.ts +1 -1
- package/src/core/ll_transaction.ts +4 -4
- package/src/core/transaction.ts +1 -1
- package/src/core/type_conversion.ts +3 -3
- package/src/core/unauth_client.test.ts +6 -0
- package/src/core/unauth_client.ts +8 -12
- package/src/core/wire.ts +40 -0
- package/src/index.ts +3 -1
- package/src/{proto → proto-grpc}/github.com/googleapis/googleapis/google/rpc/status.ts +5 -3
- package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.ts +25 -25
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/ws-test.ts +209 -0
- package/src/{proto → proto-grpc}/google/api/http.ts +29 -33
- package/src/{proto → proto-grpc}/google/protobuf/descriptor.ts +11 -221
- package/src/{proto → proto-grpc}/google/protobuf/wrappers.ts +4 -38
- package/src/proto-grpc/google/rpc/code.ts +236 -0
- package/src/proto-grpc/google/rpc/error_details.ts +1386 -0
- package/src/proto-grpc/google/rpc/http.ts +307 -0
- package/src/proto-grpc/google/rpc/status.ts +127 -0
- package/src/proto-rest/index.ts +83 -0
- package/src/proto-rest/plapi.ts +1488 -0
- package/dist/core/grpc.d.ts +0 -16
- package/dist/core/grpc.d.ts.map +0 -1
- package/dist/core/http.d.ts +0 -2
- package/dist/core/http.d.ts.map +0 -1
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.cjs.map +0 -1
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +0 -1
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.js.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +0 -40
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +0 -116
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +0 -46
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +0 -170
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +0 -51
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +0 -176
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +0 -131
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +0 -320
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.cjs.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.js.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.js.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.js.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.js.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.cjs.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.js.map +0 -1
- package/dist/proto/google/api/http.d.ts.map +0 -1
- package/dist/proto/google/protobuf/any.cjs.map +0 -1
- package/dist/proto/google/protobuf/any.d.ts.map +0 -1
- package/dist/proto/google/protobuf/any.js.map +0 -1
- package/dist/proto/google/protobuf/descriptor.d.ts.map +0 -1
- package/dist/proto/google/protobuf/duration.cjs.map +0 -1
- package/dist/proto/google/protobuf/duration.d.ts.map +0 -1
- package/dist/proto/google/protobuf/duration.js.map +0 -1
- package/dist/proto/google/protobuf/empty.d.ts.map +0 -1
- package/dist/proto/google/protobuf/struct.d.ts.map +0 -1
- package/dist/proto/google/protobuf/timestamp.cjs.map +0 -1
- package/dist/proto/google/protobuf/timestamp.d.ts.map +0 -1
- package/dist/proto/google/protobuf/timestamp.js.map +0 -1
- package/dist/proto/google/protobuf/wrappers.d.ts.map +0 -1
- package/src/core/grpc.ts +0 -17
- package/src/core/http.ts +0 -178
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +0 -45
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +0 -313
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +0 -51
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +0 -406
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +0 -59
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +0 -489
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +0 -148
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +0 -719
- /package/dist/{proto → proto-grpc}/github.com/googleapis/googleapis/google/rpc/status.cjs +0 -0
- /package/dist/{proto → proto-grpc}/github.com/googleapis/googleapis/google/rpc/status.js +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.client.js +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api_types.js +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/base_types.js +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/resource_types.cjs +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/resource_types.js +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/any.cjs +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/any.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/any.js +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/duration.cjs +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/duration.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/duration.js +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/empty.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/struct.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/timestamp.cjs +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/timestamp.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/timestamp.js +0 -0
- /package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +0 -0
- /package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +0 -0
- /package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +0 -0
- /package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/import.ts +0 -0
- /package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +0 -0
- /package/src/{proto → proto-grpc}/google/protobuf/any.ts +0 -0
- /package/src/{proto → proto-grpc}/google/protobuf/duration.ts +0 -0
- /package/src/{proto → proto-grpc}/google/protobuf/empty.ts +0 -0
- /package/src/{proto → proto-grpc}/google/protobuf/struct.ts +0 -0
- /package/src/{proto → proto-grpc}/google/protobuf/timestamp.ts +0 -0
package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts
DELETED
|
@@ -1,489 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
|
|
2
|
-
// @generated from protobuf file "github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.proto" (package "MiLaboratories.Controller.Shared", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
5
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
6
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
7
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
8
|
-
import 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 { Duration } from "../../../../../../../google/protobuf/duration";
|
|
15
|
-
/**
|
|
16
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI
|
|
17
|
-
*/
|
|
18
|
-
export interface ProgressAPI {
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.Report
|
|
22
|
-
*/
|
|
23
|
-
export interface ProgressAPI_Report {
|
|
24
|
-
/**
|
|
25
|
-
* @generated from protobuf field: float progress = 1
|
|
26
|
-
*/
|
|
27
|
-
progress: number;
|
|
28
|
-
/**
|
|
29
|
-
* @generated from protobuf field: uint64 bytes_processed = 2
|
|
30
|
-
*/
|
|
31
|
-
bytesProcessed: bigint;
|
|
32
|
-
/**
|
|
33
|
-
* @generated from protobuf field: uint64 bytes_total = 3
|
|
34
|
-
*/
|
|
35
|
-
bytesTotal: bigint;
|
|
36
|
-
/**
|
|
37
|
-
* @generated from protobuf field: bool done = 4
|
|
38
|
-
*/
|
|
39
|
-
done: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Name of current progress stage (if any)
|
|
42
|
-
*
|
|
43
|
-
* @generated from protobuf field: string name = 5
|
|
44
|
-
*/
|
|
45
|
-
name: string;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus
|
|
49
|
-
*/
|
|
50
|
-
export interface ProgressAPI_GetStatus {
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Request
|
|
54
|
-
*/
|
|
55
|
-
export interface ProgressAPI_GetStatus_Request {
|
|
56
|
-
/**
|
|
57
|
-
* @generated from protobuf field: uint64 resource_id = 1
|
|
58
|
-
*/
|
|
59
|
-
resourceId: bigint;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Response
|
|
63
|
-
*/
|
|
64
|
-
export interface ProgressAPI_GetStatus_Response {
|
|
65
|
-
/**
|
|
66
|
-
* @generated from protobuf field: MiLaboratories.Controller.Shared.ProgressAPI.Report report = 1
|
|
67
|
-
*/
|
|
68
|
-
report?: ProgressAPI_Report;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus
|
|
72
|
-
*/
|
|
73
|
-
export interface ProgressAPI_RealtimeStatus {
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Request
|
|
77
|
-
*/
|
|
78
|
-
export interface ProgressAPI_RealtimeStatus_Request {
|
|
79
|
-
/**
|
|
80
|
-
* @generated from protobuf field: uint64 resource_id = 1
|
|
81
|
-
*/
|
|
82
|
-
resourceId: bigint;
|
|
83
|
-
/**
|
|
84
|
-
* @generated from protobuf field: google.protobuf.Duration update_interval = 2
|
|
85
|
-
*/
|
|
86
|
-
updateInterval?: Duration;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Response
|
|
90
|
-
*/
|
|
91
|
-
export interface ProgressAPI_RealtimeStatus_Response {
|
|
92
|
-
/**
|
|
93
|
-
* @generated from protobuf field: MiLaboratories.Controller.Shared.ProgressAPI.Report report = 1
|
|
94
|
-
*/
|
|
95
|
-
report?: ProgressAPI_Report;
|
|
96
|
-
}
|
|
97
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
98
|
-
class ProgressAPI$Type extends MessageType<ProgressAPI> {
|
|
99
|
-
constructor() {
|
|
100
|
-
super("MiLaboratories.Controller.Shared.ProgressAPI", []);
|
|
101
|
-
}
|
|
102
|
-
create(value?: PartialMessage<ProgressAPI>): ProgressAPI {
|
|
103
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
104
|
-
if (value !== undefined)
|
|
105
|
-
reflectionMergePartial<ProgressAPI>(this, message, value);
|
|
106
|
-
return message;
|
|
107
|
-
}
|
|
108
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI): ProgressAPI {
|
|
109
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
110
|
-
while (reader.pos < end) {
|
|
111
|
-
let [fieldNo, wireType] = reader.tag();
|
|
112
|
-
switch (fieldNo) {
|
|
113
|
-
default:
|
|
114
|
-
let u = options.readUnknownField;
|
|
115
|
-
if (u === "throw")
|
|
116
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
117
|
-
let d = reader.skip(wireType);
|
|
118
|
-
if (u !== false)
|
|
119
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return message;
|
|
123
|
-
}
|
|
124
|
-
internalBinaryWrite(message: ProgressAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
125
|
-
let u = options.writeUnknownFields;
|
|
126
|
-
if (u !== false)
|
|
127
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
128
|
-
return writer;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI
|
|
133
|
-
*/
|
|
134
|
-
export const ProgressAPI = new ProgressAPI$Type();
|
|
135
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
136
|
-
class ProgressAPI_Report$Type extends MessageType<ProgressAPI_Report> {
|
|
137
|
-
constructor() {
|
|
138
|
-
super("MiLaboratories.Controller.Shared.ProgressAPI.Report", [
|
|
139
|
-
{ no: 1, name: "progress", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
|
|
140
|
-
{ no: 2, name: "bytes_processed", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
141
|
-
{ no: 3, name: "bytes_total", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
142
|
-
{ no: 4, name: "done", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
143
|
-
{ no: 5, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
144
|
-
]);
|
|
145
|
-
}
|
|
146
|
-
create(value?: PartialMessage<ProgressAPI_Report>): ProgressAPI_Report {
|
|
147
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
148
|
-
message.progress = 0;
|
|
149
|
-
message.bytesProcessed = 0n;
|
|
150
|
-
message.bytesTotal = 0n;
|
|
151
|
-
message.done = false;
|
|
152
|
-
message.name = "";
|
|
153
|
-
if (value !== undefined)
|
|
154
|
-
reflectionMergePartial<ProgressAPI_Report>(this, message, value);
|
|
155
|
-
return message;
|
|
156
|
-
}
|
|
157
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_Report): ProgressAPI_Report {
|
|
158
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
159
|
-
while (reader.pos < end) {
|
|
160
|
-
let [fieldNo, wireType] = reader.tag();
|
|
161
|
-
switch (fieldNo) {
|
|
162
|
-
case /* float progress */ 1:
|
|
163
|
-
message.progress = reader.float();
|
|
164
|
-
break;
|
|
165
|
-
case /* uint64 bytes_processed */ 2:
|
|
166
|
-
message.bytesProcessed = reader.uint64().toBigInt();
|
|
167
|
-
break;
|
|
168
|
-
case /* uint64 bytes_total */ 3:
|
|
169
|
-
message.bytesTotal = reader.uint64().toBigInt();
|
|
170
|
-
break;
|
|
171
|
-
case /* bool done */ 4:
|
|
172
|
-
message.done = reader.bool();
|
|
173
|
-
break;
|
|
174
|
-
case /* string name */ 5:
|
|
175
|
-
message.name = reader.string();
|
|
176
|
-
break;
|
|
177
|
-
default:
|
|
178
|
-
let u = options.readUnknownField;
|
|
179
|
-
if (u === "throw")
|
|
180
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
181
|
-
let d = reader.skip(wireType);
|
|
182
|
-
if (u !== false)
|
|
183
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
return message;
|
|
187
|
-
}
|
|
188
|
-
internalBinaryWrite(message: ProgressAPI_Report, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
189
|
-
/* float progress = 1; */
|
|
190
|
-
if (message.progress !== 0)
|
|
191
|
-
writer.tag(1, WireType.Bit32).float(message.progress);
|
|
192
|
-
/* uint64 bytes_processed = 2; */
|
|
193
|
-
if (message.bytesProcessed !== 0n)
|
|
194
|
-
writer.tag(2, WireType.Varint).uint64(message.bytesProcessed);
|
|
195
|
-
/* uint64 bytes_total = 3; */
|
|
196
|
-
if (message.bytesTotal !== 0n)
|
|
197
|
-
writer.tag(3, WireType.Varint).uint64(message.bytesTotal);
|
|
198
|
-
/* bool done = 4; */
|
|
199
|
-
if (message.done !== false)
|
|
200
|
-
writer.tag(4, WireType.Varint).bool(message.done);
|
|
201
|
-
/* string name = 5; */
|
|
202
|
-
if (message.name !== "")
|
|
203
|
-
writer.tag(5, WireType.LengthDelimited).string(message.name);
|
|
204
|
-
let u = options.writeUnknownFields;
|
|
205
|
-
if (u !== false)
|
|
206
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
207
|
-
return writer;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.Report
|
|
212
|
-
*/
|
|
213
|
-
export const ProgressAPI_Report = new ProgressAPI_Report$Type();
|
|
214
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
215
|
-
class ProgressAPI_GetStatus$Type extends MessageType<ProgressAPI_GetStatus> {
|
|
216
|
-
constructor() {
|
|
217
|
-
super("MiLaboratories.Controller.Shared.ProgressAPI.GetStatus", []);
|
|
218
|
-
}
|
|
219
|
-
create(value?: PartialMessage<ProgressAPI_GetStatus>): ProgressAPI_GetStatus {
|
|
220
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
221
|
-
if (value !== undefined)
|
|
222
|
-
reflectionMergePartial<ProgressAPI_GetStatus>(this, message, value);
|
|
223
|
-
return message;
|
|
224
|
-
}
|
|
225
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_GetStatus): ProgressAPI_GetStatus {
|
|
226
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
227
|
-
while (reader.pos < end) {
|
|
228
|
-
let [fieldNo, wireType] = reader.tag();
|
|
229
|
-
switch (fieldNo) {
|
|
230
|
-
default:
|
|
231
|
-
let u = options.readUnknownField;
|
|
232
|
-
if (u === "throw")
|
|
233
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
234
|
-
let d = reader.skip(wireType);
|
|
235
|
-
if (u !== false)
|
|
236
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
return message;
|
|
240
|
-
}
|
|
241
|
-
internalBinaryWrite(message: ProgressAPI_GetStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
242
|
-
let u = options.writeUnknownFields;
|
|
243
|
-
if (u !== false)
|
|
244
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
245
|
-
return writer;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus
|
|
250
|
-
*/
|
|
251
|
-
export const ProgressAPI_GetStatus = new ProgressAPI_GetStatus$Type();
|
|
252
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
253
|
-
class ProgressAPI_GetStatus_Request$Type extends MessageType<ProgressAPI_GetStatus_Request> {
|
|
254
|
-
constructor() {
|
|
255
|
-
super("MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Request", [
|
|
256
|
-
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
257
|
-
]);
|
|
258
|
-
}
|
|
259
|
-
create(value?: PartialMessage<ProgressAPI_GetStatus_Request>): ProgressAPI_GetStatus_Request {
|
|
260
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
261
|
-
message.resourceId = 0n;
|
|
262
|
-
if (value !== undefined)
|
|
263
|
-
reflectionMergePartial<ProgressAPI_GetStatus_Request>(this, message, value);
|
|
264
|
-
return message;
|
|
265
|
-
}
|
|
266
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_GetStatus_Request): ProgressAPI_GetStatus_Request {
|
|
267
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
268
|
-
while (reader.pos < end) {
|
|
269
|
-
let [fieldNo, wireType] = reader.tag();
|
|
270
|
-
switch (fieldNo) {
|
|
271
|
-
case /* uint64 resource_id */ 1:
|
|
272
|
-
message.resourceId = reader.uint64().toBigInt();
|
|
273
|
-
break;
|
|
274
|
-
default:
|
|
275
|
-
let u = options.readUnknownField;
|
|
276
|
-
if (u === "throw")
|
|
277
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
278
|
-
let d = reader.skip(wireType);
|
|
279
|
-
if (u !== false)
|
|
280
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
return message;
|
|
284
|
-
}
|
|
285
|
-
internalBinaryWrite(message: ProgressAPI_GetStatus_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
286
|
-
/* uint64 resource_id = 1; */
|
|
287
|
-
if (message.resourceId !== 0n)
|
|
288
|
-
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
289
|
-
let u = options.writeUnknownFields;
|
|
290
|
-
if (u !== false)
|
|
291
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
292
|
-
return writer;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Request
|
|
297
|
-
*/
|
|
298
|
-
export const ProgressAPI_GetStatus_Request = new ProgressAPI_GetStatus_Request$Type();
|
|
299
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
300
|
-
class ProgressAPI_GetStatus_Response$Type extends MessageType<ProgressAPI_GetStatus_Response> {
|
|
301
|
-
constructor() {
|
|
302
|
-
super("MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Response", [
|
|
303
|
-
{ no: 1, name: "report", kind: "message", T: () => ProgressAPI_Report }
|
|
304
|
-
]);
|
|
305
|
-
}
|
|
306
|
-
create(value?: PartialMessage<ProgressAPI_GetStatus_Response>): ProgressAPI_GetStatus_Response {
|
|
307
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
308
|
-
if (value !== undefined)
|
|
309
|
-
reflectionMergePartial<ProgressAPI_GetStatus_Response>(this, message, value);
|
|
310
|
-
return message;
|
|
311
|
-
}
|
|
312
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_GetStatus_Response): ProgressAPI_GetStatus_Response {
|
|
313
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
314
|
-
while (reader.pos < end) {
|
|
315
|
-
let [fieldNo, wireType] = reader.tag();
|
|
316
|
-
switch (fieldNo) {
|
|
317
|
-
case /* MiLaboratories.Controller.Shared.ProgressAPI.Report report */ 1:
|
|
318
|
-
message.report = ProgressAPI_Report.internalBinaryRead(reader, reader.uint32(), options, message.report);
|
|
319
|
-
break;
|
|
320
|
-
default:
|
|
321
|
-
let u = options.readUnknownField;
|
|
322
|
-
if (u === "throw")
|
|
323
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
324
|
-
let d = reader.skip(wireType);
|
|
325
|
-
if (u !== false)
|
|
326
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
return message;
|
|
330
|
-
}
|
|
331
|
-
internalBinaryWrite(message: ProgressAPI_GetStatus_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
332
|
-
/* MiLaboratories.Controller.Shared.ProgressAPI.Report report = 1; */
|
|
333
|
-
if (message.report)
|
|
334
|
-
ProgressAPI_Report.internalBinaryWrite(message.report, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
335
|
-
let u = options.writeUnknownFields;
|
|
336
|
-
if (u !== false)
|
|
337
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
338
|
-
return writer;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
/**
|
|
342
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Response
|
|
343
|
-
*/
|
|
344
|
-
export const ProgressAPI_GetStatus_Response = new ProgressAPI_GetStatus_Response$Type();
|
|
345
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
346
|
-
class ProgressAPI_RealtimeStatus$Type extends MessageType<ProgressAPI_RealtimeStatus> {
|
|
347
|
-
constructor() {
|
|
348
|
-
super("MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus", []);
|
|
349
|
-
}
|
|
350
|
-
create(value?: PartialMessage<ProgressAPI_RealtimeStatus>): ProgressAPI_RealtimeStatus {
|
|
351
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
352
|
-
if (value !== undefined)
|
|
353
|
-
reflectionMergePartial<ProgressAPI_RealtimeStatus>(this, message, value);
|
|
354
|
-
return message;
|
|
355
|
-
}
|
|
356
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_RealtimeStatus): ProgressAPI_RealtimeStatus {
|
|
357
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
358
|
-
while (reader.pos < end) {
|
|
359
|
-
let [fieldNo, wireType] = reader.tag();
|
|
360
|
-
switch (fieldNo) {
|
|
361
|
-
default:
|
|
362
|
-
let u = options.readUnknownField;
|
|
363
|
-
if (u === "throw")
|
|
364
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
365
|
-
let d = reader.skip(wireType);
|
|
366
|
-
if (u !== false)
|
|
367
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
return message;
|
|
371
|
-
}
|
|
372
|
-
internalBinaryWrite(message: ProgressAPI_RealtimeStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
373
|
-
let u = options.writeUnknownFields;
|
|
374
|
-
if (u !== false)
|
|
375
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
376
|
-
return writer;
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
/**
|
|
380
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus
|
|
381
|
-
*/
|
|
382
|
-
export const ProgressAPI_RealtimeStatus = new ProgressAPI_RealtimeStatus$Type();
|
|
383
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
384
|
-
class ProgressAPI_RealtimeStatus_Request$Type extends MessageType<ProgressAPI_RealtimeStatus_Request> {
|
|
385
|
-
constructor() {
|
|
386
|
-
super("MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Request", [
|
|
387
|
-
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
388
|
-
{ no: 2, name: "update_interval", kind: "message", T: () => Duration }
|
|
389
|
-
]);
|
|
390
|
-
}
|
|
391
|
-
create(value?: PartialMessage<ProgressAPI_RealtimeStatus_Request>): ProgressAPI_RealtimeStatus_Request {
|
|
392
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
393
|
-
message.resourceId = 0n;
|
|
394
|
-
if (value !== undefined)
|
|
395
|
-
reflectionMergePartial<ProgressAPI_RealtimeStatus_Request>(this, message, value);
|
|
396
|
-
return message;
|
|
397
|
-
}
|
|
398
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_RealtimeStatus_Request): ProgressAPI_RealtimeStatus_Request {
|
|
399
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
400
|
-
while (reader.pos < end) {
|
|
401
|
-
let [fieldNo, wireType] = reader.tag();
|
|
402
|
-
switch (fieldNo) {
|
|
403
|
-
case /* uint64 resource_id */ 1:
|
|
404
|
-
message.resourceId = reader.uint64().toBigInt();
|
|
405
|
-
break;
|
|
406
|
-
case /* google.protobuf.Duration update_interval */ 2:
|
|
407
|
-
message.updateInterval = Duration.internalBinaryRead(reader, reader.uint32(), options, message.updateInterval);
|
|
408
|
-
break;
|
|
409
|
-
default:
|
|
410
|
-
let u = options.readUnknownField;
|
|
411
|
-
if (u === "throw")
|
|
412
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
413
|
-
let d = reader.skip(wireType);
|
|
414
|
-
if (u !== false)
|
|
415
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
return message;
|
|
419
|
-
}
|
|
420
|
-
internalBinaryWrite(message: ProgressAPI_RealtimeStatus_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
421
|
-
/* uint64 resource_id = 1; */
|
|
422
|
-
if (message.resourceId !== 0n)
|
|
423
|
-
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
424
|
-
/* google.protobuf.Duration update_interval = 2; */
|
|
425
|
-
if (message.updateInterval)
|
|
426
|
-
Duration.internalBinaryWrite(message.updateInterval, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
427
|
-
let u = options.writeUnknownFields;
|
|
428
|
-
if (u !== false)
|
|
429
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
430
|
-
return writer;
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
/**
|
|
434
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Request
|
|
435
|
-
*/
|
|
436
|
-
export const ProgressAPI_RealtimeStatus_Request = new ProgressAPI_RealtimeStatus_Request$Type();
|
|
437
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
438
|
-
class ProgressAPI_RealtimeStatus_Response$Type extends MessageType<ProgressAPI_RealtimeStatus_Response> {
|
|
439
|
-
constructor() {
|
|
440
|
-
super("MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Response", [
|
|
441
|
-
{ no: 1, name: "report", kind: "message", T: () => ProgressAPI_Report }
|
|
442
|
-
]);
|
|
443
|
-
}
|
|
444
|
-
create(value?: PartialMessage<ProgressAPI_RealtimeStatus_Response>): ProgressAPI_RealtimeStatus_Response {
|
|
445
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
446
|
-
if (value !== undefined)
|
|
447
|
-
reflectionMergePartial<ProgressAPI_RealtimeStatus_Response>(this, message, value);
|
|
448
|
-
return message;
|
|
449
|
-
}
|
|
450
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_RealtimeStatus_Response): ProgressAPI_RealtimeStatus_Response {
|
|
451
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
452
|
-
while (reader.pos < end) {
|
|
453
|
-
let [fieldNo, wireType] = reader.tag();
|
|
454
|
-
switch (fieldNo) {
|
|
455
|
-
case /* MiLaboratories.Controller.Shared.ProgressAPI.Report report */ 1:
|
|
456
|
-
message.report = ProgressAPI_Report.internalBinaryRead(reader, reader.uint32(), options, message.report);
|
|
457
|
-
break;
|
|
458
|
-
default:
|
|
459
|
-
let u = options.readUnknownField;
|
|
460
|
-
if (u === "throw")
|
|
461
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
462
|
-
let d = reader.skip(wireType);
|
|
463
|
-
if (u !== false)
|
|
464
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
return message;
|
|
468
|
-
}
|
|
469
|
-
internalBinaryWrite(message: ProgressAPI_RealtimeStatus_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
470
|
-
/* MiLaboratories.Controller.Shared.ProgressAPI.Report report = 1; */
|
|
471
|
-
if (message.report)
|
|
472
|
-
ProgressAPI_Report.internalBinaryWrite(message.report, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
473
|
-
let u = options.writeUnknownFields;
|
|
474
|
-
if (u !== false)
|
|
475
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
476
|
-
return writer;
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
/**
|
|
480
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Response
|
|
481
|
-
*/
|
|
482
|
-
export const ProgressAPI_RealtimeStatus_Response = new ProgressAPI_RealtimeStatus_Response$Type();
|
|
483
|
-
/**
|
|
484
|
-
* @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Progress
|
|
485
|
-
*/
|
|
486
|
-
export const Progress = new ServiceType("MiLaboratories.Controller.Shared.Progress", [
|
|
487
|
-
{ name: "GetStatus", options: { "google.api.http": { get: "/resources/{resource_id}/get-progress" } }, I: ProgressAPI_GetStatus_Request, O: ProgressAPI_GetStatus_Response },
|
|
488
|
-
{ name: "RealtimeStatus", serverStreaming: true, options: {}, I: ProgressAPI_RealtimeStatus_Request, O: ProgressAPI_RealtimeStatus_Response }
|
|
489
|
-
]);
|
package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
|
|
2
|
-
// @generated from protobuf file "github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.proto" (package "MiLaboratories.Controller.Shared", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
5
|
-
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
6
|
-
import { Streaming } from "./protocol";
|
|
7
|
-
import type { StreamingAPI_LastLines } from "./protocol";
|
|
8
|
-
import type { StreamingAPI_ReadText } from "./protocol";
|
|
9
|
-
import type { StreamingAPI_StreamText } from "./protocol";
|
|
10
|
-
import type { StreamingAPI_ReadBinary } from "./protocol";
|
|
11
|
-
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
12
|
-
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
13
|
-
import type { StreamingAPI_Response } from "./protocol";
|
|
14
|
-
import type { StreamingAPI_StreamBinary } from "./protocol";
|
|
15
|
-
import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
|
|
16
|
-
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* Streaming provides access to online data stream from item in storage. Whenever item is appended with data,
|
|
20
|
-
* the caller receives this fresh data in stream from server.
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* @generated from protobuf service MiLaboratories.Controller.Shared.Streaming
|
|
24
|
-
*/
|
|
25
|
-
export interface IStreamingClient {
|
|
26
|
-
/**
|
|
27
|
-
* StreamBinary provides stream of binary file. Each response message keeps
|
|
28
|
-
* one single chunk of binary data from data source. See StreamingAPI.Binary message
|
|
29
|
-
* for more info on available options.
|
|
30
|
-
*
|
|
31
|
-
* @generated from protobuf rpc: StreamBinary
|
|
32
|
-
*/
|
|
33
|
-
streamBinary(input: StreamingAPI_StreamBinary, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamBinary, StreamingAPI_Response>;
|
|
34
|
-
/**
|
|
35
|
-
* ReadBinary allows to read remote item in chunks using stream-like API.
|
|
36
|
-
* The difference to StreamBinary is that the client receives single response for each
|
|
37
|
-
* call and has to send new calls to the server to get fresh data from remote item.
|
|
38
|
-
* Each response (each chunk from server) keeps not more than 3.9MiB of data.
|
|
39
|
-
*
|
|
40
|
-
* @generated from protobuf rpc: ReadBinary
|
|
41
|
-
*/
|
|
42
|
-
readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response>;
|
|
43
|
-
/**
|
|
44
|
-
* StreamText provides stream of textual file, splitting the data by newline symbol.
|
|
45
|
-
* Each response message keeps one single line of text from data source.
|
|
46
|
-
*
|
|
47
|
-
* @generated from protobuf rpc: StreamText
|
|
48
|
-
*/
|
|
49
|
-
streamText(input: StreamingAPI_StreamText, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamText, StreamingAPI_Response>;
|
|
50
|
-
/**
|
|
51
|
-
* ReadBinary allows to read remote item in chunks using stream-like API.
|
|
52
|
-
* The difference to StreamBinary is that the client receives single response for each
|
|
53
|
-
* call and has to send new calls to the server to get fresh data from remote item.
|
|
54
|
-
* Each response (each chunk from server) keeps not more than 3.9MiB of data.
|
|
55
|
-
*
|
|
56
|
-
* @generated from protobuf rpc: ReadText
|
|
57
|
-
*/
|
|
58
|
-
readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response>;
|
|
59
|
-
/**
|
|
60
|
-
* LastLines provides single message with the last lines from data source.
|
|
61
|
-
* When search pattern is specified, the last lines matching the given pattern are returned.
|
|
62
|
-
* The lines are returned in reversed order, as server reads data source from the end.
|
|
63
|
-
* Consider it as equivalent to 'tac <file> | grep <search> | head -n <line_count>'
|
|
64
|
-
* The <new_offset> returned in the response points to the _beginning_ of the last
|
|
65
|
-
* line found, so client can continue reading the file backwards in subsequent calls.
|
|
66
|
-
* This means, that use of this <new_offset> in ReadText() will return you the same line
|
|
67
|
-
* returned last in LastLines() data.
|
|
68
|
-
*
|
|
69
|
-
* @generated from protobuf rpc: LastLines
|
|
70
|
-
*/
|
|
71
|
-
lastLines(input: StreamingAPI_LastLines, options?: RpcOptions): UnaryCall<StreamingAPI_LastLines, StreamingAPI_Response>;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* Streaming provides access to online data stream from item in storage. Whenever item is appended with data,
|
|
76
|
-
* the caller receives this fresh data in stream from server.
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
* @generated from protobuf service MiLaboratories.Controller.Shared.Streaming
|
|
80
|
-
*/
|
|
81
|
-
export class StreamingClient implements IStreamingClient, ServiceInfo {
|
|
82
|
-
typeName = Streaming.typeName;
|
|
83
|
-
methods = Streaming.methods;
|
|
84
|
-
options = Streaming.options;
|
|
85
|
-
constructor(private readonly _transport: RpcTransport) {
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* StreamBinary provides stream of binary file. Each response message keeps
|
|
89
|
-
* one single chunk of binary data from data source. See StreamingAPI.Binary message
|
|
90
|
-
* for more info on available options.
|
|
91
|
-
*
|
|
92
|
-
* @generated from protobuf rpc: StreamBinary
|
|
93
|
-
*/
|
|
94
|
-
streamBinary(input: StreamingAPI_StreamBinary, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamBinary, StreamingAPI_Response> {
|
|
95
|
-
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
96
|
-
return stackIntercept<StreamingAPI_StreamBinary, StreamingAPI_Response>("serverStreaming", this._transport, method, opt, input);
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* ReadBinary allows to read remote item in chunks using stream-like API.
|
|
100
|
-
* The difference to StreamBinary is that the client receives single response for each
|
|
101
|
-
* call and has to send new calls to the server to get fresh data from remote item.
|
|
102
|
-
* Each response (each chunk from server) keeps not more than 3.9MiB of data.
|
|
103
|
-
*
|
|
104
|
-
* @generated from protobuf rpc: ReadBinary
|
|
105
|
-
*/
|
|
106
|
-
readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response> {
|
|
107
|
-
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
108
|
-
return stackIntercept<StreamingAPI_ReadBinary, StreamingAPI_Response>("unary", this._transport, method, opt, input);
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* StreamText provides stream of textual file, splitting the data by newline symbol.
|
|
112
|
-
* Each response message keeps one single line of text from data source.
|
|
113
|
-
*
|
|
114
|
-
* @generated from protobuf rpc: StreamText
|
|
115
|
-
*/
|
|
116
|
-
streamText(input: StreamingAPI_StreamText, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamText, StreamingAPI_Response> {
|
|
117
|
-
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
118
|
-
return stackIntercept<StreamingAPI_StreamText, StreamingAPI_Response>("serverStreaming", this._transport, method, opt, input);
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* ReadBinary allows to read remote item in chunks using stream-like API.
|
|
122
|
-
* The difference to StreamBinary is that the client receives single response for each
|
|
123
|
-
* call and has to send new calls to the server to get fresh data from remote item.
|
|
124
|
-
* Each response (each chunk from server) keeps not more than 3.9MiB of data.
|
|
125
|
-
*
|
|
126
|
-
* @generated from protobuf rpc: ReadText
|
|
127
|
-
*/
|
|
128
|
-
readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response> {
|
|
129
|
-
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
130
|
-
return stackIntercept<StreamingAPI_ReadText, StreamingAPI_Response>("unary", this._transport, method, opt, input);
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* LastLines provides single message with the last lines from data source.
|
|
134
|
-
* When search pattern is specified, the last lines matching the given pattern are returned.
|
|
135
|
-
* The lines are returned in reversed order, as server reads data source from the end.
|
|
136
|
-
* Consider it as equivalent to 'tac <file> | grep <search> | head -n <line_count>'
|
|
137
|
-
* The <new_offset> returned in the response points to the _beginning_ of the last
|
|
138
|
-
* line found, so client can continue reading the file backwards in subsequent calls.
|
|
139
|
-
* This means, that use of this <new_offset> in ReadText() will return you the same line
|
|
140
|
-
* returned last in LastLines() data.
|
|
141
|
-
*
|
|
142
|
-
* @generated from protobuf rpc: LastLines
|
|
143
|
-
*/
|
|
144
|
-
lastLines(input: StreamingAPI_LastLines, options?: RpcOptions): UnaryCall<StreamingAPI_LastLines, StreamingAPI_Response> {
|
|
145
|
-
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
146
|
-
return stackIntercept<StreamingAPI_LastLines, StreamingAPI_Response>("unary", this._transport, method, opt, input);
|
|
147
|
-
}
|
|
148
|
-
}
|