ick01.log-helper-example-grpc-svc.1.0.5-RELEASE.source-code.message.proto Maven / Gradle / Ivy
syntax = "proto3";
package protocol;
import "file.proto";
option go_package = "protocol";
option java_multiple_files = true;
option java_package = "com.redick.example.protocol";
message User {
reserved 6 to 7;
reserved "userId2";
int32 userId = 1;
string username = 2;
oneof msg {
string error = 3;
int32 code = 4;
}
string name = 8;
UserType userType = 9;
repeated int32 roles = 10;
protocol.File file = 11;
map hobbys = 12;
}
enum UserType {
UNKNOW = 0;
ADMIN = 1;
BUSINESS_USER = 2;
};
service UserService {
rpc getUser (User) returns (User) {}
rpc getUsers (User) returns (stream User) {}
rpc saveUsers (stream User) returns (User) {}
}
service FileService {
rpc getFile(User) returns(File) {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy