Skip to content

Commit 526a25f

Browse files
refactor(lt): test updates
1 parent 0608486 commit 526a25f

File tree

13 files changed

+34
-16
lines changed

13 files changed

+34
-16
lines changed

language-translator/src/main/java/com/ibm/watson/language_translator/v3/LanguageTranslator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414
/*
15-
* IBM OpenAPI SDK Code Generator Version: 3.46.0-a4e29da0-20220224-210428
15+
* IBM OpenAPI SDK Code Generator Version: 3.53.0-9710cac3-20220713-193508
1616
*/
1717

1818
package com.ibm.watson.language_translator.v3;

language-translator/src/main/java/com/ibm/watson/language_translator/v3/model/CreateModelOptions.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ public Builder parallelCorpus(File parallelCorpus) throws FileNotFoundException
158158
}
159159
}
160160

161+
protected CreateModelOptions() {}
162+
161163
protected CreateModelOptions(Builder builder) {
162164
com.ibm.cloud.sdk.core.util.Validator.notNull(
163165
builder.baseModelId, "baseModelId cannot be null");

language-translator/src/main/java/com/ibm/watson/language_translator/v3/model/DeleteDocumentOptions.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. 2019, 2022.
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
@@ -60,6 +60,8 @@ public Builder documentId(String documentId) {
6060
}
6161
}
6262

63+
protected DeleteDocumentOptions() {}
64+
6365
protected DeleteDocumentOptions(Builder builder) {
6466
com.ibm.cloud.sdk.core.util.Validator.notEmpty(
6567
builder.documentId, "documentId cannot be empty");

language-translator/src/main/java/com/ibm/watson/language_translator/v3/model/DeleteModelOptions.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. 2017, 2022.
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
@@ -60,6 +60,8 @@ public Builder modelId(String modelId) {
6060
}
6161
}
6262

63+
protected DeleteModelOptions() {}
64+
6365
protected DeleteModelOptions(Builder builder) {
6466
com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.modelId, "modelId cannot be empty");
6567
modelId = builder.modelId;

language-translator/src/main/java/com/ibm/watson/language_translator/v3/model/GetDocumentStatusOptions.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. 2019, 2022.
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
@@ -60,6 +60,8 @@ public Builder documentId(String documentId) {
6060
}
6161
}
6262

63+
protected GetDocumentStatusOptions() {}
64+
6365
protected GetDocumentStatusOptions(Builder builder) {
6466
com.ibm.cloud.sdk.core.util.Validator.notEmpty(
6567
builder.documentId, "documentId cannot be empty");

language-translator/src/main/java/com/ibm/watson/language_translator/v3/model/GetModelOptions.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. 2017, 2022.
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
@@ -60,6 +60,8 @@ public Builder modelId(String modelId) {
6060
}
6161
}
6262

63+
protected GetModelOptions() {}
64+
6365
protected GetModelOptions(Builder builder) {
6466
com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.modelId, "modelId cannot be empty");
6567
modelId = builder.modelId;

language-translator/src/main/java/com/ibm/watson/language_translator/v3/model/GetTranslatedDocumentOptions.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. 2019, 2022.
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
@@ -74,6 +74,8 @@ public Builder accept(String accept) {
7474
}
7575
}
7676

77+
protected GetTranslatedDocumentOptions() {}
78+
7779
protected GetTranslatedDocumentOptions(Builder builder) {
7880
com.ibm.cloud.sdk.core.util.Validator.notEmpty(
7981
builder.documentId, "documentId cannot be empty");

language-translator/src/main/java/com/ibm/watson/language_translator/v3/model/IdentifyOptions.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. 2017, 2022.
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
@@ -60,6 +60,8 @@ public Builder text(String text) {
6060
}
6161
}
6262

63+
protected IdentifyOptions() {}
64+
6365
protected IdentifyOptions(Builder builder) {
6466
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.text, "text cannot be null");
6567
text = builder.text;

language-translator/src/main/java/com/ibm/watson/language_translator/v3/model/ListModelsOptions.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. 2017, 2022.
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
@@ -79,6 +79,8 @@ public Builder xDefault(Boolean xDefault) {
7979
}
8080
}
8181

82+
protected ListModelsOptions() {}
83+
8284
protected ListModelsOptions(Builder builder) {
8385
source = builder.source;
8486
target = builder.target;

language-translator/src/main/java/com/ibm/watson/language_translator/v3/model/TranslateDocumentOptions.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. 2019, 2022.
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
@@ -163,6 +163,8 @@ public Builder file(File file) throws FileNotFoundException {
163163
}
164164
}
165165

166+
protected TranslateDocumentOptions() {}
167+
166168
protected TranslateDocumentOptions(Builder builder) {
167169
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.file, "file cannot be null");
168170
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.filename, "filename cannot be null");

0 commit comments

Comments
 (0)