protobuf/proto
Joe Tsai 0fd14f9610 proto: add MessageV1, MessageV2, and MessageReflect
The MessageV1 and MessageV2 functions convert to/from the v1 and v2
message interfaces.
The MessageReflect function provides a reflective view over message.
These functions do not have an "Of" suffix to be consistent with
the existing MessageName and MessageType functions.

Furthermore, we drop the "Of" suffix from functions in the descriptor
package to be consistent. This is a safe change since none of those
functions have seen a stable release.

We move the descriptor.GeneratedXXX types to the proto package
for documentation purposes.

Fixes #956

Change-Id: I566b74367798e2e3399db9902b58ffeb673199ca
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/219137
Reviewed-by: Damien Neil <dneil@google.com>
2020-02-12 18:09:08 +00:00
..
buffer.go all: update to wrap v2 2020-01-09 19:10:17 +00:00
defaults.go all: update to wrap v2 2020-01-09 19:10:17 +00:00
deprecated.go proto: add ProtoPackageIsVersion4 2020-02-11 00:11:57 +00:00
discard.go all: update to wrap v2 2020-01-09 19:10:17 +00:00
discard_test.go all: update to wrap v2 2020-01-09 19:10:17 +00:00
extensions.go all: update to wrap v2 2020-01-09 19:10:17 +00:00
extensions_test.go all: update to wrap v2 2020-01-09 19:10:17 +00:00
properties.go all: update to wrap v2 2020-01-09 19:10:17 +00:00
proto.go proto: add MessageV1, MessageV2, and MessageReflect 2020-02-12 18:09:08 +00:00
proto_clone_test.go all: update to wrap v2 2020-01-09 19:10:17 +00:00
proto_equal_test.go all: update to wrap v2 2020-01-09 19:10:17 +00:00
proto_test.go all: update to wrap v2 2020-01-09 19:10:17 +00:00
registry.go all: update to wrap v2 2020-01-09 19:10:17 +00:00
registry_test.go all: update to wrap v2 2020-01-09 19:10:17 +00:00
text_decode.go all: update to wrap v2 2020-01-09 19:10:17 +00:00
text_encode.go all: update to wrap v2 2020-01-09 19:10:17 +00:00
wire.go all: update to wrap v2 2020-01-09 19:10:17 +00:00
wire_decode_test.go all: update to wrap v2 2020-01-09 19:10:17 +00:00
wire_encode_test.go all: update to wrap v2 2020-01-09 19:10:17 +00:00
wire_size_test.go all: update to wrap v2 2020-01-09 19:10:17 +00:00
wrappers.go all: update to wrap v2 2020-01-09 19:10:17 +00:00