# DoorLockTrait.LockOperation

# DoorLockTrait.LockOperation


```
interface DoorLockTrait.LockOperation : ClusterStruct
```

<br />

Known direct subclasses [DoorLock.LockOperationEvent](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLock.LockOperationEvent)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLock.LockOperationEvent` |   |

*** ** * ** ***

Indicates that a lock operation has taken place.

## Summary

| ### 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/DoorLockTrait.LockOperation#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/DoorLockTrait.LockOperation#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.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.CredentialStruct>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.LockOperation#credentials()` The credentials used in performing the lock operation. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.LockOperation#fabricIndex()` The fabric that performed the lock operation. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.LockOperationTypeEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.LockOperation#lockOperationType()` The type of the lock operation that was performed. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.OperationSourceEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.LockOperation#operationSource()` The source of the lock operation. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.LockOperation#sourceNode()` The node that performed the lock operation. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.LockOperation#userIndex()` The user who performed the lock operation. |

## 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

### credentials

```
val credentials: List<DoorLockTrait.CredentialStruct>?
```

The credentials used in performing the lock operation.

### fabricIndex

```
val fabricIndex: UByte?
```

The fabric that performed the lock operation.

### lockOperationType

```
val lockOperationType: DoorLockTrait.LockOperationTypeEnum?
```

The type of the lock operation that was performed.

### operationSource

```
val operationSource: DoorLockTrait.OperationSourceEnum?
```

The source of the lock operation.

### sourceNode

```
val sourceNode: ULong?
```

The node that performed the lock operation.

### userIndex

```
val userIndex: UShort?
```

The user who performed the lock operation.