# BasicInformationTrait.ProductAppearanceStruct

# BasicInformationTrait.ProductAppearanceStruct


```
class BasicInformationTrait.ProductAppearanceStruct : ClusterStruct
```

<br />

*** ** * ** ***

The product's appearance.

## Summary

| ### Nested types |
|---|
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/BasicInformationTrait.ProductAppearanceStruct.StructFields : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this struct's fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/BasicInformationTrait.ProductAppearanceStruct#ProductAppearanceStruct(com.google.home.matter.standard.BasicInformationTrait.ProductFinishEnum,com.google.home.matter.standard.BasicInformationTrait.ColorEnum)( finish: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/BasicInformationTrait.ProductFinishEnum, primaryColor: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/BasicInformationTrait.ColorEnum? )` Creates the ProductAppearanceStruct class. |

| ### Public functions |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/StructDescriptor` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/BasicInformationTrait.ProductAppearanceStruct#getDescriptor()()` Returns the descriptor for the struct. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/BasicInformationTrait.ProductAppearanceStruct#getFieldValueById(kotlin.UInt)(tagId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Returns the value of the field for the given tag ID. |

| ### Public properties |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/BasicInformationTrait.ProductFinishEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/BasicInformationTrait.ProductAppearanceStruct#finish()` The product's appearance, as enumerated by `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/BasicInformationTrait.ProductFinishEnum`. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/BasicInformationTrait.ColorEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/BasicInformationTrait.ProductAppearanceStruct#primaryColor()` The product's primary color, as enumerated by `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/BasicInformationTrait.ColorEnum`. |

## Public constructors

### ProductAppearanceStruct

```
ProductAppearanceStruct(
    finish: BasicInformationTrait.ProductFinishEnum = ProductFinishEnum.Other,
    primaryColor: BasicInformationTrait.ColorEnum? = null
)
```

Creates the ProductAppearanceStruct class.

## Public functions

### getDescriptor

```
@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor
```

Returns the descriptor for the struct.

### getFieldValueById

```
@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?
```

Returns the value of the field for the given tag ID.

## Public properties

### finish

```
val finish: BasicInformationTrait.ProductFinishEnum
```

The product's appearance, as enumerated by `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/BasicInformationTrait.ProductFinishEnum`.

### primaryColor

```
val primaryColor: BasicInformationTrait.ColorEnum?
```

The product's primary color, as enumerated by `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/BasicInformationTrait.ColorEnum`.