discomarathon / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

Support for protobufs #174

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
See http://code.google.com/p/protobuf/

What is the expected output? What do you see instead?
Underscores are added to the end of all the field names and the values
appear to be the byte arrays instead of actual Strings.

Original issue reported on code.google.com by bmcc...@google.com on 17 Nov 2009 at 7:03

GoogleCodeExporter commented 9 years ago
Can you explain how you want us to support protobufs? Is it to 
serialize/deserialize 
JSON data into protobufs?

Original comment by inder123 on 8 Jan 2010 at 7:25

GoogleCodeExporter commented 9 years ago
I had a situation in which I wanted to use GSON to serialize protobufs to JSON. 
 I
believe this is a functionality that GXPs may include though I am not certain.  
I
imagine that the reverse direction is less likely to be as frequently used.

Original comment by bmcc...@google.com on 8 Jan 2010 at 10:38

GoogleCodeExporter commented 9 years ago
Inder started this:
http://code.google.com/p/google-gson/source/browse/trunk/proto/src/main/java/com
/google/gson/protobuf/ProtoTypeAdapter.java

Original comment by limpbizkit on 7 Oct 2010 at 7:19

GoogleCodeExporter commented 9 years ago
Inder started this:
http://code.google.com/p/google-gson/source/browse/trunk/proto/src/main/java/com
/google/gson/protobuf/ProtoTypeAdapter.java

Original comment by limpbizkit on 7 Oct 2010 at 7:19

GoogleCodeExporter commented 9 years ago
Fixed this in r613

Original comment by inder123 on 1 Nov 2010 at 11:26

GoogleCodeExporter commented 9 years ago
It seems that ProtoTypeAdapter fails when used with Protobuf enums, due to a 
circular reference error.

Original comment by omer.ta...@gmail.com on 7 Dec 2011 at 3:05

GoogleCodeExporter commented 9 years ago
Anyone have a version that works with enums?

Original comment by tfishw...@gmail.com on 30 Jan 2015 at 3:54