[protobuf] Link error for protobuf abseil static libraries (Redhat8 )

2024-08-05 Thread Alex Du
Hi protobuf experts, I am trying to use protobuf static libraries with cmake configurations. Now it can build and run successfully for windows and mac. But for linux, I always get the unresolved link errors as below, can anyone help on this? link errors: /opt/rh/gcc-toolset-12/root/usr/libexec

[protobuf] google.protobuf.Duration unmarshal: add support for other suffixes ("ns", "us", "ms", "m", "h")

2021-03-25 Thread Alex Efros
Hi! Unmarshaling (e.g. from JSON) into google.protobuf.Duration currently accept only a string with float seconds with "s" suffix. I think it would be useful to support same values as time.ParseDuration <https://golang.org/pkg/time/#ParseDuration>. WBR, Alex. -- You recei

[protobuf] Moderator action required (too much spam in the Protobuf group)

2020-10-07 Thread Alex Van Boxel
I'm getting tired of the spam in this group. Where are the owners of this group. They should kick out abusive Interview poster out of this group. I'm marking his posts as abusive, but that doesn't seem to help. I'm thinking about leaving this group as the spam is too much. Thanks. -- You rec

[protobuf] Immediate Interview ll System Engineer with Electrical experience ll Columbus, IN, (100% interview with in 2 days)

2020-09-04 Thread Jim alex
Hello Associates, I have an Immediate need for a Systems Engineer with Electrical Experience. Kindly share suitable profiles at maz...@mirthconsulting.net Job Title : Systems Engineer with Electrical Experience Location : Columbus, IN Duration : 6 month

[protobuf] Immediate Need ll System Engineer with Electrical experience ll Columbus, IN.

2020-09-02 Thread Jim alex
Hello Associates, Looking for *System Engineer with Electrical experience With *my client in *Columbus, IN.* *Need consultants with 4 to 6 Years of experience…..* *Job Title : System Engineer with Electrical experience* *Location : **Columbus, IN.* *No. of Positions - 2 * *Rate: $40/hr. o

[protobuf] Looking for Sr React JS Architect with 10+years experiences in San Francisco CA.

2020-09-01 Thread Jim alex
Hello Associates, I have a very HOT need for *Sr React JS Architect*. I have an excellent project with my client at *San Francisco CA.* *Job: **Sr React JS Architect* *Location:-* *San Francisco CA* *Duration*:- 6+ month’s contract *Mandatory Skills:* Strong development skills on front-e

[protobuf] Client INTERVIEW in 24 Hours -- 3 + Years of .Net Application Developer required in Columbus, IN,

2020-09-01 Thread Jim alex
Hello Associates , I have a very HOT need for 3 + Years of .Net Application Developer. I have an excellent project with my client at Columbus, IN. Job Title : 3 + Years of .Net Application Developer Location : Columbus, IN Duration : 12 + months Rate

[protobuf] Client INTERVIEW in 24 Hours -- 3 + Years of .Net Application Developer required in Columbus, IN,

2020-08-28 Thread Jim alex
Hello Associates, I have a very HOT need for 3 + Years of .Net Application Developer. I have an excellent project with my client at Columbus, IN. Job Title : 3 + Years of .Net Application Developer Location : Columbus, IN Duration : 12 + months Rate

[protobuf] Need ll Cloud Specialist with 6 years consultant ll Auburn Hills, MI. (NO JNUTH Consultants)

2020-08-25 Thread Jim alex
Hello Associates, I have a very HOT need for 3 + Years of .Net Application Developer. I have an excellent project with my client at Columbus, IN. Job Title : 3 + Years of .Net Application Developer Location : Columbus, IN Duration : 12 + months *Rate

[protobuf] Need ll Cloud Specialist with 6 years consultant ll Auburn Hills, MI. (NO JNUTH Consultants)

2020-08-25 Thread Jim alex
Hello Associates, Looking for ll *Cloud Specialist with 6 years consultant** ll *for my client in *Auburn Hills, MI.* Job: *Cloud Specialist with 6 years consultant* *Location:-** Auburn Hills, MI.* *Duration:- 6 months +* *Rate : $40/hr* *Kindly share profile at* : *maz...@mirthconsulting.n

[protobuf] Need ll Cloud Specialist with 6 years consultant. ll uburn Hills, MI.

2020-08-25 Thread Jim alex
Hello Associates, Looking for *ll Cloud Specialist with 6 years consultant* *ll *for my client in *Auburn Hills, MI.* Job: *Cloud Specialist with 6 years consultant.* *Location:-** Auburn Hills, MI.* *Duration:- 6 months +* *Rate : $40/hr* *Mandatory Skills:* *Python, Shell, Bash, Batch,

