From 118ad8324dec98edbd380af53a62da21f6ab0cc0 Mon Sep 17 00:00:00 2001 From: AJ Rice <53190766+ajrice6713@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:23:37 -0400 Subject: [PATCH] Change `text` to `transcription` --- .../com/bandwidth/voice/models/Track.java | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/main/java/com/bandwidth/voice/models/Track.java b/src/main/java/com/bandwidth/voice/models/Track.java index d9dd5672..5b96c35e 100644 --- a/src/main/java/com/bandwidth/voice/models/Track.java +++ b/src/main/java/com/bandwidth/voice/models/Track.java @@ -19,7 +19,7 @@ public class Track { @JsonInclude(JsonInclude.Include.NON_NULL) private String track; @JsonInclude(JsonInclude.Include.NON_NULL) - private String text; + private String transcription; @JsonInclude(JsonInclude.Include.NON_NULL) private Double confidence; @@ -33,17 +33,17 @@ public Track() { * Initialization constructor. * @param detectedLanguage String value for detectedLanguag3. * @param track String value for track. - * @param text String value for text. + * @param transcription String value for transcription. * @param confidence Double value for confidence. */ public Track( String detectedLanguage, String track, - String text, + String transcription, Double confidence) { this.detectedLanguage = detectedLanguage; this.track = track; - this.text = text; + this.transcription = transcription; this.confidence = confidence; } @@ -84,21 +84,21 @@ public void setTrack(String track) { } /** - * Getter for Text. + * Getter for transcription. * @return Returns the String */ - @JsonGetter("text") - public String getText() { - return text; + @JsonGetter("transcription") + public String getTranscription() { + return transcription; } /** - * Setter for Text. - * @param text Value for String + * Setter for transcription. + * @param transcription Value for String */ - @JsonSetter("text") - public void setText(String text) { - this.text = text; + @JsonSetter("transcription") + public void setTranscription(String transcription) { + this.transcription = transcription; } /** @@ -125,7 +125,7 @@ public void setConfidence(Double confidence) { */ @Override public String toString() { - return "Track [" + "detectedLanguage=" + detectedLanguage + ", track=" + track + ", text=" + text + return "Track [" + "detectedLanguage=" + detectedLanguage + ", track=" + track + ", transcription=" + transcription + ", confidence=" + confidence + "]"; } @@ -138,7 +138,7 @@ public Builder toBuilder() { Builder builder = new Builder() .detectedLanguage(getDetectedLanguage()) .track(getTrack()) - .text(getText()) + .transcription(getTranscription()) .confidence(getConfidence()); return builder; } @@ -149,7 +149,7 @@ public Builder toBuilder() { public static class Builder { private String detectedLanguage; private String track; - private String text; + private String transcription; private Double confidence; @@ -175,12 +175,12 @@ public Builder track(String track) { } /** - * Setter for text. - * @param text String value for text. + * Setter for transcription. + * @param transcription String value for transcription. * @return Builder */ - public Builder text(String text) { - this.text = text; + public Builder transcription(String transcription) { + this.transcription = transcription; return this; } @@ -199,7 +199,7 @@ public Builder confidence(Double confidence) { * @return {@link Track} */ public Track build() { - return new Track(detectedLanguage, track, text, confidence); + return new Track(detectedLanguage, track, transcription, confidence); } } }