[protobuf] Dynamic Message and google::protobuf::Message incompatibility

2013-01-16 Thread m
Hi All, I'm seeing an incompatibility between a dynamically generated google::protobuf::Message (DynamicMessage?) created with a google::protobuf::DynamicMessageFactory and a normal google::protobuf::Message. What I'm running up against ultimately comes down to this: I can't dynamic_cast a Dy

[protobuf] Re: Dynamic Message and google::protobuf::Message incompatibility

2013-01-17 Thread m
pb::MessageFactory::generated_factory(); const gpb::Message* prototype = factory->GetPrototype( descriptor ); gpb::Message* message = prototype->New(); gpb::Message* m = gpb::TextFormat::ParseFromString( "blah: \"some string\" bleh: 3", message ); On Wed

[protobuf] Re: Dynamic Message and google::protobuf::Message incompatibility

2013-01-17 Thread m
Sorry, there's a typo on that last line. It should be: gpb::TextFormat::ParseFromString( "blah: \"some string\" bleh: 3", message ); On Thursday, January 17, 2013 11:31:48 AM UTC-8, m wrote: > > Thanks for your reply. > > My application links against al

[protobuf] Re: Dynamic Message and google::protobuf::Message incompatibility

2013-01-18 Thread m
gt; > On Friday, January 18, 2013 3:31:48 AM UTC+8, m wrote: >> >> Thanks for your reply. >> >> My application links against all the stub proto sources of the types I >> will be creating. What I've found works is if I use the default(?) >> descri

Re: License of the output (the flex/bison problem)

2008-09-30 Thread Alain M.
Kenton Varda escreveu: > Our lawyer's opinion seems to be that the generated code is owned by the > owner of the input file by default, even without a special note. I have follwed similar discussions in many lists, and the conclusion is allways that "generated code" is NOT "derived work" and

Re: Protobuf's Missing Features

2008-11-07 Thread Alain M.
code_monkey_steve escreveu: > This is my single biggest complaint, and the one reason protobuf is > unsuitable for my project: the message definitions need to include > enough information to dynamically generate the user interface for both > displaying and composing messages. I am new to this d

Re: Is it possible to download the documentation?

2008-11-12 Thread Alain M.
I usualy can download whole manuals with this: wget -r -k -p -F -l 0 -t 10 -nc -np http://... -r recursive -k convet links -p whole page -F force html -l 0 number of levels (0=all) -t 10 number of tentatives -nc avoid links to repeated files -np not-parent directoies I hope this helps Alain Sc

Re: Use of Protobuf as a Simple Database

2008-12-12 Thread Alain M.
This topic is very interesting, and I have put a lot of thought in it. Let's share: I have noticed that in most of my applications, most of the columns in the database are just storage for later reports, nothing happens there. I gess this is what you call persistence. I was thinking of structu

Re: Pb with online doc on website?

2009-01-05 Thread Alain M.
Interesting... Google's Chrome is the only browser that dos NOT work google's stuff ;) BTW, is there a users' list about Chrome? Alain Olivier Gautherot escreveu: > Hi Kenton, thanks for the insight. > > On Mon, Jan 5, 2009 at 4:38 PM, Kenton Varda > wrote: > >

Re: Performance comparison of Thrift, JSON and Protocol Buffers

2009-03-04 Thread Alain M.
Hi, I was reading this comparison yesterday and was woried about PB performance... But today I studied a little more about JSON and I would like to share this: JSON is not at all comparable with ProtBuf, it is much much simpler. It is just a way of putting variables in a pack. ProtBuf is a m

PATCH: Optimized version of OutputStream

2009-04-19 Thread Christian M
Hi all, Current implementation of OutputStream in python has significant performance problems on windows due realloc for every append in array.fromstring. SerializeToString on a 600k buffer could take minutes on windows. The problem does not occur on Linux/OSX for our test-cases. Patch with Output

Re: Is there a need or desire for protobuf-lite?

2009-04-20 Thread Alain M.
Is it possible to use protobuf-c in the embedded side and regular protbuff in the PC side? This sound like a win-win option, or am I mistaken??? Thanks in advance for feedback, Alain Wink Saville escreveu: > In the embedded systems they are both important. I potentially see 100's > of messages

Forward/backwards compatibility - slightly OT

2009-06-08 Thread Alain M.
Hi, One of the big advantages of ProtBuf is the ability to make comunications Forward *and* backward compatible beween versions. I would like to study the matter a little more, preferably not directly related to PB, but in a neutral background (even XML could be). Can enyone send some referen

Decoders for Network Analyzer (Wireshark/Ethereal)

2009-06-19 Thread Jon M
Hello, I am evaluating using Protocol Buffers for objects that are shared across a distributed system. One key thing I would like is a way to look at these objects "on the wire" by sniffing the IP traffic in my network. Traditionally, we have written custom decoders for sniffers such as Wireshark

PB's vs ASN.1

2009-06-23 Thread Jon M
Hello, The system I am currently working on uses ASN.1 at the heart of the client/server communication. I am evaluating PB's for another part of the system that hasn't been implemented yet and was curious if anyone can point me to any articles/blogs comparing and contrasting PB's and ASN.1? Than

[protobuf] Parsing issue Protobuf schema

2022-09-22 Thread Sunitha M
Hi I have json as below: {"bounding_box": {"type":1,"coordinate":[[1,2],[2,3],[4,5]]}} How can we parse this one and load into BigQuery table as event Thanks -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group

