Skip to content

Commit 82ef647

Browse files
committed
feat(generation): generated using api def sdk-2021-05-11 & gen 3.31.0
1 parent 3b1fbf1 commit 82ef647

13 files changed

+80
-88
lines changed

assistant/src/main/java/com/ibm/watson/assistant/v1/model/DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
package com.ibm.watson.assistant.v1.model;
1414

1515
import com.google.gson.annotations.SerializedName;
16-
1716
import java.util.ArrayList;
1817
import java.util.List;
1918

@@ -158,7 +157,6 @@ public Builder newBuilder() {
158157
return new Builder(this);
159158
}
160159

161-
162160
/**
163161
* Gets the responseType.
164162
*

assistant/src/main/java/com/ibm/watson/assistant/v1/model/DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
package com.ibm.watson.assistant.v1.model;
1414

1515
import com.google.gson.annotations.SerializedName;
16-
1716
import java.util.ArrayList;
1817
import java.util.List;
1918

@@ -48,7 +47,8 @@ public static class Builder {
4847
private List<ResponseGenericChannel> channels;
4948

5049
public Builder(
51-
DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent dialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent) {
50+
DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent
51+
dialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent) {
5252
this.responseType =
5353
dialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent.responseType;
5454
this.messageToHumanAgent =
@@ -186,7 +186,6 @@ public Builder newBuilder() {
186186
return new Builder(this);
187187
}
188188

189-
190189
/**
191190
* Gets the responseType.
192191
*

assistant/src/main/java/com/ibm/watson/assistant/v1/model/DialogNodeOutputGenericDialogNodeOutputResponseTypeImage.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
package com.ibm.watson.assistant.v1.model;
1414

1515
import com.google.gson.annotations.SerializedName;
16-
1716
import java.util.ArrayList;
1817
import java.util.List;
1918

@@ -38,7 +37,8 @@ public static class Builder {
3837
private List<ResponseGenericChannel> channels;
3938

4039
public Builder(
41-
DialogNodeOutputGenericDialogNodeOutputResponseTypeImage dialogNodeOutputGenericDialogNodeOutputResponseTypeImage) {
40+
DialogNodeOutputGenericDialogNodeOutputResponseTypeImage
41+
dialogNodeOutputGenericDialogNodeOutputResponseTypeImage) {
4242
this.responseType = dialogNodeOutputGenericDialogNodeOutputResponseTypeImage.responseType;
4343
this.source = dialogNodeOutputGenericDialogNodeOutputResponseTypeImage.source;
4444
this.title = dialogNodeOutputGenericDialogNodeOutputResponseTypeImage.title;
@@ -160,7 +160,6 @@ public Builder newBuilder() {
160160
return new Builder(this);
161161
}
162162

163-
164163
/**
165164
* Gets the responseType.
166165
*

assistant/src/main/java/com/ibm/watson/assistant/v1/model/DialogNodeOutputGenericDialogNodeOutputResponseTypeOption.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
package com.ibm.watson.assistant.v1.model;
1414

1515
import com.google.gson.annotations.SerializedName;
16-
1716
import java.util.ArrayList;
1817
import java.util.List;
1918

@@ -48,7 +47,8 @@ public static class Builder {
4847
private List<ResponseGenericChannel> channels;
4948

5049
public Builder(
51-
DialogNodeOutputGenericDialogNodeOutputResponseTypeOption dialogNodeOutputGenericDialogNodeOutputResponseTypeOption) {
50+
DialogNodeOutputGenericDialogNodeOutputResponseTypeOption
51+
dialogNodeOutputGenericDialogNodeOutputResponseTypeOption) {
5252
this.responseType = dialogNodeOutputGenericDialogNodeOutputResponseTypeOption.responseType;
5353
this.title = dialogNodeOutputGenericDialogNodeOutputResponseTypeOption.title;
5454
this.description = dialogNodeOutputGenericDialogNodeOutputResponseTypeOption.description;
@@ -202,7 +202,6 @@ public Builder newBuilder() {
202202
return new Builder(this);
203203
}
204204

205-
206205
/**
207206
* Gets the responseType.
208207
*

assistant/src/main/java/com/ibm/watson/assistant/v1/model/DialogNodeOutputGenericDialogNodeOutputResponseTypePause.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
package com.ibm.watson.assistant.v1.model;
1414

1515
import com.google.gson.annotations.SerializedName;
16-
1716
import java.util.ArrayList;
1817
import java.util.List;
1918

@@ -36,7 +35,8 @@ public static class Builder {
3635
private List<ResponseGenericChannel> channels;
3736

3837
public Builder(
39-
DialogNodeOutputGenericDialogNodeOutputResponseTypePause dialogNodeOutputGenericDialogNodeOutputResponseTypePause) {
38+
DialogNodeOutputGenericDialogNodeOutputResponseTypePause
39+
dialogNodeOutputGenericDialogNodeOutputResponseTypePause) {
4040
this.responseType = dialogNodeOutputGenericDialogNodeOutputResponseTypePause.responseType;
4141
this.time = dialogNodeOutputGenericDialogNodeOutputResponseTypePause.time;
4242
this.typing = dialogNodeOutputGenericDialogNodeOutputResponseTypePause.typing;
@@ -145,7 +145,6 @@ public Builder newBuilder() {
145145
return new Builder(this);
146146
}
147147

148-
149148
/**
150149
* Gets the responseType.
151150
*

assistant/src/main/java/com/ibm/watson/assistant/v1/model/DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
package com.ibm.watson.assistant.v1.model;
1414

1515
import com.google.gson.annotations.SerializedName;
16-
1716
import java.util.ArrayList;
1817
import java.util.List;
1918

@@ -54,7 +53,8 @@ public static class Builder {
5453
private List<ResponseGenericChannel> channels;
5554

5655
public Builder(
57-
DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill dialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill) {
56+
DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill
57+
dialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill) {
5858
this.responseType =
5959
dialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill.responseType;
6060
this.query = dialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill.query;
@@ -194,7 +194,6 @@ public Builder newBuilder() {
194194
return new Builder(this);
195195
}
196196

197-
198197
/**
199198
* Gets the responseType.
200199
*

assistant/src/main/java/com/ibm/watson/assistant/v1/model/DialogNodeOutputGenericDialogNodeOutputResponseTypeText.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
package com.ibm.watson.assistant.v1.model;
1414

1515
import com.google.gson.annotations.SerializedName;
16-
1716
import java.util.ArrayList;
1817
import java.util.List;
1918

@@ -35,9 +34,10 @@ public interface SelectionPolicy {
3534
private String responseType;
3635

3736
private List<DialogNodeOutputTextValuesElement> values;
38-
@SerializedName("selection_policy")
3937

38+
@SerializedName("selection_policy")
4039
private String selectionPolicy;
40+
4141
private String delimiter;
4242
private List<ResponseGenericChannel> channels;
4343

@@ -50,7 +50,8 @@ public static class Builder {
5050
private List<ResponseGenericChannel> channels;
5151

5252
public Builder(
53-
DialogNodeOutputGenericDialogNodeOutputResponseTypeText dialogNodeOutputGenericDialogNodeOutputResponseTypeText) {
53+
DialogNodeOutputGenericDialogNodeOutputResponseTypeText
54+
dialogNodeOutputGenericDialogNodeOutputResponseTypeText) {
5455
this.responseType = dialogNodeOutputGenericDialogNodeOutputResponseTypeText.responseType;
5556
this.values = dialogNodeOutputGenericDialogNodeOutputResponseTypeText.values;
5657
this.selectionPolicy =
@@ -188,7 +189,6 @@ public Builder newBuilder() {
188189
return new Builder(this);
189190
}
190191

191-
192192
/**
193193
* Gets the responseType.
194194
*

assistant/src/main/java/com/ibm/watson/assistant/v1/model/DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
package com.ibm.watson.assistant.v1.model;
1414

1515
import com.google.gson.annotations.SerializedName;
16-
1716
import java.util.ArrayList;
1817
import java.util.List;
1918
import java.util.Map;
@@ -37,7 +36,8 @@ public static class Builder {
3736
private List<ResponseGenericChannel> channels;
3837

3938
public Builder(
40-
DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined dialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined) {
39+
DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined
40+
dialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined) {
4141
this.responseType =
4242
dialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined.responseType;
4343
this.userDefined = dialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined.userDefined;
@@ -135,7 +135,6 @@ public Builder newBuilder() {
135135
return new Builder(this);
136136
}
137137

138-
139138
/**
140139
* Gets the responseType.
141140
*

natural-language-understanding/src/main/java/com/ibm/watson/natural_language_understanding/v1/model/Features.java

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
/** Analysis features and options. */
2121
public class Features extends GenericModel {
2222

23-
protected CategoriesOptions categories;
2423
protected ClassificationsOptions classifications;
2524
protected ConceptsOptions concepts;
2625
protected EmotionOptions emotion;
@@ -34,11 +33,11 @@ public class Features extends GenericModel {
3433

3534
protected SentimentOptions sentiment;
3635
protected SummarizationOptions summarization;
36+
protected CategoriesOptions categories;
3737
protected SyntaxOptions syntax;
3838

3939
/** Builder. */
4040
public static class Builder {
41-
private CategoriesOptions categories;
4241
private ClassificationsOptions classifications;
4342
private ConceptsOptions concepts;
4443
private EmotionOptions emotion;
@@ -49,10 +48,10 @@ public static class Builder {
4948
private SemanticRolesOptions semanticRoles;
5049
private SentimentOptions sentiment;
5150
private SummarizationOptions summarization;
51+
private CategoriesOptions categories;
5252
private SyntaxOptions syntax;
5353

5454
private Builder(Features features) {
55-
this.categories = features.categories;
5655
this.classifications = features.classifications;
5756
this.concepts = features.concepts;
5857
this.emotion = features.emotion;
@@ -63,6 +62,7 @@ private Builder(Features features) {
6362
this.semanticRoles = features.semanticRoles;
6463
this.sentiment = features.sentiment;
6564
this.summarization = features.summarization;
65+
this.categories = features.categories;
6666
this.syntax = features.syntax;
6767
}
6868

@@ -78,17 +78,6 @@ public Features build() {
7878
return new Features(this);
7979
}
8080

81-
/**
82-
* Set the categories.
83-
*
84-
* @param categories the categories
85-
* @return the Features builder
86-
*/
87-
public Builder categories(CategoriesOptions categories) {
88-
this.categories = categories;
89-
return this;
90-
}
91-
9281
/**
9382
* Set the classifications.
9483
*
@@ -199,6 +188,17 @@ public Builder summarization(SummarizationOptions summarization) {
199188
return this;
200189
}
201190

191+
/**
192+
* Set the categories.
193+
*
194+
* @param categories the categories
195+
* @return the Features builder
196+
*/
197+
public Builder categories(CategoriesOptions categories) {
198+
this.categories = categories;
199+
return this;
200+
}
201+
202202
/**
203203
* Set the syntax.
204204
*
@@ -212,7 +212,6 @@ public Builder syntax(SyntaxOptions syntax) {
212212
}
213213

214214
protected Features(Builder builder) {
215-
categories = builder.categories;
216215
classifications = builder.classifications;
217216
concepts = builder.concepts;
218217
emotion = builder.emotion;
@@ -223,6 +222,7 @@ protected Features(Builder builder) {
223222
semanticRoles = builder.semanticRoles;
224223
sentiment = builder.sentiment;
225224
summarization = builder.summarization;
225+
categories = builder.categories;
226226
syntax = builder.syntax;
227227
}
228228

@@ -235,20 +235,6 @@ public Builder newBuilder() {
235235
return new Builder(this);
236236
}
237237

238-
/**
239-
* Gets the categories.
240-
*
241-
* <p>Returns a five-level taxonomy of the content. The top three categories are returned.
242-
*
243-
* <p>Supported languages: Arabic, English, French, German, Italian, Japanese, Korean, Portuguese,
244-
* Spanish.
245-
*
246-
* @return the categories
247-
*/
248-
public CategoriesOptions categories() {
249-
return categories;
250-
}
251-
252238
/**
253239
* Gets the classifications.
254240
*
@@ -394,6 +380,20 @@ public SummarizationOptions summarization() {
394380
return summarization;
395381
}
396382

383+
/**
384+
* Gets the categories.
385+
*
386+
* <p>Returns a five-level taxonomy of the content. The top three categories are returned.
387+
*
388+
* <p>Supported languages: Arabic, English, French, German, Italian, Japanese, Korean, Portuguese,
389+
* Spanish.
390+
*
391+
* @return the categories
392+
*/
393+
public CategoriesOptions categories() {
394+
return categories;
395+
}
396+
397397
/**
398398
* Gets the syntax.
399399
*

natural-language-understanding/src/test/java/com/ibm/watson/natural_language_understanding/v1/NaturalLanguageUnderstandingIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
import com.ibm.watson.common.RetryRunner;
2323
import com.ibm.watson.common.WatsonServiceTest;
2424
import com.ibm.watson.natural_language_understanding.v1.model.*;
25+
import com.ibm.watson.natural_language_understanding.v1.utils.TestUtilities;
2526
import java.io.FileInputStream;
2627
import java.util.Arrays;
2728
import java.util.HashMap;
2829
import java.util.List;
29-
import com.ibm.watson.natural_language_understanding.v1.utils.TestUtilities;
3030
import org.junit.Assume;
3131
import org.junit.Before;
3232
import org.junit.FixMethodOrder;

0 commit comments

Comments
 (0)