[protobuf] Very Very Hot Urgent Need ll Embedded Engineer ll in Shoreview, MN

2020-08-21 Thread Jim alex
Hello Associates, Looking for* Embedded Engineer with Ethernet experiences* for my client in Shoreview, MN Job Title : *Embedded Engineer with **Ethernet experiences* Location: Shoreview, MN Length: 6 Months++ Interview Process: Zoom Technical test, if candidate gets all questions right then

[protobuf] INTERVIEW IN 24 hours FOR ll Embedded Engineer with Ethernet expert ll in Shoreview, MN.

2020-08-20 Thread Jim alex
Hello Associates, Looking for ll Embedded Engineer with Ethernet expert ll for my client in Shoreview, MN. Job Title : Embedded Engineer with AUTOSAR Ethernet expert Rate: $55/hr. on C2C Location: Shoreview, MN. Duration : 1+ years Exp : 7 years Kindly share updated profile at *maz...@mirt

[protobuf] Immediate Interview ll Embedded Engineer with Ethernet expert ll in Shoreview, MN.

2020-08-20 Thread Jim alex
Hello Associates, Looking for ll Embedded Engineer with Ethernet expert ll for my client in Shoreview, MN. Job Title : Embedded Engineer with AUTOSAR Ethernet expert Rate: $55/hr. on C2C Location: Shoreview, MN. Duration : 1+ years Exp : 7 years Kindly share updated profile at *maz...@mirt

[protobuf] Question about pr #7470

2020-06-24 Thread Alex Scammon
s this the correct forum to ask for these types of things? Thanks very much, -Alex -- 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

Re: [protobuf] Proposal for Publish Subscribe

2020-04-09 Thread Alex Barlow
statedgy going forward for sure, one issue is having to include that definition everywhere but we can manage that. Thanks for the interest On 9 April 2020 at 12:27:14, Alex Van Boxel (a...@vanboxel.be) wrote: If I understand you correctly you want to generate Go, Js and Typescript code out of your

Re: [protobuf] Proposal for Publish Subscribe

2020-04-09 Thread Alex Van Boxel
don't use options for this, but we use it a-lot in our Big Data pipelines. _/ _/ Alex Van Boxel On Thu, Apr 9, 2020 at 12:48 PM Alex Barlow wrote: > Hi all, > > I'm a big user of protobuf in several roles now and a common theme is > recreating the publish and subscribe p

[protobuf] Proposal for Publish Subscribe

2020-04-09 Thread Alex Barlow
Hi all, I'm a big user of protobuf in several roles now and a common theme is recreating the publish and subscribe pattern as well as RPC with protobuffers. In particular our use case at the moment is publish protobuf messages to Google Pub Sub, but have also used/experimented with Kafka/Nats/

Re: [protobuf] Using protobuf-java to write .proto files

