public class MessageContextGlobalSystem
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
MessageContextGlobalSystem.Builder
Builder.
|
static interface |
MessageContextGlobalSystem.Locale
The language code for localization in the user input.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
locale |
protected java.lang.String |
referenceTime |
protected java.lang.String |
timezone |
protected java.lang.Long |
turnCount |
protected java.lang.String |
userId |
Modifier | Constructor and Description |
---|---|
protected |
MessageContextGlobalSystem(MessageContextGlobalSystem.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
locale()
Gets the locale.
|
MessageContextGlobalSystem.Builder |
newBuilder()
New builder.
|
java.lang.String |
referenceTime()
Gets the referenceTime.
|
java.lang.String |
timezone()
Gets the timezone.
|
java.lang.Long |
turnCount()
Gets the turnCount.
|
java.lang.String |
userId()
Gets the userId.
|
protected java.lang.String timezone
@SerializedName(value="user_id") protected java.lang.String userId
@SerializedName(value="turn_count") protected java.lang.Long turnCount
protected java.lang.String locale
@SerializedName(value="reference_time") protected java.lang.String referenceTime
protected MessageContextGlobalSystem(MessageContextGlobalSystem.Builder builder)
public MessageContextGlobalSystem.Builder newBuilder()
public java.lang.String timezone()
The user time zone. The assistant uses the time zone to correctly resolve relative time references.
public java.lang.String userId()
A string value that identifies the user who is interacting with the assistant. The client must provide a unique identifier for each individual end user who accesses the application. For Plus and Premium plans, this user ID is used to identify unique users for billing purposes. This string cannot contain carriage return, newline, or tab characters.
public java.lang.Long turnCount()
A counter that is automatically incremented with each turn of the conversation. A value of 1 indicates that this is the the first turn of a new conversation, which can affect the behavior of some skills (for example, triggering the start node of a dialog).
public java.lang.String locale()
The language code for localization in the user input. The specified locale overrides the default for the assistant, and is used for interpreting entity values in user input such as date values. For example, `04/03/2018` might be interpreted either as April 3 or March 4, depending on the locale.
This property is included only if the new system entities are enabled for the skill.
public java.lang.String referenceTime()
The base time for interpreting any relative time mentions in the user input. The specified time overrides the current server time, and is used to calculate times mentioned in relative terms such as `now` or `tomorrow`. This can be useful for simulating past or future times for testing purposes, or when analyzing documents such as news articles.
This value must be a UTC time value formatted according to ISO 8601 (for example, `2019-06-26T12:00:00Z` for noon on 26 June 2019.
This property is included only if the new system entities are enabled for the skill.