diff --git a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/Environment.java b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/Environment.java index 32431431b7..603c78791e 100644 --- a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/Environment.java +++ b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/Environment.java @@ -108,7 +108,7 @@ public String getEnvironmentId() { /** * Gets the environment. * - *

The type of the environment. All environments other than the draft and live environments + *

The type of the environment. All environments other than the `draft` and `live` environments * have the type `staging`. * * @return the environment @@ -131,7 +131,7 @@ public EnvironmentReleaseReference getReleaseReference() { /** * Gets the orchestration. * - *

The search skill orchestration settings for message API. + *

The search skill orchestration settings for the environment. * * @return the orchestration */ @@ -142,7 +142,7 @@ public EnvironmentOrchestration getOrchestration() { /** * Gets the sessionTimeout. * - *

The session inactivity timeout setting of for the environment. + *

The session inactivity timeout setting for the environment. * * @return the sessionTimeout */ diff --git a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/EnvironmentOrchestration.java b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/EnvironmentOrchestration.java index e8bad8d5b7..b3883a9768 100644 --- a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/EnvironmentOrchestration.java +++ b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/EnvironmentOrchestration.java @@ -15,7 +15,7 @@ import com.google.gson.annotations.SerializedName; import com.ibm.cloud.sdk.core.service.model.GenericModel; -/** The search skill orchestration settings for message API. */ +/** The search skill orchestration settings for the environment. */ public class EnvironmentOrchestration extends GenericModel { @SerializedName("search_skill_fallback") @@ -24,8 +24,9 @@ public class EnvironmentOrchestration extends GenericModel { /** * Gets the searchSkillFallback. * - *

Whether to connect to discovery in the event a response cannot be matched. If search skill - * is not enabled for the environment, this property is ignored. + *

Whether assistants deployed to the environment fall back to a search skill when responding + * to messages that do not match any intent. If no search skill is configured for the assistant, + * this property is ignored. * * @return the searchSkillFallback */ diff --git a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEvent.java b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEvent.java index 480c3a5096..3e6714d242 100644 --- a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEvent.java +++ b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEvent.java @@ -81,7 +81,6 @@ public interface Reason { } protected String event; - protected TurnEventActionSource source; @SerializedName("action_start_time") protected String actionStartTime; @@ -99,7 +98,6 @@ public interface Reason { protected Boolean prompted; protected TurnEventCalloutCallout callout; - protected TurnEventCalloutError error; protected MessageOutputDebugTurnEvent() {} @@ -114,15 +112,6 @@ public String getEvent() { return event; } - /** - * Gets the source. - * - * @return the source - */ - public TurnEventActionSource getSource() { - return source; - } - /** * Gets the actionStartTime. * @@ -198,13 +187,4 @@ public Boolean isPrompted() { public TurnEventCalloutCallout getCallout() { return callout; } - - /** - * Gets the error. - * - * @return the error - */ - public TurnEventCalloutError getError() { - return error; - } } diff --git a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventActionFinished.java b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventActionFinished.java index 55600f5fa6..6152b71ebb 100644 --- a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventActionFinished.java +++ b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventActionFinished.java @@ -16,6 +16,8 @@ public class MessageOutputDebugTurnEventTurnEventActionFinished extends MessageOutputDebugTurnEvent { + private TurnEventActionSource source; + /** The type of condition (if any) that is defined for the action. */ public interface ConditionType { /** user_defined. */ @@ -41,4 +43,13 @@ public interface Reason { /** fallback. */ String FALLBACK = "fallback"; } + + /** + * Gets the source. + * + * @return the source + */ + public TurnEventActionSource getSource() { + return source; + } } diff --git a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventActionVisited.java b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventActionVisited.java index c2a677528e..5ba763f2c6 100644 --- a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventActionVisited.java +++ b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventActionVisited.java @@ -15,6 +15,8 @@ /** MessageOutputDebugTurnEventTurnEventActionVisited. */ public class MessageOutputDebugTurnEventTurnEventActionVisited extends MessageOutputDebugTurnEvent { + private TurnEventActionSource source; + /** The type of condition (if any) that is defined for the action. */ public interface ConditionType { /** user_defined. */ @@ -46,4 +48,13 @@ public interface Reason { /** no_action_matches. */ String NO_ACTION_MATCHES = "no_action_matches"; } + + /** + * Gets the source. + * + * @return the source + */ + public TurnEventActionSource getSource() { + return source; + } } diff --git a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventCallout.java b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventCallout.java index 7a59f8da04..aff421d32c 100644 --- a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventCallout.java +++ b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventCallout.java @@ -13,4 +13,26 @@ package com.ibm.watson.assistant.v2.model; /** MessageOutputDebugTurnEventTurnEventCallout. */ -public class MessageOutputDebugTurnEventTurnEventCallout extends MessageOutputDebugTurnEvent {} +public class MessageOutputDebugTurnEventTurnEventCallout extends MessageOutputDebugTurnEvent { + + private TurnEventActionSource source; + private TurnEventCalloutError error; + + /** + * Gets the source. + * + * @return the source + */ + public TurnEventActionSource getSource() { + return source; + } + + /** + * Gets the error. + * + * @return the error + */ + public TurnEventCalloutError getError() { + return error; + } +} diff --git a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventHandlerVisited.java b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventHandlerVisited.java index 833785502b..0f5b5c6d84 100644 --- a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventHandlerVisited.java +++ b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventHandlerVisited.java @@ -14,4 +14,16 @@ /** MessageOutputDebugTurnEventTurnEventHandlerVisited. */ public class MessageOutputDebugTurnEventTurnEventHandlerVisited - extends MessageOutputDebugTurnEvent {} + extends MessageOutputDebugTurnEvent { + + private TurnEventActionSource source; + + /** + * Gets the source. + * + * @return the source + */ + public TurnEventActionSource getSource() { + return source; + } +} diff --git a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventNodeVisited.java b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventNodeVisited.java index e007f79add..674972c27c 100644 --- a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventNodeVisited.java +++ b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventNodeVisited.java @@ -15,6 +15,8 @@ /** MessageOutputDebugTurnEventTurnEventNodeVisited. */ public class MessageOutputDebugTurnEventTurnEventNodeVisited extends MessageOutputDebugTurnEvent { + private TurnEventNodeSource source; + /** The reason the dialog node was visited. */ public interface Reason { /** welcome. */ @@ -30,4 +32,13 @@ public interface Reason { /** jump. */ String JUMP = "jump"; } + + /** + * Gets the source. + * + * @return the source + */ + public TurnEventNodeSource getSource() { + return source; + } } diff --git a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventSearch.java b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventSearch.java index cb58c5f362..a52143e135 100644 --- a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventSearch.java +++ b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventSearch.java @@ -13,4 +13,26 @@ package com.ibm.watson.assistant.v2.model; /** MessageOutputDebugTurnEventTurnEventSearch. */ -public class MessageOutputDebugTurnEventTurnEventSearch extends MessageOutputDebugTurnEvent {} +public class MessageOutputDebugTurnEventTurnEventSearch extends MessageOutputDebugTurnEvent { + + private TurnEventActionSource source; + private TurnEventSearchError error; + + /** + * Gets the source. + * + * @return the source + */ + public TurnEventActionSource getSource() { + return source; + } + + /** + * Gets the error. + * + * @return the error + */ + public TurnEventSearchError getError() { + return error; + } +} diff --git a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventStepAnswered.java b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventStepAnswered.java index dec7426f93..be00fc5144 100644 --- a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventStepAnswered.java +++ b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventStepAnswered.java @@ -15,6 +15,7 @@ /** MessageOutputDebugTurnEventTurnEventStepAnswered. */ public class MessageOutputDebugTurnEventTurnEventStepAnswered extends MessageOutputDebugTurnEvent { + private TurnEventActionSource source; /** The type of condition (if any) that is defined for the action. */ public interface ConditionType { /** user_defined. */ @@ -24,4 +25,13 @@ public interface ConditionType { /** anything_else. */ String ANYTHING_ELSE = "anything_else"; } + + /** + * Gets the source. + * + * @return the source + */ + public TurnEventActionSource getSource() { + return source; + } } diff --git a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventStepVisited.java b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventStepVisited.java index 2eff22053c..3e653335a2 100644 --- a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventStepVisited.java +++ b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventStepVisited.java @@ -15,6 +15,8 @@ /** MessageOutputDebugTurnEventTurnEventStepVisited. */ public class MessageOutputDebugTurnEventTurnEventStepVisited extends MessageOutputDebugTurnEvent { + private TurnEventActionSource source; + /** The type of condition (if any) that is defined for the action. */ public interface ConditionType { /** user_defined. */ @@ -24,4 +26,13 @@ public interface ConditionType { /** anything_else. */ String ANYTHING_ELSE = "anything_else"; } + + /** + * Gets the source. + * + * @return the source + */ + public TurnEventActionSource getSource() { + return source; + } } diff --git a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/SkillReference.java b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/SkillReference.java index 2f52fe48ee..8615356e2b 100644 --- a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/SkillReference.java +++ b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/SkillReference.java @@ -87,7 +87,8 @@ public String getSnapshot() { /** * Gets the skillReference. * - *

The type of skill identified by the skill reference. + *

The type of skill identified by the skill reference. The possible values are `main skill` + * (for a dialog skill), `actions skill`, and `search skill`. * * @return the skillReference */