Register proto2type extension number 1307#28129
Open
brucearctor wants to merge 1 commit into
Open
Conversation
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
esrauchg
requested changes
Jun 22, 2026
Contributor
There was a problem hiding this comment.
The edits in this PR look weird/broken, is it a bad merge?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
FieldOptionsandMessageOptionsto annotate fields with code generation hints:document_id— marks a field as the document IDserver_timestamp— marks a field as server-managed timestampomitempty— controls JSON serialization behaviorskip— excludes fields/messages from generationname— overrides storage field namesinline— flattens nested messagesThe 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.