1package translatortext
2
3// Copyright (c) Microsoft Corporation. All rights reserved.
4// Licensed under the MIT License. See License.txt in the project root for license information.
5//
6// Code generated by Microsoft (R) AutoRest Code Generator.
7// Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
9import (
10	"github.com/Azure/go-autorest/autorest"
11)
12
13// The package's fully qualified name.
14const fqdn = "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.0/translatortext"
15
16// BreakSentenceResultItem ...
17type BreakSentenceResultItem struct {
18	SentLen *[]int32 `json:"sentLen,omitempty"`
19}
20
21// BreakSentenceTextInput text needed for break sentence request
22type BreakSentenceTextInput struct {
23	Text *string `json:"text,omitempty"`
24}
25
26// DetectResultItem ...
27type DetectResultItem struct {
28	Text *string `json:"text,omitempty"`
29}
30
31// DetectTextInput text needed for detect request
32type DetectTextInput struct {
33	Text *string `json:"text,omitempty"`
34}
35
36// DictionaryExampleResultItem ...
37type DictionaryExampleResultItem struct {
38	NormalizedSource *string                                    `json:"normalizedSource,omitempty"`
39	NormalizedTarget *string                                    `json:"normalizedTarget,omitempty"`
40	Examples         *[]DictionaryExampleResultItemExamplesItem `json:"examples,omitempty"`
41}
42
43// DictionaryExampleResultItemExamplesItem ...
44type DictionaryExampleResultItemExamplesItem struct {
45	SourcePrefix *string `json:"sourcePrefix,omitempty"`
46	SourceTerm   *string `json:"sourceTerm,omitempty"`
47	SourceSuffix *string `json:"sourceSuffix,omitempty"`
48	TargetPrefix *string `json:"targetPrefix,omitempty"`
49	TargetTerm   *string `json:"targetTerm,omitempty"`
50	TargetSuffix *string `json:"targetSuffix,omitempty"`
51}
52
53// DictionaryExampleTextInput text needed for a dictionary example request
54type DictionaryExampleTextInput struct {
55	Text        *string `json:"text,omitempty"`
56	Translation *string `json:"translation,omitempty"`
57}
58
59// DictionaryLookupResultItem ...
60type DictionaryLookupResultItem struct {
61	NormalizedSource *string                                       `json:"normalizedSource,omitempty"`
62	DisplaySource    *string                                       `json:"displaySource,omitempty"`
63	Translations     *[]DictionaryLookupResultItemTranslationsItem `json:"translations,omitempty"`
64}
65
66// DictionaryLookupResultItemTranslationsItem ...
67type DictionaryLookupResultItemTranslationsItem struct {
68	NormalizedTarget *string                                                           `json:"normalizedTarget,omitempty"`
69	DisplayTarget    *string                                                           `json:"displayTarget,omitempty"`
70	PosTag           *string                                                           `json:"posTag,omitempty"`
71	Confidence       *float64                                                          `json:"confidence,omitempty"`
72	PrefixWord       *string                                                           `json:"prefixWord,omitempty"`
73	BackTranslations *[]DictionaryLookupResultItemTranslationsItemBackTranslationsItem `json:"backTranslations,omitempty"`
74}
75
76// DictionaryLookupResultItemTranslationsItemBackTranslationsItem ...
77type DictionaryLookupResultItemTranslationsItemBackTranslationsItem struct {
78	NormalizedText *string `json:"normalizedText,omitempty"`
79	DisplayText    *string `json:"displayText,omitempty"`
80	NumExamples    *int32  `json:"numExamples,omitempty"`
81	FrequencyCount *int32  `json:"frequencyCount,omitempty"`
82}
83
84// DictionaryLookupTextInput text needed for a dictionary lookup request
85type DictionaryLookupTextInput struct {
86	Text *string `json:"text,omitempty"`
87}
88
89// ErrorMessage ...
90type ErrorMessage struct {
91	Error *ErrorMessageError `json:"error,omitempty"`
92}
93
94// ErrorMessageError ...
95type ErrorMessageError struct {
96	Code    *string `json:"code,omitempty"`
97	Message *string `json:"message,omitempty"`
98}
99
100// LanguagesResult example of a successful languages request
101type LanguagesResult struct {
102	autorest.Response `json:"-"`
103	Translation       *LanguagesResultTranslation     `json:"translation,omitempty"`
104	Transliteration   *LanguagesResultTransliteration `json:"transliteration,omitempty"`
105	Dictionary        *LanguagesResultDictionary      `json:"dictionary,omitempty"`
106}
107
108// LanguagesResultDictionary ...
109type LanguagesResultDictionary struct {
110	LanguageCode *LanguagesResultDictionaryLanguageCode `json:"languageCode,omitempty"`
111}
112
113// LanguagesResultDictionaryLanguageCode ...
114type LanguagesResultDictionaryLanguageCode struct {
115	Name         *string                                                  `json:"name,omitempty"`
116	NativeName   *string                                                  `json:"nativeName,omitempty"`
117	Dir          *string                                                  `json:"dir,omitempty"`
118	Translations *[]LanguagesResultDictionaryLanguageCodeTranslationsItem `json:"translations,omitempty"`
119}
120
121// LanguagesResultDictionaryLanguageCodeTranslationsItem ...
122type LanguagesResultDictionaryLanguageCodeTranslationsItem struct {
123	Name       *string `json:"name,omitempty"`
124	NativeName *string `json:"nativeName,omitempty"`
125	Dir        *string `json:"dir,omitempty"`
126	Code       *string `json:"code,omitempty"`
127}
128
129// LanguagesResultTranslation ...
130type LanguagesResultTranslation struct {
131	LanguageCode *LanguagesResultTranslationLanguageCode `json:"languageCode,omitempty"`
132}
133
134// LanguagesResultTranslationLanguageCode ...
135type LanguagesResultTranslationLanguageCode struct {
136	Name       *string `json:"name,omitempty"`
137	NativeName *string `json:"nativeName,omitempty"`
138	Dir        *string `json:"dir,omitempty"`
139}
140
141// LanguagesResultTransliteration ...
142type LanguagesResultTransliteration struct {
143	LanguageCode *LanguagesResultTransliterationLanguageCode `json:"languageCode,omitempty"`
144}
145
146// LanguagesResultTransliterationLanguageCode ...
147type LanguagesResultTransliterationLanguageCode struct {
148	Name       *string                                                  `json:"name,omitempty"`
149	NativeName *string                                                  `json:"nativeName,omitempty"`
150	Scripts    *[]LanguagesResultTransliterationLanguageCodeScriptsItem `json:"scripts,omitempty"`
151}
152
153// LanguagesResultTransliterationLanguageCodeScriptsItem ...
154type LanguagesResultTransliterationLanguageCodeScriptsItem struct {
155	Code       *string                                                               `json:"code,omitempty"`
156	Name       *string                                                               `json:"name,omitempty"`
157	NativeName *string                                                               `json:"nativeName,omitempty"`
158	Dir        *string                                                               `json:"dir,omitempty"`
159	ToScripts  *[]LanguagesResultTransliterationLanguageCodeScriptsItemToScriptsItem `json:"toScripts,omitempty"`
160}
161
162// LanguagesResultTransliterationLanguageCodeScriptsItemToScriptsItem ...
163type LanguagesResultTransliterationLanguageCodeScriptsItemToScriptsItem struct {
164	Code       *string `json:"code,omitempty"`
165	Name       *string `json:"name,omitempty"`
166	NativeName *string `json:"nativeName,omitempty"`
167	Dir        *string `json:"dir,omitempty"`
168}
169
170// ListBreakSentenceResultItem ...
171type ListBreakSentenceResultItem struct {
172	autorest.Response `json:"-"`
173	Value             *[]BreakSentenceResultItem `json:"value,omitempty"`
174}
175
176// ListDetectResultItem ...
177type ListDetectResultItem struct {
178	autorest.Response `json:"-"`
179	Value             *[]DetectResultItem `json:"value,omitempty"`
180}
181
182// ListDictionaryExampleResultItem ...
183type ListDictionaryExampleResultItem struct {
184	autorest.Response `json:"-"`
185	Value             *[]DictionaryExampleResultItem `json:"value,omitempty"`
186}
187
188// ListDictionaryLookupResultItem ...
189type ListDictionaryLookupResultItem struct {
190	autorest.Response `json:"-"`
191	Value             *[]DictionaryLookupResultItem `json:"value,omitempty"`
192}
193
194// ListTranslateResultAllItem ...
195type ListTranslateResultAllItem struct {
196	autorest.Response `json:"-"`
197	Value             *[]TranslateResultAllItem `json:"value,omitempty"`
198}
199
200// ListTransliterateResultItem ...
201type ListTransliterateResultItem struct {
202	autorest.Response `json:"-"`
203	Value             *[]TransliterateResultItem `json:"value,omitempty"`
204}
205
206// TranslateResultAllItem ...
207type TranslateResultAllItem struct {
208	DetectedLanguage *TranslateResultAllItemDetectedLanguage   `json:"detectedLanguage,omitempty"`
209	Translations     *[]TranslateResultAllItemTranslationsItem `json:"translations,omitempty"`
210}
211
212// TranslateResultAllItemDetectedLanguage ...
213type TranslateResultAllItemDetectedLanguage struct {
214	Language *string `json:"language,omitempty"`
215	Score    *int32  `json:"score,omitempty"`
216}
217
218// TranslateResultAllItemTranslationsItem ...
219type TranslateResultAllItemTranslationsItem struct {
220	Text            *string                                                `json:"text,omitempty"`
221	Transliteration *TranslateResultAllItemTranslationsItemTransliteration `json:"transliteration,omitempty"`
222	To              *string                                                `json:"to,omitempty"`
223	Alignment       *TranslateResultAllItemTranslationsItemAlignment       `json:"alignment,omitempty"`
224	SentLen         *TranslateResultAllItemTranslationsItemSentLen         `json:"sentLen,omitempty"`
225}
226
227// TranslateResultAllItemTranslationsItemAlignment ...
228type TranslateResultAllItemTranslationsItemAlignment struct {
229	Proj *string `json:"proj,omitempty"`
230}
231
232// TranslateResultAllItemTranslationsItemSentLen ...
233type TranslateResultAllItemTranslationsItemSentLen struct {
234	SrcSentLen   *[]TranslateResultAllItemTranslationsItemSentLenSrcSentLenItem   `json:"srcSentLen,omitempty"`
235	TransSentLen *[]TranslateResultAllItemTranslationsItemSentLenTransSentLenItem `json:"transSentLen,omitempty"`
236}
237
238// TranslateResultAllItemTranslationsItemSentLenSrcSentLenItem ...
239type TranslateResultAllItemTranslationsItemSentLenSrcSentLenItem struct {
240	Integer *int32 `json:"integer,omitempty"`
241}
242
243// TranslateResultAllItemTranslationsItemSentLenTransSentLenItem ...
244type TranslateResultAllItemTranslationsItemSentLenTransSentLenItem struct {
245	Integer *int32 `json:"integer,omitempty"`
246}
247
248// TranslateResultAllItemTranslationsItemTransliteration ...
249type TranslateResultAllItemTranslationsItemTransliteration struct {
250	Text   *string `json:"text,omitempty"`
251	Script *string `json:"script,omitempty"`
252}
253
254// TranslateResultItem ...
255type TranslateResultItem struct {
256	Translation *[]TranslateResultItemTranslationItem `json:"translation,omitempty"`
257}
258
259// TranslateResultItemTranslationItem ...
260type TranslateResultItemTranslationItem struct {
261	Text *string `json:"text,omitempty"`
262	To   *string `json:"to,omitempty"`
263}
264
265// TranslateTextInput text needed for a translate request
266type TranslateTextInput struct {
267	Text *string `json:"text,omitempty"`
268}
269
270// TransliterateResultItem ...
271type TransliterateResultItem struct {
272	Text   *string `json:"text,omitempty"`
273	Script *string `json:"script,omitempty"`
274}
275
276// TransliterateTextInput text needed for a transliterate request
277type TransliterateTextInput struct {
278	Text *string `json:"text,omitempty"`
279}
280