Watson Developer Cloud Unity SDK  1.0.0
The Unity SDK uses the Watson Developer Cloud services, a collection of REST APIs and SDKs that use cognitive computing to solve complex problems.
IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery Class Reference

This class wraps the Discovery service Discovery Service More...

Inheritance diagram for IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery:
IBM.Watson.DeveloperCloud.Services.IWatsonService

Public Member Functions

 Discovery (Credentials credentials)
 
delegate void OnGetEnvironments (GetEnvironmentsResponse resp, string customData)
 The callback used by GetEnvironments(). More...
 
bool GetEnvironments (OnGetEnvironments callback, string customData=default(string))
 This class lists environments in a discovery instance. There are two environments returned: A read-only environment with the News collection (IBM Managed) and a user-created environment that the user can utilize to analyze and query their own data. More...
 
delegate void OnAddEnvironment (Environment resp, string customData)
 The callback used by AddEnvironment(). More...
 
bool AddEnvironment (OnAddEnvironment callback, string name=default(string), string description=default(string), int size=0, string customData=default(string))
 Creates a new environment. You can only create one environment per service instance.An attempt to create another environment will result in an error. The size of the new environment can be controlled by specifying the size parameter. More...
 
bool AddEnvironment (OnAddEnvironment callback, Dictionary< string, object > addEnvironmentData, string customData=default(string))
 Creates a new environment. You can only create one environment per service instance.An attempt to create another environment will result in an error. The size of the new environment can be controlled by specifying the size parameter. More...
 
delegate void OnGetEnvironment (Environment resp, string customData)
 The callback used by GetEnvironment(). More...
 
bool GetEnvironment (OnGetEnvironment callback, string environmentID, string customData=default(string))
 Returns specified environment data. More...
 
delegate void OnDeleteEnvironment (bool success, string customData)
 The callback used by DeleteEnvironment(). More...
 
bool DeleteEnvironment (OnDeleteEnvironment callback, string environmentID, string customData=default(string))
 Deletes the specified environment. More...
 
delegate void OnGetConfigurations (GetConfigurationsResponse resp, string customData)
 The callback used by GetConfigurations(). More...
 
bool GetConfigurations (OnGetConfigurations callback, string environmentID, string name=default(string), string customData=default(string))
 Lists an environment's configurations. More...
 
delegate void OnAddConfiguration (Configuration resp, string customData)
 The callback used by AddConfiguration(). More...
 
bool AddConfiguration (OnAddConfiguration callback, string environmentID, string configurationJsonPath, string customData=default(string))
 Adds a configuration via external json file. More...
 
bool AddConfiguration (OnAddConfiguration callback, string environmentID, byte[] configurationJsonData, string customData=default(string))
 Adds a configuration via json byte data. More...
 
delegate void OnGetConfiguration (Configuration resp, string customData)
 The callback uesd by GetConfiguration(). More...
 
bool GetConfiguration (OnGetConfiguration callback, string environmentID, string configurationID, string customData=default(string))
 
delegate void OnDeleteConfiguration (bool success, string customData)
 The callback used by DeleteConfiguration(). More...
 
bool DeleteConfiguration (OnDeleteConfiguration callback, string environmentID, string configurationID, string customData=default(string))
 Deletes an environments specified configuration. More...
 
delegate void OnPreviewConfiguration (TestDocument resp, string customData)
 The callback used by PreviewConfiguration(). More...
 
bool PreviewConfiguration (OnPreviewConfiguration callback, string environmentID, string configurationID, string configurationFilePath, string contentFilePath, string metadata=default(string), string customData=default(string))
 Runs a sample document through the default or your configuration and returns diagnostic information designed to help you understand how the document was processed. The document is not added to the index. More...
 
bool PreviewConfiguration (OnPreviewConfiguration callback, string environmentID, string configurationID, string configurationFilePath, byte[] contentData, string contentMimeType, string metadata=default(string), string customData=default(string))
 Runs a sample document through the default or your configuration and returns diagnostic information designed to help you understand how the document was processed. The document is not added to the index. More...
 
