    struct LightingCurveTrait

Structure level trait for managing lighting curves.
- `


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


  ` The trait identifier.

  #### Declaration

  Swift

      static let identifier: String

- `


  ### [supportedEventTypes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait#/s:15GoogleHomeTypes0A0O18LightingCurveTraitV014supportedEventC0Say0aB3SDK0H0_pXpGvpZ)


  ` List of all event types on the given Trait.

  Currently, only `MatterTrait` traits support any events, but this will likely expand to other
  traits in the future.

  #### Declaration

  Swift

      static let supportedEventTypes: [any Event.Type]

- `


  ### [supportedCommandTypes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait#/s:15GoogleHomeTypes0A0O18LightingCurveTraitV016supportedCommandC0Say0aB3SDK0H0_pXpGvpZ)


  ` List of all commands supported by the Trait's definition. The commands supported by a specific
  Trait instance may vary.

  #### Declaration

  Swift

      static var supportedCommandTypes: [any Command.Type] { get }

- `


  ### [metadata](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait#/s:15GoogleHomeTypes0A0O18LightingCurveTraitV8metadata0aB3SDK0F8MetadataVvp)


  ` Metadata about this `Trait`.

  #### Declaration

  Swift

      let metadata: TraitMetadata

- `


  ### [init(decoder:interactionProxy:metadata:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait#/s:15GoogleHomeTypes0A0O18LightingCurveTraitV7decoder16interactionProxy8metadataAE0aB3SDK0F7DecoderV_AI011InteractionI0_pSgAI0F8MetadataVtKcfc)


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

  #### Declaration

  Swift

      init(decoder: TraitDecoder, interactionProxy: (any InteractionProxy)?, metadata: TraitMetadata) throws

  #### Parameters

  |---|---|
  | ` decoder ` | The raw data representing this Trait. |
  | ` interactionProxy ` | Proxy to the Interaction Client. |
  | ` metadata ` | Metadata about this Trait. |

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait#/s:15GoogleHomeTypes0A0O18LightingCurveTraitV6encode4withy0aB3SDK0F7EncoderC_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/LightingCurveTrait#/s:15GoogleHomeTypes0A0O18LightingCurveTraitV2eeoiySbAE_AEtFZ)


  ` 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.LightingCurveTrait, rhs: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.LightingCurveTrait) -> Bool

  #### Parameters

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

- `


  ### [hash(into:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait#/s:15GoogleHomeTypes0A0O18LightingCurveTraitV4hash4intoys6HasherVz_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)

- `


  ### [TargetDevice](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait/TargetDevice.html)


  ` Represents a target device with its type info.

  #### Declaration

  Swift

      struct TargetDevice

- `


  ### [TargetDevices](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait/TargetDevices.html)


  ` List of devices to target.

  #### Declaration

  Swift

      struct TargetDevices

- `


  ### [CurveTimeOfDay](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait/CurveTimeOfDay.html)


  ` Represents a time of day.

  #### Declaration

  Swift

      struct CurveTimeOfDay

- `


  ### [CurvePoint](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait/CurvePoint.html)


  ` Represents a single point on a lighting curve.

  #### Declaration

  Swift

      struct CurvePoint

- `


  ### [LightingCurveConfig](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait/LightingCurveConfig.html)


  ` Configuration parameters for a lighting curve.

  #### Declaration

  Swift

      struct LightingCurveConfig

- `


  ### [LightingCurveSetting](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait/LightingCurveSetting.html)


  ` Configuration for a lighting curve.

  #### Declaration

  Swift

      struct LightingCurveSetting

- `


  ### [createLightingCurveSetting(config:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait#/s:15GoogleHomeTypes0A0O18LightingCurveTraitV06createdE7Setting6configAE06CreatedeH7CommandV8ResponseVAE0dE6ConfigVSg_tYaKF)


  ` Create a new lighting curve setting.

  #### Declaration

  Swift

      func createLightingCurveSetting(config: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.LightingCurveTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait/LightingCurveConfig.html? = nil) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.LightingCurveTrait.CreateLightingCurveSettingCommandResponse

  #### Parameters

  |---|---|
  | ` config ` | Configuration parameters for the lighting curve. |

- `


  ### [updateLightingCurveSetting(settingId:config:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait#/s:15GoogleHomeTypes0A0O18LightingCurveTraitV06updatedE7Setting9settingId6configAE06UpdatedeH7CommandV8ResponseVSSSg_AE0dE6ConfigVSgtYaKF)


  ` Update a lighting curve setting.

  #### Declaration

  Swift

      func updateLightingCurveSetting(settingId: String? = nil, config: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.LightingCurveTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait/LightingCurveConfig.html? = nil) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.LightingCurveTrait.UpdateLightingCurveSettingCommandResponse

  #### Parameters

  |---|---|
  | ` settingId ` | The ID of the lighting curve setting to update. |
  | ` config ` | <br /> |

- `


  ### [deleteLightingCurveSetting(settingId:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait#/s:15GoogleHomeTypes0A0O18LightingCurveTraitV06deletedE7Setting9settingIdAE06DeletedeH7CommandV8ResponseVSSSg_tYaKF)


  ` Delete a lighting curve setting.

  #### Declaration

  Swift

      func deleteLightingCurveSetting(settingId: String? = nil) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.LightingCurveTrait.DeleteLightingCurveSettingCommandResponse

  #### Parameters

  |---|---|
  | ` settingId ` | The ID of the lighting curve setting to delete. |