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