protobuf-go/internal/testprotos
Damien Neil ce3384cd34 proto, internal/impl: store unknown MessageSet items in non-mset format
In the v1 implementation, unknown MessageSet items are stored in a
message's unknown fields section in non-MessageSet format. For example,
consider a MessageSet containing an item with type_id T and value V.
If the type_id is not resolvable, the item will be placed in the unknown
fields as a bytes-valued field with number T and contents V. This
conversion is then reversed when marshaling a MessageSet containing
unknown fields.

Preserve this behavior in v2.

One consequence of this change is that actual unknown fields in a
MessageSet (any field other than 1) are now discarded. This matches
the previous behavior.

Change-Id: I3d913613f84e0ae82481078dbc91cb25628651cc
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/205697
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2019-11-11 19:40:27 +00:00
..
annotation cmd/protoc-gen-go: add support for field-tracking 2019-08-26 17:54:17 +00:00
benchmarks cmd/protoc-gen-go: fix Reset method 2019-10-17 17:10:14 +00:00
conformance cmd/protoc-gen-go: fix Reset method 2019-10-17 17:10:14 +00:00
fieldtrack cmd/protoc-gen-go: fix Reset method 2019-10-17 17:10:14 +00:00
irregular cmd/protoc-gen-go: fix Reset method 2019-10-17 17:10:14 +00:00
legacy cmd/protoc-gen-go: fix Reset method 2019-10-17 17:10:14 +00:00
messageset proto, internal/impl: store unknown MessageSet items in non-mset format 2019-11-11 19:40:27 +00:00
test cmd/protoc-gen-go: fix Reset method 2019-10-17 17:10:14 +00:00
test3 cmd/protoc-gen-go: fix Reset method 2019-10-17 17:10:14 +00:00