@@ -239,14 +239,13 @@ message TranslateTextRequest {
239
239
//
240
240
// - General (built-in) models:
241
241
// `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,
242
- // `projects/{project-number-or-id}/locations/{location-id}/models/general/base`
243
242
//
244
243
//
245
244
// For global (non-regionalized) requests, use `location-id` `global`.
246
245
// For example,
247
246
// `projects/{project-number-or-id}/locations/global/models/general/nmt`.
248
247
//
249
- // If missing , the system decides which google base model to use.
248
+ // If not provided , the default Google model (NMT) will be used
250
249
string model = 6 [(google.api.field_behavior ) = OPTIONAL ];
251
250
252
251
// Optional. Glossary to be applied. The glossary must be
@@ -283,6 +282,8 @@ message TranslateTextResponse {
283
282
// A single translation response.
284
283
message Translation {
285
284
// Text translated into the target language.
285
+ // If an error occurs during translation, this field might be excluded from
286
+ // the response.
286
287
string translated_text = 1 ;
287
288
288
289
// Only present when `model` is present in the request.
@@ -316,7 +317,7 @@ message DetectLanguageRequest {
316
317
// For global calls, use `projects/{project-number-or-id}/locations/global` or
317
318
// `projects/{project-number-or-id}`.
318
319
//
319
- // Only models within the same region, which have the same location-id, can be used.
320
+ // Only models within the same region (has same location-id) can be used.
320
321
// Otherwise an INVALID_ARGUMENT (400) error is returned.
321
322
string parent = 5 [
322
323
(google.api.field_behavior ) = REQUIRED ,
@@ -410,11 +411,10 @@ message GetSupportedLanguagesRequest {
410
411
//
411
412
// - General (built-in) models:
412
413
// `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,
413
- // `projects/{project-number-or-id}/locations/{location-id}/models/general/base`
414
414
//
415
415
//
416
416
// Returns languages supported by the specified model.
417
- // If missing, we get supported languages of Google general base (PBMT) model.
417
+ // If missing, we get supported languages of Google general NMT model.
418
418
string model = 2 [(google.api.field_behavior ) = OPTIONAL ];
419
419
}
420
420
@@ -523,13 +523,13 @@ message OutputConfig {
523
523
// content to output.
524
524
//
525
525
// Once a row is present in index.csv, the input/output matching never
526
- // changes. Callers should also expect the contents in the input_file are
526
+ // changes. Callers should also expect all the content in input_file are
527
527
// processed and ready to be consumed (that is, no partial output file is
528
528
// written).
529
529
//
530
- // Since index.csv will be updated during the process, please make
530
+ // Since index.csv will be keeping updated during the process, please make
531
531
// sure there is no custom retention policy applied on the output bucket
532
- // that may prevent file updating.
532
+ // that may avoid file updating.
533
533
// (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
534
534
//
535
535
// The format of translations_file (for target language code 'trg') is:
@@ -674,8 +674,7 @@ message TranslateDocumentRequest {
674
674
//
675
675
// Format: `projects/{project-number-or-id}/locations/{location-id}`.
676
676
//
677
- // For global calls, use `projects/{project-number-or-id}/locations/global` or
678
- // `projects/{project-number-or-id}`.
677
+ // For global calls, use `projects/{project-number-or-id}/locations/global`.
679
678
//
680
679
// Non-global location is required for requests using AutoML models or custom
681
680
// glossaries.
@@ -717,7 +716,6 @@ message TranslateDocumentRequest {
717
716
//
718
717
// - General (built-in) models:
719
718
// `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,
720
- // `projects/{project-number-or-id}/locations/{location-id}/models/general/base`
721
719
//
722
720
//
723
721
// If not provided, the default Google model (NMT) will be used for
@@ -810,7 +808,7 @@ message BatchTranslateTextRequest {
810
808
[(google.api.field_behavior ) = REQUIRED ];
811
809
812
810
// Optional. The models to use for translation. Map's key is target language
813
- // code. Map's value is the model name. Value can be a built-in general model,
811
+ // code. Map's value is model name. Value can be a built-in general model,
814
812
// or an AutoML Translation model.
815
813
//
816
814
// The value format depends on model type:
@@ -820,7 +818,6 @@ message BatchTranslateTextRequest {
820
818
//
821
819
// - General (built-in) models:
822
820
// `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,
823
- // `projects/{project-number-or-id}/locations/{location-id}/models/general/base`
824
821
//
825
822
//
826
823
// If the map is empty or a specific model is
@@ -1194,7 +1191,12 @@ message BatchTranslateDocumentRequest {
1194
1191
// Only AutoML Translation models or glossaries within the same region (have
1195
1192
// the same location-id) can be used, otherwise an INVALID_ARGUMENT (400)
1196
1193
// error is returned.
1197
- string parent = 1 [(google.api.field_behavior ) = REQUIRED ];
1194
+ string parent = 1 [
1195
+ (google.api.field_behavior ) = REQUIRED ,
1196
+ (google.api.resource_reference ) = {
1197
+ type : "locations.googleapis.com/Location"
1198
+ }
1199
+ ];
1198
1200
1199
1201
// Required. The BCP-47 language code of the input document if known, for
1200
1202
// example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1230,7 +1232,6 @@ message BatchTranslateDocumentRequest {
1230
1232
//
1231
1233
// - General (built-in) models:
1232
1234
// `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,
1233
- // `projects/{project-number-or-id}/locations/{location-id}/models/general/base`
1234
1235
//
1235
1236
//
1236
1237
// If the map is empty or a specific model is not requested for a language
@@ -1261,10 +1262,10 @@ message BatchDocumentInputConfig {
1261
1262
// - `xlsx`,
1262
1263
// application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
1263
1264
//
1264
- // The max file size supported for `.docx`, `.pptx` and `.xlsx` is 100MB.
1265
- // The max file size supported for `.pdf` is 1GB and the max page limit is
1265
+ // The max file size to support for `.docx`, `.pptx` and `.xlsx` is 100MB.
1266
+ // The max file size to support for `.pdf` is 1GB and the max page limit is
1266
1267
// 1000 pages.
1267
- // The max file size supported for all input documents is 1GB.
1268
+ // The max file size to support for all input documents is 1GB.
1268
1269
GcsSource gcs_source = 1 ;
1269
1270
}
1270
1271
}
@@ -1328,16 +1329,16 @@ message BatchDocumentOutputConfig {
1328
1329
// field returned by BatchTranslateDocument if at least one document is
1329
1330
// translated successfully.
1330
1331
message BatchTranslateDocumentResponse {
1331
- // Total number of pages to translate in all documents. Documents without a
1332
+ // Total number of pages to translate in all documents. Documents without
1332
1333
// clear page definition (such as XLSX) are not counted.
1333
1334
int64 total_pages = 1 ;
1334
1335
1335
1336
// Number of successfully translated pages in all documents. Documents without
1336
- // a clear page definition (such as XLSX) are not counted.
1337
+ // clear page definition (such as XLSX) are not counted.
1337
1338
int64 translated_pages = 2 ;
1338
1339
1339
1340
// Number of pages that failed to process in all documents. Documents without
1340
- // a clear page definition (such as XLSX) are not counted.
1341
+ // clear page definition (such as XLSX) are not counted.
1341
1342
int64 failed_pages = 3 ;
1342
1343
1343
1344
// Number of billable pages in documents with clear page definition (such as
0 commit comments