delegate void OnGetCollections (GetCollectionsResponse resp, string customData)
 The callback used by GetCollections(). More...
 
bool GetCollections (OnGetCollections callback, string environmentID, string name=default(string), string customData=default(string))
 Lists a specified environment's collections. More...
 
delegate void OnAddCollection (CollectionRef resp, string customData)
 The callback used by OnAddCollection More...
 
bool AddCollection (OnAddCollection callback, string environmentID, string name, string description=default(string), string configurationID=default(string), string customData=default(string))
 Adds a collection to a specified environment. More...
 
bool AddCollection (OnAddCollection callback, string environmentID, byte[] collectionData, string customData=default(string))
 Adds a collection to a specified environment. More...
 
delegate void OnGetCollection (Collection resp, string customData)
 The callback used by GetCollection(). More...
 
bool GetCollection (OnGetCollection callback, string environmentID, string collectionID, string customData=default(string))
 Lists a specified collecton's details. More...
 
delegate void OnDeleteCollection (bool success, string customData)
 The callback used by DeleteCollection(). More...
 
bool DeleteCollection (OnDeleteCollection callback, string environmentID, string collectionID, string customData=default(string))
 Deletes a specified collection. More...
 
delegate void OnGetFields (GetFieldsResponse resp, string customData)
 The callback used by GetFields(). More...
 
bool GetFields (OnGetFields callback, string environmentID, string collectionID, string customData=default(string))
 Gets a list of the the unique fields (and their types) stored in the index. More...
 
delegate void OnAddDocument (DocumentAccepted resp, string customData)
 The callbackused by AddDocument(). More...
 
bool AddDocument (OnAddDocument callback, string environmentID, string collectionID, string contentFilePath, string configurationID=default(string), string configurationFilePath=default(string), string metadata=default(string), string customData=default(string))
 Add a document to a collection with optional metadata and optional configuration. The configuration to use to process the document can be provided using the configuration_id argument. Returns immediately after the system has accepted the document for processing. The user must provide document content, metadata, or both. If the request is missing both document content and metadata, then it will be rejected. More...
 
bool AddDocumentUsingConfigID (OnAddDocument callback, string environmentID, string collectionID, byte[] contentData, string contentMimeType, string configurationID, string metadata=default(string), string customData=default(string))
 Add a document to a collection with optional metadata and optional configuration. The configuration to use to process the document can be provided using the configuration_id argument. Returns immediately after the system has accepted the document for processing. The user must provide document content, metadata, or both. If the request is missing both document content and metadata, then it will be rejected. More...
 
bool AddDocumentUsingConfigFile (OnAddDocument callback, string environmentID, string collectionID, byte[] contentData, string contentMimeType, string configurationFilePath, string metadata=default(string), string customData=default(string))
 Add a document to a collection with optional metadata and optional configuration. The configuration to use to process the document can be provided using the configuration_id argument. Returns immediately after the system has accepted the document for processing. The user must provide document content, metadata, or both. If the request is missing both document content and metadata, then it will be rejected. More...
 
bool AddDocument (OnAddDocument callback, string environmentID, string collectionID, byte[] contentData, string contentMimeType, string configurationID=default(string), string configuration=default(string), string metadata=default(string), string customData=default(string))
 Add a document to a collection with optional metadata and optional configuration. The configuration to use to process the document can be provided using the configuration_id argument. Returns immediately after the system has accepted the document for processing. The user must provide document content, metadata, or both. If the request is missing both document content and metadata, then it will be rejected. More...
 
delegate void OnDeleteDocument (bool success, string customData)
 The callback used by DeleteDocument(). More...
 
bool DeleteDocument (OnDeleteDocument callback, string environmentID, string collectionID, string documentID, string customData=default(string))
 
delegate void OnGetDocument (DocumentStatus resp, string customData)
 The callback used by GetDocument(). More...
 
bool GetDocument (OnGetDocument callback, string environmentID, string collectionID, string documentID, string customData=default(string))
 Lists a specified document's details. More...
 
delegate void OnUpdateDocument (DocumentAccepted resp, string customData)
 The callback used by UpdateDocument(). More...
 
bool UpdateDocument (OnUpdateDocument callback, string environmentID, string collectionID, string documentID, string contentFilePath, string configurationID=default(string), string configurationFilePath=default(string), string metadata=default(string), string customData=default(string))
 Updates a specified document. More...
 
bool UpdateDocumentUsingConfigID (OnUpdateDocument callback, string environmentID, string collectionID, string documentID, byte[] contentData, string contentMimeType, string configurationID, string metadata=default(string), string customData=default(string))
 Updates a specified document using ConfigID. More...
 
bool UpdateDocumentUsingConfigFile (OnUpdateDocument callback, string environmentID, string collectionID, string documentID, byte[] contentData, string contentMimeType, string configurationFilePath, string metadata=default(string), string customData=default(string))
 Updates a specified document using a configuration file path. More...
 
bool UpdateDocument (OnUpdateDocument callback, string environmentID, string collectionID, string documentID, byte[] contentData, string contentMimeType, string configurationID=default(string), string configuration=default(string), string metadata=default(string), string customData=default(string))
 Updates a specified document. More...
 
delegate void OnQuery (QueryResponse resp, string customData)
 The callback used by Query(). More...
 
bool Query (OnQuery callback, string environmentID, string collectionID, string filter, string query, string aggregation, int count, string _return, int offset, string customData=default(string))
 Query the discovery instance. More...
 
string GetServiceID ()
 <exclude> More...
 

Properties

string Url [get, set]
 Gets and sets the endpoint URL for the service. More...
 
string VersionDate [get, set]
 Gets and sets the versionDate of the service. More...
 
Credentials Credentials [get, set]
 Gets and sets the credentials of the service. Replace the default endpoint if endpoint is defined. More...
 

Detailed Description

This class wraps the Discovery service Discovery Service

Constructor & Destructor Documentation

IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.Discovery ( Credentials  credentials)
inline

Member Function Documentation

bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.AddCollection ( OnAddCollection  callback,
string  environmentID,
string  name,
string  description = default(string),
string  configurationID = default(string),
string  customData = default(string) 
)
inline

Adds a collection to a specified environment.

Parameters
callbackThe OnAddCollection callback.
environmentIDThe environment identifier.
nameThe name of the collection to be created.
descriptionThe description of the collection to be created.
configurationIDThe configuration identifier.
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.AddCollection ( OnAddCollection  callback,
string  environmentID,
byte[]  collectionData,
string  customData = default(string) 
)
inline

Adds a collection to a specified environment.

Parameters
callbackThe OnAddCollection callback.
environmentIDThe environment identifier.
collectionDataA byte array of json collection data.
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.AddConfiguration ( OnAddConfiguration  callback,
string  environmentID,
string  configurationJsonPath,
string  customData = default(string) 
)
inline

Adds a configuration via external json file.

Parameters
callbackThe OnAddConfiguration callback.
environmentIDThe environment identifier.
configurationJsonPathThe path to the configuration json file.
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.AddConfiguration ( OnAddConfiguration  callback,
string  environmentID,
byte[]  configurationJsonData,
string  customData = default(string) 
)
inline

Adds a configuration via json byte data.

Parameters
callbackThe OnAddConfiguration callback.
environmentIDThe environment identifier.
configurationJsonDataA byte array of configuration json data.
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.AddDocument ( OnAddDocument  callback,
string  environmentID,
string  collectionID,
string  contentFilePath,
string  configurationID = default(string),
string  configurationFilePath = default(string),
string  metadata = default(string),
string  customData = default(string) 
)
inline

Add a document to a collection with optional metadata and optional configuration. The configuration to use to process the document can be provided using the configuration_id argument. Returns immediately after the system has accepted the document for processing. The user must provide document content, metadata, or both. If the request is missing both document content and metadata, then it will be rejected.

