Skip to content

Instantly share code, notes, and snippets.

@ahmagdy
Created February 17, 2019 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmagdy/338d2e57d085599a72e5d74e993a9f24 to your computer and use it in GitHub Desktop.
Save ahmagdy/338d2e57d085599a72e5d74e993a9f24 to your computer and use it in GitHub Desktop.
syntax = "proto3";
package accountproto;
message CreateAccountRequest{
string username = 1;
string email = 2;
}
message CreateAccountResponse{
string id = 1;
}
message GetAccountInformationRequest{
string id = 1;
}
message GetAccountInformationResponse{
string id = 1;
string username = 2;
string email = 3;
}
service AccountService{
rpc CreateAccount(CreateAccountRequest) returns (CreateAccountResponse){}
rpc GetAccountInformation(GetAccountInformationRequest) returns (GetAccountInformationResponse){}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment