Last active
April 25, 2017 10:22
-
-
Save MarcusLongmuir/cf33f62f7a655dc9bee0963676bd43d7 to your computer and use it in GitHub Desktop.
This file contains 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 = "proto3"; | |
package examplecom.library; | |
message Book { | |
int64 isbn = 1; | |
string title = 2; | |
string author = 3; | |
} | |
message GetBookRequest { | |
int64 isbn = 1; | |
} | |
message QueryBooksRequest { | |
string author_prefix = 1; | |
} | |
service BookService { | |
rpc GetBook(GetBookRequest) returns (Book) {} | |
rpc QueryBooks(QueryBooksRequest) returns (stream Book) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment