[protobuf] Protobuf - How to create a FileDescriptor object from a Descriptor file

2016-03-29 Thread Raghu
I created a Descriptor file from Example.proto file using the below command. .\protoc.exe --proto_path=D:\ExampleProject\ --include_imports D:\ExampleProject\Example.Proto --descriptor_set_out=D:\ExampleProject\Example.pb We want to read this file and create FileDescriptorSet object in C#.

Re: [protobuf] Re: Streaming Serialization - Suggestion

2016-03-29 Thread David Yu
On Wed, Mar 30, 2016 at 8:06 AM, 'Feng Xiao' via Protocol Buffers < protobuf@googlegroups.com> wrote: > > > On Mon, Mar 28, 2016 at 10:53 PM, Yoav H wrote: > >> They say on their website: "When evaluating new features, we look for >> additions that are very widely

[protobuf] Re: Getting the full (on disk) path to an input .proto from plugin

2016-03-29 Thread Horst Noreick
the compiler uses GOPATH from environment -- 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

[protobuf] Protobuf - Creating the ProtoBuf object from a physical File

2016-03-29 Thread Raghu
Hi, I have a requirement : 1. I have converted Example.proto file to Example.cs file code using the protoc.exe command. 2. I want to read Example.cs file using FileStream and create the Example object or atleast the TypeOf. I do not want to include it in my project as I want to make it

Re: [protobuf] Re: Streaming Serialization - Suggestion

2016-03-29 Thread 'Feng Xiao' via Protocol Buffers
On Mon, Mar 28, 2016 at 10:53 PM, Yoav H wrote: > They say on their website: "When evaluating new features, we look for > additions that are very widely useful or very simple". > What I'm suggesting here is both very useful (speeding up serialization > and eliminating

[protobuf] Getting the full (on disk) path to an input .proto from plugin

2016-03-29 Thread Elvis Stansvik
Hi all, I'm the author of protoc-gen-doc, a documentation generator plugin for protoc. I need to be able to get the full (on disk) path of an input file, but can't find a way to do so. The reason I need it is that I need to be able to open the file to do some custom parsing of the raw file

Re: [protobuf] Default Values vs Missing Values

2016-03-29 Thread Ilia Mirkin
You can't distinguish an empty repeated from one that's not there at all. If you need that, you'll need a manual presence field. On Tue, Mar 29, 2016 at 2:02 AM, Yoav H wrote: > How do they handle collections (repeated, non packed) in this case? > The absence of the tag

Re: [protobuf] Default Values vs Missing Values

2016-03-29 Thread Yoav H
How do they handle collections (repeated, non packed) in this case? The absence of the tag is not conclusive. Actually, even packed collection (and strings, and binary data) suffer from that, as you are "expected" to not include a packed collection with zero bytes. On Saturday, March 26, 2016