# UserPresenceSettings.Attribute


```
enum UserPresenceSettings.Attribute : Enum, Field
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html) ||
|   | ↳ | [com.google.home.google.UserPresenceSettings.Attribute](https://developers.home.google.com/reference/kotlin/com/google/home/google/UserPresenceSettings.Attribute.md.txt) |

*** ** * ** ***

Descriptor enum for this trait's attributes.

## Summary

| ### Enum Values |
|---|---|
| `presenceOptIn` | Indicates whether the user has opted into and completed setup for presence sensing for this structure. |

| ### Public functions |
|---|---|
| `UserPresenceSettings.Attribute` | `valueOf(value: String)` Returns the enum constant of this type with the specified name. |
| `Array<UserPresenceSettings.Attribute>` | `values()` Returns an array containing the constants of this enum type, in the order they're declared. |

| ### Public properties |
|---|---|
| `open Descriptor` | `descriptor` |
| `EnumEntries<UserPresenceSettings.Attribute>` | `entries` Returns a representation of an immutable list of all enum entries, in the order they're declared. |
| `open String` | `fieldName` |
| `open Boolean` | `isList` |
| `Boolean` | `isNullable` |
| `open UInt` | `tag` |
| `open Type` | `typeEnum` |
| `open String` | `typeName` |

## Enum Values

### presenceOptIn

```
val UserPresenceSettings.Attribute.presenceOptIn: UserPresenceSettings.Attribute
```

Indicates whether the user has opted into and completed setup for presence sensing for this structure.

## Public functions

### valueOf

```
fun valueOf(value: String): UserPresenceSettings.Attribute
```

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

| Throws |
|---|---|
| `kotlin.IllegalArgumentException` | if this enum type has no constant with the specified name |

### values

```
fun values(): Array<UserPresenceSettings.Attribute>
```

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.

## Public properties

### descriptor

```
open val descriptor: Descriptor
```

### entries

```
val entries: EnumEntries<UserPresenceSettings.Attribute>
```

Returns a representation of an immutable list of all enum entries, in the order they're declared.

This method may be used to iterate over the enum entries.

### fieldName

```
open val fieldName: String
```

### isList

```
open val isList: Boolean
```

### isNullable

```
val isNullable: Boolean
```

### tag

```
open val tag: UInt
```

### typeEnum

```
open val typeEnum: Type
```

### typeName

```
open val typeName: String
```