code: func (ec *ErrorCode) UnmarshalText(text []byte) error {
  	desc, ok := idToDescriptors[string(text)]
  
  	if !ok {
  		desc = ErrorCodeUnknown.Descriptor()
  	}
  
  	*ec = desc.Code
  
  	return nil
  }
docs: // UnmarshalText decodes the form generated by MarshalText.