Skip to content

Commit d9e35f8

Browse files
feat(translate): update the api
#### translate:v3 The following keys were added: - schemas.TranslateDocumentRequest.properties.enableRotationCorrection.type (Total Keys: 1) #### translate:v3beta1 The following keys were added: - schemas.TranslateDocumentRequest.properties.enableRotationCorrection.type (Total Keys: 1)
1 parent f454fd9 commit d9e35f8

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

docs/dyn/translate_v3.projects.locations.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ <h3>Method Details</h3>
435435
},
436436
&quot;mimeType&quot;: &quot;A String&quot;, # Optional. Specifies the translated document&#x27;s mime_type. If not specified, the translated file&#x27;s mime type will be the same as the input file&#x27;s mime type. Currently only support the output mime type to be the same as input mime type. - application/pdf - application/vnd.openxmlformats-officedocument.wordprocessingml.document - application/vnd.openxmlformats-officedocument.presentationml.presentation - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
437437
},
438+
&quot;enableRotationCorrection&quot;: True or False, # Optional. If true, enable auto rotation correction in DVS.
438439
&quot;enableShadowRemovalNativePdf&quot;: True or False, # Optional. If true, use the text removal server to remove the shadow text on background image for native pdf translation. Shadow removal feature can only be enabled when is_translate_native_pdf_only: false &amp;&amp; pdf_native_only: false
439440
&quot;glossaryConfig&quot;: { # Configures which glossary is used for a specific target language and defines options for applying that glossary. # Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned.
440441
&quot;glossary&quot;: &quot;A String&quot;, # Required. The `glossary` to be applied for this translation. The format depends on the glossary: - User-provided custom glossary: `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`

docs/dyn/translate_v3beta1.projects.locations.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ <h3>Method Details</h3>
425425
},
426426
&quot;mimeType&quot;: &quot;A String&quot;, # Optional. Specifies the translated document&#x27;s mime_type. If not specified, the translated file&#x27;s mime type will be the same as the input file&#x27;s mime type. Currently only support the output mime type to be the same as input mime type. - application/pdf - application/vnd.openxmlformats-officedocument.wordprocessingml.document - application/vnd.openxmlformats-officedocument.presentationml.presentation - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
427427
},
428+
&quot;enableRotationCorrection&quot;: True or False, # Optional. If true, enable auto rotation correction in DVS.
428429
&quot;enableShadowRemovalNativePdf&quot;: True or False, # Optional. If true, use the text removal server to remove the shadow text on background image for native pdf translation. Shadow removal feature can only be enabled when is_translate_native_pdf_only: false &amp;&amp; pdf_native_only: false
429430
&quot;glossaryConfig&quot;: { # Configures which glossary should be used for a specific target language, and defines options for applying that glossary. # Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned.
430431
&quot;glossary&quot;: &quot;A String&quot;, # Required. Specifies the glossary used for this translation. Use this format: projects/*/locations/*/glossaries/*

googleapiclient/discovery_cache/documents/translate.v3.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@
12861286
}
12871287
}
12881288
},
1289-
"revision": "20230310",
1289+
"revision": "20230403",
12901290
"rootUrl": "https://translation.googleapis.com/",
12911291
"schemas": {
12921292
"BatchDocumentInputConfig": {
@@ -2253,6 +2253,10 @@
22532253
"$ref": "DocumentOutputConfig",
22542254
"description": "Optional. Output configurations. Defines if the output file should be stored within Cloud Storage as well as the desired output format. If not provided the translated file will only be returned through a byte-stream and its output mime type will be the same as the input file's mime type."
22552255
},
2256+
"enableRotationCorrection": {
2257+
"description": "Optional. If true, enable auto rotation correction in DVS.",
2258+
"type": "boolean"
2259+
},
22562260
"enableShadowRemovalNativePdf": {
22572261
"description": "Optional. If true, use the text removal server to remove the shadow text on background image for native pdf translation. Shadow removal feature can only be enabled when is_translate_native_pdf_only: false && pdf_native_only: false",
22582262
"type": "boolean"

googleapiclient/discovery_cache/documents/translate.v3beta1.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@
744744
}
745745
}
746746
},
747-
"revision": "20230310",
747+
"revision": "20230403",
748748
"rootUrl": "https://translation.googleapis.com/",
749749
"schemas": {
750750
"BatchDocumentInputConfig": {
@@ -1335,6 +1335,10 @@
13351335
"$ref": "DocumentOutputConfig",
13361336
"description": "Optional. Output configurations. Defines if the output file should be stored within Cloud Storage as well as the desired output format. If not provided the translated file will only be returned through a byte-stream and its output mime type will be the same as the input file's mime type."
13371337
},
1338+
"enableRotationCorrection": {
1339+
"description": "Optional. If true, enable auto rotation correction in DVS.",
1340+
"type": "boolean"
1341+
},
13381342
"enableShadowRemovalNativePdf": {
13391343
"description": "Optional. If true, use the text removal server to remove the shadow text on background image for native pdf translation. Shadow removal feature can only be enabled when is_translate_native_pdf_only: false && pdf_native_only: false",
13401344
"type": "boolean"

0 commit comments

Comments
 (0)