commit | bee625258d620743b95965fe902b5e159c63461e | [log] [tgz] |
---|---|---|
author | Joe Tsai <joetsai@digital-static.net> | Thu Sep 05 17:25:15 2019 -0700 |
committer | Joe Tsai <joetsai@digital-static.net> | Thu Sep 19 23:27:15 2019 +0000 |
tree | 82e0de31c4492cf9627b96697cc383eed32b5343 | |
parent | 6e095998aea3027192cc3f412407c453deaa2ae0 [diff] |
internal/impl: handle legacy ExtensionDesc form Add support for an ExtensionDesc with only Field populated as returned by protoV1.ExtensionDescs. Rather than panicking when TypeDescriptor is called, return a placeholder that preserves the name and/or number. Change-Id: I60352a7aec8ccd8a0c1fb08db5891043a441695f Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/193725 Reviewed-by: Damien Neil <dneil@google.com>
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.
List of relevant design documents:
We appreciate community contributions. See CONTRIBUTING.md.
Issues regarding the new API can be filed at github.com/golang/protobuf. Please use a APIv2:
prefix in the title to make it clear that the issue is regarding the new API work.