Class Assistant
public class Assistant
extends com.ibm.cloud.sdk.core.service.BaseService
The Assistant v1 API provides authoring methods your application can use to create or update a workspace.
API Version: 1.0 See: https://cloud.ibm.com/docs/assistant
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_SERVICE_NAMEstatic StringDEFAULT_SERVICE_URLFields inherited from class com.ibm.cloud.sdk.core.service.BaseService
PROPNAME_DISABLE_SSL, PROPNAME_ENABLE_GZIP, PROPNAME_URL -
Constructor Summary
Constructors Constructor Description Assistant(String version)Constructs an instance of the `Assistant` client.Assistant(String version, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `Assistant` client.Assistant(String version, String serviceName)Constructs an instance of the `Assistant` client.Assistant(String version, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `Assistant` client. -
Method Summary
Modifier and Type Method Description com.ibm.cloud.sdk.core.http.ServiceCall<BulkClassifyResponse>bulkClassify(BulkClassifyOptions bulkClassifyOptions)Identify intents and entities in multiple user utterances.com.ibm.cloud.sdk.core.http.ServiceCall<Counterexample>createCounterexample(CreateCounterexampleOptions createCounterexampleOptions)Create counterexample.com.ibm.cloud.sdk.core.http.ServiceCall<DialogNode>createDialogNode(CreateDialogNodeOptions createDialogNodeOptions)Create dialog node.com.ibm.cloud.sdk.core.http.ServiceCall<Entity>createEntity(CreateEntityOptions createEntityOptions)Create entity.com.ibm.cloud.sdk.core.http.ServiceCall<Example>createExample(CreateExampleOptions createExampleOptions)Create user input example.com.ibm.cloud.sdk.core.http.ServiceCall<Intent>createIntent(CreateIntentOptions createIntentOptions)Create intent.com.ibm.cloud.sdk.core.http.ServiceCall<Synonym>createSynonym(CreateSynonymOptions createSynonymOptions)Create entity value synonym.com.ibm.cloud.sdk.core.http.ServiceCall<Value>createValue(CreateValueOptions createValueOptions)Create entity value.com.ibm.cloud.sdk.core.http.ServiceCall<Workspace>createWorkspace()Create workspace.com.ibm.cloud.sdk.core.http.ServiceCall<Workspace>createWorkspace(CreateWorkspaceOptions createWorkspaceOptions)Create workspace.com.ibm.cloud.sdk.core.http.ServiceCall<Void>deleteCounterexample(DeleteCounterexampleOptions deleteCounterexampleOptions)Delete counterexample.com.ibm.cloud.sdk.core.http.ServiceCall<Void>deleteDialogNode(DeleteDialogNodeOptions deleteDialogNodeOptions)Delete dialog node.com.ibm.cloud.sdk.core.http.ServiceCall<Void>deleteEntity(DeleteEntityOptions deleteEntityOptions)Delete entity.com.ibm.cloud.sdk.core.http.ServiceCall<Void>deleteExample(DeleteExampleOptions deleteExampleOptions)Delete user input example.com.ibm.cloud.sdk.core.http.ServiceCall<Void>deleteIntent(DeleteIntentOptions deleteIntentOptions)Delete intent.com.ibm.cloud.sdk.core.http.ServiceCall<Void>deleteSynonym(DeleteSynonymOptions deleteSynonymOptions)Delete entity value synonym.com.ibm.cloud.sdk.core.http.ServiceCall<Void>deleteUserData(DeleteUserDataOptions deleteUserDataOptions)Delete labeled data.com.ibm.cloud.sdk.core.http.ServiceCall<Void>deleteValue(DeleteValueOptions deleteValueOptions)Delete entity value.com.ibm.cloud.sdk.core.http.ServiceCall<Void>deleteWorkspace(DeleteWorkspaceOptions deleteWorkspaceOptions)Delete workspace.com.ibm.cloud.sdk.core.http.ServiceCall<Counterexample>getCounterexample(GetCounterexampleOptions getCounterexampleOptions)Get counterexample.com.ibm.cloud.sdk.core.http.ServiceCall<DialogNode>getDialogNode(GetDialogNodeOptions getDialogNodeOptions)Get dialog node.com.ibm.cloud.sdk.core.http.ServiceCall<Entity>getEntity(GetEntityOptions getEntityOptions)Get entity.com.ibm.cloud.sdk.core.http.ServiceCall<Example>getExample(GetExampleOptions getExampleOptions)Get user input example.com.ibm.cloud.sdk.core.http.ServiceCall<Intent>getIntent(GetIntentOptions getIntentOptions)Get intent.com.ibm.cloud.sdk.core.http.ServiceCall<Synonym>getSynonym(GetSynonymOptions getSynonymOptions)Get entity value synonym.com.ibm.cloud.sdk.core.http.ServiceCall<Value>getValue(GetValueOptions getValueOptions)Get entity value.StringgetVersion()Gets the version.com.ibm.cloud.sdk.core.http.ServiceCall<Workspace>getWorkspace(GetWorkspaceOptions getWorkspaceOptions)Get information about a workspace.com.ibm.cloud.sdk.core.http.ServiceCall<LogCollection>listAllLogs(ListAllLogsOptions listAllLogsOptions)List log events in all workspaces.com.ibm.cloud.sdk.core.http.ServiceCall<CounterexampleCollection>listCounterexamples(ListCounterexamplesOptions listCounterexamplesOptions)List counterexamples.com.ibm.cloud.sdk.core.http.ServiceCall<DialogNodeCollection>listDialogNodes(ListDialogNodesOptions listDialogNodesOptions)List dialog nodes.com.ibm.cloud.sdk.core.http.ServiceCall<EntityCollection>listEntities(ListEntitiesOptions listEntitiesOptions)List entities.com.ibm.cloud.sdk.core.http.ServiceCall<ExampleCollection>listExamples(ListExamplesOptions listExamplesOptions)List user input examples.com.ibm.cloud.sdk.core.http.ServiceCall<IntentCollection>listIntents(ListIntentsOptions listIntentsOptions)List intents.com.ibm.cloud.sdk.core.http.ServiceCall<LogCollection>listLogs(ListLogsOptions listLogsOptions)List log events in a workspace.com.ibm.cloud.sdk.core.http.ServiceCall<EntityMentionCollection>listMentions(ListMentionsOptions listMentionsOptions)List entity mentions.com.ibm.cloud.sdk.core.http.ServiceCall<SynonymCollection>listSynonyms(ListSynonymsOptions listSynonymsOptions)List entity value synonyms.com.ibm.cloud.sdk.core.http.ServiceCall<ValueCollection>listValues(ListValuesOptions listValuesOptions)List entity values.com.ibm.cloud.sdk.core.http.ServiceCall<WorkspaceCollection>listWorkspaces()List workspaces.com.ibm.cloud.sdk.core.http.ServiceCall<WorkspaceCollection>listWorkspaces(ListWorkspacesOptions listWorkspacesOptions)List workspaces.com.ibm.cloud.sdk.core.http.ServiceCall<MessageResponse>message(MessageOptions messageOptions)Get response to user input.voidsetVersion(String version)Sets the version.com.ibm.cloud.sdk.core.http.ServiceCall<Counterexample>updateCounterexample(UpdateCounterexampleOptions updateCounterexampleOptions)Update counterexample.com.ibm.cloud.sdk.core.http.ServiceCall<DialogNode>updateDialogNode(UpdateDialogNodeOptions updateDialogNodeOptions)Update dialog node.com.ibm.cloud.sdk.core.http.ServiceCall<DialogNode>updateDialogNodeNullable(UpdateDialogNodeNullableOptions UpdateDialogNodeNullableOptions)Update dialog node.com.ibm.cloud.sdk.core.http.ServiceCall<Entity>updateEntity(UpdateEntityOptions updateEntityOptions)Update entity.com.ibm.cloud.sdk.core.http.ServiceCall<Example>updateExample(UpdateExampleOptions updateExampleOptions)Update user input example.com.ibm.cloud.sdk.core.http.ServiceCall<Intent>updateIntent(UpdateIntentOptions updateIntentOptions)Update intent.com.ibm.cloud.sdk.core.http.ServiceCall<Synonym>updateSynonym(UpdateSynonymOptions updateSynonymOptions)Update entity value synonym.com.ibm.cloud.sdk.core.http.ServiceCall<Value>updateValue(UpdateValueOptions updateValueOptions)Update entity value.com.ibm.cloud.sdk.core.http.ServiceCall<Workspace>updateWorkspace(UpdateWorkspaceOptions updateWorkspaceOptions)Update workspace.Methods inherited from class com.ibm.cloud.sdk.core.service.BaseService
configureClient, configureService, constructServiceUrl, constructServiceURL, enableGzipCompression, getAuthenticator, getClient, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
-
Field Details
-
DEFAULT_SERVICE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_SERVICE_URL
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Assistant
Constructs an instance of the `Assistant` client. The default service name is used to configure the client instance.- Parameters:
version- Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The current version is `2021-06-14`.
-
Assistant
Constructs an instance of the `Assistant` client. The default service name and specified authenticator are used to configure the client instance.- Parameters:
version- Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The current version is `2021-06-14`.authenticator- theAuthenticatorinstance to be configured for this client
-
Assistant
Constructs an instance of the `Assistant` client. The specified service name is used to configure the client instance.- Parameters:
version- Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The current version is `2021-06-14`.serviceName- the service name to be used when configuring the client instance
-
Assistant
public Assistant(String version, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `Assistant` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
version- Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The current version is `2021-06-14`.serviceName- the service name to be used when configuring the client instanceauthenticator- theAuthenticatorinstance to be configured for this client
-
-
Method Details
-
getVersion
Gets the version.Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The current version is `2021-06-14`.
- Returns:
- the version
-
setVersion
Sets the version.- Parameters:
version- the new version
-
message
public com.ibm.cloud.sdk.core.http.ServiceCall<MessageResponse> message(MessageOptions messageOptions)Get response to user input.Send user input to a workspace and receive a response.
**Important:** This method has been superseded by the new v2 runtime API. The v2 API offers significant advantages, including ease of deployment, automatic state management, versioning, and search capabilities. For more information, see the [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-api-overview).
- Parameters:
messageOptions- theMessageOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeMessageResponse
-
bulkClassify
public com.ibm.cloud.sdk.core.http.ServiceCall<BulkClassifyResponse> bulkClassify(BulkClassifyOptions bulkClassifyOptions)Identify intents and entities in multiple user utterances.Send multiple user inputs to a workspace in a single request and receive information about the intents and entities recognized in each input. This method is useful for testing and comparing the performance of different workspaces.
This method is available only with Enterprise with Data Isolation plans.
- Parameters:
bulkClassifyOptions- theBulkClassifyOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeBulkClassifyResponse
-
listWorkspaces
public com.ibm.cloud.sdk.core.http.ServiceCall<WorkspaceCollection> listWorkspaces(ListWorkspacesOptions listWorkspacesOptions)List workspaces.List the workspaces associated with a Watson Assistant service instance.
- Parameters:
listWorkspacesOptions- theListWorkspacesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeWorkspaceCollection
-
listWorkspaces
List workspaces.List the workspaces associated with a Watson Assistant service instance.
- Returns:
- a
ServiceCallwith a result of typeWorkspaceCollection
-
createWorkspace
public com.ibm.cloud.sdk.core.http.ServiceCall<Workspace> createWorkspace(CreateWorkspaceOptions createWorkspaceOptions)Create workspace.Create a workspace based on component objects. You must provide workspace components defining the content of the new workspace.
- Parameters:
createWorkspaceOptions- theCreateWorkspaceOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeWorkspace
-
createWorkspace
Create workspace.Create a workspace based on component objects. You must provide workspace components defining the content of the new workspace.
- Returns:
- a
ServiceCallwith a result of typeWorkspace
-
getWorkspace
public com.ibm.cloud.sdk.core.http.ServiceCall<Workspace> getWorkspace(GetWorkspaceOptions getWorkspaceOptions)Get information about a workspace.Get information about a workspace, optionally including all workspace content.
- Parameters:
getWorkspaceOptions- theGetWorkspaceOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeWorkspace
-
updateWorkspace
public com.ibm.cloud.sdk.core.http.ServiceCall<Workspace> updateWorkspace(UpdateWorkspaceOptions updateWorkspaceOptions)Update workspace.Update an existing workspace with new or modified data. You must provide component objects defining the content of the updated workspace.
- Parameters:
updateWorkspaceOptions- theUpdateWorkspaceOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeWorkspace
-
deleteWorkspace
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteWorkspace(DeleteWorkspaceOptions deleteWorkspaceOptions)Delete workspace.Delete a workspace from the service instance.
- Parameters:
deleteWorkspaceOptions- theDeleteWorkspaceOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
listIntents
public com.ibm.cloud.sdk.core.http.ServiceCall<IntentCollection> listIntents(ListIntentsOptions listIntentsOptions)List intents.List the intents for a workspace.
- Parameters:
listIntentsOptions- theListIntentsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeIntentCollection
-
createIntent
public com.ibm.cloud.sdk.core.http.ServiceCall<Intent> createIntent(CreateIntentOptions createIntentOptions)Create intent.Create a new intent.
If you want to create multiple intents with a single API call, consider using the **[Update workspace](#update-workspace)** method instead.
- Parameters:
createIntentOptions- theCreateIntentOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeIntent
-
getIntent
public com.ibm.cloud.sdk.core.http.ServiceCall<Intent> getIntent(GetIntentOptions getIntentOptions)Get intent.Get information about an intent, optionally including all intent content.
- Parameters:
getIntentOptions- theGetIntentOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeIntent
-
updateIntent
public com.ibm.cloud.sdk.core.http.ServiceCall<Intent> updateIntent(UpdateIntentOptions updateIntentOptions)Update intent.Update an existing intent with new or modified data. You must provide component objects defining the content of the updated intent.
If you want to update multiple intents with a single API call, consider using the **[Update workspace](#update-workspace)** method instead.
- Parameters:
updateIntentOptions- theUpdateIntentOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeIntent
-
deleteIntent
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteIntent(DeleteIntentOptions deleteIntentOptions)Delete intent.Delete an intent from a workspace.
- Parameters:
deleteIntentOptions- theDeleteIntentOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
listExamples
public com.ibm.cloud.sdk.core.http.ServiceCall<ExampleCollection> listExamples(ListExamplesOptions listExamplesOptions)List user input examples.List the user input examples for an intent, optionally including contextual entity mentions.
- Parameters:
listExamplesOptions- theListExamplesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeExampleCollection
-
createExample
public com.ibm.cloud.sdk.core.http.ServiceCall<Example> createExample(CreateExampleOptions createExampleOptions)Create user input example.Add a new user input example to an intent.
If you want to add multiple examples with a single API call, consider using the **[Update intent](#update-intent)** method instead.
- Parameters:
createExampleOptions- theCreateExampleOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeExample
-
getExample
public com.ibm.cloud.sdk.core.http.ServiceCall<Example> getExample(GetExampleOptions getExampleOptions)Get user input example.Get information about a user input example.
- Parameters:
getExampleOptions- theGetExampleOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeExample
-
updateExample
public com.ibm.cloud.sdk.core.http.ServiceCall<Example> updateExample(UpdateExampleOptions updateExampleOptions)Update user input example.Update the text of a user input example.
If you want to update multiple examples with a single API call, consider using the **[Update intent](#update-intent)** method instead.
- Parameters:
updateExampleOptions- theUpdateExampleOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeExample
-
deleteExample
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteExample(DeleteExampleOptions deleteExampleOptions)Delete user input example.Delete a user input example from an intent.
- Parameters:
deleteExampleOptions- theDeleteExampleOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
listCounterexamples
public com.ibm.cloud.sdk.core.http.ServiceCall<CounterexampleCollection> listCounterexamples(ListCounterexamplesOptions listCounterexamplesOptions)List counterexamples.List the counterexamples for a workspace. Counterexamples are examples that have been marked as irrelevant input.
- Parameters:
listCounterexamplesOptions- theListCounterexamplesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeCounterexampleCollection
-
createCounterexample
public com.ibm.cloud.sdk.core.http.ServiceCall<Counterexample> createCounterexample(CreateCounterexampleOptions createCounterexampleOptions)Create counterexample.Add a new counterexample to a workspace. Counterexamples are examples that have been marked as irrelevant input.
If you want to add multiple counterexamples with a single API call, consider using the **[Update workspace](#update-workspace)** method instead.
- Parameters:
createCounterexampleOptions- theCreateCounterexampleOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeCounterexample
-
getCounterexample
public com.ibm.cloud.sdk.core.http.ServiceCall<Counterexample> getCounterexample(GetCounterexampleOptions getCounterexampleOptions)Get counterexample.Get information about a counterexample. Counterexamples are examples that have been marked as irrelevant input.
- Parameters:
getCounterexampleOptions- theGetCounterexampleOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeCounterexample
-
updateCounterexample
public com.ibm.cloud.sdk.core.http.ServiceCall<Counterexample> updateCounterexample(UpdateCounterexampleOptions updateCounterexampleOptions)Update counterexample.Update the text of a counterexample. Counterexamples are examples that have been marked as irrelevant input.
- Parameters:
updateCounterexampleOptions- theUpdateCounterexampleOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeCounterexample
-
deleteCounterexample
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteCounterexample(DeleteCounterexampleOptions deleteCounterexampleOptions)Delete counterexample.Delete a counterexample from a workspace. Counterexamples are examples that have been marked as irrelevant input.
- Parameters:
deleteCounterexampleOptions- theDeleteCounterexampleOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
listEntities
public com.ibm.cloud.sdk.core.http.ServiceCall<EntityCollection> listEntities(ListEntitiesOptions listEntitiesOptions)List entities.List the entities for a workspace.
- Parameters:
listEntitiesOptions- theListEntitiesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeEntityCollection
-
createEntity
public com.ibm.cloud.sdk.core.http.ServiceCall<Entity> createEntity(CreateEntityOptions createEntityOptions)Create entity.Create a new entity, or enable a system entity.
If you want to create multiple entities with a single API call, consider using the **[Update workspace](#update-workspace)** method instead.
- Parameters:
createEntityOptions- theCreateEntityOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeEntity
-
getEntity
public com.ibm.cloud.sdk.core.http.ServiceCall<Entity> getEntity(GetEntityOptions getEntityOptions)Get entity.Get information about an entity, optionally including all entity content.
- Parameters:
getEntityOptions- theGetEntityOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeEntity
-
updateEntity
public com.ibm.cloud.sdk.core.http.ServiceCall<Entity> updateEntity(UpdateEntityOptions updateEntityOptions)Update entity.Update an existing entity with new or modified data. You must provide component objects defining the content of the updated entity.
If you want to update multiple entities with a single API call, consider using the **[Update workspace](#update-workspace)** method instead.
- Parameters:
updateEntityOptions- theUpdateEntityOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeEntity
-
deleteEntity
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteEntity(DeleteEntityOptions deleteEntityOptions)Delete entity.Delete an entity from a workspace, or disable a system entity.
- Parameters:
deleteEntityOptions- theDeleteEntityOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
listMentions
public com.ibm.cloud.sdk.core.http.ServiceCall<EntityMentionCollection> listMentions(ListMentionsOptions listMentionsOptions)List entity mentions.List mentions for a contextual entity. An entity mention is an occurrence of a contextual entity in the context of an intent user input example.
- Parameters:
listMentionsOptions- theListMentionsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeEntityMentionCollection
-
listValues
public com.ibm.cloud.sdk.core.http.ServiceCall<ValueCollection> listValues(ListValuesOptions listValuesOptions)List entity values.List the values for an entity.
- Parameters:
listValuesOptions- theListValuesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeValueCollection
-
createValue
public com.ibm.cloud.sdk.core.http.ServiceCall<Value> createValue(CreateValueOptions createValueOptions)Create entity value.Create a new value for an entity.
If you want to create multiple entity values with a single API call, consider using the **[Update entity](#update-entity)** method instead.
- Parameters:
createValueOptions- theCreateValueOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeValue
-
getValue
Get entity value.Get information about an entity value.
- Parameters:
getValueOptions- theGetValueOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeValue
-
updateValue
public com.ibm.cloud.sdk.core.http.ServiceCall<Value> updateValue(UpdateValueOptions updateValueOptions)Update entity value.Update an existing entity value with new or modified data. You must provide component objects defining the content of the updated entity value.
If you want to update multiple entity values with a single API call, consider using the **[Update entity](#update-entity)** method instead.
- Parameters:
updateValueOptions- theUpdateValueOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeValue
-
deleteValue
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteValue(DeleteValueOptions deleteValueOptions)Delete entity value.Delete a value from an entity.
- Parameters:
deleteValueOptions- theDeleteValueOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
listSynonyms
public com.ibm.cloud.sdk.core.http.ServiceCall<SynonymCollection> listSynonyms(ListSynonymsOptions listSynonymsOptions)List entity value synonyms.List the synonyms for an entity value.
- Parameters:
listSynonymsOptions- theListSynonymsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSynonymCollection
-
createSynonym
public com.ibm.cloud.sdk.core.http.ServiceCall<Synonym> createSynonym(CreateSynonymOptions createSynonymOptions)Create entity value synonym.Add a new synonym to an entity value.
If you want to create multiple synonyms with a single API call, consider using the **[Update entity](#update-entity)** or **[Update entity value](#update-entity-value)** method instead.
- Parameters:
createSynonymOptions- theCreateSynonymOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSynonym
-
getSynonym
public com.ibm.cloud.sdk.core.http.ServiceCall<Synonym> getSynonym(GetSynonymOptions getSynonymOptions)Get entity value synonym.Get information about a synonym of an entity value.
- Parameters:
getSynonymOptions- theGetSynonymOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSynonym
-
updateSynonym
public com.ibm.cloud.sdk.core.http.ServiceCall<Synonym> updateSynonym(UpdateSynonymOptions updateSynonymOptions)Update entity value synonym.Update an existing entity value synonym with new text.
If you want to update multiple synonyms with a single API call, consider using the **[Update entity](#update-entity)** or **[Update entity value](#update-entity-value)** method instead.
- Parameters:
updateSynonymOptions- theUpdateSynonymOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSynonym
-
deleteSynonym
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteSynonym(DeleteSynonymOptions deleteSynonymOptions)Delete entity value synonym.Delete a synonym from an entity value.
- Parameters:
deleteSynonymOptions- theDeleteSynonymOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
listDialogNodes
public com.ibm.cloud.sdk.core.http.ServiceCall<DialogNodeCollection> listDialogNodes(ListDialogNodesOptions listDialogNodesOptions)List dialog nodes.List the dialog nodes for a workspace.
- Parameters:
listDialogNodesOptions- theListDialogNodesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeDialogNodeCollection
-
createDialogNode
public com.ibm.cloud.sdk.core.http.ServiceCall<DialogNode> createDialogNode(CreateDialogNodeOptions createDialogNodeOptions)Create dialog node.Create a new dialog node.
If you want to create multiple dialog nodes with a single API call, consider using the **[Update workspace](#update-workspace)** method instead.
- Parameters:
createDialogNodeOptions- theCreateDialogNodeOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeDialogNode
-
getDialogNode
public com.ibm.cloud.sdk.core.http.ServiceCall<DialogNode> getDialogNode(GetDialogNodeOptions getDialogNodeOptions)Get dialog node.Get information about a dialog node.
- Parameters:
getDialogNodeOptions- theGetDialogNodeOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeDialogNode
-
updateDialogNode
public com.ibm.cloud.sdk.core.http.ServiceCall<DialogNode> updateDialogNode(UpdateDialogNodeOptions updateDialogNodeOptions)Update dialog node.Update an existing dialog node with new or modified data.
If you want to update multiple dialog nodes with a single API call, consider using the **[Update workspace](#update-workspace)** method instead.
- Parameters:
updateDialogNodeOptions- theUpdateDialogNodeOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeDialogNode
-
updateDialogNodeNullable
public com.ibm.cloud.sdk.core.http.ServiceCall<DialogNode> updateDialogNodeNullable(UpdateDialogNodeNullableOptions UpdateDialogNodeNullableOptions)Update dialog node.Update an existing dialog node with new or modified data.
If you want to update multiple dialog nodes with a single API call, consider using the **[Update workspace](#update-workspace)** method instead.
- Parameters:
UpdateDialogNodeNullableOptions- theUpdateDialogNodeNullableOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeDialogNode
-
deleteDialogNode
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteDialogNode(DeleteDialogNodeOptions deleteDialogNodeOptions)Delete dialog node.Delete a dialog node from a workspace.
- Parameters:
deleteDialogNodeOptions- theDeleteDialogNodeOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
listLogs
public com.ibm.cloud.sdk.core.http.ServiceCall<LogCollection> listLogs(ListLogsOptions listLogsOptions)List log events in a workspace.List the events from the log of a specific workspace.
This method requires Manager access.
- Parameters:
listLogsOptions- theListLogsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeLogCollection
-
listAllLogs
public com.ibm.cloud.sdk.core.http.ServiceCall<LogCollection> listAllLogs(ListAllLogsOptions listAllLogsOptions)List log events in all workspaces.List the events from the logs of all workspaces in the service instance.
- Parameters:
listAllLogsOptions- theListAllLogsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeLogCollection
-
deleteUserData
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteUserData(DeleteUserDataOptions deleteUserDataOptions)Delete labeled data.Deletes all data associated with a specified customer ID. The method has no effect if no data is associated with the customer ID.
You associate a customer ID with data by passing the `X-Watson-Metadata` header with a request that passes data. For more information about personal data and customer IDs, see [Information security](https://cloud.ibm.com/docs/assistant?topic=assistant-information-security#information-security).
**Note:** This operation is intended only for deleting data associated with a single specific customer, not for deleting data associated with multiple customers or for any other purpose. For more information, see [Labeling and deleting data in Watson Assistant](https://cloud.ibm.com/docs/assistant?topic=assistant-information-security#information-security-gdpr-wa).
- Parameters:
deleteUserDataOptions- theDeleteUserDataOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-