The stream keyword was added in protobuf 3.0. (Version 2.5 is quite old.) Support for map types and proto3 syntax (which comes with a handful of language restrictions and semantic changes for messages) were also added in 3.0.
---- *Josh Humphries* jh...@bluegosling.com On Thu, Feb 15, 2018 at 4:50 PM, Yanpeng Wu <pengfl...@gmail.com> wrote: > *helloworld.proto* > > syntax = "proto2"; > package helloworld; > > // The greeting service definition. > service Greeter { > // Sends a greeting > rpc SayHello (HelloRequest) returns (stream HelloReply) {} > } > > // The request message containing the user's name. > message HelloRequest { > optional string name = 1; > } > > // The response message containing the greetings > message HelloReply { > optional string message = 1; > } > > > $../protobuf-2.5.0/bin/protoc -I. --cpp_out=. helloworld.proto > $ helloworld.proto:7:47: Expected ")". > > Furthermore, are there any harms to incorporate grpc-1.8.4 with > protobuf-2.5.0? > > 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+unsubscr...@googlegroups.com. > To post to this group, send email to grpc-io@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/8d7dd32c-0d64-4087-918f-62e8a7b93dbc%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/8d7dd32c-0d64-4087-918f-62e8a7b93dbc%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 grpc-io+unsubscr...@googlegroups.com. To post to this group, send email to grpc-io@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/CAO78j%2B%2BWL6gJOBQJM9Atg7L55tFeg0Zvd0_K-SkPivKB1HdHJg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.