Last active
September 21, 2018 12:20
-
-
Save canberkozcelik/0a84590c1a67ee4321937322de6fd2aa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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