    extension Duration : https://developers.home.google.com/reference/swift/GoogleHomeSDK/GoogleHomeSDK.html#/s:13GoogleHomeSDK15AutomationValueP, https://developers.home.google.com/reference/swift/GoogleHomeSDK/GoogleHomeSDK.html#/s:13GoogleHomeSDK15AutomationValueP, Copyable, Copyable, Equatable, Equatable, Escapable, Escapable, Hashable, Hashable, Sendable, Sendable, SendableMetatype, SendableMetatype, https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/StructDataRepresentable.html

- `


  ### [seconds](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Extensions/Duration#/s:s8DurationV13GoogleHomeSDKE7secondss5Int64Vvp)


  ` The number of seconds in duration.

  #### Declaration

  Swift

      var seconds: Int64 { get }

- `


  ### [nanoseconds](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Extensions/Duration#/s:s8DurationV13GoogleHomeSDKE11nanosecondss5Int64Vvp)


  ` The number of nanoseconds in duration.

  #### Declaration

  Swift

      var nanoseconds: Int64 { get }

- `


  ### [init(decoder:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Extensions/Duration#/s:s8DurationV13GoogleHomeSDKE7decoderAbC12TraitDecoderV_tKcfc)


  ` Initializes the duration with the trait decoder.

  #### Declaration

  Swift

      init(decoder: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/TraitDecoder.html) throws

  #### Parameters

  |---|---|
  | ` decoder ` | The trait decoder to decode the duration. |

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Extensions/Duration#/s:s8DurationV13GoogleHomeSDKE6encode4withyAC12TraitEncoderC_tKF)


  ` Encodes the duration to the trait encoder.

  #### Declaration

  Swift

      func encode(with encoder: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Classes/TraitEncoder.html) throws

- `


  ### [StructFields](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Extensions/Duration/StructFields.html)


  ` Undocumented

  #### Declaration

  Swift

      enum StructFields

      extension Duration.StructFields : Equatable, https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Field.html, Hashable, RawRepresentable, Sendable, SendableMetatype

- `


  ### [structField(id:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Extensions/Duration#/s:s8DurationV13GoogleHomeSDKE11structField2idAC0F0_pSgs6UInt32V_tFZ)


  ` Returns the field corresponding to the given field ID.

  #### Declaration

  Swift

      static func structField(id: UInt32) -> (any https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Field.html)?