Skip to content

Commit

Permalink
fix(stt): change smartFormattingVersion to a Long
Browse files Browse the repository at this point in the history
  • Loading branch information
apaparazzi0329 committed Mar 13, 2024
1 parent 34f6a09 commit 258c406
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public interface Events {
protected Boolean timestamps;
protected Boolean profanityFilter;
protected Boolean smartFormatting;
protected Boolean smartFormattingVersion;
protected Long smartFormattingVersion;
protected Boolean speakerLabels;
protected String grammarName;
protected Boolean redaction;
Expand Down Expand Up @@ -265,7 +265,7 @@ public static class Builder {
private Boolean timestamps;
private Boolean profanityFilter;
private Boolean smartFormatting;
private Boolean smartFormattingVersion;
private Long smartFormattingVersion;
private Boolean speakerLabels;
private String grammarName;
private Boolean redaction;
Expand Down Expand Up @@ -582,7 +582,7 @@ public Builder smartFormatting(Boolean smartFormatting) {
* @param smartFormattingVersion the smartFormattingVersion
* @return the CreateJobOptions builder
*/
public Builder smartFormattingVersion(Boolean smartFormattingVersion) {
public Builder smartFormattingVersion(long smartFormattingVersion) {
this.smartFormattingVersion = smartFormattingVersion;
return this;
}
Expand Down Expand Up @@ -1122,7 +1122,7 @@ public Boolean smartFormatting() {
*
* @return the smartFormattingVersion
*/
public Boolean smartFormattingVersion() {
public Long smartFormattingVersion() {
return smartFormattingVersion;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public interface Model {
protected Boolean timestamps;
protected Boolean profanityFilter;
protected Boolean smartFormatting;
protected Boolean smartFormattingVersion;
protected Long smartFormattingVersion;
protected Boolean speakerLabels;
protected String grammarName;
protected Boolean redaction;
Expand Down Expand Up @@ -227,7 +227,7 @@ public static class Builder {
private Boolean timestamps;
private Boolean profanityFilter;
private Boolean smartFormatting;
private Boolean smartFormattingVersion;
private Long smartFormattingVersion;
private Boolean speakerLabels;
private String grammarName;
private Boolean redaction;
Expand Down Expand Up @@ -492,7 +492,7 @@ public Builder smartFormatting(Boolean smartFormatting) {
* @param smartFormattingVersion the smartFormattingVersion
* @return the RecognizeOptions builder
*/
public Builder smartFormattingVersion(Boolean smartFormattingVersion) {
public Builder smartFormattingVersion(long smartFormattingVersion) {
this.smartFormattingVersion = smartFormattingVersion;
return this;
}
Expand Down Expand Up @@ -934,7 +934,7 @@ public Boolean smartFormatting() {
*
* @return the smartFormattingVersion
*/
public Boolean smartFormattingVersion() {
public Long smartFormattingVersion() {
return smartFormattingVersion;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public void testRecognizeWOptions() throws Throwable {
.timestamps(false)
.profanityFilter(true)
.smartFormatting(false)
.smartFormattingVersion(false)
.smartFormattingVersion(Long.valueOf("0"))
.speakerLabels(false)
.grammarName("testString")
.redaction(false)
Expand Down Expand Up @@ -284,7 +284,7 @@ public void testRecognizeWOptions() throws Throwable {
assertEquals(Boolean.valueOf(query.get("timestamps")), Boolean.valueOf(false));
assertEquals(Boolean.valueOf(query.get("profanity_filter")), Boolean.valueOf(true));
assertEquals(Boolean.valueOf(query.get("smart_formatting")), Boolean.valueOf(false));
assertEquals(Boolean.valueOf(query.get("smart_formatting_version")), Boolean.valueOf(false));
assertEquals(Long.valueOf(query.get("smart_formatting_version")), Long.valueOf("0"));
assertEquals(Boolean.valueOf(query.get("speaker_labels")), Boolean.valueOf(false));
assertEquals(query.get("grammar_name"), "testString");
assertEquals(Boolean.valueOf(query.get("redaction")), Boolean.valueOf(false));
Expand Down Expand Up @@ -457,7 +457,7 @@ public void testCreateJobWOptions() throws Throwable {
.timestamps(false)
.profanityFilter(true)
.smartFormatting(false)
.smartFormattingVersion(false)
.smartFormattingVersion(Long.valueOf("0"))
.speakerLabels(false)
.grammarName("testString")
.redaction(false)
Expand Down Expand Up @@ -508,7 +508,7 @@ public void testCreateJobWOptions() throws Throwable {
assertEquals(Boolean.valueOf(query.get("timestamps")), Boolean.valueOf(false));
assertEquals(Boolean.valueOf(query.get("profanity_filter")), Boolean.valueOf(true));
assertEquals(Boolean.valueOf(query.get("smart_formatting")), Boolean.valueOf(false));
assertEquals(Boolean.valueOf(query.get("smart_formatting_version")), Boolean.valueOf(false));
assertEquals(Long.valueOf(query.get("smart_formatting_version")), Long.valueOf("0"));
assertEquals(Boolean.valueOf(query.get("speaker_labels")), Boolean.valueOf(false));
assertEquals(query.get("grammar_name"), "testString");
assertEquals(Boolean.valueOf(query.get("redaction")), Boolean.valueOf(false));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void testCreateJobOptions() throws Throwable {
.timestamps(false)
.profanityFilter(true)
.smartFormatting(false)
.smartFormattingVersion(false)
.smartFormattingVersion(Long.valueOf("0"))
.speakerLabels(false)
.grammarName("testString")
.redaction(false)
Expand Down Expand Up @@ -89,7 +89,7 @@ public void testCreateJobOptions() throws Throwable {
assertEquals(createJobOptionsModel.timestamps(), Boolean.valueOf(false));
assertEquals(createJobOptionsModel.profanityFilter(), Boolean.valueOf(true));
assertEquals(createJobOptionsModel.smartFormatting(), Boolean.valueOf(false));
assertEquals(createJobOptionsModel.smartFormattingVersion(), Boolean.valueOf(false));
assertEquals(createJobOptionsModel.smartFormattingVersion(), Long.valueOf("0"));
assertEquals(createJobOptionsModel.speakerLabels(), Boolean.valueOf(false));
assertEquals(createJobOptionsModel.grammarName(), "testString");
assertEquals(createJobOptionsModel.redaction(), Boolean.valueOf(false));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void testRecognizeOptions() throws Throwable {
.timestamps(false)
.profanityFilter(true)
.smartFormatting(false)
.smartFormattingVersion(false)
.smartFormattingVersion(Long.valueOf("0"))
.speakerLabels(false)
.grammarName("testString")
.redaction(false)
Expand Down Expand Up @@ -79,7 +79,7 @@ public void testRecognizeOptions() throws Throwable {
assertEquals(recognizeOptionsModel.timestamps(), Boolean.valueOf(false));
assertEquals(recognizeOptionsModel.profanityFilter(), Boolean.valueOf(true));
assertEquals(recognizeOptionsModel.smartFormatting(), Boolean.valueOf(false));
assertEquals(recognizeOptionsModel.smartFormattingVersion(), Boolean.valueOf(false));
assertEquals(recognizeOptionsModel.smartFormattingVersion(), Long.valueOf("0"));
assertEquals(recognizeOptionsModel.speakerLabels(), Boolean.valueOf(false));
assertEquals(recognizeOptionsModel.grammarName(), "testString");
assertEquals(recognizeOptionsModel.redaction(), Boolean.valueOf(false));
Expand Down

0 comments on commit 258c406

Please sign in to comment.