Files
g.hnyhua.cn/TencentCloud/Tmt/V20180321/Models/TextTranslateRequest.cs
2026-02-07 15:48:27 +08:00

110 lines
6.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* 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
{
/// <summary>
/// 待翻译的文本文本统一使用utf-8格式编码非utf-8格式编码字符会翻译失败请传入有效文本html标记等非常规翻译文本可能会翻译失败。单次请求的文本长度需要低于2000。
/// </summary>
[JsonProperty("SourceText")]
public string SourceText{ get; set; }
/// <summary>
/// 源语言,支持:
/// auto自动识别识别为一种语言
/// zh简体中文
/// zh-TW繁体中文
/// en英语
/// ja日语
/// ko韩语
/// fr法语
/// es西班牙语
/// it意大利语
/// de德语
/// tr土耳其语
/// ru俄语
/// pt葡萄牙语
/// vi越南语
/// id印尼语
/// th泰语
/// ms马来西亚语
/// ar阿拉伯语
/// hi印地语
/// </summary>
[JsonProperty("Source")]
public string Source{ get; set; }
/// <summary>
/// 目标语言,各源语言的目标语言支持列表如下
///
/// <li> zh简体中文en英语、ja日语、ko韩语、fr法语、es西班牙语、it意大利语、de德语、tr土耳其语、ru俄语、pt葡萄牙语、vi越南语、id印尼语、th泰语、ms马来语</li>
/// <li>zh-TW繁体中文en英语、ja日语、ko韩语、fr法语、es西班牙语、it意大利语、de德语、tr土耳其语、ru俄语、pt葡萄牙语、vi越南语、id印尼语、th泰语、ms马来语</li>
/// <li>en英语zh中文、ja日语、ko韩语、fr法语、es西班牙语、it意大利语、de德语、tr土耳其语、ru俄语、pt葡萄牙语、vi越南语、id印尼语、th泰语、ms马来语、ar阿拉伯语、hi印地语</li>
/// <li>ja日语zh中文、en英语、ko韩语</li>
/// <li>ko韩语zh中文、en英语、ja日语</li>
/// <li>fr法语zh中文、en英语、es西班牙语、it意大利语、de德语、tr土耳其语、ru俄语、pt葡萄牙语</li>
/// <li>es西班牙语zh中文、en英语、fr法语、it意大利语、de德语、tr土耳其语、ru俄语、pt葡萄牙语</li>
/// <li>it意大利语zh中文、en英语、fr法语、es西班牙语、de德语、tr土耳其语、ru俄语、pt葡萄牙语</li>
/// <li>de德语zh中文、en英语、fr法语、es西班牙语、it意大利语、tr土耳其语、ru俄语、pt葡萄牙语</li>
/// <li>tr土耳其语zh中文、en英语、fr法语、es西班牙语、it意大利语、de德语、ru俄语、pt葡萄牙语</li>
/// <li>ru俄语zh中文、en英语、fr法语、es西班牙语、it意大利语、de德语、tr土耳其语、pt葡萄牙语</li>
/// <li>pt葡萄牙语zh中文、en英语、fr法语、es西班牙语、it意大利语、de德语、tr土耳其语、ru俄语</li>
/// <li>vi越南语zh中文、en英语</li>
/// <li>id印尼语zh中文、en英语</li>
/// <li>th泰语zh中文、en英语</li>
/// <li>ms马来语zh中文、en英语</li>
/// <li>ar阿拉伯语en英语</li>
/// <li>hi印地语en英语</li>
/// </summary>
[JsonProperty("Target")]
public string Target{ get; set; }
/// <summary>
/// 项目ID可以根据控制台-账号中心-项目管理中的配置填写如无配置请填写默认项目ID:0
/// </summary>
[JsonProperty("ProjectId")]
public long? ProjectId{ get; set; }
/// <summary>
/// 用来标记不希望被翻译的文本内容,如句子中的特殊符号、人名、地名等;每次请求只支持配置一个不被翻译的单词;仅支持配置人名、地名等名词,不要配置动词或短语,否则会影响翻译结果。
/// </summary>
[JsonProperty("UntranslatedText")]
public string UntranslatedText{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> 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);
}
}
}