[protobuf] support for LITE_RUNTIME for languages besides C++ and Java?

2017-02-09 Thread John Brock
Does anyone know if there are plans to add support for "optimize_for = 
LITE_RUNTIME" for additional languages, especially C# and python? I looked 
into creating a pull request, but the changes seem non-trivial. I'm 
particularly interested in removing descriptor information from the output 
code files.

-- 
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.


Re: [protobuf] Typos in the C++ Tutorial

2017-02-09 Thread Mohamed Koubaa
Hello,

Wouldn't it be nice if you could tell protoc to use a different singular
and plural form!

Thanks,
Mohamed Koubaa
Software Developer
ANSYS Inc

On Wed, Feb 8, 2017 at 5:18 PM, Jacopo Notarstefano <
jacopo.notarstef...@gmail.com> wrote:

> Hi,
>
> I was reading https://developers.google.com/protocol-buffers/
> docs/cpptutorial and I think I found a few typos in the code examples.
>
>
> For example, in https://developers.google.com/protocol-buffers/docs/
> cpptutorial#writing-a-message the code reads
>
> tutorial::Person::PhoneNumber* phone_number = person->add_phone();
>
> but it should read
>
> tutorial::Person::PhoneNumber* phone_number = person->add_phones();
>
> and
>
> PromptForAddress(address_book.add_person());
>
> should be
>
> PromptForAddress(address_book.add_people());
>
>
> Similarly, in https://developers.google.com/protocol-buffers/docs/
> cpptutorial#reading-a-message the code reads
>
> for (int i = 0; i < address_book.person_size(); i++) {
>
> but it should read
>
> for (int i = 0; i < address_book.people_size(); i++) {
>
> and
>
> const tutorial::Person& person = address_book.person(i);
>
> should be
>
> const tutorial::Person& person = address_book.people(i);
>
>
> Moreover, I would consider adding
>
> syntax = "proto2"
>
> to the top of https://developers.google.com/protocol-buffers/docs/
> cpptutorial#defining-your-protocol-format, so that no scary warning is
> printed if one installs a recent version of protobuf.
>
>
> I would have submitted these changes as a proper PR, but I couldn't find
> the repo that generates the documentation at
> https://developers.google.com/protocol-buffers/. Does it exist? If so,
> I'd be happy to convert this email to a PR.
>
> Cheers,
> Jacopo
>
> --
> 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.


[protobuf] Api Decoding with php-protobuf

2017-02-09 Thread JAlsi
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.