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

Method UnmarshalJSON

validator/validator.pb.go:355–362  ·  view source on GitHub ↗

Deprecated: Do not use.

(b []byte)

Source from the content-addressed store, hash-verified

353
354// Deprecated: Do not use.
355func (x *ExtensionSpec_ExtensionType) UnmarshalJSON(b []byte) error {
356 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
357 if err != nil {
358 return err
359 }
360 *x = ExtensionSpec_ExtensionType(num)
361 return nil
362}
363
364// Deprecated: Use ExtensionSpec_ExtensionType.Descriptor instead.
365func (ExtensionSpec_ExtensionType) EnumDescriptor() ([]byte, []int) {

Callers

nothing calls this directly

Calls 2

DescriptorMethod · 0.95

Tested by

no test coverage detected