Re: Numerical Formats

2009-02-23 Thread Tim
nd of a deal-breaker for us due to space requirements. Especially since we're planning to use 4 byte tags across the board in our system so that there's enough space for a unique tag for each attribute in our system. Curious, and Thanks, Tim On Jul 8 2008, 10:13 am, "Kenton Varda

Re: _has_bits_ and field bit definitions generated by protoc

2009-02-23 Thread Tim
n can use the ATTR1_BIT definitions to implement it own tracking of message field characteristics. Does that change anything? Tim On Feb 23, 7:18 pm, Kenton Varda wrote: > Hi Tim, > > On Mon, Feb 23, 2009 at 7:01 PM, wrote: > > > In my application, I have a need to track cha

importing/defining/evaluating symbols and expressions in a .proto

2009-02-24 Thread Tim
ort MyObjectClassCode from other files. An alternative which I was hoping to avoid would be to write scripts to parse my header files, evaluate the symbols, and then write my .proto files accordingly. I am curious if others are doing similar things with protobufs. Thanks, Tim --~--~

Re: event-based decoding / new C implementation

2009-02-26 Thread Tim
#x27;t see any indication of this. Also, Is anyone else using PB in this way? Tim On Feb 23, 1:33 pm, Joshua Haberman wrote: > On Feb 23, 9:51 am, Caleb wrote: > > > > > On Feb 6, 5:56 pm, Joshua  Haberman wrote: > > > Does proto2 support event-based decoding

GPB on non-Linux, non-Windows OS?

2009-02-26 Thread Tim
Anyone out there using GPB on an OS other than Linux or Windows? I've been evaluating GPB for use in an embedded OS and at the moment am a bit stuck between protobuf and protobuf-c. We would be using GPB for simple data storage and serialization, and don't need RPC or even Reflection. I checked ou

Re: GPB on non-Linux, non-Windows OS?

2009-02-27 Thread Tim
terribly > different from Linux.  The Google implementations of protobufs definitely > weren't designed for embedded systems, but there might be a case for taking > the Google C++ implementation and ripping out all the "advanced" features to > make something extremely stripped-dow

Re: GPB on non-Linux, non-Windows OS?

2009-02-27 Thread Tim
code that only implements this new "lean" interface.  Hopefully this > new library would be far smaller than the current 870k libprotobuf.so. > > On Fri, Feb 27, 2009 at 10:58 AM, Tim wrote: > > > That's precisely the case I've been hoping to make in my c

Re: GPB on non-Linux, non-Windows OS?

2009-03-02 Thread Tim
I'm interested in your work, Josh. But I'm having trouble understanding what your goal is. I.e. what is the essence of protobufs that you are trying to distill? And how would you differentiate your work from Dave's protobuf-c project? And is your implementation going to be entirely

Using PB for object data storage in embedded c++ application

2009-03-02 Thread Tim
sage field would be managed by the framework so you don't have to do extra "did the field change" and "if so, what should I do about it now?" checks at a higher level. Is this sort of consideration on anyone's radar? Tim --~--~-~--~~~---~--~-

[protobuf] Feature requests

2009-12-07 Thread Tim
r enums to go to and from string (similar to how the new Java-style enums allow you to call valueOf to go from String to Enum, and toString to go from Enum to String). This would be extremely useful for us to have the capability in C++, and it seems like this could be very easily code-generated. T

Make error on FreeBSD after link

2009-04-23 Thread tim . espey
Hi, I am trying to build protobuf 2.0.3 on FreeBSD 7.1 and am running into an error in the make immediately after the link step. I run configure with the --disable-shared argument, then run make. The make appears to compile all of the code, and successfully produces the archives in the src/.libs

[protobuf] Import functionality

