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

Struct Unmarshaler

jsonpb/decode.go:44–52  ·  view source on GitHub ↗

Unmarshaler is a configurable object for converting from a JSON representation to a protocol buffer object.

Source from the content-addressed store, hash-verified

42// Unmarshaler is a configurable object for converting from a JSON
43// representation to a protocol buffer object.
44type Unmarshaler struct {
45 // AllowUnknownFields specifies whether to allow messages to contain
46 // unknown JSON fields, as opposed to failing to unmarshal.
47 AllowUnknownFields bool
48
49 // AnyResolver is used to resolve the google.protobuf.Any well-known type.
50 // If unset, the global registry is used by default.
51 AnyResolver AnyResolver
52}
53
54// JSONPBUnmarshaler is implemented by protobuf messages that customize the way
55// they are unmarshaled from JSON. Messages that implement this should also

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected