mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-01 11:58:21 +00:00
f5274511fe
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> |
||
---|---|---|
.. | ||
proto_test.go | ||
proto.go | ||
source.go | ||
type.go | ||
value_pure.go | ||
value_test.go | ||
value_union.go | ||
value_unsafe.go | ||
value.go |