Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-proto
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-proto
Commits
c65d1777
Commit
c65d1777
authored
3 years ago
by
Timm Fitschen
Committed by
Henrik tom Wörden
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
STY: formatting
parent
24d71fdd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
proto/caosdb/entity/v1alpha1/main.proto
+21
-16
21 additions, 16 deletions
proto/caosdb/entity/v1alpha1/main.proto
with
21 additions
and
16 deletions
proto/caosdb/entity/v1alpha1/main.proto
+
21
−
16
View file @
c65d1777
...
...
@@ -345,7 +345,8 @@ message Entity {
// relation to other entities or the server's state or configuration.
repeated
Message
infos
=
13
;
// File meta data. The actual binary data has to uploaded or downloaded using the File message.
// File meta data. The actual binary data has to uploaded or downloaded using
// the File message.
FileDescriptor
file_descriptor
=
14
;
}
...
...
@@ -561,23 +562,26 @@ enum TransmissionStatus {
TRANSMISSION_STATUS_SUCCESS
=
1
;
// The transmission terminated with errors.
TRANSMISSION_STATUS_ERROR
=
2
;
// The transmission is incomplete and the client may send/request the next chunk.
// The transmission is incomplete and the client may send/request the next
// chunk.
TRANSMISSION_STATUS_GO_ON
=
3
;
}
// Register a file upload.
message
RegisterFileUploadRequest
{
}
message
RegisterFileUploadRequest
{}
// Response of the file server upon an upload registration request.
message
RegisterFileUploadResponse
{
// Whether the server accepted or rejected the registration.
RegistrationStatus
status
=
1
;
// The registration id is used to identify chunks and files which belong to the same upload .
// The registration id is used to identify chunks and files which belong to
// the same upload .
string
registration_id
=
2
;
// The server's maximum chunk size. Submitting bigger chunks has undefined behavior.
// The server's maximum chunk size. Submitting bigger chunks has undefined
// behavior.
int64
max_chunk_size
=
4
;
// The server's maximum file size. Submitting bigger files has undefined behavior.
// The server's maximum file size. Submitting bigger files has undefined
// behavior.
int64
max_file_size
=
5
;
}
...
...
@@ -595,7 +599,8 @@ message RegisterFileDownloadRequest {
// Identifies a file which is to be downloaded.
message
FileIdentifier
{
// Wraps several identifiers in order to have them as a repeatable field in other messages.
// Wraps several identifiers in order to have them as a repeatable field in
// other messages.
oneof
wrapped_identifier
{
// An entity id.
string
entity_id
=
1
;
...
...
@@ -623,7 +628,6 @@ message FileDownloadHeader {
repeated
Message
infos
=
6
;
}
// Response to a download registration request.
message
RegisterFileDownloadResponse
{
// Whether the server accepted or rejected the registration.
...
...
@@ -643,7 +647,6 @@ message FileChunk {
bytes
data
=
5
;
}
// Temporary identifier of a single file during a transmission.
message
FileTransmissionId
{
// The registration id which has been issued by the target of the trans
...
...
@@ -654,8 +657,8 @@ message FileTransmissionId {
string
file_id
=
2
;
}
//
Request for a file upload which has been registered previously. Chunks may be
send in any order.
// Request for a file upload which has been registered previously. Chunks may be
// send in any order.
message
FileUploadRequest
{
// A single file chunk
FileChunk
chunk
=
1
;
...
...
@@ -685,12 +688,14 @@ message FileDownloadResponse {
service
FileTransmissionService
{
// Register a file upload. This needs to be done prior to the actual upload
// and prior to the transaction request which uses the uploaded files.
rpc
RegisterFileUpload
(
RegisterFileUploadRequest
)
returns
(
RegisterFileUploadResponse
);
rpc
RegisterFileUpload
(
RegisterFileUploadRequest
)
returns
(
RegisterFileUploadResponse
);
// The actual file upload. The upload has to be registered prior to this rpc.
rpc
FileUpload
(
FileUploadRequest
)
returns
(
FileUploadResponse
);
// Register a file download. This needs to be done prior to the actual download.
rpc
RegisterFileDownload
(
RegisterFileDownloadRequest
)
returns
(
RegisterFileDownloadResponse
);
// Register a file download. This needs to be done prior to the actual
// download.
rpc
RegisterFileDownload
(
RegisterFileDownloadRequest
)
returns
(
RegisterFileDownloadResponse
);
// The actual download. The download has to be registered prior this rpc.
rpc
FileDownload
(
FileDownloadRequest
)
returns
(
FileDownloadResponse
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment