@milaboratories/pl-drivers 1.11.18 → 1.11.20
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/clients/constructors.cjs +5 -5
- package/dist/clients/constructors.cjs.map +1 -1
- package/dist/clients/constructors.js +5 -5
- package/dist/clients/constructors.js.map +1 -1
- package/dist/clients/download.cjs +29 -5
- package/dist/clients/download.cjs.map +1 -1
- package/dist/clients/download.d.ts +5 -4
- package/dist/clients/download.d.ts.map +1 -1
- package/dist/clients/download.js +30 -6
- package/dist/clients/download.js.map +1 -1
- package/dist/clients/logs.cjs +57 -16
- package/dist/clients/logs.cjs.map +1 -1
- package/dist/clients/logs.d.ts +6 -5
- package/dist/clients/logs.d.ts.map +1 -1
- package/dist/clients/logs.js +58 -17
- package/dist/clients/logs.js.map +1 -1
- package/dist/clients/ls_api.cjs +44 -8
- package/dist/clients/ls_api.cjs.map +1 -1
- package/dist/clients/ls_api.d.ts +4 -4
- package/dist/clients/ls_api.d.ts.map +1 -1
- package/dist/clients/ls_api.js +45 -9
- package/dist/clients/ls_api.js.map +1 -1
- package/dist/clients/progress.cjs +32 -29
- package/dist/clients/progress.cjs.map +1 -1
- package/dist/clients/progress.d.ts +5 -5
- package/dist/clients/progress.d.ts.map +1 -1
- package/dist/clients/progress.js +33 -30
- package/dist/clients/progress.js.map +1 -1
- package/dist/clients/upload.cjs +96 -30
- package/dist/clients/upload.cjs.map +1 -1
- package/dist/clients/upload.d.ts +8 -11
- package/dist/clients/upload.d.ts.map +1 -1
- package/dist/clients/upload.js +97 -31
- package/dist/clients/upload.js.map +1 -1
- package/dist/drivers/download_blob/download_blob.cjs +2 -2
- package/dist/drivers/download_blob/download_blob.cjs.map +1 -1
- package/dist/drivers/download_blob/download_blob.js +1 -1
- package/dist/drivers/download_blob/download_blob.js.map +1 -1
- package/dist/drivers/download_blob/download_blob_task.cjs +5 -5
- package/dist/drivers/download_blob/download_blob_task.cjs.map +1 -1
- package/dist/drivers/download_blob/download_blob_task.js +2 -2
- package/dist/drivers/download_blob/download_blob_task.js.map +1 -1
- package/dist/drivers/download_blob_url/task.cjs +5 -5
- package/dist/drivers/download_blob_url/task.cjs.map +1 -1
- package/dist/drivers/download_blob_url/task.js +2 -2
- package/dist/drivers/download_blob_url/task.js.map +1 -1
- package/dist/drivers/download_url/task.cjs +2 -2
- package/dist/drivers/download_url/task.cjs.map +1 -1
- package/dist/drivers/download_url/task.js +2 -2
- package/dist/drivers/download_url/task.js.map +1 -1
- package/dist/drivers/logs_stream.cjs.map +1 -1
- package/dist/drivers/logs_stream.js.map +1 -1
- package/dist/helpers/download.cjs +5 -24
- package/dist/helpers/download.cjs.map +1 -1
- package/dist/helpers/download.d.ts +0 -13
- package/dist/helpers/download.d.ts.map +1 -1
- package/dist/helpers/download.js +5 -21
- package/dist/helpers/download.js.map +1 -1
- package/dist/helpers/download_errors.cjs +43 -0
- package/dist/helpers/download_errors.cjs.map +1 -0
- package/dist/helpers/download_errors.d.ts +23 -0
- package/dist/helpers/download_errors.d.ts.map +1 -0
- package/dist/helpers/download_errors.js +36 -0
- package/dist/helpers/download_errors.js.map +1 -0
- package/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.cjs +2 -2
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.cjs.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.cjs.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.js.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -0
- package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.js +2 -2
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.js.map +1 -0
- package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.cjs +2 -2
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.cjs.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.cjs.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.js.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -0
- package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.js +2 -2
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.js.map +1 -0
- package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.cjs +3 -3
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.cjs.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.cjs.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.js.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -0
- package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.js +3 -3
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.js.map +1 -0
- package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.cjs +6 -6
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.cjs.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.cjs.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.js.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -0
- package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.js +6 -6
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.js.map +1 -0
- package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.cjs +84 -84
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.cjs.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.cjs.map +1 -0
- package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts +16 -16
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.js.map +1 -0
- package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts +118 -118
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts.map +1 -0
- package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js +76 -76
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js.map +1 -0
- package/dist/proto-grpc/google/api/http.d.ts.map +1 -0
- package/dist/{proto → proto-grpc}/google/protobuf/descriptor.d.ts +5 -149
- 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/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-rest/downloadapi.d.ts +105 -0
- package/dist/proto-rest/downloadapi.d.ts.map +1 -0
- package/dist/proto-rest/index.d.ts +17 -0
- package/dist/proto-rest/index.d.ts.map +1 -0
- package/dist/proto-rest/lsapi.d.ts +148 -0
- package/dist/proto-rest/lsapi.d.ts.map +1 -0
- package/dist/proto-rest/progressapi.d.ts +159 -0
- package/dist/proto-rest/progressapi.d.ts.map +1 -0
- package/dist/proto-rest/streamingapi.d.ts +469 -0
- package/dist/proto-rest/streamingapi.d.ts.map +1 -0
- package/dist/proto-rest/uploadapi.d.ts +355 -0
- package/dist/proto-rest/uploadapi.d.ts.map +1 -0
- package/package.json +10 -6
- package/src/clients/constructors.ts +11 -11
- package/src/clients/download.ts +34 -11
- package/src/clients/logs.ts +69 -21
- package/src/clients/ls_api.ts +58 -14
- package/src/clients/progress.ts +41 -44
- package/src/clients/upload.ts +117 -53
- package/src/drivers/download_blob/download_blob.ts +1 -1
- package/src/drivers/download_blob/download_blob_task.ts +2 -2
- package/src/drivers/download_blob_url/task.ts +2 -2
- package/src/drivers/download_url/task.ts +2 -2
- package/src/drivers/logs_stream.ts +1 -1
- package/src/drivers/upload.test.ts +6 -25
- package/src/helpers/download.ts +4 -26
- package/src/helpers/download_errors.ts +40 -0
- package/src/index.ts +1 -0
- package/src/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +1 -1
- package/src/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +2 -2
- package/src/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +1 -1
- package/src/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +2 -2
- package/src/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +1 -1
- package/src/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +3 -3
- package/src/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +1 -1
- package/src/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +6 -6
- package/src/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.ts +21 -21
- package/src/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.ts +159 -159
- package/src/{proto → proto-grpc}/google/api/http.ts +1 -1
- package/src/{proto → proto-grpc}/google/protobuf/descriptor.ts +9 -217
- package/src/{proto → proto-grpc}/google/protobuf/duration.ts +1 -1
- package/src/{proto → proto-grpc}/google/protobuf/timestamp.ts +1 -1
- package/src/proto-rest/downloadapi.ts +105 -0
- package/src/proto-rest/index.ts +28 -0
- package/src/proto-rest/lsapi.ts +148 -0
- package/src/proto-rest/progressapi.ts +159 -0
- package/src/proto-rest/streamingapi.ts +469 -0
- package/src/proto-rest/uploadapi.ts +355 -0
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +0 -53
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.cjs.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.cjs.map +0 -1
- 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.client.js.map +0 -1
- 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/downloadapi/protocol.js.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.cjs.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.cjs.map +0 -1
- 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.client.js.map +0 -1
- 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/lsapi/protocol.js.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.cjs.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.cjs.map +0 -1
- 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.client.js.map +0 -1
- 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/progressapi/protocol.js.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.cjs.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.cjs.map +0 -1
- 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.client.js.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.js.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.cjs.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.cjs.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.js.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +0 -329
- 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.d.ts +0 -5358
- 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_types.d.ts +0 -537
- 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/base_types.d.ts +0 -87
- 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/import.d.ts +0 -106
- 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.d.ts +0 -256
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +0 -1
- package/dist/proto/google/api/http.d.ts.map +0 -1
- package/dist/proto/google/protobuf/any.d.ts +0 -181
- package/dist/proto/google/protobuf/any.d.ts.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 +0 -32
- package/dist/proto/google/protobuf/empty.d.ts.map +0 -1
- package/dist/proto/google/protobuf/struct.d.ts +0 -187
- 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 +0 -335
- package/dist/proto/google/protobuf/wrappers.d.ts.map +0 -1
- package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +0 -125
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +0 -406
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +0 -14986
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +0 -1474
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +0 -181
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +0 -251
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +0 -693
- package/src/proto/google/protobuf/any.ts +0 -326
- package/src/proto/google/protobuf/empty.ts +0 -94
- package/src/proto/google/protobuf/struct.ts +0 -484
- package/src/proto/google/protobuf/wrappers.ts +0 -785
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.cjs +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.js +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.cjs +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.js +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.cjs +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.js +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.cjs +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.js +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.cjs +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.js +0 -0
- /package/dist/{proto → proto-grpc}/google/api/http.d.ts +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/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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
|
|
2
2
|
// @generated from protobuf file "github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.proto" (package "MiLaboratories.Controller.Shared", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
@@ -12,19 +12,19 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
|
12
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
14
|
/**
|
|
15
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.
|
|
15
|
+
* @generated from protobuf message MiLaboratories.Controller.Shared.UploadAPI
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface UploadAPI {
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.
|
|
20
|
+
* @generated from protobuf message MiLaboratories.Controller.Shared.UploadAPI.Init
|
|
21
21
|
*/
|
|
22
|
-
export interface
|
|
22
|
+
export interface UploadAPI_Init {
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.
|
|
25
|
+
* @generated from protobuf message MiLaboratories.Controller.Shared.UploadAPI.Init.Request
|
|
26
26
|
*/
|
|
27
|
-
export interface
|
|
27
|
+
export interface UploadAPI_Init_Request {
|
|
28
28
|
/**
|
|
29
29
|
* Id of upload resource
|
|
30
30
|
*
|
|
@@ -33,9 +33,9 @@ export interface uploadapi_Init_Request {
|
|
|
33
33
|
resourceId: bigint;
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.
|
|
36
|
+
* @generated from protobuf message MiLaboratories.Controller.Shared.UploadAPI.Init.Response
|
|
37
37
|
*/
|
|
38
|
-
export interface
|
|
38
|
+
export interface UploadAPI_Init_Response {
|
|
39
39
|
/**
|
|
40
40
|
* Number of parts in this upload.
|
|
41
41
|
* For parallel upload support, client can generate any number of part upload URLs
|
|
@@ -54,9 +54,9 @@ export interface uploadapi_Init_Response {
|
|
|
54
54
|
/**
|
|
55
55
|
* Checksum algorithm to use for the part upload.
|
|
56
56
|
*
|
|
57
|
-
* @generated from protobuf field: MiLaboratories.Controller.Shared.
|
|
57
|
+
* @generated from protobuf field: MiLaboratories.Controller.Shared.UploadAPI.ChecksumAlgorithm checksum_algorithm = 4
|
|
58
58
|
*/
|
|
59
|
-
checksumAlgorithm:
|
|
59
|
+
checksumAlgorithm: UploadAPI_ChecksumAlgorithm;
|
|
60
60
|
/**
|
|
61
61
|
* Header name to use for the checksum.
|
|
62
62
|
*
|
|
@@ -75,14 +75,14 @@ export interface uploadapi_Init_Response {
|
|
|
75
75
|
uploadedParts: bigint[];
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.
|
|
78
|
+
* @generated from protobuf message MiLaboratories.Controller.Shared.UploadAPI.UpdateProgress
|
|
79
79
|
*/
|
|
80
|
-
export interface
|
|
80
|
+
export interface UploadAPI_UpdateProgress {
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.
|
|
83
|
+
* @generated from protobuf message MiLaboratories.Controller.Shared.UploadAPI.UpdateProgress.Request
|
|
84
84
|
*/
|
|
85
|
-
export interface
|
|
85
|
+
export interface UploadAPI_UpdateProgress_Request {
|
|
86
86
|
/**
|
|
87
87
|
* Id of upload resource
|
|
88
88
|
*
|
|
@@ -105,19 +105,19 @@ export interface uploadapi_UpdateProgress_Request {
|
|
|
105
105
|
bytesProcessed: bigint;
|
|
106
106
|
}
|
|
107
107
|
/**
|
|
108
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.
|
|
108
|
+
* @generated from protobuf message MiLaboratories.Controller.Shared.UploadAPI.UpdateProgress.Response
|
|
109
109
|
*/
|
|
110
|
-
export interface
|
|
110
|
+
export interface UploadAPI_UpdateProgress_Response {
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.
|
|
113
|
+
* @generated from protobuf message MiLaboratories.Controller.Shared.UploadAPI.GetPartURL
|
|
114
114
|
*/
|
|
115
|
-
export interface
|
|
115
|
+
export interface UploadAPI_GetPartURL {
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.
|
|
118
|
+
* @generated from protobuf message MiLaboratories.Controller.Shared.UploadAPI.GetPartURL.Request
|
|
119
119
|
*/
|
|
120
|
-
export interface
|
|
120
|
+
export interface UploadAPI_GetPartURL_Request {
|
|
121
121
|
/**
|
|
122
122
|
* Id of upload resource
|
|
123
123
|
*
|
|
@@ -159,9 +159,9 @@ export interface uploadapi_GetPartURL_Request {
|
|
|
159
159
|
partChecksum: string;
|
|
160
160
|
}
|
|
161
161
|
/**
|
|
162
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.
|
|
162
|
+
* @generated from protobuf message MiLaboratories.Controller.Shared.UploadAPI.GetPartURL.HTTPHeader
|
|
163
163
|
*/
|
|
164
|
-
export interface
|
|
164
|
+
export interface UploadAPI_GetPartURL_HTTPHeader {
|
|
165
165
|
/**
|
|
166
166
|
* @generated from protobuf field: string Name = 1
|
|
167
167
|
*/
|
|
@@ -172,9 +172,9 @@ export interface uploadapi_GetPartURL_HTTPHeader {
|
|
|
172
172
|
value: string;
|
|
173
173
|
}
|
|
174
174
|
/**
|
|
175
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.
|
|
175
|
+
* @generated from protobuf message MiLaboratories.Controller.Shared.UploadAPI.GetPartURL.Response
|
|
176
176
|
*/
|
|
177
|
-
export interface
|
|
177
|
+
export interface UploadAPI_GetPartURL_Response {
|
|
178
178
|
/**
|
|
179
179
|
* URL for chunk upload
|
|
180
180
|
*
|
|
@@ -192,9 +192,9 @@ export interface uploadapi_GetPartURL_Response {
|
|
|
192
192
|
* The destination service (the one, that will handle upload request for specific part)
|
|
193
193
|
* may reject the request if it would not keep the given headers.
|
|
194
194
|
*
|
|
195
|
-
* @generated from protobuf field: repeated MiLaboratories.Controller.Shared.
|
|
195
|
+
* @generated from protobuf field: repeated MiLaboratories.Controller.Shared.UploadAPI.GetPartURL.HTTPHeader headers = 3
|
|
196
196
|
*/
|
|
197
|
-
headers:
|
|
197
|
+
headers: UploadAPI_GetPartURL_HTTPHeader[];
|
|
198
198
|
/**
|
|
199
199
|
* The number of the _first_ byte in the chunk.
|
|
200
200
|
* Absolute position from the start of the file ( file.seek(<chunk_start>, SEEK_START) ).
|
|
@@ -213,28 +213,28 @@ export interface uploadapi_GetPartURL_Response {
|
|
|
213
213
|
chunkEnd: bigint;
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
216
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.
|
|
216
|
+
* @generated from protobuf message MiLaboratories.Controller.Shared.UploadAPI.Finalize
|
|
217
217
|
*/
|
|
218
|
-
export interface
|
|
218
|
+
export interface UploadAPI_Finalize {
|
|
219
219
|
}
|
|
220
220
|
/**
|
|
221
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.
|
|
221
|
+
* @generated from protobuf message MiLaboratories.Controller.Shared.UploadAPI.Finalize.Request
|
|
222
222
|
*/
|
|
223
|
-
export interface
|
|
223
|
+
export interface UploadAPI_Finalize_Request {
|
|
224
224
|
/**
|
|
225
225
|
* @generated from protobuf field: uint64 resource_id = 1
|
|
226
226
|
*/
|
|
227
227
|
resourceId: bigint;
|
|
228
228
|
}
|
|
229
229
|
/**
|
|
230
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.
|
|
230
|
+
* @generated from protobuf message MiLaboratories.Controller.Shared.UploadAPI.Finalize.Response
|
|
231
231
|
*/
|
|
232
|
-
export interface
|
|
232
|
+
export interface UploadAPI_Finalize_Response {
|
|
233
233
|
}
|
|
234
234
|
/**
|
|
235
|
-
* @generated from protobuf enum MiLaboratories.Controller.Shared.
|
|
235
|
+
* @generated from protobuf enum MiLaboratories.Controller.Shared.UploadAPI.ChecksumAlgorithm
|
|
236
236
|
*/
|
|
237
|
-
export enum
|
|
237
|
+
export enum UploadAPI_ChecksumAlgorithm {
|
|
238
238
|
/**
|
|
239
239
|
* @generated from protobuf enum value: CHECKSUM_ALGORITHM_UNSPECIFIED = 0;
|
|
240
240
|
*/
|
|
@@ -245,17 +245,17 @@ export enum uploadapi_ChecksumAlgorithm {
|
|
|
245
245
|
CRC32C = 1
|
|
246
246
|
}
|
|
247
247
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
248
|
-
class
|
|
248
|
+
class UploadAPI$Type extends MessageType<UploadAPI> {
|
|
249
249
|
constructor() {
|
|
250
|
-
super("MiLaboratories.Controller.Shared.
|
|
250
|
+
super("MiLaboratories.Controller.Shared.UploadAPI", []);
|
|
251
251
|
}
|
|
252
|
-
create(value?: PartialMessage<
|
|
252
|
+
create(value?: PartialMessage<UploadAPI>): UploadAPI {
|
|
253
253
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
254
254
|
if (value !== undefined)
|
|
255
|
-
reflectionMergePartial<
|
|
255
|
+
reflectionMergePartial<UploadAPI>(this, message, value);
|
|
256
256
|
return message;
|
|
257
257
|
}
|
|
258
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
258
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadAPI): UploadAPI {
|
|
259
259
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
260
260
|
while (reader.pos < end) {
|
|
261
261
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -271,7 +271,7 @@ class uploadapi$Type extends MessageType<uploadapi> {
|
|
|
271
271
|
}
|
|
272
272
|
return message;
|
|
273
273
|
}
|
|
274
|
-
internalBinaryWrite(message:
|
|
274
|
+
internalBinaryWrite(message: UploadAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
275
275
|
let u = options.writeUnknownFields;
|
|
276
276
|
if (u !== false)
|
|
277
277
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -279,21 +279,21 @@ class uploadapi$Type extends MessageType<uploadapi> {
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
/**
|
|
282
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.
|
|
282
|
+
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.UploadAPI
|
|
283
283
|
*/
|
|
284
|
-
export const
|
|
284
|
+
export const UploadAPI = new UploadAPI$Type();
|
|
285
285
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
286
|
-
class
|
|
286
|
+
class UploadAPI_Init$Type extends MessageType<UploadAPI_Init> {
|
|
287
287
|
constructor() {
|
|
288
|
-
super("MiLaboratories.Controller.Shared.
|
|
288
|
+
super("MiLaboratories.Controller.Shared.UploadAPI.Init", []);
|
|
289
289
|
}
|
|
290
|
-
create(value?: PartialMessage<
|
|
290
|
+
create(value?: PartialMessage<UploadAPI_Init>): UploadAPI_Init {
|
|
291
291
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
292
292
|
if (value !== undefined)
|
|
293
|
-
reflectionMergePartial<
|
|
293
|
+
reflectionMergePartial<UploadAPI_Init>(this, message, value);
|
|
294
294
|
return message;
|
|
295
295
|
}
|
|
296
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
296
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadAPI_Init): UploadAPI_Init {
|
|
297
297
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
298
298
|
while (reader.pos < end) {
|
|
299
299
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -309,7 +309,7 @@ class uploadapi_Init$Type extends MessageType<uploadapi_Init> {
|
|
|
309
309
|
}
|
|
310
310
|
return message;
|
|
311
311
|
}
|
|
312
|
-
internalBinaryWrite(message:
|
|
312
|
+
internalBinaryWrite(message: UploadAPI_Init, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
313
313
|
let u = options.writeUnknownFields;
|
|
314
314
|
if (u !== false)
|
|
315
315
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -317,24 +317,24 @@ class uploadapi_Init$Type extends MessageType<uploadapi_Init> {
|
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
/**
|
|
320
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.
|
|
320
|
+
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.UploadAPI.Init
|
|
321
321
|
*/
|
|
322
|
-
export const
|
|
322
|
+
export const UploadAPI_Init = new UploadAPI_Init$Type();
|
|
323
323
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
324
|
-
class
|
|
324
|
+
class UploadAPI_Init_Request$Type extends MessageType<UploadAPI_Init_Request> {
|
|
325
325
|
constructor() {
|
|
326
|
-
super("MiLaboratories.Controller.Shared.
|
|
326
|
+
super("MiLaboratories.Controller.Shared.UploadAPI.Init.Request", [
|
|
327
327
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
328
328
|
]);
|
|
329
329
|
}
|
|
330
|
-
create(value?: PartialMessage<
|
|
330
|
+
create(value?: PartialMessage<UploadAPI_Init_Request>): UploadAPI_Init_Request {
|
|
331
331
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
332
332
|
message.resourceId = 0n;
|
|
333
333
|
if (value !== undefined)
|
|
334
|
-
reflectionMergePartial<
|
|
334
|
+
reflectionMergePartial<UploadAPI_Init_Request>(this, message, value);
|
|
335
335
|
return message;
|
|
336
336
|
}
|
|
337
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
337
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadAPI_Init_Request): UploadAPI_Init_Request {
|
|
338
338
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
339
339
|
while (reader.pos < end) {
|
|
340
340
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -353,7 +353,7 @@ class uploadapi_Init_Request$Type extends MessageType<uploadapi_Init_Request> {
|
|
|
353
353
|
}
|
|
354
354
|
return message;
|
|
355
355
|
}
|
|
356
|
-
internalBinaryWrite(message:
|
|
356
|
+
internalBinaryWrite(message: UploadAPI_Init_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
357
357
|
/* uint64 resource_id = 1; */
|
|
358
358
|
if (message.resourceId !== 0n)
|
|
359
359
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
@@ -364,21 +364,21 @@ class uploadapi_Init_Request$Type extends MessageType<uploadapi_Init_Request> {
|
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
/**
|
|
367
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.
|
|
367
|
+
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.UploadAPI.Init.Request
|
|
368
368
|
*/
|
|
369
|
-
export const
|
|
369
|
+
export const UploadAPI_Init_Request = new UploadAPI_Init_Request$Type();
|
|
370
370
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
371
|
-
class
|
|
371
|
+
class UploadAPI_Init_Response$Type extends MessageType<UploadAPI_Init_Response> {
|
|
372
372
|
constructor() {
|
|
373
|
-
super("MiLaboratories.Controller.Shared.
|
|
373
|
+
super("MiLaboratories.Controller.Shared.UploadAPI.Init.Response", [
|
|
374
374
|
{ no: 1, name: "parts_count", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
375
375
|
{ no: 3, name: "part_size", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
376
|
-
{ no: 4, name: "checksum_algorithm", kind: "enum", T: () => ["MiLaboratories.Controller.Shared.
|
|
376
|
+
{ no: 4, name: "checksum_algorithm", kind: "enum", T: () => ["MiLaboratories.Controller.Shared.UploadAPI.ChecksumAlgorithm", UploadAPI_ChecksumAlgorithm, "CHECKSUM_ALGORITHM_"] },
|
|
377
377
|
{ no: 5, name: "checksum_header", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
378
378
|
{ no: 2, name: "uploaded_parts", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
379
379
|
]);
|
|
380
380
|
}
|
|
381
|
-
create(value?: PartialMessage<
|
|
381
|
+
create(value?: PartialMessage<UploadAPI_Init_Response>): UploadAPI_Init_Response {
|
|
382
382
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
383
383
|
message.partsCount = 0n;
|
|
384
384
|
message.partSize = 0n;
|
|
@@ -386,10 +386,10 @@ class uploadapi_Init_Response$Type extends MessageType<uploadapi_Init_Response>
|
|
|
386
386
|
message.checksumHeader = "";
|
|
387
387
|
message.uploadedParts = [];
|
|
388
388
|
if (value !== undefined)
|
|
389
|
-
reflectionMergePartial<
|
|
389
|
+
reflectionMergePartial<UploadAPI_Init_Response>(this, message, value);
|
|
390
390
|
return message;
|
|
391
391
|
}
|
|
392
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
392
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadAPI_Init_Response): UploadAPI_Init_Response {
|
|
393
393
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
394
394
|
while (reader.pos < end) {
|
|
395
395
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -400,7 +400,7 @@ class uploadapi_Init_Response$Type extends MessageType<uploadapi_Init_Response>
|
|
|
400
400
|
case /* uint64 part_size */ 3:
|
|
401
401
|
message.partSize = reader.uint64().toBigInt();
|
|
402
402
|
break;
|
|
403
|
-
case /* MiLaboratories.Controller.Shared.
|
|
403
|
+
case /* MiLaboratories.Controller.Shared.UploadAPI.ChecksumAlgorithm checksum_algorithm */ 4:
|
|
404
404
|
message.checksumAlgorithm = reader.int32();
|
|
405
405
|
break;
|
|
406
406
|
case /* string checksum_header */ 5:
|
|
@@ -424,7 +424,7 @@ class uploadapi_Init_Response$Type extends MessageType<uploadapi_Init_Response>
|
|
|
424
424
|
}
|
|
425
425
|
return message;
|
|
426
426
|
}
|
|
427
|
-
internalBinaryWrite(message:
|
|
427
|
+
internalBinaryWrite(message: UploadAPI_Init_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
428
428
|
/* uint64 parts_count = 1; */
|
|
429
429
|
if (message.partsCount !== 0n)
|
|
430
430
|
writer.tag(1, WireType.Varint).uint64(message.partsCount);
|
|
@@ -438,7 +438,7 @@ class uploadapi_Init_Response$Type extends MessageType<uploadapi_Init_Response>
|
|
|
438
438
|
/* uint64 part_size = 3; */
|
|
439
439
|
if (message.partSize !== 0n)
|
|
440
440
|
writer.tag(3, WireType.Varint).uint64(message.partSize);
|
|
441
|
-
/* MiLaboratories.Controller.Shared.
|
|
441
|
+
/* MiLaboratories.Controller.Shared.UploadAPI.ChecksumAlgorithm checksum_algorithm = 4; */
|
|
442
442
|
if (message.checksumAlgorithm !== 0)
|
|
443
443
|
writer.tag(4, WireType.Varint).int32(message.checksumAlgorithm);
|
|
444
444
|
/* string checksum_header = 5; */
|
|
@@ -451,21 +451,21 @@ class uploadapi_Init_Response$Type extends MessageType<uploadapi_Init_Response>
|
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
453
|
/**
|
|
454
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.
|
|
454
|
+
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.UploadAPI.Init.Response
|
|
455
455
|
*/
|
|
456
|
-
export const
|
|
456
|
+
export const UploadAPI_Init_Response = new UploadAPI_Init_Response$Type();
|
|
457
457
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
458
|
-
class
|
|
458
|
+
class UploadAPI_UpdateProgress$Type extends MessageType<UploadAPI_UpdateProgress> {
|
|
459
459
|
constructor() {
|
|
460
|
-
super("MiLaboratories.Controller.Shared.
|
|
460
|
+
super("MiLaboratories.Controller.Shared.UploadAPI.UpdateProgress", []);
|
|
461
461
|
}
|
|
462
|
-
create(value?: PartialMessage<
|
|
462
|
+
create(value?: PartialMessage<UploadAPI_UpdateProgress>): UploadAPI_UpdateProgress {
|
|
463
463
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
464
464
|
if (value !== undefined)
|
|
465
|
-
reflectionMergePartial<
|
|
465
|
+
reflectionMergePartial<UploadAPI_UpdateProgress>(this, message, value);
|
|
466
466
|
return message;
|
|
467
467
|
}
|
|
468
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
468
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadAPI_UpdateProgress): UploadAPI_UpdateProgress {
|
|
469
469
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
470
470
|
while (reader.pos < end) {
|
|
471
471
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -481,7 +481,7 @@ class uploadapi_UpdateProgress$Type extends MessageType<uploadapi_UpdateProgress
|
|
|
481
481
|
}
|
|
482
482
|
return message;
|
|
483
483
|
}
|
|
484
|
-
internalBinaryWrite(message:
|
|
484
|
+
internalBinaryWrite(message: UploadAPI_UpdateProgress, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
485
485
|
let u = options.writeUnknownFields;
|
|
486
486
|
if (u !== false)
|
|
487
487
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -489,26 +489,26 @@ class uploadapi_UpdateProgress$Type extends MessageType<uploadapi_UpdateProgress
|
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
491
|
/**
|
|
492
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.
|
|
492
|
+
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.UploadAPI.UpdateProgress
|
|
493
493
|
*/
|
|
494
|
-
export const
|
|
494
|
+
export const UploadAPI_UpdateProgress = new UploadAPI_UpdateProgress$Type();
|
|
495
495
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
496
|
-
class
|
|
496
|
+
class UploadAPI_UpdateProgress_Request$Type extends MessageType<UploadAPI_UpdateProgress_Request> {
|
|
497
497
|
constructor() {
|
|
498
|
-
super("MiLaboratories.Controller.Shared.
|
|
498
|
+
super("MiLaboratories.Controller.Shared.UploadAPI.UpdateProgress.Request", [
|
|
499
499
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
500
500
|
{ no: 2, name: "bytes_processed", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
501
501
|
]);
|
|
502
502
|
}
|
|
503
|
-
create(value?: PartialMessage<
|
|
503
|
+
create(value?: PartialMessage<UploadAPI_UpdateProgress_Request>): UploadAPI_UpdateProgress_Request {
|
|
504
504
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
505
505
|
message.resourceId = 0n;
|
|
506
506
|
message.bytesProcessed = 0n;
|
|
507
507
|
if (value !== undefined)
|
|
508
|
-
reflectionMergePartial<
|
|
508
|
+
reflectionMergePartial<UploadAPI_UpdateProgress_Request>(this, message, value);
|
|
509
509
|
return message;
|
|
510
510
|
}
|
|
511
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
511
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadAPI_UpdateProgress_Request): UploadAPI_UpdateProgress_Request {
|
|
512
512
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
513
513
|
while (reader.pos < end) {
|
|
514
514
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -530,7 +530,7 @@ class uploadapi_UpdateProgress_Request$Type extends MessageType<uploadapi_Update
|
|
|
530
530
|
}
|
|
531
531
|
return message;
|
|
532
532
|
}
|
|
533
|
-
internalBinaryWrite(message:
|
|
533
|
+
internalBinaryWrite(message: UploadAPI_UpdateProgress_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
534
534
|
/* uint64 resource_id = 1; */
|
|
535
535
|
if (message.resourceId !== 0n)
|
|
536
536
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
@@ -544,21 +544,21 @@ class uploadapi_UpdateProgress_Request$Type extends MessageType<uploadapi_Update
|
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
546
|
/**
|
|
547
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.
|
|
547
|
+
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.UploadAPI.UpdateProgress.Request
|
|
548
548
|
*/
|
|
549
|
-
export const
|
|
549
|
+
export const UploadAPI_UpdateProgress_Request = new UploadAPI_UpdateProgress_Request$Type();
|
|
550
550
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
551
|
-
class
|
|
551
|
+
class UploadAPI_UpdateProgress_Response$Type extends MessageType<UploadAPI_UpdateProgress_Response> {
|
|
552
552
|
constructor() {
|
|
553
|
-
super("MiLaboratories.Controller.Shared.
|
|
553
|
+
super("MiLaboratories.Controller.Shared.UploadAPI.UpdateProgress.Response", []);
|
|
554
554
|
}
|
|
555
|
-
create(value?: PartialMessage<
|
|
555
|
+
create(value?: PartialMessage<UploadAPI_UpdateProgress_Response>): UploadAPI_UpdateProgress_Response {
|
|
556
556
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
557
557
|
if (value !== undefined)
|
|
558
|
-
reflectionMergePartial<
|
|
558
|
+
reflectionMergePartial<UploadAPI_UpdateProgress_Response>(this, message, value);
|
|
559
559
|
return message;
|
|
560
560
|
}
|
|
561
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
561
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadAPI_UpdateProgress_Response): UploadAPI_UpdateProgress_Response {
|
|
562
562
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
563
563
|
while (reader.pos < end) {
|
|
564
564
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -574,7 +574,7 @@ class uploadapi_UpdateProgress_Response$Type extends MessageType<uploadapi_Updat
|
|
|
574
574
|
}
|
|
575
575
|
return message;
|
|
576
576
|
}
|
|
577
|
-
internalBinaryWrite(message:
|
|
577
|
+
internalBinaryWrite(message: UploadAPI_UpdateProgress_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
578
578
|
let u = options.writeUnknownFields;
|
|
579
579
|
if (u !== false)
|
|
580
580
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -582,21 +582,21 @@ class uploadapi_UpdateProgress_Response$Type extends MessageType<uploadapi_Updat
|
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
584
|
/**
|
|
585
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.
|
|
585
|
+
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.UploadAPI.UpdateProgress.Response
|
|
586
586
|
*/
|
|
587
|
-
export const
|
|
587
|
+
export const UploadAPI_UpdateProgress_Response = new UploadAPI_UpdateProgress_Response$Type();
|
|
588
588
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
589
|
-
class
|
|
589
|
+
class UploadAPI_GetPartURL$Type extends MessageType<UploadAPI_GetPartURL> {
|
|
590
590
|
constructor() {
|
|
591
|
-
super("MiLaboratories.Controller.Shared.
|
|
591
|
+
super("MiLaboratories.Controller.Shared.UploadAPI.GetPartURL", []);
|
|
592
592
|
}
|
|
593
|
-
create(value?: PartialMessage<
|
|
593
|
+
create(value?: PartialMessage<UploadAPI_GetPartURL>): UploadAPI_GetPartURL {
|
|
594
594
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
595
595
|
if (value !== undefined)
|
|
596
|
-
reflectionMergePartial<
|
|
596
|
+
reflectionMergePartial<UploadAPI_GetPartURL>(this, message, value);
|
|
597
597
|
return message;
|
|
598
598
|
}
|
|
599
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
599
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadAPI_GetPartURL): UploadAPI_GetPartURL {
|
|
600
600
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
601
601
|
while (reader.pos < end) {
|
|
602
602
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -612,7 +612,7 @@ class uploadapi_GetPartURL$Type extends MessageType<uploadapi_GetPartURL> {
|
|
|
612
612
|
}
|
|
613
613
|
return message;
|
|
614
614
|
}
|
|
615
|
-
internalBinaryWrite(message:
|
|
615
|
+
internalBinaryWrite(message: UploadAPI_GetPartURL, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
616
616
|
let u = options.writeUnknownFields;
|
|
617
617
|
if (u !== false)
|
|
618
618
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -620,13 +620,13 @@ class uploadapi_GetPartURL$Type extends MessageType<uploadapi_GetPartURL> {
|
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
/**
|
|
623
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.
|
|
623
|
+
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.UploadAPI.GetPartURL
|
|
624
624
|
*/
|
|
625
|
-
export const
|
|
625
|
+
export const UploadAPI_GetPartURL = new UploadAPI_GetPartURL$Type();
|
|
626
626
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
627
|
-
class
|
|
627
|
+
class UploadAPI_GetPartURL_Request$Type extends MessageType<UploadAPI_GetPartURL_Request> {
|
|
628
628
|
constructor() {
|
|
629
|
-
super("MiLaboratories.Controller.Shared.
|
|
629
|
+
super("MiLaboratories.Controller.Shared.UploadAPI.GetPartURL.Request", [
|
|
630
630
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
631
631
|
{ no: 2, name: "part_number", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
632
632
|
{ no: 3, name: "uploaded_part_size", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
@@ -634,7 +634,7 @@ class uploadapi_GetPartURL_Request$Type extends MessageType<uploadapi_GetPartURL
|
|
|
634
634
|
{ no: 5, name: "part_checksum", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
635
635
|
]);
|
|
636
636
|
}
|
|
637
|
-
create(value?: PartialMessage<
|
|
637
|
+
create(value?: PartialMessage<UploadAPI_GetPartURL_Request>): UploadAPI_GetPartURL_Request {
|
|
638
638
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
639
639
|
message.resourceId = 0n;
|
|
640
640
|
message.partNumber = 0n;
|
|
@@ -642,10 +642,10 @@ class uploadapi_GetPartURL_Request$Type extends MessageType<uploadapi_GetPartURL
|
|
|
642
642
|
message.isInternalUse = false;
|
|
643
643
|
message.partChecksum = "";
|
|
644
644
|
if (value !== undefined)
|
|
645
|
-
reflectionMergePartial<
|
|
645
|
+
reflectionMergePartial<UploadAPI_GetPartURL_Request>(this, message, value);
|
|
646
646
|
return message;
|
|
647
647
|
}
|
|
648
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
648
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadAPI_GetPartURL_Request): UploadAPI_GetPartURL_Request {
|
|
649
649
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
650
650
|
while (reader.pos < end) {
|
|
651
651
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -676,7 +676,7 @@ class uploadapi_GetPartURL_Request$Type extends MessageType<uploadapi_GetPartURL
|
|
|
676
676
|
}
|
|
677
677
|
return message;
|
|
678
678
|
}
|
|
679
|
-
internalBinaryWrite(message:
|
|
679
|
+
internalBinaryWrite(message: UploadAPI_GetPartURL_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
680
680
|
/* uint64 resource_id = 1; */
|
|
681
681
|
if (message.resourceId !== 0n)
|
|
682
682
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
@@ -699,26 +699,26 @@ class uploadapi_GetPartURL_Request$Type extends MessageType<uploadapi_GetPartURL
|
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
701
|
/**
|
|
702
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.
|
|
702
|
+
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.UploadAPI.GetPartURL.Request
|
|
703
703
|
*/
|
|
704
|
-
export const
|
|
704
|
+
export const UploadAPI_GetPartURL_Request = new UploadAPI_GetPartURL_Request$Type();
|
|
705
705
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
706
|
-
class
|
|
706
|
+
class UploadAPI_GetPartURL_HTTPHeader$Type extends MessageType<UploadAPI_GetPartURL_HTTPHeader> {
|
|
707
707
|
constructor() {
|
|
708
|
-
super("MiLaboratories.Controller.Shared.
|
|
708
|
+
super("MiLaboratories.Controller.Shared.UploadAPI.GetPartURL.HTTPHeader", [
|
|
709
709
|
{ no: 1, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
|
|
710
710
|
{ no: 2, name: "Value", kind: "scalar", jsonName: "Value", T: 9 /*ScalarType.STRING*/ }
|
|
711
711
|
]);
|
|
712
712
|
}
|
|
713
|
-
create(value?: PartialMessage<
|
|
713
|
+
create(value?: PartialMessage<UploadAPI_GetPartURL_HTTPHeader>): UploadAPI_GetPartURL_HTTPHeader {
|
|
714
714
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
715
715
|
message.name = "";
|
|
716
716
|
message.value = "";
|
|
717
717
|
if (value !== undefined)
|
|
718
|
-
reflectionMergePartial<
|
|
718
|
+
reflectionMergePartial<UploadAPI_GetPartURL_HTTPHeader>(this, message, value);
|
|
719
719
|
return message;
|
|
720
720
|
}
|
|
721
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
721
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadAPI_GetPartURL_HTTPHeader): UploadAPI_GetPartURL_HTTPHeader {
|
|
722
722
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
723
723
|
while (reader.pos < end) {
|
|
724
724
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -740,7 +740,7 @@ class uploadapi_GetPartURL_HTTPHeader$Type extends MessageType<uploadapi_GetPart
|
|
|
740
740
|
}
|
|
741
741
|
return message;
|
|
742
742
|
}
|
|
743
|
-
internalBinaryWrite(message:
|
|
743
|
+
internalBinaryWrite(message: UploadAPI_GetPartURL_HTTPHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
744
744
|
/* string Name = 1; */
|
|
745
745
|
if (message.name !== "")
|
|
746
746
|
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
@@ -754,21 +754,21 @@ class uploadapi_GetPartURL_HTTPHeader$Type extends MessageType<uploadapi_GetPart
|
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
756
|
/**
|
|
757
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.
|
|
757
|
+
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.UploadAPI.GetPartURL.HTTPHeader
|
|
758
758
|
*/
|
|
759
|
-
export const
|
|
759
|
+
export const UploadAPI_GetPartURL_HTTPHeader = new UploadAPI_GetPartURL_HTTPHeader$Type();
|
|
760
760
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
761
|
-
class
|
|
761
|
+
class UploadAPI_GetPartURL_Response$Type extends MessageType<UploadAPI_GetPartURL_Response> {
|
|
762
762
|
constructor() {
|
|
763
|
-
super("MiLaboratories.Controller.Shared.
|
|
763
|
+
super("MiLaboratories.Controller.Shared.UploadAPI.GetPartURL.Response", [
|
|
764
764
|
{ no: 1, name: "upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
765
765
|
{ no: 2, name: "method", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
766
|
-
{ no: 3, name: "headers", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () =>
|
|
766
|
+
{ no: 3, name: "headers", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UploadAPI_GetPartURL_HTTPHeader },
|
|
767
767
|
{ no: 4, name: "chunk_start", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
768
768
|
{ no: 5, name: "chunk_end", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
769
769
|
]);
|
|
770
770
|
}
|
|
771
|
-
create(value?: PartialMessage<
|
|
771
|
+
create(value?: PartialMessage<UploadAPI_GetPartURL_Response>): UploadAPI_GetPartURL_Response {
|
|
772
772
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
773
773
|
message.uploadUrl = "";
|
|
774
774
|
message.method = "";
|
|
@@ -776,10 +776,10 @@ class uploadapi_GetPartURL_Response$Type extends MessageType<uploadapi_GetPartUR
|
|
|
776
776
|
message.chunkStart = 0n;
|
|
777
777
|
message.chunkEnd = 0n;
|
|
778
778
|
if (value !== undefined)
|
|
779
|
-
reflectionMergePartial<
|
|
779
|
+
reflectionMergePartial<UploadAPI_GetPartURL_Response>(this, message, value);
|
|
780
780
|
return message;
|
|
781
781
|
}
|
|
782
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
782
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadAPI_GetPartURL_Response): UploadAPI_GetPartURL_Response {
|
|
783
783
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
784
784
|
while (reader.pos < end) {
|
|
785
785
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -790,8 +790,8 @@ class uploadapi_GetPartURL_Response$Type extends MessageType<uploadapi_GetPartUR
|
|
|
790
790
|
case /* string method */ 2:
|
|
791
791
|
message.method = reader.string();
|
|
792
792
|
break;
|
|
793
|
-
case /* repeated MiLaboratories.Controller.Shared.
|
|
794
|
-
message.headers.push(
|
|
793
|
+
case /* repeated MiLaboratories.Controller.Shared.UploadAPI.GetPartURL.HTTPHeader headers */ 3:
|
|
794
|
+
message.headers.push(UploadAPI_GetPartURL_HTTPHeader.internalBinaryRead(reader, reader.uint32(), options));
|
|
795
795
|
break;
|
|
796
796
|
case /* uint64 chunk_start */ 4:
|
|
797
797
|
message.chunkStart = reader.uint64().toBigInt();
|
|
@@ -810,16 +810,16 @@ class uploadapi_GetPartURL_Response$Type extends MessageType<uploadapi_GetPartUR
|
|
|
810
810
|
}
|
|
811
811
|
return message;
|
|
812
812
|
}
|
|
813
|
-
internalBinaryWrite(message:
|
|
813
|
+
internalBinaryWrite(message: UploadAPI_GetPartURL_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
814
814
|
/* string upload_url = 1; */
|
|
815
815
|
if (message.uploadUrl !== "")
|
|
816
816
|
writer.tag(1, WireType.LengthDelimited).string(message.uploadUrl);
|
|
817
817
|
/* string method = 2; */
|
|
818
818
|
if (message.method !== "")
|
|
819
819
|
writer.tag(2, WireType.LengthDelimited).string(message.method);
|
|
820
|
-
/* repeated MiLaboratories.Controller.Shared.
|
|
820
|
+
/* repeated MiLaboratories.Controller.Shared.UploadAPI.GetPartURL.HTTPHeader headers = 3; */
|
|
821
821
|
for (let i = 0; i < message.headers.length; i++)
|
|
822
|
-
|
|
822
|
+
UploadAPI_GetPartURL_HTTPHeader.internalBinaryWrite(message.headers[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
823
823
|
/* uint64 chunk_start = 4; */
|
|
824
824
|
if (message.chunkStart !== 0n)
|
|
825
825
|
writer.tag(4, WireType.Varint).uint64(message.chunkStart);
|
|
@@ -833,21 +833,21 @@ class uploadapi_GetPartURL_Response$Type extends MessageType<uploadapi_GetPartUR
|
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
835
|
/**
|
|
836
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.
|
|
836
|
+
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.UploadAPI.GetPartURL.Response
|
|
837
837
|
*/
|
|
838
|
-
export const
|
|
838
|
+
export const UploadAPI_GetPartURL_Response = new UploadAPI_GetPartURL_Response$Type();
|
|
839
839
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
840
|
-
class
|
|
840
|
+
class UploadAPI_Finalize$Type extends MessageType<UploadAPI_Finalize> {
|
|
841
841
|
constructor() {
|
|
842
|
-
super("MiLaboratories.Controller.Shared.
|
|
842
|
+
super("MiLaboratories.Controller.Shared.UploadAPI.Finalize", []);
|
|
843
843
|
}
|
|
844
|
-
create(value?: PartialMessage<
|
|
844
|
+
create(value?: PartialMessage<UploadAPI_Finalize>): UploadAPI_Finalize {
|
|
845
845
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
846
846
|
if (value !== undefined)
|
|
847
|
-
reflectionMergePartial<
|
|
847
|
+
reflectionMergePartial<UploadAPI_Finalize>(this, message, value);
|
|
848
848
|
return message;
|
|
849
849
|
}
|
|
850
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
850
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadAPI_Finalize): UploadAPI_Finalize {
|
|
851
851
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
852
852
|
while (reader.pos < end) {
|
|
853
853
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -863,7 +863,7 @@ class uploadapi_Finalize$Type extends MessageType<uploadapi_Finalize> {
|
|
|
863
863
|
}
|
|
864
864
|
return message;
|
|
865
865
|
}
|
|
866
|
-
internalBinaryWrite(message:
|
|
866
|
+
internalBinaryWrite(message: UploadAPI_Finalize, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
867
867
|
let u = options.writeUnknownFields;
|
|
868
868
|
if (u !== false)
|
|
869
869
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -871,24 +871,24 @@ class uploadapi_Finalize$Type extends MessageType<uploadapi_Finalize> {
|
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
873
|
/**
|
|
874
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.
|
|
874
|
+
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.UploadAPI.Finalize
|
|
875
875
|
*/
|
|
876
|
-
export const
|
|
876
|
+
export const UploadAPI_Finalize = new UploadAPI_Finalize$Type();
|
|
877
877
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
878
|
-
class
|
|
878
|
+
class UploadAPI_Finalize_Request$Type extends MessageType<UploadAPI_Finalize_Request> {
|
|
879
879
|
constructor() {
|
|
880
|
-
super("MiLaboratories.Controller.Shared.
|
|
880
|
+
super("MiLaboratories.Controller.Shared.UploadAPI.Finalize.Request", [
|
|
881
881
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
882
882
|
]);
|
|
883
883
|
}
|
|
884
|
-
create(value?: PartialMessage<
|
|
884
|
+
create(value?: PartialMessage<UploadAPI_Finalize_Request>): UploadAPI_Finalize_Request {
|
|
885
885
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
886
886
|
message.resourceId = 0n;
|
|
887
887
|
if (value !== undefined)
|
|
888
|
-
reflectionMergePartial<
|
|
888
|
+
reflectionMergePartial<UploadAPI_Finalize_Request>(this, message, value);
|
|
889
889
|
return message;
|
|
890
890
|
}
|
|
891
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
891
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadAPI_Finalize_Request): UploadAPI_Finalize_Request {
|
|
892
892
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
893
893
|
while (reader.pos < end) {
|
|
894
894
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -907,7 +907,7 @@ class uploadapi_Finalize_Request$Type extends MessageType<uploadapi_Finalize_Req
|
|
|
907
907
|
}
|
|
908
908
|
return message;
|
|
909
909
|
}
|
|
910
|
-
internalBinaryWrite(message:
|
|
910
|
+
internalBinaryWrite(message: UploadAPI_Finalize_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
911
911
|
/* uint64 resource_id = 1; */
|
|
912
912
|
if (message.resourceId !== 0n)
|
|
913
913
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
@@ -918,21 +918,21 @@ class uploadapi_Finalize_Request$Type extends MessageType<uploadapi_Finalize_Req
|
|
|
918
918
|
}
|
|
919
919
|
}
|
|
920
920
|
/**
|
|
921
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.
|
|
921
|
+
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.UploadAPI.Finalize.Request
|
|
922
922
|
*/
|
|
923
|
-
export const
|
|
923
|
+
export const UploadAPI_Finalize_Request = new UploadAPI_Finalize_Request$Type();
|
|
924
924
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
925
|
-
class
|
|
925
|
+
class UploadAPI_Finalize_Response$Type extends MessageType<UploadAPI_Finalize_Response> {
|
|
926
926
|
constructor() {
|
|
927
|
-
super("MiLaboratories.Controller.Shared.
|
|
927
|
+
super("MiLaboratories.Controller.Shared.UploadAPI.Finalize.Response", []);
|
|
928
928
|
}
|
|
929
|
-
create(value?: PartialMessage<
|
|
929
|
+
create(value?: PartialMessage<UploadAPI_Finalize_Response>): UploadAPI_Finalize_Response {
|
|
930
930
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
931
931
|
if (value !== undefined)
|
|
932
|
-
reflectionMergePartial<
|
|
932
|
+
reflectionMergePartial<UploadAPI_Finalize_Response>(this, message, value);
|
|
933
933
|
return message;
|
|
934
934
|
}
|
|
935
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
935
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadAPI_Finalize_Response): UploadAPI_Finalize_Response {
|
|
936
936
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
937
937
|
while (reader.pos < end) {
|
|
938
938
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -948,7 +948,7 @@ class uploadapi_Finalize_Response$Type extends MessageType<uploadapi_Finalize_Re
|
|
|
948
948
|
}
|
|
949
949
|
return message;
|
|
950
950
|
}
|
|
951
|
-
internalBinaryWrite(message:
|
|
951
|
+
internalBinaryWrite(message: UploadAPI_Finalize_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
952
952
|
let u = options.writeUnknownFields;
|
|
953
953
|
if (u !== false)
|
|
954
954
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -956,15 +956,15 @@ class uploadapi_Finalize_Response$Type extends MessageType<uploadapi_Finalize_Re
|
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
958
|
/**
|
|
959
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.
|
|
959
|
+
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.UploadAPI.Finalize.Response
|
|
960
960
|
*/
|
|
961
|
-
export const
|
|
961
|
+
export const UploadAPI_Finalize_Response = new UploadAPI_Finalize_Response$Type();
|
|
962
962
|
/**
|
|
963
963
|
* @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Upload
|
|
964
964
|
*/
|
|
965
965
|
export const Upload = new ServiceType("MiLaboratories.Controller.Shared.Upload", [
|
|
966
|
-
{ name: "Init", options: {}, I:
|
|
967
|
-
{ name: "GetPartURL", options: {}, I:
|
|
968
|
-
{ name: "UpdateProgress", options: {}, I:
|
|
969
|
-
{ name: "Finalize", options: {}, I:
|
|
966
|
+
{ name: "Init", options: { "google.api.http": { post: "/v1/upload/init", body: "*" } }, I: UploadAPI_Init_Request, O: UploadAPI_Init_Response },
|
|
967
|
+
{ name: "GetPartURL", options: { "google.api.http": { post: "/v1/upload/get-part-url", body: "*" } }, I: UploadAPI_GetPartURL_Request, O: UploadAPI_GetPartURL_Response },
|
|
968
|
+
{ name: "UpdateProgress", options: { "google.api.http": { post: "/v1/upload/update-progress", body: "*" } }, I: UploadAPI_UpdateProgress_Request, O: UploadAPI_UpdateProgress_Response },
|
|
969
|
+
{ name: "Finalize", options: { "google.api.http": { post: "/v1/upload/finalize", body: "*" } }, I: UploadAPI_Finalize_Request, O: UploadAPI_Finalize_Response }
|
|
970
970
|
]);
|