smnbbrv / ngx-grpc

Angular gRPC framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for custom options

jase88 opened this issue · comments

commented

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.

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