If you can serialize these object types to strings, and need to pack them into a protobuf message, you can put them in the protobuf as serialized strings.
On Thursday, September 14, 2017 at 5:56:35 PM UTC-7, [email protected] wrote: > > Hi! I'm trying to add support for 2 types that I need: > > - BSON.ObjectId (for MongoDB IDs) > - Unknown object structure > > For the first one, I was thinking on just a type that > serializes/deserializes the BSON.ObjectId to a string, it it may be sent as > a string. > > For the second one, as I need to pass objects where I don't know how > they're gonna be, I was thinking on serializing them to a JSON string, and > then deserialize it in the other side. > > Is any of this possible? > > If so, how do I start? > > Thanks! > Luciano > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/908f10ff-999b-4244-91ca-2657bf0180a0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
