mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2024-12-26 03:20:53 +00:00
8878926ea7
This is the equivalent of CL 638495, but for the Opaque API. While the behavior is the same for non-synthetic oneofs between the Open Struct API and Opaque API, the behavior for synthetic oneofs is not the same: Because the Opaque API uses a bitfield to store presence, we need to use the Opaque presence check in WhichOneof(). This CL extends the testproto generator to use the protoc command-line flag for the test3 testproto (which specifies syntax = "proto3";), as the in-file api_level is only available in .proto files using editions (but editions does not use synthetic oneofs for optional fields, only proto3 does). For golang/protobuf#1659 Change-Id: I0a1fd6e5fc6f96eeab043f966728ce2a14dbd446 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/638515 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Chressie Himpel <chressie@google.com> |
||
---|---|---|
.. | ||
api_export_opaque.go | ||
api_export.go | ||
bitmap_race.go | ||
bitmap.go | ||
checkinit.go | ||
codec_extension.go | ||
codec_field_opaque.go | ||
codec_field.go | ||
codec_gen.go | ||
codec_map_go111.go | ||
codec_map_go112.go | ||
codec_map.go | ||
codec_message_opaque.go | ||
codec_message.go | ||
codec_messageset.go | ||
codec_tables.go | ||
codec_unsafe.go | ||
convert_list.go | ||
convert_map.go | ||
convert.go | ||
decode.go | ||
encode.go | ||
enum_test.go | ||
enum.go | ||
equal.go | ||
extension_test.go | ||
extension.go | ||
lazy_buffersharing_test.go | ||
lazy_field_normalized_test.go | ||
lazy_normalized_test.go | ||
lazy_test.go | ||
lazy.go | ||
legacy_aberrant_test.go | ||
legacy_enum.go | ||
legacy_export_test.go | ||
legacy_export.go | ||
legacy_extension.go | ||
legacy_file_test.go | ||
legacy_file.go | ||
legacy_message.go | ||
legacy_test.go | ||
merge_gen.go | ||
merge.go | ||
message_opaque_gen.go | ||
message_opaque.go | ||
message_reflect_field_gen.go | ||
message_reflect_field.go | ||
message_reflect_gen.go | ||
message_reflect_test.go | ||
message_reflect.go | ||
message.go | ||
pointer_unsafe_opaque.go | ||
pointer_unsafe.go | ||
presence.go | ||
validate.go | ||
weak.go |