Skip to content

Instantly share code, notes, and snippets.

@canberkozcelik
Last active September 21, 2018 12:20
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 canberkozcelik/0a84590c1a67ee4321937322de6fd2aa to your computer and use it in GitHub Desktop.
Save canberkozcelik/0a84590c1a67ee4321937322de6fd2aa to your computer and use it in GitHub Desktop.
syntax = "proto2";
// there's also "proto3"
package employeebook;
option java_package = "com.cnb.employeebook";
option java_outer_classname = "EmployeeBookProtos";
service EmployeeService {
// Get all employees
rpc GetEmployees(Key) returns (stream Employee) {}
}
message Key {
required string key = 1;
}
message Employee {
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment