diff --git a/DiscoveryJson/translate.v3.json b/DiscoveryJson/translate.v3.json
index 1e67bee3e5..c52b9cff78 100644
--- a/DiscoveryJson/translate.v3.json
+++ b/DiscoveryJson/translate.v3.json
@@ -1552,7 +1552,7 @@
"operations": {
"methods": {
"cancel": {
- "description": "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`.",
+ "description": "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`.",
"flatPath": "v3/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
"httpMethod": "POST",
"id": "translate.projects.locations.operations.cancel",
@@ -1710,7 +1710,7 @@
}
}
},
- "revision": "20241029",
+ "revision": "20241218",
"rootUrl": "https://translation.googleapis.com/",
"schemas": {
"AdaptiveMtDataset": {
@@ -2374,6 +2374,10 @@
"description": "Configures which glossary is used for a specific target language and defines options for applying that glossary.",
"id": "GlossaryConfig",
"properties": {
+ "contextualTranslationEnabled": {
+ "description": "Optional. If set to true, the glossary will be used for contextual translation.",
+ "type": "boolean"
+ },
"glossary": {
"description": "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}`",
"type": "string"
@@ -3125,6 +3129,10 @@
"description": "Configures which glossary is used for a specific target language and defines options for applying that glossary.",
"id": "TranslateTextGlossaryConfig",
"properties": {
+ "contextualTranslationEnabled": {
+ "description": "Optional. If set to true, the glossary will be used for contextual translation.",
+ "type": "boolean"
+ },
"glossary": {
"description": "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}`",
"type": "string"
diff --git a/Src/Generated/Google.Apis.Translate.v3/Google.Apis.Translate.v3.cs b/Src/Generated/Google.Apis.Translate.v3/Google.Apis.Translate.v3.cs
index e61c284f21..bb6c3d0120 100644
--- a/Src/Generated/Google.Apis.Translate.v3/Google.Apis.Translate.v3.cs
+++ b/Src/Generated/Google.Apis.Translate.v3/Google.Apis.Translate.v3.cs
@@ -2468,7 +2468,7 @@ public OperationsResource(Google.Apis.Services.IClientService service)
/// 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`.
+ /// Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
///
/// The body of the request.
/// The name of the operation resource to be cancelled.
@@ -2483,7 +2483,7 @@ public virtual CancelRequest Cancel(Google.Apis.Translate.v3.Data.CancelOperatio
/// 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`.
+ /// Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
///
public class CancelRequest : TranslateBaseServiceRequest
{
@@ -4867,6 +4867,10 @@ public virtual System.DateTimeOffset? SubmitTimeDateTimeOffset
///
public class GlossaryConfig : Google.Apis.Requests.IDirectResponseSchema
{
+ /// Optional. If set to true, the glossary will be used for contextual translation.
+ [Newtonsoft.Json.JsonPropertyAttribute("contextualTranslationEnabled")]
+ public virtual System.Nullable ContextualTranslationEnabled { get; set; }
+
///
/// Required. The `glossary` to be applied for this translation. The format depends on the glossary: -
/// User-provided custom glossary:
@@ -5806,6 +5810,10 @@ public class TranslateDocumentResponse : Google.Apis.Requests.IDirectResponseSch
///
public class TranslateTextGlossaryConfig : Google.Apis.Requests.IDirectResponseSchema
{
+ /// Optional. If set to true, the glossary will be used for contextual translation.
+ [Newtonsoft.Json.JsonPropertyAttribute("contextualTranslationEnabled")]
+ public virtual System.Nullable ContextualTranslationEnabled { get; set; }
+
///
/// Required. The `glossary` to be applied for this translation. The format depends on the glossary: -
/// User-provided custom glossary:
diff --git a/Src/Generated/Google.Apis.Translate.v3/Google.Apis.Translate.v3.csproj b/Src/Generated/Google.Apis.Translate.v3/Google.Apis.Translate.v3.csproj
index f36f1923cc..b8c2099b1d 100644
--- a/Src/Generated/Google.Apis.Translate.v3/Google.Apis.Translate.v3.csproj
+++ b/Src/Generated/Google.Apis.Translate.v3/Google.Apis.Translate.v3.csproj
@@ -3,7 +3,7 @@
Google.Apis.Translate.v3 Client Library
- 1.68.0.3589
+ 1.68.0.3639
Google LLC
Copyright 2024 Google LLC
Google