protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

(ruby) Support encoding/decoding textproto format

Open HoneyryderChuck opened this issue 2 years ago • 13 comments

What language does this apply to?

ruby

Describe the problem you are trying to solve.

Want to use a conformance suite from google described in textproto format, but the protobuf ruby build seems not to be able to understand the format.

Describe the solution you'd like

msg = Message.decode_text(bytes)
Message.encode_text(msg)

Additional context

python protobuf supports it via the text_format module. go supports it via Unmarshal. I don't know about the state of other builds.

HoneyryderChuck avatar Aug 29 '23 10:08 HoneyryderChuck

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago.

github-actions[bot] avatar Dec 12 '23 10:12 github-actions[bot]

I'd like to remain active 🙏

HoneyryderChuck avatar Dec 12 '23 10:12 HoneyryderChuck

The upb library which underlies Ruby Protobuf currently supports serializing to, but not parsing from, TextFormat: https://github.com/protocolbuffers/protobuf/tree/main/upb/text

So adding a text format encoder would be pretty straightforward. But adding a parser would require first adding upb support for that.

haberman avatar Jan 30 '24 23:01 haberman

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago.

github-actions[bot] avatar Apr 30 '24 10:04 github-actions[bot]

Active

HoneyryderChuck avatar Apr 30 '24 12:04 HoneyryderChuck

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago. This issue will be closed and archived after 14 additional days without activity.

github-actions[bot] avatar Jul 30 '24 10:07 github-actions[bot]

Activate plz

HoneyryderChuck avatar Jul 30 '24 10:07 HoneyryderChuck

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago. This issue will be closed and archived after 14 additional days without activity.

github-actions[bot] avatar Oct 29 '24 10:10 github-actions[bot]

Activate plz

HoneyryderChuck avatar Oct 29 '24 15:10 HoneyryderChuck

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago. This issue will be closed and archived after 14 additional days without activity.

github-actions[bot] avatar Jan 29 '25 10:01 github-actions[bot]

Activate plz

HoneyryderChuck avatar Jan 29 '25 10:01 HoneyryderChuck

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago. This issue will be closed and archived after 14 additional days without activity.

github-actions[bot] avatar Sep 22 '25 10:09 github-actions[bot]

Activate plz

HoneyryderChuck avatar Sep 22 '25 12:09 HoneyryderChuck