Why the trigger builder API exists
The Apps Script UI lets you click through a trigger dialog, but that only works for the person clicking. The moment you share a script or deploy it as a library, every user has to install their own trigger by hand. ScriptApp.newTrigger() solves that: you ship an installTrigger() function, tell users to run it once, and the schedule is set in code.
The builder chains off ScriptApp.newTrigger('functionName'), which takes the handler function's name as a plain string. From there you call .timeBased() to enter the time-trigger branch, pick an interval method (everyHours, everyMinutes, everyDays, everyWeeks), and close with .create(). The trigger is scoped to the Google account that runs the installer, which is why each user needs to run it themselves on a shared script.