public static class QueryOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
QueryOptions.Builder()
Instantiates a new builder.
|
QueryOptions.Builder(java.lang.String projectId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
QueryOptions.Builder |
addCollectionIds(java.lang.String collectionIds)
Adds an collectionIds to collectionIds.
|
QueryOptions.Builder |
addReturnField(java.lang.String returnField)
Adds an returnField to xReturn.
|
QueryOptions.Builder |
aggregation(java.lang.String aggregation)
Set the aggregation.
|
QueryOptions |
build()
Builds a QueryOptions.
|
QueryOptions.Builder |
collectionIds(java.util.List<java.lang.String> collectionIds)
Set the collectionIds.
|
QueryOptions.Builder |
count(long count)
Set the count.
|
QueryOptions.Builder |
filter(java.lang.String filter)
Set the filter.
|
QueryOptions.Builder |
highlight(java.lang.Boolean highlight)
Set the highlight.
|
QueryOptions.Builder |
naturalLanguageQuery(java.lang.String naturalLanguageQuery)
Set the naturalLanguageQuery.
|
QueryOptions.Builder |
offset(long offset)
Set the offset.
|
QueryOptions.Builder |
passages(QueryLargePassages passages)
Set the passages.
|
QueryOptions.Builder |
projectId(java.lang.String projectId)
Set the projectId.
|
QueryOptions.Builder |
query(java.lang.String query)
Set the query.
|
QueryOptions.Builder |
sort(java.lang.String sort)
Set the sort.
|
QueryOptions.Builder |
spellingSuggestions(java.lang.Boolean spellingSuggestions)
Set the spellingSuggestions.
|
QueryOptions.Builder |
suggestedRefinements(QueryLargeSuggestedRefinements suggestedRefinements)
Set the suggestedRefinements.
|
QueryOptions.Builder |
tableResults(QueryLargeTableResults tableResults)
Set the tableResults.
|
QueryOptions.Builder |
xReturn(java.util.List<java.lang.String> xReturn)
Set the xReturn.
|
public QueryOptions.Builder()
public QueryOptions.Builder(java.lang.String projectId)
projectId
- the projectIdpublic QueryOptions build()
public QueryOptions.Builder addCollectionIds(java.lang.String collectionIds)
collectionIds
- the new collectionIdspublic QueryOptions.Builder addReturnField(java.lang.String returnField)
returnField
- the new returnFieldpublic QueryOptions.Builder projectId(java.lang.String projectId)
projectId
- the projectIdpublic QueryOptions.Builder collectionIds(java.util.List<java.lang.String> collectionIds)
collectionIds
- the collectionIdspublic QueryOptions.Builder filter(java.lang.String filter)
filter
- the filterpublic QueryOptions.Builder query(java.lang.String query)
query
- the querypublic QueryOptions.Builder naturalLanguageQuery(java.lang.String naturalLanguageQuery)
naturalLanguageQuery
- the naturalLanguageQuerypublic QueryOptions.Builder aggregation(java.lang.String aggregation)
aggregation
- the aggregationpublic QueryOptions.Builder count(long count)
count
- the countpublic QueryOptions.Builder xReturn(java.util.List<java.lang.String> xReturn)
xReturn
- the xReturnpublic QueryOptions.Builder offset(long offset)
offset
- the offsetpublic QueryOptions.Builder sort(java.lang.String sort)
sort
- the sortpublic QueryOptions.Builder highlight(java.lang.Boolean highlight)
highlight
- the highlightpublic QueryOptions.Builder spellingSuggestions(java.lang.Boolean spellingSuggestions)
spellingSuggestions
- the spellingSuggestionspublic QueryOptions.Builder tableResults(QueryLargeTableResults tableResults)
tableResults
- the tableResultspublic QueryOptions.Builder suggestedRefinements(QueryLargeSuggestedRefinements suggestedRefinements)
suggestedRefinements
- the suggestedRefinementspublic QueryOptions.Builder passages(QueryLargePassages passages)
passages
- the passages