Summary: Ctors | Methods | Inherited Methods | [Expand All]
public static class

# Query.Builder

extends Object

java.lang.Object
↳ | com.google.android.gms.drive.query.Query.Builder

## Class Overview

A builder for creating queries.

## Summary

Public Constructors
| Query.Builder()
| Query.Builder(Query query) Creates a new builder with initial values from an existing query.

Public Methods
Query.Builder | addFilter(Filter filter) Adds a search filter to the query.
Query | build()
Query.Builder | setPageToken(String token) This method is deprecated. Paging is not supported.
Query.Builder | setSortOrder(SortOrder sortOrder) Sets the `SortOrder` to be used to sort the query results.

[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(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Public Constructors

#### public Query.Builder ()

#### public Query.Builder (Query query)

Creates a new builder with initial values from an existing query.

## Public Methods

#### public Query.Builder addFilter (Filter filter)

Adds a search filter to the query. If more than one filter is added, they are combined with a logical AND. Skips MatchAllFilter.

##### See Also

- `Filters`

#### public Query build ()

#### public Query.Builder setPageToken (String token)

This method is deprecated.
Paging is not supported.

Set the page token to retrieve the next page of results.

#### public Query.Builder setSortOrder (SortOrder sortOrder)

Sets the `SortOrder` to be used to sort the query results. Use `SortOrder.Builder` to build the sort order as required. Multiple calls to this method resets the sort order set in previous calls.

##### Parameters

sortOrder | the order to be used to sort the query results