service HelloService {
rpc SayHello (HelloRequest) returns (HelloResponse); // end with ;
}service HelloService {
rpc SayHello (HelloRequest) returns (HelloResponse) {} // end with {}
}--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/08bdeeae-4aed-4fe6-969f-593e7c63fc56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,You can add service options inside { }. See https://developers.google.com/protocol-buffers/docs/proto3#options (if you don't know what message, service etc. options are, chances are you can safely ignore they exist).Jan
On Mon, Feb 20, 2017 at 10:33 PM, 王迁 <wangqi...@gmail.com> wrote:
There are two kind of service definition in grpc official guide,one is:service HelloService { rpc SayHello (HelloRequest) returns (HelloResponse); // end with ; }
and the other is:service HelloService { rpc SayHello (HelloRequest) returns (HelloResponse) {} // end with {} }Is there some difference between them?Thanks!
--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.