# Field

    protocol Field : Hashable, RawRepresentable, Sendable where Self.RawValue == UInt32

Describes a field of a Trait, Command, Event, etc.
- `


  ### [id](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Field#/s:13GoogleHomeSDK5FieldP2ids6UInt32Vvp)


  ` The number identifying the attribute in the trait, or the field in a Command, Event, etc.

  #### Declaration

  Swift

      var id: UInt32 { get }

- `


  ### [type](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Field#/s:13GoogleHomeSDK5FieldP4typeAA0D4TypeOvp)


  ` The type of the field.

  #### Declaration

  Swift

      var type: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/FieldType.html { get }

- `


  ### [isEqual(to:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Field#/s:13GoogleHomeSDK5FieldP7isEqual2toSbAaB_p_tF)


  ` Default implementation Returns true if the field is equal to the other field.

  #### Default Implementation

  Returns true if the field is equal to the other field.

  #### Declaration

  Swift

      func isEqual(to other: any Field) -> Bool