Re: [protobuf] What are well-known types?

2016-03-03 Thread Josh Humphries
What do you think about creating issues for them on the protobuf github project and then include links to the design docs? Also, the addition of boxed types seems to be back-pedaling a bit on the decision to make zero and absent indistinguishable for primitive types. This seems to be a concession

Re: [protobuf] Any JSON coding question

2016-03-03 Thread Tim Kientzle
I think your current Any JSON design requires that protobuf serialization be able to fail. This is definitely a major change from proto2 and something the conformance test does not explore. 1. Decode a valid JSON-encoded message with an Any field in an unknown schema. 2. Attempt to encode it

Re: [protobuf] Protobuf python packaging conflicts with AppEngine packaging

2016-03-03 Thread 'Adrian Wan' via Protocol Buffers
For the reference of others encountering this, the GitHub issue is https://github.com/google/protobuf/issues/1153 I'd be thankful for an update :) On Tuesday, January 19, 2016 at 2:04:05 PM UTC-8, Feng Xiao wrote: > > Could you submit this as a github issue? >

Re: [protobuf] Putting compiled protobufs into a python package

2016-03-03 Thread 'Adrian Wan' via Protocol Buffers
I believe I ran into this issue as well - https://github.com/google/protobuf/issues/881? On Monday, March 29, 2010 at 11:59:01 AM UTC-7, Kenton Varda wrote: > > Yeah, there's really no way to accomplish this without editing the .proto > files you are importing. This is an issue in regular old

[protobuf] Compiling into relocatable Python packages

2016-03-03 Thread 'Adrian Wan' via Protocol Buffers
Relates to my (awan1) comment on this issue . I am struggling with including a Python package generated from a protobuf package, because the way protobuf compiles an import statement is import "a/b/c.proto"->from a.b import c_pb2 and

Re: [protobuf] Putting compiled protobufs into a python package

2016-03-03 Thread 'John Admanski' via Protocol Buffers
This has been far enough in the past that I can't actually remember what I was doing that ran into this issue... On Thu, Mar 3, 2016 at 11:36 AM, Adrian Wan wrote: > I believe I ran into this issue as well - > https://github.com/google/protobuf/issues/881? > > On Monday,

[protobuf] gcc float-equal error

2016-03-03 Thread Seth Humphries
I am using proto 3.0.0-beta-1 with a proto file that looks like this: ``` syntax = "proto3"; message SomeMsg { string query = 1; int32 integer = 2; float nothernum = 3; } ``` I am using gcc 4.9.2 with cmake 3.4.0. I use cmake to enable all gcc warnings and treat all warnings as errors. I get

[protobuf] How does "_get_packed_size" work when a message member is "repeated"

2016-03-03 Thread Sphoorthi Dayanand
Hi All, I have just started using Google Protocol Buffers and I am a little confused with the "get_packed_size" function. For example, in the address book example, we see the following: message AddressBook { repeated Person person = 1; } After compiling to generate C code, following function

Re: [protobuf] cannot generate cs file from addressbook.proto

2016-03-03 Thread izzet izzet
Oh! It is pre release package. So, you're right; I get the wrong nuget package then :). Thank you. 2 Mart 2016 Çarşamba 21:19:29 UTC+2 tarihinde Feng Xiao yazdı: > > > Protobuf is currently at v3.0.0-beta-2. The package you downloaded is not > maintained by the protobuf team. Try this one