SearchableField

  • SearchableField represents an attribute of a file that can be searched.

  • SearchableField provides constants to access various searchable attributes of a file, such as whether it's pinned, its last viewed date, MIME type, modified date, parent folders, starred status, title, and trashed status.

  • The class has a public constructor.

public classSearchableField extendsObject

An attribute of the file that is to be searched.

Field Summary

public static final SearchableMetadataField<Boolean> IS_PINNEDWhether the user has pinned the item.
public static final SearchableOrderedMetadataField<Date> LAST_VIEWED_BY_METhe date this resource was most recently viewed by the user.
public static final SearchableMetadataField<String> MIME_TYPEThe MIME type of the item.
public static final SearchableOrderedMetadataField<Date> MODIFIED_DATEThe date when the item was most recently modified.
public static final SearchableCollectionMetadataField<DriveId> PARENTSThe IDs of the parent folders (if any) of the item.
public static final SearchableMetadataField<Boolean> STARREDWhether the user has starred the item.
public static final SearchableMetadataField<String>TITLEThe title of the item.
public static final SearchableMetadataField<Boolean> TRASHEDWhether the item is in the trash.

Public Constructor Summary

Inherited Method Summary

From class java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
finalClass<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Fields

public static finalSearchableMetadataField<Boolean>IS_PINNED

Whether the user has pinned the item.

public static final SearchableOrderedMetadataField<Date>LAST_VIEWED_BY_ME

The date this resource was most recently viewed by the user.

public static finalSearchableMetadataField<String>MIME_TYPE

The MIME type of the item.

public static final SearchableOrderedMetadataField<Date>MODIFIED_DATE

The date when the item was most recently modified.

public static final SearchableCollectionMetadataField<DriveId>PARENTS

The IDs of the parent folders (if any) of the item.

public static finalSearchableMetadataField<Boolean>STARRED

Whether the user has starred the item.

public static finalSearchableMetadataField<String>TITLE

The title of the item.

public static finalSearchableMetadataField<Boolean>TRASHED

Whether the item is in the trash.

Public Constructors

publicSearchableField()

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-10-31 UTC.