@@ -504,7 +504,9 @@ export class TranslationServiceClient {
504
504
* {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods| documentation}
505
505
* for more details and examples.
506
506
* @example
507
+ * ```
507
508
* const [response] = await client.translateText(request);
509
+ * ```
508
510
*/
509
511
translateText (
510
512
request ?: protos . google . cloud . translation . v3 . ITranslateTextRequest ,
@@ -630,7 +632,9 @@ export class TranslationServiceClient {
630
632
* {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods| documentation}
631
633
* for more details and examples.
632
634
* @example
635
+ * ```
633
636
* const [response] = await client.detectLanguage(request);
637
+ * ```
634
638
*/
635
639
detectLanguage (
636
640
request ?: protos . google . cloud . translation . v3 . IDetectLanguageRequest ,
@@ -754,7 +758,9 @@ export class TranslationServiceClient {
754
758
* {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods| documentation}
755
759
* for more details and examples.
756
760
* @example
761
+ * ```
757
762
* const [response] = await client.getSupportedLanguages(request);
763
+ * ```
758
764
*/
759
765
getSupportedLanguages (
760
766
request ?: protos . google . cloud . translation . v3 . IGetSupportedLanguagesRequest ,
@@ -905,7 +911,9 @@ export class TranslationServiceClient {
905
911
* {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods| documentation}
906
912
* for more details and examples.
907
913
* @example
914
+ * ```
908
915
* const [response] = await client.translateDocument(request);
916
+ * ```
909
917
*/
910
918
translateDocument (
911
919
request ?: protos . google . cloud . translation . v3 . ITranslateDocumentRequest ,
@@ -993,7 +1001,9 @@ export class TranslationServiceClient {
993
1001
* {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods| documentation}
994
1002
* for more details and examples.
995
1003
* @example
1004
+ * ```
996
1005
* const [response] = await client.getGlossary(request);
1006
+ * ```
997
1007
*/
998
1008
getGlossary (
999
1009
request ?: protos . google . cloud . translation . v3 . IGetGlossaryRequest ,
@@ -1146,8 +1156,10 @@ export class TranslationServiceClient {
1146
1156
* {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations| documentation}
1147
1157
* for more details and examples.
1148
1158
* @example
1159
+ * ```
1149
1160
* const [operation] = await client.batchTranslateText(request);
1150
1161
* const [response] = await operation.promise();
1162
+ * ```
1151
1163
*/
1152
1164
batchTranslateText (
1153
1165
request ?: protos . google . cloud . translation . v3 . IBatchTranslateTextRequest ,
@@ -1207,10 +1219,12 @@ export class TranslationServiceClient {
1207
1219
* {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations| documentation}
1208
1220
* for more details and examples.
1209
1221
* @example
1222
+ * ```
1210
1223
* const decodedOperation = await checkBatchTranslateTextProgress(name);
1211
1224
* console.log(decodedOperation.result);
1212
1225
* console.log(decodedOperation.done);
1213
1226
* console.log(decodedOperation.metadata);
1227
+ * ```
1214
1228
*/
1215
1229
async checkBatchTranslateTextProgress (
1216
1230
name : string
@@ -1346,8 +1360,10 @@ export class TranslationServiceClient {
1346
1360
* {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations| documentation}
1347
1361
* for more details and examples.
1348
1362
* @example
1363
+ * ```
1349
1364
* const [operation] = await client.batchTranslateDocument(request);
1350
1365
* const [response] = await operation.promise();
1366
+ * ```
1351
1367
*/
1352
1368
batchTranslateDocument (
1353
1369
request ?: protos . google . cloud . translation . v3 . IBatchTranslateDocumentRequest ,
@@ -1411,10 +1427,12 @@ export class TranslationServiceClient {
1411
1427
* {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations| documentation}
1412
1428
* for more details and examples.
1413
1429
* @example
1430
+ * ```
1414
1431
* const decodedOperation = await checkBatchTranslateDocumentProgress(name);
1415
1432
* console.log(decodedOperation.result);
1416
1433
* console.log(decodedOperation.done);
1417
1434
* console.log(decodedOperation.metadata);
1435
+ * ```
1418
1436
*/
1419
1437
async checkBatchTranslateDocumentProgress (
1420
1438
name : string
@@ -1494,8 +1512,10 @@ export class TranslationServiceClient {
1494
1512
* {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations| documentation}
1495
1513
* for more details and examples.
1496
1514
* @example
1515
+ * ```
1497
1516
* const [operation] = await client.createGlossary(request);
1498
1517
* const [response] = await operation.promise();
1518
+ * ```
1499
1519
*/
1500
1520
createGlossary (
1501
1521
request ?: protos . google . cloud . translation . v3 . ICreateGlossaryRequest ,
@@ -1555,10 +1575,12 @@ export class TranslationServiceClient {
1555
1575
* {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations| documentation}
1556
1576
* for more details and examples.
1557
1577
* @example
1578
+ * ```
1558
1579
* const decodedOperation = await checkCreateGlossaryProgress(name);
1559
1580
* console.log(decodedOperation.result);
1560
1581
* console.log(decodedOperation.done);
1561
1582
* console.log(decodedOperation.metadata);
1583
+ * ```
1562
1584
*/
1563
1585
async checkCreateGlossaryProgress (
1564
1586
name : string
@@ -1637,8 +1659,10 @@ export class TranslationServiceClient {
1637
1659
* {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations| documentation}
1638
1660
* for more details and examples.
1639
1661
* @example
1662
+ * ```
1640
1663
* const [operation] = await client.deleteGlossary(request);
1641
1664
* const [response] = await operation.promise();
1665
+ * ```
1642
1666
*/
1643
1667
deleteGlossary (
1644
1668
request ?: protos . google . cloud . translation . v3 . IDeleteGlossaryRequest ,
@@ -1698,10 +1722,12 @@ export class TranslationServiceClient {
1698
1722
* {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations| documentation}
1699
1723
* for more details and examples.
1700
1724
* @example
1725
+ * ```
1701
1726
* const decodedOperation = await checkDeleteGlossaryProgress(name);
1702
1727
* console.log(decodedOperation.result);
1703
1728
* console.log(decodedOperation.done);
1704
1729
* console.log(decodedOperation.metadata);
1730
+ * ```
1705
1731
*/
1706
1732
async checkDeleteGlossaryProgress (
1707
1733
name : string
@@ -1955,10 +1981,12 @@ export class TranslationServiceClient {
1955
1981
* {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination| documentation}
1956
1982
* for more details and examples.
1957
1983
* @example
1984
+ * ```
1958
1985
* const iterable = client.listGlossariesAsync(request);
1959
1986
* for await (const response of iterable) {
1960
1987
* // process response
1961
1988
* }
1989
+ * ```
1962
1990
*/
1963
1991
listGlossariesAsync (
1964
1992
request ?: protos . google . cloud . translation . v3 . IListGlossariesRequest ,
0 commit comments