commit | 82886da2b9aa8030165f94a931e2ed0000aa0809 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Tue Nov 26 13:27:24 2019 -0800 |
committer | Damien Neil <dneil@google.com> | Tue Nov 26 22:56:18 2019 +0000 |
tree | 9024e9a671af1012c292634d9a8a5af1e37c65c7 | |
parent | 1c31032e00bd8ad7ea6f9d9dd89721c77abd82c6 [diff] |
reflect/protoreflect: add {Message,List,Map}.IsValid Various protoreflect methods can return an "empty, read-only" message, list, or map value. Provide a method to test if a value is one of these. Fixes golang/protobuf#966 Change-Id: I793d8426d6e2201755983c06f024412a7e09bc4c Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/209018 Reviewed-by: Joe Tsai <joetsai@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.