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

Method UnmarshalJSON

internal/testprotos/proto2_proto/test.pb.go:125–132  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

123}
124
125func (x *GoTest_KIND) UnmarshalJSON(data []byte) error {
126 value, err := proto.UnmarshalJSONEnum(GoTest_KIND_value, data, "GoTest_KIND")
127 if err != nil {
128 return err
129 }
130 *x = GoTest_KIND(value)
131 return nil
132}
133
134func (GoTest_KIND) EnumDescriptor() ([]byte, []int) {
135 return fileDescriptor_e5b3e7ca68f98362, []int{2, 0}

Callers

nothing calls this directly

Calls 2

UnmarshalJSONEnumFunction · 0.92
GoTest_KINDTypeAlias · 0.85

Tested by

no test coverage detected