-
- All Implemented Interfaces:
public final class QueryContextThe context of a user query.
-
-
Field Summary
Fields Modifier and Type Field Description private final Localelanguageprivate final StringclientIdprivate final StringclientDeviceprivate final StringdialogIdprivate final ZonedDateTimereferenceDateprivate final ZoneIdreferenceTimezoneprivate final Booleantestprivate final BooleanregisterQueryprivate final BooleancheckExistingQueryprivate final BooleanincreaseQueryCounter
-
Method Summary
Modifier and Type Method Description final LocalegetLanguage()The language of the query. final StringgetClientId()The unique client identifier. final StringgetClientDevice()The optional client device. final StringgetDialogId()The dialog identifier. final ZonedDateTimegetReferenceDate()The reference date used to parse the query. final ZoneIdgetReferenceTimezone()The user timezone. final BooleangetTest()Is it a non regression test? final BooleangetRegisterQuery()Should the query be saved in db if not already present? final BooleangetCheckExistingQuery()If a query is already validated in the model, returns directly the result without using the NLP model if checkExistingQuery is true final BooleangetIncreaseQueryCounter()Add this query in built-in stats. -
-
Method Detail
-
getLanguage
final Locale getLanguage()
The language of the query.
-
getClientId
final String getClientId()
The unique client identifier.
-
getClientDevice
final String getClientDevice()
The optional client device.
-
getDialogId
final String getDialogId()
The dialog identifier.
-
getReferenceDate
final ZonedDateTime getReferenceDate()
The reference date used to parse the query.
-
getReferenceTimezone
final ZoneId getReferenceTimezone()
The user timezone.
-
getRegisterQuery
final Boolean getRegisterQuery()
Should the query be saved in db if not already present?
-
getCheckExistingQuery
final Boolean getCheckExistingQuery()
If a query is already validated in the model, returns directly the result without using the NLP model if checkExistingQuery is true
-
getIncreaseQueryCounter
final Boolean getIncreaseQueryCounter()
Add this query in built-in stats.
-
-
-
-