Sorry, this was an easy one,

I simply did not grasp, that you have to build the message first and
then can invoke:

 'message.build().toByteArray()'

Best


On Oct 12, 8:52 pm, stefanharjes <stefanhar...@yahoo.de> wrote:
> Hi all,
>
> I finally managed to construct java classes from my .proto file and
> include them in my
> source which puts a double array in the message. But then I realized,
> that protoc did
> not generate a toByteArray() method as promissed in the docs.
>
> ---------------------------------------
> package storageserver;
>
> option java_package = "protocolBuffers";
> option java_outer_classname = "DoubleExchange";
>
> message ExchangeData {
>   repeated double my_data = 1;}
>
> ----------------------------------------
>
> any hints?
>
> Thanks
>
> Stefan

-- 
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 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to