protobuf-go/internal
Damien Neil 82a0306187 internal/{fileinit,impl}: minimal weak field support
Weak fields are an obsolete proto1 feature. They have been superseded
by extensions. However, some vestigial support for weak fields does
remain, mostly as Google-internal patches. (They aren't exciting;
extensions really do everything weak fields do in a cleaner and
more portable fashion.)

At the moment, the only visible impact of marking a field [weak=true]
is to exclude it from "internal/fileinit".FileBuilder.DependencyIndexes.
We want to preserve that behavior just in case we ever do add full weak
field support here.

Extend fileinit to look up message descriptors for weak fields in the
global registry. If the descriptor cannot be found, use a placeholder
instead.

Remove special-case handling of weak fields in the impl package. The
code generator doesn't do anything special for them, so they can be
treated as any other field.

Change-Id: Ifa2ee3d30d63680a0eeb59c66ebc9521f38fd660
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/175997
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2019-05-08 17:24:54 +00:00
..
cmd encoding/jsonpb: add unmarshal option to ignore unknown fields 2019-04-29 22:11:02 +00:00
descopts internal/fileinit: make fileinit responsible for registering concrete options types 2019-04-15 20:37:10 +00:00
detrand internal/detrand: support disabling detrand 2018-11-29 07:49:45 +00:00
encoding internal/encoding/wire: increase maximum field number 2019-05-07 21:39:02 +00:00
errors internal/errors: fix New in eliding prefix 2019-02-27 22:36:14 +00:00
fieldnum internal/fieldnum: generate field numbers for the google.protobuf package 2019-03-21 00:57:40 +00:00
fileinit internal/{fileinit,impl}: minimal weak field support 2019-05-08 17:24:54 +00:00
flags
impl internal/{fileinit,impl}: minimal weak field support 2019-05-08 17:24:54 +00:00
legacy reflect/protoreflect: remove methods with Type suffix 2019-04-20 08:14:13 +00:00
mapsort proto: wire encoding support 2019-03-14 19:12:27 +00:00
pragma
prototype reflect/protodesc: add validation for NewFile 2019-05-08 00:41:07 +00:00
scalar internal/scalar: add scalar package for primitive wrappers 2018-11-28 07:06:11 +00:00
set internal/set: remove Int32s, Int64s, and Strings 2019-04-03 22:53:35 +00:00
testprotos internal/{fileinit,impl}: minimal weak field support 2019-05-08 17:24:54 +00:00
typefmt reflect/protoreflect: remove methods with Type suffix 2019-04-20 08:14:13 +00:00
value all: move v1 types over to the v2 repository 2019-03-22 20:01:07 +00:00