# Attributes

    struct Attributes

Attributes for the `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/MotionDetectionTrait.html`.
- `


  ### [attributeList](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/MotionDetectionTrait/Attributes#/s:15GoogleHomeTypes0A0O20MotionDetectionTraitV10AttributesV13attributeListSays6UInt32VGSgvp)


  ` A list of the attribute IDs of the attributes supported by the cluster instance.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var attributeList: [UInt32]? { get }

- `


  ### [motionDetectionTimestampSeconds](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/MotionDetectionTrait/Attributes#/s:15GoogleHomeTypes0A0O20MotionDetectionTraitV10AttributesV06motionE16TimestampSecondss5Int64VSgvp)


  ` The Unix Epoch timestamp in seconds at which motion was last detected. This attribute is
  returned if the `supportsMotionDetectionTimestampSeconds`
  \[MotionDetectionTrait.Feature.supportsMotionDetectionTimestampSeconds\] feature flag is set.
  A value of -1 for this attribute indicates that either no motion has been detected or no
  timestamp is available.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var motionDetectionTimestampSeconds: Int64? { get }

- `


  ### [motionDetectionEventInProgress](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/MotionDetectionTrait/Attributes#/s:15GoogleHomeTypes0A0O20MotionDetectionTraitV10AttributesV06motionE15EventInProgressSbSgvp)


  ` Whether or not a motion detection event is in progress. This attribute is returned if the
  `supportsMotionDetectionEventInProgress`
  \[MotionDetectionTrait.Feature.supportsMotionDetectionEventInProgress\] feature flag is set.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var motionDetectionEventInProgress: Bool? { get }

- `


  ### [lastMotionDetectionEventStartTimestampSeconds](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/MotionDetectionTrait/Attributes#/s:15GoogleHomeTypes0A0O20MotionDetectionTraitV10AttributesV04lastdE26EventStartTimestampSecondss5Int64VSgvp)


  ` The Unix Epoch timestamp in seconds at which a motion event last started, which occurs when
  the `supportsMotionDetectionEventInProgress`
  \[MotionDetectionTrait.Feature.supportsMotionDetectionEventInProgress\] feature flag becomes
  `true`. A value of -1 for this attribute indicates that either motion has not yet been
  detected or no timestamp is available.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var lastMotionDetectionEventStartTimestampSeconds: Int64? { get }

- `


  ### [lastMotionDetectionEventEndTimestampSeconds](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/MotionDetectionTrait/Attributes#/s:15GoogleHomeTypes0A0O20MotionDetectionTraitV10AttributesV04lastdE24EventEndTimestampSecondss5Int64VSgvp)


  ` The Unix Epoch timestamp in seconds at which a motion event last ended, which occurs when
  the `supportsMotionDetectionEventInProgress`
  \[MotionDetectionTrait.Feature.supportsMotionDetectionEventInProgress\] feature flag becomes
  `false`. A value of -1 for this attribute indicates that either motion has not yet been
  detected or no timestamp is available.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var lastMotionDetectionEventEndTimestampSeconds: Int64? { get }

- `


  ### [generatedCommandList](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/MotionDetectionTrait/Attributes#/s:15GoogleHomeTypes0A0O20MotionDetectionTraitV10AttributesV20generatedCommandListSays6UInt32VGSgvp)


  ` A list of server-generated commands (server to client) which are supported by this
  cluster server instance.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var generatedCommandList: [UInt32]? { get }

- `


  ### [acceptedCommandList](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/MotionDetectionTrait/Attributes#/s:15GoogleHomeTypes0A0O20MotionDetectionTraitV10AttributesV19acceptedCommandListSays6UInt32VGSgvp)


  ` A list of client-generated commands which are supported by this cluster server instance.

  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var acceptedCommandList: [UInt32]? { get }

- `


  ### [featureMap](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/MotionDetectionTrait/Attributes#/s:15GoogleHomeTypes0A0O20MotionDetectionTraitV10AttributesV10featureMapAE0dE7FeatureVSgvp)


  ` Whether the server supports zero or more optional cluster features. A cluster feature
  is a set of cluster elements that are mandatory or optional for a defined feature of the
  cluster. If a cluster feature is supported by the cluster instance, then the corresponding
  bit is set to 1, otherwise the bit is set to 0 (zero).
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var featureMap: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/MotionDetectionTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/MotionDetectionTrait/MotionDetectionFeature.html? { get }

- `


  ### [clusterRevision](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/MotionDetectionTrait/Attributes#/s:15GoogleHomeTypes0A0O20MotionDetectionTraitV10AttributesV15clusterRevisions6UInt16VSgvp)


  ` The revision of the server cluster specification supported by the cluster instance.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var clusterRevision: UInt16? { get }

- `


  ### [identifier](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/MotionDetectionTrait/Attributes#/s:15GoogleHomeTypes0A0O20MotionDetectionTraitV10AttributesV10identifierSSvpZ)


  ` The trait identifier.

  #### Declaration

  Swift

      static var identifier: String { get }

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/MotionDetectionTrait/Attributes#/s:15GoogleHomeTypes0A0O20MotionDetectionTraitV10AttributesV6encode4withy0aB3SDK0F7EncoderC_tKF)


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

  #### Declaration

  Swift

      func encode(with encoder: TraitEncoder) throws

- `


  ### [==(_:_:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/MotionDetectionTrait/Attributes#/s:15GoogleHomeTypes0A0O20MotionDetectionTraitV10AttributesV2eeoiySbAG_AGtFZ)


  ` Returns a Boolean value indicating whether two values are equal.

  Equality is the inverse of inequality. For any values `a` and `b`,
  `a == b` implies that `a != b` is `false`.

  #### Declaration

  Swift

      static func == (lhs: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/MotionDetectionTrait.html.Attributes, rhs: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/MotionDetectionTrait.html.Attributes) -> Bool

  #### Parameters

  |---|---|
  | ` lhs ` | A value to compare. |
  | ` rhs ` | Another value to compare. |

- `


  ### [hash(into:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/MotionDetectionTrait/Attributes#/s:15GoogleHomeTypes0A0O20MotionDetectionTraitV10AttributesV4hash4intoys6HasherVz_tF)


  ` Hashes the essential components of this value by feeding them into the
  given hasher.

  Implement this method to conform to the `Hashable` protocol. The
  components used for hashing must be the same as the components compared
  in your type's `==` operator implementation. Call `hasher.combine(_:)`
  with each of these components.
  Important

  In your implementation of `hash(into:)`,
  don't call `finalize()` on the `hasher` instance provided,
  or replace it with a different instance.
  Doing so may become a compile-time error in the future.

  #### Declaration

  Swift

      func hash(into hasher: inout Hasher)