diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/Discovery.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/Discovery.java index 4c57da1171..1b9d8d6403 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/Discovery.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/Discovery.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -461,6 +461,9 @@ public ServiceCall createCollection( if (createCollectionOptions.language() != null) { contentJson.addProperty("language", createCollectionOptions.language()); } + if (createCollectionOptions.ocrEnabled() != null) { + contentJson.addProperty("ocr_enabled", createCollectionOptions.ocrEnabled()); + } if (createCollectionOptions.enrichments() != null) { contentJson.add( "enrichments", @@ -555,6 +558,9 @@ public ServiceCall updateCollection( if (updateCollectionOptions.description() != null) { contentJson.addProperty("description", updateCollectionOptions.description()); } + if (updateCollectionOptions.ocrEnabled() != null) { + contentJson.addProperty("ocr_enabled", updateCollectionOptions.ocrEnabled()); + } if (updateCollectionOptions.enrichments() != null) { contentJson.add( "enrichments", diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/AddDocumentOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/AddDocumentOptions.java index 54e3033155..05a344f3a1 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/AddDocumentOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/AddDocumentOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -198,8 +198,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -210,7 +210,7 @@ public String projectId() { /** * Gets the collectionId. * - *

The ID of the collection. + *

The Universally Unique Identifier (UUID) of the collection. * * @return the collectionId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/AnalyzeDocumentOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/AnalyzeDocumentOptions.java index 2bc85ff450..6dc3b70415 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/AnalyzeDocumentOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/AnalyzeDocumentOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -183,8 +183,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -195,7 +195,7 @@ public String projectId() { /** * Gets the collectionId. * - *

The ID of the collection. + *

The Universally Unique Identifier (UUID) of the collection. * * @return the collectionId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/Collection.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/Collection.java index 14e8baeec3..d28360d271 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/Collection.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/Collection.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ protected Collection() {} /** * Gets the collectionId. * - *

The unique identifier of the collection. + *

The Universally Unique Identifier (UUID) of the collection. * * @return the collectionId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CollectionDetails.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CollectionDetails.java index 32369a1b83..de72e97bbe 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CollectionDetails.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CollectionDetails.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -28,6 +28,10 @@ public class CollectionDetails extends GenericModel { protected String description; protected Date created; protected String language; + + @SerializedName("ocr_enabled") + protected Boolean ocrEnabled; + protected List enrichments; @SerializedName("smart_document_understanding") @@ -38,6 +42,7 @@ public static class Builder { private String name; private String description; private String language; + private Boolean ocrEnabled; private List enrichments; /** @@ -49,6 +54,7 @@ private Builder(CollectionDetails collectionDetails) { this.name = collectionDetails.name; this.description = collectionDetails.description; this.language = collectionDetails.language; + this.ocrEnabled = collectionDetails.ocrEnabled; this.enrichments = collectionDetails.enrichments; } @@ -121,6 +127,17 @@ public Builder language(String language) { return this; } + /** + * Set the ocrEnabled. + * + * @param ocrEnabled the ocrEnabled + * @return the CollectionDetails builder + */ + public Builder ocrEnabled(Boolean ocrEnabled) { + this.ocrEnabled = ocrEnabled; + return this; + } + /** * Set the enrichments. Existing enrichments will be replaced. * @@ -140,6 +157,7 @@ protected CollectionDetails(Builder builder) { name = builder.name; description = builder.description; language = builder.language; + ocrEnabled = builder.ocrEnabled; enrichments = builder.enrichments; } @@ -155,7 +173,7 @@ public Builder newBuilder() { /** * Gets the collectionId. * - *

The unique identifier of the collection. + *

The Universally Unique Identifier (UUID) of the collection. * * @return the collectionId */ @@ -208,6 +226,18 @@ public String language() { return language; } + /** + * Gets the ocrEnabled. + * + *

If set to `true`, optical character recognition (OCR) is enabled. For more information, see + * [Optical character recognition](/docs/discovery-data?topic=discovery-data-collections#ocr). + * + * @return the ocrEnabled + */ + public Boolean ocrEnabled() { + return ocrEnabled; + } + /** * Gets the enrichments. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateCollectionOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateCollectionOptions.java index 75dab15c55..2639f8ce8d 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateCollectionOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateCollectionOptions.java @@ -23,6 +23,7 @@ public class CreateCollectionOptions extends GenericModel { protected String name; protected String description; protected String language; + protected Boolean ocrEnabled; protected List enrichments; /** Builder. */ @@ -31,6 +32,7 @@ public static class Builder { private String name; private String description; private String language; + private Boolean ocrEnabled; private List enrichments; /** @@ -43,6 +45,7 @@ private Builder(CreateCollectionOptions createCollectionOptions) { this.name = createCollectionOptions.name; this.description = createCollectionOptions.description; this.language = createCollectionOptions.language; + this.ocrEnabled = createCollectionOptions.ocrEnabled; this.enrichments = createCollectionOptions.enrichments; } @@ -128,6 +131,17 @@ public Builder language(String language) { return this; } + /** + * Set the ocrEnabled. + * + * @param ocrEnabled the ocrEnabled + * @return the CreateCollectionOptions builder + */ + public Builder ocrEnabled(Boolean ocrEnabled) { + this.ocrEnabled = ocrEnabled; + return this; + } + /** * Set the enrichments. Existing enrichments will be replaced. * @@ -149,6 +163,7 @@ public Builder collectionDetails(CollectionDetails collectionDetails) { this.name = collectionDetails.name(); this.description = collectionDetails.description(); this.language = collectionDetails.language(); + this.ocrEnabled = collectionDetails.ocrEnabled(); this.enrichments = collectionDetails.enrichments(); return this; } @@ -163,6 +178,7 @@ protected CreateCollectionOptions(Builder builder) { name = builder.name; description = builder.description; language = builder.language; + ocrEnabled = builder.ocrEnabled; enrichments = builder.enrichments; } @@ -178,8 +194,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -221,6 +237,18 @@ public String language() { return language; } + /** + * Gets the ocrEnabled. + * + *

If set to `true`, optical character recognition (OCR) is enabled. For more information, see + * [Optical character recognition](/docs/discovery-data?topic=discovery-data-collections#ocr). + * + * @return the ocrEnabled + */ + public Boolean ocrEnabled() { + return ocrEnabled; + } + /** * Gets the enrichments. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateDocumentClassifierModelOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateDocumentClassifierModelOptions.java index 6b52e96e83..48897a8242 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateDocumentClassifierModelOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateDocumentClassifierModelOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -247,8 +247,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -259,7 +259,7 @@ public String projectId() { /** * Gets the classifierId. * - *

The ID of the classifier. + *

The Universally Unique Identifier (UUID) of the classifier. * * @return the classifierId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateDocumentClassifierOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateDocumentClassifierOptions.java index bfb752f14d..51976ee219 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateDocumentClassifierOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateDocumentClassifierOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -165,8 +165,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateEnrichmentOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateEnrichmentOptions.java index afef4fb769..b2cabc0748 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateEnrichmentOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateEnrichmentOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -133,8 +133,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateExpansionsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateExpansionsOptions.java index f11a60cd34..2f01b64902 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateExpansionsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateExpansionsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -149,8 +149,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -161,7 +161,7 @@ public String projectId() { /** * Gets the collectionId. * - *

The ID of the collection. + *

The Universally Unique Identifier (UUID) of the collection. * * @return the collectionId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateProjectOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateProjectOptions.java index 3745946086..2bbb2a25fc 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateProjectOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateProjectOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -25,8 +25,13 @@ public class CreateProjectOptions extends GenericModel { * *

The `content_mining` and `content_intelligence` types are available with Premium plan * managed deployments and installed deployments only. + * + *

The Intelligent Document Processing (IDP) project type is available from IBM Cloud-managed + * instances only. */ public interface Type { + /** intelligent_document_processing. */ + String INTELLIGENT_DOCUMENT_PROCESSING = "intelligent_document_processing"; /** document_retrieval. */ String DOCUMENT_RETRIEVAL = "document_retrieval"; /** conversational_search. */ @@ -158,6 +163,9 @@ public String name() { *

The `content_mining` and `content_intelligence` types are available with Premium plan * managed deployments and installed deployments only. * + *

The Intelligent Document Processing (IDP) project type is available from IBM Cloud-managed + * instances only. + * * @return the type */ public String type() { diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateStopwordListOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateStopwordListOptions.java index 1e4302bc3d..d44facf9f6 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateStopwordListOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateStopwordListOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -146,8 +146,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -158,7 +158,7 @@ public String projectId() { /** * Gets the collectionId. * - *

The ID of the collection. + *

The Universally Unique Identifier (UUID) of the collection. * * @return the collectionId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateTrainingQueryOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateTrainingQueryOptions.java index a4f287bb35..995f327507 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateTrainingQueryOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/CreateTrainingQueryOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -166,8 +166,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteCollectionOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteCollectionOptions.java index a107533818..0c25b6fc0a 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteCollectionOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteCollectionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -103,8 +103,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -115,7 +115,7 @@ public String projectId() { /** * Gets the collectionId. * - *

The ID of the collection. + *

The Universally Unique Identifier (UUID) of the collection. * * @return the collectionId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteDocumentClassifierModelOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteDocumentClassifierModelOptions.java index ff405f1244..467bec5b2c 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteDocumentClassifierModelOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteDocumentClassifierModelOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -121,8 +121,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -133,7 +133,7 @@ public String projectId() { /** * Gets the classifierId. * - *

The ID of the classifier. + *

The Universally Unique Identifier (UUID) of the classifier. * * @return the classifierId */ @@ -144,7 +144,7 @@ public String classifierId() { /** * Gets the modelId. * - *

The ID of the classifier model. + *

The Universally Unique Identifier (UUID) of the classifier model. * * @return the modelId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteDocumentClassifierOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteDocumentClassifierOptions.java index 2654a62467..6621b9daad 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteDocumentClassifierOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteDocumentClassifierOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -103,8 +103,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -115,7 +115,7 @@ public String projectId() { /** * Gets the classifierId. * - *

The ID of the classifier. + *

The Universally Unique Identifier (UUID) of the classifier. * * @return the classifierId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteDocumentOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteDocumentOptions.java index 044f348e88..6b3af91f90 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteDocumentOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteDocumentOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -137,8 +137,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -149,7 +149,7 @@ public String projectId() { /** * Gets the collectionId. * - *

The ID of the collection. + *

The Universally Unique Identifier (UUID) of the collection. * * @return the collectionId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteEnrichmentOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteEnrichmentOptions.java index 268815141b..d3352e016c 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteEnrichmentOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteEnrichmentOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -103,8 +103,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -115,7 +115,7 @@ public String projectId() { /** * Gets the enrichmentId. * - *

The ID of the enrichment. + *

The Universally Unique Identifier (UUID) of the enrichment. * * @return the enrichmentId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteExpansionsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteExpansionsOptions.java index 9e29583f45..579c54990e 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteExpansionsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteExpansionsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -103,8 +103,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -115,7 +115,7 @@ public String projectId() { /** * Gets the collectionId. * - *

The ID of the collection. + *

The Universally Unique Identifier (UUID) of the collection. * * @return the collectionId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteProjectOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteProjectOptions.java index e4742e4913..ec28501568 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteProjectOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteProjectOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -84,8 +84,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteStopwordListOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteStopwordListOptions.java index 8bc20aef0b..4eece27c53 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteStopwordListOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteStopwordListOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -103,8 +103,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -115,7 +115,7 @@ public String projectId() { /** * Gets the collectionId. * - *

The ID of the collection. + *

The Universally Unique Identifier (UUID) of the collection. * * @return the collectionId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteTrainingQueriesOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteTrainingQueriesOptions.java index b433df6e77..1a2d0c6a6d 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteTrainingQueriesOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteTrainingQueriesOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -84,8 +84,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteTrainingQueryOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteTrainingQueryOptions.java index 481e9178b2..68cbc1bf3e 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteTrainingQueryOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DeleteTrainingQueryOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2021, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -102,8 +102,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DocumentClassifier.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DocumentClassifier.java index 416bf501a7..bb2236f4c1 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DocumentClassifier.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DocumentClassifier.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -49,7 +49,7 @@ protected DocumentClassifier() {} /** * Gets the classifierId. * - *

A unique identifier of the document classifier. + *

The Universally Unique Identifier (UUID) of the document classifier. * * @return the classifierId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DocumentClassifierEnrichment.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DocumentClassifierEnrichment.java index 2f6fab78d3..2709b5b8ac 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DocumentClassifierEnrichment.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DocumentClassifierEnrichment.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -126,7 +126,7 @@ public Builder newBuilder() { /** * Gets the enrichmentId. * - *

A unique identifier of the enrichment. + *

The Universally Unique Identifier (UUID) of the enrichment. * * @return the enrichmentId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DocumentClassifierModel.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DocumentClassifierModel.java index ccbef44617..873a2aafd9 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DocumentClassifierModel.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/DocumentClassifierModel.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -57,7 +57,7 @@ protected DocumentClassifierModel() {} /** * Gets the modelId. * - *

A unique identifier of the document classifier model. + *

The Universally Unique Identifier (UUID) of the document classifier model. * * @return the modelId */ @@ -158,7 +158,8 @@ public ClassifierModelEvaluation getEvaluation() { /** * Gets the enrichmentId. * - *

A unique identifier of the enrichment that is generated by this document classifier model. + *

The Universally Unique Identifier (UUID) of the enrichment that is generated by this + * document classifier model. * * @return the enrichmentId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/Enrichment.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/Enrichment.java index bb29b3da3c..ee2799b93d 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/Enrichment.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/Enrichment.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -57,7 +57,7 @@ protected Enrichment() {} /** * Gets the enrichmentId. * - *

The unique identifier of this enrichment. + *

The Universally Unique Identifier (UUID) of this enrichment. * * @return the enrichmentId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/EnrichmentOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/EnrichmentOptions.java index abd9e9c3ec..0f7c7990a4 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/EnrichmentOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/EnrichmentOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -343,8 +343,8 @@ public String resultField() { /** * Gets the classifierId. * - *

A unique identifier of the document classifier. Required when **type** is `classifier`. Not - * valid when creating any other type of enrichment. + *

The Universally Unique Identifier (UUID) of the document classifier. Required when **type** + * is `classifier`. Not valid when creating any other type of enrichment. * * @return the classifierId */ @@ -355,8 +355,8 @@ public String classifierId() { /** * Gets the modelId. * - *

A unique identifier of the document classifier model. Required when **type** is - * `classifier`. Not valid when creating any other type of enrichment. + *

The Universally Unique Identifier (UUID) of the document classifier model. Required when + * **type** is `classifier`. Not valid when creating any other type of enrichment. * * @return the modelId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetAutocompletionOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetAutocompletionOptions.java index cb0bc335d0..b5333d9f63 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetAutocompletionOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetAutocompletionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -164,8 +164,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetCollectionOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetCollectionOptions.java index fa1fa328bd..8004d9dd1d 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetCollectionOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetCollectionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -103,8 +103,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -115,7 +115,7 @@ public String projectId() { /** * Gets the collectionId. * - *

The ID of the collection. + *

The Universally Unique Identifier (UUID) of the collection. * * @return the collectionId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetComponentSettingsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetComponentSettingsOptions.java index 29f9f72bb9..f4a1786cb7 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetComponentSettingsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetComponentSettingsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -84,8 +84,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetDocumentClassifierModelOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetDocumentClassifierModelOptions.java index 7b500a3b3c..538c2a8639 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetDocumentClassifierModelOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetDocumentClassifierModelOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -121,8 +121,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -133,7 +133,7 @@ public String projectId() { /** * Gets the classifierId. * - *

The ID of the classifier. + *

The Universally Unique Identifier (UUID) of the classifier. * * @return the classifierId */ @@ -144,7 +144,7 @@ public String classifierId() { /** * Gets the modelId. * - *

The ID of the classifier model. + *

The Universally Unique Identifier (UUID) of the classifier model. * * @return the modelId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetDocumentClassifierOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetDocumentClassifierOptions.java index f4d2fd916e..2180e777cc 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetDocumentClassifierOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetDocumentClassifierOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -103,8 +103,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -115,7 +115,7 @@ public String projectId() { /** * Gets the classifierId. * - *

The ID of the classifier. + *

The Universally Unique Identifier (UUID) of the classifier. * * @return the classifierId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetDocumentOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetDocumentOptions.java index 82f8546fa3..d1e7dff778 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetDocumentOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetDocumentOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -122,8 +122,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -134,7 +134,7 @@ public String projectId() { /** * Gets the collectionId. * - *

The ID of the collection. + *

The Universally Unique Identifier (UUID) of the collection. * * @return the collectionId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetEnrichmentOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetEnrichmentOptions.java index e5e0f36a91..70255215fd 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetEnrichmentOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetEnrichmentOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -103,8 +103,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -115,7 +115,7 @@ public String projectId() { /** * Gets the enrichmentId. * - *

The ID of the enrichment. + *

The Universally Unique Identifier (UUID) of the enrichment. * * @return the enrichmentId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetProjectOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetProjectOptions.java index 5f8ea41357..fc340a8fe3 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetProjectOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetProjectOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -84,8 +84,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetStopwordListOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetStopwordListOptions.java index 8cd9a34849..bc1edf167a 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetStopwordListOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetStopwordListOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -103,8 +103,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -115,7 +115,7 @@ public String projectId() { /** * Gets the collectionId. * - *

The ID of the collection. + *

The Universally Unique Identifier (UUID) of the collection. * * @return the collectionId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetTrainingQueryOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetTrainingQueryOptions.java index c22be101f4..52bf5a1945 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetTrainingQueryOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/GetTrainingQueryOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -102,8 +102,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListCollectionsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListCollectionsOptions.java index c795eca96c..71c938cf83 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListCollectionsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListCollectionsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -84,8 +84,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListDocumentClassifierModelsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListDocumentClassifierModelsOptions.java index 044307e117..3f729b1a75 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListDocumentClassifierModelsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListDocumentClassifierModelsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -103,8 +103,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -115,7 +115,7 @@ public String projectId() { /** * Gets the classifierId. * - *

The ID of the classifier. + *

The Universally Unique Identifier (UUID) of the classifier. * * @return the classifierId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListDocumentClassifiersOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListDocumentClassifiersOptions.java index aa3aa8439d..d089dd59e9 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListDocumentClassifiersOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListDocumentClassifiersOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -84,8 +84,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListDocumentsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListDocumentsOptions.java index 8812f0d775..3e92139d8c 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListDocumentsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListDocumentsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -193,8 +193,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -205,7 +205,7 @@ public String projectId() { /** * Gets the collectionId. * - *

The ID of the collection. + *

The Universally Unique Identifier (UUID) of the collection. * * @return the collectionId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListEnrichmentsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListEnrichmentsOptions.java index af02273a6b..e2bf7b7a7f 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListEnrichmentsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListEnrichmentsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -84,8 +84,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListExpansionsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListExpansionsOptions.java index cf23ea4ac7..7a3d9487d0 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListExpansionsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListExpansionsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -103,8 +103,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -115,7 +115,7 @@ public String projectId() { /** * Gets the collectionId. * - *

The ID of the collection. + *

The Universally Unique Identifier (UUID) of the collection. * * @return the collectionId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListFieldsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListFieldsOptions.java index 66ddd804da..5802e7695d 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListFieldsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListFieldsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -116,8 +116,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListTrainingQueriesOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListTrainingQueriesOptions.java index 85696804c2..bf6aed6393 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListTrainingQueriesOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ListTrainingQueriesOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -84,8 +84,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ProjectDetails.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ProjectDetails.java index d01aa92fa7..4668e27b9e 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ProjectDetails.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ProjectDetails.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -26,8 +26,13 @@ public class ProjectDetails extends GenericModel { * *

The `content_mining` and `content_intelligence` types are available with Premium plan * managed deployments and installed deployments only. + * + *

The Intelligent Document Processing (IDP) project type is available from IBM Cloud-managed + * instances only. */ public interface Type { + /** intelligent_document_processing. */ + String INTELLIGENT_DOCUMENT_PROCESSING = "intelligent_document_processing"; /** document_retrieval. */ String DOCUMENT_RETRIEVAL = "document_retrieval"; /** conversational_search. */ @@ -60,7 +65,7 @@ protected ProjectDetails() {} /** * Gets the projectId. * - *

The unique identifier of this project. + *

The Universally Unique Identifier (UUID) of this project. * * @return the projectId */ @@ -90,6 +95,9 @@ public String getName() { *

The `content_mining` and `content_intelligence` types are available with Premium plan * managed deployments and installed deployments only. * + *

The Intelligent Document Processing (IDP) project type is available from IBM Cloud-managed + * instances only. + * * @return the type */ public String getType() { diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ProjectListDetails.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ProjectListDetails.java index 6b86430423..9078593684 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ProjectListDetails.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/ProjectListDetails.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -26,8 +26,13 @@ public class ProjectListDetails extends GenericModel { * *

The `content_mining` and `content_intelligence` types are available with Premium plan * managed deployments and installed deployments only. + * + *

The Intelligent Document Processing (IDP) project type is available from IBM Cloud-managed + * instances only. */ public interface Type { + /** intelligent_document_processing. */ + String INTELLIGENT_DOCUMENT_PROCESSING = "intelligent_document_processing"; /** document_retrieval. */ String DOCUMENT_RETRIEVAL = "document_retrieval"; /** conversational_search. */ @@ -57,7 +62,7 @@ protected ProjectListDetails() {} /** * Gets the projectId. * - *

The unique identifier of this project. + *

The Universally Unique Identifier (UUID) of this project. * * @return the projectId */ @@ -87,6 +92,9 @@ public String getName() { *

The `content_mining` and `content_intelligence` types are available with Premium plan * managed deployments and installed deployments only. * + *

The Intelligent Document Processing (IDP) project type is available from IBM Cloud-managed + * instances only. + * * @return the type */ public String getType() { diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/QueryNoticesOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/QueryNoticesOptions.java index 9d3bf11ee5..d081aacbba 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/QueryNoticesOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/QueryNoticesOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -159,8 +159,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/QueryOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/QueryOptions.java index ffc81b1a00..d7b9949bb6 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/QueryOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/QueryOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -341,8 +341,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateCollectionOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateCollectionOptions.java index 3b39280c5f..eef4a08404 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateCollectionOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateCollectionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -23,6 +23,7 @@ public class UpdateCollectionOptions extends GenericModel { protected String collectionId; protected String name; protected String description; + protected Boolean ocrEnabled; protected List enrichments; /** Builder. */ @@ -31,6 +32,7 @@ public static class Builder { private String collectionId; private String name; private String description; + private Boolean ocrEnabled; private List enrichments; /** @@ -43,6 +45,7 @@ private Builder(UpdateCollectionOptions updateCollectionOptions) { this.collectionId = updateCollectionOptions.collectionId; this.name = updateCollectionOptions.name; this.description = updateCollectionOptions.description; + this.ocrEnabled = updateCollectionOptions.ocrEnabled; this.enrichments = updateCollectionOptions.enrichments; } @@ -128,6 +131,17 @@ public Builder description(String description) { return this; } + /** + * Set the ocrEnabled. + * + * @param ocrEnabled the ocrEnabled + * @return the UpdateCollectionOptions builder + */ + public Builder ocrEnabled(Boolean ocrEnabled) { + this.ocrEnabled = ocrEnabled; + return this; + } + /** * Set the enrichments. Existing enrichments will be replaced. * @@ -150,6 +164,7 @@ protected UpdateCollectionOptions(Builder builder) { collectionId = builder.collectionId; name = builder.name; description = builder.description; + ocrEnabled = builder.ocrEnabled; enrichments = builder.enrichments; } @@ -165,8 +180,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -177,7 +192,7 @@ public String projectId() { /** * Gets the collectionId. * - *

The ID of the collection. + *

The Universally Unique Identifier (UUID) of the collection. * * @return the collectionId */ @@ -207,6 +222,18 @@ public String description() { return description; } + /** + * Gets the ocrEnabled. + * + *

If set to `true`, optical character recognition (OCR) is enabled. For more information, see + * [Optical character recognition](/docs/discovery-data?topic=discovery-data-collections#ocr). + * + * @return the ocrEnabled + */ + public Boolean ocrEnabled() { + return ocrEnabled; + } + /** * Gets the enrichments. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateDocumentClassifierModelOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateDocumentClassifierModelOptions.java index 525073642d..66e2ba952e 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateDocumentClassifierModelOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateDocumentClassifierModelOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -151,8 +151,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -163,7 +163,7 @@ public String projectId() { /** * Gets the classifierId. * - *

The ID of the classifier. + *

The Universally Unique Identifier (UUID) of the classifier. * * @return the classifierId */ @@ -174,7 +174,7 @@ public String classifierId() { /** * Gets the modelId. * - *

The ID of the classifier model. + *

The Universally Unique Identifier (UUID) of the classifier model. * * @return the modelId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateDocumentClassifierOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateDocumentClassifierOptions.java index c4df0c2030..1e9cb9c83c 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateDocumentClassifierOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateDocumentClassifierOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -179,8 +179,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -191,7 +191,7 @@ public String projectId() { /** * Gets the classifierId. * - *

The ID of the classifier. + *

The Universally Unique Identifier (UUID) of the classifier. * * @return the classifierId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateDocumentOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateDocumentOptions.java index d68bce22f7..a0ab82a09d 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateDocumentOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateDocumentOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -217,8 +217,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -229,7 +229,7 @@ public String projectId() { /** * Gets the collectionId. * - *

The ID of the collection. + *

The Universally Unique Identifier (UUID) of the collection. * * @return the collectionId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateEnrichmentOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateEnrichmentOptions.java index a1b2e34647..ecdce8fece 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateEnrichmentOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateEnrichmentOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -136,8 +136,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ @@ -148,7 +148,7 @@ public String projectId() { /** * Gets the enrichmentId. * - *

The ID of the enrichment. + *

The Universally Unique Identifier (UUID) of the enrichment. * * @return the enrichmentId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateProjectOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateProjectOptions.java index e0e06421ab..5c98fde702 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateProjectOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateProjectOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -99,8 +99,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateTrainingQueryOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateTrainingQueryOptions.java index fee05dbbfb..ee54eb4b0a 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateTrainingQueryOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v2/model/UpdateTrainingQueryOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -188,8 +188,8 @@ public Builder newBuilder() { /** * Gets the projectId. * - *

The ID of the project. This information can be found from the *Integrate and Deploy* page in - * Discovery. + *

The Universally Unique Identifier (UUID) of the project. This information can be found from + * the *Integrate and Deploy* page in Discovery. * * @return the projectId */ diff --git a/discovery/src/test/java/com/ibm/watson/discovery/v2/DiscoveryTest.java b/discovery/src/test/java/com/ibm/watson/discovery/v2/DiscoveryTest.java index 16e6d15a1e..6ce64ff653 100644 --- a/discovery/src/test/java/com/ibm/watson/discovery/v2/DiscoveryTest.java +++ b/discovery/src/test/java/com/ibm/watson/discovery/v2/DiscoveryTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -154,7 +154,7 @@ public void testGetVersion() throws Throwable { public void testListProjectsWOptions() throws Throwable { // Register a mock response String mockResponseBody = - "{\"projects\": [{\"project_id\": \"projectId\", \"name\": \"name\", \"type\": \"document_retrieval\", \"relevancy_training_status\": {\"data_updated\": \"dataUpdated\", \"total_examples\": 13, \"sufficient_label_diversity\": true, \"processing\": true, \"minimum_examples_added\": true, \"successfully_trained\": \"successfullyTrained\", \"available\": false, \"notices\": 7, \"minimum_queries_added\": false}, \"collection_count\": 15}]}"; + "{\"projects\": [{\"project_id\": \"projectId\", \"name\": \"name\", \"type\": \"intelligent_document_processing\", \"relevancy_training_status\": {\"data_updated\": \"dataUpdated\", \"total_examples\": 13, \"sufficient_label_diversity\": true, \"processing\": true, \"minimum_examples_added\": true, \"successfully_trained\": \"successfullyTrained\", \"available\": false, \"notices\": 7, \"minimum_queries_added\": false}, \"collection_count\": 15}]}"; String listProjectsPath = "/v2/projects"; server.enqueue( new MockResponse() @@ -200,7 +200,7 @@ public void testListProjectsWRetries() throws Throwable { public void testCreateProjectWOptions() throws Throwable { // Register a mock response String mockResponseBody = - "{\"project_id\": \"projectId\", \"name\": \"name\", \"type\": \"document_retrieval\", \"relevancy_training_status\": {\"data_updated\": \"dataUpdated\", \"total_examples\": 13, \"sufficient_label_diversity\": true, \"processing\": true, \"minimum_examples_added\": true, \"successfully_trained\": \"successfullyTrained\", \"available\": false, \"notices\": 7, \"minimum_queries_added\": false}, \"collection_count\": 15, \"default_query_parameters\": {\"collection_ids\": [\"collectionIds\"], \"passages\": {\"enabled\": false, \"count\": 5, \"fields\": [\"fields\"], \"characters\": 10, \"per_document\": false, \"max_per_document\": 14}, \"table_results\": {\"enabled\": false, \"count\": 5, \"per_document\": 0}, \"aggregation\": \"aggregation\", \"suggested_refinements\": {\"enabled\": false, \"count\": 5}, \"spelling_suggestions\": false, \"highlight\": false, \"count\": 5, \"sort\": \"sort\", \"return\": [\"xReturn\"]}}"; + "{\"project_id\": \"projectId\", \"name\": \"name\", \"type\": \"intelligent_document_processing\", \"relevancy_training_status\": {\"data_updated\": \"dataUpdated\", \"total_examples\": 13, \"sufficient_label_diversity\": true, \"processing\": true, \"minimum_examples_added\": true, \"successfully_trained\": \"successfullyTrained\", \"available\": false, \"notices\": 7, \"minimum_queries_added\": false}, \"collection_count\": 15, \"default_query_parameters\": {\"collection_ids\": [\"collectionIds\"], \"passages\": {\"enabled\": false, \"count\": 5, \"fields\": [\"fields\"], \"characters\": 10, \"per_document\": false, \"max_per_document\": 14}, \"table_results\": {\"enabled\": false, \"count\": 5, \"per_document\": 0}, \"aggregation\": \"aggregation\", \"suggested_refinements\": {\"enabled\": false, \"count\": 5}, \"spelling_suggestions\": false, \"highlight\": false, \"count\": 5, \"sort\": \"sort\", \"return\": [\"xReturn\"]}}"; String createProjectPath = "/v2/projects"; server.enqueue( new MockResponse() @@ -253,7 +253,7 @@ public void testCreateProjectWOptions() throws Throwable { CreateProjectOptions createProjectOptionsModel = new CreateProjectOptions.Builder() .name("testString") - .type("document_retrieval") + .type("intelligent_document_processing") .defaultQueryParameters(defaultQueryParamsModel) .build(); @@ -299,7 +299,7 @@ public void testCreateProjectNoOptions() throws Throwable { public void testGetProjectWOptions() throws Throwable { // Register a mock response String mockResponseBody = - "{\"project_id\": \"projectId\", \"name\": \"name\", \"type\": \"document_retrieval\", \"relevancy_training_status\": {\"data_updated\": \"dataUpdated\", \"total_examples\": 13, \"sufficient_label_diversity\": true, \"processing\": true, \"minimum_examples_added\": true, \"successfully_trained\": \"successfullyTrained\", \"available\": false, \"notices\": 7, \"minimum_queries_added\": false}, \"collection_count\": 15, \"default_query_parameters\": {\"collection_ids\": [\"collectionIds\"], \"passages\": {\"enabled\": false, \"count\": 5, \"fields\": [\"fields\"], \"characters\": 10, \"per_document\": false, \"max_per_document\": 14}, \"table_results\": {\"enabled\": false, \"count\": 5, \"per_document\": 0}, \"aggregation\": \"aggregation\", \"suggested_refinements\": {\"enabled\": false, \"count\": 5}, \"spelling_suggestions\": false, \"highlight\": false, \"count\": 5, \"sort\": \"sort\", \"return\": [\"xReturn\"]}}"; + "{\"project_id\": \"projectId\", \"name\": \"name\", \"type\": \"intelligent_document_processing\", \"relevancy_training_status\": {\"data_updated\": \"dataUpdated\", \"total_examples\": 13, \"sufficient_label_diversity\": true, \"processing\": true, \"minimum_examples_added\": true, \"successfully_trained\": \"successfullyTrained\", \"available\": false, \"notices\": 7, \"minimum_queries_added\": false}, \"collection_count\": 15, \"default_query_parameters\": {\"collection_ids\": [\"collectionIds\"], \"passages\": {\"enabled\": false, \"count\": 5, \"fields\": [\"fields\"], \"characters\": 10, \"per_document\": false, \"max_per_document\": 14}, \"table_results\": {\"enabled\": false, \"count\": 5, \"per_document\": 0}, \"aggregation\": \"aggregation\", \"suggested_refinements\": {\"enabled\": false, \"count\": 5}, \"spelling_suggestions\": false, \"highlight\": false, \"count\": 5, \"sort\": \"sort\", \"return\": [\"xReturn\"]}}"; String getProjectPath = "/v2/projects/testString"; server.enqueue( new MockResponse() @@ -353,7 +353,7 @@ public void testGetProjectNoOptions() throws Throwable { public void testUpdateProjectWOptions() throws Throwable { // Register a mock response String mockResponseBody = - "{\"project_id\": \"projectId\", \"name\": \"name\", \"type\": \"document_retrieval\", \"relevancy_training_status\": {\"data_updated\": \"dataUpdated\", \"total_examples\": 13, \"sufficient_label_diversity\": true, \"processing\": true, \"minimum_examples_added\": true, \"successfully_trained\": \"successfullyTrained\", \"available\": false, \"notices\": 7, \"minimum_queries_added\": false}, \"collection_count\": 15, \"default_query_parameters\": {\"collection_ids\": [\"collectionIds\"], \"passages\": {\"enabled\": false, \"count\": 5, \"fields\": [\"fields\"], \"characters\": 10, \"per_document\": false, \"max_per_document\": 14}, \"table_results\": {\"enabled\": false, \"count\": 5, \"per_document\": 0}, \"aggregation\": \"aggregation\", \"suggested_refinements\": {\"enabled\": false, \"count\": 5}, \"spelling_suggestions\": false, \"highlight\": false, \"count\": 5, \"sort\": \"sort\", \"return\": [\"xReturn\"]}}"; + "{\"project_id\": \"projectId\", \"name\": \"name\", \"type\": \"intelligent_document_processing\", \"relevancy_training_status\": {\"data_updated\": \"dataUpdated\", \"total_examples\": 13, \"sufficient_label_diversity\": true, \"processing\": true, \"minimum_examples_added\": true, \"successfully_trained\": \"successfullyTrained\", \"available\": false, \"notices\": 7, \"minimum_queries_added\": false}, \"collection_count\": 15, \"default_query_parameters\": {\"collection_ids\": [\"collectionIds\"], \"passages\": {\"enabled\": false, \"count\": 5, \"fields\": [\"fields\"], \"characters\": 10, \"per_document\": false, \"max_per_document\": 14}, \"table_results\": {\"enabled\": false, \"count\": 5, \"per_document\": 0}, \"aggregation\": \"aggregation\", \"suggested_refinements\": {\"enabled\": false, \"count\": 5}, \"spelling_suggestions\": false, \"highlight\": false, \"count\": 5, \"sort\": \"sort\", \"return\": [\"xReturn\"]}}"; String updateProjectPath = "/v2/projects/testString"; server.enqueue( new MockResponse() @@ -568,7 +568,7 @@ public void testListCollectionsNoOptions() throws Throwable { public void testCreateCollectionWOptions() throws Throwable { // Register a mock response String mockResponseBody = - "{\"collection_id\": \"collectionId\", \"name\": \"name\", \"description\": \"description\", \"created\": \"2019-01-01T12:00:00.000Z\", \"language\": \"en\", \"enrichments\": [{\"enrichment_id\": \"enrichmentId\", \"fields\": [\"fields\"]}], \"smart_document_understanding\": {\"enabled\": false, \"model\": \"custom\"}}"; + "{\"collection_id\": \"collectionId\", \"name\": \"name\", \"description\": \"description\", \"created\": \"2019-01-01T12:00:00.000Z\", \"language\": \"en\", \"ocr_enabled\": false, \"enrichments\": [{\"enrichment_id\": \"enrichmentId\", \"fields\": [\"fields\"]}], \"smart_document_understanding\": {\"enabled\": false, \"model\": \"custom\"}}"; String createCollectionPath = "/v2/projects/testString/collections"; server.enqueue( new MockResponse() @@ -590,6 +590,7 @@ public void testCreateCollectionWOptions() throws Throwable { .name("testString") .description("testString") .language("en") + .ocrEnabled(false) .enrichments(java.util.Arrays.asList(collectionEnrichmentModel)) .build(); @@ -635,7 +636,7 @@ public void testCreateCollectionNoOptions() throws Throwable { public void testGetCollectionWOptions() throws Throwable { // Register a mock response String mockResponseBody = - "{\"collection_id\": \"collectionId\", \"name\": \"name\", \"description\": \"description\", \"created\": \"2019-01-01T12:00:00.000Z\", \"language\": \"en\", \"enrichments\": [{\"enrichment_id\": \"enrichmentId\", \"fields\": [\"fields\"]}], \"smart_document_understanding\": {\"enabled\": false, \"model\": \"custom\"}}"; + "{\"collection_id\": \"collectionId\", \"name\": \"name\", \"description\": \"description\", \"created\": \"2019-01-01T12:00:00.000Z\", \"language\": \"en\", \"ocr_enabled\": false, \"enrichments\": [{\"enrichment_id\": \"enrichmentId\", \"fields\": [\"fields\"]}], \"smart_document_understanding\": {\"enabled\": false, \"model\": \"custom\"}}"; String getCollectionPath = "/v2/projects/testString/collections/testString"; server.enqueue( new MockResponse() @@ -692,7 +693,7 @@ public void testGetCollectionNoOptions() throws Throwable { public void testUpdateCollectionWOptions() throws Throwable { // Register a mock response String mockResponseBody = - "{\"collection_id\": \"collectionId\", \"name\": \"name\", \"description\": \"description\", \"created\": \"2019-01-01T12:00:00.000Z\", \"language\": \"en\", \"enrichments\": [{\"enrichment_id\": \"enrichmentId\", \"fields\": [\"fields\"]}], \"smart_document_understanding\": {\"enabled\": false, \"model\": \"custom\"}}"; + "{\"collection_id\": \"collectionId\", \"name\": \"name\", \"description\": \"description\", \"created\": \"2019-01-01T12:00:00.000Z\", \"language\": \"en\", \"ocr_enabled\": false, \"enrichments\": [{\"enrichment_id\": \"enrichmentId\", \"fields\": [\"fields\"]}], \"smart_document_understanding\": {\"enabled\": false, \"model\": \"custom\"}}"; String updateCollectionPath = "/v2/projects/testString/collections/testString"; server.enqueue( new MockResponse() @@ -714,6 +715,7 @@ public void testUpdateCollectionWOptions() throws Throwable { .collectionId("testString") .name("testString") .description("testString") + .ocrEnabled(false) .enrichments(java.util.Arrays.asList(collectionEnrichmentModel)) .build(); diff --git a/discovery/src/test/java/com/ibm/watson/discovery/v2/model/CollectionDetailsTest.java b/discovery/src/test/java/com/ibm/watson/discovery/v2/model/CollectionDetailsTest.java index 65908242fd..9ad40e1d09 100644 --- a/discovery/src/test/java/com/ibm/watson/discovery/v2/model/CollectionDetailsTest.java +++ b/discovery/src/test/java/com/ibm/watson/discovery/v2/model/CollectionDetailsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -43,11 +43,13 @@ public void testCollectionDetails() throws Throwable { .name("testString") .description("testString") .language("en") + .ocrEnabled(false) .enrichments(java.util.Arrays.asList(collectionEnrichmentModel)) .build(); assertEquals(collectionDetailsModel.name(), "testString"); assertEquals(collectionDetailsModel.description(), "testString"); assertEquals(collectionDetailsModel.language(), "en"); + assertEquals(collectionDetailsModel.ocrEnabled(), Boolean.valueOf(false)); assertEquals( collectionDetailsModel.enrichments(), java.util.Arrays.asList(collectionEnrichmentModel)); @@ -59,6 +61,7 @@ public void testCollectionDetails() throws Throwable { assertEquals(collectionDetailsModelNew.name(), "testString"); assertEquals(collectionDetailsModelNew.description(), "testString"); assertEquals(collectionDetailsModelNew.language(), "en"); + assertEquals(collectionDetailsModelNew.ocrEnabled(), Boolean.valueOf(false)); } @Test(expectedExceptions = IllegalArgumentException.class) diff --git a/discovery/src/test/java/com/ibm/watson/discovery/v2/model/CreateCollectionOptionsTest.java b/discovery/src/test/java/com/ibm/watson/discovery/v2/model/CreateCollectionOptionsTest.java index b8b78bee39..05d6150b2c 100644 --- a/discovery/src/test/java/com/ibm/watson/discovery/v2/model/CreateCollectionOptionsTest.java +++ b/discovery/src/test/java/com/ibm/watson/discovery/v2/model/CreateCollectionOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -44,12 +44,14 @@ public void testCreateCollectionOptions() throws Throwable { .name("testString") .description("testString") .language("en") + .ocrEnabled(false) .enrichments(java.util.Arrays.asList(collectionEnrichmentModel)) .build(); assertEquals(createCollectionOptionsModel.projectId(), "testString"); assertEquals(createCollectionOptionsModel.name(), "testString"); assertEquals(createCollectionOptionsModel.description(), "testString"); assertEquals(createCollectionOptionsModel.language(), "en"); + assertEquals(createCollectionOptionsModel.ocrEnabled(), Boolean.valueOf(false)); assertEquals( createCollectionOptionsModel.enrichments(), java.util.Arrays.asList(collectionEnrichmentModel)); diff --git a/discovery/src/test/java/com/ibm/watson/discovery/v2/model/CreateProjectOptionsTest.java b/discovery/src/test/java/com/ibm/watson/discovery/v2/model/CreateProjectOptionsTest.java index 5571c63216..37e4c5ad4a 100644 --- a/discovery/src/test/java/com/ibm/watson/discovery/v2/model/CreateProjectOptionsTest.java +++ b/discovery/src/test/java/com/ibm/watson/discovery/v2/model/CreateProjectOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2024. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -93,11 +93,11 @@ public void testCreateProjectOptions() throws Throwable { CreateProjectOptions createProjectOptionsModel = new CreateProjectOptions.Builder() .name("testString") - .type("document_retrieval") + .type("intelligent_document_processing") .defaultQueryParameters(defaultQueryParamsModel) .build(); assertEquals(createProjectOptionsModel.name(), "testString"); - assertEquals(createProjectOptionsModel.type(), "document_retrieval"); + assertEquals(createProjectOptionsModel.type(), "intelligent_document_processing"); assertEquals(createProjectOptionsModel.defaultQueryParameters(), defaultQueryParamsModel); } diff --git a/discovery/src/test/java/com/ibm/watson/discovery/v2/model/UpdateCollectionOptionsTest.java b/discovery/src/test/java/com/ibm/watson/discovery/v2/model/UpdateCollectionOptionsTest.java index 0b1cba8ba9..fdda3ad79a 100644 --- a/discovery/src/test/java/com/ibm/watson/discovery/v2/model/UpdateCollectionOptionsTest.java +++ b/discovery/src/test/java/com/ibm/watson/discovery/v2/model/UpdateCollectionOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2022. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -44,12 +44,14 @@ public void testUpdateCollectionOptions() throws Throwable { .collectionId("testString") .name("testString") .description("testString") + .ocrEnabled(false) .enrichments(java.util.Arrays.asList(collectionEnrichmentModel)) .build(); assertEquals(updateCollectionOptionsModel.projectId(), "testString"); assertEquals(updateCollectionOptionsModel.collectionId(), "testString"); assertEquals(updateCollectionOptionsModel.name(), "testString"); assertEquals(updateCollectionOptionsModel.description(), "testString"); + assertEquals(updateCollectionOptionsModel.ocrEnabled(), Boolean.valueOf(false)); assertEquals( updateCollectionOptionsModel.enrichments(), java.util.Arrays.asList(collectionEnrichmentModel));