Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
Protocol Buffers
Conversations
About
(ruby) allow to parse textproto format
36 views
Skip to first unread message
Tiago Cardoso
unread,
Aug 28, 2023, 1:27:40 PM
8/28/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Protocol Buffers
In the context of cel-spec test cases, which exist in textproto format (example:
https://github.com/google/cel-spec/blob/4e8877a830d0d613e00c0477acb266006dd688bd/tests/simple/testdata/basic.textproto
), I tried to find the correct API in the ruby google-protobuf package which would allow to decode it into a protobuf object, but couldn't find it (Example.decode at least can't parse anything other than the binary format).
is there a way to do it, or is this a missing feature? FWIW go seems to be able to do it via .Unmarshal (example
https://github.com/google/cel-spec/blob/4e8877a830d0d613e00c0477acb266006dd688bd/tests/simple/simple_test.go#L131
)
Reply all
Reply to author
Forward
0 new messages