func (x *IpnsEntry_ValidityType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(IpnsEntry_ValidityType_value, data, "IpnsEntry_ValidityType") if err != nil { return err } *x = IpnsEntry_ValidityType(value) return nil }
func (x *KeyType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(KeyType_value, data, "KeyType") if err != nil { return err } *x = KeyType(value) return nil }
func (x *Message_MessageType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(Message_MessageType_value, data, "Message_MessageType") if err != nil { return err } *x = Message_MessageType(value) return nil }