com.ibm.watson.assistant.v2.model.MessageResponseStateless Maven / Gradle / Ivy
/*
* (C) Copyright IBM Corp. 2020, 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.watson.assistant.v2.model;
import com.google.gson.annotations.SerializedName;
import com.ibm.cloud.sdk.core.service.model.GenericModel;
/** A stateless response from the Watson Assistant service. */
public class MessageResponseStateless extends GenericModel {
protected MessageOutput output;
protected MessageContextStateless context;
@SerializedName("user_id")
protected String userId;
/**
* Gets the output.
*
* Assistant output to be rendered or processed by the client.
*
* @return the output
*/
public MessageOutput getOutput() {
return output;
}
/**
* Gets the context.
*
*
Context data for the conversation. You can use this property to access context variables.
* The context is not stored by the assistant; to maintain session state, include the context from
* the response in the next message.
*
* @return the context
*/
public MessageContextStateless getContext() {
return context;
}
/**
* Gets the userId.
*
*
A string value that identifies the user who is interacting with the assistant. The client
* must provide a unique identifier for each individual end user who accesses the application. For
* user-based plans, this user ID is used to identify unique users for billing purposes. This
* string cannot contain carriage return, newline, or tab characters. If no value is specified in
* the input, **user_id** is automatically set to the value of **context.global.session_id**.
*
*
**Note:** This property is the same as the **user_id** property in the global system
* context.
*
* @return the userId
*/
public String getUserId() {
return userId;
}
}