Class QueryNoticesOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.QueryNoticesOptions.Builder
- Enclosing class:
- QueryNoticesOptions
public static class QueryNoticesOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
environmentId
- the environmentIdcollectionId
- the collectionId
-
-
Method Details
-
build
Builds a QueryNoticesOptions.- Returns:
- the new QueryNoticesOptions instance
-
addReturnField
Adds an returnField to xReturn.- Parameters:
returnField
- the new returnField- Returns:
- the QueryNoticesOptions builder
-
addSort
Adds an sort to sort.- Parameters:
sort
- the new sort- Returns:
- the QueryNoticesOptions builder
-
addPassagesFields
Adds an passagesFields to passagesFields.- Parameters:
passagesFields
- the new passagesFields- Returns:
- the QueryNoticesOptions builder
-
addSimilarDocumentIds
Adds an similarDocumentIds to similarDocumentIds.- Parameters:
similarDocumentIds
- the new similarDocumentIds- Returns:
- the QueryNoticesOptions builder
-
addSimilarFields
Adds an similarFields to similarFields.- Parameters:
similarFields
- the new similarFields- Returns:
- the QueryNoticesOptions builder
-
environmentId
Set the environmentId.- Parameters:
environmentId
- the environmentId- Returns:
- the QueryNoticesOptions builder
-
collectionId
Set the collectionId.- Parameters:
collectionId
- the collectionId- Returns:
- the QueryNoticesOptions builder
-
filter
Set the filter.- Parameters:
filter
- the filter- Returns:
- the QueryNoticesOptions builder
-
query
Set the query.- Parameters:
query
- the query- Returns:
- the QueryNoticesOptions builder
-
naturalLanguageQuery
Set the naturalLanguageQuery.- Parameters:
naturalLanguageQuery
- the naturalLanguageQuery- Returns:
- the QueryNoticesOptions builder
-
passages
Set the passages.- Parameters:
passages
- the passages- Returns:
- the QueryNoticesOptions builder
-
aggregation
Set the aggregation.- Parameters:
aggregation
- the aggregation- Returns:
- the QueryNoticesOptions builder
-
count
Set the count.- Parameters:
count
- the count- Returns:
- the QueryNoticesOptions builder
-
xReturn
Set the xReturn. Existing xReturn will be replaced.- Parameters:
xReturn
- the xReturn- Returns:
- the QueryNoticesOptions builder
-
offset
Set the offset.- Parameters:
offset
- the offset- Returns:
- the QueryNoticesOptions builder
-
sort
Set the sort. Existing sort will be replaced.- Parameters:
sort
- the sort- Returns:
- the QueryNoticesOptions builder
-
highlight
Set the highlight.- Parameters:
highlight
- the highlight- Returns:
- the QueryNoticesOptions builder
-
passagesFields
Set the passagesFields. Existing passagesFields will be replaced.- Parameters:
passagesFields
- the passagesFields- Returns:
- the QueryNoticesOptions builder
-
passagesCount
Set the passagesCount.- Parameters:
passagesCount
- the passagesCount- Returns:
- the QueryNoticesOptions builder
-
passagesCharacters
Set the passagesCharacters.- Parameters:
passagesCharacters
- the passagesCharacters- Returns:
- the QueryNoticesOptions builder
-
deduplicateField
Set the deduplicateField.- Parameters:
deduplicateField
- the deduplicateField- Returns:
- the QueryNoticesOptions builder
-
similar
Set the similar.- Parameters:
similar
- the similar- Returns:
- the QueryNoticesOptions builder
-
similarDocumentIds
Set the similarDocumentIds. Existing similarDocumentIds will be replaced.- Parameters:
similarDocumentIds
- the similarDocumentIds- Returns:
- the QueryNoticesOptions builder
-
similarFields
Set the similarFields. Existing similarFields will be replaced.- Parameters:
similarFields
- the similarFields- Returns:
- the QueryNoticesOptions builder
-