mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-15 22:59:00 +00:00
7c85df2652
Before this change, calling dynamicpb.NewMessage() on a protoreflect.MessageDescriptor that uses Editions would fail with: message field "[…].relatedqueries" is an invalid group: proto: invalid under proto2 semantics (While Go Protobuf does not yet support Editions, C++ programs can save descriptors to a file that is later loaded by a Go program.) Given that groups are only supported in proto2, but not in proto3 (see https://protobuf.dev/editions/features/#message_encoding), I think the conditional meant to say "proto3 semantics". Change-Id: I00368e4433ca60bb883b726e34ee6b8862cfd1e7 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/554955 Reviewed-by: Cassondra Foesch <cfoesch@gmail.com> Reviewed-by: Christian Höppner <hoeppi@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> |
||
---|---|---|
.. | ||
desc_init.go | ||
desc_resolve.go | ||
desc_validate.go | ||
desc.go | ||
editions_defaults.binpb | ||
editions.go | ||
file_test.go | ||
proto.go |