dynamicMessage implements protobuf.Message but is not a normal generated message type. It provides implementations of JSONPBMarshaler and JSONPBUnmarshaler for JSON support.
| 1093 | // dynamicMessage implements protobuf.Message but is not a normal generated message type. |
| 1094 | // It provides implementations of JSONPBMarshaler and JSONPBUnmarshaler for JSON support. |
| 1095 | type dynamicMessage struct { |
| 1096 | RawJson string `protobuf:"bytes,1,opt,name=rawJson"` |
| 1097 | |
| 1098 | // an unexported nested message is present just to ensure that it |
| 1099 | // won't result in a panic (see issue #509) |
| 1100 | Dummy *dynamicMessage `protobuf:"bytes,2,opt,name=dummy"` |
| 1101 | } |
| 1102 | |
| 1103 | func (m *dynamicMessage) Reset() { |
| 1104 | m.RawJson = "{}" |
nothing calls this directly
no outgoing calls
no test coverage detected