Files
g.hnyhua.cn/TencentCloud/Tmt/V20180321/Models/TextTranslateBatchRequest.cs

103 lines
5.8 KiB
C#
Raw Normal View History

/*
* 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 TextTranslateBatchRequest : AbstractModel
{
/// <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>
/// 待翻译的文本列表批量接口可以以数组方式在一次请求中填写多个待翻译文本。文本统一使用utf-8格式编码非utf-8格式编码字符会翻译失败请传入有效文本html标记等非常规翻译文本可能会翻译失败。单次请求的文本长度总和需要低于2000。
/// </summary>
[JsonProperty("SourceTextList")]
public string[] SourceTextList{ 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 + "Source", this.Source);
this.SetParamSimple(map, prefix + "Target", this.Target);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamArraySimple(map, prefix + "SourceTextList.", this.SourceTextList);
}
}
}