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

org.dflib.jjava.jupyter.messages.reply.KernelInfoReply Maven / Gradle / Ivy

The newest version!
package org.dflib.jjava.jupyter.messages.reply;

import com.google.gson.annotations.SerializedName;
import org.dflib.jjava.jupyter.kernel.LanguageInfo;
import org.dflib.jjava.jupyter.messages.ContentType;
import org.dflib.jjava.jupyter.messages.MessageType;
import org.dflib.jjava.jupyter.messages.ReplyType;
import org.dflib.jjava.jupyter.messages.request.KernelInfoRequest;

import java.util.List;

public class KernelInfoReply implements ContentType, ReplyType {
    public static final MessageType MESSAGE_TYPE = MessageType.KERNEL_INFO_REPLY;
    public static final MessageType REQUEST_MESSAGE_TYPE = MessageType.KERNEL_INFO_REQUEST;

    @Override
    public MessageType getType() {
        return MESSAGE_TYPE;
    }

    @Override
    public MessageType getRequestType() {
        return REQUEST_MESSAGE_TYPE;
    }

    /**
     * Semantic version string. X.Y.Z
     */
    @SerializedName("protocol_version")
    protected String protocolVersion;

    /**
     * Ex. 'ipython' for IPython
     */
    @SerializedName("implementation")
    protected String implementationName;

    /**
     * Semantic version string for the kernel
     */
    @SerializedName("implementation_version")
    protected String implementationVersion;

    @SerializedName("language_info")
    protected LanguageInfo langInfo;

    /**
     * An optional banner text about the kernel.
     */
    protected String banner;

    /**
     * Optional help links about the kernel language
     */
    @SerializedName("help_links")
    protected List helpLinks;

    public KernelInfoReply(String protocolVersion, String implementationName, String implementationVersion, LanguageInfo langInfo, String banner, List helpLinks) {
        this.protocolVersion = protocolVersion;
        this.implementationName = implementationName;
        this.implementationVersion = implementationVersion;
        this.langInfo = langInfo;
        this.banner = banner;
        this.helpLinks = helpLinks;
    }

    public String getProtocolVersion() {
        return protocolVersion;
    }

    public String getImplementationName() {
        return implementationName;
    }

    public String getImplementationVersion() {
        return implementationVersion;
    }

    public LanguageInfo getLangInfo() {
        return langInfo;
    }

    public String getBanner() {
        return banner;
    }

    public List getHelpLinks() {
        return helpLinks;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy