protobuf-go/encoding/prototext
Joe Tsai 8689fa59f4 encoding/prototext: add UnmarshalOptions.DiscardUnknown
This CL adds support for discarding unknown fields from the input.
We add support for parsing and resolving field numbers, so that
the DiscardUnknown option can ignore all unresolvable fields.
We continue to reject known fields identified by field number
since there are a number of edge cases that a difficult to resolve.

Change-Id: I5c88b7bae8656ce20e85e4b5c92d8564a5ff8bb6
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/195779
Reviewed-by: Herbie Ong <herbie@google.com>
2019-09-17 03:07:37 +00:00
..
decode_test.go encoding/prototext: add UnmarshalOptions.DiscardUnknown 2019-09-17 03:07:37 +00:00
decode.go encoding/prototext: add UnmarshalOptions.DiscardUnknown 2019-09-17 03:07:37 +00:00
doc.go protogen, encoding/jsonpb, encoding/textpb: rename packages 2019-05-14 20:33:22 +00:00
encode_test.go encoding/prototext: add MarshalOptions.EmitUnknown 2019-09-17 02:56:29 +00:00
encode.go encoding/prototext: add MarshalOptions.EmitUnknown 2019-09-17 02:56:29 +00:00
other_test.go proto: move T->*T wrappers from internal/scalar to proto 2019-07-12 17:35:01 +00:00