Stay organized with collections Save and categorize content based on your preferences.
public interface SearchableMetadataField implements MetadataField<T>
Known Indirect Subclasses

Interface for metadata fields that can be used to filter results as part of file queries. Implementation of this interface (such as the static values in SearchableField) can be used to create filters for file or folder queries.

For example, the following code will find all files that are starred and have the MIME type type "text/plain":

 Filter starredFilter = Filters.eq(SearchableField.STARRED, true);
 Filter mimeTypeFilter = Filters.eq(SearchableField.MIME_TYPE, "text/plain");
 Query query = new Query.Builder().addFilters(starredFilter, mimeTypeFilter).build();
 for (Metadata metadata : Drive.DriveApi.query(apiClient, query).await().getMetadataBuffer()) {