public class Context
extends com.ibm.cloud.sdk.core.service.model.DynamicModel<java.lang.Object>
Modifier and Type | Class and Description |
---|---|
static class |
Context.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
conversationId |
protected MessageContextMetadata |
metadata |
protected java.util.Map<java.lang.String,java.lang.Object> |
system |
Modifier | Constructor and Description |
---|---|
|
Context() |
protected |
Context(Context.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConversationId()
Gets the conversationId.
|
MessageContextMetadata |
getMetadata()
Gets the metadata.
|
java.util.Map<java.lang.String,java.lang.Object> |
getSystem()
Gets the system.
|
Context.Builder |
newBuilder()
New builder.
|
void |
setConversationId(java.lang.String conversationId)
Sets the conversationId.
|
void |
setMetadata(MessageContextMetadata metadata)
Sets the metadata.
|
void |
setSystem(java.util.Map<java.lang.String,java.lang.Object> system)
Sets the system.
|
@SerializedName(value="conversation_id") protected java.lang.String conversationId
@SerializedName(value="system") protected java.util.Map<java.lang.String,java.lang.Object> system
@SerializedName(value="metadata") protected MessageContextMetadata metadata
public Context()
protected Context(Context.Builder builder)
public Context.Builder newBuilder()
public java.lang.String getConversationId()
The unique identifier of the conversation.
public void setConversationId(java.lang.String conversationId)
conversationId
- the new conversationIdpublic java.util.Map<java.lang.String,java.lang.Object> getSystem()
For internal use only.
public void setSystem(java.util.Map<java.lang.String,java.lang.Object> system)
system
- the new systempublic MessageContextMetadata getMetadata()
Metadata related to the message.
public void setMetadata(MessageContextMetadata metadata)
metadata
- the new metadata