You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### translate:v3
The following keys were added:
- schemas.GlossaryConfig.properties.contextualTranslationEnabled.type (Total Keys: 1)
- schemas.TranslateTextGlossaryConfig.properties.contextualTranslationEnabled.type (Total Keys: 1)
#### translate:v3beta1
The following keys were added:
- schemas.TranslateTextGlossaryConfig.properties.contextualTranslationEnabled.type (Total Keys: 1)
Copy file name to clipboardExpand all lines: docs/dyn/translate_v3.projects.html
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -212,6 +212,7 @@ <h3>Method Details</h3>
212
212
"A String",
213
213
],
214
214
"glossaryConfig": { # 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.
215
+
"contextualTranslationEnabled": True or False, # Optional. If set to true, the glossary will be used for contextual translation.
215
216
"glossary": "A String", # 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}`
216
217
"ignoreCase": True or False, # Optional. Indicates match is case insensitive. The default value is `false` if missing.
217
218
},
@@ -240,6 +241,7 @@ <h3>Method Details</h3>
240
241
{ # A single translation response.
241
242
"detectedLanguageCode": "A String", # The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.
242
243
"glossaryConfig": { # Configures which glossary is used for a specific target language and defines options for applying that glossary. # The `glossary_config` used for this translation.
244
+
"contextualTranslationEnabled": True or False, # Optional. If set to true, the glossary will be used for contextual translation.
243
245
"glossary": "A String", # 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}`
244
246
"ignoreCase": True or False, # Optional. Indicates match is case insensitive. The default value is `false` if missing.
245
247
},
@@ -251,6 +253,7 @@ <h3>Method Details</h3>
251
253
{ # A single translation response.
252
254
"detectedLanguageCode": "A String", # The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.
253
255
"glossaryConfig": { # Configures which glossary is used for a specific target language and defines options for applying that glossary. # The `glossary_config` used for this translation.
256
+
"contextualTranslationEnabled": True or False, # Optional. If set to true, the glossary will be used for contextual translation.
254
257
"glossary": "A String", # 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}`
255
258
"ignoreCase": True or False, # Optional. Indicates match is case insensitive. The default value is `false` if missing.
Copy file name to clipboardExpand all lines: docs/dyn/translate_v3.projects.locations.html
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -151,6 +151,7 @@ <h3>Method Details</h3>
151
151
],
152
152
"dataset": "A String", # Required. The resource name for the dataset to use for adaptive MT. `projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}`
153
153
"glossaryConfig": { # 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.
154
+
"contextualTranslationEnabled": True or False, # Optional. If set to true, the glossary will be used for contextual translation.
154
155
"glossary": "A String", # 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}`
155
156
"ignoreCase": True or False, # Optional. Indicates match is case insensitive. The default value is `false` if missing.
156
157
},
@@ -211,6 +212,7 @@ <h3>Method Details</h3>
211
212
},
212
213
"glossaries": { # Optional. Glossaries to be applied. It's keyed by target language code.
213
214
"a_key": { # Configures which glossary is used for a specific target language and defines options for applying that glossary.
215
+
"contextualTranslationEnabled": True or False, # Optional. If set to true, the glossary will be used for contextual translation.
214
216
"glossary": "A String", # 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}`
215
217
"ignoreCase": True or False, # Optional. Indicates match is case insensitive. The default value is `false` if missing.
216
218
},
@@ -277,6 +279,7 @@ <h3>Method Details</h3>
277
279
{ # The batch translation request.
278
280
"glossaries": { # Optional. Glossaries to be applied for translation. It's keyed by target language code.
279
281
"a_key": { # Configures which glossary is used for a specific target language and defines options for applying that glossary.
282
+
"contextualTranslationEnabled": True or False, # Optional. If set to true, the glossary will be used for contextual translation.
280
283
"glossary": "A String", # 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}`
281
284
"ignoreCase": True or False, # Optional. Indicates match is case insensitive. The default value is `false` if missing.
282
285
},
@@ -541,6 +544,7 @@ <h3>Method Details</h3>
541
544
"enableRotationCorrection": True or False, # Optional. If true, enable auto rotation correction in DVS.
542
545
"enableShadowRemovalNativePdf": 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 && pdf_native_only: false
543
546
"glossaryConfig": { # 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.
547
+
"contextualTranslationEnabled": True or False, # Optional. If set to true, the glossary will be used for contextual translation.
544
548
"glossary": "A String", # 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}`
545
549
"ignoreCase": True or False, # Optional. Indicates match is case insensitive. The default value is `false` if missing.
546
550
},
@@ -570,6 +574,7 @@ <h3>Method Details</h3>
570
574
"mimeType": "A String", # The translated document's mime type.
571
575
},
572
576
"glossaryConfig": { # Configures which glossary is used for a specific target language and defines options for applying that glossary. # The `glossary_config` used for this translation.
577
+
"contextualTranslationEnabled": True or False, # Optional. If set to true, the glossary will be used for contextual translation.
573
578
"glossary": "A String", # 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}`
574
579
"ignoreCase": True or False, # Optional. Indicates match is case insensitive. The default value is `false` if missing.
575
580
},
@@ -598,6 +603,7 @@ <h3>Method Details</h3>
598
603
"A String",
599
604
],
600
605
"glossaryConfig": { # 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.
606
+
"contextualTranslationEnabled": True or False, # Optional. If set to true, the glossary will be used for contextual translation.
601
607
"glossary": "A String", # 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}`
602
608
"ignoreCase": True or False, # Optional. Indicates match is case insensitive. The default value is `false` if missing.
603
609
},
@@ -626,6 +632,7 @@ <h3>Method Details</h3>
626
632
{ # A single translation response.
627
633
"detectedLanguageCode": "A String", # The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.
628
634
"glossaryConfig": { # Configures which glossary is used for a specific target language and defines options for applying that glossary. # The `glossary_config` used for this translation.
635
+
"contextualTranslationEnabled": True or False, # Optional. If set to true, the glossary will be used for contextual translation.
629
636
"glossary": "A String", # 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}`
630
637
"ignoreCase": True or False, # Optional. Indicates match is case insensitive. The default value is `false` if missing.
631
638
},
@@ -637,6 +644,7 @@ <h3>Method Details</h3>
637
644
{ # A single translation response.
638
645
"detectedLanguageCode": "A String", # The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.
639
646
"glossaryConfig": { # Configures which glossary is used for a specific target language and defines options for applying that glossary. # The `glossary_config` used for this translation.
647
+
"contextualTranslationEnabled": True or False, # Optional. If set to true, the glossary will be used for contextual translation.
640
648
"glossary": "A String", # 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}`
641
649
"ignoreCase": True or False, # Optional. Indicates match is case insensitive. The default value is `false` if missing.
<pclass="firstline">Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.</p>
79
+
<pclass="firstline">Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.</p>
<pre>Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
101
+
<pre>Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
102
102
103
103
Args:
104
104
name: string, The name of the operation resource to be cancelled. (required)
Copy file name to clipboardExpand all lines: docs/dyn/translate_v3beta1.projects.html
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -174,7 +174,8 @@ <h3>Method Details</h3>
174
174
"contents": [ # Required. The content of the input in string format. We recommend the total content be less than 30k codepoints. The max length of this field is 1024. Use BatchTranslateText for larger text.
175
175
"A String",
176
176
],
177
-
"glossaryConfig": { # 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.
177
+
"glossaryConfig": { # ----------------------------------------------------------------------------- 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.
178
+
"contextualTranslationEnabled": True or False, # Optional. If set to true, the glossary will be used for contextual translation.
178
179
"glossary": "A String", # Required. Specifies the glossary used for this translation. Use this format: projects/*/locations/*/glossaries/*
179
180
"ignoreCase": True or False, # Optional. Indicates match is case-insensitive. Default value is false if missing.
180
181
},
@@ -199,7 +200,8 @@ <h3>Method Details</h3>
199
200
"glossaryTranslations": [ # Text translation responses if a glossary is provided in the request. This can be the same as `translations` if no terms apply. This field has the same length as `contents`.
200
201
{ # A single translation response.
201
202
"detectedLanguageCode": "A String", # The BCP-47 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.
202
-
"glossaryConfig": { # Configures which glossary should be used for a specific target language, and defines options for applying that glossary. # The `glossary_config` used for this translation.
203
+
"glossaryConfig": { # ----------------------------------------------------------------------------- Configures which glossary should be used for a specific target language, and defines options for applying that glossary. # The `glossary_config` used for this translation.
204
+
"contextualTranslationEnabled": True or False, # Optional. If set to true, the glossary will be used for contextual translation.
203
205
"glossary": "A String", # Required. Specifies the glossary used for this translation. Use this format: projects/*/locations/*/glossaries/*
204
206
"ignoreCase": True or False, # Optional. Indicates match is case-insensitive. Default value is false if missing.
205
207
},
@@ -210,7 +212,8 @@ <h3>Method Details</h3>
210
212
"translations": [ # Text translation responses with no glossary applied. This field has the same length as `contents`.
211
213
{ # A single translation response.
212
214
"detectedLanguageCode": "A String", # The BCP-47 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.
213
-
"glossaryConfig": { # Configures which glossary should be used for a specific target language, and defines options for applying that glossary. # The `glossary_config` used for this translation.
215
+
"glossaryConfig": { # ----------------------------------------------------------------------------- Configures which glossary should be used for a specific target language, and defines options for applying that glossary. # The `glossary_config` used for this translation.
216
+
"contextualTranslationEnabled": True or False, # Optional. If set to true, the glossary will be used for contextual translation.
214
217
"glossary": "A String", # Required. Specifies the glossary used for this translation. Use this format: projects/*/locations/*/glossaries/*
215
218
"ignoreCase": True or False, # Optional. Indicates match is case-insensitive. Default value is false if missing.
0 commit comments