Skip to content

[REQ] Improve protobuf generator by adding custom options for api and model files #21074

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

Open
andrewwilsonnew opened this issue Apr 11, 2025 · 0 comments

Comments

@andrewwilsonnew
Copy link
Contributor

andrewwilsonnew commented Apr 11, 2025

Is your feature request related to a problem? Please describe.

Our project requires custom options in the proto api and model files.

Describe the solution you'd like

Can define 2 new options in the protobuf generator:

  • customOptionsApi
  • customOptionsModel

#21075

Describe alternatives you've considered

n/a

Additional context

Some good options that you can provide include:

  • option cc_generic_services = true; # C++
  • option optimize_for = SPEED;

java options see here

  • option java_multiple_files = true;
  • option java_package = "com.example.tutorial.protos.api";
  • option java_outer_classname = "ExampleProtos";
@andrewwilsonnew andrewwilsonnew changed the title [REQ] Feature Request Description [REQ] Add custom options to protobuf generator Apr 11, 2025
@andrewwilsonnew andrewwilsonnew changed the title [REQ] Add custom options to protobuf generator [REQ] Improve protobuf generator by adding custom options for api and model files Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant