Skip to content

Instantly share code, notes, and snippets.

@leleofg
Created September 10, 2020 23:56
Show Gist options
  • Save leleofg/9118244769370b771f1d2e7b303d203c to your computer and use it in GitHub Desktop.
Save leleofg/9118244769370b771f1d2e7b303d203c to your computer and use it in GitHub Desktop.
User Protobuf file
syntax = "proto3";
service UserService {
rpc createUser (User) returns (User) {}
rpc getUserById (UserId) returns (User) {}
}
message User {
int32 id = 1;
string email = 2;
string username = 3;
string password = 4;
}
message UserId {
int32 id = 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment