@@ -94,8 +94,11 @@ public final class TextTranslationAsyncClient {
9494 * the suggestedFrom language will be assumed.</td></tr>
9595 * <tr><td>fromScript</td><td>String</td><td>No</td><td>Specifies the script of the input text.</td></tr>
9696 * <tr><td>toScript</td><td>String</td><td>No</td><td>Specifies the script of the translated text.</td></tr>
97- * <tr><td>allowFallback</td><td>Boolean</td><td>No</td><td>Specifies that the service is allowed to fall back to a
97+ * <tr><td>allowFallback</td><td>Boolean</td><td>No</td><td>In the case where a custom system is being used,
98+ * specifies that the service is allowed to fall back to a
9899 * general system when a custom system doesn't exist.
100+ * In the case where a Large Language Model is being used, specifies that the service is allowed to fall
101+ * back to a Small Language Model if an error occurs.
99102 * Possible values are: true (default) or false.
100103 *
101104 * allowFallback=false specifies that the translation should only use systems trained for the category specified
@@ -112,17 +115,35 @@ public final class TextTranslationAsyncClient {
112115 * <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
113116 * <tr><td>X-ClientTraceId</td><td>String</td><td>No</td><td>A client-generated GUID to uniquely identify the
114117 * request.</td></tr>
118+ * <tr><td>X-ClientTraceId</td><td>String</td><td>No</td><td>A client-generated GUID to uniquely identify the
119+ * request.</td></tr>
115120 * </table>
116121 * You can add these to a request with {@link RequestOptions#addHeader}
117122 * <p><strong>Request Body Schema</strong></p>
118123 *
119124 * <pre>
120125 * {@code
121- * [
122- * (Required){
126+ * {
127+ * text (Required): {
123128 * text: String (Required)
124129 * }
125- * ]
130+ * targetsLanguage (Required): [
131+ * String (Required)
132+ * ]
133+ * targetsTextType: String(Plain/Html) (Optional)
134+ * targetsProfanityAction: String(NoAction/Marked/Deleted) (Optional)
135+ * targetsProfanityMarker: String(Asterisk/Tag) (Optional)
136+ * script: String (Optional)
137+ * targetsScript: String (Optional)
138+ * targetsdeploymentNameModel: String (Optional)
139+ * targetsAllowFallback: Boolean (Optional)
140+ * targetsGrade: String (Optional)
141+ * targetsTone: String (Optional)
142+ * targetsGender: String (Optional)
143+ * targetsAdaptiveDatasetIds (Optional): [
144+ * String (Optional)
145+ * ]
146+ * }
126147 * }
127148 * </pre>
128149 *
@@ -144,17 +165,6 @@ public final class TextTranslationAsyncClient {
144165 * text: String (Required)
145166 * script: String (Required)
146167 * }
147- * alignment (Optional): {
148- * proj: String (Required)
149- * }
150- * sentLen (Optional): {
151- * srcSentLen (Required): [
152- * int (Required)
153- * ]
154- * transSentLen (Required): [
155- * int (Required)
156- * ]
157- * }
158168 * }
159169 * ]
160170 * sourceText (Optional): {
@@ -170,7 +180,7 @@ public final class TextTranslationAsyncClient {
170180 * in the translation scope. For example, use to=de to translate to German.
171181 * It's possible to translate to multiple languages simultaneously by repeating the parameter in the query string.
172182 * For example, use to=de&to=it to translate to German and Italian.
173- * @param body Defines the content of the request.
183+ * @param body Details of the translate request.
174184 * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
175185 * @throws HttpResponseException thrown if the request is rejected by server.
176186 * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -245,209 +255,6 @@ public Mono<Response<BinaryData>> transliterateWithResponse(String language, Str
245255 body , requestOptions );
246256 }
247257
248- /**
249- * Find Sentence Boundaries.
250- * <p><strong>Query Parameters</strong></p>
251- * <table border="1">
252- * <caption>Query Parameters</caption>
253- * <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
254- * <tr><td>language</td><td>String</td><td>No</td><td>Language tag identifying the language of the input text.
255- * If a code isn't specified, automatic language detection will be applied.</td></tr>
256- * <tr><td>script</td><td>String</td><td>No</td><td>Script tag identifying the script used by the input text.
257- * If a script isn't specified, the default script of the language will be assumed.</td></tr>
258- * </table>
259- * You can add these to a request with {@link RequestOptions#addQueryParam}
260- * <p><strong>Header Parameters</strong></p>
261- * <table border="1">
262- * <caption>Header Parameters</caption>
263- * <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
264- * <tr><td>X-ClientTraceId</td><td>String</td><td>No</td><td>A client-generated GUID to uniquely identify the
265- * request.</td></tr>
266- * </table>
267- * You can add these to a request with {@link RequestOptions#addHeader}
268- * <p><strong>Request Body Schema</strong></p>
269- *
270- * <pre>
271- * {@code
272- * [
273- * (Required){
274- * text: String (Required)
275- * }
276- * ]
277- * }
278- * </pre>
279- *
280- * <p><strong>Response Body Schema</strong></p>
281- *
282- * <pre>
283- * {@code
284- * [
285- * (Required){
286- * detectedLanguage (Optional): {
287- * language: String (Required)
288- * score: double (Required)
289- * }
290- * sentLen (Required): [
291- * int (Required)
292- * ]
293- * }
294- * ]
295- * }
296- * </pre>
297- *
298- * @param body Defines the content of the request.
299- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
300- * @throws HttpResponseException thrown if the request is rejected by server.
301- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
302- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
303- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
304- * @return the response body along with {@link Response} on successful completion of {@link Mono}.
305- */
306- @ Generated
307- @ ServiceMethod (returns = ReturnType .SINGLE )
308- public Mono <Response <BinaryData >> findSentenceBoundariesWithResponse (BinaryData body ,
309- RequestOptions requestOptions ) {
310- return this .serviceClient .findSentenceBoundariesWithResponseAsync (body , requestOptions );
311- }
312-
313- /**
314- * Lookup Dictionary Entries.
315- * <p><strong>Header Parameters</strong></p>
316- * <table border="1">
317- * <caption>Header Parameters</caption>
318- * <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
319- * <tr><td>X-ClientTraceId</td><td>String</td><td>No</td><td>A client-generated GUID to uniquely identify the
320- * request.</td></tr>
321- * </table>
322- * You can add these to a request with {@link RequestOptions#addHeader}
323- * <p><strong>Request Body Schema</strong></p>
324- *
325- * <pre>
326- * {@code
327- * [
328- * (Required){
329- * text: String (Required)
330- * }
331- * ]
332- * }
333- * </pre>
334- *
335- * <p><strong>Response Body Schema</strong></p>
336- *
337- * <pre>
338- * {@code
339- * [
340- * (Required){
341- * normalizedSource: String (Required)
342- * displaySource: String (Required)
343- * translations (Required): [
344- * (Required){
345- * normalizedTarget: String (Required)
346- * displayTarget: String (Required)
347- * posTag: String (Required)
348- * confidence: double (Required)
349- * prefixWord: String (Required)
350- * backTranslations (Required): [
351- * (Required){
352- * normalizedText: String (Required)
353- * displayText: String (Required)
354- * numExamples: int (Required)
355- * frequencyCount: int (Required)
356- * }
357- * ]
358- * }
359- * ]
360- * }
361- * ]
362- * }
363- * </pre>
364- *
365- * @param sourceLanguage Specifies the language of the input text.
366- * The source language must be one of the supported languages included in the dictionary scope.
367- * @param targetLanguage Specifies the language of the output text.
368- * The target language must be one of the supported languages included in the dictionary scope.
369- * @param body Defines the content of the request.
370- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
371- * @throws HttpResponseException thrown if the request is rejected by server.
372- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
373- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
374- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
375- * @return the response body along with {@link Response} on successful completion of {@link Mono}.
376- */
377- @ Generated
378- @ ServiceMethod (returns = ReturnType .SINGLE )
379- public Mono <Response <BinaryData >> lookupDictionaryEntriesWithResponse (String sourceLanguage , String targetLanguage ,
380- BinaryData body , RequestOptions requestOptions ) {
381- return this .serviceClient .lookupDictionaryEntriesWithResponseAsync (sourceLanguage , targetLanguage , body ,
382- requestOptions );
383- }
384-
385- /**
386- * Lookup Dictionary Examples.
387- * <p><strong>Header Parameters</strong></p>
388- * <table border="1">
389- * <caption>Header Parameters</caption>
390- * <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
391- * <tr><td>X-ClientTraceId</td><td>String</td><td>No</td><td>A client-generated GUID to uniquely identify the
392- * request.</td></tr>
393- * </table>
394- * You can add these to a request with {@link RequestOptions#addHeader}
395- * <p><strong>Request Body Schema</strong></p>
396- *
397- * <pre>
398- * {@code
399- * [
400- * (Required){
401- * text: String (Required)
402- * translation: String (Required)
403- * }
404- * ]
405- * }
406- * </pre>
407- *
408- * <p><strong>Response Body Schema</strong></p>
409- *
410- * <pre>
411- * {@code
412- * [
413- * (Required){
414- * normalizedSource: String (Required)
415- * normalizedTarget: String (Required)
416- * examples (Required): [
417- * (Required){
418- * sourcePrefix: String (Required)
419- * sourceTerm: String (Required)
420- * sourceSuffix: String (Required)
421- * targetPrefix: String (Required)
422- * targetTerm: String (Required)
423- * targetSuffix: String (Required)
424- * }
425- * ]
426- * }
427- * ]
428- * }
429- * </pre>
430- *
431- * @param sourceLanguage Specifies the language of the input text.
432- * The source language must be one of the supported languages included in the dictionary scope.
433- * @param targetLanguage Specifies the language of the output text.
434- * The target language must be one of the supported languages included in the dictionary scope.
435- * @param body Defines the content of the request.
436- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
437- * @throws HttpResponseException thrown if the request is rejected by server.
438- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
439- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
440- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
441- * @return the response body along with {@link Response} on successful completion of {@link Mono}.
442- */
443- @ Generated
444- @ ServiceMethod (returns = ReturnType .SINGLE )
445- public Mono <Response <BinaryData >> lookupDictionaryExamplesWithResponse (String sourceLanguage , String targetLanguage ,
446- BinaryData body , RequestOptions requestOptions ) {
447- return this .serviceClient .lookupDictionaryExamplesWithResponseAsync (sourceLanguage , targetLanguage , body ,
448- requestOptions );
449- }
450-
451258 /**
452259 * Translate Text.
453260 *
@@ -1033,21 +840,6 @@ public Mono<List<DictionaryExampleItem>> lookupDictionaryExamples(String sourceL
1033840 = new TypeReference <List <TransliteratedText >>() {
1034841 };
1035842
1036- @ Generated
1037- private static final TypeReference <List <BreakSentenceItem >> TYPE_REFERENCE_LIST_BREAK_SENTENCE_ITEM
1038- = new TypeReference <List <BreakSentenceItem >>() {
1039- };
1040-
1041- @ Generated
1042- private static final TypeReference <List <DictionaryLookupItem >> TYPE_REFERENCE_LIST_DICTIONARY_LOOKUP_ITEM
1043- = new TypeReference <List <DictionaryLookupItem >>() {
1044- };
1045-
1046- @ Generated
1047- private static final TypeReference <List <DictionaryExampleItem >> TYPE_REFERENCE_LIST_DICTIONARY_EXAMPLE_ITEM
1048- = new TypeReference <List <DictionaryExampleItem >>() {
1049- };
1050-
1051843 @ Generated
1052844 private static final TypeReference <List <TranslatedTextItem >> TYPE_REFERENCE_LIST_TRANSLATED_TEXT_ITEM
1053845 = new TypeReference <List <TranslatedTextItem >>() {
0 commit comments