Parameters
callbackThe callback.
environmentIDThe environment identifier.
collectionIDThe collection identifier.
contentFilePathThe path to content file to be added.
configurationIDThe ID of the configuration to use to process the document. If the configuration form part is also provided (both are present at the same time), then request will be rejected.
configurationFilePathThe content of the document to ingest.The maximum supported file size is 50 megabytes. Files larger than 50 megabytes is rejected.
metadataIf you're using the Data Crawler to upload your documents, you can test a document against the type of metadata that the Data Crawler might send. The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected. Example: { "Creator": "Johnny Appleseed", "Subject": "Apples" }
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.AddDocument ( OnAddDocument  callback,
string  environmentID,
string  collectionID,
byte[]  contentData,
string  contentMimeType,
string  configurationID = default(string),
string  configuration = default(string),
string  metadata = default(string),
string  customData = default(string) 
)
inline

Add a document to a collection with optional metadata and optional configuration. The configuration to use to process the document can be provided using the configuration_id argument. Returns immediately after the system has accepted the document for processing. The user must provide document content, metadata, or both. If the request is missing both document content and metadata, then it will be rejected.

Parameters
callbackThe OnAddDocument callback.
environmentIDThe environment identifier.
collectionIDThe collection identifier.
contentDataA byte array of content to be ingested.
contentMimeTypeThe mimeType of the content data to be ingested./param>
Parameters
configurationIDThe configuration identifier. If this is specified, do not specify a configuration.
configurationA json string of the configuration to test. If this is specified, do not specify a configurationID.
metadataIf you're using the Data Crawler to upload your documents, you can test a document against the type of metadata that the Data Crawler might send. The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected. Example: { "Creator": "Johnny Appleseed", "Subject": "Apples" }
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.AddDocumentUsingConfigFile ( OnAddDocument  callback,
string  environmentID,
string  collectionID,
byte[]  contentData,
string  contentMimeType,
string  configurationFilePath,
string  metadata = default(string),
string  customData = default(string) 
)
inline

Add a document to a collection with optional metadata and optional configuration. The configuration to use to process the document can be provided using the configuration_id argument. Returns immediately after the system has accepted the document for processing. The user must provide document content, metadata, or both. If the request is missing both document content and metadata, then it will be rejected.

Parameters
callbackThe OnAddDocument callback.
environmentIDThe environment identifier.
collectionIDThe collection identifier.
contentDataA byte array of content to be ingested.
contentMimeTypeThe mimeType of the content data to be ingested./param>
Parameters
configurationFilePathThe file path to the configuration to use to process the document.
metadataIf you're using the Data Crawler to upload your documents, you can test a document against the type of metadata that the Data Crawler might send. The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected. Example: { "Creator": "Johnny Appleseed", "Subject": "Apples" }
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.AddDocumentUsingConfigID ( OnAddDocument  callback,
string  environmentID,
string  collectionID,
byte[]  contentData,
string  contentMimeType,
string  configurationID,
string  metadata = default(string),
string  customData = default(string) 
)
inline

Add a document to a collection with optional metadata and optional configuration. The configuration to use to process the document can be provided using the configuration_id argument. Returns immediately after the system has accepted the document for processing. The user must provide document content, metadata, or both. If the request is missing both document content and metadata, then it will be rejected.

Parameters
callbackThe OnAddDocument callback.
environmentIDThe environment identifier.
collectionIDThe collection identifier.
contentDataA byte array of content to be ingested.
contentMimeTypeThe mimeType of the content data to be ingested.
configurationIDThe identifier of the configuration to use to process the document.
metadataIf you're using the Data Crawler to upload your documents, you can test a document against the type of metadata that the Data Crawler might send. The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected. Example: { "Creator": "Johnny Appleseed", "Subject": "Apples" }
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.AddEnvironment ( OnAddEnvironment  callback,
string  name = default(string),
string  description = default(string),
int  size = 0,
string  customData = default(string) 
)
inline

Creates a new environment. You can only create one environment per service instance.An attempt to create another environment will result in an error. The size of the new environment can be controlled by specifying the size parameter.

Parameters
callbackThe OnAddEnvironment callback.
nameThe name of the environment to be created.
descriptionThe description of the environment to be created.
sizeThe size of the environment to be created. See pricing.
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.AddEnvironment ( OnAddEnvironment  callback,
Dictionary< string, object >  addEnvironmentData,
string  customData = default(string) 
)
inline

Creates a new environment. You can only create one environment per service instance.An attempt to create another environment will result in an error. The size of the new environment can be controlled by specifying the size parameter.

Parameters
callbackThe OnAddEnvironment callback.
addEnvironmentDataThe AddEnvironmentData.
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.DeleteCollection ( OnDeleteCollection  callback,
string  environmentID,
string  collectionID,
string  customData = default(string) 
)
inline

Deletes a specified collection.

Parameters
callbackThe callback.
environmentIDThe environment identifier.
collectionIDThe collection identifier.
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.DeleteConfiguration ( OnDeleteConfiguration  callback,
string  environmentID,
string  configurationID,
string  customData = default(string) 
)
inline

Deletes an environments specified configuration.

Parameters
callbackThe OnDeleteConfiguration callback.
environmentIDThe environment identifier.
configurationIDThe configuration identifier.
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.DeleteDocument ( OnDeleteDocument  callback,
string  environmentID,
string  collectionID,
string  documentID,
string  customData = default(string) 
)
inline

Parameters
callbackThe OnDeleteDocument callback.
environmentIDThe environment identifier.
collectionIDThe collection identifier.
documentIDThe document identifier.
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.DeleteEnvironment ( OnDeleteEnvironment  callback,
string  environmentID,
string  customData = default(string) 
)
inline

Deletes the specified environment.

Parameters
callbackThe callback.
environmentIDThe environment identifier.
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.GetCollection ( OnGetCollection  callback,
string  environmentID,
string  collectionID,
string  customData = default(string) 
)
inline

Lists a specified collecton's details.

Parameters
callbackThe OnGetCollection callback.
environmentIDThe environment identifier.
collectionIDThe collection identifier.
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.GetCollections ( OnGetCollections  callback,
string  environmentID,
string  name = default(string),
string  customData = default(string) 
)
inline

Lists a specified environment's collections.

Parameters
callbackThe OnGetCollections callback.
environmentIDThe environment identifier.
nameFind collections with the given name.
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.GetConfiguration ( OnGetConfiguration  callback,
string  environmentID,
string  configurationID,
string  customData = default(string) 
)
inline

Parameters
callbackThe OnGetConfiguration callback.
environmentIDThe environment identifier.
configurationIDThe configuration identifier.
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.GetConfigurations ( OnGetConfigurations  callback,
string  environmentID,
string  name = default(string),
string  customData = default(string) 
)
inline

Lists an environment's configurations.

Parameters
callbackThe OnGetConfigurations callback.
environmentIDThe environment identifier.
nameAn optional configuration name to search.
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.GetDocument ( OnGetDocument  callback,
string  environmentID,
string  collectionID,
string  documentID,
string  customData = default(string) 
)
inline

Lists a specified document's details.

Parameters
callbackThe OnGetDocument callback.
environmentIDThe environment identifier.
collectionIDThe collection identifier.
documentIDThe document identifier.
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.GetEnvironment ( OnGetEnvironment  callback,
string  environmentID,
string  customData = default(string) 
)
inline

Returns specified environment data.

Parameters
callbackThe OnGetEnvironment callback.
environmentIDThe environment identifier requested.
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.GetEnvironments ( OnGetEnvironments  callback,
string  customData = default(string) 
)
inline

This class lists environments in a discovery instance. There are two environments returned: A read-only environment with the News collection (IBM Managed) and a user-created environment that the user can utilize to analyze and query their own data.

Parameters
callbackThe OnGetEnvironments callback.
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.GetFields ( OnGetFields  callback,
string  environmentID,
string  collectionID,
string  customData = default(string) 
)
inline

Gets a list of the the unique fields (and their types) stored in the index.

Parameters
callbackThe OnGetFields callback.
environmentIDThe environment identifier.
collectionIDThe collection identifier.
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
string IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.GetServiceID ( )
inline
delegate void IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.OnAddCollection ( CollectionRef  resp,
string  customData 
)

The callback used by OnAddCollection

Parameters
respThe CollectionRef response.
customDataOptional custom data.
delegate void IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.OnAddConfiguration ( Configuration  resp,
string  customData 
)

The callback used by AddConfiguration().

Parameters
respThe Configuration response.
customDataOptional custom data.
delegate void IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.OnAddDocument ( DocumentAccepted  resp,
string  customData 
)

The callbackused by AddDocument().

Parameters
respThe DocumentAccepted response.
customDataOptional custom data.
delegate void IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.OnAddEnvironment ( Environment  resp,
string  customData 
)

The callback used by AddEnvironment().

Parameters
respThe Environment response.
customDataOptional custom data.
delegate void IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.OnDeleteCollection ( bool  success,
string  customData 
)

The callback used by DeleteCollection().

Parameters
successThe success of the call.
customDataOptional custom data.
delegate void IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.OnDeleteConfiguration ( bool  success,
string  customData 
)

The callback used by DeleteConfiguration().

Parameters
successThe success of the call.
customDataOptional custom data.
delegate void IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.OnDeleteDocument ( bool  success,
string  customData 
)

The callback used by DeleteDocument().

Parameters
successThe success of the call.
customDataOptional custom data.
delegate void IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.OnDeleteEnvironment ( bool  success,
string  customData 
)

The callback used by DeleteEnvironment().

Parameters
successThe success of the call.
customDataOptional custom data.
delegate void IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.OnGetCollection ( Collection  resp,
string  customData 
)

The callback used by GetCollection().

Parameters
respThe Collection response.
customDataOptional custom data.
delegate void IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.OnGetCollections ( GetCollectionsResponse  resp,
string  customData 
)

The callback used by GetCollections().

Parameters
respThe GetCollectionsResponse.
customDataOptional custom data.
delegate void IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.OnGetConfiguration ( Configuration  resp,
string  customData 
)

The callback uesd by GetConfiguration().

Parameters
respThe Configuration response.
customDataOptional custom data.
delegate void IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.OnGetConfigurations ( GetConfigurationsResponse  resp,
string  customData 
)

The callback used by GetConfigurations().

Parameters
respThe GetConfigurationsResponse.
customDataOptional custom data.
delegate void IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.OnGetDocument ( DocumentStatus  resp,
string  customData 
)

The callback used by GetDocument().

Parameters
respThe DocumentStatus response.
customDataOptional custom data.
delegate void IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.OnGetEnvironment ( Environment  resp,
string  customData 
)

The callback used by GetEnvironment().

Parameters
respThe Environment response.
customDataOptional custom data.
delegate void IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.OnGetEnvironments ( GetEnvironmentsResponse  resp,
string  customData 
)

The callback used by GetEnvironments().

Parameters
respThe GetEnvironments response.
customDataOptional data.
delegate void IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.OnGetFields ( GetFieldsResponse  resp,
string  customData 
)

The callback used by GetFields().

Parameters
respThe GetFieldsResponse.
customDataOptional custom data.
delegate void IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.OnPreviewConfiguration ( TestDocument  resp,
string  customData 
)

The callback used by PreviewConfiguration().

Parameters
respThe response.
customDataOptional custom data.
delegate void IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.OnQuery ( QueryResponse  resp,
string  customData 
)

The callback used by Query().

Parameters
respThe QueryResponse.
customDataOptional custom data.
delegate void IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.OnUpdateDocument ( DocumentAccepted  resp,
string  customData 
)

The callback used by UpdateDocument().

Parameters
respThe DocumentAccepted response.
customDataOptional custom data.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.PreviewConfiguration ( OnPreviewConfiguration  callback,
string  environmentID,
string  configurationID,
string  configurationFilePath,
string  contentFilePath,
string  metadata = default(string),
string  customData = default(string) 
)
inline

Runs a sample document through the default or your configuration and returns diagnostic information designed to help you understand how the document was processed. The document is not added to the index.

Parameters
callbackThe OnPreviewConfiguration callback.
environmentIDThe environment identifier.
configurationIDThe ID of the configuration to use to process the document. If the configurationFilePath is also provided (both are present at the same time), then request will be rejected.
configurationFilePathThe configuration to use to process the document. If this part is provided, then the provided configuration is used to process the document. If the configuration_id is also provided (both are present at the same time), then request is rejected. The maximum supported configuration size is 1 MB. Configuration parts larger than 1 MB are rejected. See the GET /configurations/{configuration_id} operation for an example configuration.
contentFilePathThe file path to document to ingest.The maximum supported file size is 50 megabytes. Files larger than 50 megabytes is rejected.
metadataIf you're using the Data Crawler to upload your documents, you can test a document against the type of metadata that the Data Crawler might send. The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected. Example: { "Creator": "Johnny Appleseed", "Subject": "Apples" }
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.PreviewConfiguration ( OnPreviewConfiguration  callback,
string  environmentID,
string  configurationID,
string  configurationFilePath,
byte[]  contentData,
string  contentMimeType,
string  metadata = default(string),
string  customData = default(string) 
)
inline

Runs a sample document through the default or your configuration and returns diagnostic information designed to help you understand how the document was processed. The document is not added to the index.

Parameters
callbackThe OnPreviewConfiguration callback.
environmentIDThe environment identifier.
configurationIDThe ID of the configuration to use to process the document. If the configurationFilePath is also provided (both are present at the same time), then request will be rejected.
configurationFilePathThe configuration to use to process the document. If this part is provided, then the provided configuration is used to process the document. If the configuration_id is also provided (both are present at the same time), then request is rejected. The maximum supported configuration size is 1 MB. Configuration parts larger than 1 MB are rejected. See the GET /configurations/{configuration_id} operation for an example configuration.
contentDataThe byte array data of the document to ingest.The maximum supported file size is 50 megabytes. Files larger than 50 megabytes is rejected.
contentMimeTypeThe mimeType of the document to ingest.
metadataIf you're using the Data Crawler to upload your documents, you can test a document against the type of metadata that the Data Crawler might send. The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected. Example: { "Creator": "Johnny Appleseed", "Subject": "Apples" }
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.Query ( OnQuery  callback,
string  environmentID,
string  collectionID,
string  filter,
string  query,
string  aggregation,
int  count,
string  _return,
int  offset,
string  customData = default(string) 
)
inline

Query the discovery instance.

Parameters
callbackThe OnQuery callback.
environmentIDThe environment identifier.
collectionIDThe collection identifier.
filterA cacheable query that limits the documents returned to exclude any documents that don't mention the query content. Filter searches are better for metadata type searches and when you are trying to get a sense of concepts in the data set.
queryA query search returns all documents in your data set with full enrichments and full text, but with the most relevant documents listed first. Use a query search when you want to find the most relevant search results.
aggregationAn aggregation search uses combinations of filters and query search to return an exact answer. Aggregations are useful for building applications, because you can use them to build lists, tables, and time series. For a full list of possible aggregrations, see the Query reference.
countNumber of documents to return.
_returnA comma separated list of the portion of the document hierarchy to return.
offsetThe number of query results to skip at the beginning. For example, if the total number of results that are returned is 10, and the offset is 8, it returns the last two results.
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.UpdateDocument ( OnUpdateDocument  callback,
string  environmentID,
string  collectionID,
string  documentID,
string  contentFilePath,
string  configurationID = default(string),
string  configurationFilePath = default(string),
string  metadata = default(string),
string  customData = default(string) 
)
inline

Updates a specified document.

Parameters
callbackThe callback.
environmentIDThe environment identifier.
collectionIDThe collection identifier.
documentIDThe document identifier.
contentFilePathThe file path to the updated document to be ingested.
configurationIDThe configuration identifier to use for ingestion. If this is specified, do not specify configurationFilePath.
configurationFilePathThe path to a configuration file to use for ingestion. If this is specified, do not specify configurationID.
metadataIf you're using the Data Crawler to upload your documents, you can test a document against the type of metadata that the Data Crawler might send. The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected. Example: { "Creator": "Johnny Appleseed", "Subject": "Apples" }
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.UpdateDocument ( OnUpdateDocument  callback,
string  environmentID,
string  collectionID,
string  documentID,
byte[]  contentData,
string  contentMimeType,
string  configurationID = default(string),
string  configuration = default(string),
string  metadata = default(string),
string  customData = default(string) 
)
inline

Updates a specified document.

Parameters
callbackThe OnUpdateDocument callback.
environmentIDThe environment identifier.
collectionIDThe collection identifier.
documentIDThe document identifier.
contentDataA byte array of content to be updated.
contentMimeTypeThe mimeType of the content data to be updated.
configurationIDThe configuration identifier. If this is specified, do not specify a configuration.
configurationA json string of the configuration to test. If this is specified, do not specify a configurationID.
metadataIf you're using the Data Crawler to upload your documents, you can test a document against the type of metadata that the Data Crawler might send. The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected. Example: { "Creator": "Johnny Appleseed", "Subject": "Apples" }
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.UpdateDocumentUsingConfigFile ( OnUpdateDocument  callback,
string  environmentID,
string  collectionID,
string  documentID,
byte[]  contentData,
string  contentMimeType,
string  configurationFilePath,
string  metadata = default(string),
string  customData = default(string) 
)
inline

Updates a specified document using a configuration file path.

Parameters
callbackThe OnUpdateDocument callback.
environmentIDThe environment identifier.
collectionIDThe collection identifier.
documentIDThe document identifier.
contentDataA byte array of content to be ingested.
contentMimeTypeThe mimeType of the content data to be ingested./param>
Parameters
configurationFilePathThe file path to the configuration to use to process
metadataIf you're using the Data Crawler to upload your documents, you can test a document against the type of metadata that the Data Crawler might send. The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected. Example: { "Creator": "Johnny Appleseed", "Subject": "Apples" }
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.
bool IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.UpdateDocumentUsingConfigID ( OnUpdateDocument  callback,
string  environmentID,
string  collectionID,
string  documentID,
byte[]  contentData,
string  contentMimeType,
string  configurationID,
string  metadata = default(string),
string  customData = default(string) 
)
inline

Updates a specified document using ConfigID.

Parameters
callbackThe OnUpdateDocument callback.
environmentIDThe environment identifier.
collectionIDThe collection identifier.
documentIDThe document identifier.
contentDataA byte array of content to be ingested.
contentMimeTypeThe mimeType of the content data to be ingested./param>
Parameters
configurationIDThe identifier of the configuration to use to process the document.
metadataIf you're using the Data Crawler to upload your documents, you can test a document against the type of metadata that the Data Crawler might send. The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected. Example: { "Creator": "Johnny Appleseed", "Subject": "Apples" }
customDataOptional custom data.
Returns
True if the call succeeds, false if the call is unsuccessful.

Property Documentation

Credentials IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.Credentials
getset

Gets and sets the credentials of the service. Replace the default endpoint if endpoint is defined.

string IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.Url
getset

Gets and sets the endpoint URL for the service.

string IBM.Watson.DeveloperCloud.Services.Discovery.v1.Discovery.VersionDate
getset

Gets and sets the versionDate of the service.


The documentation for this class was generated from the following file: