0

I have created a proto file

  syntax = "proto3";

package example;

message HelloRequest {
    string name = 1;
}

message HelloResponse {
    string greeting = 1;
}

// 4. service, unary request/response
service GreetingService {
    rpc GetGreetingMethod(HelloRequest) returns (HelloResponse);
}

When I generate the code for golang I can see GetGreetingMethod method in test.pb.go (protoc --go_out=plugins=grpc:. test.proto)

But when I generate the java code ( protoc dir/test.proto --java_out=proto) I get file where I cant find my rpc function.
Same can be checked here. Any suggestion ?

user2449952
  • 581
  • 1
  • 7
  • 21

0 Answers0