Skip to content

Instantly share code, notes, and snippets.

@vivekvinodh
Last active November 25, 2019 01:50
Show Gist options
  • Save vivekvinodh/f499df4f946beac3c1ffeb0a30218ef4 to your computer and use it in GitHub Desktop.
Save vivekvinodh/f499df4f946beac3c1ffeb0a30218ef4 to your computer and use it in GitHub Desktop.
BookProto v1
syntax = "proto3";
package book;
option java_package = "com.example.proto";
option java_outer_classname = "BookProto";
message Book {
int64 isbn = 1;
string title = 2;
string author = 3;
}
message GetBookRequest {
int64 isbn = 1;
}
service BookService {
rpc GetBook (GetBookRequest) returns (Book);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment