AI-generated Key Takeaways
-
AppSearchSchema defines the structure for different types of documents within AppSearch, such as emails or music recordings.
-
A schema consists of type information, properties, and configuration like tokenization.
-
AppSearchSchema includes nested classes for configuring various property types, such as boolean, bytes, documents, double, long, and string.
-
The schema provides methods to retrieve its description, parent types, properties, and schema type name.
The AppSearch Schema for a particular type of document.
For example, an e-mail message or a music recording could be a schema type.
The schema consists of type information, properties, and config (like tokenization type).
Nested Class Summary
Inherited Constant Summary
Field Summary
| public static final Creator < AppSearchSchema > | CREATOR |
Public Method Summary
| boolean | |
| String | |
| List < String > | |
| List < AppSearchSchema.PropertyConfig > | |
| String | |
| int | hashCode
()
|
| String | toString
()
|
| void |
Inherited Method Summary
Fields
public static final Creator < AppSearchSchema > CREATOR
Public Methods
public boolean equals ( Object other)
public String getDescription ()
Returns a natural language description of this schema type.
Ex. The description for an Email type could be "A type of electronic message".
This information is purely to help apps consuming this type to understand its
semantic meaning. This field has no effect in AppSearch - it is just stored with the
AppSearchSchema. If AppSearchSchema.Builder.setDescription(String)
is uncalled, then this method
will return an empty string.
public List < String > getParentTypes ()
Returns the list of parent types of this schema for polymorphism.
public List < AppSearchSchema.PropertyConfig > getProperties ()
Returns the list of AppSearchSchema.PropertyConfig
s that are part of this schema.
This method creates a new list when called.
public String getSchemaType ()
Returns the name of this schema type, such as Email.

