func (r *ToS) UnmarshalText(data []byte) error {
	if v, ok := _tosNameToValue[string(data)]; ok {
		*r = v
		return nil
	}

	return fmt.Errorf("invalid ToS %q", string(data))
}
func (r *ToS) UnmarshalText(data []byte) error {
	if v, ok := _tosNameToValue[string(data)]; ok {
		*r = v
		return nil
	}

	return fmt.Errorf("invalid ToS %q", string(data))
}
func ( r * ToS ) UnmarshalText ( data [ ] byte ) error { if v , ok := _tosNameToValue [ string ( data ) ] ; ok { * r = v return nil } return fmt . Errorf ( " " , string ( data ) ) }
// UnmarshalText implements TextUnMarshaler from encoding
UnmarshalText implements TextUnMarshaler from encoding