protobuf-go/reflect
Damien Neil f5274511fe all: add NewField, NewElement, NewValue
Add methods to protoreflect.{Message,List,Map} to constrict values
assignable to a message field, list element, or map value. These
methods return the default value for scalar fields, the zero value for
scalar list elements and map values, and an empty, mutable value for
messages, lists, and maps.

Deprecate the NewMessage methods on these types, which are superseded.

Updates golang/protobuf#879

Change-Id: I0f064f60c89a239330ccea81523f559f14fd2c4f
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/188997
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2019-08-06 21:54:30 +00:00
..
protodesc all: remove dead code 2019-08-06 21:16:48 +00:00
protoreflect all: add NewField, NewElement, NewValue 2019-08-06 21:54:30 +00:00
protoregistry cmd/protoc-gen-go: group enum map vars in blocks 2019-08-06 21:33:36 +00:00
prototype all: refactor Converter 2019-08-05 22:33:14 +00:00