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 classContext.BuilderBuilder. -
Constructor Summary
Constructors Constructor Description Context() -
Method Summary
Modifier and Type Method Description StringgetConversationId()Gets the conversationId.MessageContextMetadatagetMetadata()Gets the metadata.Map<String,Object>getSystem()Gets the system.Context.BuildernewBuilder()New builder.voidsetConversationId(String conversationId)Sets the conversationId.voidsetMetadata(MessageContextMetadata metadata)Sets the metadata.voidsetSystem(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
-