Bump github.com/golang/protobuf v1.5.4, google.golang.org/protobuf v1.33.0

This commit is contained in:
Jordan Liggitt
2024-03-06 09:47:28 -05:00
parent 546f7c3086
commit c6673d2346
123 changed files with 4118 additions and 1417 deletions

View File

@@ -197,7 +197,7 @@ func fieldCoder(fd protoreflect.FieldDescriptor, ft reflect.Type) (*MessageInfo,
return getMessageInfo(ft), makeMessageFieldCoder(fd, ft)
case fd.Kind() == protoreflect.GroupKind:
return getMessageInfo(ft), makeGroupFieldCoder(fd, ft)
case fd.Syntax() == protoreflect.Proto3 && fd.ContainingOneof() == nil:
case !fd.HasPresence() && fd.ContainingOneof() == nil:
// Populated oneof fields always encode even if set to the zero value,
// which normally are not encoded in proto3.
switch fd.Kind() {