public class Conversation extends WatsonService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VERSION_DATE_2016_07_11
The Constant VERSION_DATE_2016_07_11.
|
static java.lang.String |
VERSION_DATE_2016_09_20
The Constant VERSION_DATE_2016_09_20.
|
static java.lang.String |
VERSION_DATE_2017_02_03
The Constant VERSION_DATE_2017_02_03.
|
static java.lang.String |
VERSION_DATE_2017_04_21
The Constant VERSION_DATE_2017_04_21.
|
static java.lang.String |
VERSION_DATE_2017_05_26
The Constant VERSION_DATE_2017_05_26.
|
defaultHeaders, MESSAGE_CODE, MESSAGE_ERROR, skipAuthentication, VERSION
Constructor and Description |
---|
Conversation(java.lang.String versionDate)
Instantiates a new `Conversation`.
|
Conversation(java.lang.String versionDate,
java.lang.String username,
java.lang.String password)
Instantiates a new `Conversation` with username and password.
|
configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getToken, processServiceCall, setApiKey, setAuthentication, setDefaultHeaders, setDefaultHeaders, setEndPoint, setSkipAuthentication, setUsernameAndPassword, toString
public static final java.lang.String VERSION_DATE_2017_05_26
public static final java.lang.String VERSION_DATE_2017_04_21
public static final java.lang.String VERSION_DATE_2017_02_03
public static final java.lang.String VERSION_DATE_2016_09_20
public static final java.lang.String VERSION_DATE_2016_07_11
public Conversation(java.lang.String versionDate)
versionDate
- The version date (yyyy-MM-dd) of the REST API to use. Specifying this value will keep your API
calls from failing when the service introduces breaking changes.public Conversation(java.lang.String versionDate, java.lang.String username, java.lang.String password)
versionDate
- The version date (yyyy-MM-dd) of the REST API to use. Specifying this value will keep your API
calls from failing when the service introduces breaking changes.username
- the usernamepassword
- the passwordpublic ServiceCall<Workspace> createWorkspace(CreateWorkspaceOptions createWorkspaceOptions)
createWorkspaceOptions
- the CreateWorkspaceOptions
containing the options for the callServiceCall
with a response type of Workspace
public ServiceCall<Workspace> createWorkspace()
ServiceCall
with a response type of Workspace
public ServiceCall<java.lang.Void> deleteWorkspace(DeleteWorkspaceOptions deleteWorkspaceOptions)
deleteWorkspaceOptions
- the DeleteWorkspaceOptions
containing the options for the callServiceCall
with a response type of Voidpublic ServiceCall<WorkspaceExport> getWorkspace(GetWorkspaceOptions getWorkspaceOptions)
getWorkspaceOptions
- the GetWorkspaceOptions
containing the options for the callServiceCall
with a response type of WorkspaceExport
public ServiceCall<WorkspaceCollection> listWorkspaces(ListWorkspacesOptions listWorkspacesOptions)
listWorkspacesOptions
- the ListWorkspacesOptions
containing the options for the callServiceCall
with a response type of WorkspaceCollection
public ServiceCall<WorkspaceCollection> listWorkspaces()
ServiceCall
with a response type of WorkspaceCollection
public ServiceCall<Workspace> updateWorkspace(UpdateWorkspaceOptions updateWorkspaceOptions)
updateWorkspaceOptions
- the UpdateWorkspaceOptions
containing the options for the callServiceCall
with a response type of Workspace
public ServiceCall<MessageResponse> message(MessageOptions messageOptions)
messageOptions
- the MessageOptions
containing the options for the callServiceCall
with a response type of MessageResponse
public ServiceCall<Intent> createIntent(CreateIntentOptions createIntentOptions)
createIntentOptions
- the CreateIntentOptions
containing the options for the callServiceCall
with a response type of Intent
public ServiceCall<java.lang.Void> deleteIntent(DeleteIntentOptions deleteIntentOptions)
deleteIntentOptions
- the DeleteIntentOptions
containing the options for the callServiceCall
with a response type of Voidpublic ServiceCall<IntentExport> getIntent(GetIntentOptions getIntentOptions)
getIntentOptions
- the GetIntentOptions
containing the options for the callServiceCall
with a response type of IntentExport
public ServiceCall<IntentCollection> listIntents(ListIntentsOptions listIntentsOptions)
listIntentsOptions
- the ListIntentsOptions
containing the options for the callServiceCall
with a response type of IntentCollection
public ServiceCall<Intent> updateIntent(UpdateIntentOptions updateIntentOptions)
updateIntentOptions
- the UpdateIntentOptions
containing the options for the callServiceCall
with a response type of Intent
public ServiceCall<Example> createExample(CreateExampleOptions createExampleOptions)
createExampleOptions
- the CreateExampleOptions
containing the options for the callServiceCall
with a response type of Example
public ServiceCall<java.lang.Void> deleteExample(DeleteExampleOptions deleteExampleOptions)
deleteExampleOptions
- the DeleteExampleOptions
containing the options for the callServiceCall
with a response type of Voidpublic ServiceCall<Example> getExample(GetExampleOptions getExampleOptions)
getExampleOptions
- the GetExampleOptions
containing the options for the callServiceCall
with a response type of Example
public ServiceCall<ExampleCollection> listExamples(ListExamplesOptions listExamplesOptions)
listExamplesOptions
- the ListExamplesOptions
containing the options for the callServiceCall
with a response type of ExampleCollection
public ServiceCall<Example> updateExample(UpdateExampleOptions updateExampleOptions)
updateExampleOptions
- the UpdateExampleOptions
containing the options for the callServiceCall
with a response type of Example
public ServiceCall<Entity> createEntity(CreateEntityOptions createEntityOptions)
createEntityOptions
- the CreateEntityOptions
containing the options for the callServiceCall
with a response type of Entity
public ServiceCall<java.lang.Void> deleteEntity(DeleteEntityOptions deleteEntityOptions)
deleteEntityOptions
- the DeleteEntityOptions
containing the options for the callServiceCall
with a response type of Voidpublic ServiceCall<EntityExport> getEntity(GetEntityOptions getEntityOptions)
getEntityOptions
- the GetEntityOptions
containing the options for the callServiceCall
with a response type of EntityExport
public ServiceCall<EntityCollection> listEntities(ListEntitiesOptions listEntitiesOptions)
listEntitiesOptions
- the ListEntitiesOptions
containing the options for the callServiceCall
with a response type of EntityCollection
public ServiceCall<Entity> updateEntity(UpdateEntityOptions updateEntityOptions)
updateEntityOptions
- the UpdateEntityOptions
containing the options for the callServiceCall
with a response type of Entity
public ServiceCall<Value> createValue(CreateValueOptions createValueOptions)
createValueOptions
- the CreateValueOptions
containing the options for the callServiceCall
with a response type of Value
public ServiceCall<java.lang.Void> deleteValue(DeleteValueOptions deleteValueOptions)
deleteValueOptions
- the DeleteValueOptions
containing the options for the callServiceCall
with a response type of Voidpublic ServiceCall<ValueExport> getValue(GetValueOptions getValueOptions)
getValueOptions
- the GetValueOptions
containing the options for the callServiceCall
with a response type of ValueExport
public ServiceCall<ValueCollection> listValues(ListValuesOptions listValuesOptions)
listValuesOptions
- the ListValuesOptions
containing the options for the callServiceCall
with a response type of ValueCollection
public ServiceCall<Value> updateValue(UpdateValueOptions updateValueOptions)
updateValueOptions
- the UpdateValueOptions
containing the options for the callServiceCall
with a response type of Value
public ServiceCall<Synonym> createSynonym(CreateSynonymOptions createSynonymOptions)
createSynonymOptions
- the CreateSynonymOptions
containing the options for the callServiceCall
with a response type of Synonym
public ServiceCall<java.lang.Void> deleteSynonym(DeleteSynonymOptions deleteSynonymOptions)
deleteSynonymOptions
- the DeleteSynonymOptions
containing the options for the callServiceCall
with a response type of Voidpublic ServiceCall<Synonym> getSynonym(GetSynonymOptions getSynonymOptions)
getSynonymOptions
- the GetSynonymOptions
containing the options for the callServiceCall
with a response type of Synonym
public ServiceCall<SynonymCollection> listSynonyms(ListSynonymsOptions listSynonymsOptions)
listSynonymsOptions
- the ListSynonymsOptions
containing the options for the callServiceCall
with a response type of SynonymCollection
public ServiceCall<Synonym> updateSynonym(UpdateSynonymOptions updateSynonymOptions)
updateSynonymOptions
- the UpdateSynonymOptions
containing the options for the callServiceCall
with a response type of Synonym
public ServiceCall<DialogNode> createDialogNode(CreateDialogNodeOptions createDialogNodeOptions)
createDialogNodeOptions
- the CreateDialogNodeOptions
containing the options for the callServiceCall
with a response type of DialogNode
public ServiceCall<java.lang.Void> deleteDialogNode(DeleteDialogNodeOptions deleteDialogNodeOptions)
deleteDialogNodeOptions
- the DeleteDialogNodeOptions
containing the options for the callServiceCall
with a response type of Voidpublic ServiceCall<DialogNode> getDialogNode(GetDialogNodeOptions getDialogNodeOptions)
getDialogNodeOptions
- the GetDialogNodeOptions
containing the options for the callServiceCall
with a response type of DialogNode
public ServiceCall<DialogNodeCollection> listDialogNodes(ListDialogNodesOptions listDialogNodesOptions)
listDialogNodesOptions
- the ListDialogNodesOptions
containing the options for the callServiceCall
with a response type of DialogNodeCollection
public ServiceCall<DialogNode> updateDialogNode(UpdateDialogNodeOptions updateDialogNodeOptions)
updateDialogNodeOptions
- the UpdateDialogNodeOptions
containing the options for the callServiceCall
with a response type of DialogNode
public ServiceCall<LogCollection> listAllLogs(ListAllLogsOptions listAllLogsOptions)
listAllLogsOptions
- the ListAllLogsOptions
containing the options for the callServiceCall
with a response type of LogCollection
public ServiceCall<LogCollection> listLogs(ListLogsOptions listLogsOptions)
listLogsOptions
- the ListLogsOptions
containing the options for the callServiceCall
with a response type of LogCollection
public ServiceCall<Counterexample> createCounterexample(CreateCounterexampleOptions createCounterexampleOptions)
createCounterexampleOptions
- the CreateCounterexampleOptions
containing the options for the callServiceCall
with a response type of Counterexample
public ServiceCall<java.lang.Void> deleteCounterexample(DeleteCounterexampleOptions deleteCounterexampleOptions)
deleteCounterexampleOptions
- the DeleteCounterexampleOptions
containing the options for the callServiceCall
with a response type of Voidpublic ServiceCall<Counterexample> getCounterexample(GetCounterexampleOptions getCounterexampleOptions)
getCounterexampleOptions
- the GetCounterexampleOptions
containing the options for the callServiceCall
with a response type of Counterexample
public ServiceCall<CounterexampleCollection> listCounterexamples(ListCounterexamplesOptions listCounterexamplesOptions)
listCounterexamplesOptions
- the ListCounterexamplesOptions
containing the options for the callServiceCall
with a response type of CounterexampleCollection
public ServiceCall<Counterexample> updateCounterexample(UpdateCounterexampleOptions updateCounterexampleOptions)
updateCounterexampleOptions
- the UpdateCounterexampleOptions
containing the options for the callServiceCall
with a response type of Counterexample