code: func (e *GameEvent) GetString(name string) (string, error) {
  	// Get the key from the message
  	k, err := e.getEventKey(name)
  	if err != nil {
  		return "", err
  	}
  
  	// Make sure it's a string.
  	if k.GetType() != gameEventTypeString {
  		return "", _errorf("field %s: expected string, got %s", name, gameEventTypeNames[k.GetType()])
  	}
  
  	return k.GetValString(), nil
  }
docs: // Gets the string value of a named field.