Class Info |
|---|
public class InsightIntent Intent data to be shared, including the Intent name, Intent version number, data ID, action information, and entity information. |
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) Constructs an InsightIntent instance. |
Name | Description |
|---|---|
name | Intent name. |
Method |
|---|
public String getIntentName() Obtains the Intent name. |
Type | Description |
|---|---|
String | Intent name. |
Method |
|---|
public InsightIntent setIntentName(String intentName) Sets the Intent name. |
Name | Description |
|---|---|
intentName | Intent name. |
Type | Description |
|---|---|
InsightIntent object. |
Method |
|---|
public String getIntentVersion() Obtains the Intent version number. |
Type | Description |
|---|---|
String | Intent version number. |
Method |
|---|
public InsightIntent setIntentVersion(String intentVersion) Sets the Intent version number. |
Name | Description |
|---|---|
intentVersion | Intent version number. |
Type | Description |
|---|---|
InsightIntent object. |
Method |
|---|
public String getIdentifier() Obtains the ID of the data under an Intent. |
Type | Description |
|---|---|
String | ID of the data under an Intent. |
Method |
|---|
public InsightIntent setIdentifier(String identifier) Sets the ID of the data under an Intent. |
Name | Description |
|---|---|
identifier | ID of the data under an Intent. |
Type | Description |
|---|---|
InsightIntent object. |
Method |
|---|
public JSONObject getIntentActionInfo() Obtains the Intent action information. |
Type | Description |
|---|---|
JSONObject | Intent action information. |
Method |
|---|
public InsightIntent setIntentActionInfo(JSONObject intentActionInfo) Sets the Intent action information. |
Name | Description |
|---|---|
intentActionInfo | Intent action information. |
Type | Description |
|---|---|
InsightIntent object. |
Method |
|---|
public JSONObject getIntentEntityInfo() Obtains the Intent entity information. |
Type | Description |
|---|---|
JSONObject | Intent entity information. |
Method |
|---|
public InsightIntent setIntentEntityInfo(JSONObject intentEntityInfo) Sets the Intent entity information. |
Name | Description |
|---|---|
intentEntityInfo | Intent entity information. |
Type | Description |
|---|---|
InsightIntent object. |
Method |
|---|
public JSONObject getCustomFormInfo() Obtains the custom widget information of an Intent. |
Type | Description |
|---|---|
JSONObject | Custom widget information of an Intent. |
Method |
|---|
public InsightIntent setCustomFormInfo(JSONObject customFormInfo) Sets the custom widget information of an Intent. |
Name | Description |
|---|---|
customFormInfo | Custom widget information of an Intent. |
Type | Description |
|---|---|
InsightIntent object. |
Method |
|---|
public JSONObject getIntentTargetInfo() Obtains the Intent target information. |
Type | Description |
|---|---|
JSONObject | Intent target information. |
Method |
|---|
public InsightIntent setIntentTargetInfo(JSONObject intentTargetInfo) Sets the Intent target information. |
Name | Description |
|---|---|
intentTargetInfo | Intent target information. |
Type | Description |
|---|---|
InsightIntent object. |
Method |
|---|
public InsightIntent addIntentInfo(String key, JSONObject intentInfo) Adds a specified key and corresponding information to an intent. |
Name | Description |
|---|---|
key | Key in the intent information. |
intentInfo | Value in the intent information. |
Type | Description |
|---|---|
InsightIntent object. |