public abstract class

MetadataField

extends Object
java.lang.Object
   ↳ com.google.android.gms.drive.metadata.MetadataField<T>
Known Direct Subclasses

Class Overview

A single metadata field that can be used as part of file queries. Instances of this class (such as the static values in SearchableField) can be used to create filters for file queries.

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

 Date oneHourAgo = new Date(System.currentTimeMillis() - (60 * 60 * 1000));
 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()) {
     System.out.println(metadata.getTitle());
 }
 

Summary

Public Methods
final int getVersionAdded()
Returns the version of GMS Core that this field was added in.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public final int getVersionAdded ()

Returns the version of GMS Core that this field was added in. See GmsVersion for a list of version numbers.

public String toString ()