# Type


```
@<Error class: unknown class>
enum Type : Enum
```

<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.Type](https://developers.home.google.com/reference/kotlin/com/google/home/Type) |

*** ** * ** ***

This enum lists the types of Kotlin variables which represent trait fields.

Entries such as Enum, Bitmap, and Struct are general types which need more trait-specific information to know the exact type.

## Summary

| ### Enum Values |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/Type#Bitmap` |   |
| `https://developers.home.google.com/reference/kotlin/com/google/home/Type#Boolean` |   |
| `https://developers.home.google.com/reference/kotlin/com/google/home/Type#Byte` |   |
| `https://developers.home.google.com/reference/kotlin/com/google/home/Type#ByteArray` |   |
| `https://developers.home.google.com/reference/kotlin/com/google/home/Type#Double` |   |
| `https://developers.home.google.com/reference/kotlin/com/google/home/Type#Dynamic` |   |
| `https://developers.home.google.com/reference/kotlin/com/google/home/Type#Enum` |   |
| `https://developers.home.google.com/reference/kotlin/com/google/home/Type#Float` |   |
| `https://developers.home.google.com/reference/kotlin/com/google/home/Type#Int` |   |
| `https://developers.home.google.com/reference/kotlin/com/google/home/Type#Long` |   |
| `https://developers.home.google.com/reference/kotlin/com/google/home/Type#Short` |   |
| `https://developers.home.google.com/reference/kotlin/com/google/home/Type#String` |   |
| `https://developers.home.google.com/reference/kotlin/com/google/home/Type#Struct` |   |
| `https://developers.home.google.com/reference/kotlin/com/google/home/Type#UByte` |   |
| `https://developers.home.google.com/reference/kotlin/com/google/home/Type#UInt` |   |
| `https://developers.home.google.com/reference/kotlin/com/google/home/Type#ULong` |   |
| `https://developers.home.google.com/reference/kotlin/com/google/home/Type#UShort` |   |

| ### Public functions |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/Type` | `https://developers.home.google.com/reference/kotlin/com/google/home/Type#valueOf(kotlin.String)(value: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` Returns the enum constant of this type with the specified name. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/Type>` | `https://developers.home.google.com/reference/kotlin/com/google/home/Type#values()()` Returns an array containing the constants of this enum type, in the order they're declared. |

| ### Public properties |
|---|---|
| `https://developers.home.google.com/reference/kotlin/kotlin/enums/EnumEntries<https://developers.home.google.com/reference/kotlin/com/google/home/Type>` | `https://developers.home.google.com/reference/kotlin/com/google/home/Type#entries()` Returns a representation of an immutable list of all enum entries, in the order they're declared. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/ValueSerializer<*>` | `https://developers.home.google.com/reference/kotlin/com/google/home/Type#valueSerializer()` |

## Enum Values

### Bitmap

```
@<Error class: unknown class>
val Type.Bitmap: Type
```

### Boolean

```
@<Error class: unknown class>
val Type.Boolean: Type
```

### Byte

```
@<Error class: unknown class>
val Type.Byte: Type
```

### ByteArray

```
@<Error class: unknown class>
val Type.ByteArray: Type
```

### Double

```
@<Error class: unknown class>
val Type.Double: Type
```

### Dynamic

```
@<Error class: unknown class>
val Type.Dynamic: Type
```

### Enum

```
@<Error class: unknown class>
val Type.Enum: Type
```

### Float

```
@<Error class: unknown class>
val Type.Float: Type
```

### Int

```
@<Error class: unknown class>
val Type.Int: Type
```

### Long

```
@<Error class: unknown class>
val Type.Long: Type
```

### Short

```
@<Error class: unknown class>
val Type.Short: Type
```

### String

```
@<Error class: unknown class>
val Type.String: Type
```

### Struct

```
@<Error class: unknown class>
val Type.Struct: Type
```

### UByte

```
@<Error class: unknown class>
val Type.UByte: Type
```

### UInt

```
@<Error class: unknown class>
val Type.UInt: Type
```

### ULong

```
@<Error class: unknown class>
val Type.ULong: Type
```

### UShort

```
@<Error class: unknown class>
val Type.UShort: Type
```

## Public functions

### valueOf

```
fun valueOf(value: String): Type
```

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 |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-argument-exception/index.html` | if this enum type has no constant with the specified name |

### values

```
fun values(): Array<Type>
```

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

### entries

```
val entries: EnumEntries<Type>
```

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.

### valueSerializer

```
val valueSerializer: ValueSerializer<*>
```