Protobuf RPC Service method without parameters

You have to specify an input type. If you don’t want the method to take any parameters, define an empty message type, like:

message WhoAreYouParams {}

The reason this is required is so that if you later need to add an optional parameter, you can do so without breaking existing code.

Leave a Comment