@@ -29,6 +29,24 @@ public class Gather extends TwiML {
2929 @ XmlAttribute
3030 private final String finishOnKey ;
3131
32+ @ XmlAttribute
33+ private final String partialResultCallback ;
34+
35+ @ XmlAttribute
36+ private final Method partialResultCallbackMethod ;
37+
38+ @ XmlAttribute
39+ private final Language language ;
40+
41+ @ XmlAttribute
42+ private final String hints ;
43+
44+ @ XmlAttribute
45+ private final Boolean bargeIn ;
46+
47+ @ XmlAttribute
48+ private final String acknowledgeSoundUrl ;
49+
3250 @ SuppressWarnings ("checkstyle:indentation" )
3351 @ XmlElements ({
3452 @ XmlElement (name = "Say" , type = Say .class ),
@@ -49,6 +67,12 @@ private Gather(Builder b) {
4967 this .method = b .method ;
5068 this .finishOnKey = b .finishOnKey ;
5169 this .actions = Lists .newArrayList (b .actions );
70+ this .partialResultCallback = b .partialResultCallback ;
71+ this .partialResultCallbackMethod = b .partialResultCallbackMethod ;
72+ this .language = b .language ;
73+ this .hints = b .hints ;
74+ this .bargeIn = b .bargeIn ;
75+ this .acknowledgeSoundUrl = b .acknowledgeSoundUrl ;
5276 }
5377
5478 public Integer getTimeout () {
@@ -75,13 +99,43 @@ public List<TwiML> getActions() {
7599 return actions ;
76100 }
77101
102+ public String getPartialResultCallback () {
103+ return partialResultCallback ;
104+ }
105+
106+ public Method getPartialResultCallbackMethod () {
107+ return partialResultCallbackMethod ;
108+ }
109+
110+ public Language getLanguage () {
111+ return language ;
112+ }
113+
114+ public String getHints () {
115+ return hints ;
116+ }
117+
118+ public Boolean getBargeIn () {
119+ return bargeIn ;
120+ }
121+
122+ public String getAcknowledgeSoundUrl () {
123+ return acknowledgeSoundUrl ;
124+ }
125+
78126 public static class Builder {
79127 private Integer timeout ;
80128 private Integer numDigits ;
81129 private String action ;
82130 private Method method ;
83131 private String finishOnKey ;
84132 private List <TwiML > actions = Lists .newArrayList ();
133+ private String partialResultCallback ;
134+ private Method partialResultCallbackMethod ;
135+ private Language language ;
136+ private String hints ;
137+ private Boolean bargeIn ;
138+ private String acknowledgeSoundUrl ;
85139
86140 public Builder timeout (int timeout ) {
87141 this .timeout = timeout ;
@@ -123,6 +177,36 @@ public Builder pause(Pause pause) {
123177 return this ;
124178 }
125179
180+ public Builder partialResultCallback (String partialResultCallback ) {
181+ this .partialResultCallback = partialResultCallback ;
182+ return this ;
183+ }
184+
185+ public Builder partialResultCallbackMethod (Method partialResultCallbackMethod ) {
186+ this .partialResultCallbackMethod = partialResultCallbackMethod ;
187+ return this ;
188+ }
189+
190+ public Builder language (Language language ) {
191+ this .language = language ;
192+ return this ;
193+ }
194+
195+ public Builder hints (String hints ) {
196+ this .hints = hints ;
197+ return this ;
198+ }
199+
200+ public Builder bargeIn (Boolean bargeIn ) {
201+ this .bargeIn = bargeIn ;
202+ return this ;
203+ }
204+
205+ public Builder acknowledgeSoundUrl (String acknowledgeSoundUrl ) {
206+ this .acknowledgeSoundUrl = acknowledgeSoundUrl ;
207+ return this ;
208+ }
209+
126210 public Gather build () {
127211 return new Gather (this );
128212 }
0 commit comments