@@ -106,7 +106,7 @@ service TranslationService {
106106 };
107107 }
108108
109- // Translates a large volume of documents in asynchronous batch mode.
109+ // Translates a large volume of document in asynchronous batch mode.
110110 // This function provides real-time output as the inputs are being processed.
111111 // If caller cancels a request, the partial results (for an input file, it's
112112 // all or nothing) may still be available on the specified output location.
@@ -532,7 +532,7 @@ message OutputConfig {
532532 // Since index.csv will be keeping updated during the process, please make
533533 // sure there is no custom retention policy applied on the output bucket
534534 // that may avoid file updating.
535- // (https://cloud.google.com/storage/docs/bucket-lock?hl=en #retention-policy)
535+ // (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
536536 //
537537 // The format of translations_file (for target language code 'trg') is:
538538 // `gs://translation_test/a_b_c_'trg'_translations.[extension]`
@@ -740,6 +740,28 @@ message TranslateDocumentRequest {
740740 // See https://cloud.google.com/translate/docs/advanced/labels for more
741741 // information.
742742 map <string , string > labels = 8 [(google.api.field_behavior ) = OPTIONAL ];
743+
744+ // Optional. This flag is to support user customized attribution.
745+ // If not provided, the default is `Machine Translated by Google`.
746+ // Customized attribution should follow rules in
747+ // https://cloud.google.com/translate/attribution#attribution_and_logos
748+ string customized_attribution = 10 [(google.api.field_behavior ) = OPTIONAL ];
749+
750+ // Optional. is_translate_native_pdf_only field for external customers.
751+ // If true, the page limit of online native pdf translation is 300 and only
752+ // native pdf pages will be translated.
753+ bool is_translate_native_pdf_only = 11
754+ [(google.api.field_behavior ) = OPTIONAL ];
755+
756+ // Optional. If true, use the text removal server to remove the shadow text on
757+ // background image for native pdf translation.
758+ // Shadow removal feature can only be enabled when
759+ // is_translate_native_pdf_only: false && pdf_native_only: false
760+ bool enable_shadow_removal_native_pdf = 12
761+ [(google.api.field_behavior ) = OPTIONAL ];
762+
763+ // Optional. If true, enable auto rotation correction in DVS.
764+ bool enable_rotation_correction = 13 [(google.api.field_behavior ) = OPTIONAL ];
743765}
744766
745767// A translated document message.
@@ -946,9 +968,8 @@ message GlossaryInputConfig {
946968 // For equivalent term sets glossaries:
947969 //
948970 // - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
949- // in multiple languages. The format is defined for Google Translation
950- // Toolkit and documented in [Use a
951- // glossary](https://support.google.com/translatortoolkit/answer/6306379?hl=en).
971+ // in multiple languages. See documentation for more information -
972+ // [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
952973 GcsSource gcs_source = 1 ;
953974 }
954975}
@@ -1256,6 +1277,22 @@ message BatchTranslateDocumentRequest {
12561277 // original file.
12571278 map <string , string > format_conversions = 8
12581279 [(google.api.field_behavior ) = OPTIONAL ];
1280+
1281+ // Optional. This flag is to support user customized attribution.
1282+ // If not provided, the default is `Machine Translated by Google`.
1283+ // Customized attribution should follow rules in
1284+ // https://cloud.google.com/translate/attribution#attribution_and_logos
1285+ string customized_attribution = 10 [(google.api.field_behavior ) = OPTIONAL ];
1286+
1287+ // Optional. If true, use the text removal server to remove the shadow text on
1288+ // background image for native pdf translation.
1289+ // Shadow removal feature can only be enabled when
1290+ // is_translate_native_pdf_only: false && pdf_native_only: false
1291+ bool enable_shadow_removal_native_pdf = 11
1292+ [(google.api.field_behavior ) = OPTIONAL ];
1293+
1294+ // Optional. If true, enable auto rotation correction in DVS.
1295+ bool enable_rotation_correction = 12 [(google.api.field_behavior ) = OPTIONAL ];
12591296}
12601297
12611298// Input configuration for BatchTranslateDocument request.
0 commit comments