Skip to content

Commit 3cef401

Browse files
committed
refactor(Assistant v1): Update code comments
1 parent 8bb46da commit 3cef401

36 files changed

Lines changed: 98 additions & 151 deletions

‎assistant/src/main/java/com/ibm/watson/assistant/v1/model/Counterexample.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,8 @@ public Builder newBuilder() {
118118
* Gets the text.
119119
*
120120
* The text of a user input marked as irrelevant input. This string must conform to the following restrictions:
121-
* - It cannot contain carriage return, newline, or tab characters
122-
* - It cannot consist of only whitespace characters
123-
* - It must be no longer than 1024 characters.
121+
* - It cannot contain carriage return, newline, or tab characters.
122+
* - It cannot consist of only whitespace characters.
124123
*
125124
* @return the text
126125
*/

‎assistant/src/main/java/com/ibm/watson/assistant/v1/model/CreateCounterexampleOptions.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,8 @@ public String workspaceId() {
126126
* Gets the text.
127127
*
128128
* The text of a user input marked as irrelevant input. This string must conform to the following restrictions:
129-
* - It cannot contain carriage return, newline, or tab characters
130-
* - It cannot consist of only whitespace characters
131-
* - It must be no longer than 1024 characters.
129+
* - It cannot contain carriage return, newline, or tab characters.
130+
* - It cannot consist of only whitespace characters.
132131
*
133132
* @return the text
134133
*/

‎assistant/src/main/java/com/ibm/watson/assistant/v1/model/CreateDialogNodeOptions.java‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,6 @@ public String workspaceId() {
497497
*
498498
* The dialog node ID. This string must conform to the following restrictions:
499499
* - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
500-
* - It must be no longer than 1024 characters.
501500
*
502501
* @return the dialogNode
503502
*/
@@ -508,8 +507,7 @@ public String dialogNode() {
508507
/**
509508
* Gets the description.
510509
*
511-
* The description of the dialog node. This string cannot contain carriage return, newline, or tab characters, and it
512-
* must be no longer than 128 characters.
510+
* The description of the dialog node. This string cannot contain carriage return, newline, or tab characters.
513511
*
514512
* @return the description
515513
*/
@@ -521,7 +519,7 @@ public String description() {
521519
* Gets the conditions.
522520
*
523521
* The condition that will trigger the dialog node. This string cannot contain carriage return, newline, or tab
524-
* characters, and it must be no longer than 2048 characters.
522+
* characters.
525523
*
526524
* @return the conditions
527525
*/
@@ -555,7 +553,7 @@ public String previousSibling() {
555553
* Gets the output.
556554
*
557555
* The output of the dialog node. For more information about how to specify dialog node output, see the
558-
* [documentation](https://cloud.ibm.com/docs/services/assistant/dialog-overview.html#dialog-overview-responses).
556+
* [documentation](https://cloud.ibm.com/docs/services/assistant?topic=assistant-dialog-overview#dialog-overview-responses).
559557
*
560558
* @return the output
561559
*/
@@ -601,7 +599,6 @@ public DialogNodeNextStep nextStep() {
601599
*
602600
* The alias used to identify the dialog node. This string must conform to the following restrictions:
603601
* - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
604-
* - It must be no longer than 64 characters.
605602
*
606603
* @return the title
607604
*/
@@ -689,8 +686,7 @@ public String digressOutSlots() {
689686
/**
690687
* Gets the userLabel.
691688
*
692-
* A label that can be displayed externally to describe the purpose of the node to users. This string must be no
693-
* longer than 512 characters.
689+
* A label that can be displayed externally to describe the purpose of the node to users.
694690
*
695691
* @return the userLabel
696692
*/

‎assistant/src/main/java/com/ibm/watson/assistant/v1/model/CreateEntity.java‎

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class CreateEntity extends GenericModel {
2828

2929
private String entity;
3030
private String description;
31-
private Map<String, Object> metadata;
31+
private Map metadata;
3232
@SerializedName("fuzzy_match")
3333
private Boolean fuzzyMatch;
3434
private Date created;
@@ -41,7 +41,7 @@ public class CreateEntity extends GenericModel {
4141
public static class Builder {
4242
private String entity;
4343
private String description;
44-
private Map<String, Object> metadata;
44+
private Map metadata;
4545
private Boolean fuzzyMatch;
4646
private Date created;
4747
private Date updated;
@@ -124,7 +124,7 @@ public Builder description(String description) {
124124
* @param metadata the metadata
125125
* @return the CreateEntity builder
126126
*/
127-
public Builder metadata(Map<String, Object> metadata) {
127+
public Builder metadata(Map metadata) {
128128
this.metadata = metadata;
129129
return this;
130130
}
@@ -200,9 +200,7 @@ public Builder newBuilder() {
200200
*
201201
* The name of the entity. This string must conform to the following restrictions:
202202
* - It can contain only Unicode alphanumeric, underscore, and hyphen characters.
203-
* - It must be no longer than 64 characters.
204-
*
205-
* If you specify an entity name beginning with the reserved prefix `sys-`, it must be the name of a system entity
203+
* - If you specify an entity name beginning with the reserved prefix `sys-`, it must be the name of a system entity
206204
* that you want to enable. (Any entity content specified with the request is ignored.).
207205
*
208206
* @return the entity
@@ -214,8 +212,7 @@ public String entity() {
214212
/**
215213
* Gets the description.
216214
*
217-
* The description of the entity. This string cannot contain carriage return, newline, or tab characters, and it must
218-
* be no longer than 128 characters.
215+
* The description of the entity. This string cannot contain carriage return, newline, or tab characters.
219216
*
220217
* @return the description
221218
*/
@@ -230,7 +227,7 @@ public String description() {
230227
*
231228
* @return the metadata
232229
*/
233-
public Map<String, Object> metadata() {
230+
public Map metadata() {
234231
return metadata;
235232
}
236233

‎assistant/src/main/java/com/ibm/watson/assistant/v1/model/CreateEntityOptions.java‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,7 @@ public String workspaceId() {
196196
*
197197
* The name of the entity. This string must conform to the following restrictions:
198198
* - It can contain only Unicode alphanumeric, underscore, and hyphen characters.
199-
* - It must be no longer than 64 characters.
200-
*
201-
* If you specify an entity name beginning with the reserved prefix `sys-`, it must be the name of a system entity
199+
* - If you specify an entity name beginning with the reserved prefix `sys-`, it must be the name of a system entity
202200
* that you want to enable. (Any entity content specified with the request is ignored.).
203201
*
204202
* @return the entity
@@ -210,8 +208,7 @@ public String entity() {
210208
/**
211209
* Gets the description.
212210
*
213-
* The description of the entity. This string cannot contain carriage return, newline, or tab characters, and it must
214-
* be no longer than 128 characters.
211+
* The description of the entity. This string cannot contain carriage return, newline, or tab characters.
215212
*
216213
* @return the description
217214
*/

‎assistant/src/main/java/com/ibm/watson/assistant/v1/model/CreateExampleOptions.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ public String intent() {
192192
* The text of a user input example. This string must conform to the following restrictions:
193193
* - It cannot contain carriage return, newline, or tab characters.
194194
* - It cannot consist of only whitespace characters.
195-
* - It must be no longer than 1024 characters.
196195
*
197196
* @return the text
198197
*/

‎assistant/src/main/java/com/ibm/watson/assistant/v1/model/CreateIntent.java‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ public Builder newBuilder() {
168168
* The name of the intent. This string must conform to the following restrictions:
169169
* - It can contain only Unicode alphanumeric, underscore, hyphen, and dot characters.
170170
* - It cannot begin with the reserved prefix `sys-`.
171-
* - It must be no longer than 128 characters.
172171
*
173172
* @return the intent
174173
*/
@@ -179,8 +178,7 @@ public String intent() {
179178
/**
180179
* Gets the description.
181180
*
182-
* The description of the intent. This string cannot contain carriage return, newline, or tab characters, and it must
183-
* be no longer than 128 characters.
181+
* The description of the intent. This string cannot contain carriage return, newline, or tab characters.
184182
*
185183
* @return the description
186184
*/

‎assistant/src/main/java/com/ibm/watson/assistant/v1/model/CreateIntentOptions.java‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ public String workspaceId() {
166166
* The name of the intent. This string must conform to the following restrictions:
167167
* - It can contain only Unicode alphanumeric, underscore, hyphen, and dot characters.
168168
* - It cannot begin with the reserved prefix `sys-`.
169-
* - It must be no longer than 128 characters.
170169
*
171170
* @return the intent
172171
*/
@@ -177,8 +176,7 @@ public String intent() {
177176
/**
178177
* Gets the description.
179178
*
180-
* The description of the intent. This string cannot contain carriage return, newline, or tab characters, and it must
181-
* be no longer than 128 characters.
179+
* The description of the intent. This string cannot contain carriage return, newline, or tab characters.
182180
*
183181
* @return the description
184182
*/

‎assistant/src/main/java/com/ibm/watson/assistant/v1/model/CreateSynonymOptions.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ public String value() {
186186
* The text of the synonym. This string must conform to the following restrictions:
187187
* - It cannot contain carriage return, newline, or tab characters.
188188
* - It cannot consist of only whitespace characters.
189-
* - It must be no longer than 64 characters.
190189
*
191190
* @return the synonym
192191
*/

‎assistant/src/main/java/com/ibm/watson/assistant/v1/model/CreateValue.java‎

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public interface ValueType {
3737
}
3838

3939
private String value;
40-
private Map<String, Object> metadata;
40+
private Map metadata;
4141
@SerializedName("type")
4242
private String valueType;
4343
private List<String> synonyms;
@@ -50,7 +50,7 @@ public interface ValueType {
5050
*/
5151
public static class Builder {
5252
private String value;
53-
private Map<String, Object> metadata;
53+
private Map metadata;
5454
private String valueType;
5555
private List<String> synonyms;
5656
private List<String> patterns;
@@ -138,7 +138,7 @@ public Builder value(String value) {
138138
* @param metadata the metadata
139139
* @return the CreateValue builder
140140
*/
141-
public Builder metadata(Map<String, Object> metadata) {
141+
public Builder metadata(Map metadata) {
142142
this.metadata = metadata;
143143
return this;
144144
}
@@ -227,7 +227,6 @@ public Builder newBuilder() {
227227
* The text of the entity value. This string must conform to the following restrictions:
228228
* - It cannot contain carriage return, newline, or tab characters.
229229
* - It cannot consist of only whitespace characters.
230-
* - It must be no longer than 64 characters.
231230
*
232231
* @return the value
233232
*/
@@ -242,7 +241,7 @@ public String value() {
242241
*
243242
* @return the metadata
244243
*/
245-
public Map<String, Object> metadata() {
244+
public Map metadata() {
246245
return metadata;
247246
}
248247

@@ -264,7 +263,6 @@ public String valueType() {
264263
* type), but not both. A synonym must conform to the following resrictions:
265264
* - It cannot contain carriage return, newline, or tab characters.
266265
* - It cannot consist of only whitespace characters.
267-
* - It must be no longer than 64 characters.
268266
*
269267
* @return the synonyms
270268
*/
@@ -276,9 +274,9 @@ public List<String> synonyms() {
276274
* Gets the patterns.
277275
*
278276
* An array of patterns for the entity value. A value can specify either synonyms or patterns (depending on the value
279-
* type), but not both. A pattern is a regular expression no longer than 512 characters. For more information about
280-
* how to specify a pattern, see the
281-
* [documentation](https://cloud.ibm.com/docs/services/assistant/entities.html#entities-create-dictionary-based).
277+
* type), but not both. A pattern is a regular expression; for more information about how to specify a pattern, see
278+
* the
279+
* [documentation](https://cloud.ibm.com/docs/services/assistant?topic=assistant-entities#entities-create-dictionary-based).
282280
*
283281
* @return the patterns
284282
*/

0 commit comments

Comments
 (0)