# Objects

    struct Objects

Categorization of the objects detected.
- `


  ### [unfamiliar](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ObjectDetectionTrait/Objects#/s:15GoogleHomeTypes0A0O20ObjectDetectionTraitV7ObjectsV10unfamiliars5Int32Vvp)


  ` Count of objects detected by the device that the user may not recognize.

  #### Declaration

  Swift

      let unfamiliar: Int32

- `


  ### [named](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ObjectDetectionTrait/Objects#/s:15GoogleHomeTypes0A0O20ObjectDetectionTraitV7ObjectsV5namedSaySSGvp)


  ` List of objects recognized by the user that have been tagged with a label.

  #### Declaration

  Swift

      let named: [String]

- `


  ### [unclassified](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ObjectDetectionTrait/Objects#/s:15GoogleHomeTypes0A0O20ObjectDetectionTraitV7ObjectsV12unclassifieds5Int32Vvp)


  ` Count of objects detected that the device was unable to classify.

  #### Declaration

  Swift

      let unclassified: Int32

- `


  ### [familiar](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ObjectDetectionTrait/Objects#/s:15GoogleHomeTypes0A0O20ObjectDetectionTraitV7ObjectsV8familiars5Int32Vvp)


  ` Count of objects recognized by the user that have no label.

  #### Declaration

  Swift

      let familiar: Int32

- `


  ### [objects](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ObjectDetectionTrait/Objects#/s:15GoogleHomeTypes0A0O20ObjectDetectionTraitV7ObjectsV7objectsSayAE0D0VGvp)


  ` List of objects detected.

  #### Declaration

  Swift

      let objects: [https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ObjectDetectionTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ObjectDetectionTrait/Object.html]

- `


  ### [init(decoder:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ObjectDetectionTrait/Objects#/s:15GoogleHomeTypes0A0O20ObjectDetectionTraitV7ObjectsV7decoderAG0aB3SDK0F7DecoderV_tKcfc)


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

  #### Declaration

  Swift

      init(decoder: TraitDecoder) throws

  #### Parameters

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

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ObjectDetectionTrait/Objects#/s:15GoogleHomeTypes0A0O20ObjectDetectionTraitV7ObjectsV6encode4withy0aB3SDK0F7EncoderC_tKF)


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

  #### Declaration

  Swift

      func encode(with encoder: TraitEncoder) throws

- `


  ### [structField(id:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ObjectDetectionTrait/Objects#/s:15GoogleHomeTypes0A0O20ObjectDetectionTraitV7ObjectsV11structField2id0aB3SDK0I0_pSgs6UInt32V_tFZ)


  ` Returns the field corresponding to the given field ID.

  #### Declaration

  Swift

      static func structField(id: UInt32) -> (any Field)?