GeezerVison is showing github.com — feat(assistant-v2): generated using api-def: master & generator: 3.46.0 · watson-developer-cloud/java-sdk@4fdfb2f
File treeExpand file treeCollapse file tree Open diff view settings assistant/src/main/java/com/ibm/watson/assistant/v2
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: assistant/src/main/java/com/ibm/watson/assistant/v2/Assistant.java +8-8Lines changed: 8 additions & 8 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | /* | 2 | | - * (C) Copyright IBM Corp. 2019, 2021. | | 2 | + * (C) Copyright IBM Corp. 2022. | 3 | 3 | * | 4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | 5 | 5 | * the License. You may obtain a copy of the License at | | 12 | 12 | */ | 13 | 13 |
| 14 | 14 | /* | 15 | | - * IBM OpenAPI SDK Code Generator Version: 3.38.0-07189efd-20210827-205025 | | 15 | + * IBM OpenAPI SDK Code Generator Version: 3.46.0-a4e29da0-20220224-210428 | 16 | 16 | */ | 17 | 17 |
| 18 | 18 | package com.ibm.watson.assistant.v2; | | 54 | 54 | */ | 55 | 55 | public class Assistant extends BaseService { | 56 | 56 |
| 57 | | - public static final String DEFAULT_SERVICE_NAME = "assistant"; | | 57 | + public static final String DEFAULT_SERVICE_NAME = "conversation"; | 58 | 58 |
| 59 | 59 | public static final String DEFAULT_SERVICE_URL = | 60 | 60 | "https://api.us-south.assistant.watson.cloud.ibm.com"; | @@ -66,7 +66,7 @@ public class Assistant extends BaseService { | 66 | 66 | * the client instance. | 67 | 67 | * | 68 | 68 | * @param version Release date of the API version you want to use. Specify dates in YYYY-MM-DD | 69 | | - * format. The current version is `2021-06-14`. | | 69 | + * format. The current version is `2021-11-27`. | 70 | 70 | */ | 71 | 71 | public Assistant(String version) { | 72 | 72 | this( | @@ -80,7 +80,7 @@ public Assistant(String version) { | 80 | 80 | * authenticator are used to configure the client instance. | 81 | 81 | * | 82 | 82 | * @param version Release date of the API version you want to use. Specify dates in YYYY-MM-DD | 83 | | - * format. The current version is `2021-06-14`. | | 83 | + * format. The current version is `2021-11-27`. | 84 | 84 | * @param authenticator the {@link Authenticator} instance to be configured for this client | 85 | 85 | */ | 86 | 86 | public Assistant(String version, Authenticator authenticator) { | @@ -92,7 +92,7 @@ public Assistant(String version, Authenticator authenticator) { | 92 | 92 | * configure the client instance. | 93 | 93 | * | 94 | 94 | * @param version Release date of the API version you want to use. Specify dates in YYYY-MM-DD | 95 | | - * format. The current version is `2021-06-14`. | | 95 | + * format. The current version is `2021-11-27`. | 96 | 96 | * @param serviceName the service name to be used when configuring the client instance | 97 | 97 | */ | 98 | 98 | public Assistant(String version, String serviceName) { | @@ -104,7 +104,7 @@ public Assistant(String version, String serviceName) { | 104 | 104 | * are used to configure the client instance. | 105 | 105 | * | 106 | 106 | * @param version Release date of the API version you want to use. Specify dates in YYYY-MM-DD | 107 | | - * format. The current version is `2021-06-14`. | | 107 | + * format. The current version is `2021-11-27`. | 108 | 108 | * @param serviceName the service name to be used when configuring the client instance | 109 | 109 | * @param authenticator the {@link Authenticator} instance to be configured for this client | 110 | 110 | */ | @@ -119,7 +119,7 @@ public Assistant(String version, String serviceName, Authenticator authenticator | 119 | 119 | * Gets the version. | 120 | 120 | * | 121 | 121 | * <p>Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The | 122 | | - * current version is `2021-06-14`. | | 122 | + * current version is `2021-11-27`. | 123 | 123 | * | 124 | 124 | * @return the version | 125 | 125 | */ | |
Collapse file Copy file name to clipboardExpand all lines: assistant/src/main/java/com/ibm/watson/assistant/v2/model/DialogNodeVisited.java +6-3Lines changed: 6 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | /* | 2 | | - * (C) Copyright IBM Corp. 2018, 2020. | | 2 | + * (C) Copyright IBM Corp. 2022. | 3 | 3 | * | 4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | 5 | 5 | * the License. You may obtain a copy of the License at | | 15 | 15 | import com.google.gson.annotations.SerializedName; | 16 | 16 | import com.ibm.cloud.sdk.core.service.model.GenericModel; | 17 | 17 |
| 18 | | -/** DialogNodesVisited. */ | 19 | | -public class DialogNodesVisited extends GenericModel { | | 18 | +/** | | 19 | + * An objects containing detailed diagnostic information about a dialog node that was triggered | | 20 | + * during processing of the input message. | | 21 | + */ | | 22 | +public class DialogNodeVisited extends GenericModel { | 20 | 23 |
| 21 | 24 | @SerializedName("dialog_node") | 22 | 25 | protected String dialogNode; | |
Collapse file Copy file name to clipboardExpand all lines: assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageContext.java +30-2Lines changed: 30 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | /* | 2 | | - * (C) Copyright IBM Corp. 2018, 2020. | | 2 | + * (C) Copyright IBM Corp. 2022. | 3 | 3 | * | 4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | 5 | 5 | * the License. You may obtain a copy of the License at | @@ -20,15 +20,18 @@ public class MessageContext extends GenericModel { | 20 | 20 |
| 21 | 21 | protected MessageContextGlobal global; | 22 | 22 | protected Map<String, MessageContextSkill> skills; | | 23 | + protected Map<String, Object> integrations; | 23 | 24 |
| 24 | 25 | /** Builder. */ | 25 | 26 | public static class Builder { | 26 | 27 | private MessageContextGlobal global; | 27 | 28 | private Map<String, MessageContextSkill> skills; | | 29 | + private Map<String, Object> integrations; | 28 | 30 |
| 29 | 31 | private Builder(MessageContext messageContext) { | 30 | 32 | this.global = messageContext.global; | 31 | 33 | this.skills = messageContext.skills; | | 34 | + this.integrations = messageContext.integrations; | 32 | 35 | } | 33 | 36 |
| 34 | 37 | /** Instantiates a new builder. */ | @@ -64,11 +67,23 @@ public Builder skills(Map<String, MessageContextSkill> skills) { | 64 | 67 | this.skills = skills; | 65 | 68 | return this; | 66 | 69 | } | | 70 | + | | 71 | + /** | | 72 | + * Set the integrations. | | 73 | + * | | 74 | + * @param integrations the integrations | | 75 | + * @return the MessageContext builder | | 76 | + */ | | 77 | + public Builder integrations(Map<String, Object> integrations) { | | 78 | + this.integrations = integrations; | | 79 | + return this; | | 80 | + } | 67 | 81 | } | 68 | 82 |
| 69 | 83 | protected MessageContext(Builder builder) { | 70 | 84 | global = builder.global; | 71 | 85 | skills = builder.skills; | | 86 | + integrations = builder.integrations; | 72 | 87 | } | 73 | 88 |
| 74 | 89 | /** | @@ -83,7 +98,7 @@ public Builder newBuilder() { | 83 | 98 | /** | 84 | 99 | * Gets the global. | 85 | 100 | * | 86 | | - * <p>Session context data that is shared by all skills used by the Assistant. | | 101 | + * <p>Session context data that is shared by all skills used by the assistant. | 87 | 102 | * | 88 | 103 | * @return the global | 89 | 104 | */ | @@ -104,4 +119,17 @@ public MessageContextGlobal global() { | 104 | 119 | public Map<String, MessageContextSkill> skills() { | 105 | 120 | return skills; | 106 | 121 | } | | 122 | + | | 123 | + /** | | 124 | + * Gets the integrations. | | 125 | + * | | 126 | + * <p>An object containing context data that is specific to particular integrations. For more | | 127 | + * information, see the | | 128 | + * [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-dialog-integrations). | | 129 | + * | | 130 | + * @return the integrations | | 131 | + */ | | 132 | + public Map<String, Object> integrations() { | | 133 | + return integrations; | | 134 | + } | 107 | 135 | } |
Collapse file Copy file name to clipboardExpand all lines: assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageContextGlobal.java +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | /* | 2 | | - * (C) Copyright IBM Corp. 2018, 2020. | | 2 | + * (C) Copyright IBM Corp. 2022. | 3 | 3 | * | 4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | 5 | 5 | * the License. You may obtain a copy of the License at | | 15 | 15 | import com.google.gson.annotations.SerializedName; | 16 | 16 | import com.ibm.cloud.sdk.core.service.model.GenericModel; | 17 | 17 |
| 18 | | -/** Session context data that is shared by all skills used by the Assistant. */ | | 18 | +/** Session context data that is shared by all skills used by the assistant. */ | 19 | 19 | public class MessageContextGlobal extends GenericModel { | 20 | 20 |
| 21 | 21 | protected MessageContextGlobalSystem system; | |
Collapse file Copy file name to clipboardExpand all lines: assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageContextGlobalStateless.java +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | /* | 2 | | - * (C) Copyright IBM Corp. 2020. | | 2 | + * (C) Copyright IBM Corp. 2022. | 3 | 3 | * | 4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | 5 | 5 | * the License. You may obtain a copy of the License at | | 15 | 15 | import com.google.gson.annotations.SerializedName; | 16 | 16 | import com.ibm.cloud.sdk.core.service.model.GenericModel; | 17 | 17 |
| 18 | | -/** Session context data that is shared by all skills used by the Assistant. */ | | 18 | +/** Session context data that is shared by all skills used by the assistant. */ | 19 | 19 | public class MessageContextGlobalStateless extends GenericModel { | 20 | 20 |
| 21 | 21 | protected MessageContextGlobalSystem system; | |
Collapse file Copy file name to clipboardExpand all lines: assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageContextGlobalSystem.java +29-1Lines changed: 29 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | /* | 2 | | - * (C) Copyright IBM Corp. 2018, 2021. | | 2 | + * (C) Copyright IBM Corp. 2022. | 3 | 3 | * | 4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | 5 | 5 | * the License. You may obtain a copy of the License at | @@ -77,6 +77,9 @@ public interface Locale { | 77 | 77 |
| 78 | 78 | protected String state; | 79 | 79 |
| | 80 | + @SerializedName("skip_user_input") | | 81 | + protected Boolean skipUserInput; | | 82 | + | 80 | 83 | /** Builder. */ | 81 | 84 | public static class Builder { | 82 | 85 | private String timezone; | @@ -86,6 +89,7 @@ public static class Builder { | 86 | 89 | private String referenceTime; | 87 | 90 | private String sessionStartTime; | 88 | 91 | private String state; | | 92 | + private Boolean skipUserInput; | 89 | 93 |
| 90 | 94 | private Builder(MessageContextGlobalSystem messageContextGlobalSystem) { | 91 | 95 | this.timezone = messageContextGlobalSystem.timezone; | @@ -95,6 +99,7 @@ private Builder(MessageContextGlobalSystem messageContextGlobalSystem) { | 95 | 99 | this.referenceTime = messageContextGlobalSystem.referenceTime; | 96 | 100 | this.sessionStartTime = messageContextGlobalSystem.sessionStartTime; | 97 | 101 | this.state = messageContextGlobalSystem.state; | | 102 | + this.skipUserInput = messageContextGlobalSystem.skipUserInput; | 98 | 103 | } | 99 | 104 |
| 100 | 105 | /** Instantiates a new builder. */ | @@ -185,6 +190,17 @@ public Builder state(String state) { | 185 | 190 | this.state = state; | 186 | 191 | return this; | 187 | 192 | } | | 193 | + | | 194 | + /** | | 195 | + * Set the skipUserInput. | | 196 | + * | | 197 | + * @param skipUserInput the skipUserInput | | 198 | + * @return the MessageContextGlobalSystem builder | | 199 | + */ | | 200 | + public Builder skipUserInput(Boolean skipUserInput) { | | 201 | + this.skipUserInput = skipUserInput; | | 202 | + return this; | | 203 | + } | 188 | 204 | } | 189 | 205 |
| 190 | 206 | protected MessageContextGlobalSystem(Builder builder) { | @@ -195,6 +211,7 @@ protected MessageContextGlobalSystem(Builder builder) { | 195 | 211 | referenceTime = builder.referenceTime; | 196 | 212 | sessionStartTime = builder.sessionStartTime; | 197 | 213 | state = builder.state; | | 214 | + skipUserInput = builder.skipUserInput; | 198 | 215 | } | 199 | 216 |
| 200 | 217 | /** | @@ -316,4 +333,15 @@ public String sessionStartTime() { | 316 | 333 | public String state() { | 317 | 334 | return state; | 318 | 335 | } | | 336 | + | | 337 | + /** | | 338 | + * Gets the skipUserInput. | | 339 | + * | | 340 | + * <p>For internal use only. | | 341 | + * | | 342 | + * @return the skipUserInput | | 343 | + */ | | 344 | + public Boolean skipUserInput() { | | 345 | + return skipUserInput; | | 346 | + } | 319 | 347 | } |
Collapse file Copy file name to clipboardExpand all lines: assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageContextSkill.java +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | /* | 2 | | - * (C) Copyright IBM Corp. 2019, 2020. | | 2 | + * (C) Copyright IBM Corp. 2022. | 3 | 3 | * | 4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | 5 | 5 | * the License. You may obtain a copy of the License at | | 17 | 17 | import java.util.Map; | 18 | 18 |
| 19 | 19 | /** | 20 | | - * Contains information specific to a particular skill used by the Assistant. The property name must | | 20 | + * Contains information specific to a particular skill used by the assistant. The property name must | 21 | 21 | * be the same as the name of the skill (for example, `main skill`). | 22 | 22 | */ | 23 | 23 | public class MessageContextSkill extends GenericModel { | |
Collapse file Copy file name to clipboardExpand all lines: assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageContextStateless.java +30-2Lines changed: 30 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | /* | 2 | | - * (C) Copyright IBM Corp. 2020. | | 2 | + * (C) Copyright IBM Corp. 2022. | 3 | 3 | * | 4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | 5 | 5 | * the License. You may obtain a copy of the License at | @@ -20,15 +20,18 @@ public class MessageContextStateless extends GenericModel { | 20 | 20 |
| 21 | 21 | protected MessageContextGlobalStateless global; | 22 | 22 | protected Map<String, MessageContextSkill> skills; | | 23 | + protected Map<String, Object> integrations; | 23 | 24 |
| 24 | 25 | /** Builder. */ | 25 | 26 | public static class Builder { | 26 | 27 | private MessageContextGlobalStateless global; | 27 | 28 | private Map<String, MessageContextSkill> skills; | | 29 | + private Map<String, Object> integrations; | 28 | 30 |
| 29 | 31 | private Builder(MessageContextStateless messageContextStateless) { | 30 | 32 | this.global = messageContextStateless.global; | 31 | 33 | this.skills = messageContextStateless.skills; | | 34 | + this.integrations = messageContextStateless.integrations; | 32 | 35 | } | 33 | 36 |
| 34 | 37 | /** Instantiates a new builder. */ | @@ -64,11 +67,23 @@ public Builder skills(Map<String, MessageContextSkill> skills) { | 64 | 67 | this.skills = skills; | 65 | 68 | return this; | 66 | 69 | } | | 70 | + | | 71 | + /** | | 72 | + * Set the integrations. | | 73 | + * | | 74 | + * @param integrations the integrations | | 75 | + * @return the MessageContextStateless builder | | 76 | + */ | | 77 | + public Builder integrations(Map<String, Object> integrations) { | | 78 | + this.integrations = integrations; | | 79 | + return this; | | 80 | + } | 67 | 81 | } | 68 | 82 |
| 69 | 83 | protected MessageContextStateless(Builder builder) { | 70 | 84 | global = builder.global; | 71 | 85 | skills = builder.skills; | | 86 | + integrations = builder.integrations; | 72 | 87 | } | 73 | 88 |
| 74 | 89 | /** | @@ -83,7 +98,7 @@ public Builder newBuilder() { | 83 | 98 | /** | 84 | 99 | * Gets the global. | 85 | 100 | * | 86 | | - * <p>Session context data that is shared by all skills used by the Assistant. | | 101 | + * <p>Session context data that is shared by all skills used by the assistant. | 87 | 102 | * | 88 | 103 | * @return the global | 89 | 104 | */ | @@ -104,4 +119,17 @@ public MessageContextGlobalStateless global() { | 104 | 119 | public Map<String, MessageContextSkill> skills() { | 105 | 120 | return skills; | 106 | 121 | } | | 122 | + | | 123 | + /** | | 124 | + * Gets the integrations. | | 125 | + * | | 126 | + * <p>An object containing context data that is specific to particular integrations. For more | | 127 | + * information, see the | | 128 | + * [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-dialog-integrations). | | 129 | + * | | 130 | + * @return the integrations | | 131 | + */ | | 132 | + public Map<String, Object> integrations() { | | 133 | + return integrations; | | 134 | + } | 107 | 135 | } |
|