Skip to content

Instantly share code, notes, and snippets.

@kooba
Created February 28, 2019 09:22
Show Gist options
  • Save kooba/958e1b8d84249f45c6a157788b471c88 to your computer and use it in GitHub Desktop.
Save kooba/958e1b8d84249f45c6a157788b471c88 to your computer and use it in GitHub Desktop.
Protobuf Service Definition
syntax = "proto3";
package products;
service products {
rpc get_product(GetProduct) returns (Product);
}
message Product {
int32 id = 1;
string title = 2;
}
message GetProduct {
int32 id = 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment