You need the original .proto file defining the message type in order to
encode it.  Please read the documentation and work through the tutorials to
learn how to use protocol buffers.

On Sun, Jun 13, 2010 at 10:07 AM, dexter <d3xt3r01...@gmail.com> wrote:

> Hi,
>
> As I've been reading, the android market uses protocol buffers to
> "encode" the in/out s. I was wondering if anyone can give some
> examples of using the C binary ( ./protoc ) on how to encode/decode
> the binary messages from the market.
>
> What I've seen so far is
> base64 -d "string" > binary
> ./protoc --raw-decode binary
>
> I don't understand how exactly I should encode
> "mainMessage {
>  header;
>  myGroup {
>  query1 = nestedMessage2;
>  }
> }
>
>  nestedMessage2 {
>  string1 = »what we search for«;
>  int1 = 1;
>  int3 = 0;
>  int4 = 30;
>  } "
> into a binary form...
>
> Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to proto...@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to