# InferenceSource


```
@PublicPreviewAPI
class InferenceSource
```

<br />

*** ** * ** ***

Indicates the source of the model inference.

## Summary

| ### Public companion properties |
|---|---|
| `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/ai/InferenceSource` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/ai/InferenceSource#IN_CLOUD()` Inference was performed in the cloud. |
| `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/ai/InferenceSource` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/ai/InferenceSource#ON_DEVICE()` Inference was performed on the device. |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/ai/InferenceSource#equals(kotlin.Any)(other: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/ai/InferenceSource#hashCode()()` |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/ai/InferenceSource#toString()()` |

## Public companion properties

### IN_CLOUD

```
val IN_CLOUD: InferenceSource
```

Inference was performed in the cloud.

### ON_DEVICE

```
val ON_DEVICE: InferenceSource
```

Inference was performed on the device.

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```