Skip to content

Commit a810f01

Browse files
jeff-arnapaparazzi0329
authored andcommitted
feat(discoveryv1): update based on latest api definitions
updated protected methods in model classes and update javadoc strings
1 parent aaf9b77 commit a810f01

File tree

165 files changed

+800
-166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+800
-166
lines changed

discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2019, 2022.
2+
* (C) Copyright IBM Corp. 2023.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -12,7 +12,7 @@
1212
*/
1313

1414
/*
15-
* IBM OpenAPI SDK Code Generator Version: 3.53.0-9710cac3-20220713-193508
15+
* IBM OpenAPI SDK Code Generator Version: 3.64.1-cee95189-20230124-211647
1616
*/
1717

1818
package com.ibm.watson.discovery.v1;
@@ -137,8 +137,10 @@
137137
*/
138138
public class Discovery extends BaseService {
139139

140+
/** Default service name used when configuring the `Discovery` client. */
140141
public static final String DEFAULT_SERVICE_NAME = "discovery";
141142

143+
/** Default service endpoint URL. */
142144
public static final String DEFAULT_SERVICE_URL =
143145
"https://api.us-south.discovery.watson.cloud.ibm.com";
144146

discovery/src/main/java/com/ibm/watson/discovery/v1/model/AddDocumentOptions.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2017, 2022.
2+
* (C) Copyright IBM Corp. 2023.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -37,6 +37,11 @@ public static class Builder {
3737
private String fileContentType;
3838
private String metadata;
3939

40+
/**
41+
* Instantiates a new Builder from an existing AddDocumentOptions instance.
42+
*
43+
* @param addDocumentOptions the instance to initialize the Builder with
44+
*/
4045
private Builder(AddDocumentOptions addDocumentOptions) {
4146
this.environmentId = addDocumentOptions.environmentId;
4247
this.collectionId = addDocumentOptions.collectionId;

discovery/src/main/java/com/ibm/watson/discovery/v1/model/AddTrainingDataOptions.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2017, 2022.
2+
* (C) Copyright IBM Corp. 2023.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -33,6 +33,11 @@ public static class Builder {
3333
private String filter;
3434
private List<TrainingExample> examples;
3535

36+
/**
37+
* Instantiates a new Builder from an existing AddTrainingDataOptions instance.
38+
*
39+
* @param addTrainingDataOptions the instance to initialize the Builder with
40+
*/
3641
private Builder(AddTrainingDataOptions addTrainingDataOptions) {
3742
this.environmentId = addTrainingDataOptions.environmentId;
3843
this.collectionId = addTrainingDataOptions.collectionId;

discovery/src/main/java/com/ibm/watson/discovery/v1/model/Collection.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2017, 2020.
2+
* (C) Copyright IBM Corp. 2023.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -58,6 +58,8 @@ public interface Status {
5858
@SerializedName("smart_document_understanding")
5959
protected SduStatus smartDocumentUnderstanding;
6060

61+
protected Collection() {}
62+
6163
/**
6264
* Gets the collectionId.
6365
*

discovery/src/main/java/com/ibm/watson/discovery/v1/model/CollectionCrawlStatus.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2019, 2020.
2+
* (C) Copyright IBM Corp. 2023.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -21,6 +21,8 @@ public class CollectionCrawlStatus extends GenericModel {
2121
@SerializedName("source_crawl")
2222
protected SourceStatus sourceCrawl;
2323

24+
protected CollectionCrawlStatus() {}
25+
2426
/**
2527
* Gets the sourceCrawl.
2628
*

discovery/src/main/java/com/ibm/watson/discovery/v1/model/CollectionDiskUsage.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2019, 2020.
2+
* (C) Copyright IBM Corp. 2023.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -21,6 +21,8 @@ public class CollectionDiskUsage extends GenericModel {
2121
@SerializedName("used_bytes")
2222
protected Long usedBytes;
2323

24+
protected CollectionDiskUsage() {}
25+
2426
/**
2527
* Gets the usedBytes.
2628
*

discovery/src/main/java/com/ibm/watson/discovery/v1/model/CollectionUsage.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2017, 2020.
2+
* (C) Copyright IBM Corp. 2023.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -23,6 +23,8 @@ public class CollectionUsage extends GenericModel {
2323
@SerializedName("maximum_allowed")
2424
protected Long maximumAllowed;
2525

26+
protected CollectionUsage() {}
27+
2628
/**
2729
* Gets the available.
2830
*

discovery/src/main/java/com/ibm/watson/discovery/v1/model/Completions.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2019, 2020.
2+
* (C) Copyright IBM Corp. 2023.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -20,6 +20,8 @@ public class Completions extends GenericModel {
2020

2121
protected List<String> completions;
2222

23+
protected Completions() {}
24+
2325
/**
2426
* Gets the completions.
2527
*

discovery/src/main/java/com/ibm/watson/discovery/v1/model/Configuration.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2017, 2022.
2+
* (C) Copyright IBM Corp. 2023.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -42,6 +42,11 @@ public static class Builder {
4242
private List<NormalizationOperation> normalizations;
4343
private Source source;
4444

45+
/**
46+
* Instantiates a new Builder from an existing Configuration instance.
47+
*
48+
* @param configuration the instance to initialize the Builder with
49+
*/
4550
private Builder(Configuration configuration) {
4651
this.name = configuration.name;
4752
this.description = configuration.description;

discovery/src/main/java/com/ibm/watson/discovery/v1/model/Conversions.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2017, 2022.
2+
* (C) Copyright IBM Corp. 2023.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -40,6 +40,11 @@ public static class Builder {
4040
private List<NormalizationOperation> jsonNormalizations;
4141
private Boolean imageTextRecognition;
4242

43+
/**
44+
* Instantiates a new Builder from an existing Conversions instance.
45+
*
46+
* @param conversions the instance to initialize the Builder with
47+
*/
4348
private Builder(Conversions conversions) {
4449
this.pdf = conversions.pdf;
4550
this.word = conversions.word;

0 commit comments

Comments
 (0)