    struct NodeNotification

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

Represents a notification for a node.

Maps to `TraitSubscriberNotification` in `interaction_api.proto`.
- `


  ### [NotificationType](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotification/NotificationType.html)


  ` Undocumented

  #### Declaration

  Swift

      enum NotificationType

      extension https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotification.html.NotificationType : https://developers.home.google.com/reference/swift/GoogleHomeSDK/GoogleHomeSDK.html#/s:13GoogleHomeSDK15AutomationValueP, https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Enum.html, https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Enum32.html, Equatable, Hashable, RawRepresentable, Sendable, SendableMetatype

- `


  ### [SubscriptionStateChangeType](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotification/SubscriptionStateChangeType.html)


  ` Undocumented

  #### Declaration

  Swift

      enum SubscriptionStateChangeType

      extension https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotification.html.SubscriptionStateChangeType : https://developers.home.google.com/reference/swift/GoogleHomeSDK/GoogleHomeSDK.html#/s:13GoogleHomeSDK15AutomationValueP, https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Enum.html, https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Enum32.html, Equatable, Hashable, RawRepresentable, Sendable, SendableMetatype

- `


  ### [type](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotification#/s:13GoogleHomeSDK16NodeNotificationV4typeAC0E4TypeOvp)


  ` Undocumented

  #### Declaration

  Swift

      let type: NodeNotification.https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotification/NotificationType.html

- `


  ### [handle](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotification#/s:13GoogleHomeSDK16NodeNotificationV6handleSSvp)


  ` Undocumented

  #### Declaration

  Swift

      let handle: String

- `


  ### [payload](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotification#/s:13GoogleHomeSDK16NodeNotificationV7payloadAA0dE7PayloadVSgvp)


  ` Undocumented

  #### Declaration

  Swift

      let payload: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotificationPayload.html?

- `


  ### [deletedTraitIDs](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotification#/s:13GoogleHomeSDK16NodeNotificationV15deletedTraitIDsSaySSGvp)


  ` Undocumented

  #### Declaration

  Swift

      let deletedTraitIDs: [String]

- `


  ### [deletedObjectIDs](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotification#/s:13GoogleHomeSDK16NodeNotificationV16deletedObjectIDsSaySSGvp)


  ` Undocumented

  #### Declaration

  Swift

      let deletedObjectIDs: [String]

- `


  ### [omitStorage](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotification#/s:13GoogleHomeSDK16NodeNotificationV11omitStorageSbvp)


  ` Undocumented

  #### Declaration

  Swift

      let omitStorage: Bool

- `


  ### [subscriptionStateChangeType](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotification#/s:13GoogleHomeSDK16NodeNotificationV27subscriptionStateChangeTypeAC012SubscriptionghI0Ovp)


  ` Undocumented

  #### Declaration

  Swift

      let subscriptionStateChangeType: NodeNotification.https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotification/SubscriptionStateChangeType.html

- `


  ### [backendPathDiscriminator](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotification#/s:13GoogleHomeSDK16NodeNotificationV24backendPathDiscriminatorSSSgvp)


  ` Undocumented

  #### Declaration

  Swift

      let backendPathDiscriminator: String?

- `


  ### [init(type:handle:payload:deletedTraitIDs:deletedObjectIDs:omitStorage:subscriptionStateChangeType:backendPathDiscriminator:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotification#/s:13GoogleHomeSDK16NodeNotificationV4type6handle7payload15deletedTraitIDs0i6ObjectK011omitStorage27subscriptionStateChangeType24backendPathDiscriminatorA2C0eR0O_SSAA0dE7PayloadVSgSaySSGAQSbAC012SubscriptionpqR0OSSSgtcfc)


  ` Undocumented

  #### Declaration

  Swift

      init(type: NodeNotification.https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotification/NotificationType.html = .unspecified, handle: String = "", payload: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotificationPayload.html? = nil, deletedTraitIDs: [String] = [], deletedObjectIDs: [String] = [], omitStorage: Bool = false, subscriptionStateChangeType: NodeNotification.https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotification/SubscriptionStateChangeType.html = .unspecified, backendPathDiscriminator: String? = nil)

- `


  ### [init(decoder:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotification#/s:13GoogleHomeSDK16NodeNotificationV7decoderAcA12TraitDecoderV_tKcfc)


  ` Creates a new Struct instance using data read from the given `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/TraitDecoder.html`.
  Throws
  `HomeError.parseError` when parsing fails.

  #### Declaration

  Swift

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

  #### Parameters

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

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotification#/s:13GoogleHomeSDK16NodeNotificationV6encode4withyAA12TraitEncoderC_tKF)


  ` Writes this Struct to the given `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Classes/TraitEncoder.html`.
  Throws `HomeError.parseError` if the data could not be encoded.

  #### Declaration

  Swift

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