目录

InsightIntent

Class Info

public class InsightIntent

共享的意图数据,包括意图名称、版本号、标识、Action信息、Entity信息。

Public Constructor Summary

Constructor Name

InsightIntent(String name)

构造意图实例。

Public Method Summary

Qualifier and Type

Method Name

String

getIntentName()

InsightIntent

setIntentName(String intentName)

String

getIntentVersion()

InsightIntent

setIntentVersion(String intentVersion)

String

getIdentifier()

InsightIntent

setIdentifier(String identifier)

JSONObject

getIntentActionInfo()

InsightIntent

setIntentActionInfo(JSONObject intentActionInfo)

JSONObject

getIntentEntityInfo()

InsightIntent

setIntentEntityInfo(JSONObject intentEntityInfo)

JSONObject

getCustomFormInfo()

InsightIntent

setCustomFormInfo(JSONObject customFormInfo)

JSONObject

getIntentTargetInfo()

InsightIntent

setIntentTargetInfo(JSONObject intentTargetInfo)

InsightIntent

addIntentInfo(String key, JSONObject intentInfo)

Public Constructors

[h2]InsightIntent(String name)

Constructor

public InsightIntent(String name)

构造意图实例。

Parameters

Name

Description

name

意图名称。

Public Methods

getIntentName

Method

public String getIntentName()

获取意图名称。

Returns

Type

Description

String

意图名称。

setIntentName

Method

public InsightIntent setIntentName(String intentName)

设置意图名称。

Parameters

Name

Description

intentName

意图名称。

Returns

Type

Description

InsightIntent

当前InsightIntent对象。

getIntentVersion

Method

public String getIntentVersion()

获取意图版本号。

Returns

Type

Description

String

意图版本号。

setIntentVersion

Method

public InsightIntent setIntentVersion(String intentVersion)

设置意图版本号。

Parameters

Name

Description

intentVersion

意图版本号。

Returns

Type

Description

InsightIntent

当前InsightIntent对象。

getIdentifier

Method

public String getIdentifier()

获取意图标识。

Returns

Type

Description

String

意图标识。

setIdentifier

Method

public InsightIntent setIdentifier(String identifier)

设置意图标识。

Parameters

Name

Description

identifier

意图标识。

Returns

Type

Description

InsightIntent

当前InsightIntent对象。

getIntentActionInfo

Method

public JSONObject getIntentActionInfo()

获取意图Action信息。

Returns

Type

Description

JSONObject

意图Action信息。

setIntentActionInfo

Method

public InsightIntent setIntentActionInfo(JSONObject intentActionInfo)

设置意图Action信息。

Parameters

Name

Description

intentActionInfo

需要设置的意图Action信息。

Returns

Type

Description

InsightIntent

当前InsightIntent对象。

getIntentEntityInfo

Method

public JSONObject getIntentEntityInfo()

获取意图Entity信息。

Returns

Type

Description

JSONObject

意图Entity信息。

setIntentEntityInfo

Method

public InsightIntent setIntentEntityInfo(JSONObject intentEntityInfo)

设置意图Entity信息。

Parameters

Name

Description

intentEntityInfo

需要设置的意图Entity信息。

Returns

Type

Description

InsightIntent

当前InsightIntent对象。

getCustomFormInfo

Method

public JSONObject getCustomFormInfo()

获取意图自定义卡片信息。

Returns

Type

Description

JSONObject

意图自定义卡片信息。

setCustomFormInfo

Method

public InsightIntent setCustomFormInfo(JSONObject customFormInfo)

设置意图自定义卡片信息。

Parameters

Name

Description

customFormInfo

需要设置的意图自定义卡片信息。

Returns

Type

Description

InsightIntent

当前InsightIntent对象。

getIntentTargetInfo

Method

public JSONObject getIntentTargetInfo()

获取意图目标信息。

Returns

Type

Description

JSONObject

意图目标信息。

setIntentTargetInfo

Method

public InsightIntent setIntentTargetInfo(JSONObject intentTargetInfo)

设置意图目标信息。

Parameters

Name

Description

intentTargetInfo

需要设置的意图目标信息。

Returns

Type

Description

InsightIntent

当前InsightIntent对象。

addIntentInfo

Method

public InsightIntent addIntentInfo(String key, JSONObject intentInfo)

意图内添加指定键及对应信息。

Parameters

Name

Description

key

意图信息key值。

intentInfo

意图信息value值。

Returns

Type

Description

InsightIntent

当前InsightIntent对象。