Skip to content

Instantly share code, notes, and snippets.

@MeiyappanKannappa
Created March 27, 2022 10:28
Show Gist options
  • Select an option

  • Save MeiyappanKannappa/684b8ee2d3197e4c6e7b7eb9b22aa8fc to your computer and use it in GitHub Desktop.

Select an option

Save MeiyappanKannappa/684b8ee2d3197e4c6e7b7eb9b22aa8fc to your computer and use it in GitHub Desktop.
Proto File
syntax = "proto3";
option java_multiple_files = true;
option java_package = "io.grpc.examples.helloworld";
option java_outer_classname = "HelloWorldProto";
option objc_class_prefix = "HLW";
package helloworld;
// The greeting service definition.
service Greeter {
// Sends a greeting
rpc SayHello (HelloRequest) returns (HelloReply) {}
}
// The request message containing the user's name.
message HelloRequest {
string name = 1;
}
// The response message containing the greetings
message HelloReply {
string message = 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment