# UnaryExpression

# UnaryExpression


```
sealed class UnaryExpression : ExpressionWithId
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||
| ↳ | [com.google.home.automation.ExpressionWithId](https://developers.home.google.com/reference/kotlin/com/google/home/automation/ExpressionWithId) ||
|   | ↳ | [com.google.home.automation.UnaryExpression](https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnaryExpression) |

Known direct subclasses [Not](https://developers.home.google.com/reference/kotlin/com/google/home/automation/Not)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/Not` | The logical NOT operator. |

*** ** * ** ***

Represents a unary expression with one operand: "`operator` `operand`".

## Summary

| ### Protected constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnaryExpression#UnaryExpression(com.google.home.automation.Expression)(operand: https://developers.home.google.com/reference/kotlin/com/google/home/automation/Expression)` |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnaryExpression#UnaryExpression(com.google.home.automation.Expression,kotlin.String)(operand: https://developers.home.google.com/reference/kotlin/com/google/home/automation/Expression, expressionId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` |

| ### Public properties |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/Expression` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnaryExpression#operand()` The operand. |

## Protected constructors

### UnaryExpression

```
protected UnaryExpression(operand: Expression)
```

### UnaryExpression

```
protected UnaryExpression(operand: Expression, expressionId: String)
```

## Public properties

### operand

```
val operand: Expression
```

The operand.