All proto message have the method "decode".
You need to know the class of the proto, say Foo.
You can do:
$m = new Foo();
$m->decode($your_data);

On Thu, Feb 9, 2017 at 2:35 AM JAlsi <bastian.boemer...@gmail.com> wrote:

> Hello,
>
> I have some .proto Files. With the FIles I have created the .php classes
> of each file.
>
> How I have a Web Api :
>
> http://xxx.xxx.xxx.xxx:xxx/api/GetPos
>
> When I call this URL with a protobuf header and curl, I got all Data, in a
> Protobuf Format.
>
>
> How Can I "connect" the generated .proto class with the response of the
> URL(API) and decode the response?
>
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to