public class QueryOnlyCustomerDocumentChecker
extends java.lang.Object
DocumentPb.Document
validity checks for search customers that only
use the query API.Constructor and Description |
---|
QueryOnlyCustomerDocumentChecker() |
Modifier and Type | Method and Description |
---|---|
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. |
public static void checkValid(DocumentPb.Document pb)
DocumentPb.Document
has a valid set of fields for clients that only
use the search query API.pb
- the DocumentPb.Document
protocol buffer to check.java.lang.IllegalArgumentException
- if the document is invalid.