MCPcopy Create free account
hub / github.com/ampproject/amphtml / UnmarshalJSON

Method UnmarshalJSON

validator/validator.pb.go:150–157  ·  view source on GitHub ↗

Deprecated: Do not use.

(b []byte)

Source from the content-addressed store, hash-verified

148
149// Deprecated: Do not use.
150func (x *AttrSpec_DispatchKeyType) UnmarshalJSON(b []byte) error {
151 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
152 if err != nil {
153 return err
154 }
155 *x = AttrSpec_DispatchKeyType(num)
156 return nil
157}
158
159// Deprecated: Use AttrSpec_DispatchKeyType.Descriptor instead.
160func (AttrSpec_DispatchKeyType) EnumDescriptor() ([]byte, []int) {

Callers

nothing calls this directly

Calls 2

DescriptorMethod · 0.95
AttrSpec_DispatchKeyTypeTypeAlias · 0.85

Tested by

no test coverage detected