Skip to content

Commit 7c91f7e

Browse files
authored
Merge pull request #1191 from watson-developer-cloud/sdk-release
Sdk release
2 parents 76fe071 + 113d30e commit 7c91f7e

File tree

271 files changed

+2673
-2025
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

271 files changed

+2673
-2025
lines changed

assistant/src/main/java/com/ibm/watson/assistant/v1/Assistant.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414
/*
15-
* IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-902c9336-20210513-140138
15+
* IBM OpenAPI SDK Code Generator Version: 3.38.0-07189efd-20210827-205025
1616
*/
1717

1818
package com.ibm.watson.assistant.v1;
@@ -105,8 +105,7 @@
105105
* <p>The Assistant v1 API provides authoring methods your application can use to create or update a
106106
* workspace.
107107
*
108-
* @version v1
109-
* @see <a href="https://cloud.ibm.com/docs/assistant">Assistant</a>
108+
* <p>API Version: 1.0 See: https://cloud.ibm.com/docs/assistant
110109
*/
111110
public class Assistant extends BaseService {
112111

@@ -122,7 +121,7 @@ public class Assistant extends BaseService {
122121
* the client instance.
123122
*
124123
* @param version Release date of the API version you want to use. Specify dates in YYYY-MM-DD
125-
* format. The current version is `2020-04-01`.
124+
* format. The current version is `2021-06-14`.
126125
*/
127126
public Assistant(String version) {
128127
this(
@@ -136,7 +135,7 @@ public Assistant(String version) {
136135
* authenticator are used to configure the client instance.
137136
*
138137
* @param version Release date of the API version you want to use. Specify dates in YYYY-MM-DD
139-
* format. The current version is `2020-04-01`.
138+
* format. The current version is `2021-06-14`.
140139
* @param authenticator the {@link Authenticator} instance to be configured for this client
141140
*/
142141
public Assistant(String version, Authenticator authenticator) {
@@ -148,7 +147,7 @@ public Assistant(String version, Authenticator authenticator) {
148147
* configure the client instance.
149148
*
150149
* @param version Release date of the API version you want to use. Specify dates in YYYY-MM-DD
151-
* format. The current version is `2020-04-01`.
150+
* format. The current version is `2021-06-14`.
152151
* @param serviceName the service name to be used when configuring the client instance
153152
*/
154153
public Assistant(String version, String serviceName) {
@@ -160,7 +159,7 @@ public Assistant(String version, String serviceName) {
160159
* are used to configure the client instance.
161160
*
162161
* @param version Release date of the API version you want to use. Specify dates in YYYY-MM-DD
163-
* format. The current version is `2020-04-01`.
162+
* format. The current version is `2021-06-14`.
164163
* @param serviceName the service name to be used when configuring the client instance
165164
* @param authenticator the {@link Authenticator} instance to be configured for this client
166165
*/
@@ -175,7 +174,7 @@ public Assistant(String version, String serviceName, Authenticator authenticator
175174
* Gets the version.
176175
*
177176
* <p>Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The
178-
* current version is `2020-04-01`.
177+
* current version is `2021-06-14`.
179178
*
180179
* @return the version
181180
*/

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ public interface QueryType {
9797
protected String source;
9898
protected String title;
9999
protected String description;
100+
101+
@SerializedName("alt_text")
102+
protected String altText;
103+
100104
protected String preference;
101105
protected List<DialogNodeOutputOptionsElement> options;
102106

@@ -209,7 +213,7 @@ public Boolean typing() {
209213
/**
210214
* Gets the source.
211215
*
212-
* <p>The URL of the image.
216+
* <p>The `https:` URL of the image.
213217
*
214218
* @return the source
215219
*/
@@ -239,6 +243,18 @@ public String description() {
239243
return description;
240244
}
241245

246+
/**
247+
* Gets the altText.
248+
*
249+
* <p>Descriptive text that can be used for screen readers or other situations where the image
250+
* cannot be seen.
251+
*
252+
* @return the altText
253+
*/
254+
public String altText() {
255+
return altText;
256+
}
257+
242258
/**
243259
* Gets the preference.
244260
*

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public static class Builder {
2626
private String title;
2727
private String description;
2828
private List<ResponseGenericChannel> channels;
29+
private String altText;
2930

3031
public Builder(
3132
DialogNodeOutputGeneric dialogNodeOutputGenericDialogNodeOutputResponseTypeImage) {
@@ -34,6 +35,7 @@ public Builder(
3435
this.title = dialogNodeOutputGenericDialogNodeOutputResponseTypeImage.title;
3536
this.description = dialogNodeOutputGenericDialogNodeOutputResponseTypeImage.description;
3637
this.channels = dialogNodeOutputGenericDialogNodeOutputResponseTypeImage.channels;
38+
this.altText = dialogNodeOutputGenericDialogNodeOutputResponseTypeImage.altText;
3739
}
3840

3941
/** Instantiates a new builder. */
@@ -128,6 +130,17 @@ public Builder channels(List<ResponseGenericChannel> channels) {
128130
this.channels = channels;
129131
return this;
130132
}
133+
134+
/**
135+
* Set the altText.
136+
*
137+
* @param altText the altText
138+
* @return the DialogNodeOutputGenericDialogNodeOutputResponseTypeImage builder
139+
*/
140+
public Builder altText(String altText) {
141+
this.altText = altText;
142+
return this;
143+
}
131144
}
132145

133146
protected DialogNodeOutputGenericDialogNodeOutputResponseTypeImage(Builder builder) {
@@ -139,6 +152,7 @@ protected DialogNodeOutputGenericDialogNodeOutputResponseTypeImage(Builder build
139152
title = builder.title;
140153
description = builder.description;
141154
channels = builder.channels;
155+
altText = builder.altText;
142156
}
143157

144158
/**

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2017, 2020.
2+
* (C) Copyright IBM Corp. 2017, 2021.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -125,7 +125,8 @@ public Builder newBuilder() {
125125
* <p>A cacheable parameter that limits the results to those matching the specified filter. You
126126
* must specify a filter query that includes a value for `language`, as well as a value for
127127
* `request.context.system.assistant_id`, `workspace_id`, or
128-
* `request.context.metadata.deployment`. For more information, see the
128+
* `request.context.metadata.deployment`. These required filters must be specified using the exact
129+
* match (`::`) operator. For more information, see the
129130
* [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-filter-reference#filter-reference).
130131
*
131132
* @return the filter

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2017, 2020.
2+
* (C) Copyright IBM Corp. 2017, 2021.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -61,12 +61,10 @@ public Builder() {}
6161
* Instantiates a new builder with required properties.
6262
*
6363
* @param entity the entity
64-
* @param location the location
6564
* @param value the value
6665
*/
67-
public Builder(String entity, List<Long> location, String value) {
66+
public Builder(String entity, String value) {
6867
this.entity = entity;
69-
this.location = location;
7068
this.value = value;
7169
}
7270

@@ -226,7 +224,6 @@ public Builder role(RuntimeEntityRole role) {
226224

227225
protected RuntimeEntity(Builder builder) {
228226
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.entity, "entity cannot be null");
229-
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.location, "location cannot be null");
230227
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.value, "value cannot be null");
231228
entity = builder.entity;
232229
location = builder.location;
@@ -296,7 +293,11 @@ public Double confidence() {
296293
/**
297294
* Gets the metadata.
298295
*
299-
* <p>Any metadata for the entity.
296+
* <p>**Deprecated.** Any metadata for the entity.
297+
*
298+
* <p>Beginning with the `2021-06-14` API version, the `metadata` property is no longer returned.
299+
* For information about system entities recognized in the user input, see the `interpretation`
300+
* property.
300301
*
301302
* @return the metadata
302303
*/

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ public interface Preference {
6868
protected String source;
6969
protected String title;
7070
protected String description;
71+
72+
@SerializedName("alt_text")
73+
protected String altText;
74+
7175
protected String preference;
7276
protected List<DialogNodeOutputOptionsElement> options;
7377

@@ -156,7 +160,7 @@ public Boolean typing() {
156160
/**
157161
* Gets the source.
158162
*
159-
* <p>The URL of the image.
163+
* <p>The `https:` URL of the image.
160164
*
161165
* @return the source
162166
*/
@@ -186,6 +190,18 @@ public String description() {
186190
return description;
187191
}
188192

193+
/**
194+
* Gets the altText.
195+
*
196+
* <p>Descriptive text that can be used for screen readers or other situations where the image
197+
* cannot be seen.
198+
*
199+
* @return the altText
200+
*/
201+
public String altText() {
202+
return altText;
203+
}
204+
189205
/**
190206
* Gets the preference.
191207
*

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ public static class Builder {
2525
private String title;
2626
private String description;
2727
private List<ResponseGenericChannel> channels;
28+
private String altText;
2829

2930
public Builder(RuntimeResponseGeneric runtimeResponseGenericRuntimeResponseTypeImage) {
3031
this.responseType = runtimeResponseGenericRuntimeResponseTypeImage.responseType;
3132
this.source = runtimeResponseGenericRuntimeResponseTypeImage.source;
3233
this.title = runtimeResponseGenericRuntimeResponseTypeImage.title;
3334
this.description = runtimeResponseGenericRuntimeResponseTypeImage.description;
3435
this.channels = runtimeResponseGenericRuntimeResponseTypeImage.channels;
36+
this.altText = runtimeResponseGenericRuntimeResponseTypeImage.altText;
3537
}
3638

3739
/** Instantiates a new builder. */
@@ -126,6 +128,17 @@ public Builder channels(List<ResponseGenericChannel> channels) {
126128
this.channels = channels;
127129
return this;
128130
}
131+
132+
/**
133+
* Set the altText.
134+
*
135+
* @param altText the altText
136+
* @return the RuntimeResponseGenericRuntimeResponseTypeImage builder
137+
*/
138+
public Builder altText(String altText) {
139+
this.altText = altText;
140+
return this;
141+
}
129142
}
130143

131144
protected RuntimeResponseGenericRuntimeResponseTypeImage(Builder builder) {
@@ -137,6 +150,7 @@ protected RuntimeResponseGenericRuntimeResponseTypeImage(Builder builder) {
137150
title = builder.title;
138151
description = builder.description;
139152
channels = builder.channels;
153+
altText = builder.altText;
140154
}
141155

142156
/**

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

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2020.
2+
* (C) Copyright IBM Corp. 2018, 2021.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -19,15 +19,23 @@
1919
public class WorkspaceSystemSettingsDisambiguation extends GenericModel {
2020

2121
/**
22-
* The sensitivity of the disambiguation feature to intent detection conflicts. Set to **high** if
23-
* you want the disambiguation feature to be triggered more often. This can be useful for testing
24-
* or demonstration purposes.
22+
* The sensitivity of the disambiguation feature to intent detection uncertainty. Higher
23+
* sensitivity means that the disambiguation feature is triggered more often and includes more
24+
* choices.
2525
*/
2626
public interface Sensitivity {
2727
/** auto. */
2828
String AUTO = "auto";
2929
/** high. */
3030
String HIGH = "high";
31+
/** medium_high. */
32+
String MEDIUM_HIGH = "medium_high";
33+
/** medium. */
34+
String MEDIUM = "medium";
35+
/** medium_low. */
36+
String MEDIUM_LOW = "medium_low";
37+
/** low. */
38+
String LOW = "low";
3139
}
3240

3341
protected String prompt;
@@ -212,9 +220,9 @@ public Boolean enabled() {
212220
/**
213221
* Gets the sensitivity.
214222
*
215-
* <p>The sensitivity of the disambiguation feature to intent detection conflicts. Set to **high**
216-
* if you want the disambiguation feature to be triggered more often. This can be useful for
217-
* testing or demonstration purposes.
223+
* <p>The sensitivity of the disambiguation feature to intent detection uncertainty. Higher
224+
* sensitivity means that the disambiguation feature is triggered more often and includes more
225+
* choices.
218226
*
219227
* @return the sensitivity
220228
*/

assistant/src/main/java/com/ibm/watson/assistant/v2/Assistant.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414
/*
15-
* IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-902c9336-20210513-140138
15+
* IBM OpenAPI SDK Code Generator Version: 3.38.0-07189efd-20210827-205025
1616
*/
1717

1818
package com.ibm.watson.assistant.v2;
@@ -50,8 +50,7 @@
5050
* <p>The Assistant v2 API provides runtime methods your client application can use to send user
5151
* input to an assistant and receive a response.
5252
*
53-
* @version v2
54-
* @see <a href="https://cloud.ibm.com/docs/assistant">Assistant</a>
53+
* <p>API Version: 2.0 See: https://cloud.ibm.com/docs/assistant
5554
*/
5655
public class Assistant extends BaseService {
5756

@@ -67,7 +66,7 @@ public class Assistant extends BaseService {
6766
* the client instance.
6867
*
6968
* @param version Release date of the API version you want to use. Specify dates in YYYY-MM-DD
70-
* format. The current version is `2020-09-24`.
69+
* format. The current version is `2021-06-14`.
7170
*/
7271
public Assistant(String version) {
7372
this(
@@ -81,7 +80,7 @@ public Assistant(String version) {
8180
* authenticator are used to configure the client instance.
8281
*
8382
* @param version Release date of the API version you want to use. Specify dates in YYYY-MM-DD
84-
* format. The current version is `2020-09-24`.
83+
* format. The current version is `2021-06-14`.
8584
* @param authenticator the {@link Authenticator} instance to be configured for this client
8685
*/
8786
public Assistant(String version, Authenticator authenticator) {
@@ -93,7 +92,7 @@ public Assistant(String version, Authenticator authenticator) {
9392
* configure the client instance.
9493
*
9594
* @param version Release date of the API version you want to use. Specify dates in YYYY-MM-DD
96-
* format. The current version is `2020-09-24`.
95+
* format. The current version is `2021-06-14`.
9796
* @param serviceName the service name to be used when configuring the client instance
9897
*/
9998
public Assistant(String version, String serviceName) {
@@ -105,7 +104,7 @@ public Assistant(String version, String serviceName) {
105104
* are used to configure the client instance.
106105
*
107106
* @param version Release date of the API version you want to use. Specify dates in YYYY-MM-DD
108-
* format. The current version is `2020-09-24`.
107+
* format. The current version is `2021-06-14`.
109108
* @param serviceName the service name to be used when configuring the client instance
110109
* @param authenticator the {@link Authenticator} instance to be configured for this client
111110
*/
@@ -120,7 +119,7 @@ public Assistant(String version, String serviceName, Authenticator authenticator
120119
* Gets the version.
121120
*
122121
* <p>Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The
123-
* current version is `2020-09-24`.
122+
* current version is `2021-06-14`.
124123
*
125124
* @return the version
126125
*/

0 commit comments

Comments
 (0)