    struct ScheduledEvent

The event that will be subscribed to when an automation needs to be scheduled.
- `


  ### [clockTime(_:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/ScheduledEvent#/s:15GoogleHomeTypes0A0O9TimeTraitV14ScheduledEventV05clockD0y0aB3SDK14TypedParameterVyAGGAI0D5OfDayVFZ)


  ` Returns a `TypedParameter` for `Google.TimeTrait.ScheduledEvent.EventFields.clockTime` with
  the given `TimeOfDay`.

  #### Declaration

  Swift

      static func clockTime(_ clockTime: TimeOfDay) -> TypedParameter<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait.html.ScheduledEvent>

- `


  ### [solarTime(_:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/ScheduledEvent#/s:15GoogleHomeTypes0A0O9TimeTraitV14ScheduledEventV05solarD0y0aB3SDK14TypedParameterVyAGGAI05SolarD0VFZ)


  ` Returns a `TypedParameter` for `Google.TimeTrait.ScheduledEvent.EventFields.solarTime` with
  the given `SolarTime`.

  #### Declaration

  Swift

      static func solarTime(_ solarTime: SolarTime) -> TypedParameter<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait.html.ScheduledEvent>

- `


  ### [daysOfWeek(_:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/ScheduledEvent#/s:15GoogleHomeTypes0A0O9TimeTraitV14ScheduledEventV10daysOfWeeky0aB3SDK14TypedParameterVyAGGSay10Foundation6LocaleV7WeekdayOGFZ)


  ` Returns a `TypedParameter` for `Google.TimeTrait.ScheduledEvent.EventFields.daysOfWeek`
  with the given `[Locale.Weekday]`.

  #### Declaration

  Swift

      static func daysOfWeek(_ daysOfWeek: [Locale.Weekday]) -> TypedParameter<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait.html.ScheduledEvent>

- `


  ### [eventField(id:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/ScheduledEvent#/s:15GoogleHomeTypes0A0O9TimeTraitV14ScheduledEventV10eventField2id0aB3SDK0I0_pSgs6UInt32V_tFZ)


  ` Returns the field corresponding to the given field ID.

  #### Declaration

  Swift

      static func eventField(id: UInt32) -> (any Field)?

- `


  ### [Payload](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/ScheduledEvent/Payload.html)


  ` The payload of the event.

  #### Declaration

  Swift

      struct Payload

- `


  ### [identifier](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/ScheduledEvent#/s:15GoogleHomeTypes0A0O9TimeTraitV14ScheduledEventV10identifier0aB3SDK06ScopedG2IDVvpZ)


  ` Identifier for this event.

  The Event ID is appended onto the Trait ID of the trait this event belongs to.

  #### Declaration

  Swift

      static let identifier: ScopedEventID

- `


  ### [name](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/ScheduledEvent#/s:15GoogleHomeTypes0A0O9TimeTraitV14ScheduledEventV4names12StaticStringVvpZ)


  ` Name of the given event type.

  #### Declaration

  Swift

      static let name: StaticString

- `


  ### [timestamp](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/ScheduledEvent#/s:15GoogleHomeTypes0A0O9TimeTraitV14ScheduledEventV9timestampSdvp)


  ` Timestamp of when the given event occurred on the sender.

  #### Declaration

  Swift

      let timestamp: TimeInterval

- `


  ### [importance](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/ScheduledEvent#/s:15GoogleHomeTypes0A0O9TimeTraitV14ScheduledEventV10importance0aB3SDK0G10ImportanceOvp)


  ` Reported importance level of the given event.

  #### Declaration

  Swift

      let importance: EventImportance

- `


  ### [number](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/ScheduledEvent#/s:15GoogleHomeTypes0A0O9TimeTraitV14ScheduledEventV6numberSuvp)


  ` Optional number of the event in the sequence history of this field.

  #### Declaration

  Swift

      let number: UInt

- `


  ### [partID](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/ScheduledEvent#/s:15GoogleHomeTypes0A0O9TimeTraitV14ScheduledEventV6partIDSSSgvp)


  ` Optional ID of the part that emitted this event.

  #### Declaration

  Swift

      let partID: String?

- `


  ### [init(decoder:timestamp:importance:number:partID:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/ScheduledEvent#/s:15GoogleHomeTypes0A0O9TimeTraitV14ScheduledEventV7decoder9timestamp10importance6number6partIDAG0aB3SDK0E7DecoderV_SdAM0G10ImportanceOSuSSSgtKcfc)


  ` Initializer to decode the event.

  #### Declaration

  Swift

      init(decoder: TraitDecoder, timestamp: TimeInterval, importance: EventImportance, number: UInt, partID: String?) throws

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/ScheduledEvent#/s:15GoogleHomeTypes0A0O9TimeTraitV14ScheduledEventV6encode4withy0aB3SDK0E7EncoderC_tKF)


  ` Encodes the given event.

  #### Declaration

  Swift

      func encode(with encoder: TraitEncoder) throws

- `


  ### [debugDescription](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/ScheduledEvent#/s:15GoogleHomeTypes0A0O9TimeTraitV14ScheduledEventV16debugDescriptionSSvp)


  ` A textual representation of this instance, suitable for debugging.

  Calling this property directly is discouraged. Instead, convert an
  instance of any type to a string by using the `String(reflecting:)`
  initializer. This initializer works with any type, and uses the custom
  `debugDescription` property for types that conform to
  `CustomDebugStringConvertible`:

      struct Point: CustomDebugStringConvertible {
          let x: Int, y: Int

          var debugDescription: String {
              return "(\(x), \(y))"
          }
      }

      let p = Point(x: 21, y: 30)
      let s = String(reflecting: p)
      print(s)
      // Prints "(21, 30)"

  The conversion of `p` to a string in the assignment to `s` uses the
  `Point` type's `debugDescription` property.

  #### Declaration

  Swift

      var debugDescription: String { get }