public class QueryContext
The context of a user query.
public QueryContext(@NotNull
java.util.Locale language,
@NotNull
java.lang.String clientId,
@Nullable
java.lang.String clientDevice,
@NotNull
java.lang.String dialogId,
@NotNull
java.time.ZonedDateTime referenceDate,
@NotNull
java.time.ZoneId referenceTimezone,
boolean test,
boolean registerQuery,
boolean checkExistingQuery,
boolean increaseQueryCounter)
The context of a user query.
language - The language of the query.clientId - The unique client identifier.clientDevice - The optional client device.dialogId - The dialog identifier.referenceDate - The reference date used to parse the query.referenceTimezone - The user timezone.test - Is it a non regression test?registerQuery - Should the query be saved in db if not already present?checkExistingQuery - If a query is already validated in the model,returns directly the result without using the NLP model ifcheckExistingQuery is trueincreaseQueryCounter - Add this query in built-in stats.@NotNull public java.util.Locale getLanguage()
The language of the query.
@NotNull public java.lang.String getClientId()
The unique client identifier.
@Nullable public java.lang.String getClientDevice()
The optional client device.
@NotNull public java.lang.String getDialogId()
The dialog identifier.
@NotNull public java.time.ZonedDateTime getReferenceDate()
The reference date used to parse the query.
@NotNull public java.time.ZoneId getReferenceTimezone()
The user timezone.
public boolean getTest()
Is it a non regression test?
public boolean getRegisterQuery()
Should the query be saved in db if not already present?
public boolean getCheckExistingQuery()
If a query is already validated in the model,
returns directly the result without using the NLP model ifcheckExistingQuery is true
public boolean getIncreaseQueryCounter()
Add this query in built-in stats.
@NotNull public java.util.Locale component1()
The language of the query.
@NotNull public java.lang.String component2()
The unique client identifier.
@Nullable public java.lang.String component3()
The optional client device.
@NotNull public java.lang.String component4()
The dialog identifier.
@NotNull public java.time.ZonedDateTime component5()
The reference date used to parse the query.
@NotNull public java.time.ZoneId component6()
The user timezone.
public boolean component7()
Is it a non regression test?
public boolean component8()
Should the query be saved in db if not already present?
public boolean component9()
If a query is already validated in the model,
returns directly the result without using the NLP model ifcheckExistingQuery is true
public boolean component10()
Add this query in built-in stats.
@NotNull public QueryContext copy(@NotNull java.util.Locale language, @NotNull java.lang.String clientId, @Nullable java.lang.String clientDevice, @NotNull java.lang.String dialogId, @NotNull java.time.ZonedDateTime referenceDate, @NotNull java.time.ZoneId referenceTimezone, boolean test, boolean registerQuery, boolean checkExistingQuery, boolean increaseQueryCounter)
The context of a user query.
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)