That output is from protobuf-net, not protoc. I already showed the code to
ask protobuf-net to have a go at writing a .proto schema from a type. Note
that it is not perfect and you may want to tweak names etc to match
convention. But names don't matter much to protobuf.
On 12 Sep 2016 1:59 pm, "Gayatri Shah" <gayatr...@gmail.com> wrote:
> Thank you Marc. Do you have sample of .proto file? What did you have to
> do to make it compile? I just wrote few lines of .proto file and I m using
> compiler? Can you also give me ur input (.proto file) for that you gout
> output *https://gist.github.com/mgravell/4967b490d40f13300919b018af23b282
> Thanks for your time.
> On Fri, Sep 9, 2016 at 7:08 PM, Marc Gravell <marc.grav...@gmail.com>
>> 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
>> to see the content. I had to invent a lot of stuff to get it to compile,
>> but that gives output like https://gist.github.com/m
>> gravell/4967b490d40f13300919b018af23b282 - how useful this is for actual
>> serialization depends a lot on your system.
>> On 7 September 2016 at 13:41, Gayatri Shah <gayatr...@gmail.com> wrote:
>>> 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 a list can be skipped.)
>>> thanks in advance.
>>> 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 email@example.com.
>>> Visit this group at https://groups.google.com/group/protobuf.
>>> For more options, visit https://groups.google.com/d/optout.
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 post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.