Skip to content

Commit 258c406

Browse files
fix(stt): change smartFormattingVersion to a Long
1 parent 34f6a09 commit 258c406

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/CreateJobOptions.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public interface Events {
229229
protected Boolean timestamps;
230230
protected Boolean profanityFilter;
231231
protected Boolean smartFormatting;
232-
protected Boolean smartFormattingVersion;
232+
protected Long smartFormattingVersion;
233233
protected Boolean speakerLabels;
234234
protected String grammarName;
235235
protected Boolean redaction;
@@ -265,7 +265,7 @@ public static class Builder {
265265
private Boolean timestamps;
266266
private Boolean profanityFilter;
267267
private Boolean smartFormatting;
268-
private Boolean smartFormattingVersion;
268+
private Long smartFormattingVersion;
269269
private Boolean speakerLabels;
270270
private String grammarName;
271271
private Boolean redaction;
@@ -582,7 +582,7 @@ public Builder smartFormatting(Boolean smartFormatting) {
582582
* @param smartFormattingVersion the smartFormattingVersion
583583
* @return the CreateJobOptions builder
584584
*/
585-
public Builder smartFormattingVersion(Boolean smartFormattingVersion) {
585+
public Builder smartFormattingVersion(long smartFormattingVersion) {
586586
this.smartFormattingVersion = smartFormattingVersion;
587587
return this;
588588
}
@@ -1122,7 +1122,7 @@ public Boolean smartFormatting() {
11221122
*
11231123
* @return the smartFormattingVersion
11241124
*/
1125-
public Boolean smartFormattingVersion() {
1125+
public Long smartFormattingVersion() {
11261126
return smartFormattingVersion;
11271127
}
11281128

speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/RecognizeOptions.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public interface Model {
197197
protected Boolean timestamps;
198198
protected Boolean profanityFilter;
199199
protected Boolean smartFormatting;
200-
protected Boolean smartFormattingVersion;
200+
protected Long smartFormattingVersion;
201201
protected Boolean speakerLabels;
202202
protected String grammarName;
203203
protected Boolean redaction;
@@ -227,7 +227,7 @@ public static class Builder {
227227
private Boolean timestamps;
228228
private Boolean profanityFilter;
229229
private Boolean smartFormatting;
230-
private Boolean smartFormattingVersion;
230+
private Long smartFormattingVersion;
231231
private Boolean speakerLabels;
232232
private String grammarName;
233233
private Boolean redaction;
@@ -492,7 +492,7 @@ public Builder smartFormatting(Boolean smartFormatting) {
492492
* @param smartFormattingVersion the smartFormattingVersion
493493
* @return the RecognizeOptions builder
494494
*/
495-
public Builder smartFormattingVersion(Boolean smartFormattingVersion) {
495+
public Builder smartFormattingVersion(long smartFormattingVersion) {
496496
this.smartFormattingVersion = smartFormattingVersion;
497497
return this;
498498
}
@@ -934,7 +934,7 @@ public Boolean smartFormatting() {
934934
*
935935
* @return the smartFormattingVersion
936936
*/
937-
public Boolean smartFormattingVersion() {
937+
public Long smartFormattingVersion() {
938938
return smartFormattingVersion;
939939
}
940940

speech-to-text/src/test/java/com/ibm/watson/speech_to_text/v1/SpeechToTextTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public void testRecognizeWOptions() throws Throwable {
239239
.timestamps(false)
240240
.profanityFilter(true)
241241
.smartFormatting(false)
242-
.smartFormattingVersion(false)
242+
.smartFormattingVersion(Long.valueOf("0"))
243243
.speakerLabels(false)
244244
.grammarName("testString")
245245
.redaction(false)
@@ -284,7 +284,7 @@ public void testRecognizeWOptions() throws Throwable {
284284
assertEquals(Boolean.valueOf(query.get("timestamps")), Boolean.valueOf(false));
285285
assertEquals(Boolean.valueOf(query.get("profanity_filter")), Boolean.valueOf(true));
286286
assertEquals(Boolean.valueOf(query.get("smart_formatting")), Boolean.valueOf(false));
287-
assertEquals(Boolean.valueOf(query.get("smart_formatting_version")), Boolean.valueOf(false));
287+
assertEquals(Long.valueOf(query.get("smart_formatting_version")), Long.valueOf("0"));
288288
assertEquals(Boolean.valueOf(query.get("speaker_labels")), Boolean.valueOf(false));
289289
assertEquals(query.get("grammar_name"), "testString");
290290
assertEquals(Boolean.valueOf(query.get("redaction")), Boolean.valueOf(false));
@@ -457,7 +457,7 @@ public void testCreateJobWOptions() throws Throwable {
457457
.timestamps(false)
458458
.profanityFilter(true)
459459
.smartFormatting(false)
460-
.smartFormattingVersion(false)
460+
.smartFormattingVersion(Long.valueOf("0"))
461461
.speakerLabels(false)
462462
.grammarName("testString")
463463
.redaction(false)
@@ -508,7 +508,7 @@ public void testCreateJobWOptions() throws Throwable {
508508
assertEquals(Boolean.valueOf(query.get("timestamps")), Boolean.valueOf(false));
509509
assertEquals(Boolean.valueOf(query.get("profanity_filter")), Boolean.valueOf(true));
510510
assertEquals(Boolean.valueOf(query.get("smart_formatting")), Boolean.valueOf(false));
511-
assertEquals(Boolean.valueOf(query.get("smart_formatting_version")), Boolean.valueOf(false));
511+
assertEquals(Long.valueOf(query.get("smart_formatting_version")), Long.valueOf("0"));
512512
assertEquals(Boolean.valueOf(query.get("speaker_labels")), Boolean.valueOf(false));
513513
assertEquals(query.get("grammar_name"), "testString");
514514
assertEquals(Boolean.valueOf(query.get("redaction")), Boolean.valueOf(false));

speech-to-text/src/test/java/com/ibm/watson/speech_to_text/v1/model/CreateJobOptionsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void testCreateJobOptions() throws Throwable {
5353
.timestamps(false)
5454
.profanityFilter(true)
5555
.smartFormatting(false)
56-
.smartFormattingVersion(false)
56+
.smartFormattingVersion(Long.valueOf("0"))
5757
.speakerLabels(false)
5858
.grammarName("testString")
5959
.redaction(false)
@@ -89,7 +89,7 @@ public void testCreateJobOptions() throws Throwable {
8989
assertEquals(createJobOptionsModel.timestamps(), Boolean.valueOf(false));
9090
assertEquals(createJobOptionsModel.profanityFilter(), Boolean.valueOf(true));
9191
assertEquals(createJobOptionsModel.smartFormatting(), Boolean.valueOf(false));
92-
assertEquals(createJobOptionsModel.smartFormattingVersion(), Boolean.valueOf(false));
92+
assertEquals(createJobOptionsModel.smartFormattingVersion(), Long.valueOf("0"));
9393
assertEquals(createJobOptionsModel.speakerLabels(), Boolean.valueOf(false));
9494
assertEquals(createJobOptionsModel.grammarName(), "testString");
9595
assertEquals(createJobOptionsModel.redaction(), Boolean.valueOf(false));

speech-to-text/src/test/java/com/ibm/watson/speech_to_text/v1/model/RecognizeOptionsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void testRecognizeOptions() throws Throwable {
4949
.timestamps(false)
5050
.profanityFilter(true)
5151
.smartFormatting(false)
52-
.smartFormattingVersion(false)
52+
.smartFormattingVersion(Long.valueOf("0"))
5353
.speakerLabels(false)
5454
.grammarName("testString")
5555
.redaction(false)
@@ -79,7 +79,7 @@ public void testRecognizeOptions() throws Throwable {
7979
assertEquals(recognizeOptionsModel.timestamps(), Boolean.valueOf(false));
8080
assertEquals(recognizeOptionsModel.profanityFilter(), Boolean.valueOf(true));
8181
assertEquals(recognizeOptionsModel.smartFormatting(), Boolean.valueOf(false));
82-
assertEquals(recognizeOptionsModel.smartFormattingVersion(), Boolean.valueOf(false));
82+
assertEquals(recognizeOptionsModel.smartFormattingVersion(), Long.valueOf("0"));
8383
assertEquals(recognizeOptionsModel.speakerLabels(), Boolean.valueOf(false));
8484
assertEquals(recognizeOptionsModel.grammarName(), "testString");
8585
assertEquals(recognizeOptionsModel.redaction(), Boolean.valueOf(false));

0 commit comments

Comments
 (0)