code: func (r *RequestBuilder) FromTrigger(t *internal.Trigger) {
  	switch p := t.Payload.(type) {
  	case *internal.Trigger_Cron:
  		r.FromCronTrigger(p.Cron)
  	case *internal.Trigger_Webui:
  		r.FromWebUITrigger(p.Webui)
  	case *internal.Trigger_Noop:
  		r.FromNoopTrigger(p.Noop)
  	case *internal.Trigger_Gitiles:
  		r.FromGitilesTrigger(p.Gitiles)
  	case *internal.Trigger_Buildbucket:
  		r.FromBuildbucketTrigger(p.Buildbucket)
  	default:
  		r.DebugLog("Unrecognized trigger payload of type %T, ignoring", p)
  	}
  }
docs: // FromTrigger derives the request properties from the given trigger.