@@ -120,7 +120,6 @@ public final class TextTranslationAsyncClient {
120120 * {@code
121121 * [
122122 * (Required){
123- * text: String (Required)
124123 * }
125124 * ]
126125 * }
@@ -144,17 +143,6 @@ public final class TextTranslationAsyncClient {
144143 * text: String (Required)
145144 * script: String (Required)
146145 * }
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- * }
158146 * }
159147 * ]
160148 * sourceText (Optional): {
@@ -245,209 +233,6 @@ public Mono<Response<BinaryData>> transliterateWithResponse(String language, Str
245233 body , requestOptions );
246234 }
247235
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-
451236 /**
452237 * Translate Text.
453238 *
@@ -1033,21 +818,6 @@ public Mono<List<DictionaryExampleItem>> lookupDictionaryExamples(String sourceL
1033818 = new TypeReference <List <TransliteratedText >>() {
1034819 };
1035820
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-
1051821 @ Generated
1052822 private static final TypeReference <List <TranslatedTextItem >> TYPE_REFERENCE_LIST_TRANSLATED_TEXT_ITEM
1053823 = new TypeReference <List <TranslatedTextItem >>() {
0 commit comments