mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-03-25 16:43:37 +00:00
By having the Message type implement proto.Message, it can be passed to other general-purpose protobuf functions such as proto.Merge. This provides a convenient way to convert the Message back into a concrete form that may be easier to work with. A minor consequence of this change is that invalid messages are converted to an invalid Message that preserves type information. Previously, they were simply transformed to a nil Message. Change-Id: I6fca8a0879408c7f44a99d52734613302fa23f70 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/221422 Reviewed-by: Damien Neil <dneil@google.com>