Class ImportDocumentRequest


  • @Generated(value="org.openapitools.codegen.languages.JavaInflectorServerCodegen",
               comments="Generator version: 7.15.0")
    public class ImportDocumentRequest
    extends Object
    • Constructor Detail

      • ImportDocumentRequest

        public ImportDocumentRequest()
    • Method Detail

      • getSrcLang

        public String getSrcLang()
      • setSrcLang

        public void setSrcLang​(String srcLang)
      • getTrgLang

        public String getTrgLang()
      • setTrgLang

        public void setTrgLang​(String trgLang)
      • getFilterId

        public String getFilterId()
      • setFilterId

        public void setFilterId​(String filterId)
      • filterParams

        public ImportDocumentRequest filterParams​(String filterParams)
        Optional string with filter configuration parameters, filter defaults are used if omitted.
      • getFilterParams

        public String getFilterParams()
      • setFilterParams

        public void setFilterParams​(String filterParams)
      • getSrcSrx

        public String getSrcSrx()
      • setSrcSrx

        public void setSrcSrx​(String srcSrx)
      • getTmId

        public UUID getTmId()
      • setTmId

        public void setTmId​(UUID tmId)
      • tmThreshold

        public ImportDocumentRequest tmThreshold​(Integer tmThreshold)
        Translation memory threshold percentage (0-101, where 100 means exact, 101 in-context exact match). minimum: 0 maximum: 101
      • getTmThreshold

        public Integer getTmThreshold()
      • setTmThreshold

        public void setTmThreshold​(Integer tmThreshold)
      • getMtEngineId

        public String getMtEngineId()
      • setMtEngineId

        public void setMtEngineId​(String mtEngineId)
      • mtEngineParams

        public ImportDocumentRequest mtEngineParams​(String mtEngineParams)
        Optional parameters of the MT engine if MT is used (API key, model name etc. in the format the MT engine expects).
      • getMtEngineParams

        public String getMtEngineParams()
      • setMtEngineParams

        public void setMtEngineParams​(String mtEngineParams)
      • mtCustomResources

        public ImportDocumentRequest mtCustomResources​(List<MtResources> mtCustomResources)
        Array of MT resources (glossary + custom model) objects. Some MT resources are hardcoded in the controller, this array contains additional resources like client glossaries and models.
      • setMtCustomResources

        public void setMtCustomResources​(List<MtResources> mtCustomResources)
      • mtUseTranslateLlm

        public ImportDocumentRequest mtUseTranslateLlm​(Boolean mtUseTranslateLlm)
        True to use Google Translate LLM instead of NMT when confidence scores are not calculated (`mt_provide_confidence_scores` is false).
      • getMtUseTranslateLlm

        public Boolean getMtUseTranslateLlm()
      • setMtUseTranslateLlm

        public void setMtUseTranslateLlm​(Boolean mtUseTranslateLlm)
      • mtSendPlainText

        public ImportDocumentRequest mtSendPlainText​(Boolean mtSendPlainText)
        True to remove inline codes from the souce text before sending it for MT. Some models hallucinate when a text flow is interrupted with codes and cannot provide a high quality translation.
      • getMtSendPlainText

        public Boolean getMtSendPlainText()
      • setMtSendPlainText

        public void setMtSendPlainText​(Boolean mtSendPlainText)
      • mtProvideConfidenceScores

        public ImportDocumentRequest mtProvideConfidenceScores​(Boolean mtProvideConfidenceScores)
        True to provide several translations, each by a separate MT service, then calculate confidence scores for them. If GCT v3 (`GoogleMTv3`) is specified in `mt_engine_id` and the flag set to true, then the following models are inferenced in parallel: Goodle Cloud Translation v3 NMT, Translation LLM, and all the AutoML models specified in `mt_custom_resources`. If set to false, only one translation is generated by the MT engine specified in `mt_engine_id`, and the confidence score is 0.
      • getMtProvideConfidenceScores

        public Boolean getMtProvideConfidenceScores()
      • setMtProvideConfidenceScores

        public void setMtProvideConfidenceScores​(Boolean mtProvideConfidenceScores)
      • useCodesReinsertionModel

        public ImportDocumentRequest useCodesReinsertionModel​(Boolean useCodesReinsertionModel)
        True to use LLM-based target codes reinsertion, false to have Okapi reinsert. This option has effect only when plainTextMT is true.
      • getUseCodesReinsertionModel

        public Boolean getUseCodesReinsertionModel()
      • setUseCodesReinsertionModel

        public void setUseCodesReinsertionModel​(Boolean useCodesReinsertionModel)
      • codesReinsertionModelName

        public ImportDocumentRequest codesReinsertionModelName​(String codesReinsertionModelName)
        Gemini AI model name to use for target codes reinsertion.
      • getCodesReinsertionModelName

        public String getCodesReinsertionModelName()
      • setCodesReinsertionModelName

        public void setCodesReinsertionModelName​(String codesReinsertionModelName)
      • getUserId

        public UUID getUserId()
      • setUserId

        public void setUserId​(UUID userId)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object