-
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 Localecomponent1()final Stringcomponent2()final Stringcomponent3()final Stringcomponent4()final ZonedDateTimecomponent5()final ZoneIdcomponent6()final Booleancomponent7()final Booleancomponent8()final Booleancomponent9()final Booleancomponent10()final QueryContextcopy(Locale language, String clientId, String clientDevice, String dialogId, ZonedDateTime referenceDate, ZoneId referenceTimezone, Boolean test, Boolean registerQuery, Boolean checkExistingQuery, Boolean increaseQueryCounter)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
-
component1
final Locale component1()
-
component2
final String component2()
-
component3
final String component3()
-
component4
final String component4()
-
component5
final ZonedDateTime component5()
-
component6
final ZoneId component6()
-
component7
final Boolean component7()
-
component8
final Boolean component8()
-
component9
final Boolean component9()
-
component10
final Boolean component10()
-
copy
final QueryContext copy(Locale language, String clientId, String clientDevice, String dialogId, ZonedDateTime referenceDate, ZoneId referenceTimezone, Boolean test, Boolean registerQuery, Boolean checkExistingQuery, Boolean increaseQueryCounter)
-
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.
-
-
-
-