Unmarshaler is a configurable object for converting from a JSON representation to a protocol buffer object.
| 42 | // Unmarshaler is a configurable object for converting from a JSON |
| 43 | // representation to a protocol buffer object. |
| 44 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected