Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with Google's protobuf gem #36

Open
gthank opened this issue Sep 13, 2017 · 3 comments
Open

Doesn't work with Google's protobuf gem #36

gthank opened this issue Sep 13, 2017 · 3 comments

Comments

@gthank
Copy link

gthank commented Sep 13, 2017

I'm trying to use Protocol Buffers to transmit data from a Python project into a Rails project. I'm using a .proto file (in v3 syntax) and the protoc compiler to guarantee the data is being transferred in a format both sides understand. As a consequence, the Ruby class def for the message does not expose the same API. In particular, the all_fields method does not exist, which breaks to_proto.

@liveh2o
Copy link
Owner

liveh2o commented Oct 4, 2017

This is currently written to be compatible with the ruby-protobuf/protobuf gem, which does not yet support the v3 Protocol Buffers syntax. Happy to review a PR if you'd like to take a crack at making this compatible.

@gthank
Copy link
Author

gthank commented Oct 4, 2017

I've reverted to v2 for the moment so I can use the lib as-is. I started a fork to add side-by-side support for the google-protobuf gem so I could add v3 support, but they require different versions of protoc, and I didn't have time to work through all the details of how ruby-protobuf patches in Ruby support to the old protoc.

@liveh2o
Copy link
Owner

liveh2o commented Oct 4, 2017

I feel your pain, @gthank...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants