# Class QueryOnlyCustomerDocumentChecker (5.0.3)

    public class QueryOnlyCustomerDocumentChecker

This class performs DocumentPb.Document validity checks for search customers that only
use the query API.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> QueryOnlyCustomerDocumentChecker

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Methods

### checkValid(DocumentPb.Document pb)

    public static void checkValid(DocumentPb.Document pb)

Checks whether a DocumentPb.Document has a valid set of fields for clients that only
use the search query API.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `pb` | `com.google.apphosting.api.search.DocumentPb.Document` the DocumentPb.Document protocol buffer to check. |

## Constructors

### QueryOnlyCustomerDocumentChecker()

    public QueryOnlyCustomerDocumentChecker()