Re: [protobuf] generate .proto file from C# code

2016-09-09 Thread Marc Gravell
You'd be best off creating it by hand, but if you want a starting point, you can use protobuf-net to get some hints; add [ProtoContract(ImplicitFields = ImplicitFields.AllPublic)] to your root type (UAVState?), and use something like Console.WriteLine(Serializer.GetProto()); to see the content. I

[protobuf] Re: protobuf-3.0 on freebsd-7

2016-09-09 Thread 'Gerben Stavenga' via Protocol Buffers
I dont think the OS matters. Which version of g++ do you use? On Friday, September 9, 2016 at 2:47:24 PM UTC-7, Sowmya Narayanam wrote: > > Can i compile protobuf-3.0 on freebsd-7 > > Is there any compatibility matrix , for the supported OS and the probuf > versions. > > I tried compiling and

[protobuf] Re: generate .proto file from C# code

2016-09-09 Thread 'Gerben Stavenga' via Protocol Buffers
No you have to make your proto definition of the structure of your class yourself. There is no existing tool for that. The generated code will also be incompatible, with your custom implementation On Friday, September 9, 2016 at 2:47:24 PM UTC-7, Gayatri Shah wrote: > > I am new to Protocol

Re: [protobuf] How to know the type of the protobuf message reading bytes from a Kafka topic?

2016-09-09 Thread 'Feng Xiao' via Protocol Buffers
On Thu, Sep 8, 2016 at 3:19 AM, Francesco Persico < francescopers...@gmail.com> wrote: > I am using protobuf as serialization to send DomainEvent(s) from one > microservice to another one. > So from one side i am sending messages to a Kafka topic (messages are > protobuf serialized DomainEvent

[protobuf] protobuf-3.0 on freebsd-7

2016-09-09 Thread Sowmya Narayanam
Can i compile protobuf-3.0 on freebsd-7 Is there any compatibility matrix , for the supported OS and the probuf versions. I tried compiling and i got this error Making all in src depbase=`echo google/protobuf/api.pb.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; /bin/bash ../libtool --tag=CXX

[protobuf] Timestamp.proto problem in c#

2016-09-09 Thread Uzair Saeed
Hello, I have successfully compiled my .proto file with google.proto.Timestamp and generated the .cs file with protoc. The only problem i am having is initialization in my c# code. I have tried the following , *.proto File* message teststamp{ string Name = 1 ; string address = 2;

[protobuf] generate .proto file from C# code

2016-09-09 Thread Gayatri Shah
I am new to Protocol buffer. I have huge file that is in C# and I want to convert that to protocol buffer definition. How do I do that? Do i need to write Protocol definition line by line? See attached file (Anything marked as non-serialized could be omitted; pretty much anything that’s

[protobuf] How to know the type of the protobuf message reading bytes from a Kafka topic?

2016-09-09 Thread Francesco Persico
I am using protobuf as serialization to send DomainEvent(s) from one microservice to another one. So from one side i am sending messages to a Kafka topic (messages are protobuf serialized DomainEvent like UserCreated(...) or UserUpdated(...)) and it works good. My .proto file is simple like

[protobuf] Add serialization method right to Builder (Java)?

2016-09-09 Thread Nickolay Mazurkin
I'm working on legacy project that has some beans with up to 300 fields. The problem is that serialization of such beans (to byte array for example) takes more than 50 microseconds that is too much as I can get no more than 2 msg/sec in this case. I've found that writeTo() method is fast