Class Context
java.lang.Object
com.ibm.cloud.sdk.core.service.model.DynamicModel<Object>
com.ibm.watson.assistant.v1.model.Context
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Context extends com.ibm.cloud.sdk.core.service.model.DynamicModel<Object>
State information for the conversation. To maintain state, include the context from the previous
response.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Context.Builder
Builder. -
Constructor Summary
Constructors Constructor Description Context()
-
Method Summary
Modifier and Type Method Description String
getConversationId()
Gets the conversationId.MessageContextMetadata
getMetadata()
Gets the metadata.Map<String,Object>
getSystem()
Gets the system.Context.Builder
newBuilder()
New builder.void
setConversationId(String conversationId)
Sets the conversationId.void
setMetadata(MessageContextMetadata metadata)
Sets the metadata.void
setSystem(Map<String,Object> system)
Sets the system.Methods inherited from class com.ibm.cloud.sdk.core.service.model.DynamicModel
equals, get, getAdditionalPropertyTypeToken, getProperties, getPropertyNames, hashCode, put, removeProperties, removeProperty, setProperties, toString
-
Constructor Details
-
Context
public Context()
-
-
Method Details
-
newBuilder
New builder.- Returns:
- a Context builder
-
getConversationId
Gets the conversationId.The unique identifier of the conversation.
- Returns:
- the conversationId
-
setConversationId
Sets the conversationId.- Parameters:
conversationId
- the new conversationId
-
getSystem
Gets the system.For internal use only.
- Returns:
- the system
-
setSystem
Sets the system.- Parameters:
system
- the new system
-
getMetadata
Gets the metadata.Metadata related to the message.
- Returns:
- the metadata
-
setMetadata
Sets the metadata.- Parameters:
metadata
- the new metadata
-