2020-02-21 Thread Alex Van Boxel
Congratulations, cool to see other people using it ;-) Indeed, I rather have it part protobuf-java before haven maven-artifact. You can fill issues on the metastore repo, it's not abandoned. It's activity developed (I'll copy issues over when a move is ever node. _/ _/ Alex Van

Re: [protobuf] Using protobuf-java to write .proto files

2020-02-21 Thread Alex Van Boxel
Actually your question triggered something I wanted todo for a long time. You could join the discussion on this thread: https://groups.google.com/forum/#!topic/protobuf/NrhCXiXIfxk _/ _/ Alex Van Boxel On Fri, Feb 21, 2020 at 1:23 PM ittai zeidman wrote: > Nice! Thanks :) > I’ll try

[protobuf] Donating ProtoDomain and ProtoLanguageFileWriter to protobuf-java

2020-02-21 Thread Alex Van Boxel
Hi all, I have 2 utility classes for the Java implementation I like to donate to the java implementation: https://github.com/anemos-io/metastore/tree/master/putils I've been using it into our protobuf schema registry but they stand on it's own: ProtoDomain: - wrapper around FileDescriptor

Re: [protobuf] Using protobuf-java to write .proto files

2020-02-21 Thread Alex Van Boxel
/ProtoLanguageFileWriter.java It currently only support proto3. _/ _/ Alex Van Boxel On Fri, Feb 21, 2020 at 11:02 AM Nadav Samet wrote: > Hi Ittai, > > It sounds like you are expecting your plugin to emit proto files in text > format. Your code is assigning binary data into the file's co

Re: [protobuf] New proto3 implementation: has_foo() is optional?

2019-08-22 Thread Alex Van Boxel
That why you have the Well Known Wrapper Types. They are included in the proto repo and live right next to the Timestamp and Duration: https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/wrappers.proto On Thu, Aug 22, 2019, 10:43 Denis Feklushkin wrote: > > > пн, 12 авг.

Re: [protobuf] Is there a way to convert the go class to protobuf?

2019-08-22 Thread Alex Van Boxel
king with proto's as a source for your code (be it go or something else) is that you change your thinking pattern. It makes you think about your contract, it's easy to keep compatible because you know and see what you are doing with your messages. _/ _/ Alex Van Boxel On Thu, Aug 22,

Re: [protobuf] Protocol Buff Versioning with microservices

2019-06-30 Thread Alex Van Boxel
contracts should be decoupled from the versioning of your microservice. I hope this helps. _/ _/ Alex Van Boxel On Fri, Jun 28, 2019 at 12:03 PM 'anand' via Protocol Buffers < protobuf@googlegroups.com> wrote: > Team, > > How can i achieve the versioning in protocol buffer

[protobuf] Looking for a set of proto definitions for scientific units, measurements, etc.

2019-04-18 Thread Alex K
I'm curious if there is an existing set of proto definitions (similar to Well-Known-Types) for scientific units. Ideally something similar to squants in Scala: https://github.com/typelevel/squants, but doesn't need to be nearly as expressive. I imagine it wouldn't be too hard to define for the

[protobuf] Proposal to extend the proto DSL to handle Well Known Types

2019-02-10 Thread Alex Van Boxel
Hi all, I got a wild idea... The well know types is used a lot but they are cumbersome to write.As a contract first DSL this is not really readable. What if we could get rid of the complete package. It could be as simple as replacing the package of WKT by ! Example for wrappers: message ProtoB

[protobuf] Porting Protocol Buffer Library to Green Hills Integrity

2018-02-07 Thread Alex Chen
ow how to workaround this issue? I rather not have to modify the protobuf library code to fix it. Thanks, -Alex -- 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

[protobuf] Is it normal to not be able to use oneof with embedded messages where the field name is the same as the message name?

2018-01-21 Thread alex . rou . sg
Lets say I have the following messages: message A { int foo = 1; } message B { int bar = 1; } message C { oneof asdf { A A = 1; B B = 2; } } If A and B are embedded inside C like: message C { message A { int foo = 1; } message B { in

Re: [protobuf] Cross compiling to ARM on X64 fails, uses ARM js_embed

2017-12-14 Thread Alex Biddulph
We ultimately found an alternative method of handling this issue. The problem we were getting was that the binary (more accurately the dynamic loader) was finding the wrong version of C++ standard library, basically it was picking up our ARM libstdc++ because that was in the LD_LIBRARY_PATH. -

Re: [protobuf] Cross compiling to ARM on X64 fails, uses ARM js_embed

2017-12-12 Thread Alex Biddulph
@Adam Cozzette I have a further need to also control which libraries js_embed uses at run time as the necessary run time libraries are not in the standard system search paths. Is there a way to add an LD_LIBRARY_PATH_FOR_BUILD type environment variable, or some other way of controlling this? -

[protobuf] Is protobuf serialisation canonical?

2017-07-26 Thread alex
o use protos in this way? Is it safe to use a subset of protos in this way (for example, I think map fields are not canonically serilalised, because ordering is not defined, but maybe other field types are ok)? Thanks, Alex -- You received this message because you are subscribed to th

Re: [protobuf] Are protobufs serialised canonically?

2017-07-26 Thread alex
quirement of a key is that the same key must serialise to the > same bytes (Kafka is only aware of bytes - nothing else). > > Is what I'm doing safe? Is it safe for some subset of proto field types > (for example, I'm already pretty sure it's not safe for map types be

[protobuf] Are protobufs serialised canonically?

2017-07-25 Thread alex
s no canonical ordering, right?)? Thanks, Alex -- 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 po

Re: [protobuf] Why doesn't protobuf C++ include smart pointers to submessages?

2017-07-24 Thread Alex Shaver
d code to use unique_ptr instead of it's raw pointers to more > clearly express the ownership semantics. > > For your use case, why can't you just copy the sub message you are > interested in? What use case would rule that out as an option? > > On Friday, July 21, 2

Re: [protobuf] Why doesn't protobuf C++ include smart pointers to submessages?

2017-07-21 Thread Alex Shaver
message. That way you can always still access the > submessage or at least observe if it has been cleared, without risk of a > dangling pointer. > > On Wed, Jul 19, 2017 at 11:08 AM, Alex Shaver > wrote: > >> If I have a >> message Foo{ >>Bar bar = 1; >

[protobuf] Why doesn't protobuf C++ include smart pointers to submessages?

2017-07-19 Thread Alex Shaver
If I have a message Foo{ Bar bar = 1; } I can get a Bar* bar = foo.mutable_bar(); I'd like to be able to get, at the very least std::weak_ptr bar = foo.mutable_bar(); if not a std::shared_ptr. I have an issue where an object has to hold a raw pointer to a submessage, and it is poss

[protobuf] Re: Json object hash

2017-07-07 Thread alex
rrors ={ field1: [], field2: ['Dummy error message'] }; >> >> response.setSuccess(valid); // this works ok >> >> forEachObjIndexed((fieldErrors, fieldName) => { >> errorsMap.set(fieldName, fieldErrors); // this blows up >> }); >> >>

[protobuf] Json object hash

2017-07-05 Thread alex
his works ok forEachObjIndexed((fieldErrors, fieldName) => { errorsMap.set(fieldName, fieldErrors); // this blows up }); Adding a field to the map via the set method crashes with a TypeError: b.toArray is not a function. Can anyone lend a hand and point me to what I'm doing wrong here? Thank you! Alex

Re: [protobuf] Re: Comparing "Any" type protobufs (C++)

2017-06-09 Thread Alex Shaver
fixed in the latest release. > https://github.com/google/protobuf/blob/2f4489a3e504e0a4aaffee69b551c6acc9e08374/src/google/protobuf/util/message_differencer.cc#L470 > > On Wed, Jun 7, 2017 at 2:29 PM Alex Shaver > wrote: > >> Reading through the source, it does seem li

[protobuf] Re: Comparing "Any" type protobufs (C++)

2017-06-07 Thread Alex Shaver
dnesday, June 7, 2017 at 5:06:37 PM UTC-4, Alex Shaver wrote: > > When I have a list of "Any"s, and I want to find if an element in the list > matches some other 'Any' protobuf, I try to use the > util::MessageDifferencer::Equals and I get errors "Compariso

[protobuf] Comparing "Any" type protobufs (C++)

2017-06-07 Thread Alex Shaver
When I have a list of "Any"s, and I want to find if an element in the list matches some other 'Any' protobuf, I try to use the util::MessageDifferencer::Equals and I get errors "Comparison between two messages with different descriptors." I've tried a message1.GetDescriptor() == message2.GetDes

Re: [protobuf] Transfer actual code with Protobuffers

2017-05-30 Thread Alex TS
ng executable > code (of any kind) - less of a concern for server-to-client, but not > removed. Think "XSS", for a trivial example. > > On 30 May 2017 7:18 p.m., "Alex TS" > > wrote: > > Hey everyone, > I'm quite new to Protocol Buffers and don&#

[protobuf] Transfer actual code with Protobuffers

2017-05-30 Thread Alex TS
Hey everyone, I'm quite new to Protocol Buffers and don't really have a background on the theme, so pardon me if this sounds absurd or if this is not the right forum. With that out of the way, if I'd like to transfer say, a method, from the server to execute on the client. Is that possible at al

Re: [protobuf] Define pubsub like rpc in protobuf file

2017-04-11 Thread &#x27;Alex Barlow' via Protocol Buffers
1; > repeated Subscriber subscriber = 2; > } > > extend google.protobuf.ServiceOptions { > Subscribers subscribers = ; > } > > service Greeter { > option (subscribers) = { > publisher { > name: HELLO > returns: HELLO_REPLY > } >

[protobuf] Define pubsub like rpc in protobuf file

2017-04-11 Thread &#x27;Alex Barlow' via Protocol Buffers
Hi all, I was hoping for some advice for designing my publish subscribe system on top of protobuf and rpc. The idea is that a developer may have defined set of messages, a normal service and some rpc methods which they then augment with some publishers and subscribers. For example, given this

[protobuf] Re: Nested protobuf file folders and cmake flattening the structure.

2016-11-29 Thread Alex Shaver
Also, this only seems to be a functionality provided in CMake 3.7.0, actually. I neglected to mention that I was experimenting with that branch when I was studying this problem. On Monday, November 28, 2016 at 9:47:21 AM UTC-5, Alex Shaver wrote: > > When I have several folders > top

Re: [protobuf] Re: Nested protobuf file folders and cmake flattening the structure.

2016-11-29 Thread Alex Shaver
JECT_NAME} ${PROTO_SRCS} ${PROTO_HDRS}) target_link_libraries(${PROJECT_NAME} PUBLIC ${PROTOBUF_LIBRARIES} On Tuesday, November 29, 2016 at 8:23:46 AM UTC-5, Alex Shaver wrote: > > I'm just using the default FindProtobuf.cmake commands which have the > protoc step built in to them internall

Re: [protobuf] Re: Nested protobuf file folders and cmake flattening the structure.

2016-11-29 Thread Alex Shaver
path is set correctly > and that's complicated... > > On Mon, Nov 28, 2016 at 7:38 AM, Alex Shaver > wrote: > >> Issue with approach 3, that I don't understand: Generated header files >> create internal implementation fu

[protobuf] Re: Nested protobuf file folders and cmake flattening the structure.

2016-11-28 Thread Alex Shaver
e the results against a build that used a defined makefile (not cmake), the generated header implementation matches the source call ( both use ...project_2ffoo_2fBaz_2eproto() ). On Monday, November 28, 2016 at 9:47:21 AM UTC-5, Alex Shaver wrote: > > When I have several folders > top >

[protobuf] Nested protobuf file folders and cmake flattening the structure.

2016-11-28 Thread Alex Shaver
When I have several folders top \ - A \ - B \ - B1 \ - B2 ... .With various .proto files throughout, and I run CMake (3.5.2) to generate the protobuf files, it flattens the whole directory structure to just one common folder. There's a few problems with this approach. 1. If mul

[protobuf] Any way to initialize a protobuf with an initializer_list in c++?

2016-10-25 Thread Alex Shaver
I have some cases where I want to be able to populate protobufs with values known at compile time (though I've also had runtime cases as well). As it is, it seems I have to create a protobuf, then go in and 'set' many of the fields, or grab 'mutable' versions of them to modify. Could this be a

[protobuf] Is there a way to encode nested arrays as one object/message within protobuf?

2016-10-04 Thread Alex Shaver
Suppose in some json formatted schema I have "foo": [[12, 34],[56,78]]. I know I could do message foo_sub{ repeated int value = 1; } message Document{ repeated foo_sub foo = 1; } But if I directly convert this into json, it will be: "foo":[{"value":[12, 34]}, {"value":[56,78]}] While, in te

[protobuf] Is there a hashing function for each supported language? Does it produce the same output across each?

2016-07-19 Thread Alex Shaver
(proto3 question) Suppose I have some messages Foo and Bar, where Bar represents data for objects that are related to some Foo. I send the whole bunch of them in some set like so: message MyMessage{ repeated Foo = 1; repeated Bar = 2; } What I'd like is for Bar to have a structure like: mes

Re: [protobuf] C++ iterator to access repeated elements.

2016-06-30 Thread Alex Shaver
().cend(), outVector.begin(), [](const double& in){return in + 1.5;}); std::vector expectedVector{2.73, 4.95, 8.28}; ASSERT_EQ(expectedVector, outVector); will be a successful test. On Thursday, June 30, 2016 at 9:25:41 AM UTC-4, Alex Shaver wrote: > > Ah, that's what I missed. The &#x

Re: [protobuf] C++ iterator to access repeated elements.

2016-06-30 Thread Alex Shaver
Ah, that's what I missed. The 'children' element is a 'RepeatedField' type which has the associated iterators. Thanks for the help. On Wednesday, June 29, 2016 at 3:13:39 PM UTC-4, Feng Xiao wrote: > > > > On Wed, Jun 29, 2016 at 11:58 AM, Alex Shaver > w

[protobuf] C++ iterator to access repeated elements.

2016-06-29 Thread Alex Shaver
(proto3) Suppose I have some message with a repeated submessage element; especially given c++11's for range operator and other iterator-type algorithms, it feels like there should be iterator access to the submessages, beyond just the 'index' based approach. I may be missing the fact that it d

Re: [protobuf] template/type deduction and 'oneof' in message

2016-05-19 Thread Alex Shaver
So, the cpprefernce page on template type deduction seemingly suggests you can: http://en.cppreference.com/w/cpp/language/template_argument_deduction On Thu, May 19, 2016, 6:09 PM Feng Xiao wrote: > > > On Thu, May 19, 2016 at 10:31 AM, Alex Shaver > wrote: > >> Sup

[protobuf] template/type deduction and 'oneof' in message

2016-05-19 Thread Alex Shaver
Suppose I have a message: message Foo{ oneof b_message { Bar = 16; Baz = 17; } } and I have some C++ handler that is a templated function: template void b_handler(const T&); template void b_handler(const Bar& bar){...} template void b_handler(const Baz& baz){...} What I'd like to be

[protobuf] Error: Mesage is incomplete or invalid

2016-04-22 Thread Alex G
hi. when I am trying to decode data : $m = VoiceProxyProtobuf::AddDataResponse->decode($m); I got : Error: Mesage is incomplete or invalid at /usr/local/share/perl5/Google/ProtocolBuffers/CodecIV64.pm line 37 or Error: Mesage is incomplete or invalid at /usr/local/share/perl5/Google/Protoco

Re: [protobuf] Re: Protobuf Buffers v3.0.0-alpha-1

2015-01-15 Thread Alex Antonov
I fully second that opinion. We rely a lot on being able to set explicit defaults that are not language defaults (Java 0, "", false, etc). It puzzles me to even think as to why someone might want to take that feature away!!! On Wednesday, January 14, 2015 at 6:50:37 AM UTC-6, Jeremy Swigart w

[protobuf] Can I flush all protocol buffers using a static class method?

2014-01-24 Thread Alex Wakefield
I would like to flush all data stored in the protocol buffers to disk, but I don't have a handle to the individual buffer objects. Is there a way to flush all of the buffers? Thanks Alex -- You received this message because you are subscribed to the Google Groups "Protocol Buffers&

[protobuf] How do I flush all protocol buffer data to disk?

2013-11-17 Thread Alex Wakefield
I have an application that uses Google Protocol buffers, and is caching the data before writing to disk. Is there an API that I can call to force the protocol buffers to write all messages/data to disk? Thanks Alex -- You received this message because you are subscribed to the Google Groups

[protobuf] Re: validating protobuf messages

2012-11-19 Thread alex
What's the definition of "Validate"? pb support optional fields, extensions , that means you can ignore unknown fields. If some fields are necessary why not just set to required. On Saturday, November 17, 2012 8:08:16 AM UTC+8, Jeroen Ooms wrote: > > I am using the RProtoBuf package, which inte

[protobuf] Re: Protocol Buffers with Python (I'm a noob)

2012-09-22 Thread Alex Roper
iday, September 21, 2012 9:29:00 AM UTC-4, Alex Roper wrote: >> >> That should generate one or more files of the form package_pb2.py in the >> directory you ran protoc in. You can then import these into your program >> with: >> >> import package_pb2 >> >>

[protobuf] Re: Protocol Buffers with Python (I'm a noob)

2012-09-21 Thread Alex Roper
That should generate one or more files of the form package_pb2.py in the directory you ran protoc in. You can then import these into your program with: import package_pb2 where package is the PB package you want. On Thursday, September 20, 2012 4:07:49 PM UTC-4, steph wrote: > > I have been us

[protobuf] Re: Pickling python protocol puffers

2012-09-19 Thread Alex Roper
This will be fixed in 2.5.0, see issue 418 http://code.google.com/p/protobuf/issues/detail?id=418 On Tuesday, July 10, 2012 9:55:15 PM UTC-4, Alex Roper wrote: > > Hi, > > As part of a research project I'm working on, I found it convenient to be > able to pickle messages (

[protobuf] Re: Enum values are siblings of their type, not children of it.

2012-07-24 Thread Alex Foygel
Another option is to use C++11 scoped enum syntax: enum class Foo { FIRST = 0; SECOND=1; } and then generate scoped enums, which would look exactly like the snippet above. On Friday, August 20, 2010 1:12:30 PM UTC-5, alopecoid wrote: > > Hi, > > This post is about the fact that protobuf enum

[protobuf] Pickling python protocol puffers

2012-07-10 Thread Alex Roper
ing that should just work, and therefore I contribute it upstream. Alex -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To view this discussion on the web visit https://groups.google.com/d/msg/protobuf/-/XsHAtFgKNR0J. To post to

Re: [protobuf] Message.Builder and sub-builders

2011-12-06 Thread Alex
Yes. For example by calling messageBuilder.getBuilder(marsFieldDescriptor) I would get a builder for the mars field which stays attached to the messageBuilder. At the moment one can call Message.Builder.newBuilder(Descriptors.FieldDescriptor) in a generic way to create a new sub-builder, but

[protobuf] Message.Builder and sub-builders

2011-12-01 Thread Alex
Let's assume we have the following structure: message Alpha { message Beta { optional int32 mercury = 1; optional int32 venus = 2; } optional int32 earth = 1; optional Beta mars = 2; } The Java generated code allows to get a sub-builder for "mars" field from a build

[protobuf] Re: Using protocol buffers with sockets

2011-10-09 Thread alex
send(connectedsocket,caBuffer,sizeof(saSbuf),0); -> send(connectedsocket,caBuffer, msg.ByteSize(),0); On 10月1日, 上午5时22分, EJ wrote: > I'm using the winsock api to send and receive protocol messages > between a client program and a server program. One program sends out a > periodic status mess

Re: [protobuf] Re: Some great work!

2011-08-03 Thread Alex Ruiz
Hi Ben, I'll take a look at your grammar. Many thanks! I'd suggest to move any conversations regarding the new Eclipse plug-in to its own mailing list: http://groups.google.com/group/protobuf-dt . This way we don't spam non-Eclipse users :) Cheers, -Alex On Wed, Aug 3,

[protobuf] Re: Some great work!

2011-08-03 Thread Alex Ruiz
. Probably you will need to fix #1 (the import paths) first. Please let me know if that fixed it. 3) Custom options are not currently supported. But! I'm working on it! :) Cheers, -Alex -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" grou

[protobuf] New Google Eclipse-based editor for protocol buffer descriptors

2011-08-03 Thread Alex Ruiz
tobuf-dt-eclipse-editor.html We hope you find this editor useful. Please give it a try and let us know what you think. Regards, -Alex -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To view this discussion on the w

[protobuf] protoc plugin generator using Java

2011-07-19 Thread Alex Antonov
tent of my 'protoc-gen-my' script: #!/bin/bash #cd `dirname $0` #java -Xdebug - Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 -jar protobuf-java-codegen-0.1.jar #java -jar protobuf-java-codegen-0.1.jar 1> data.pb java -jar protobuf-java-codegen-0.1.jar Any idea what I could

[protobuf] Re: Protobufs to XML

2011-07-19 Thread Alex Antonov
Look at this library: http://code.google.com/p/protobuf-java-format/ On Jul 9, 4:40 pm, Rinku wrote: > Hello, Can someone help me get the decoded data stored in a protobuf > on to an xml file? How do I do that? -- You received this message because you are subscribed to the Google Groups "Proto

[protobuf] "File already exists in database" on Mac OSX

2010-12-06 Thread Alex Nixon
ntical to those generated on Linux. Any advice would be much appreciated. Thanks in advance, - Alex Nixon -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to proto...@googlegroups.com. To unsubsc

[protobuf] Re: Existing domain model

2010-07-06 Thread Alex Antonov
You might want to check out http://code.google.com/p/protostuff/ On Jul 3, 7:30 am, Pradeep Thomas wrote: > We have an existing object model in java with hibernate annotations > for persistence. > > For client-server communication what are the pros of cons of using > protocol buffers, because we

[protobuf] Re: using compression on protobuf messages

2010-06-22 Thread Alex Antonov
message. Any thoughts on how this can be (if possible at all) made even faster?! :) Thanks, Alex -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to proto...@googlegroups.com. To unsubscribe from this

Re: [protobuf] The best way to determine message type for real time apps

2010-01-16 Thread Alex Richardson
Madhav, When you receive a raw string of bytes containing a message, you must first know the type of the message before you can parse/deserialize it. For example, with C++, you must first instantiate a message of the appropriate type, and then parse the bytes into the newly instantiated message ob

[protobuf] Re: XML to Protocol Buffers converter

2009-12-03 Thread Alex Antonov
Jason, there is a project that contains the XML & JSON marshalers for protobuf and back which would do exactly what you want: http://code.google.com/p/protobuf-java-format Thanks, Alex On Oct 13, 3:35 pm, Jason Smith wrote: > I wrote a generic proto-to-xml routine (using TinyXML)

[protobuf] Re: Add another option to support java_implement_interface

2009-11-24 Thread Alex Antonov
> Rewriting the protocol compiler to use some sort of template system is not > something we really have resources for.  That said, the plugins thing I'm > working on may be useful to similar ends. Oh, the plugins stuff sounds interesting. Is there anything on the discussion board about it, or sti

[protobuf] Re: Add another option to support java_implement_interface

2009-11-23 Thread Alex Antonov
Kenton, Those are all good points, I agree with you that this kinda coupling could be dangerous and cause trouble if mismanaged. I'm trying to think of a way to keep this protoc safe but at the same time provide the kind of functionality the interface declaration would bring. Problem is that havin

[protobuf] Re: Add another option to support java_implement_interface

2009-11-23 Thread Alex Antonov
For some reason this thread got forked: here is the second copy: http://groups.google.com/group/protobuf/browse_thread/thread/c4efd9f017d0b014?hl=en&tvc=2 -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to p

extension_set.h can not be resolved by xlc + + properly

2009-09-25 Thread alex
lc++ v10.1 , aix 5.3 can you give me some suggestions? thanks alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com To uns

can not build check code in AIX

2009-09-25 Thread alex
_stringXTcTQ2_3std11char_trai...". make[3]: *** [protobuf_test-repeated_field_unittest.o] Error 1 make[3]: Leaving directory `/home/source/cpp/protobuf-2.2.0-build-32/ src' make[2]: *** [check-am] Error 2 make[2]: Leaving directory `/home/source/cpp/protobuf-2.2.0-build-32/ src' mak

Re: Java deserialization - any best practices for performances?

2009-07-18 Thread Alex Black
to the end of each message every time it sees a > length. > > Alek > > On Fri, Jul 17, 2009 at 8:13 PM, Alex Black wrote: > > > When I write out messages using C++ I'm careful to clear messages and > > re-use them, is there something equivalent on the java side

Java deserialization - any best practices for performances?

2009-07-17 Thread Alex Black
bly memory is allocated 150 times for each of the messages... - Alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com

RE: Performance: Sending a message with ~150k items, approx 3.3mb, can I do better than 100ms?

2009-07-15 Thread Alex Black
yeah, I'll have it running twice as fast by the time you are back from your holiday. ;) From: Kenton Varda [mailto:ken...@google.com] Sent: Wednesday, July 15, 2009 7:48 PM To: Alex Black Cc: protobuf@googlegroup

RE: Performance: Sending a message with ~150k items, approx 3.3mb, can I do better than 100ms?

2009-07-15 Thread Alex Black
Thanks, yes performance seems really good, though I wouldn't mind seeing the java deserialization faster. From: Kenton Varda [mailto:ken...@google.com] Sent: Tuesday, July 14, 2009 8:06 PM To: Alex Black Cc: pro

RE: Performance: Sending a message with ~150k items, approx 3.3mb, can I do better than 100ms?

2009-07-14 Thread Alex Black
over sockets takes 52ms - deserializing the data in java with protobuf takes 58ms The amount of data being sent is: 3,959,368 bytes in 158,045 messages (composed in batches of 1000). - Alex From: Kenton Varda [mailto:ken...@google.com] Sent: Tuesday, July 14, 2

RE: Performance: Sending a message with ~150k items, approx 3.3mb, can I do better than 100ms?

2009-07-13 Thread Alex Black
Kenton: I made a mistake with these numbers - pls ignore them - I'll revisit tomorrow. Thx. -Original Message- From: protobuf@googlegroups.com [mailto:proto...@googlegroups.com] On Behalf Of Alex Black Sent: Tuesday, July 14, 2009 2:05 AM To: Protocol Buffers Subject: Re: Perfor

Re: Performance: Sending a message with ~150k items, approx 3.3mb, can I do better than 100ms?

2009-07-13 Thread Alex Black
posed messages. > But this still doesn't tell us how much time is spent on network I/O vs. > protobuf serialization.  My guess is that once you factor that out, your > performance is pretty close to the benchmarks. > > On Mon, Jul 13, 2009 at 10:11 PM, Alex Black wrote: >

Re: Performance: Sending a message with ~150k items, approx 3.3mb, can I do better than 100ms?

2009-07-13 Thread Alex Black
If I comment out the actual serialization and sending of the message (so I am just composing messages, and clearing them each batch) then the 100ms drops to about 50ms. On Jul 14, 12:36 am, Alex Black wrote: > I'm sending a message with about ~150k repeated items in it, total > si

Performance: Sending a message with ~150k items, approx 3.3mb, can I do better than 100ms?

2009-07-13 Thread Alex Black
ultimately calls Write on us // which we then call Write on our composed stream message.SerializeWithCachedSizes(&codedOutputStream); In my stream implementation I'm buffering every 16kb, and calling send on the socket once i have 16kb. Thanks! - Alex --~--~-~

RE: Howto build protobuf not as library, but directly linking object files?

2009-07-09 Thread Alex Black
Hey Bart, I'm not sure I'm seeing the full details of your situation, But on windows I compiled a library libprotobuf.lib, and linked to it statically, meaning it gets built into the exe (or dll) you're building. (I built 2 actually, a release one and a debug one). - Alex

RE: GoogleOnceType showing up as a memory leak

2009-07-06 Thread Alex Black
Thanks. From: Kenton Varda [mailto:ken...@google.com] Sent: Monday, July 06, 2009 1:32 PM To: Alex Black Cc: Protocol Buffers Subject: Re: GoogleOnceType showing up as a memory leak Yes, this is a known bug resulting from the fact that I developed the shutdown

GoogleOnceType showing up as a memory leak

2009-07-06 Thread Alex Black
(it'd be nice to have 0 leaks... :) - Alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from

RE: libprotobuf.lib, 29mb?

2009-07-02 Thread Alex Black
Thanks Kenton, thats reassuring. From: Kenton Varda [mailto:ken...@google.com] Sent: Thursday, July 02, 2009 8:56 PM To: Alex Black Cc: Protocol Buffers Subject: Re: libprotobuf.lib, 29mb? On Thu, Jul 2, 2009 at 5:33 PM, Alex Black wrote: I'

  1   2   >