All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cloud.sdk.services.recastai.userrequest.Message Maven / Gradle / Ivy

Go to download

Integration of SAP Conversational AI, aka Recast AI (Beta release, still subject to change - up to discontinuation of module).

There is a newer version: 2.28.0
Show newest version
/*
 * Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
 */

package com.sap.cloud.sdk.services.recastai.userrequest;

import javax.annotation.Nullable;

import com.google.common.annotations.Beta;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import lombok.NoArgsConstructor;

/**
 * This object represents the reaction of a chatbot and the responds the chatbot sents back.
 */
@Beta
@NoArgsConstructor
public class Message
{
    @SerializedName( "type" )
    @Expose
    private String type;

    @SerializedName( "content" )
    @Expose
    private String content;

    /**
     * This method returns the type of the message
     * 
     * @return A String with the type as specified by Recast Ai
     */
    @Nullable
    public String getType()
    {
        return type;
    }

    /**
     * Returns the content of the message
     * 
     * @return the content as a string
     */
    @Nullable
    public String getContent()
    {
        return content;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy