Skip to content

Register proto2type extension number 1307#28129

Open
brucearctor wants to merge 1 commit into
protocolbuffers:mainfrom
brucearctor:register-proto2type
Open

Register proto2type extension number 1307#28129
brucearctor wants to merge 1 commit into
protocolbuffers:mainfrom
brucearctor:register-proto2type

Conversation

@brucearctor

Copy link
Copy Markdown
Contributor

Extension Registration Request

Project: proto2type
Website: https://github.com/protocgen/proto2type
Requested Extension Number: 1307

What is proto2type?

proto2type is a protoc plugin that generates domain types, storage types (Firestore, MongoDB), and bidirectional converters from Protocol Buffer message definitions. It uses custom options on FieldOptions and MessageOptions to annotate fields with code generation hints:

  • document_id — marks a field as the document ID
  • server_timestamp — marks a field as server-managed timestamp
  • omitempty — controls JSON serialization behavior
  • skip — excludes fields/messages from generation
  • name — overrides storage field names
  • inline — flattens nested messages

The options proto is published on the Buf Schema Registry at buf.build/protocgen/proto2type.

Current Status

Currently using extension number 90100 (in the organizational-use range). Requesting formal registration as the project is open-source and published.

proto2type generates domain types, storage types, and converters
from Protocol Buffer definitions. It extends FieldOptions and
MessageOptions to annotate fields with code generation hints
(document_id, server_timestamp, omitempty, etc.).

Website: https://github.com/protocgen/proto2type
@brucearctor brucearctor requested a review from a team as a code owner June 21, 2026 19:00
@brucearctor brucearctor requested review from Logofile and removed request for a team June 21, 2026 19:00
@Logofile Logofile requested review from haberman and removed request for Logofile June 22, 2026 00:10
Comment thread docs/options.md

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The edits in this PR look weird/broken, is it a bad merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants