Skip to content

Commit 4ed4b49

Browse files
committed
chore(assistant-v1): manual changes
1 parent c663990 commit 4ed4b49

18 files changed

+555
-1045
lines changed

assistant/src/main/java/com/ibm/watson/assistant/v1/model/DialogNodeOutputGeneric.java

Lines changed: 288 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
*/
1313
package com.ibm.watson.assistant.v1.model;
1414

15+
import com.google.gson.annotations.SerializedName;
1516
import com.ibm.cloud.sdk.core.service.model.GenericModel;
17+
import java.util.List;
18+
import java.util.Map;
1619

1720
/**
1821
* DialogNodeOutputGeneric.
@@ -79,5 +82,290 @@ public interface QueryType {
7982
String DISCOVERY_QUERY_LANGUAGE = "discovery_query_language";
8083
}
8184

85+
@SerializedName("response_type")
86+
protected String responseType;
87+
88+
protected List<DialogNodeOutputTextValuesElement> values;
89+
90+
@SerializedName("selection_policy")
91+
protected String selectionPolicy;
92+
93+
protected String delimiter;
94+
protected List<ResponseGenericChannel> channels;
95+
protected Long time;
96+
protected Boolean typing;
97+
protected String source;
98+
protected String title;
99+
protected String description;
100+
protected String preference;
101+
protected List<DialogNodeOutputOptionsElement> options;
102+
103+
@SerializedName("message_to_human_agent")
104+
protected String messageToHumanAgent;
105+
106+
@SerializedName("agent_available")
107+
protected AgentAvailabilityMessage agentAvailable;
108+
109+
@SerializedName("agent_unavailable")
110+
protected AgentAvailabilityMessage agentUnavailable;
111+
112+
protected String query;
113+
114+
@SerializedName("query_type")
115+
protected String queryType;
116+
117+
protected String filter;
118+
119+
@SerializedName("discovery_version")
120+
protected String discoveryVersion;
121+
122+
@SerializedName("message_to_user")
123+
protected String messageToUser;
124+
125+
@SerializedName("user_defined")
126+
protected Map<String, Object> userDefined;
127+
82128
protected DialogNodeOutputGeneric() {}
129+
130+
/**
131+
* Gets the responseType.
132+
*
133+
* <p>The type of response returned by the dialog node. The specified response type must be
134+
* supported by the client application or channel.
135+
*
136+
* @return the responseType
137+
*/
138+
public String responseType() {
139+
return responseType;
140+
}
141+
142+
/**
143+
* Gets the values.
144+
*
145+
* <p>A list of one or more objects defining text responses.
146+
*
147+
* @return the values
148+
*/
149+
public List<DialogNodeOutputTextValuesElement> values() {
150+
return values;
151+
}
152+
153+
/**
154+
* Gets the selectionPolicy.
155+
*
156+
* <p>How a response is selected from the list, if more than one response is specified.
157+
*
158+
* @return the selectionPolicy
159+
*/
160+
public String selectionPolicy() {
161+
return selectionPolicy;
162+
}
163+
164+
/**
165+
* Gets the delimiter.
166+
*
167+
* <p>The delimiter to use as a separator between responses when `selection_policy`=`multiline`.
168+
*
169+
* @return the delimiter
170+
*/
171+
public String delimiter() {
172+
return delimiter;
173+
}
174+
175+
/**
176+
* Gets the channels.
177+
*
178+
* <p>An array of objects specifying channels for which the response is intended.
179+
*
180+
* @return the channels
181+
*/
182+
public List<ResponseGenericChannel> channels() {
183+
return channels;
184+
}
185+
186+
/**
187+
* Gets the time.
188+
*
189+
* <p>How long to pause, in milliseconds. The valid values are from 0 to 10000.
190+
*
191+
* @return the time
192+
*/
193+
public Long time() {
194+
return time;
195+
}
196+
197+
/**
198+
* Gets the typing.
199+
*
200+
* <p>Whether to send a "user is typing" event during the pause. Ignored if the channel does not
201+
* support this event.
202+
*
203+
* @return the typing
204+
*/
205+
public Boolean typing() {
206+
return typing;
207+
}
208+
209+
/**
210+
* Gets the source.
211+
*
212+
* <p>The URL of the image.
213+
*
214+
* @return the source
215+
*/
216+
public String source() {
217+
return source;
218+
}
219+
220+
/**
221+
* Gets the title.
222+
*
223+
* <p>An optional title to show before the response.
224+
*
225+
* @return the title
226+
*/
227+
public String title() {
228+
return title;
229+
}
230+
231+
/**
232+
* Gets the description.
233+
*
234+
* <p>An optional description to show with the response.
235+
*
236+
* @return the description
237+
*/
238+
public String description() {
239+
return description;
240+
}
241+
242+
/**
243+
* Gets the preference.
244+
*
245+
* <p>The preferred type of control to display, if supported by the channel.
246+
*
247+
* @return the preference
248+
*/
249+
public String preference() {
250+
return preference;
251+
}
252+
253+
/**
254+
* Gets the options.
255+
*
256+
* <p>An array of objects describing the options from which the user can choose. You can include
257+
* up to 20 options.
258+
*
259+
* @return the options
260+
*/
261+
public List<DialogNodeOutputOptionsElement> options() {
262+
return options;
263+
}
264+
265+
/**
266+
* Gets the messageToHumanAgent.
267+
*
268+
* <p>An optional message to be sent to the human agent who will be taking over the conversation.
269+
*
270+
* @return the messageToHumanAgent
271+
*/
272+
public String messageToHumanAgent() {
273+
return messageToHumanAgent;
274+
}
275+
276+
/**
277+
* Gets the agentAvailable.
278+
*
279+
* <p>An optional message to be displayed to the user to indicate that the conversation will be
280+
* transferred to the next available agent.
281+
*
282+
* @return the agentAvailable
283+
*/
284+
public AgentAvailabilityMessage agentAvailable() {
285+
return agentAvailable;
286+
}
287+
288+
/**
289+
* Gets the agentUnavailable.
290+
*
291+
* <p>An optional message to be displayed to the user to indicate that no online agent is
292+
* available to take over the conversation.
293+
*
294+
* @return the agentUnavailable
295+
*/
296+
public AgentAvailabilityMessage agentUnavailable() {
297+
return agentUnavailable;
298+
}
299+
300+
/**
301+
* Gets the query.
302+
*
303+
* <p>The text of the search query. This can be either a natural-language query or a query that
304+
* uses the Discovery query language syntax, depending on the value of the **query_type**
305+
* property. For more information, see the [Discovery service
306+
* documentation](https://cloud.ibm.com/docs/discovery?topic=discovery-query-operators#query-operators).
307+
*
308+
* @return the query
309+
*/
310+
public String query() {
311+
return query;
312+
}
313+
314+
/**
315+
* Gets the queryType.
316+
*
317+
* <p>The type of the search query.
318+
*
319+
* @return the queryType
320+
*/
321+
public String queryType() {
322+
return queryType;
323+
}
324+
325+
/**
326+
* Gets the filter.
327+
*
328+
* <p>An optional filter that narrows the set of documents to be searched. For more information,
329+
* see the [Discovery service documentation]([Discovery service
330+
* documentation](https://cloud.ibm.com/docs/discovery?topic=discovery-query-parameters#filter).
331+
*
332+
* @return the filter
333+
*/
334+
public String filter() {
335+
return filter;
336+
}
337+
338+
/**
339+
* Gets the discoveryVersion.
340+
*
341+
* <p>The version of the Discovery service API to use for the query.
342+
*
343+
* @return the discoveryVersion
344+
*/
345+
public String discoveryVersion() {
346+
return discoveryVersion;
347+
}
348+
349+
/**
350+
* Gets the messageToUser.
351+
*
352+
* <p>The message to display to the user when initiating a channel transfer.
353+
*
354+
* @return the messageToUser
355+
*/
356+
public String messageToUser() {
357+
return messageToUser;
358+
}
359+
360+
/**
361+
* Gets the userDefined.
362+
*
363+
* <p>An object containing any properties for the user-defined response type. The total size of
364+
* this object cannot exceed 5000 bytes.
365+
*
366+
* @return the userDefined
367+
*/
368+
public Map<String, Object> userDefined() {
369+
return userDefined;
370+
}
83371
}

assistant/src/main/java/com/ibm/watson/assistant/v1/model/DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer.java

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,17 @@
1313
package com.ibm.watson.assistant.v1.model;
1414

1515
import com.google.gson.annotations.SerializedName;
16+
1617
import java.util.ArrayList;
1718
import java.util.List;
1819

1920
/** DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer. */
2021
public class DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer
2122
extends DialogNodeOutputGeneric {
2223

23-
@SerializedName("response_type")
24-
private String responseType;
25-
26-
@SerializedName("message_to_user")
27-
private String messageToUser;
28-
2924
@SerializedName("transfer_info")
3025
private ChannelTransferInfo transferInfo;
3126

32-
private List<ResponseGenericChannel> channels;
33-
3427
/** Builder. */
3528
public static class Builder {
3629
private String responseType;
@@ -39,7 +32,7 @@ public static class Builder {
3932
private List<ResponseGenericChannel> channels;
4033

4134
public Builder(
42-
DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer
35+
DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer
4336
dialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer) {
4437
this.responseType =
4538
dialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer.responseType;
@@ -157,29 +150,6 @@ public Builder newBuilder() {
157150
return new Builder(this);
158151
}
159152

160-
/**
161-
* Gets the responseType.
162-
*
163-
* <p>The type of response returned by the dialog node. The specified response type must be
164-
* supported by the client application or channel.
165-
*
166-
* @return the responseType
167-
*/
168-
public String responseType() {
169-
return responseType;
170-
}
171-
172-
/**
173-
* Gets the channels.
174-
*
175-
* <p>An array of objects specifying channels for which the response is intended.
176-
*
177-
* @return the channels
178-
*/
179-
public List<ResponseGenericChannel> channels() {
180-
return channels;
181-
}
182-
183153
/**
184154
* Gets the transferInfo.
185155
*
@@ -190,15 +160,4 @@ public List<ResponseGenericChannel> channels() {
190160
public ChannelTransferInfo transferInfo() {
191161
return transferInfo;
192162
}
193-
194-
/**
195-
* Gets the messageToUser.
196-
*
197-
* <p>The message to display to the user when initiating a channel transfer.
198-
*
199-
* @return the messageToUser
200-
*/
201-
public String messageToUser() {
202-
return messageToUser;
203-
}
204163
}

0 commit comments

Comments
 (0)