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

com.languageweaver.sdk.translate.request.TranslateTextRequest Maven / Gradle / Ivy

package com.languageweaver.sdk.translate.request;

import java.util.ArrayList;
import java.util.List;

public class TranslateTextRequest extends TranslateRequest {

    protected List input = new ArrayList<>();

    public List getInput() {
        return input;
    }

    public TranslateTextRequest setInput(List input) {
        this.input = input;
        return this;
    }

    public TranslateTextRequest addInput(String input) {
        this.input.add(input);
        return this;
    }

    public String getSourceLanguageId() {
        return sourceLanguageId;
    }

    public TranslateTextRequest setSourceLanguageId(String sourceLanguageId) {
        this.sourceLanguageId = sourceLanguageId;
        return this;
    }

    public String getTargetLanguageId() {
        return targetLanguageId;
    }

    public TranslateTextRequest setTargetLanguageId(String targetLanguageId) {
        this.targetLanguageId = targetLanguageId;
        return this;
    }

    public String getModel() {
        return model;
    }

    public TranslateTextRequest setModel(String model) {
        this.model = model;
        return this;
    }

    public String getInputFormat() {
        return inputFormat;
    }

    public TranslateTextRequest setInputFormat(String inputFormat) {
        this.inputFormat = inputFormat;
        return this;
    }

    public List getDictionaries() {
        return dictionaries;
    }

    public TranslateTextRequest setDictionaries(List dictionaries) {
        this.dictionaries = dictionaries;
        return this;
    }

    public TranslateTextRequest addDictionary(String dictionary) {
        this.dictionaries.add(dictionary);
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy