From a810f01ef76b8513f26c0fc1a0e07a06d5bad50c Mon Sep 17 00:00:00 2001 From: repjarms Date: Tue, 7 Mar 2023 10:16:52 -0500 Subject: [PATCH] feat(discoveryv1): update based on latest api definitions updated protected methods in model classes and update javadoc strings --- .../java/com/ibm/watson/discovery/v1/Discovery.java | 6 ++++-- .../watson/discovery/v1/model/AddDocumentOptions.java | 7 ++++++- .../discovery/v1/model/AddTrainingDataOptions.java | 7 ++++++- .../com/ibm/watson/discovery/v1/model/Collection.java | 4 +++- .../discovery/v1/model/CollectionCrawlStatus.java | 4 +++- .../discovery/v1/model/CollectionDiskUsage.java | 4 +++- .../watson/discovery/v1/model/CollectionUsage.java | 4 +++- .../ibm/watson/discovery/v1/model/Completions.java | 4 +++- .../ibm/watson/discovery/v1/model/Configuration.java | 7 ++++++- .../ibm/watson/discovery/v1/model/Conversions.java | 7 ++++++- .../discovery/v1/model/CreateCollectionOptions.java | 7 ++++++- .../v1/model/CreateConfigurationOptions.java | 7 ++++++- .../discovery/v1/model/CreateCredentialsOptions.java | 7 ++++++- .../discovery/v1/model/CreateEnvironmentOptions.java | 7 ++++++- .../watson/discovery/v1/model/CreateEventOptions.java | 7 ++++++- .../discovery/v1/model/CreateEventResponse.java | 4 +++- .../discovery/v1/model/CreateExpansionsOptions.java | 7 ++++++- .../discovery/v1/model/CreateGatewayOptions.java | 7 ++++++- .../discovery/v1/model/CreateStopwordListOptions.java | 7 ++++++- .../v1/model/CreateTokenizationDictionaryOptions.java | 7 ++++++- .../v1/model/CreateTrainingExampleOptions.java | 7 ++++++- .../watson/discovery/v1/model/CredentialDetails.java | 7 ++++++- .../ibm/watson/discovery/v1/model/Credentials.java | 7 ++++++- .../watson/discovery/v1/model/CredentialsList.java | 4 +++- .../v1/model/DeleteAllTrainingDataOptions.java | 7 ++++++- .../discovery/v1/model/DeleteCollectionOptions.java | 7 ++++++- .../discovery/v1/model/DeleteCollectionResponse.java | 4 +++- .../v1/model/DeleteConfigurationOptions.java | 7 ++++++- .../v1/model/DeleteConfigurationResponse.java | 4 +++- .../watson/discovery/v1/model/DeleteCredentials.java | 4 +++- .../discovery/v1/model/DeleteCredentialsOptions.java | 7 ++++++- .../discovery/v1/model/DeleteDocumentOptions.java | 7 ++++++- .../discovery/v1/model/DeleteDocumentResponse.java | 4 +++- .../discovery/v1/model/DeleteEnvironmentOptions.java | 7 ++++++- .../discovery/v1/model/DeleteEnvironmentResponse.java | 4 +++- .../discovery/v1/model/DeleteExpansionsOptions.java | 7 ++++++- .../discovery/v1/model/DeleteGatewayOptions.java | 7 ++++++- .../discovery/v1/model/DeleteStopwordListOptions.java | 7 ++++++- .../v1/model/DeleteTokenizationDictionaryOptions.java | 7 ++++++- .../discovery/v1/model/DeleteTrainingDataOptions.java | 7 ++++++- .../v1/model/DeleteTrainingExampleOptions.java | 7 ++++++- .../discovery/v1/model/DeleteUserDataOptions.java | 7 ++++++- .../com/ibm/watson/discovery/v1/model/DiskUsage.java | 4 +++- .../watson/discovery/v1/model/DocumentAccepted.java | 4 +++- .../ibm/watson/discovery/v1/model/DocumentCounts.java | 4 +++- .../ibm/watson/discovery/v1/model/DocumentStatus.java | 4 +++- .../com/ibm/watson/discovery/v1/model/Enrichment.java | 7 ++++++- .../watson/discovery/v1/model/EnrichmentOptions.java | 11 ++++++++++- .../ibm/watson/discovery/v1/model/Environment.java | 4 +++- .../discovery/v1/model/EnvironmentDocuments.java | 4 +++- .../com/ibm/watson/discovery/v1/model/EventData.java | 7 ++++++- .../com/ibm/watson/discovery/v1/model/Expansion.java | 7 ++++++- .../com/ibm/watson/discovery/v1/model/Expansions.java | 7 ++++++- .../v1/model/FederatedQueryNoticesOptions.java | 7 ++++++- .../discovery/v1/model/FederatedQueryOptions.java | 7 ++++++- .../java/com/ibm/watson/discovery/v1/model/Field.java | 4 +++- .../ibm/watson/discovery/v1/model/FontSetting.java | 7 ++++++- .../com/ibm/watson/discovery/v1/model/Gateway.java | 4 +++- .../ibm/watson/discovery/v1/model/GatewayDelete.java | 4 +++- .../ibm/watson/discovery/v1/model/GatewayList.java | 4 +++- .../discovery/v1/model/GetAutocompletionOptions.java | 7 ++++++- .../discovery/v1/model/GetCollectionOptions.java | 7 ++++++- .../discovery/v1/model/GetConfigurationOptions.java | 7 ++++++- .../discovery/v1/model/GetCredentialsOptions.java | 7 ++++++- .../discovery/v1/model/GetDocumentStatusOptions.java | 7 ++++++- .../discovery/v1/model/GetEnvironmentOptions.java | 7 ++++++- .../watson/discovery/v1/model/GetGatewayOptions.java | 7 ++++++- .../v1/model/GetMetricsEventRateOptions.java | 7 ++++++- .../v1/model/GetMetricsQueryEventOptions.java | 7 ++++++- .../v1/model/GetMetricsQueryNoResultsOptions.java | 7 ++++++- .../discovery/v1/model/GetMetricsQueryOptions.java | 7 ++++++- .../v1/model/GetMetricsQueryTokenEventOptions.java | 7 ++++++- .../v1/model/GetStopwordListStatusOptions.java | 7 ++++++- .../model/GetTokenizationDictionaryStatusOptions.java | 7 ++++++- .../discovery/v1/model/GetTrainingDataOptions.java | 7 ++++++- .../discovery/v1/model/GetTrainingExampleOptions.java | 7 ++++++- .../ibm/watson/discovery/v1/model/HtmlSettings.java | 7 ++++++- .../ibm/watson/discovery/v1/model/IndexCapacity.java | 4 +++- .../v1/model/ListCollectionFieldsOptions.java | 7 ++++++- .../v1/model/ListCollectionFieldsResponse.java | 4 +++- .../discovery/v1/model/ListCollectionsOptions.java | 7 ++++++- .../discovery/v1/model/ListCollectionsResponse.java | 4 +++- .../discovery/v1/model/ListConfigurationsOptions.java | 7 ++++++- .../v1/model/ListConfigurationsResponse.java | 4 +++- .../discovery/v1/model/ListCredentialsOptions.java | 7 ++++++- .../discovery/v1/model/ListEnvironmentsOptions.java | 7 ++++++- .../discovery/v1/model/ListEnvironmentsResponse.java | 4 +++- .../discovery/v1/model/ListExpansionsOptions.java | 7 ++++++- .../watson/discovery/v1/model/ListFieldsOptions.java | 7 ++++++- .../discovery/v1/model/ListGatewaysOptions.java | 7 ++++++- .../discovery/v1/model/ListTrainingDataOptions.java | 7 ++++++- .../v1/model/ListTrainingExamplesOptions.java | 7 ++++++- .../watson/discovery/v1/model/LogQueryResponse.java | 4 +++- .../discovery/v1/model/LogQueryResponseResult.java | 4 +++- .../v1/model/LogQueryResponseResultDocuments.java | 4 +++- .../model/LogQueryResponseResultDocumentsResult.java | 4 +++- .../watson/discovery/v1/model/MetricAggregation.java | 4 +++- .../discovery/v1/model/MetricAggregationResult.java | 4 +++- .../ibm/watson/discovery/v1/model/MetricResponse.java | 4 +++- .../discovery/v1/model/MetricTokenAggregation.java | 4 +++- .../v1/model/MetricTokenAggregationResult.java | 4 +++- .../discovery/v1/model/MetricTokenResponse.java | 4 +++- .../discovery/v1/model/NluEnrichmentConcepts.java | 7 ++++++- .../discovery/v1/model/NluEnrichmentEmotion.java | 7 ++++++- .../discovery/v1/model/NluEnrichmentEntities.java | 7 ++++++- .../discovery/v1/model/NluEnrichmentFeatures.java | 7 ++++++- .../discovery/v1/model/NluEnrichmentKeywords.java | 7 ++++++- .../discovery/v1/model/NluEnrichmentRelations.java | 7 ++++++- .../v1/model/NluEnrichmentSemanticRoles.java | 7 ++++++- .../discovery/v1/model/NluEnrichmentSentiment.java | 7 ++++++- .../discovery/v1/model/NormalizationOperation.java | 7 ++++++- .../com/ibm/watson/discovery/v1/model/Notice.java | 4 +++- .../discovery/v1/model/PdfHeadingDetection.java | 7 ++++++- .../ibm/watson/discovery/v1/model/PdfSettings.java | 7 ++++++- .../watson/discovery/v1/model/QueryAggregation.java | 4 +++- .../v1/model/QueryCalculationAggregation.java | 4 +++- .../discovery/v1/model/QueryFilterAggregation.java | 4 +++- .../discovery/v1/model/QueryHistogramAggregation.java | 4 +++- .../v1/model/QueryHistogramAggregationResult.java | 4 +++- .../watson/discovery/v1/model/QueryLogOptions.java | 7 ++++++- .../discovery/v1/model/QueryNestedAggregation.java | 4 +++- .../discovery/v1/model/QueryNoticesOptions.java | 7 ++++++- .../discovery/v1/model/QueryNoticesResponse.java | 4 +++- .../ibm/watson/discovery/v1/model/QueryOptions.java | 7 ++++++- .../ibm/watson/discovery/v1/model/QueryPassages.java | 4 +++- .../ibm/watson/discovery/v1/model/QueryResponse.java | 4 +++- .../discovery/v1/model/QueryResultMetadata.java | 4 +++- .../discovery/v1/model/QueryTermAggregation.java | 4 +++- .../v1/model/QueryTermAggregationResult.java | 4 +++- .../discovery/v1/model/QueryTimesliceAggregation.java | 4 +++- .../v1/model/QueryTimesliceAggregationResult.java | 4 +++- .../discovery/v1/model/QueryTopHitsAggregation.java | 4 +++- .../v1/model/QueryTopHitsAggregationResult.java | 4 +++- .../watson/discovery/v1/model/RetrievalDetails.java | 4 +++- .../com/ibm/watson/discovery/v1/model/SduStatus.java | 4 +++- .../discovery/v1/model/SduStatusCustomFields.java | 4 +++- .../ibm/watson/discovery/v1/model/SearchStatus.java | 4 +++- .../watson/discovery/v1/model/SegmentSettings.java | 7 ++++++- .../com/ibm/watson/discovery/v1/model/Source.java | 7 ++++++- .../ibm/watson/discovery/v1/model/SourceOptions.java | 7 ++++++- .../discovery/v1/model/SourceOptionsBuckets.java | 7 ++++++- .../discovery/v1/model/SourceOptionsFolder.java | 7 ++++++- .../discovery/v1/model/SourceOptionsObject.java | 7 ++++++- .../discovery/v1/model/SourceOptionsSiteColl.java | 7 ++++++- .../discovery/v1/model/SourceOptionsWebCrawl.java | 7 ++++++- .../ibm/watson/discovery/v1/model/SourceSchedule.java | 7 ++++++- .../ibm/watson/discovery/v1/model/SourceStatus.java | 4 +++- .../ibm/watson/discovery/v1/model/StatusDetails.java | 7 ++++++- .../ibm/watson/discovery/v1/model/TokenDictRule.java | 7 ++++++- .../discovery/v1/model/TokenDictStatusResponse.java | 4 +++- .../watson/discovery/v1/model/TrainingDataSet.java | 4 +++- .../watson/discovery/v1/model/TrainingExample.java | 7 ++++++- .../discovery/v1/model/TrainingExampleList.java | 4 +++- .../ibm/watson/discovery/v1/model/TrainingQuery.java | 4 +++- .../ibm/watson/discovery/v1/model/TrainingStatus.java | 4 +++- .../discovery/v1/model/UpdateCollectionOptions.java | 7 ++++++- .../v1/model/UpdateConfigurationOptions.java | 7 ++++++- .../discovery/v1/model/UpdateCredentialsOptions.java | 7 ++++++- .../discovery/v1/model/UpdateDocumentOptions.java | 7 ++++++- .../discovery/v1/model/UpdateEnvironmentOptions.java | 7 ++++++- .../v1/model/UpdateTrainingExampleOptions.java | 7 ++++++- .../discovery/v1/model/WordHeadingDetection.java | 7 ++++++- .../ibm/watson/discovery/v1/model/WordSettings.java | 7 ++++++- .../com/ibm/watson/discovery/v1/model/WordStyle.java | 7 ++++++- .../ibm/watson/discovery/v1/model/XPathPatterns.java | 7 ++++++- 165 files changed, 800 insertions(+), 166 deletions(-) diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java index 7ee67e6fda3..8927da278f1 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -12,7 +12,7 @@ */ /* - * IBM OpenAPI SDK Code Generator Version: 3.53.0-9710cac3-20220713-193508 + * IBM OpenAPI SDK Code Generator Version: 3.64.1-cee95189-20230124-211647 */ package com.ibm.watson.discovery.v1; @@ -137,8 +137,10 @@ */ public class Discovery extends BaseService { + /** Default service name used when configuring the `Discovery` client. */ public static final String DEFAULT_SERVICE_NAME = "discovery"; + /** Default service endpoint URL. */ public static final String DEFAULT_SERVICE_URL = "https://api.us-south.discovery.watson.cloud.ibm.com"; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/AddDocumentOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/AddDocumentOptions.java index db1b179d7cf..60767ab8701 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/AddDocumentOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/AddDocumentOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -37,6 +37,11 @@ public static class Builder { private String fileContentType; private String metadata; + /** + * Instantiates a new Builder from an existing AddDocumentOptions instance. + * + * @param addDocumentOptions the instance to initialize the Builder with + */ private Builder(AddDocumentOptions addDocumentOptions) { this.environmentId = addDocumentOptions.environmentId; this.collectionId = addDocumentOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/AddTrainingDataOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/AddTrainingDataOptions.java index 5bac3c71ce4..19d8bf4c9cd 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/AddTrainingDataOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/AddTrainingDataOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -33,6 +33,11 @@ public static class Builder { private String filter; private List examples; + /** + * Instantiates a new Builder from an existing AddTrainingDataOptions instance. + * + * @param addTrainingDataOptions the instance to initialize the Builder with + */ private Builder(AddTrainingDataOptions addTrainingDataOptions) { this.environmentId = addTrainingDataOptions.environmentId; this.collectionId = addTrainingDataOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Collection.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Collection.java index 9b9337e5af9..3c59a2b71e7 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Collection.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Collection.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -58,6 +58,8 @@ public interface Status { @SerializedName("smart_document_understanding") protected SduStatus smartDocumentUnderstanding; + protected Collection() {} + /** * Gets the collectionId. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CollectionCrawlStatus.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CollectionCrawlStatus.java index d110dcaf4f3..8d4ad830436 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CollectionCrawlStatus.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CollectionCrawlStatus.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -21,6 +21,8 @@ public class CollectionCrawlStatus extends GenericModel { @SerializedName("source_crawl") protected SourceStatus sourceCrawl; + protected CollectionCrawlStatus() {} + /** * Gets the sourceCrawl. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CollectionDiskUsage.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CollectionDiskUsage.java index 5404cbfcac4..2fefe49351b 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CollectionDiskUsage.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CollectionDiskUsage.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -21,6 +21,8 @@ public class CollectionDiskUsage extends GenericModel { @SerializedName("used_bytes") protected Long usedBytes; + protected CollectionDiskUsage() {} + /** * Gets the usedBytes. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CollectionUsage.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CollectionUsage.java index 5d032292573..037b456a550 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CollectionUsage.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CollectionUsage.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2020. + * (C) Copyright IBM Corp. 2023. * * 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,8 @@ public class CollectionUsage extends GenericModel { @SerializedName("maximum_allowed") protected Long maximumAllowed; + protected CollectionUsage() {} + /** * Gets the available. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Completions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Completions.java index 5dd9434dac6..b2931341144 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Completions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Completions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -20,6 +20,8 @@ public class Completions extends GenericModel { protected List completions; + protected Completions() {} + /** * Gets the completions. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Configuration.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Configuration.java index fdf0c30ef7d..6ad16739715 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Configuration.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Configuration.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -42,6 +42,11 @@ public static class Builder { private List normalizations; private Source source; + /** + * Instantiates a new Builder from an existing Configuration instance. + * + * @param configuration the instance to initialize the Builder with + */ private Builder(Configuration configuration) { this.name = configuration.name; this.description = configuration.description; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Conversions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Conversions.java index b50648052a8..14d2669a87e 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Conversions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Conversions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -40,6 +40,11 @@ public static class Builder { private List jsonNormalizations; private Boolean imageTextRecognition; + /** + * Instantiates a new Builder from an existing Conversions instance. + * + * @param conversions the instance to initialize the Builder with + */ private Builder(Conversions conversions) { this.pdf = conversions.pdf; this.word = conversions.word; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateCollectionOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateCollectionOptions.java index 4e305c49eb2..2af1cce2b43 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateCollectionOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateCollectionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -60,6 +60,11 @@ public static class Builder { private String configurationId; private String language; + /** + * Instantiates a new Builder from an existing CreateCollectionOptions instance. + * + * @param createCollectionOptions the instance to initialize the Builder with + */ private Builder(CreateCollectionOptions createCollectionOptions) { this.environmentId = createCollectionOptions.environmentId; this.name = createCollectionOptions.name; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateConfigurationOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateConfigurationOptions.java index 2063a4e14bc..5f69ea824b7 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateConfigurationOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateConfigurationOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -37,6 +37,11 @@ public static class Builder { private List normalizations; private Source source; + /** + * Instantiates a new Builder from an existing CreateConfigurationOptions instance. + * + * @param createConfigurationOptions the instance to initialize the Builder with + */ private Builder(CreateConfigurationOptions createConfigurationOptions) { this.environmentId = createConfigurationOptions.environmentId; this.name = createConfigurationOptions.name; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateCredentialsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateCredentialsOptions.java index e2a8c2e8fbd..e01ff13f206 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateCredentialsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateCredentialsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -50,6 +50,11 @@ public static class Builder { private CredentialDetails credentialDetails; private StatusDetails status; + /** + * Instantiates a new Builder from an existing CreateCredentialsOptions instance. + * + * @param createCredentialsOptions the instance to initialize the Builder with + */ private Builder(CreateCredentialsOptions createCredentialsOptions) { this.environmentId = createCredentialsOptions.environmentId; this.sourceType = createCredentialsOptions.sourceType; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateEnvironmentOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateEnvironmentOptions.java index ad459c6eefb..e00f0ac3780 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateEnvironmentOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateEnvironmentOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -54,6 +54,11 @@ public static class Builder { private String description; private String size; + /** + * Instantiates a new Builder from an existing CreateEnvironmentOptions instance. + * + * @param createEnvironmentOptions the instance to initialize the Builder with + */ private Builder(CreateEnvironmentOptions createEnvironmentOptions) { this.name = createEnvironmentOptions.name; this.description = createEnvironmentOptions.description; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateEventOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateEventOptions.java index cfc5e66d29b..72c56cb0b13 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateEventOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateEventOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -31,6 +31,11 @@ public static class Builder { private String type; private EventData data; + /** + * Instantiates a new Builder from an existing CreateEventOptions instance. + * + * @param createEventOptions the instance to initialize the Builder with + */ private Builder(CreateEventOptions createEventOptions) { this.type = createEventOptions.type; this.data = createEventOptions.data; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateEventResponse.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateEventResponse.java index 16ebbd60c08..6929176aab7 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateEventResponse.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateEventResponse.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2020. + * (C) Copyright IBM Corp. 2023. * * 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,6 +26,8 @@ public interface Type { protected String type; protected EventData data; + protected CreateEventResponse() {} + /** * Gets the type. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateExpansionsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateExpansionsOptions.java index aa3a9249f14..36045d1fbe0 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateExpansionsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateExpansionsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -29,6 +29,11 @@ public static class Builder { private String collectionId; private List expansions; + /** + * Instantiates a new Builder from an existing CreateExpansionsOptions instance. + * + * @param createExpansionsOptions the instance to initialize the Builder with + */ private Builder(CreateExpansionsOptions createExpansionsOptions) { this.environmentId = createExpansionsOptions.environmentId; this.collectionId = createExpansionsOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateGatewayOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateGatewayOptions.java index 79fa1a067c0..553c75d9047 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateGatewayOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateGatewayOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String environmentId; private String name; + /** + * Instantiates a new Builder from an existing CreateGatewayOptions instance. + * + * @param createGatewayOptions the instance to initialize the Builder with + */ private Builder(CreateGatewayOptions createGatewayOptions) { this.environmentId = createGatewayOptions.environmentId; this.name = createGatewayOptions.name; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateStopwordListOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateStopwordListOptions.java index 3db616be707..72e20268797 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateStopwordListOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateStopwordListOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -33,6 +33,11 @@ public static class Builder { private InputStream stopwordFile; private String stopwordFilename; + /** + * Instantiates a new Builder from an existing CreateStopwordListOptions instance. + * + * @param createStopwordListOptions the instance to initialize the Builder with + */ private Builder(CreateStopwordListOptions createStopwordListOptions) { this.environmentId = createStopwordListOptions.environmentId; this.collectionId = createStopwordListOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateTokenizationDictionaryOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateTokenizationDictionaryOptions.java index bd42e90682e..46668ed62b6 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateTokenizationDictionaryOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateTokenizationDictionaryOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -29,6 +29,11 @@ public static class Builder { private String collectionId; private List tokenizationRules; + /** + * Instantiates a new Builder from an existing CreateTokenizationDictionaryOptions instance. + * + * @param createTokenizationDictionaryOptions the instance to initialize the Builder with + */ private Builder(CreateTokenizationDictionaryOptions createTokenizationDictionaryOptions) { this.environmentId = createTokenizationDictionaryOptions.environmentId; this.collectionId = createTokenizationDictionaryOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateTrainingExampleOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateTrainingExampleOptions.java index 7722643088f..1688d0eef99 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateTrainingExampleOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CreateTrainingExampleOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -33,6 +33,11 @@ public static class Builder { private String crossReference; private Long relevance; + /** + * Instantiates a new Builder from an existing CreateTrainingExampleOptions instance. + * + * @param createTrainingExampleOptions the instance to initialize the Builder with + */ private Builder(CreateTrainingExampleOptions createTrainingExampleOptions) { this.environmentId = createTrainingExampleOptions.environmentId; this.collectionId = createTrainingExampleOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CredentialDetails.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CredentialDetails.java index af2d5a15b6b..ce581943d21 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CredentialDetails.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CredentialDetails.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -129,6 +129,11 @@ public static class Builder { private String accessKeyId; private String secretAccessKey; + /** + * Instantiates a new Builder from an existing CredentialDetails instance. + * + * @param credentialDetails the instance to initialize the Builder with + */ private Builder(CredentialDetails credentialDetails) { this.credentialType = credentialDetails.credentialType; this.clientId = credentialDetails.clientId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Credentials.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Credentials.java index 41880567864..5de7a9e7884 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Credentials.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Credentials.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -56,6 +56,11 @@ public static class Builder { private CredentialDetails credentialDetails; private StatusDetails status; + /** + * Instantiates a new Builder from an existing Credentials instance. + * + * @param credentials the instance to initialize the Builder with + */ private Builder(Credentials credentials) { this.sourceType = credentials.sourceType; this.credentialDetails = credentials.credentialDetails; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CredentialsList.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CredentialsList.java index 515b03e893b..bedda932fec 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CredentialsList.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/CredentialsList.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -20,6 +20,8 @@ public class CredentialsList extends GenericModel { protected List credentials; + protected CredentialsList() {} + /** * Gets the credentials. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteAllTrainingDataOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteAllTrainingDataOptions.java index 414a776a647..2f5889c4b7b 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteAllTrainingDataOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteAllTrainingDataOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String environmentId; private String collectionId; + /** + * Instantiates a new Builder from an existing DeleteAllTrainingDataOptions instance. + * + * @param deleteAllTrainingDataOptions the instance to initialize the Builder with + */ private Builder(DeleteAllTrainingDataOptions deleteAllTrainingDataOptions) { this.environmentId = deleteAllTrainingDataOptions.environmentId; this.collectionId = deleteAllTrainingDataOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteCollectionOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteCollectionOptions.java index 930cc6d7a3a..3efafb7d62a 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteCollectionOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteCollectionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String environmentId; private String collectionId; + /** + * Instantiates a new Builder from an existing DeleteCollectionOptions instance. + * + * @param deleteCollectionOptions the instance to initialize the Builder with + */ private Builder(DeleteCollectionOptions deleteCollectionOptions) { this.environmentId = deleteCollectionOptions.environmentId; this.collectionId = deleteCollectionOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteCollectionResponse.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteCollectionResponse.java index a0655bc7cdd..c11c1ca4973 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteCollectionResponse.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteCollectionResponse.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -29,6 +29,8 @@ public interface Status { protected String status; + protected DeleteCollectionResponse() {} + /** * Gets the collectionId. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteConfigurationOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteConfigurationOptions.java index a5ea157ee92..afa9b43349e 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteConfigurationOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteConfigurationOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String environmentId; private String configurationId; + /** + * Instantiates a new Builder from an existing DeleteConfigurationOptions instance. + * + * @param deleteConfigurationOptions the instance to initialize the Builder with + */ private Builder(DeleteConfigurationOptions deleteConfigurationOptions) { this.environmentId = deleteConfigurationOptions.environmentId; this.configurationId = deleteConfigurationOptions.configurationId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteConfigurationResponse.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteConfigurationResponse.java index 992f844d02f..0feba7bbd6c 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteConfigurationResponse.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteConfigurationResponse.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -31,6 +31,8 @@ public interface Status { protected String status; protected List notices; + protected DeleteConfigurationResponse() {} + /** * Gets the configurationId. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteCredentials.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteCredentials.java index b36080407b7..976fe25c9e1 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteCredentials.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteCredentials.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -29,6 +29,8 @@ public interface Status { protected String status; + protected DeleteCredentials() {} + /** * Gets the credentialId. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteCredentialsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteCredentialsOptions.java index 50d5bc17f4a..a8b517d5b4b 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteCredentialsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteCredentialsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String environmentId; private String credentialId; + /** + * Instantiates a new Builder from an existing DeleteCredentialsOptions instance. + * + * @param deleteCredentialsOptions the instance to initialize the Builder with + */ private Builder(DeleteCredentialsOptions deleteCredentialsOptions) { this.environmentId = deleteCredentialsOptions.environmentId; this.credentialId = deleteCredentialsOptions.credentialId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteDocumentOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteDocumentOptions.java index 902ccff3427..2ad6b11ae32 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteDocumentOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteDocumentOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -27,6 +27,11 @@ public static class Builder { private String collectionId; private String documentId; + /** + * Instantiates a new Builder from an existing DeleteDocumentOptions instance. + * + * @param deleteDocumentOptions the instance to initialize the Builder with + */ private Builder(DeleteDocumentOptions deleteDocumentOptions) { this.environmentId = deleteDocumentOptions.environmentId; this.collectionId = deleteDocumentOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteDocumentResponse.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteDocumentResponse.java index a8ff4d1f30a..9b4777f42ec 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteDocumentResponse.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteDocumentResponse.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -29,6 +29,8 @@ public interface Status { protected String status; + protected DeleteDocumentResponse() {} + /** * Gets the documentId. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteEnvironmentOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteEnvironmentOptions.java index 047fe35c809..cf8bc1821aa 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteEnvironmentOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteEnvironmentOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,11 @@ public class DeleteEnvironmentOptions extends GenericModel { public static class Builder { private String environmentId; + /** + * Instantiates a new Builder from an existing DeleteEnvironmentOptions instance. + * + * @param deleteEnvironmentOptions the instance to initialize the Builder with + */ private Builder(DeleteEnvironmentOptions deleteEnvironmentOptions) { this.environmentId = deleteEnvironmentOptions.environmentId; } diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteEnvironmentResponse.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteEnvironmentResponse.java index 01aa96512c5..87a8d3d30b7 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteEnvironmentResponse.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteEnvironmentResponse.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -29,6 +29,8 @@ public interface Status { protected String status; + protected DeleteEnvironmentResponse() {} + /** * Gets the environmentId. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteExpansionsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteExpansionsOptions.java index e2b830aa27a..6955e9b87ca 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteExpansionsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteExpansionsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String environmentId; private String collectionId; + /** + * Instantiates a new Builder from an existing DeleteExpansionsOptions instance. + * + * @param deleteExpansionsOptions the instance to initialize the Builder with + */ private Builder(DeleteExpansionsOptions deleteExpansionsOptions) { this.environmentId = deleteExpansionsOptions.environmentId; this.collectionId = deleteExpansionsOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteGatewayOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteGatewayOptions.java index 9869ae314fc..f691edfdc74 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteGatewayOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteGatewayOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String environmentId; private String gatewayId; + /** + * Instantiates a new Builder from an existing DeleteGatewayOptions instance. + * + * @param deleteGatewayOptions the instance to initialize the Builder with + */ private Builder(DeleteGatewayOptions deleteGatewayOptions) { this.environmentId = deleteGatewayOptions.environmentId; this.gatewayId = deleteGatewayOptions.gatewayId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteStopwordListOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteStopwordListOptions.java index 9c3c17c2312..5804481a553 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteStopwordListOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteStopwordListOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String environmentId; private String collectionId; + /** + * Instantiates a new Builder from an existing DeleteStopwordListOptions instance. + * + * @param deleteStopwordListOptions the instance to initialize the Builder with + */ private Builder(DeleteStopwordListOptions deleteStopwordListOptions) { this.environmentId = deleteStopwordListOptions.environmentId; this.collectionId = deleteStopwordListOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteTokenizationDictionaryOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteTokenizationDictionaryOptions.java index 11f6fff6393..c2f5b399b35 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteTokenizationDictionaryOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteTokenizationDictionaryOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String environmentId; private String collectionId; + /** + * Instantiates a new Builder from an existing DeleteTokenizationDictionaryOptions instance. + * + * @param deleteTokenizationDictionaryOptions the instance to initialize the Builder with + */ private Builder(DeleteTokenizationDictionaryOptions deleteTokenizationDictionaryOptions) { this.environmentId = deleteTokenizationDictionaryOptions.environmentId; this.collectionId = deleteTokenizationDictionaryOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteTrainingDataOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteTrainingDataOptions.java index 8f45a73de6a..7180bc87185 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteTrainingDataOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteTrainingDataOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -27,6 +27,11 @@ public static class Builder { private String collectionId; private String queryId; + /** + * Instantiates a new Builder from an existing DeleteTrainingDataOptions instance. + * + * @param deleteTrainingDataOptions the instance to initialize the Builder with + */ private Builder(DeleteTrainingDataOptions deleteTrainingDataOptions) { this.environmentId = deleteTrainingDataOptions.environmentId; this.collectionId = deleteTrainingDataOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteTrainingExampleOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteTrainingExampleOptions.java index b8a30a84684..6342f1e88f7 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteTrainingExampleOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteTrainingExampleOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -29,6 +29,11 @@ public static class Builder { private String queryId; private String exampleId; + /** + * Instantiates a new Builder from an existing DeleteTrainingExampleOptions instance. + * + * @param deleteTrainingExampleOptions the instance to initialize the Builder with + */ private Builder(DeleteTrainingExampleOptions deleteTrainingExampleOptions) { this.environmentId = deleteTrainingExampleOptions.environmentId; this.collectionId = deleteTrainingExampleOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteUserDataOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteUserDataOptions.java index 2de57cb6730..7ff975a35a6 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteUserDataOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteUserDataOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,11 @@ public class DeleteUserDataOptions extends GenericModel { public static class Builder { private String customerId; + /** + * Instantiates a new Builder from an existing DeleteUserDataOptions instance. + * + * @param deleteUserDataOptions the instance to initialize the Builder with + */ private Builder(DeleteUserDataOptions deleteUserDataOptions) { this.customerId = deleteUserDataOptions.customerId; } diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DiskUsage.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DiskUsage.java index b7453eed7c1..721b952f9d2 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DiskUsage.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DiskUsage.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -24,6 +24,8 @@ public class DiskUsage extends GenericModel { @SerializedName("maximum_allowed_bytes") protected Long maximumAllowedBytes; + protected DiskUsage() {} + /** * Gets the usedBytes. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DocumentAccepted.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DocumentAccepted.java index e704edc94eb..93a522856b7 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DocumentAccepted.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DocumentAccepted.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -37,6 +37,8 @@ public interface Status { protected String status; protected List notices; + protected DocumentAccepted() {} + /** * Gets the documentId. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DocumentCounts.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DocumentCounts.java index a87bad8d6ae..42c101de520 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DocumentCounts.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DocumentCounts.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -22,6 +22,8 @@ public class DocumentCounts extends GenericModel { protected Long failed; protected Long pending; + protected DocumentCounts() {} + /** * Gets the available. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DocumentStatus.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DocumentStatus.java index a9359b2e5fb..83762b76d32 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DocumentStatus.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/DocumentStatus.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -64,6 +64,8 @@ public interface FileType { protected String sha1; protected List notices; + protected DocumentStatus() {} + /** * Gets the documentId. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Enrichment.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Enrichment.java index ee73b885f34..735003471d5 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Enrichment.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Enrichment.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -47,6 +47,11 @@ public static class Builder { private Boolean ignoreDownstreamErrors; private EnrichmentOptions options; + /** + * Instantiates a new Builder from an existing Enrichment instance. + * + * @param enrichment the instance to initialize the Builder with + */ private Builder(Enrichment enrichment) { this.description = enrichment.description; this.destinationField = enrichment.destinationField; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/EnrichmentOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/EnrichmentOptions.java index 357b01862e4..f4cbd0eb946 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/EnrichmentOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/EnrichmentOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -61,6 +61,11 @@ public static class Builder { private String language; private String model; + /** + * Instantiates a new Builder from an existing EnrichmentOptions instance. + * + * @param enrichmentOptions the instance to initialize the Builder with + */ private Builder(EnrichmentOptions enrichmentOptions) { this.features = enrichmentOptions.features; this.language = enrichmentOptions.language; @@ -106,7 +111,9 @@ public Builder language(String language) { * * @param model the model * @return the EnrichmentOptions builder + * @deprecated this method is deprecated and may be removed in a future release */ + @Deprecated public Builder model(String model) { this.model = model; return this; @@ -163,7 +170,9 @@ public String language() { * is deprecated. * * @return the model + * @deprecated this method is deprecated and may be removed in a future release */ + @Deprecated public String model() { return model; } diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Environment.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Environment.java index f05fcdb5fbb..583f314a85c 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Environment.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Environment.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -81,6 +81,8 @@ public interface Size { @SerializedName("search_status") protected SearchStatus searchStatus; + protected Environment() {} + /** * Gets the environmentId. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/EnvironmentDocuments.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/EnvironmentDocuments.java index 8059a889201..27152df6363 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/EnvironmentDocuments.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/EnvironmentDocuments.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2020. + * (C) Copyright IBM Corp. 2023. * * 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,8 @@ public class EnvironmentDocuments extends GenericModel { @SerializedName("maximum_allowed") protected Long maximumAllowed; + protected EnvironmentDocuments() {} + /** * Gets the available. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/EventData.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/EventData.java index 441b90223c4..c683943edfb 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/EventData.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/EventData.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +49,11 @@ public static class Builder { private String collectionId; private String documentId; + /** + * Instantiates a new Builder from an existing EventData instance. + * + * @param eventData the instance to initialize the Builder with + */ private Builder(EventData eventData) { this.environmentId = eventData.environmentId; this.sessionToken = eventData.sessionToken; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Expansion.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Expansion.java index e9b35b99d91..6279739121e 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Expansion.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Expansion.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -35,6 +35,11 @@ public static class Builder { private List inputTerms; private List expandedTerms; + /** + * Instantiates a new Builder from an existing Expansion instance. + * + * @param expansion the instance to initialize the Builder with + */ private Builder(Expansion expansion) { this.inputTerms = expansion.inputTerms; this.expandedTerms = expansion.expandedTerms; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Expansions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Expansions.java index a1289e7a42b..d35098f19a4 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Expansions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Expansions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public class Expansions extends GenericModel { public static class Builder { private List expansions; + /** + * Instantiates a new Builder from an existing Expansions instance. + * + * @param expansions the instance to initialize the Builder with + */ private Builder(Expansions expansions) { this.expansions = expansions.expansions; } diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/FederatedQueryNoticesOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/FederatedQueryNoticesOptions.java index 711ecb00fd3..c48ca030b14 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/FederatedQueryNoticesOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/FederatedQueryNoticesOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -53,6 +53,11 @@ public static class Builder { private List similarDocumentIds; private List similarFields; + /** + * Instantiates a new Builder from an existing FederatedQueryNoticesOptions instance. + * + * @param federatedQueryNoticesOptions the instance to initialize the Builder with + */ private Builder(FederatedQueryNoticesOptions federatedQueryNoticesOptions) { this.environmentId = federatedQueryNoticesOptions.environmentId; this.collectionIds = federatedQueryNoticesOptions.collectionIds; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/FederatedQueryOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/FederatedQueryOptions.java index 6b0e1f20c92..ca4cd2370a6 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/FederatedQueryOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/FederatedQueryOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -65,6 +65,11 @@ public static class Builder { private String bias; private Boolean xWatsonLoggingOptOut; + /** + * Instantiates a new Builder from an existing FederatedQueryOptions instance. + * + * @param federatedQueryOptions the instance to initialize the Builder with + */ private Builder(FederatedQueryOptions federatedQueryOptions) { this.environmentId = federatedQueryOptions.environmentId; this.collectionIds = federatedQueryOptions.collectionIds; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Field.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Field.java index 9c02e7b568b..58082fbc16d 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Field.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Field.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -46,6 +46,8 @@ public interface Type { protected String field; protected String type; + protected Field() {} + /** * Gets the field. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/FontSetting.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/FontSetting.java index 67d2d4eacfb..e23006ccd77 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/FontSetting.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/FontSetting.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -39,6 +39,11 @@ public static class Builder { private Boolean italic; private String name; + /** + * Instantiates a new Builder from an existing FontSetting instance. + * + * @param fontSetting the instance to initialize the Builder with + */ private Builder(FontSetting fontSetting) { this.level = fontSetting.level; this.minSize = fontSetting.minSize; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Gateway.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Gateway.java index 3594fe9e954..e81d8d07028 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Gateway.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Gateway.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -39,6 +39,8 @@ public interface Status { @SerializedName("token_id") protected String tokenId; + protected Gateway() {} + /** * Gets the gatewayId. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GatewayDelete.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GatewayDelete.java index 218a9844d0c..084d7d611ac 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GatewayDelete.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GatewayDelete.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2020. + * (C) Copyright IBM Corp. 2023. * * 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,8 @@ public class GatewayDelete extends GenericModel { protected String status; + protected GatewayDelete() {} + /** * Gets the gatewayId. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GatewayList.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GatewayList.java index 84a8cf9d87f..135dffa1146 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GatewayList.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GatewayList.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -20,6 +20,8 @@ public class GatewayList extends GenericModel { protected List gateways; + protected GatewayList() {} + /** * Gets the gateways. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetAutocompletionOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetAutocompletionOptions.java index f7645707e37..29486313da6 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetAutocompletionOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetAutocompletionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -31,6 +31,11 @@ public static class Builder { private String field; private Long count; + /** + * Instantiates a new Builder from an existing GetAutocompletionOptions instance. + * + * @param getAutocompletionOptions the instance to initialize the Builder with + */ private Builder(GetAutocompletionOptions getAutocompletionOptions) { this.environmentId = getAutocompletionOptions.environmentId; this.collectionId = getAutocompletionOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetCollectionOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetCollectionOptions.java index d932fa2dd39..c0542ea13e7 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetCollectionOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetCollectionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String environmentId; private String collectionId; + /** + * Instantiates a new Builder from an existing GetCollectionOptions instance. + * + * @param getCollectionOptions the instance to initialize the Builder with + */ private Builder(GetCollectionOptions getCollectionOptions) { this.environmentId = getCollectionOptions.environmentId; this.collectionId = getCollectionOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetConfigurationOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetConfigurationOptions.java index c913b5301cd..9ac888f1036 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetConfigurationOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetConfigurationOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String environmentId; private String configurationId; + /** + * Instantiates a new Builder from an existing GetConfigurationOptions instance. + * + * @param getConfigurationOptions the instance to initialize the Builder with + */ private Builder(GetConfigurationOptions getConfigurationOptions) { this.environmentId = getConfigurationOptions.environmentId; this.configurationId = getConfigurationOptions.configurationId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetCredentialsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetCredentialsOptions.java index 94cf1607875..5e95ec139e3 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetCredentialsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetCredentialsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String environmentId; private String credentialId; + /** + * Instantiates a new Builder from an existing GetCredentialsOptions instance. + * + * @param getCredentialsOptions the instance to initialize the Builder with + */ private Builder(GetCredentialsOptions getCredentialsOptions) { this.environmentId = getCredentialsOptions.environmentId; this.credentialId = getCredentialsOptions.credentialId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetDocumentStatusOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetDocumentStatusOptions.java index 2ff8d62882b..100df78fab9 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetDocumentStatusOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetDocumentStatusOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -27,6 +27,11 @@ public static class Builder { private String collectionId; private String documentId; + /** + * Instantiates a new Builder from an existing GetDocumentStatusOptions instance. + * + * @param getDocumentStatusOptions the instance to initialize the Builder with + */ private Builder(GetDocumentStatusOptions getDocumentStatusOptions) { this.environmentId = getDocumentStatusOptions.environmentId; this.collectionId = getDocumentStatusOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetEnvironmentOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetEnvironmentOptions.java index b1b926273bf..661f52db01a 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetEnvironmentOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetEnvironmentOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,11 @@ public class GetEnvironmentOptions extends GenericModel { public static class Builder { private String environmentId; + /** + * Instantiates a new Builder from an existing GetEnvironmentOptions instance. + * + * @param getEnvironmentOptions the instance to initialize the Builder with + */ private Builder(GetEnvironmentOptions getEnvironmentOptions) { this.environmentId = getEnvironmentOptions.environmentId; } diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetGatewayOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetGatewayOptions.java index c888e04c355..52e41ddf884 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetGatewayOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetGatewayOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String environmentId; private String gatewayId; + /** + * Instantiates a new Builder from an existing GetGatewayOptions instance. + * + * @param getGatewayOptions the instance to initialize the Builder with + */ private Builder(GetGatewayOptions getGatewayOptions) { this.environmentId = getGatewayOptions.environmentId; this.gatewayId = getGatewayOptions.gatewayId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetMetricsEventRateOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetMetricsEventRateOptions.java index a8adbeae663..36be89b38ec 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetMetricsEventRateOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetMetricsEventRateOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -34,6 +34,11 @@ public static class Builder { private Date endTime; private String resultType; + /** + * Instantiates a new Builder from an existing GetMetricsEventRateOptions instance. + * + * @param getMetricsEventRateOptions the instance to initialize the Builder with + */ private Builder(GetMetricsEventRateOptions getMetricsEventRateOptions) { this.startTime = getMetricsEventRateOptions.startTime; this.endTime = getMetricsEventRateOptions.endTime; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetMetricsQueryEventOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetMetricsQueryEventOptions.java index 775d0011e1e..9194c7938da 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetMetricsQueryEventOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetMetricsQueryEventOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -34,6 +34,11 @@ public static class Builder { private Date endTime; private String resultType; + /** + * Instantiates a new Builder from an existing GetMetricsQueryEventOptions instance. + * + * @param getMetricsQueryEventOptions the instance to initialize the Builder with + */ private Builder(GetMetricsQueryEventOptions getMetricsQueryEventOptions) { this.startTime = getMetricsQueryEventOptions.startTime; this.endTime = getMetricsQueryEventOptions.endTime; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetMetricsQueryNoResultsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetMetricsQueryNoResultsOptions.java index e4f02ed4d5b..85c02f2cad0 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetMetricsQueryNoResultsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetMetricsQueryNoResultsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -34,6 +34,11 @@ public static class Builder { private Date endTime; private String resultType; + /** + * Instantiates a new Builder from an existing GetMetricsQueryNoResultsOptions instance. + * + * @param getMetricsQueryNoResultsOptions the instance to initialize the Builder with + */ private Builder(GetMetricsQueryNoResultsOptions getMetricsQueryNoResultsOptions) { this.startTime = getMetricsQueryNoResultsOptions.startTime; this.endTime = getMetricsQueryNoResultsOptions.endTime; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetMetricsQueryOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetMetricsQueryOptions.java index 0d6582b15f8..dc07445056d 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetMetricsQueryOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetMetricsQueryOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -34,6 +34,11 @@ public static class Builder { private Date endTime; private String resultType; + /** + * Instantiates a new Builder from an existing GetMetricsQueryOptions instance. + * + * @param getMetricsQueryOptions the instance to initialize the Builder with + */ private Builder(GetMetricsQueryOptions getMetricsQueryOptions) { this.startTime = getMetricsQueryOptions.startTime; this.endTime = getMetricsQueryOptions.endTime; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetMetricsQueryTokenEventOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetMetricsQueryTokenEventOptions.java index 6fd5e4228bd..04723f9f256 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetMetricsQueryTokenEventOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetMetricsQueryTokenEventOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,11 @@ public class GetMetricsQueryTokenEventOptions extends GenericModel { public static class Builder { private Long count; + /** + * Instantiates a new Builder from an existing GetMetricsQueryTokenEventOptions instance. + * + * @param getMetricsQueryTokenEventOptions the instance to initialize the Builder with + */ private Builder(GetMetricsQueryTokenEventOptions getMetricsQueryTokenEventOptions) { this.count = getMetricsQueryTokenEventOptions.count; } diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetStopwordListStatusOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetStopwordListStatusOptions.java index 5de565639c2..2f2ff2f9227 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetStopwordListStatusOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetStopwordListStatusOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String environmentId; private String collectionId; + /** + * Instantiates a new Builder from an existing GetStopwordListStatusOptions instance. + * + * @param getStopwordListStatusOptions the instance to initialize the Builder with + */ private Builder(GetStopwordListStatusOptions getStopwordListStatusOptions) { this.environmentId = getStopwordListStatusOptions.environmentId; this.collectionId = getStopwordListStatusOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetTokenizationDictionaryStatusOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetTokenizationDictionaryStatusOptions.java index c6d7a22de24..65c52758f63 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetTokenizationDictionaryStatusOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetTokenizationDictionaryStatusOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String environmentId; private String collectionId; + /** + * Instantiates a new Builder from an existing GetTokenizationDictionaryStatusOptions instance. + * + * @param getTokenizationDictionaryStatusOptions the instance to initialize the Builder with + */ private Builder(GetTokenizationDictionaryStatusOptions getTokenizationDictionaryStatusOptions) { this.environmentId = getTokenizationDictionaryStatusOptions.environmentId; this.collectionId = getTokenizationDictionaryStatusOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetTrainingDataOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetTrainingDataOptions.java index 2d312afffac..e01a8412fa3 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetTrainingDataOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetTrainingDataOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -27,6 +27,11 @@ public static class Builder { private String collectionId; private String queryId; + /** + * Instantiates a new Builder from an existing GetTrainingDataOptions instance. + * + * @param getTrainingDataOptions the instance to initialize the Builder with + */ private Builder(GetTrainingDataOptions getTrainingDataOptions) { this.environmentId = getTrainingDataOptions.environmentId; this.collectionId = getTrainingDataOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetTrainingExampleOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetTrainingExampleOptions.java index 1678e9f8a12..fdfd8accc54 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetTrainingExampleOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/GetTrainingExampleOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -29,6 +29,11 @@ public static class Builder { private String queryId; private String exampleId; + /** + * Instantiates a new Builder from an existing GetTrainingExampleOptions instance. + * + * @param getTrainingExampleOptions the instance to initialize the Builder with + */ private Builder(GetTrainingExampleOptions getTrainingExampleOptions) { this.environmentId = getTrainingExampleOptions.environmentId; this.collectionId = getTrainingExampleOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/HtmlSettings.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/HtmlSettings.java index ec2600a239d..66de62d4fc0 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/HtmlSettings.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/HtmlSettings.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -47,6 +47,11 @@ public static class Builder { private List keepTagAttributes; private List excludeTagAttributes; + /** + * Instantiates a new Builder from an existing HtmlSettings instance. + * + * @param htmlSettings the instance to initialize the Builder with + */ private Builder(HtmlSettings htmlSettings) { this.excludeTagsCompletely = htmlSettings.excludeTagsCompletely; this.excludeTagsKeepContent = htmlSettings.excludeTagsKeepContent; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/IndexCapacity.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/IndexCapacity.java index b961b7d25e0..ffa6170fd6e 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/IndexCapacity.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/IndexCapacity.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2020. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,8 @@ public class IndexCapacity extends GenericModel { protected CollectionUsage collections; + protected IndexCapacity() {} + /** * Gets the documents. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListCollectionFieldsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListCollectionFieldsOptions.java index bddd8cc0677..4d206a7e4fd 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListCollectionFieldsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListCollectionFieldsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String environmentId; private String collectionId; + /** + * Instantiates a new Builder from an existing ListCollectionFieldsOptions instance. + * + * @param listCollectionFieldsOptions the instance to initialize the Builder with + */ private Builder(ListCollectionFieldsOptions listCollectionFieldsOptions) { this.environmentId = listCollectionFieldsOptions.environmentId; this.collectionId = listCollectionFieldsOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListCollectionFieldsResponse.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListCollectionFieldsResponse.java index ce9543747d6..13f296efd64 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListCollectionFieldsResponse.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListCollectionFieldsResponse.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -35,6 +35,8 @@ public class ListCollectionFieldsResponse extends GenericModel { protected List fields; + protected ListCollectionFieldsResponse() {} + /** * Gets the fields. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListCollectionsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListCollectionsOptions.java index 9786cc7eddf..40a6e085d3a 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListCollectionsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListCollectionsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String environmentId; private String name; + /** + * Instantiates a new Builder from an existing ListCollectionsOptions instance. + * + * @param listCollectionsOptions the instance to initialize the Builder with + */ private Builder(ListCollectionsOptions listCollectionsOptions) { this.environmentId = listCollectionsOptions.environmentId; this.name = listCollectionsOptions.name; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListCollectionsResponse.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListCollectionsResponse.java index 23c9531642a..e7efb23f077 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListCollectionsResponse.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListCollectionsResponse.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -20,6 +20,8 @@ public class ListCollectionsResponse extends GenericModel { protected List collections; + protected ListCollectionsResponse() {} + /** * Gets the collections. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListConfigurationsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListConfigurationsOptions.java index 761fe6caaa2..fea9571c0de 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListConfigurationsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListConfigurationsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String environmentId; private String name; + /** + * Instantiates a new Builder from an existing ListConfigurationsOptions instance. + * + * @param listConfigurationsOptions the instance to initialize the Builder with + */ private Builder(ListConfigurationsOptions listConfigurationsOptions) { this.environmentId = listConfigurationsOptions.environmentId; this.name = listConfigurationsOptions.name; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListConfigurationsResponse.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListConfigurationsResponse.java index 87c1f47d841..ed75939f300 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListConfigurationsResponse.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListConfigurationsResponse.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -20,6 +20,8 @@ public class ListConfigurationsResponse extends GenericModel { protected List configurations; + protected ListConfigurationsResponse() {} + /** * Gets the configurations. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListCredentialsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListCredentialsOptions.java index bb439ff946c..232be798fcf 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListCredentialsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListCredentialsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,11 @@ public class ListCredentialsOptions extends GenericModel { public static class Builder { private String environmentId; + /** + * Instantiates a new Builder from an existing ListCredentialsOptions instance. + * + * @param listCredentialsOptions the instance to initialize the Builder with + */ private Builder(ListCredentialsOptions listCredentialsOptions) { this.environmentId = listCredentialsOptions.environmentId; } diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListEnvironmentsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListEnvironmentsOptions.java index c8c51e97824..58e16938a8a 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListEnvironmentsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListEnvironmentsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,11 @@ public class ListEnvironmentsOptions extends GenericModel { public static class Builder { private String name; + /** + * Instantiates a new Builder from an existing ListEnvironmentsOptions instance. + * + * @param listEnvironmentsOptions the instance to initialize the Builder with + */ private Builder(ListEnvironmentsOptions listEnvironmentsOptions) { this.name = listEnvironmentsOptions.name; } diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListEnvironmentsResponse.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListEnvironmentsResponse.java index 32a4b1791c1..b749425ea90 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListEnvironmentsResponse.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListEnvironmentsResponse.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -20,6 +20,8 @@ public class ListEnvironmentsResponse extends GenericModel { protected List environments; + protected ListEnvironmentsResponse() {} + /** * Gets the environments. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListExpansionsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListExpansionsOptions.java index 9932c5e2491..5a25d302b3e 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListExpansionsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListExpansionsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String environmentId; private String collectionId; + /** + * Instantiates a new Builder from an existing ListExpansionsOptions instance. + * + * @param listExpansionsOptions the instance to initialize the Builder with + */ private Builder(ListExpansionsOptions listExpansionsOptions) { this.environmentId = listExpansionsOptions.environmentId; this.collectionId = listExpansionsOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListFieldsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListFieldsOptions.java index f4d911be23a..3e506629aa8 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListFieldsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListFieldsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -27,6 +27,11 @@ public static class Builder { private String environmentId; private List collectionIds; + /** + * Instantiates a new Builder from an existing ListFieldsOptions instance. + * + * @param listFieldsOptions the instance to initialize the Builder with + */ private Builder(ListFieldsOptions listFieldsOptions) { this.environmentId = listFieldsOptions.environmentId; this.collectionIds = listFieldsOptions.collectionIds; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListGatewaysOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListGatewaysOptions.java index 4eca4775268..51fb66ebac0 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListGatewaysOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListGatewaysOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,11 @@ public class ListGatewaysOptions extends GenericModel { public static class Builder { private String environmentId; + /** + * Instantiates a new Builder from an existing ListGatewaysOptions instance. + * + * @param listGatewaysOptions the instance to initialize the Builder with + */ private Builder(ListGatewaysOptions listGatewaysOptions) { this.environmentId = listGatewaysOptions.environmentId; } diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListTrainingDataOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListTrainingDataOptions.java index ab550589f49..534a08628ea 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListTrainingDataOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListTrainingDataOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String environmentId; private String collectionId; + /** + * Instantiates a new Builder from an existing ListTrainingDataOptions instance. + * + * @param listTrainingDataOptions the instance to initialize the Builder with + */ private Builder(ListTrainingDataOptions listTrainingDataOptions) { this.environmentId = listTrainingDataOptions.environmentId; this.collectionId = listTrainingDataOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListTrainingExamplesOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListTrainingExamplesOptions.java index a1f2d147659..5129bc301a6 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListTrainingExamplesOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListTrainingExamplesOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -27,6 +27,11 @@ public static class Builder { private String collectionId; private String queryId; + /** + * Instantiates a new Builder from an existing ListTrainingExamplesOptions instance. + * + * @param listTrainingExamplesOptions the instance to initialize the Builder with + */ private Builder(ListTrainingExamplesOptions listTrainingExamplesOptions) { this.environmentId = listTrainingExamplesOptions.environmentId; this.collectionId = listTrainingExamplesOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/LogQueryResponse.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/LogQueryResponse.java index 5430b345f2a..e2e3eb508c7 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/LogQueryResponse.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/LogQueryResponse.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -24,6 +24,8 @@ public class LogQueryResponse extends GenericModel { protected List results; + protected LogQueryResponse() {} + /** * Gets the matchingResults. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/LogQueryResponseResult.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/LogQueryResponseResult.java index 88252435093..cca1f432414 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/LogQueryResponseResult.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/LogQueryResponseResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2020. + * (C) Copyright IBM Corp. 2023. * * 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,6 +102,8 @@ public interface ResultType { @SerializedName("result_type") protected String resultType; + protected LogQueryResponseResult() {} + /** * Gets the environmentId. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/LogQueryResponseResultDocuments.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/LogQueryResponseResultDocuments.java index c5290023164..46808fce8c5 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/LogQueryResponseResultDocuments.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/LogQueryResponseResultDocuments.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -24,6 +24,8 @@ public class LogQueryResponseResultDocuments extends GenericModel { protected List results; protected Long count; + protected LogQueryResponseResultDocuments() {} + /** * Gets the results. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/LogQueryResponseResultDocumentsResult.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/LogQueryResponseResultDocumentsResult.java index fa6f97b1326..502f2dc1e55 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/LogQueryResponseResultDocumentsResult.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/LogQueryResponseResultDocumentsResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -32,6 +32,8 @@ public class LogQueryResponseResultDocumentsResult extends GenericModel { @SerializedName("collection_id") protected String collectionId; + protected LogQueryResponseResultDocumentsResult() {} + /** * Gets the position. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricAggregation.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricAggregation.java index 8585ba09844..5926f2e3848 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricAggregation.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricAggregation.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2020. + * (C) Copyright IBM Corp. 2023. * * 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,6 +26,8 @@ public class MetricAggregation extends GenericModel { protected List results; + protected MetricAggregation() {} + /** * Gets the interval. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricAggregationResult.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricAggregationResult.java index 425f81bc86b..b2d010b9033 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricAggregationResult.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricAggregationResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -30,6 +30,8 @@ public class MetricAggregationResult extends GenericModel { @SerializedName("event_rate") protected Double eventRate; + protected MetricAggregationResult() {} + /** * Gets the keyAsString. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricResponse.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricResponse.java index 225af597e60..454756eefce 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricResponse.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricResponse.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -20,6 +20,8 @@ public class MetricResponse extends GenericModel { protected List aggregations; + protected MetricResponse() {} + /** * Gets the aggregations. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricTokenAggregation.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricTokenAggregation.java index 2ff8a54728b..e6f1187d69d 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricTokenAggregation.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricTokenAggregation.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -24,6 +24,8 @@ public class MetricTokenAggregation extends GenericModel { protected List results; + protected MetricTokenAggregation() {} + /** * Gets the eventType. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricTokenAggregationResult.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricTokenAggregationResult.java index 829fc0c7184..5f748baa1d1 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricTokenAggregationResult.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricTokenAggregationResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2020. + * (C) Copyright IBM Corp. 2023. * * 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,6 +26,8 @@ public class MetricTokenAggregationResult extends GenericModel { @SerializedName("event_rate") protected Double eventRate; + protected MetricTokenAggregationResult() {} + /** * Gets the key. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricTokenResponse.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricTokenResponse.java index 158719c9096..b211b58b314 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricTokenResponse.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/MetricTokenResponse.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -20,6 +20,8 @@ public class MetricTokenResponse extends GenericModel { protected List aggregations; + protected MetricTokenResponse() {} + /** * Gets the aggregations. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentConcepts.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentConcepts.java index ae80c2caa03..16069fcc771 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentConcepts.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentConcepts.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,11 @@ public class NluEnrichmentConcepts extends GenericModel { public static class Builder { private Long limit; + /** + * Instantiates a new Builder from an existing NluEnrichmentConcepts instance. + * + * @param nluEnrichmentConcepts the instance to initialize the Builder with + */ private Builder(NluEnrichmentConcepts nluEnrichmentConcepts) { this.limit = nluEnrichmentConcepts.limit; } diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentEmotion.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentEmotion.java index 70879756a68..07d7386bba1 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentEmotion.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentEmotion.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -27,6 +27,11 @@ public static class Builder { private Boolean document; private List targets; + /** + * Instantiates a new Builder from an existing NluEnrichmentEmotion instance. + * + * @param nluEnrichmentEmotion the instance to initialize the Builder with + */ private Builder(NluEnrichmentEmotion nluEnrichmentEmotion) { this.document = nluEnrichmentEmotion.document; this.targets = nluEnrichmentEmotion.targets; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentEntities.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentEntities.java index 7b6bd0bd8a0..c3dcb303c7c 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentEntities.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentEntities.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -41,6 +41,11 @@ public static class Builder { private Boolean sentenceLocations; private String model; + /** + * Instantiates a new Builder from an existing NluEnrichmentEntities instance. + * + * @param nluEnrichmentEntities the instance to initialize the Builder with + */ private Builder(NluEnrichmentEntities nluEnrichmentEntities) { this.sentiment = nluEnrichmentEntities.sentiment; this.emotion = nluEnrichmentEntities.emotion; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentFeatures.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentFeatures.java index 37adb8daab9..01bb2309163 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentFeatures.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentFeatures.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -42,6 +42,11 @@ public static class Builder { private NluEnrichmentRelations relations; private NluEnrichmentConcepts concepts; + /** + * Instantiates a new Builder from an existing NluEnrichmentFeatures instance. + * + * @param nluEnrichmentFeatures the instance to initialize the Builder with + */ private Builder(NluEnrichmentFeatures nluEnrichmentFeatures) { this.keywords = nluEnrichmentFeatures.keywords; this.entities = nluEnrichmentFeatures.entities; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentKeywords.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentKeywords.java index 39c4f33ab3c..0ad707d25e6 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentKeywords.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentKeywords.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -27,6 +27,11 @@ public static class Builder { private Boolean emotion; private Long limit; + /** + * Instantiates a new Builder from an existing NluEnrichmentKeywords instance. + * + * @param nluEnrichmentKeywords the instance to initialize the Builder with + */ private Builder(NluEnrichmentKeywords nluEnrichmentKeywords) { this.sentiment = nluEnrichmentKeywords.sentiment; this.emotion = nluEnrichmentKeywords.emotion; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentRelations.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentRelations.java index bb56f5d4879..fa310031b97 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentRelations.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentRelations.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,11 @@ public class NluEnrichmentRelations extends GenericModel { public static class Builder { private String model; + /** + * Instantiates a new Builder from an existing NluEnrichmentRelations instance. + * + * @param nluEnrichmentRelations the instance to initialize the Builder with + */ private Builder(NluEnrichmentRelations nluEnrichmentRelations) { this.model = nluEnrichmentRelations.model; } diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentSemanticRoles.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentSemanticRoles.java index ce40f5b3aa6..21b093616ae 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentSemanticRoles.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentSemanticRoles.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -27,6 +27,11 @@ public static class Builder { private Boolean keywords; private Long limit; + /** + * Instantiates a new Builder from an existing NluEnrichmentSemanticRoles instance. + * + * @param nluEnrichmentSemanticRoles the instance to initialize the Builder with + */ private Builder(NluEnrichmentSemanticRoles nluEnrichmentSemanticRoles) { this.entities = nluEnrichmentSemanticRoles.entities; this.keywords = nluEnrichmentSemanticRoles.keywords; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentSentiment.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentSentiment.java index eb06dcd7de9..3a7358ef501 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentSentiment.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NluEnrichmentSentiment.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -27,6 +27,11 @@ public static class Builder { private Boolean document; private List targets; + /** + * Instantiates a new Builder from an existing NluEnrichmentSentiment instance. + * + * @param nluEnrichmentSentiment the instance to initialize the Builder with + */ private Builder(NluEnrichmentSentiment nluEnrichmentSentiment) { this.document = nluEnrichmentSentiment.document; this.targets = nluEnrichmentSentiment.targets; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NormalizationOperation.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NormalizationOperation.java index 5c4ee5d1c86..06e194c7a9b 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NormalizationOperation.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/NormalizationOperation.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -74,6 +74,11 @@ public static class Builder { private String sourceField; private String destinationField; + /** + * Instantiates a new Builder from an existing NormalizationOperation instance. + * + * @param normalizationOperation the instance to initialize the Builder with + */ private Builder(NormalizationOperation normalizationOperation) { this.operation = normalizationOperation.operation; this.sourceField = normalizationOperation.sourceField; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Notice.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Notice.java index 9aefa0a1ff0..8be23c5b279 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Notice.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Notice.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2021. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -42,6 +42,8 @@ public interface Severity { protected String step; protected String description; + protected Notice() {} + /** * Gets the noticeId. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/PdfHeadingDetection.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/PdfHeadingDetection.java index f9d54354aab..6453ceeb90e 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/PdfHeadingDetection.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/PdfHeadingDetection.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public class PdfHeadingDetection extends GenericModel { public static class Builder { private List fonts; + /** + * Instantiates a new Builder from an existing PdfHeadingDetection instance. + * + * @param pdfHeadingDetection the instance to initialize the Builder with + */ private Builder(PdfHeadingDetection pdfHeadingDetection) { this.fonts = pdfHeadingDetection.fonts; } diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/PdfSettings.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/PdfSettings.java index b7606fc11f7..206a23b9eb0 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/PdfSettings.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/PdfSettings.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,11 @@ public class PdfSettings extends GenericModel { public static class Builder { private PdfHeadingDetection heading; + /** + * Instantiates a new Builder from an existing PdfSettings instance. + * + * @param pdfSettings the instance to initialize the Builder with + */ private Builder(PdfSettings pdfSettings) { this.heading = pdfSettings.heading; } diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryAggregation.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryAggregation.java index 0bbaa3a3619..0b6f6c0cc71 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryAggregation.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryAggregation.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -38,6 +38,8 @@ public class QueryAggregation extends GenericModel { protected String type; + protected QueryAggregation() {} + /** * Gets the type. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryCalculationAggregation.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryCalculationAggregation.java index 16ae29c6e70..9e32cb00ca6 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryCalculationAggregation.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryCalculationAggregation.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -21,6 +21,8 @@ public class QueryCalculationAggregation extends QueryAggregation { protected String field; protected Double value; + protected QueryCalculationAggregation() {} + /** * Gets the field. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryFilterAggregation.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryFilterAggregation.java index e9c34b9e736..39a9b2eae1e 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryFilterAggregation.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryFilterAggregation.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,8 @@ public class QueryFilterAggregation extends QueryAggregation { protected List aggregations; + protected QueryFilterAggregation() {} + /** * Gets the match. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryHistogramAggregation.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryHistogramAggregation.java index 238d894a4ff..47b582ea7e3 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryHistogramAggregation.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryHistogramAggregation.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,8 @@ public class QueryHistogramAggregation extends QueryAggregation { protected String name; protected List results; + protected QueryHistogramAggregation() {} + /** * Gets the field. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryHistogramAggregationResult.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryHistogramAggregationResult.java index 244330e5fe1..65294370e13 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryHistogramAggregationResult.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryHistogramAggregationResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +26,8 @@ public class QueryHistogramAggregationResult extends GenericModel { protected List aggregations; + protected QueryHistogramAggregationResult() {} + /** * Gets the key. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryLogOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryLogOptions.java index bb4e7b0d3f6..fe87d5d5ff7 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryLogOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryLogOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -33,6 +33,11 @@ public static class Builder { private Long offset; private List sort; + /** + * Instantiates a new Builder from an existing QueryLogOptions instance. + * + * @param queryLogOptions the instance to initialize the Builder with + */ private Builder(QueryLogOptions queryLogOptions) { this.filter = queryLogOptions.filter; this.query = queryLogOptions.query; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryNestedAggregation.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryNestedAggregation.java index 38690607b40..9c5033f9729 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryNestedAggregation.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryNestedAggregation.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,8 @@ public class QueryNestedAggregation extends QueryAggregation { protected List aggregations; + protected QueryNestedAggregation() {} + /** * Gets the path. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryNoticesOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryNoticesOptions.java index 61230f60341..a150c44f254 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryNoticesOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryNoticesOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -61,6 +61,11 @@ public static class Builder { private List similarDocumentIds; private List similarFields; + /** + * Instantiates a new Builder from an existing QueryNoticesOptions instance. + * + * @param queryNoticesOptions the instance to initialize the Builder with + */ private Builder(QueryNoticesOptions queryNoticesOptions) { this.environmentId = queryNoticesOptions.environmentId; this.collectionId = queryNoticesOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryNoticesResponse.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryNoticesResponse.java index e506c148550..d823086c14c 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryNoticesResponse.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryNoticesResponse.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -29,6 +29,8 @@ public class QueryNoticesResponse extends GenericModel { @SerializedName("duplicates_removed") protected Long duplicatesRemoved; + protected QueryNoticesResponse() {} + /** * Gets the matchingResults. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryOptions.java index 9d85ad66108..576f5d29ece 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -67,6 +67,11 @@ public static class Builder { private Boolean spellingSuggestions; private Boolean xWatsonLoggingOptOut; + /** + * Instantiates a new Builder from an existing QueryOptions instance. + * + * @param queryOptions the instance to initialize the Builder with + */ private Builder(QueryOptions queryOptions) { this.environmentId = queryOptions.environmentId; this.collectionId = queryOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryPassages.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryPassages.java index 4792174722e..3f2137b7842 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryPassages.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryPassages.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -35,6 +35,8 @@ public class QueryPassages extends GenericModel { protected String field; + protected QueryPassages() {} + /** * Gets the documentId. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryResponse.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryResponse.java index 989b7040955..107c9ddc984 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryResponse.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryResponse.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -38,6 +38,8 @@ public class QueryResponse extends GenericModel { @SerializedName("suggested_query") protected String suggestedQuery; + protected QueryResponse() {} + /** * Gets the matchingResults. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryResultMetadata.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryResultMetadata.java index d9cb0de64a3..aff8e83c2b1 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryResultMetadata.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryResultMetadata.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -20,6 +20,8 @@ public class QueryResultMetadata extends GenericModel { protected Double score; protected Double confidence; + protected QueryResultMetadata() {} + /** * Gets the score. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTermAggregation.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTermAggregation.java index eae833aacad..209da36e2ac 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTermAggregation.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTermAggregation.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -22,6 +22,8 @@ public class QueryTermAggregation extends QueryAggregation { protected String name; protected List results; + protected QueryTermAggregation() {} + /** * Gets the field. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTermAggregationResult.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTermAggregationResult.java index a3de00bb8ab..e1fcad05503 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTermAggregationResult.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTermAggregationResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -34,6 +34,8 @@ public class QueryTermAggregationResult extends GenericModel { protected List aggregations; + protected QueryTermAggregationResult() {} + /** * Gets the key. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTimesliceAggregation.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTimesliceAggregation.java index fbbe4882dff..e1c34696352 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTimesliceAggregation.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTimesliceAggregation.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -22,6 +22,8 @@ public class QueryTimesliceAggregation extends QueryAggregation { protected String name; protected List results; + protected QueryTimesliceAggregation() {} + /** * Gets the field. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTimesliceAggregationResult.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTimesliceAggregationResult.java index 3faa77e6a40..fe2db7d50e4 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTimesliceAggregationResult.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTimesliceAggregationResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -29,6 +29,8 @@ public class QueryTimesliceAggregationResult extends GenericModel { protected List aggregations; + protected QueryTimesliceAggregationResult() {} + /** * Gets the keyAsString. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTopHitsAggregation.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTopHitsAggregation.java index a82fa7a007a..a7c1655437a 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTopHitsAggregation.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTopHitsAggregation.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -19,6 +19,8 @@ public class QueryTopHitsAggregation extends QueryAggregation { protected String name; protected QueryTopHitsAggregationResult hits; + protected QueryTopHitsAggregation() {} + /** * Gets the size. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTopHitsAggregationResult.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTopHitsAggregationResult.java index 4d08666b153..31068b49520 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTopHitsAggregationResult.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryTopHitsAggregationResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,8 @@ public class QueryTopHitsAggregationResult extends GenericModel { protected List> hits; + protected QueryTopHitsAggregationResult() {} + /** * Gets the matchingResults. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/RetrievalDetails.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/RetrievalDetails.java index ca8a718a128..a2b88245a85 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/RetrievalDetails.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/RetrievalDetails.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -40,6 +40,8 @@ public interface DocumentRetrievalStrategy { @SerializedName("document_retrieval_strategy") protected String documentRetrievalStrategy; + protected RetrievalDetails() {} + /** * Gets the documentRetrievalStrategy. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SduStatus.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SduStatus.java index db595e0bba6..a3631383427 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SduStatus.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SduStatus.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -32,6 +32,8 @@ public class SduStatus extends GenericModel { @SerializedName("custom_fields") protected SduStatusCustomFields customFields; + protected SduStatus() {} + /** * Gets the enabled. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SduStatusCustomFields.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SduStatusCustomFields.java index 5f592193566..49e26b55a71 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SduStatusCustomFields.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SduStatusCustomFields.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2020. + * (C) Copyright IBM Corp. 2023. * * 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,8 @@ public class SduStatusCustomFields extends GenericModel { @SerializedName("maximum_allowed") protected Long maximumAllowed; + protected SduStatusCustomFields() {} + /** * Gets the defined. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SearchStatus.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SearchStatus.java index 2903bebcd82..d14dc9c1a97 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SearchStatus.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SearchStatus.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -45,6 +45,8 @@ public interface Status { @SerializedName("last_trained") protected Date lastTrained; + protected SearchStatus() {} + /** * Gets the scope. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SegmentSettings.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SegmentSettings.java index 4dabe1de291..fe5240071fe 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SegmentSettings.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SegmentSettings.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -34,6 +34,11 @@ public static class Builder { private List selectorTags; private List annotatedFields; + /** + * Instantiates a new Builder from an existing SegmentSettings instance. + * + * @param segmentSettings the instance to initialize the Builder with + */ private Builder(SegmentSettings segmentSettings) { this.enabled = segmentSettings.enabled; this.selectorTags = segmentSettings.selectorTags; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Source.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Source.java index d65039d373f..e919bebd01e 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Source.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/Source.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -53,6 +53,11 @@ public static class Builder { private SourceSchedule schedule; private SourceOptions options; + /** + * Instantiates a new Builder from an existing Source instance. + * + * @param source the instance to initialize the Builder with + */ private Builder(Source source) { this.type = source.type; this.credentialId = source.credentialId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptions.java index b54ee8b65c6..852b8cf9677 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -41,6 +41,11 @@ public static class Builder { private List buckets; private Boolean crawlAllBuckets; + /** + * Instantiates a new Builder from an existing SourceOptions instance. + * + * @param sourceOptions the instance to initialize the Builder with + */ private Builder(SourceOptions sourceOptions) { this.folders = sourceOptions.folders; this.objects = sourceOptions.objects; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptionsBuckets.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptionsBuckets.java index dee64310448..d8ed324bd17 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptionsBuckets.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptionsBuckets.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String name; private Long limit; + /** + * Instantiates a new Builder from an existing SourceOptionsBuckets instance. + * + * @param sourceOptionsBuckets the instance to initialize the Builder with + */ private Builder(SourceOptionsBuckets sourceOptionsBuckets) { this.name = sourceOptionsBuckets.name; this.limit = sourceOptionsBuckets.limit; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptionsFolder.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptionsFolder.java index 618e9ca209d..e7015e2d7e9 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptionsFolder.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptionsFolder.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -32,6 +32,11 @@ public static class Builder { private String folderId; private Long limit; + /** + * Instantiates a new Builder from an existing SourceOptionsFolder instance. + * + * @param sourceOptionsFolder the instance to initialize the Builder with + */ private Builder(SourceOptionsFolder sourceOptionsFolder) { this.ownerUserId = sourceOptionsFolder.ownerUserId; this.folderId = sourceOptionsFolder.folderId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptionsObject.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptionsObject.java index a4f54569ff9..f6e85818a70 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptionsObject.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptionsObject.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public static class Builder { private String name; private Long limit; + /** + * Instantiates a new Builder from an existing SourceOptionsObject instance. + * + * @param sourceOptionsObject the instance to initialize the Builder with + */ private Builder(SourceOptionsObject sourceOptionsObject) { this.name = sourceOptionsObject.name; this.limit = sourceOptionsObject.limit; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptionsSiteColl.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptionsSiteColl.java index 37acca12122..f9fe0136686 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptionsSiteColl.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptionsSiteColl.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,11 @@ public static class Builder { private String siteCollectionPath; private Long limit; + /** + * Instantiates a new Builder from an existing SourceOptionsSiteColl instance. + * + * @param sourceOptionsSiteColl the instance to initialize the Builder with + */ private Builder(SourceOptionsSiteColl sourceOptionsSiteColl) { this.siteCollectionPath = sourceOptionsSiteColl.siteCollectionPath; this.limit = sourceOptionsSiteColl.limit; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptionsWebCrawl.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptionsWebCrawl.java index ee5262b65f6..718b1768d4b 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptionsWebCrawl.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceOptionsWebCrawl.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -68,6 +68,11 @@ public static class Builder { private Boolean overrideRobotsTxt; private List blacklist; + /** + * Instantiates a new Builder from an existing SourceOptionsWebCrawl instance. + * + * @param sourceOptionsWebCrawl the instance to initialize the Builder with + */ private Builder(SourceOptionsWebCrawl sourceOptionsWebCrawl) { this.url = sourceOptionsWebCrawl.url; this.limitToStartingHosts = sourceOptionsWebCrawl.limitToStartingHosts; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceSchedule.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceSchedule.java index 823ebed85fa..62e8dcf3f98 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceSchedule.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceSchedule.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -51,6 +51,11 @@ public static class Builder { private String timeZone; private String frequency; + /** + * Instantiates a new Builder from an existing SourceSchedule instance. + * + * @param sourceSchedule the instance to initialize the Builder with + */ private Builder(SourceSchedule sourceSchedule) { this.enabled = sourceSchedule.enabled; this.timeZone = sourceSchedule.timeZone; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceStatus.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceStatus.java index 4f3a66d1803..4767b3df5f0 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceStatus.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/SourceStatus.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -46,6 +46,8 @@ public interface Status { @SerializedName("next_crawl") protected Date nextCrawl; + protected SourceStatus() {} + /** * Gets the status. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/StatusDetails.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/StatusDetails.java index 847432212e8..805e33ef125 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/StatusDetails.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/StatusDetails.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2021, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,11 @@ public static class Builder { private Boolean authenticated; private String errorMessage; + /** + * Instantiates a new Builder from an existing StatusDetails instance. + * + * @param statusDetails the instance to initialize the Builder with + */ private Builder(StatusDetails statusDetails) { this.authenticated = statusDetails.authenticated; this.errorMessage = statusDetails.errorMessage; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TokenDictRule.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TokenDictRule.java index 6b29cc4af47..3f9550d8939 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TokenDictRule.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TokenDictRule.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -34,6 +34,11 @@ public static class Builder { private List readings; private String partOfSpeech; + /** + * Instantiates a new Builder from an existing TokenDictRule instance. + * + * @param tokenDictRule the instance to initialize the Builder with + */ private Builder(TokenDictRule tokenDictRule) { this.text = tokenDictRule.text; this.tokens = tokenDictRule.tokens; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TokenDictStatusResponse.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TokenDictStatusResponse.java index d91e4792278..f7483f80512 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TokenDictStatusResponse.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TokenDictStatusResponse.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -30,6 +30,8 @@ public interface Status { protected String status; protected String type; + protected TokenDictStatusResponse() {} + /** * Gets the status. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TrainingDataSet.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TrainingDataSet.java index 32ec2469130..15036282c6d 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TrainingDataSet.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TrainingDataSet.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -27,6 +27,8 @@ public class TrainingDataSet extends GenericModel { protected List queries; + protected TrainingDataSet() {} + /** * Gets the environmentId. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TrainingExample.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TrainingExample.java index 217991f4efc..bca2e0627ef 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TrainingExample.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TrainingExample.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -32,6 +32,11 @@ public static class Builder { private String crossReference; private Long relevance; + /** + * Instantiates a new Builder from an existing TrainingExample instance. + * + * @param trainingExample the instance to initialize the Builder with + */ private Builder(TrainingExample trainingExample) { this.documentId = trainingExample.documentId; this.crossReference = trainingExample.crossReference; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TrainingExampleList.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TrainingExampleList.java index fe6ffef2a81..470f4f04e7e 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TrainingExampleList.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TrainingExampleList.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -20,6 +20,8 @@ public class TrainingExampleList extends GenericModel { protected List examples; + protected TrainingExampleList() {} + /** * Gets the examples. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TrainingQuery.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TrainingQuery.java index cd5791da9ae..42ac5f7d4ee 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TrainingQuery.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TrainingQuery.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2020. + * (C) Copyright IBM Corp. 2023. * * 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,8 @@ public class TrainingQuery extends GenericModel { protected String filter; protected List examples; + protected TrainingQuery() {} + /** * Gets the queryId. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TrainingStatus.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TrainingStatus.java index e308c85b6d2..110601d31c0 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TrainingStatus.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/TrainingStatus.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2020. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -42,6 +42,8 @@ public class TrainingStatus extends GenericModel { @SerializedName("data_updated") protected Date dataUpdated; + protected TrainingStatus() {} + /** * Gets the totalExamples. * diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateCollectionOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateCollectionOptions.java index e84fdc5a625..3440a86ca3c 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateCollectionOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateCollectionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -31,6 +31,11 @@ public static class Builder { private String description; private String configurationId; + /** + * Instantiates a new Builder from an existing UpdateCollectionOptions instance. + * + * @param updateCollectionOptions the instance to initialize the Builder with + */ private Builder(UpdateCollectionOptions updateCollectionOptions) { this.environmentId = updateCollectionOptions.environmentId; this.collectionId = updateCollectionOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateConfigurationOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateConfigurationOptions.java index 0e7371d0bbc..91b14fae8d3 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateConfigurationOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateConfigurationOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -39,6 +39,11 @@ public static class Builder { private List normalizations; private Source source; + /** + * Instantiates a new Builder from an existing UpdateConfigurationOptions instance. + * + * @param updateConfigurationOptions the instance to initialize the Builder with + */ private Builder(UpdateConfigurationOptions updateConfigurationOptions) { this.environmentId = updateConfigurationOptions.environmentId; this.configurationId = updateConfigurationOptions.configurationId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateCredentialsOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateCredentialsOptions.java index b078dc43c74..e2e83b74af0 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateCredentialsOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateCredentialsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -52,6 +52,11 @@ public static class Builder { private CredentialDetails credentialDetails; private StatusDetails status; + /** + * Instantiates a new Builder from an existing UpdateCredentialsOptions instance. + * + * @param updateCredentialsOptions the instance to initialize the Builder with + */ private Builder(UpdateCredentialsOptions updateCredentialsOptions) { this.environmentId = updateCredentialsOptions.environmentId; this.credentialId = updateCredentialsOptions.credentialId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateDocumentOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateDocumentOptions.java index e1e8ef9c0f1..4ad8bd2db54 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateDocumentOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateDocumentOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -39,6 +39,11 @@ public static class Builder { private String fileContentType; private String metadata; + /** + * Instantiates a new Builder from an existing UpdateDocumentOptions instance. + * + * @param updateDocumentOptions the instance to initialize the Builder with + */ private Builder(UpdateDocumentOptions updateDocumentOptions) { this.environmentId = updateDocumentOptions.environmentId; this.collectionId = updateDocumentOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateEnvironmentOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateEnvironmentOptions.java index 00ea0af1786..bc0f9f7ecfd 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateEnvironmentOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateEnvironmentOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -52,6 +52,11 @@ public static class Builder { private String description; private String size; + /** + * Instantiates a new Builder from an existing UpdateEnvironmentOptions instance. + * + * @param updateEnvironmentOptions the instance to initialize the Builder with + */ private Builder(UpdateEnvironmentOptions updateEnvironmentOptions) { this.environmentId = updateEnvironmentOptions.environmentId; this.name = updateEnvironmentOptions.name; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateTrainingExampleOptions.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateTrainingExampleOptions.java index 0f9584a8821..4da7235464f 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateTrainingExampleOptions.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/UpdateTrainingExampleOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -33,6 +33,11 @@ public static class Builder { private String crossReference; private Long relevance; + /** + * Instantiates a new Builder from an existing UpdateTrainingExampleOptions instance. + * + * @param updateTrainingExampleOptions the instance to initialize the Builder with + */ private Builder(UpdateTrainingExampleOptions updateTrainingExampleOptions) { this.environmentId = updateTrainingExampleOptions.environmentId; this.collectionId = updateTrainingExampleOptions.collectionId; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/WordHeadingDetection.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/WordHeadingDetection.java index 0cdcf62b832..a9c4bc4e75e 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/WordHeadingDetection.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/WordHeadingDetection.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -27,6 +27,11 @@ public static class Builder { private List fonts; private List styles; + /** + * Instantiates a new Builder from an existing WordHeadingDetection instance. + * + * @param wordHeadingDetection the instance to initialize the Builder with + */ private Builder(WordHeadingDetection wordHeadingDetection) { this.fonts = wordHeadingDetection.fonts; this.styles = wordHeadingDetection.styles; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/WordSettings.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/WordSettings.java index a4136b0d1e2..3395d01984c 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/WordSettings.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/WordSettings.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,11 @@ public class WordSettings extends GenericModel { public static class Builder { private WordHeadingDetection heading; + /** + * Instantiates a new Builder from an existing WordSettings instance. + * + * @param wordSettings the instance to initialize the Builder with + */ private Builder(WordSettings wordSettings) { this.heading = wordSettings.heading; } diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/WordStyle.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/WordStyle.java index f1c19303010..a54d53d4890 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/WordStyle.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/WordStyle.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2017, 2022. + * (C) Copyright IBM Corp. 2023. * * 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 @@ -27,6 +27,11 @@ public static class Builder { private Long level; private List names; + /** + * Instantiates a new Builder from an existing WordStyle instance. + * + * @param wordStyle the instance to initialize the Builder with + */ private Builder(WordStyle wordStyle) { this.level = wordStyle.level; this.names = wordStyle.names; diff --git a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/XPathPatterns.java b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/XPathPatterns.java index a3475b2670d..d8fccb6b6a0 100644 --- a/discovery/src/main/java/com/ibm/watson/discovery/v1/model/XPathPatterns.java +++ b/discovery/src/main/java/com/ibm/watson/discovery/v1/model/XPathPatterns.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2022. + * (C) Copyright IBM Corp. 2023. * * 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,6 +25,11 @@ public class XPathPatterns extends GenericModel { public static class Builder { private List xpaths; + /** + * Instantiates a new Builder from an existing XPathPatterns instance. + * + * @param xPathPatterns the instance to initialize the Builder with + */ private Builder(XPathPatterns xPathPatterns) { this.xpaths = xPathPatterns.xpaths; }