Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

close

- - Get Started
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
    - Get the SDK
  - Google Services
- - Google Play
  - Publishing
  - Promoting
  - App Quality
  - Spotlight
  - Open Distribution

## Results

Loading...
Summary: Methods | Inherited Methods | [Expand All]
public abstract class

# MetadataField

extends Object

java.lang.Object
↳ | com.google.android.gms.drive.metadata.MetadataField<T>

Known Direct Subclasses
CollectionMetadataField<T>, OrderedMetadataField<T extends Comparable<T>>, StringMetadataField

CollectionMetadataField<T> | A metadata field which holds a collection of values.
OrderedMetadataField<T extends Comparable<T>> | A metadata field which holds an ordered value (such as a date) which can be used for range queries.
StringMetadataField | A metadata field which holds a string value of values.

## 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
String | toString()

[Expand] Inherited Methods

From class java.lang.Object

Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)

## Public Methods

#### public String toString ()