Guest User

Untitled

a guest
Aug 14th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. syntax = "proto3";
  2.  
  3. option java_multiple_files = true;
  4. option java_package = "io.grpc.examples.helloworld";
  5. option java_outer_classname = "HelloWorldProto";
  6.  
  7. package helloworld;
  8.  
  9. // The greeting service definition.
  10. service Greeter {
  11. // Sends a greeting
  12. rpc SayHello (HelloRequest) returns (HelloReply) {}
  13. rpc SayStreamHello (HelloRequest) returns (stream HelloReply) {}
  14. }
  15.  
  16. // The request message containing the user's name.
  17. message HelloRequest {
  18. string name = 1;
  19. }
  20.  
  21. // The response message containing the greetings
  22. message HelloReply {
  23. string message = 1;
  24. }
Add Comment
Please, Sign In to add comment