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

# AppSearchSchema.DocumentPropertyConfig

*** ** * ** ***

` public static final class AppSearchSchema.DocumentPropertyConfig `   
` ` ` 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.DocumentPropertyConfig |

<br />

*** ** * ** ***

Configuration for a property containing another Document.

## Summary

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

### 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 ||
|---|---|
| ` https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/java/lang/String>` | ` https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.DocumentPropertyConfig#getIndexableNestedProperties()() ` Returns the list of indexable nested properties for the nested document. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.DocumentPropertyConfig#getSchemaType()() ` Returns the logical schema-type of the contents of this document property. |
| ` boolean` | ` https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.DocumentPropertyConfig#shouldIndexNestedProperties()() ` Returns whether properties in the nested document should be indexed according to that document's schema. |

### 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*.

## Public methods

### getIndexableNestedProperties

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

```
public List<String> getIndexableNestedProperties ()
```

Returns the list of indexable nested properties for the nested document.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/java/lang/String>` | This value cannot be `null`. <br /> |

### getSchemaType

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getSchemaType ()
```

Returns the logical schema-type of the contents of this document property.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | This value cannot be `null`. <br /> |

### shouldIndexNestedProperties

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean shouldIndexNestedProperties ()
```

Returns whether properties in the nested document should be indexed according to that document's schema.

If false, the nested document's properties are not indexed regardless of its own schema.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.DocumentPropertyConfig.Builder#addIndexableNestedProperties(java.util.Collection<java.lang.String>)`