103 lines
5.8 KiB
C#
103 lines
5.8 KiB
C#
/*
|
||
* 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);
|
||
}
|
||
}
|
||
}
|
||
|