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

Support for custom options #71

Open
jase88 opened this issue Oct 30, 2021 · 1 comment
Open

Support for custom options #71

jase88 opened this issue Oct 30, 2021 · 1 comment

Comments

@jase88
Copy link

jase88 commented Oct 30, 2021

Protocol buffers are allowing to create own options. Example:

import "google/protobuf/descriptor.proto";

extend google.protobuf.MessageOptions {
  optional string my_option = 51234;
}

message MyMessage {
  option (my_option) = "Hello world!";
}

See
https://developers.google.com/protocol-buffers/docs/proto#customoptions

It is possible on messages, message fields, enums, enum values, services etc.

It would be great if the code generator would store those meta information as static values on the class.

@gkyildirim
Copy link

I am using ngx-grpc quite some time. Now I struggle to have this option. Is it still planned to implement?

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