    enum Constraint

    extension Constraint : Equatable, Hashable, Sendable, SendableMetatype

Constraints on a trait attribute, command parameter or event field. Represents the possible
values that an attribute, parameter or field can have.
- `


  ### [booleanConstraint](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/Constraint#/s:13GoogleHomeSDK10ConstraintO07booleanD0yA2CmF)


  ` A constraint on a Boolean field.

  #### Declaration

  Swift

      case booleanConstraint

- `


  ### [byteConstraint(minLength:maxLength:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/Constraint#/s:13GoogleHomeSDK10ConstraintO04byteD0yACs6UInt32V_AFtcACmF)


  ` A constraint on a Byte field.

  #### Declaration

  Swift

      case byteConstraint(minLength: UInt32, maxLength: UInt32)

- `


  ### [stringConstraint(minLength:maxLength:disallowedValues:disallowedValuesCaseSensitive:regex:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/Constraint#/s:13GoogleHomeSDK10ConstraintO06stringD0yACs6UInt32V_AFSaySSGSbSStcACmF)


  ` A constraint on a String field.

  #### Declaration

  Swift

      case stringConstraint(minLength: UInt32 = 0, maxLength: UInt32 = 256, disallowedValues: [String], disallowedValuesCaseSensitive: Bool = false, regex: String = "")

- `


  ### [stringAllowListConstraint(values:caseSensitive:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/Constraint#/s:13GoogleHomeSDK10ConstraintO015stringAllowListD0yACSaySSG_SbtcACmF)


  ` A constraint on a StringAllowList field.

  #### Declaration

  Swift

      case stringAllowListConstraint(values: [String], caseSensitive: Bool = false)

- `


  ### [stringEnumConstraint(_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/Constraint#/s:13GoogleHomeSDK10ConstraintO010stringEnumD0yAcA06StringfD0VcACmF)


  ` A constraint on a String enum field.

  #### Declaration

  Swift

      case stringEnumConstraint(https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/StringEnumConstraint.html)

- `


  ### [listConstraint(elementConstraint:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/Constraint#/s:13GoogleHomeSDK10ConstraintO04listD0yA2C_tcACmF)


  ` Undocumented

  #### Declaration

  Swift

      indirect case listConstraint(elementConstraint: Constraint)

- `


  ### [bitmapConstraint(combinedBits:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/Constraint#/s:13GoogleHomeSDK10ConstraintO06bitmapD0yACSayAA22CombinedBitsDescriptorVG_tcACmF)


  ` A constraint on a Bitmap field.

  This is an EXPERIMENTAL feature that may be removed or changed without notice.

  #### Declaration

  Swift

      case bitmapConstraint(combinedBits: [https://developers.home.google.com/reference/swift/GoogleHomeSDK/GoogleHomeSDK.html#/s:13GoogleHomeSDK22CombinedBitsDescriptorV])

- `


  ### [enumConstraint(allowedSet:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/Constraint#/s:13GoogleHomeSDK10ConstraintO04enumD0yACShyAA7AnyEnumVG_tcACmF)


  ` A constraint on an Enum field.

  #### Declaration

  Swift

      case enumConstraint(allowedSet: Set<https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AnyEnum.html>)

- `


  ### [dayOfWeekConstraint(allowedSet:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/Constraint#/s:13GoogleHomeSDK10ConstraintO09dayOfWeekD0yACShy10Foundation6LocaleV7WeekdayOG_tcACmF)


  ` A constraint on a `DayOfWeek` enum field.

  #### Declaration

  Swift

      case dayOfWeekConstraint(allowedSet: Set<Locale.Weekday>)

- `


  ### [solarTimeConstraint(allowedSet:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/Constraint#/s:13GoogleHomeSDK10ConstraintO09solarTimeD0yACShyAA05SolarF0V0gF4TypeOG_tcACmF)


  ` A constraint on a `SolarTimeType` enum field.

  #### Declaration

  Swift

      case solarTimeConstraint(allowedSet: Set<https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/SolarTime.html.SolarTimeType>)

- `


  ### [structConstraint(structFieldConstraint:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/Constraint#/s:13GoogleHomeSDK10ConstraintO06structD0yACSDyAA8AnyFieldVACG_tcACmF)


  ` A constraint on a Struct field.

  #### Declaration

  Swift

      case structConstraint(structFieldConstraint: [https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AnyField.html : Constraint])

- `


  ### [intRangeConstraint(lowerBound:upperBound:step:unit:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/Constraint#/s:13GoogleHomeSDK10ConstraintO08intRangeD0yACs5Int64V_A2fA0D4UnitVtcACmF)


  ` A constraint on an Int range field.

  #### Declaration

  Swift

      case intRangeConstraint(lowerBound: Int64, upperBound: Int64, step: Int64, unit: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/ConstraintUnit.html)

- `


  ### [uintRangeConstraint(lowerBound:upperBound:step:unit:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/Constraint#/s:13GoogleHomeSDK10ConstraintO09uintRangeD0yACs6UInt64V_A2fA0D4UnitVtcACmF)


  ` A constraint on a UInt range field.

  #### Declaration

  Swift

      case uintRangeConstraint(lowerBound: UInt64, upperBound: UInt64, step: UInt64, unit: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/ConstraintUnit.html)

- `


  ### [doubleRangeConstraint(lowerBound:upperBound:step:unit:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/Constraint#/s:13GoogleHomeSDK10ConstraintO011doubleRangeD0yACSd_S2dAA0D4UnitVtcACmF)


  ` A constraint on a Double range field.

  #### Declaration

  Swift

      case doubleRangeConstraint(lowerBound: Double, upperBound: Double, step: Double, unit: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/ConstraintUnit.html)

- `


  ### [uintSetConstraint(allowedSet:unit:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/Constraint#/s:13GoogleHomeSDK10ConstraintO07uintSetD0yACShys6UInt64VG_AA0D4UnitVtcACmF)


  ` A constraint on a UInt set field.

  #### Declaration

  Swift

      case uintSetConstraint(allowedSet: Set<UInt64>, unit: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/ConstraintUnit.html)

- `


  ### [uintEnumConstraint(_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/Constraint#/s:13GoogleHomeSDK10ConstraintO08uintEnumD0yAcA04UIntfD0VcACmF)


  ` A constraint on a UInt enum field.

  #### Declaration

  Swift

      case uintEnumConstraint(https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/UIntEnumConstraint.html)