[protobuf] Modifying existing message field to repeated breaks compatibility?

2015-09-04 Thread Sreejith M
Hi , I searched for a while to see if this query is answered before. But unfortunately its not been asked before. If i am changing an existing field say an int to a repeated int. And lets assume i already have old data. If we read the old data back. Would the (read) repeated field have a size o

[protobuf] How to represent custom java map in proto

2016-11-22 Thread mangaiappan m
Considering below custom map , Class A implements Map { // implements all map methods like get , put , etc } interface B { void myMethod(A a) } Whether this can be represented in proto 3 ? -- You received this message because you are subscribed to the Google Groups "Protocol Buffers

[protobuf] Is protbuf Java's toByteArray() method same as python's SerializeToString()?

2017-04-04 Thread S M
I'm working on python protobuf and I need to convert a protobuf object to bytes. I know in Java, it can be done using toByteArray() method: byte[] toByteArray(): serializes the message and returns a byte array containing its raw bytes. In Python there is SerializeToString() method: Seriali

[protobuf] Compile protobuf to use Java primitive classes instead of well-known types

2018-01-04 Thread Renatas M
Lets say I have test.proto file: syntax = "proto3"; option java_package = "testing"; option java_outer_classname = "Test_v1"; import "google/protobuf/wrappers.proto"; message TestMessage { .google.protobuf.Int32Value integerField = 1; } If I compile

Re: [protobuf] Compile protobuf to use Java primitive classes instead of well-known types

2018-01-05 Thread Renatas M
Hi Josh, thank you a lot for informative answer. 2018 m. sausis 4 d., ketvirtadienis 15:34:37 UTC, Josh Humphries rašė: > > What you're asking for is not currently do-able. There is an existing > request to add this functionality though: > https://github.com/google/protobuf/i

[protobuf] Is protobuffers right for me?

2018-07-29 Thread M P
I will be sending* hundreds of results of data in the form of a list as part of a protocol* I'm designing. Protobuffers looks ideal to help speed development across multiple services. I didn't see anything about lists though. *Is it possible to do? * Some items may reference other incoming pack

[protobuf] com.google.protobuf.InvalidProtocolBufferException: While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been

2020-02-03 Thread Chetan M
I have a proto definition that has too many fields.I ended up just populating a couple of fields for test and sending them out but the consumer complains when parsing with the above message.Why is it so?I wouldn't be sending down messages with just 2-3 fields in production env but for testing I

[protobuf] clarification on Protobuf Bytestring Java Apis

2020-07-10 Thread Shashank M
Hi I am looking for some clarification on Protobuf Bytestring Apis. I have a ByteString and i need to convert to a nio ByteBuffer or to a byte[] without having to perform a copy of underlying bytes . toByteArray() method seems to perform a copy of bytes from backing array. Is this right asR

[protobuf] Native Module for PHP

2011-07-27 Thread M@xim
Hi, Thanks for your hard word on the topic :) My request is : does it exist a native module in order to include in PHP..? sth like .so (for Linux) or .dll (php on Windows) Anyway, thanks for your answers ;) -- You received this message because you are subscribed to the Google Groups "Protoco

[protobuf] Protocol buffer serialization with a cache (and ProtoBuff vs ProtoStuff)

2012-05-17 Thread M C
Hey all, I've been doing tests with the protoBuff and protoStuff APIs to see whats a better fit for our problem. We are going to have multiple clients- wich may have multiple versions of objects- accessing serialized object data in a chache. We have been looking into protoBuff/stuff as a possible

[protobuf] Re: Where can I get protocol buffer 2.3.0 jar file?

2013-04-01 Thread M prasath
Hello Sir, I just need the Protocol buffer jar file which has been created by u. On Tuesday, 10 August 2010 18:04:36 UTC+3, Prakash Rao wrote: > Hi, > I don't see Google providing protocol buffer jar file (for java > implementation). I created the jar file from source using mvn. U

Getting a Builder from full type name

2009-06-02 Thread luis . gasca . m
Hi, I am using PB as a payload for AMQP messages. The same queue will get different types of PB Messages. Right now, I am using the "type" AMQP header field to write the full name of the message as returned by msg.getDescriptorForType().getFullName(). Is there any way get a Builder from getFullN

Re: Any protocol buffers MIME types?

2009-08-17 Thread M. David Peterson
ily co-exist by simply using application/com.mydomain.foo+protobuf and application/com.yourdomain.foo+protobuf Thoughts/comments/criticism/suggestions? -- /M:D M. David Peterson Co-Founder & Chief Architect, 3rd&Urban, LLC Email: m.da...@3rdandurban.com | m.da...@amp.fm Mob

Re: 'Search this group' isn't very helpful

2009-08-17 Thread M. David Peterson
ach (which is the one I used after having similar issues about an hour ago when search for threads related to mime types) is to use the site: modifier directly with Google Search. e.g.: http://www.google.com/search?q=site:http://groups.google.com/group/protobuf+mime+type -- /M:D M. David Peterson

[protobuf] Trouble accessing nested protobuf data in Python using my schema

2023-11-14 Thread 'O M.' via Protocol Buffers
I have the following decoded protobuf data: ``` Field 1: 103281 Field 2: 2022-02-13 Field 3: Field 1: 581752 Field 2: Field 1: 4 Field 2: 07:00 Field 2: 07:15 Field 2: 07:30 Field 2: 07:45 Field 2: 08:00 Field 2: 08:15 Field 2: 08:30 Field 2: