Thanks Jan, I read doc about options and the file descriptor.proto 
<https://github.com/google/protobuf/blob/master/src/google/protobuf/descriptor.proto>.
 
It seems quite an advance usage and I choose to ignore them ^_^.

在 2017年2月21日星期二 UTC+8下午5:11:18,Jan Tattermusch写道:
>
> 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, 王迁 <[email protected] <javascript:>> 
> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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
>>  
>> <https://groups.google.com/d/msgid/grpc-io/08bdeeae-4aed-4fe6-969f-593e7c63fc56%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/dd2b6c93-d3fd-402a-ae14-5e9a70a5611c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to