External references, such as a standards document, or specification:
http://code.google.com/apis/protocolbuffers/docs/overview.html
Java environments (e.g. Java 6, Android 2.3, App Engine 1.4.2, or All):
Java backends (i.e. Java, including appengine), anything likely to pass around
protos,
Please describe the feature requested:
The GenericData concept is great, and provides a simple way to consume, handle,
and feed out data in XML/Json formats. As protobuf usage increases as the way
to pass messages in/out of Java binaries, it would be nice to provide a
parser/serializer to support translation between protos and GenericData
(GenericProto?)
I'm not sure how nicely protobufs support this sort of treatment, but at least
a few of the ideas are the same, e.g.
class Person extends GenericProto {
@Key
String name;
@Key
long id;
@Key
Address address;
}
could be used to automatically load protobufs of the form:
message Address { ... }
message Person {
required string name = 1;
required int64 id = 2;
optional Address address = 3;
}
Original issue reported on code.google.com by patcole...@google.com on 28 Feb 2011 at 10:37
Original issue reported on code.google.com by
patcole...@google.com
on 28 Feb 2011 at 10:37