/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * 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. */ namespace TencentCloud.Tmt.V20180321.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class TextTranslateRequest : AbstractModel { /// /// 待翻译的文本,文本统一使用utf-8格式编码,非utf-8格式编码字符会翻译失败,请传入有效文本,html标记等非常规翻译文本可能会翻译失败。单次请求的文本长度需要低于2000。 /// [JsonProperty("SourceText")] public string SourceText{ get; set; } /// /// 源语言,支持: /// auto:自动识别(识别为一种语言) /// zh:简体中文 /// zh-TW:繁体中文 /// en:英语 /// ja:日语 /// ko:韩语 /// fr:法语 /// es:西班牙语 /// it:意大利语 /// de:德语 /// tr:土耳其语 /// ru:俄语 /// pt:葡萄牙语 /// vi:越南语 /// id:印尼语 /// th:泰语 /// ms:马来西亚语 /// ar:阿拉伯语 /// hi:印地语 /// [JsonProperty("Source")] public string Source{ get; set; } /// /// 目标语言,各源语言的目标语言支持列表如下 /// ///
  • zh(简体中文):en(英语)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms(马来语)
  • ///
  • zh-TW(繁体中文):en(英语)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms(马来语)
  • ///
  • en(英语):zh(中文)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms(马来语)、ar(阿拉伯语)、hi(印地语)
  • ///
  • ja(日语):zh(中文)、en(英语)、ko(韩语)
  • ///
  • ko(韩语):zh(中文)、en(英语)、ja(日语)
  • ///
  • fr(法语):zh(中文)、en(英语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)
  • ///
  • es(西班牙语):zh(中文)、en(英语)、fr(法语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)
  • ///
  • it(意大利语):zh(中文)、en(英语)、fr(法语)、es(西班牙语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)
  • ///
  • de(德语):zh(中文)、en(英语)、fr(法语)、es(西班牙语)、it(意大利语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)
  • ///
  • tr(土耳其语):zh(中文)、en(英语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、ru(俄语)、pt(葡萄牙语)
  • ///
  • ru(俄语):zh(中文)、en(英语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、pt(葡萄牙语)
  • ///
  • pt(葡萄牙语):zh(中文)、en(英语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)
  • ///
  • vi(越南语):zh(中文)、en(英语)
  • ///
  • id(印尼语):zh(中文)、en(英语)
  • ///
  • th(泰语):zh(中文)、en(英语)
  • ///
  • ms(马来语):zh(中文)、en(英语)
  • ///
  • ar(阿拉伯语):en(英语)
  • ///
  • hi(印地语):en(英语)
  • ///
    [JsonProperty("Target")] public string Target{ get; set; } /// /// 项目ID,可以根据控制台-账号中心-项目管理中的配置填写,如无配置请填写默认项目ID:0 /// [JsonProperty("ProjectId")] public long? ProjectId{ get; set; } /// /// 用来标记不希望被翻译的文本内容,如句子中的特殊符号、人名、地名等;每次请求只支持配置一个不被翻译的单词;仅支持配置人名、地名等名词,不要配置动词或短语,否则会影响翻译结果。 /// [JsonProperty("UntranslatedText")] public string UntranslatedText{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "SourceText", this.SourceText); this.SetParamSimple(map, prefix + "Source", this.Source); this.SetParamSimple(map, prefix + "Target", this.Target); this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId); this.SetParamSimple(map, prefix + "UntranslatedText", this.UntranslatedText); } } }