Class QueryContext
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.search.customsearch.models.QueryContext
-
public class QueryContext extends Object
Defines the query context that Bing used for the request.
-
-
Constructor Summary
Constructors Constructor Description QueryContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanadultIntent()Get the adultIntent value.StringalterationOverrideQuery()Get the alterationOverrideQuery value.StringalteredQuery()Get the alteredQuery value.StringoriginalQuery()Get the originalQuery value.QueryContextwithOriginalQuery(String originalQuery)Set the originalQuery value.
-
-
-
Method Detail
-
originalQuery
public String originalQuery()
Get the originalQuery value.- Returns:
- the originalQuery value
-
withOriginalQuery
public QueryContext withOriginalQuery(String originalQuery)
Set the originalQuery value.- Parameters:
originalQuery- the originalQuery value to set- Returns:
- the QueryContext object itself.
-
alteredQuery
public String alteredQuery()
Get the alteredQuery value.- Returns:
- the alteredQuery value
-
alterationOverrideQuery
public String alterationOverrideQuery()
Get the alterationOverrideQuery value.- Returns:
- the alterationOverrideQuery value
-
adultIntent
public Boolean adultIntent()
Get the adultIntent value.- Returns:
- the adultIntent value
-
-