Class Info |
|---|
public class InsightIntent 共享的意图数据,包括意图名称、版本号、标识、Action信息、Entity信息。 |
Qualifier and Type | Method Name |
|---|---|
String | |
setIntentName(String intentName) | |
String | |
setIntentVersion(String intentVersion) | |
String | |
setIdentifier(String identifier) | |
JSONObject | |
setIntentActionInfo(JSONObject intentActionInfo) | |
JSONObject | |
setIntentEntityInfo(JSONObject intentEntityInfo) | |
JSONObject | |
setCustomFormInfo(JSONObject customFormInfo) | |
JSONObject | |
setIntentTargetInfo(JSONObject intentTargetInfo) | |
addIntentInfo(String key, JSONObject intentInfo) |
Constructor |
|---|
public InsightIntent(String name) 构造意图实例。 |
Name | Description |
|---|---|
name | 意图名称。 |
Method |
|---|
public String getIntentName() 获取意图名称。 |
Type | Description |
|---|---|
String | 意图名称。 |
Method |
|---|
public InsightIntent setIntentName(String intentName) 设置意图名称。 |
Name | Description |
|---|---|
intentName | 意图名称。 |
Type | Description |
|---|---|
当前InsightIntent对象。 |
Method |
|---|
public String getIntentVersion() 获取意图版本号。 |
Type | Description |
|---|---|
String | 意图版本号。 |
Method |
|---|
public InsightIntent setIntentVersion(String intentVersion) 设置意图版本号。 |
Name | Description |
|---|---|
intentVersion | 意图版本号。 |
Type | Description |
|---|---|
当前InsightIntent对象。 |
Method |
|---|
public String getIdentifier() 获取意图标识。 |
Type | Description |
|---|---|
String | 意图标识。 |
Method |
|---|
public InsightIntent setIdentifier(String identifier) 设置意图标识。 |
Name | Description |
|---|---|
identifier | 意图标识。 |
Type | Description |
|---|---|
当前InsightIntent对象。 |
Method |
|---|
public JSONObject getIntentActionInfo() 获取意图Action信息。 |
Type | Description |
|---|---|
JSONObject | 意图Action信息。 |
Method |
|---|
public InsightIntent setIntentActionInfo(JSONObject intentActionInfo) 设置意图Action信息。 |
Name | Description |
|---|---|
intentActionInfo | 需要设置的意图Action信息。 |
Type | Description |
|---|---|
当前InsightIntent对象。 |
Method |
|---|
public JSONObject getIntentEntityInfo() 获取意图Entity信息。 |
Type | Description |
|---|---|
JSONObject | 意图Entity信息。 |
Method |
|---|
public InsightIntent setIntentEntityInfo(JSONObject intentEntityInfo) 设置意图Entity信息。 |
Name | Description |
|---|---|
intentEntityInfo | 需要设置的意图Entity信息。 |
Type | Description |
|---|---|
当前InsightIntent对象。 |
Method |
|---|
public JSONObject getCustomFormInfo() 获取意图自定义卡片信息。 |
Type | Description |
|---|---|
JSONObject | 意图自定义卡片信息。 |
Method |
|---|
public InsightIntent setCustomFormInfo(JSONObject customFormInfo) 设置意图自定义卡片信息。 |
Name | Description |
|---|---|
customFormInfo | 需要设置的意图自定义卡片信息。 |
Type | Description |
|---|---|
当前InsightIntent对象。 |
Method |
|---|
public JSONObject getIntentTargetInfo() 获取意图目标信息。 |
Type | Description |
|---|---|
JSONObject | 意图目标信息。 |
Method |
|---|
public InsightIntent setIntentTargetInfo(JSONObject intentTargetInfo) 设置意图目标信息。 |
Name | Description |
|---|---|
intentTargetInfo | 需要设置的意图目标信息。 |
Type | Description |
|---|---|
当前InsightIntent对象。 |
Method |
|---|
public InsightIntent addIntentInfo(String key, JSONObject intentInfo) 意图内添加指定键及对应信息。 |
Name | Description |
|---|---|
key | 意图信息key值。 |
intentInfo | 意图信息value值。 |
Type | Description |
|---|---|
当前InsightIntent对象。 |