Skip to content

Commit 3a70438

Browse files
yoshi-automationsofisl
authored andcommitted
feat(translate): update the API
#### translate:v3beta1 The following keys were added: - schemas.BatchTranslateDocumentRequest.properties.enableShadowRemovalNativePdf.description - schemas.BatchTranslateDocumentRequest.properties.enableShadowRemovalNativePdf.type The following keys were changed: - resources.projects.resources.locations.resources.operations.methods.list.description #### translate:v3 The following keys were added: - schemas.BatchTranslateDocumentRequest.properties.enableShadowRemovalNativePdf.description - schemas.BatchTranslateDocumentRequest.properties.enableShadowRemovalNativePdf.type The following keys were changed: - resources.projects.resources.locations.resources.operations.methods.list.description
1 parent 719e8a0 commit 3a70438

File tree

4 files changed

+24
-6
lines changed

4 files changed

+24
-6
lines changed

discovery/translate-v3.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@
12091209
]
12101210
},
12111211
"list": {
1212-
"description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.",
1212+
"description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.",
12131213
"flatPath": "v3/projects/{projectsId}/locations/{locationsId}/operations",
12141214
"httpMethod": "GET",
12151215
"id": "translate.projects.locations.operations.list",
@@ -1286,7 +1286,7 @@
12861286
}
12871287
}
12881288
},
1289-
"revision": "20230224",
1289+
"revision": "20230310",
12901290
"rootUrl": "https://translation.googleapis.com/",
12911291
"schemas": {
12921292
"BatchDocumentInputConfig": {
@@ -1319,6 +1319,10 @@
13191319
"description": "Optional. This flag is to support user customized attribution. If not provided, the default is `Machine Translated by Google`. Customized attribution should follow rules in https://cloud.google.com/translate/attribution#attribution_and_logos",
13201320
"type": "string"
13211321
},
1322+
"enableShadowRemovalNativePdf": {
1323+
"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",
1324+
"type": "boolean"
1325+
},
13221326
"formatConversions": {
13231327
"additionalProperties": {
13241328
"type": "string"

discovery/translate-v3beta1.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@
667667
]
668668
},
669669
"list": {
670-
"description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.",
670+
"description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.",
671671
"flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/operations",
672672
"httpMethod": "GET",
673673
"id": "translate.projects.locations.operations.list",
@@ -744,7 +744,7 @@
744744
}
745745
}
746746
},
747-
"revision": "20230210",
747+
"revision": "20230310",
748748
"rootUrl": "https://translation.googleapis.com/",
749749
"schemas": {
750750
"BatchDocumentInputConfig": {
@@ -777,6 +777,10 @@
777777
"description": "Optional. This flag is to support user customized attribution. If not provided, the default is `Machine Translated by Google`. Customized attribution should follow rules in https://cloud.google.com/translate/attribution#attribution_and_logos",
778778
"type": "string"
779779
},
780+
"enableShadowRemovalNativePdf": {
781+
"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",
782+
"type": "boolean"
783+
},
780784
"formatConversions": {
781785
"additionalProperties": {
782786
"type": "string"

src/apis/translate/v3.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ export namespace translate_v3 {
150150
* Optional. This flag is to support user customized attribution. If not provided, the default is `Machine Translated by Google`. Customized attribution should follow rules in https://cloud.google.com/translate/attribution#attribution_and_logos
151151
*/
152152
customizedAttribution?: string | null;
153+
/**
154+
* 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
155+
*/
156+
enableShadowRemovalNativePdf?: boolean | null;
153157
/**
154158
* Optional.
155159
*/
@@ -1544,6 +1548,7 @@ export namespace translate_v3 {
15441548
* // request body parameters
15451549
* // {
15461550
* // "customizedAttribution": "my_customizedAttribution",
1551+
* // "enableShadowRemovalNativePdf": false,
15471552
* // "formatConversions": {},
15481553
* // "glossaries": {},
15491554
* // "inputConfigs": [],
@@ -6463,7 +6468,7 @@ export namespace translate_v3 {
64636468
}
64646469

64656470
/**
6466-
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/x/operations`. To override the binding, API services can add a binding such as `"/v1/{name=users/x\}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
6471+
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
64676472
* @example
64686473
* ```js
64696474
* // Before running the sample:

src/apis/translate/v3beta1.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ export namespace translate_v3beta1 {
150150
* Optional. This flag is to support user customized attribution. If not provided, the default is `Machine Translated by Google`. Customized attribution should follow rules in https://cloud.google.com/translate/attribution#attribution_and_logos
151151
*/
152152
customizedAttribution?: string | null;
153+
/**
154+
* 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
155+
*/
156+
enableShadowRemovalNativePdf?: boolean | null;
153157
/**
154158
* Optional.
155159
*/
@@ -1246,6 +1250,7 @@ export namespace translate_v3beta1 {
12461250
* // request body parameters
12471251
* // {
12481252
* // "customizedAttribution": "my_customizedAttribution",
1253+
* // "enableShadowRemovalNativePdf": false,
12491254
* // "formatConversions": {},
12501255
* // "glossaries": {},
12511256
* // "inputConfigs": [],
@@ -3507,7 +3512,7 @@ export namespace translate_v3beta1 {
35073512
}
35083513

35093514
/**
3510-
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/x/operations`. To override the binding, API services can add a binding such as `"/v1/{name=users/x\}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
3515+
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
35113516
* @example
35123517
* ```js
35133518
* // Before running the sample:

0 commit comments

Comments
 (0)