    struct ThemeStruct

Represents a collection of chime sounds. A theme can be permanent (year-round collection with
no start/end times) or timeboxed (seasonal collection active only between start and end
times).
- `


  ### [name](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ChimeThemesTrait/ThemeStruct#/s:15GoogleHomeTypes0A0O16ChimeThemesTraitV11ThemeStructV4nameSSvp)


  ` A stable string identifier for the theme used for display matching (for example,
  `halloween`, `birthday`).

  #### Declaration

  Swift

      let name: String

- `


  ### [startTimeSeconds](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ChimeThemesTrait/ThemeStruct#/s:15GoogleHomeTypes0A0O16ChimeThemesTraitV11ThemeStructV16startTimeSecondss6UInt64VSgvp)


  ` For timeboxed themes, the start time when the theme becomes active, expressed as seconds
  since the Unix epoch. If not present, the theme has no start restriction.

  #### Declaration

  Swift

      let startTimeSeconds: UInt64?

- `


  ### [endTimeSeconds](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ChimeThemesTrait/ThemeStruct#/s:15GoogleHomeTypes0A0O16ChimeThemesTraitV11ThemeStructV14endTimeSecondss6UInt64VSgvp)


  ` For timeboxed themes, the end time when the theme expires, expressed as seconds since the
  Unix epoch. If not present, the theme has no end restriction.

  #### Declaration

  Swift

      let endTimeSeconds: UInt64?

- `


  ### [chimeSounds](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ChimeThemesTrait/ThemeStruct#/s:15GoogleHomeTypes0A0O16ChimeThemesTraitV11ThemeStructV11chimeSoundsSayAE0dH0VGvp)


  ` The collection of audio files (chimes) included in this theme.

  #### Declaration

  Swift

      let chimeSounds: [https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ChimeThemesTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ChimeThemesTrait/ChimeStruct.html]

- `


  ### [init(decoder:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ChimeThemesTrait/ThemeStruct#/s:15GoogleHomeTypes0A0O16ChimeThemesTraitV11ThemeStructV7decoderAG0aB3SDK0F7DecoderV_tKcfc)


  ` Creates a new Struct instance using data read from the given `TraitDecoder`.
  Throws
  `HomeError.parseError` when parsing fails.

  #### Declaration

  Swift

      init(decoder: TraitDecoder) throws

  #### Parameters

  |---|---|
  | ` decoder ` | The raw data representing this Struct. |

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ChimeThemesTrait/ThemeStruct#/s:15GoogleHomeTypes0A0O16ChimeThemesTraitV11ThemeStructV6encode4withy0aB3SDK0F7EncoderC_tKF)


  ` Writes this Struct to the given `TraitEncoder`.
  Throws `HomeError.parseError` if the data could not be encoded.

  #### Declaration

  Swift

      func encode(with encoder: TraitEncoder) throws

- `


  ### [structField(id:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ChimeThemesTrait/ThemeStruct#/s:15GoogleHomeTypes0A0O16ChimeThemesTraitV11ThemeStructV11structField2id0aB3SDK0J0_pSgs6UInt32V_tFZ)


  ` Returns the field corresponding to the given field ID.

  #### Declaration

  Swift

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