Re: [protobuf] Using find_package(Protobuf) with 3.0.0

2016-08-08 Thread Øystein Walle
Thank you, I will. tirsdag 9. august 2016 02.25.24 UTC+2 skrev Feng Xiao følgende: > > > > On Mon, Aug 8, 2016 at 3:28 PM, Øystein Walle > wrote: > >> Hi, >> >> As of 3.0.0 the CMake module requires us to set >> protobuf_MODULE_COMPATIBLE in order to get the benefits of the module code >> such

Re: [protobuf] Using find_package(Protobuf) with 3.0.0

2016-08-08 Thread 'Feng Xiao' via Protocol Buffers
On Mon, Aug 8, 2016 at 3:28 PM, Øystein Walle wrote: > Hi, > > As of 3.0.0 the CMake module requires us to set protobuf_MODULE_COMPATIBLE > in order to get the benefits of the module code such as > protobuf_generate_cpp(). The example seems to refer to this as "legacy > compatibility mode" but th

Re: [protobuf] Creating ProtoBuf Messages without the generated proxy classes

2016-08-08 Thread Can Baran
Greetings Feng Is there a JAVA example for your answer and possible a usage case? Thanks Can On Friday, August 5, 2016 at 11:23:30 AM UTC-7, Feng Xiao wrote: > > > > On Thu, Aug 4, 2016 at 5:47 AM, Philipp Weissenbacher < > philipp.we...@gmail.com > wrote: > >> Hi all, >> >> We are currently imp

[protobuf] dynamic message - google protobuf

2016-08-08 Thread Can Baran
Greetings Everyone, I spent a few days on trying to understand how to learn de-serializing information without invoking the necessary java classes. This is what I receive message myMsg { required string name=1; required bytes data=2; } data could have been serialized by one of these: a.proto

Re: [protobuf] Moving optional field into oneof

2016-08-08 Thread 'Jie Luo' via Protocol Buffers
It will not be dropped after serialize and parse, because you only have one field in the old message. On Mon, Aug 8, 2016 at 3:39 PM, 'Mircea Markus' via Protocol Buffers < protobuf@googlegroups.com> wrote: > Hi, > > The oneof documentation >

[protobuf] Moving optional field into oneof

2016-08-08 Thread 'Mircea Markus' via Protocol Buffers
Hi, The oneof documentation states that if I move an optional field into an oneof, I "may lose some of your information (some fields will be cleared) after the message is serialized and parsed" Can y

[protobuf] move optional field into oneof

2016-08-08 Thread 'Mircea Markus' via Protocol Buffers
Hi, The doc warns about moving optional fields into oneof: 'You may lose some of your information (some fields will be cleared) after the message is serialized and parsed' I want to move an single optional field into an oneof, i.e

[protobuf] Using find_package(Protobuf) with 3.0.0

2016-08-08 Thread Øystein Walle
Hi, As of 3.0.0 the CMake module requires us to set protobuf_MODULE_COMPATIBLE in order to get the benefits of the module code such as protobuf_generate_cpp(). The example seems to refer to this as "legacy compatibility mode" but the commit message says it is "improved". I must admit I am a CM

Re: [protobuf] Convert .proto file from "proto2" to "proto3"

2016-08-08 Thread 'Jie Luo' via Protocol Buffers
Yes, C# only support proto3. If you only use proto3 features, they are wire compatible. Not all the proto2 file can be converted to proto3, such as: Explicit default values cannot be specified for fields. Enum definitions must start with enum value zero. Extensions must not be used. (

[protobuf] intellij IDE integration

2016-08-08 Thread Suktae Choi
Hello, everyone. Im trying to integrate protobuf automatically compiled in intellij IDE 2016.2.1 in mac edition. I've installed two plug-in to let editor understand .proto extension files. - Google Protocol Buffers support - Protobuf Support It seems fine in maven build time. but I want to m

[protobuf] Protocol Buffer using Redis

2016-08-08 Thread Madhu Sudhanarao palepu
I am working on Redis in my project. I would like to make use of serialization using Protocol Buffer (GPB) with redis. Does fundamentally GPB with redis can be allowed to combine both? -Regards. -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" gr

[protobuf] intellij integration

2016-08-08 Thread Suktae Choi
test -- 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 protobuf+unsubscr...@googlegroups.com. To post to this group, send email to protobuf@googlegroups.com. V

Re: [protobuf] service without gRPC

2016-08-08 Thread Mohamed Koubaa
Thanks for the replies. The documentation has room for improvement on this. I just noticed this: option cc_generic_services = true; It seems to generate these stubs without the grpc plugin. However, it did not seem to work for C# or Python (it seems the gRPC plugin is the only way to make thos