Class QueryOnlyCustomerDocumentChecker


  • public class QueryOnlyCustomerDocumentChecker
    extends Object
    This class performs DocumentPb.Document validity checks for search customers that only use the query API.
    • Constructor Detail

      • QueryOnlyCustomerDocumentChecker

        public QueryOnlyCustomerDocumentChecker()
    • Method Detail

      • checkValid

        public static void checkValid​(com.google.apphosting.api.search.DocumentPb.Document pb)
        Checks whether a DocumentPb.Document has a valid set of fields for clients that only use the search query API.
        Parameters:
        pb - the DocumentPb.Document protocol buffer to check.
        Throws:
        IllegalArgumentException - if the document is invalid.