public class Assistant extends WatsonService
defaultHeaders, JSON_MIME_PATTERN, JSON_PATCH_MIME_PATTERN, MESSAGE_CODE, MESSAGE_ERROR, skipAuthentication, VERSION
Constructor and Description |
---|
Assistant(java.lang.String versionDate)
Instantiates a new `Assistant`.
|
Assistant(java.lang.String versionDate,
IamOptions iamOptions)
Instantiates a new `Assistant` with IAM.
|
Assistant(java.lang.String versionDate,
java.lang.String username,
java.lang.String password)
Instantiates a new `Assistant` with username and password.
|
configureClient, configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getPassword, getToken, getUsername, isJsonMimeType, isJsonPatchMimeType, isTokenManagerSet, processServiceCall, setApiKey, setAuthentication, setDefaultHeaders, setDefaultHeaders, setEndPoint, setIamCredentials, setSkipAuthentication, setUsernameAndPassword, toString
public Assistant(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 Assistant(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 Assistant(java.lang.String versionDate, IamOptions iamOptions)
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.iamOptions
- the options for authenticating through IAMpublic ServiceCall<MessageResponse> message(MessageOptions messageOptions)
messageOptions
- the MessageOptions
containing the options for the callServiceCall
with a response type of MessageResponse
public 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<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<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
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<EntityMentionCollection> listMentions(ListMentionsOptions listMentionsOptions)
listMentionsOptions
- the ListMentionsOptions
containing the options for the callServiceCall
with a response type of EntityMentionCollection
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<java.lang.Void> deleteUserData(DeleteUserDataOptions deleteUserDataOptions)
deleteUserDataOptions
- the DeleteUserDataOptions
containing the options for the callServiceCall
with a response type of Void