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

Struct dynamicMessage

jsonpb/json_test.go:1095–1101  ·  jsonpb/json_test.go::dynamicMessage

dynamicMessage implements protobuf.Message but is not a normal generated message type. It provides implementations of JSONPBMarshaler and JSONPBUnmarshaler for JSON support.

Source from the content-addressed store, hash-verified

1093// dynamicMessage implements protobuf.Message but is not a normal generated message type.
1094// It provides implementations of JSONPBMarshaler and JSONPBUnmarshaler for JSON support.
1095type 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
1103func (m *dynamicMessage) Reset() {
1104 m.RawJson = "{}"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected