Skip to content

Commit 152234a

Browse files
authored
Rename upload/download file messages (#9)
1 parent 864cfac commit 152234a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

ansys/api/additive/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.3
1+
1.0.4

ansys/api/additive/v0/additive_simulation.proto

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import "ansys/api/additive/v0/additive_domain.proto";
1111

1212
service SimulationService {
1313
rpc Simulate(SimulationRequest) returns (stream SimulationResponse);
14-
rpc UploadFile(stream FileUploadRequest) returns (stream FileUploadResponse);
15-
rpc DownloadFile(FileDownloadRequest) returns (stream FileDownloadResponse);
14+
rpc UploadFile(stream UploadFileRequest) returns (stream UploadFileResponse);
15+
rpc DownloadFile(DownloadFileRequest) returns (stream DownloadFileResponse);
1616
}
1717

1818
message SimulationResponse {
@@ -36,29 +36,29 @@ message SimulationRequest {
3636
}
3737
}
3838

39-
// FileUploadRequest is used to transfer a file in chunks from
39+
// UploadFileRequest is used to transfer a file in chunks from
4040
// a client to the server. Each message should be <= 4MiB
4141
// unless the gRPC max receive message size has been changed.
42-
message FileUploadRequest {
42+
message UploadFileRequest {
4343
string name = 1; // file name on client
4444
uint64 total_size = 2; // total file size in bytes
4545
bytes content = 3; // chunk of file content
4646
string content_md5 = 4; // md5 hash of content
4747
}
4848

49-
message FileUploadResponse {
49+
message UploadFileResponse {
5050
string remote_file_name = 1;
5151
Progress progress = 2;
5252
}
5353

54-
message FileDownloadRequest {
54+
message DownloadFileRequest {
5555
string remote_file_name = 1; // full path to file on server
5656
}
5757

58-
// FileDownloadResponse is used to transfer a file in chunks from
58+
// DownloadFileResponse is used to transfer a file in chunks from
5959
// the server to a client. Content and content_md5 may be empty
6060
// if only a progress message is sent.
61-
message FileDownloadResponse {
61+
message DownloadFileResponse {
6262
string file_name = 1; // name of file without path
6363
uint64 total_size = 2; // total file size in bytes
6464
bytes content = 3; // chunk of file content

0 commit comments

Comments
 (0)