Skip to content

Commit b4ea831

Browse files
feat: added v3beta1 proto for online and batch document translation (#639)
PiperOrigin-RevId: 364358156 Source-Author: Google APIs <noreply@google.com> Source-Date: Mon Mar 22 10:55:28 2021 -0700 Source-Repo: googleapis/googleapis Source-Sha: d6b4fb337caf6eccb606728ef727ac76364a4f14 Source-Link: googleapis/googleapis@d6b4fb3
1 parent 254ba13 commit b4ea831

File tree

9 files changed

+9387
-3105
lines changed

9 files changed

+9387
-3105
lines changed

packages/google-cloud-translate/protos/google/cloud/translate/v3beta1/translation_service.proto

Lines changed: 594 additions & 63 deletions
Large diffs are not rendered by default.

packages/google-cloud-translate/protos/protos.d.ts

Lines changed: 1966 additions & 765 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-translate/protos/protos.js

Lines changed: 5646 additions & 2237 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-translate/protos/protos.json

Lines changed: 378 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-translate/src/v3beta1/gapic_metadata.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
"getSupportedLanguages"
2626
]
2727
},
28+
"TranslateDocument": {
29+
"methods": [
30+
"translateDocument"
31+
]
32+
},
2833
"GetGlossary": {
2934
"methods": [
3035
"getGlossary"
@@ -35,6 +40,11 @@
3540
"batchTranslateText"
3641
]
3742
},
43+
"BatchTranslateDocument": {
44+
"methods": [
45+
"batchTranslateDocument"
46+
]
47+
},
3848
"CreateGlossary": {
3949
"methods": [
4050
"createGlossary"
@@ -72,6 +82,11 @@
7282
"getSupportedLanguages"
7383
]
7484
},
85+
"TranslateDocument": {
86+
"methods": [
87+
"translateDocument"
88+
]
89+
},
7590
"GetGlossary": {
7691
"methods": [
7792
"getGlossary"
@@ -82,6 +97,11 @@
8297
"batchTranslateText"
8398
]
8499
},
100+
"BatchTranslateDocument": {
101+
"methods": [
102+
"batchTranslateDocument"
103+
]
104+
},
85105
"CreateGlossary": {
86106
"methods": [
87107
"createGlossary"

packages/google-cloud-translate/src/v3beta1/translation_service_client.ts

Lines changed: 441 additions & 33 deletions
Large diffs are not rendered by default.

packages/google-cloud-translate/src/v3beta1/translation_service_client_config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,21 @@
3535
"retry_codes_name": "idempotent",
3636
"retry_params_name": "default"
3737
},
38+
"TranslateDocument": {
39+
"timeout_millis": 600000,
40+
"retry_codes_name": "non_idempotent",
41+
"retry_params_name": "default"
42+
},
3843
"BatchTranslateText": {
3944
"timeout_millis": 600000,
4045
"retry_codes_name": "non_idempotent",
4146
"retry_params_name": "default"
4247
},
48+
"BatchTranslateDocument": {
49+
"timeout_millis": 600000,
50+
"retry_codes_name": "non_idempotent",
51+
"retry_params_name": "default"
52+
},
4353
"CreateGlossary": {
4454
"timeout_millis": 600000,
4555
"retry_codes_name": "non_idempotent",

packages/google-cloud-translate/synth.metadata

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/nodejs-translate.git",
7-
"sha": "a23635ac8bcf7ce9586785e387adc7925083f8f2"
7+
"sha": "7c39b15c23e8f84ec682bb431ed2f48b5bb139e5"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "5477122b3e8037a1dc5bc920536158edbd151dc4",
15-
"internalRef": "361273630"
14+
"sha": "d6b4fb337caf6eccb606728ef727ac76364a4f14",
15+
"internalRef": "364358156"
1616
}
1717
},
1818
{

0 commit comments

Comments
 (0)