Commit 8915eb99 authored by mohammad.salama's avatar mohammad.salama

Generating proto file

parent 2c0d18e1
......@@ -85,6 +85,7 @@
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.classifier}</pluginArtifact>
<protoSourceRoot>src/main/java/Proto</protoSourceRoot>
</configuration>
<executions>
<execution>
......
syntax = "proto3";
option java_multiple_files = true;
option java_package = "MyFileUploadService";
package com.MyFileUploadService;
message File {
bytes content = 1;
}
message FileUploadRequest {
File file = 1;
}
enum UploadStatus {
SUCCESS = 0;
FAILED = 1;
}
message FileUploadResponse {
string fileName = 1;
UploadStatus uploadStatus = 2;
}
message FileMetadata {
string fileNameWithType = 1;
int32 contentLength = 2;
}
enum FileOperations {
CREATE = 0;
WRITE = 1;
CLOSE = 2;
}
service FileUploadService {
rpc uploadFile (stream FileUploadRequest) returns (FileUploadResponse) {}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment