| Modifier and Type | Class and Description |
|---|---|
static class |
AIConfiguration.SupportedLanguages
Currently supported languages
|
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CURRENT_PROTOCOL_VERSION |
protected static String |
QUESTION_ENDPOINT |
protected static String |
USER_ENTITIES_ENDPOINT |
| Constructor and Description |
|---|
AIConfiguration(String clientAccessToken)
Create configuration with given client access token.
|
AIConfiguration(String clientAccessToken,
AIConfiguration.SupportedLanguages language)
Create configuration with given client access token and language.
|
| Modifier and Type | Method and Description |
|---|---|
AIConfiguration |
clone()
Clone the configuration
|
String |
getApiAiLanguage()
Get api.ai agent language
|
String |
getApiKey()
Get client access key
|
String |
getLanguage()
Get client agent language
|
String |
getProtocolVersion()
Check list of supported protocol versions on the api.ai website.
|
Proxy |
getProxy()
Get connection proxy information.
|
boolean |
isWriteSoundLog()
This flag is for testing purposes ONLY.
|
void |
setProtocolVersion(String protocolVersion)
Set protocol version for API queries.
|
void |
setProxy(Proxy proxy)
Set connection proxy information.
|
void |
setServiceUrl(String serviceUrl)
Set API service url.
|
void |
setWriteSoundLog(boolean writeSoundLog)
This flag is for testing purposes ONLY.
|
protected static final String CURRENT_PROTOCOL_VERSION
protected static final String QUESTION_ENDPOINT
protected static final String USER_ENTITIES_ENDPOINT
public AIConfiguration(String clientAccessToken, AIConfiguration.SupportedLanguages language)
clientAccessToken - An agent unique key. Cannot be nulllanguage - An agent languagepublic AIConfiguration(String clientAccessToken)
clientAccessToken - An agent unique key. Cannot be nullpublic String getApiKey()
public String getLanguage()
nullpublic String getApiAiLanguage()
nullpublic void setWriteSoundLog(boolean writeSoundLog)
writeSoundLog - value, indicating recorded sound will be saved in storage (if possible)public boolean isWriteSoundLog()
public String getProtocolVersion()
public void setProtocolVersion(String protocolVersion)
protocolVersion - Protocol version in YYYYMMDD format or empty string for the oldest version.
Check list of supported protocol versions on the api.ai website.public void setServiceUrl(String serviceUrl)
public Proxy getProxy()
null then direct connection would be used.public void setProxy(Proxy proxy)
proxy - If null then direct connection would be used.public AIConfiguration clone()
Copyright © 2016. All rights reserved.