MCPcopy
hub / github.com/golang/protobuf / isSingularJSONPBUnmarshaler

Function isSingularJSONPBUnmarshaler

jsonpb/decode.go:402–408  ·  view source on GitHub ↗
(v protoreflect.Value, fd protoreflect.FieldDescriptor)

Source from the content-addressed store, hash-verified

400}
401
402func isSingularJSONPBUnmarshaler(v protoreflect.Value, fd protoreflect.FieldDescriptor) bool {
403 if fd.Message() != nil && fd.Cardinality() != protoreflect.Repeated {
404 _, ok := proto.MessageV1(v.Interface()).(JSONPBUnmarshaler)
405 return ok
406 }
407 return false
408}
409
410func (u *Unmarshaler) unmarshalValue(v protoreflect.Value, in []byte, fd protoreflect.FieldDescriptor) (protoreflect.Value, error) {
411 switch {

Callers 1

unmarshalMessageMethod · 0.85

Calls 1

InterfaceMethod · 0.80

Tested by

no test coverage detected