protocolbuffers / protocolbuffers/protobuf

(ruby) Support encoding/decoding textproto format

Open
#13,722 16 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement keep open ruby text format
Dominant language
C++
Stars
72k
Forks
16.3k
Avg merge
1d 17h
Merged PRs (30d)
140

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the proposed Message.decode_text and Message.encode_text entry points, and compare their expected behavior with Python's text_format module and Go's prototext Unmarshal. Use the linked basic.textproto conformance data to verify that Ruby can decode and re-encode textproto messages.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.