MetadataField
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eMetadataField\u003c/code\u003e is a base interface for searchable and sortable metadata fields in Google Drive.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a foundation for querying and ordering files based on various metadata attributes.\u003c/p\u003e\n"],["\u003cp\u003eInterfaces like \u003ccode\u003eSearchableCollectionMetadataField\u003c/code\u003e, \u003ccode\u003eSearchableMetadataField\u003c/code\u003e, \u003ccode\u003eSearchableOrderedMetadataField\u003c/code\u003e, and \u003ccode\u003eSortableMetadataField\u003c/code\u003e extend its capabilities.\u003c/p\u003e\n"],["\u003cp\u003eThese sub-interfaces enable filtering and sorting functionalities based on the type and characteristics of the metadata.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use \u003ccode\u003eMetadataField\u003c/code\u003e and its sub-interfaces to interact with file metadata and build custom file management functionalities within Google Drive applications.\u003c/p\u003e\n"]]],["`MetadataField` is the base interface for handling file metadata in queries. It has four main indirect subclasses: `SearchableCollectionMetadataField` manages collections of values. `SearchableMetadataField` enables filtering results. `SearchableOrderedMetadataField` handles ordered values for range queries. `SortableMetadataField` allows sorting of query results. `MetadataField` serves as the foundation for the `SearchableMetadataField` and `SortableMetadataField` interfaces, enabling actions such as filtering, sorting, and range queries on file metadata.\n"],null,["# MetadataField\n\npublic interface **MetadataField** \n\n|---|---|---|\n| Known Indirect Subclasses [SearchableCollectionMetadataField](/android/reference/com/google/android/gms/drive/metadata/SearchableCollectionMetadataField)\\\u003cT\\\u003e, [SearchableMetadataField](/android/reference/com/google/android/gms/drive/metadata/SearchableMetadataField)\\\u003cT\\\u003e, [SearchableOrderedMetadataField](/android/reference/com/google/android/gms/drive/metadata/SearchableOrderedMetadataField)\\\u003cT\\\u003e, [SortableMetadataField](/android/reference/com/google/android/gms/drive/metadata/SortableMetadataField)\\\u003cT\\\u003e |--------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------| | [SearchableCollectionMetadataField](/android/reference/com/google/android/gms/drive/metadata/SearchableCollectionMetadataField)\\\u003cT\\\u003e | Interface for metadata fields which hold a collection of values. | | [SearchableMetadataField](/android/reference/com/google/android/gms/drive/metadata/SearchableMetadataField)\\\u003cT\\\u003e | Interface for metadata fields that can be used to filter results as part of file queries. | | [SearchableOrderedMetadataField](/android/reference/com/google/android/gms/drive/metadata/SearchableOrderedMetadataField)\\\u003cT\\\u003e | Interface for metadata fields which holds an ordered value (such as a date) and which can be used for range queries. | | [SortableMetadataField](/android/reference/com/google/android/gms/drive/metadata/SortableMetadataField)\\\u003cT\\\u003e | Interface for metadata fields that can be used to sort results of the file queries. | |||\n\nBase interface for the [SearchableMetadataField](/android/reference/com/google/android/gms/drive/metadata/SearchableMetadataField)\nand [SortableMetadataField](/android/reference/com/google/android/gms/drive/metadata/SortableMetadataField)\ninterfaces."]]