code: func (s *Parameters_Scheduling) Normalize() (err error) {
  	if s.Priority > 255 {
  		return errors.New("scheduling.priority > 256")
  	}
  	// Priority == 0 means default.
  	if s.Priority == 0 {
  		s.Priority = DefaultSwarmingPriority
  	}
  	for k, v := range s.Dimensions {
  		if k == "" {
  			return errors.New("scheduling.dimensions: empty dimension key")
  		}
  		if v == "" {
  			return fmt.Errorf("scheduling.dimensions: dimension key %q with empty value", k)
  		}
  	}
  	if google.DurationFromProto(s.IoTimeout) < 0 {
  		return errors.New("scheduling.io_timeout: negative timeout not allowed")
  	}
  	return
  }
docs: // Normalize normalizes and checks for input violations.