2021-01-16 Thread Tim Epkes
I am trying to section up my protocol buffers into simpler or digestable files (each file fitting a category like device and all messages that would make up a device. I then want to import that into my main pb definition file. I do it, I compile it and there is a reference to the object (test

[protobuf] Any JSON coding question

2016-02-03 Thread Tim Kientzle
serialize the JSON data as a protobuf Struct representation (which in turn has interesting implications for the receiving system). Am I missing some other option? Tim P.S. Nice work on the conformance test suite, by the way! That clarified a *lot* of details about the expected handling for protobuf

[protobuf] JSON serialization can fail?

2016-02-03 Thread Tim Kientzle
instead truncate Durations and Timestamps to the representable range and to redefine Fieldmask to drop unrepresentable fields. This would eliminate a lot of boilerplate from implementations (and users) of the JSON code. Cheers, Tim -- You received this message because you are subscribed to

[protobuf] JSON serialization for 'Any'

2016-02-03 Thread Tim Kientzle
s a protobuf Struct, which would have interesting implications for the receiving system. Am I missing some other option? Tim P.S. Nice work on the conformance test suite, by the way! That answered a *lot* of questions about the expected handling for protobuf JSON format. -- You received thi

[protobuf] Question about JSON FieldMask encoding

2016-02-03 Thread Tim Kientzle
these proto-format names. Cheers, Tim P.S. I think using JSON-format names in FieldMask was a mistake; practically speaking, generated code has to embed raw proto-format names anyway, so JSON FieldMask could have carried proto-format names and you would have avoided an entire class of round

[protobuf] Fwd: Protobuf question for mailing list

2016-02-05 Thread Tim Kientzle
option would seem to be to serialize the JSON data as a protobuf Struct representation (which in turn has interesting implications for the receiving system). Am I missing some other option? > Tim P.S. Nice work on the conformance test suite, by the way! That clarified a *lot* of details about the expe

[protobuf] Transform data from one schema to another

2016-02-24 Thread Tim Richardson
I have a data modelling problem and I'm wondering if protobuf could be the right tool to help me solve this problem. I have data in one schema and i want to transform it to another schema. message Dataset { required string title = 1; required string description = 2; } message Study { requi

[protobuf] Scoping in definitions

2016-02-25 Thread Tim Richardson
Hi, just wanted to check my declaration with you guys, is it possible to reuse the `Study` declaration in the `Denormalised` package mypackage; message Dataset { required string accession = 1; required string url_self = 2; optional string title = 3; optional string description = 4; r

[protobuf] Any type with python

2016-02-26 Thread Tim Richardson
Is the Any type implemented in the python libraries yet? I read this on the documentation *Currently the runtime libraries for working with Any types are under development*. -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe f

Re: [protobuf] Any JSON coding question

2016-03-03 Thread Tim Kientzle
protobuf. The actual JSON serialization is very similar to the current Any serialization (with the addition of the extra “json” tag). Cheers, Tim > On Feb 5, 2016, at 1:53 PM, Josh Haberman wrote: > > Hi Tim, > > I think your analysis is correct. The answer to your question is t

[protobuf] Re: C++ JsonToBinaryStream losing large uint32 values

2016-03-09 Thread Tim Kientzle
On Friday, February 19, 2016 at 3:56:34 PM UTC-8, Josh Haberman wrote: > > Thanks a lot for tracking this down. For reference, here it is in our bug > tracker: https://github.com/google/protobuf/issues/1243 > > On Thursday, February 11, 2016 at 3:28:33 AM UTC-8, Ron Ben-Yosef wrote: >> >> Hi, >>

[protobuf] JSON field naming inconsistency

2016-03-10 Thread Tim Kientzle
What should the JSON coding be for the following? message Foo { string _field_name4 = 7; } Currently, the protoc tests say that the JSON field name should be “fieldName4”, the conformance test says that the JSON field name should be “FieldName4”. Both seem reasonable, but only one can be ri

Re: [protobuf] Any JSON coding question

2016-03-14 Thread Tim Kientzle
> On Mar 14, 2016, at 11:50 AM, Feng Xiao wrote: > > > > On Thu, Mar 3, 2016 at 6:37 PM, Tim Kientzle wrote: > > 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

Re: [protobuf] Any JSON coding question

2016-03-19 Thread Tim Kientzle
osed Any design as well. Your proxies can still walk the object tree and validate and/or convert Any fields as necessary for your particular systems. But that approach is not appropriate for everyone. Your Any design cannot be used by people that require different policies. Tim -- Yo

Re: [protobuf] Any JSON coding question

2016-03-19 Thread Tim Kientzle
e every other part of the proto3 design works equally well for systems that are primarily JSON or primarily protobuf. Tim -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving em

Re: [protobuf] Any JSON coding question

2016-03-19 Thread Tim Kientzle
> On Mar 17, 2016, at 10:04 AM, Feng Xiao wrote: > > On Wed, Mar 16, 2016 at 7:49 PM, Tim Kientzle wrote: > > > On Mar 14, 2016, at 7:07 PM, Feng Xiao wrote: > > > > In google, we are using a front-end proxy to convert JSON to/from protobuf, > > an

Re: [protobuf] Default Values vs Missing Values

2016-03-26 Thread Tim Kientzle
l-known types") specifically designed to store a set of field names. You might be able to achieve what you want by providing a FieldMask with your data listing the specific fields to be updated. Tim -- You received this message because you are subscribed to the Google Groups "Prot

Re: [protobuf] can protobuf3 be used with protobuf2?

2016-05-18 Thread Tim Kientzle
are deeply baked into your systems, you can keep using it. protoc will continue to support it for a very long time. Cheers, Tim > On May 18, 2016, at 1:33 PM, Jeremy Ong wrote: > > Big fan of 4, 5, 6, and 7. Huge un-fan of 2, and 3. I am mixed on 1 because I > love the removal

Re: [protobuf] can protobuf3 be used with protobuf2?

2016-05-19 Thread Tim Kientzle
o2. It’s still around and will be for a long time. Cheers, Tim -- 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.co

Re: [protobuf] Can I assume ByteSize() always return same size?

2016-08-20 Thread Tim Kientzle
only integers in my message type, can I always assume assert > "msg_size_before == msg_size_after" No. Protobuf uses variable-length integer encodings, so the size will change depending on the exact integer values. If you need the size to be the same, you can use "fixed32"

Re: [protobuf] Apple's Swift Protobuf Plugin

2016-09-22 Thread Tim Kientzle
s.google.com/protocol-buffers/docs/reference/other Tim > > thanks! > > 2016年9月23日星期五, mailto:tkient...@apple.com>> 写道: > If you’re interested in protobuf support for Swift, you might want to take a > look at the protoc plugin that Apple just open-sourced. > >

Re: [protobuf] protobuf::Any Message vs MessageLite interface

2016-10-07 Thread Tim Kientzle
> best to avoid creating another dependency on that GetTypeName() method when > it might be going away in the future. > This seems to suggest that you don’t intend to support Any for mobile? Tim -- You received this message because you are subscribed to the Google Groups "Protocol

Re: [protobuf] How to represent variable JSON object data with Proto definition

2016-11-15 Thread Tim Kientzle
tion? You want to use the well-known types “Struct” or “Value”, which are specifically designed to support ad hoc JSON parsing. “Struct” supports parsing any valid JSON object structure, “Value” can parse any valid JSON: message User { string email = 1; string firstName = 2; string lastNa

Re: [protobuf] How to represent variable JSON object data with Proto definition

2016-11-16 Thread Tim Kientzle
I think we need more details: Are you using C++ or Java or Python or Ruby or C# or some other language? What version of protoc? Can you show the code you’re using to create the message? Tim > On Nov 16, 2016, at 5:02 AM, Bojan D wrote: > > Thanks for the answer. Somehow

Re: [protobuf] Problem encoding between C# string on windows and C++ on unix

2017-01-04 Thread Tim Kientzle
C++ code thinks the `wiffName` field is field #3 (the third byte is 0x1a = 3 * 8 + 2). Also, both are correctly writing UTF-8 strings into the output. Tim -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group

Re: [protobuf] Re: protobuf with swift3

2017-01-19 Thread Tim Kientzle
x27;. > > make[2]: Nothing to be done for `install-data-am'. > > This looks like it worked. What is your concern? Tim -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop re

[protobuf] What's the point of Protocol Buffers?

2010-07-21 Thread Tim Acheson
I generally create web services using WCF or ASP.NET MVC. I don't get the point of "Protocol Buffers". Am I missing something? Out of the box, WCF web services and ASP.NET MVC actions serialise my objects to JSON or XML, using the serialisation libraries provided by the framework. I don't need to

[protobuf] Re: What's the point of Protocol Buffers?

2010-07-22 Thread Tim Acheson
The consensus seems to be that the main rationale for Protocol Buffers is cross-platform interoperability, and transferring objects between platforms. I can already consume JSON objects from a WCF service using JavaScript in the web browser. I can see that if I used other platforms/languages I wou

[protobuf] Re: What's the point of Protocol Buffers?

2010-07-22 Thread Tim Acheson
If you can show me a format which offers faster serialisation or deserialisation than JSON in a .NET application, I'd be impressed! :) Although I haven't heard anybody experiencing problems with the performance of either direction in .NET with JSON or XML, the libraries provided by the framework of

[protobuf] Reducing code size of protocol buffers

2010-12-21 Thread Tim Turner
I'm trying to minimize the code size of the protocol buffers. I've enabled Lite Runtime, but I'd like to reduce it further. There are several protocol buffers that I am not using which I would like to conditionally compile out. Is there a way to do this? I have been able to remove the protobufs

[protobuf] Re: Reducing code size of protocol buffers

2010-12-22 Thread Tim Turner
This is C++. I had not tried optimizing for CODE_SIZE. I understood that CODE_SIZE was the precursor to and not as compact as LITE_RUNTIME. Yes, I believe they are tag numbers, the enumeration-style numbering of each possible response or request. -- You received this message because you are su

[protobuf] custom constructor

2011-01-14 Thread Tim Wisniewski
x27;t find a bitset type within the proto language. Any thoughts? -Tim -- 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 this group, send email to pr

[protobuf] Re: How to parse a message with extensions?

2012-05-01 Thread Tim Edwards
You cannot use the extension's number as the key (though I agree, that would be nice). Instead, you need to provide the fully-qualified path to the extended field inside square braces, e.g. "[My.Extension.foo]: 'foovalue'". Take a look at the Debug() output of an extended message and you'll see t