Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.

Commit 1a90646

Browse files
fix: better support for fallback mode (#809)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 468790263 Source-Link: googleapis/googleapis@873ab45 Source-Link: https://github.com/googleapis/googleapis-gen/commit/cb6f37aeff2a3472e40a7bbace8c67d75e24bee5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I2ZjM3YWVmZjJhMzQ3MmU0MGE3YmJhY2U4YzY3ZDc1ZTI0YmVlNSJ9
1 parent 9a7ae85 commit 1a90646

26 files changed

Lines changed: 267 additions & 202 deletions

samples/generated/v3/snippet_metadata.google.cloud.translation.v3.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"segments": [
2323
{
2424
"start": 25,
25-
"end": 115,
25+
"end": 118,
2626
"type": "FULL"
2727
}
2828
],
@@ -90,7 +90,7 @@
9090
"segments": [
9191
{
9292
"start": 25,
93-
"end": 85,
93+
"end": 88,
9494
"type": "FULL"
9595
}
9696
],
@@ -146,7 +146,7 @@
146146
"segments": [
147147
{
148148
"start": 25,
149-
"end": 75,
149+
"end": 78,
150150
"type": "FULL"
151151
}
152152
],
@@ -194,7 +194,7 @@
194194
"segments": [
195195
{
196196
"start": 25,
197-
"end": 112,
197+
"end": 115,
198198
"type": "FULL"
199199
}
200200
],
@@ -262,7 +262,7 @@
262262
"segments": [
263263
{
264264
"start": 25,
265-
"end": 109,
265+
"end": 112,
266266
"type": "FULL"
267267
}
268268
],
@@ -330,7 +330,7 @@
330330
"segments": [
331331
{
332332
"start": 25,
333-
"end": 112,
333+
"end": 115,
334334
"type": "FULL"
335335
}
336336
],
@@ -398,7 +398,7 @@
398398
"segments": [
399399
{
400400
"start": 25,
401-
"end": 56,
401+
"end": 59,
402402
"type": "FULL"
403403
}
404404
],
@@ -442,7 +442,7 @@
442442
"segments": [
443443
{
444444
"start": 25,
445-
"end": 83,
445+
"end": 86,
446446
"type": "FULL"
447447
}
448448
],
@@ -494,7 +494,7 @@
494494
"segments": [
495495
{
496496
"start": 25,
497-
"end": 50,
497+
"end": 53,
498498
"type": "FULL"
499499
}
500500
],
@@ -534,7 +534,7 @@
534534
"segments": [
535535
{
536536
"start": 25,
537-
"end": 51,
537+
"end": 54,
538538
"type": "FULL"
539539
}
540540
],

samples/generated/v3/translation_service.batch_translate_document.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) {
2424
// [START translate_v3_generated_TranslationService_BatchTranslateDocument_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

samples/generated/v3/translation_service.batch_translate_text.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) {
2424
// [START translate_v3_generated_TranslationService_BatchTranslateText_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

samples/generated/v3/translation_service.create_glossary.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent, glossary) {
2424
// [START translate_v3_generated_TranslationService_CreateGlossary_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

samples/generated/v3/translation_service.delete_glossary.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START translate_v3_generated_TranslationService_DeleteGlossary_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

samples/generated/v3/translation_service.detect_language.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent) {
2424
// [START translate_v3_generated_TranslationService_DetectLanguage_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

samples/generated/v3/translation_service.get_glossary.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START translate_v3_generated_TranslationService_GetGlossary_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

samples/generated/v3/translation_service.get_supported_languages.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent) {
2424
// [START translate_v3_generated_TranslationService_GetSupportedLanguages_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

samples/generated/v3/translation_service.list_glossaries.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent) {
2424
// [START translate_v3_generated_TranslationService_ListGlossaries_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

samples/generated/v3/translation_service.translate_document.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent, targetLanguageCode, documentInputConfig) {
2424
// [START translate_v3_generated_TranslationService_TranslateDocument_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

0 commit comments

Comments
 (0)