# UnitTestingTrait.TestFabricScoped

# UnitTestingTrait.TestFabricScoped


```
class UnitTestingTrait.TestFabricScoped : ClusterStruct
```

<br />

*** ** * ** ***

TestFabricScoped

## 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/UnitTestingTrait.TestFabricScoped.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/UnitTestingTrait.TestFabricScoped#TestFabricScoped(kotlin.UByte,com.google.home.matter.serialization.OptionalValue,kotlin.UByte,com.google.home.matter.serialization.OptionalValue,kotlin.String,com.google.home.matter.standard.UnitTestingTrait.SimpleStruct,kotlin.collections.List,kotlin.UByte)( fabricSensitiveInt8u: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, optionalFabricSensitiveInt8u: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html>, nullableFabricSensitiveInt8u: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?, nullableOptionalFabricSensitiveInt8u: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?>, fabricSensitiveCharString: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, fabricSensitiveStruct: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct, fabricSensitiveInt8uList: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html>, fabricIndex: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html )` Creates the TestFabricScoped 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/UnitTestingTrait.TestFabricScoped#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/UnitTestingTrait.TestFabricScoped#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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestFabricScoped#fabricIndex()` `fabricIndex` attribute. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestFabricScoped#fabricSensitiveCharString()` `fabricSensitiveCharString` attribute. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestFabricScoped#fabricSensitiveInt8u()` `fabricSensitiveInt8u` attribute. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestFabricScoped#fabricSensitiveInt8uList()` `fabricSensitiveInt8uList` attribute. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestFabricScoped#fabricSensitiveStruct()` `fabricSensitiveStruct` attribute. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestFabricScoped#nullableFabricSensitiveInt8u()` `nullableFabricSensitiveInt8u` attribute. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestFabricScoped#nullableOptionalFabricSensitiveInt8u()` `nullableOptionalFabricSensitiveInt8u` attribute. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestFabricScoped#optionalFabricSensitiveInt8u()` `optionalFabricSensitiveInt8u` attribute. |

## Public constructors

### TestFabricScoped

```
TestFabricScoped(
    fabricSensitiveInt8u: UByte,
    optionalFabricSensitiveInt8u: OptionalValue<UByte> = OptionalValue.absent(),
    nullableFabricSensitiveInt8u: UByte? = null,
    nullableOptionalFabricSensitiveInt8u: OptionalValue<UByte?> = OptionalValue.absent(),
    fabricSensitiveCharString: String = "",
    fabricSensitiveStruct: UnitTestingTrait.SimpleStruct = SimpleStruct(),
    fabricSensitiveInt8uList: List<UByte> = emptyList(),
    fabricIndex: UByte
)
```

Creates the TestFabricScoped 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

### fabricIndex

```
val fabricIndex: UByte
```

`fabricIndex` attribute.

### fabricSensitiveCharString

```
val fabricSensitiveCharString: String
```

`fabricSensitiveCharString` attribute.

### fabricSensitiveInt8u

```
val fabricSensitiveInt8u: UByte
```

`fabricSensitiveInt8u` attribute.

### fabricSensitiveInt8uList

```
val fabricSensitiveInt8uList: List<UByte>
```

`fabricSensitiveInt8uList` attribute.

### fabricSensitiveStruct

```
val fabricSensitiveStruct: UnitTestingTrait.SimpleStruct
```

`fabricSensitiveStruct` attribute.

### nullableFabricSensitiveInt8u

```
val nullableFabricSensitiveInt8u: UByte?
```

`nullableFabricSensitiveInt8u` attribute.

### nullableOptionalFabricSensitiveInt8u

```
val nullableOptionalFabricSensitiveInt8u: OptionalValue<UByte?>
```

`nullableOptionalFabricSensitiveInt8u` attribute.

### optionalFabricSensitiveInt8u

```
val optionalFabricSensitiveInt8u: OptionalValue<UByte>
```

`optionalFabricSensitiveInt8u` attribute.