all: drop reflect/prototype package

Remove the remaining uses of the prototype package.

The most significant change is to impl.MessageInfo, which now directly
implements the MessageType interface. This involves two notable changes
to exported fields of MessageInfo:

  - PBType is now Desc.
  - GoType is now GoReflectType. (Name changed to avoid a conflict with
    the GoType method of the MessageType interface.)

Fixes golang/protobuf#911

Change-Id: Ie2aa4766d6887ceaa9cf06b1f109aa6e6e2a208f
Reviewed-by: Joe Tsai <>
19 files changed
tree: 9e04f3121764ad2005378124d874e51ad1de281f
  1. .gitignore
  2. .travis.yml
  9. benchmarks/
  10. cmd/
  11. compiler/
  12. encoding/
  13. go.mod
  14. go.sum
  15. integration_test.go
  16. internal/
  17. proto/
  18. reflect/
  19. regenerate.bash
  20. runtime/
  21. test.bash
  22. testing/
  23. types/

Next Generation Go Protocol Buffers

WARNING: This repository is in active development. There are no guarantees about API stability. Breaking changes will occur until a stable release is made and announced.

This repository is for the development of the next major Go implementation of protocol buffers. This library makes breaking API changes relative to the existing Go protobuf library. Of particular note, this API aims to make protobuf reflection a first-class feature of the API and implements the protobuf ecosystem in terms of reflection.

Design Documents

List of relevant design documents:


We appreciate community contributions. See

Reporting Issues

Issues regarding the new API can be filed at Please use a APIv2: prefix in the title to make it clear that the issue is regarding the new API work.