A message type is required for both the request and response. You can always use google.protobuf.Empty (from src/google/protobuf/empty.proto) as a placeholder empty message.
On Tue, Sep 25, 2018 at 6:23 AM omid pourhadi <[email protected]> wrote: > and sometimes I don't want to pass any message type to rpc method > > rpc count() returns (int32 count) {}; > > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/protobuf. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
