Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [T Extensions 16](https://developer.android.com/sdkExtensions) Summary: [Nested Classes](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.EmbeddingPropertyConfig#nestedclasses) \| [Constants](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.EmbeddingPropertyConfig#constants) \| [Inherited Constants](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.EmbeddingPropertyConfig#inhconstants) \| [Methods](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.EmbeddingPropertyConfig#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.EmbeddingPropertyConfig#inhmethods)

# AppSearchSchema.EmbeddingPropertyConfig

*** ** * ** ***

` public static final class AppSearchSchema.EmbeddingPropertyConfig `   
` ` ` extends https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig ` ` `

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [android.app.appsearch.AppSearchSchema.PropertyConfig](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig) ||
|   | ↳ | android.app.appsearch.AppSearchSchema.EmbeddingPropertyConfig |

<br />

*** ** * ** ***

Configuration for a property of type `https://developer.android.com/reference/android/app/appsearch/EmbeddingVector` in a Document.

## Summary

| ### Nested classes ||
|---|---|
| ` class` | `https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.EmbeddingPropertyConfig.Builder` Builder for `https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.EmbeddingPropertyConfig`. |

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.EmbeddingPropertyConfig#INDEXING_TYPE_NONE` Content in this property will not be indexed. |
| `int` | `https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.EmbeddingPropertyConfig#INDEXING_TYPE_SIMILARITY` Embedding vectors in this property will be indexed. |
| `int` | `https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.EmbeddingPropertyConfig#QUANTIZATION_TYPE_8_BIT` Contents in this property will be quantized to 8 bits. |
| `int` | `https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.EmbeddingPropertyConfig#QUANTIZATION_TYPE_NONE` Contents in this property will not be quantized. |

### Inherited constants

From class `https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig` `int` `https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig#CARDINALITY_OPTIONAL`

Zero or one value \[0,1\].
`int` `https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig#CARDINALITY_REPEATED`

Any number of items (including zero) \[0...\*\].
`int` `https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig#CARDINALITY_REQUIRED`

Exactly one value \[1\].

| ### Public methods ||
|---|---|
| ` int` | ` https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.EmbeddingPropertyConfig#getIndexingType()() ` Returns how the property is indexed. |
| ` int` | ` https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.EmbeddingPropertyConfig#getQuantizationType()() ` Returns how the embedding contents of this property should be quantized. |

### Inherited methods

From class ` https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig ` ` boolean` ` https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object other) `

Indicates whether some other object is "equal to" this one.
` int` ` https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig#getCardinality()() `

Returns the cardinality of the property (whether it is optional, required or repeated).
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig#getDescription()() `

Returns a natural language description of this property.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig#getName()() `

Returns the name of this property.
` int` ` https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig#hashCode()() `

Returns a hash code value for the object.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig#toString()() `

Returns a string representation of the object.
From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Constants

### INDEXING_TYPE_NONE

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [T Extensions 16](https://developer.android.com/sdkExtensions)

```
public static final int INDEXING_TYPE_NONE
```

Content in this property will not be indexed.

<br />

Constant Value: 0 (0x00000000)

### INDEXING_TYPE_SIMILARITY

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [T Extensions 16](https://developer.android.com/sdkExtensions)

```
public static final int INDEXING_TYPE_SIMILARITY
```

Embedding vectors in this property will be indexed.

The index offers 100% accuracy, but has linear time complexity based on the number of embedding vectors within the index.

<br />

Constant Value: 1 (0x00000001)

### QUANTIZATION_TYPE_8_BIT

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [T Extensions 16](https://developer.android.com/sdkExtensions)

```
public static final int QUANTIZATION_TYPE_8_BIT
```

Contents in this property will be quantized to 8 bits.

<br />

Constant Value: 1 (0x00000001)

### QUANTIZATION_TYPE_NONE

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [T Extensions 16](https://developer.android.com/sdkExtensions)

```
public static final int QUANTIZATION_TYPE_NONE
```

Contents in this property will not be quantized.

<br />

Constant Value: 0 (0x00000000)

## Public methods

### getIndexingType

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [T Extensions 16](https://developer.android.com/sdkExtensions)

```
public int getIndexingType ()
```

Returns how the property is indexed.

<br />

| Returns ||
|---|---|
| `int` | Value is one of the following: - `https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.EmbeddingPropertyConfig#INDEXING_TYPE_NONE` - `https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.EmbeddingPropertyConfig#INDEXING_TYPE_SIMILARITY` |

### getQuantizationType

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [T Extensions 17](https://developer.android.com/sdkExtensions)

```
public int getQuantizationType ()
```

Returns how the embedding contents of this property should be quantized.

If the property isn't indexed, returns `https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.EmbeddingPropertyConfig#QUANTIZATION_TYPE_NONE`.

<br />

| Returns ||
|---|---|
| `int` | Value is one of the following: - `https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.EmbeddingPropertyConfig#QUANTIZATION_TYPE_NONE` - `https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.EmbeddingPropertyConfig#QUANTIZATION_TYPE_8_BIT` |