Unable to access custom field extension options in protobuf Descriptor #2776
Unanswered
Divya Ravulapalli (dravula1)
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am working on validating protobuf messages using buf-protovalidate, which requires us to have the custom buf validate field options support in the descriptor.
So far, we are able to pull the schema from confluent schema registry to the
ParsedSchemaobject, but when trying to fetch its descriptor type, it is cutting off the FieldOptions for the fields.Even with FieldOptions extension,
extend google.protobuf.FieldOptions { optional FieldConstraints field = 1159; }It seem to be a similar issue as protocolbuffers/protobuf#12049. Can someone help with a possible workaround in java.
So far I have been trying with no luck, to manually build field descriptor proto with field options. Atleast a sample on how to build FieldOptions with extensions (using
OptionElementobject) would help as well. Thank you in advance!Beta Was this translation helpful? Give feedback.
All reactions