Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Create proto-plus messages from classes generated by protoc #84

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

Closed
kwkbtr opened this issue Jul 30, 2020 · 2 comments
Closed

Create proto-plus messages from classes generated by protoc #84

kwkbtr opened this issue Jul 30, 2020 · 2 comments
Assignees
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@kwkbtr
Copy link

kwkbtr commented Jul 30, 2020

Hi, I'm interested in using this library in our project.
We currently have proto definition files (*.proto) and generate Python code with protoc.
I want to use proto-plus with the existing definitions, but could not find a way to do it.
Is there a way to create proto-plus messages from existing Python classes generated by protoc?
If not, is it possible that such a feature would be implemented in future?

@software-dov
Copy link
Contributor

This is almost exactly what https://github.com/googleapis/gapic-generator-python/ accomplishes: it is a protoc plugin that, given protobuf descriptors, generates client libraries and proto-plus message classes. Try taking a look at that and see if it fits your needs.

So, to answer your question more directly, what you want is very possible, but it falls outside the strict scope of proto-plus and is instead accomplished by other tools.

@busunkim96 busunkim96 added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Jul 30, 2020
@kwkbtr
Copy link
Author

kwkbtr commented Aug 4, 2020

Thank you, I will give it a try!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

3 participants