Re: [protobuf] Help Requested: error C3646: 'noexcept' unknown override specifer

2019-09-10 Thread Dan Morin
Sep 10, 2019 at 1:31 PM Dan Morin wrote: > >> Hello, >> >> I'm attempting to install Protobuffers Version 3.6.1 on a windows 7 >> machine. I've reached the 'nmake' step after the multiline cmake command, >> and am using the command prompt from Visual Studio 2017 >&g

[protobuf] Help Requested: error C3646: 'noexcept' unknown override specifer

2019-09-10 Thread Dan Morin
ue? Thank you, Dan -- 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 view this discussion on

[protobuf] reducing external dependencies on per language basis in protobuf defintion files

2017-04-06 Thread Dan Clark
Some packages have additional options specified on per language basis: For example: syntax = "proto3" package anexample; ... import "gogoproto/gogo.proto"; option (gogoproto.marshaler_all) = true; option (gogoproto.unmarshaler_all) = true; ... Note, that when building this for a mixed language

[protobuf] PHP GTFS-RT parsing .proto extension data

2017-02-23 Thread Dan Jabbour
the parse() function find them, but I've tried a lot of different combinations and I think I'm stuck. How do I get the FeedMessage->parse() function to find my new classes? Any help is appreciated! -Dan -- You received this message because you are subscribed to the Google Groups "Protocol

[protobuf] printing typenames with DebugString with C++

2017-01-04 Thread Dan Becker
I'm using DebugString() in C++ to pretty print google protobuf messages read in binary form, and converted using ParseFromIstream(). Its only printing the type name at the top level, and for all levels, its just printing the type number. I am using extensions. is that the reason for the

[protobuf] Why can't enums be used as map keys?

2016-02-03 Thread Dan Karp
The protobuf3 language guide says If you want to create an associative map as part of your data definition, protocol buffers provides a handy shortcut syntax: map map_field = N; ...where the key_type can be any integral or string type (so, any scalar

[protobuf] Streaming results from a repeated field in Java

2015-06-15 Thread dan bress
at a time, instead of all of them at once. Is there a way to do this using the Java API? If so can you share an example of how to do so? Thanks! Dan -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To unsubscribe from this group and stop

[protobuf] ProtoBuf file larger than CSV

2014-04-11 Thread Dan Ling
I have a 48mb CSV file with 200,000 records and 37 string columns. I used protobuf to write the same 200,000 records to a .bin file, and the .bin file is about 60mb. Is this expected? I thought the protobuf file would be smaller. -- You received this message because you are subscribed to

Re: [protobuf] nooby question: output file extension from protoc

2013-12-06 Thread Dan Schmidt Valle
Don't know about the internals, but it should be quite easy to write a script round the command that renames after the generation of the file. On 5 December 2013 22:07, Anthony Glaser apgla...@tampabay.rr.com wrote: By default the protoc commands outputs a file with an extension of .pb.cc

[protobuf] Please add 'Wire' to ThirdPartyAddOns page

2013-10-25 Thread Dan Rice
constrained Java environments and is Apache-licensed. Thanks, Dan -- 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

Re: [protobuf] How could I get service, rpc request response, message types at runtime?

2013-05-20 Thread Dan Schmidt Valle
I would suggest that you include the type of request/response in your messages. You could perhaps have an enum with your message types and that way you can check once you parse the message. Of course this means that you might need to use optionals for the payload of your message. Parsing to

Re: [protobuf] gcc 4.7.0 compile error with -std=c++11

2013-01-30 Thread Dan Kozlowski
On Tuesday, July 3, 2012 1:53:20 AM UTC-4, liujisi wrote: The internal version is already c++11 compatible. It will be included in the next release. On Fri, Apr 20, 2012 at 4:23 PM, Brian Nesbitt brian@gmail.com wrote: Hello folks, Protobuf 2.4.1 fails to build using gcc 4.7.0

Re: [protobuf] Compiler issue when using FileDescriptor set in my own message

2012-06-05 Thread Dan
statement relative as you suggested the problem was resolved. -Dan On Monday, June 4, 2012 5:26:35 PM UTC-7, Jason Hsueh wrote: The issue is import paths - the pre-generated versions of descriptor.pb.{h,cc} are generated relative to the source root. Instead of importing descriptor.proto, you should

Re: [protobuf] DescriptorPool: call to FindFileByName() required before call to FindMessageTypeByName()?

2012-06-05 Thread Dan
explicitly. On Wed, May 30, 2012 at 1:16 PM, Dan dashegh...@gmail.com wrote: Hi, In the code below, I've found that the returned Descriptor* is NULL after I call FindMessageTypeByName(), *unless* I first call FindFileByName() on the .proto which contains the Message I am looking

[protobuf] DescriptorPool: call to FindFileByName() required before call to FindMessageTypeByName()?

2012-05-30 Thread Dan
to setup a SourceTreeDescriptorDatabase to a directory that contains all of the .proto files I plan to use and not have to search for each file individually. Any advice is much appreciated. thanks, Dan string sProtoRoot(/home/dan/tests/new-protobuf/protos); DiskSourceTree dst; dst.MapPath

[protobuf] Compiler issue when using FileDescriptor set in my own message

2012-05-25 Thread Dan
been defined in descriptor.pb.h. It is not, and it does not appear that I should try to compile descriptor.proto myself. I am using version 2.4.1 of the protobuf library, and as you've probably guessed, trying to compile C++. Any ideas on how to fix this? thanks in advance, Dan -- You received

[protobuf] .proto file with enumeration only

2011-02-16 Thread dan
i have a .proto with nothing but an enumeration in it. it compiles, but the output .h and .cc file are basically empty stubs. i made a test file with enum foo { bar = 1; } and that compiles just fine... the file i'm having problems with is the essentially the same but has about 125 values.

[protobuf] Re: .proto file with enumeration only

2011-02-16 Thread dan
solved it. apparently you can't have a comment as the first line of your file. On Feb 16, 11:40 am, dan jiggersp...@gmail.com wrote: i have a .proto with nothing but an enumeration in it.  it compiles, but the output .h and .cc file are basically empty stubs.  i made a test file with enum

[protobuf] Re: .proto file with enumeration only

2011-02-16 Thread dan
commented out in the middle of the enumeration like so: enum foo { bar = 1; // baz = 2; } On Feb 16, 1:53 pm, dan jiggersp...@gmail.com wrote: solved it.  apparently you can't have a comment as the first line of your file. On Feb 16, 11:40 am, dan jiggersp...@gmail.com wrote: i have

[protobuf] Preferred Citation?

2010-12-03 Thread Dan Homerick
://code.google.com/apis/protocolbuffers/}}, } but I'm sure that the authors list is woefully incomplete. Is there a more complete list of authors available? Alternatively, I could just put the project's URL in a footnote. - Dan -- You received this message because you are subscribed to the Google Groups

[protobuf] Handling streaming in Python

2010-11-30 Thread Dan
Hello, Does anyone have or can point me to an example of handling a stream of protobuf messages in python? Specifically what I'm trying to do is parse a stream that looks like the following HeaderSize PB int32 HeaderMessage MessageSize PB int32 Message ... MessageSize PB int32 Message The

[protobuf] What's the state of TextFormat?

2010-10-04 Thread Dan
Hi there. I'm wondering what the state of TextFormat support is in protocol buffers and if it is and will remain a fully supported option. Among other things, I'm thinking of using it as a way of storing configuration/state for objects in a message based system in an easy to read format that can

Re: [protobuf] Invitation to connect on LinkedIn

2010-02-22 Thread Dan Homerick
Yes sir, as you can see from my LinkedIn profile, I know C++, Java, Python and Ruby. Why, just last weekend I went to Ruby's house for a BBQ and pool party... On Mon, Feb 22, 2010 at 4:28 PM, Henner Zeller henner.zel...@googlemail.com wrote: Wow, that elevates protocol buffers to be a real

[protobuf] Re: File extension for data in protobuf format

2009-12-09 Thread Dan
is inside, even if you know how it is encoded. On Wed, Dec 9, 2009 at 5:14 PM, Dan lozi...@gmail.com wrote: What do you guys use for your file extension when writing data in protobuf format to a file? I'm guessing google doesn't use a file extension. -- You received this message because

[protobuf] Re: Streaming Dynamic Messages

2009-11-10 Thread Dan
Yes! That works, thanks. On Nov 9, 8:37 pm, Kenton Varda ken...@google.com wrote: You want:  com.google.protobuf.Descriptors.FileDescriptor.buildFrom() On Mon, Nov 9, 2009 at 5:25 PM, Dan lozi...@gmail.com wrote: Im trying to write the following client/server exchange using the Java

error when using nested and packed in python

2009-07-02 Thread Dan
to proceed, 2 of which I'm able to do myself: 1) don't use the packed=true option 2) catch the errors and ignore them 3) if this is actually a bug, ask you gurus to fix the protobuf code What do you recommend? Dan --~--~-~--~~~---~--~~ You received this message

Re: how to use protobuf with Google App Engine?

2009-07-02 Thread Dan
.  Protocol Buffers has, from day one, declared the package as a namespace package using setuptools, which theoretically allows sharing of the package.  For things to work, though, AppEngine has to cooperate by doing the same thing in their own code. On Thu, Jul 2, 2009 at 6:46 PM, Dan danbr

Python - Appending repeated messages instead of merging

2009-06-11 Thread Dan
Hello, I'm finding that I am writing code that looks a lot like this: tmpsubmessage = parse_submessage_data() submessage = message.submessage.add() submessage.MergeFrom(tmpsubmessage) This seems inefficient to me. One alternative would be to create the new submessage, and fill it on the spot:

Re: libprotobuf ERROR google/protobuf/message.cc:121

2009-05-22 Thread dan . schmidt . valle
? Many thanks again. Dan On May 22, 5:44 pm, Kenton Varda ken...@google.com wrote: You can capture log output using SetLogHandler():http://code.google.com/apis/protocolbuffers/docs/reference/cpp/google... http://code.google.com/apis/protocolbuffers/docs/reference/cpp/google...However, you

Re: string vs. bytes

2009-05-12 Thread dan . schmidt . valle
efficiency because serialising to string might mean that I'm losing my raw data. Otherwise, then the word ERROR on the output might be a bit too strong. If anybody can clarify, I'd be very grateful. Dan On May 10, 5:59 pm, Henner Zeller h.zel...@acm.org wrote: On Sun, May 10, 2009 at 6:08 AM, edan

Re: string vs. bytes

2009-05-12 Thread dan . schmidt . valle
be the case for using serialisation to a stream then? Thanks again for the help. Dan On May 12, 5:26 pm, Kenton Varda ken...@google.com wrote: Protocol Buffers has a bytes type.  That's what it's talking about.  Just change string to bytes in your .proto file.  (They work exactly the same in C

Python Installation without superuser

2009-04-28 Thread Dan
Hello, I'm trying to get GPB setup on a shared server environment, so I don't have the ability to run as the superuser. Is there a way to modify the installer (or link the Python files different) such that you can run GPB without needing to install to system directories or run as superuser? As

More Dynamic Python Accessors?

2009-04-27 Thread Dan
Hello, I've recently started using Google Protocol Buffers with Python on my server. I'm writing code to convert my data source into a binary payload, but I'm running into some snags and was wondering if there was a better way I'm not seeing in the documentation. Basically, I want a more