diff --git a/DiscoveryJson/translate.v3beta1.json b/DiscoveryJson/translate.v3beta1.json
index 0c05bdf1a4..c50de44430 100644
--- a/DiscoveryJson/translate.v3beta1.json
+++ b/DiscoveryJson/translate.v3beta1.json
@@ -589,7 +589,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": "v3beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
"httpMethod": "POST",
"id": "translate.projects.locations.operations.cancel",
@@ -747,7 +747,7 @@
}
}
},
- "revision": "20241029",
+ "revision": "20241218",
"rootUrl": "https://translation.googleapis.com/",
"schemas": {
"BatchDocumentInputConfig": {
@@ -1404,9 +1404,13 @@
"type": "object"
},
"TranslateTextGlossaryConfig": {
- "description": "Configures which glossary should be used for a specific target language, and defines options for applying that glossary.",
+ "description": "----------------------------------------------------------------------------- Configures which glossary should be 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. Specifies the glossary used for this translation. Use this format: projects/*/locations/*/glossaries/*",
"type": "string"
diff --git a/Src/Generated/Google.Apis.Translate.v3beta1/Google.Apis.Translate.v3beta1.cs b/Src/Generated/Google.Apis.Translate.v3beta1/Google.Apis.Translate.v3beta1.cs
index 0613bebf91..76e914db1f 100644
--- a/Src/Generated/Google.Apis.Translate.v3beta1/Google.Apis.Translate.v3beta1.cs
+++ b/Src/Generated/Google.Apis.Translate.v3beta1/Google.Apis.Translate.v3beta1.cs
@@ -600,7 +600,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.
@@ -615,7 +615,7 @@ public virtual CancelRequest Cancel(Google.Apis.Translate.v3beta1.Data.CancelOpe
/// 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
{
@@ -2665,11 +2665,15 @@ public class TranslateDocumentResponse : Google.Apis.Requests.IDirectResponseSch
}
///
- /// Configures which glossary should be used for a specific target language, and defines options for applying that
- /// glossary.
+ /// ----------------------------------------------------------------------------- Configures which glossary should
+ /// be used for a specific target language, and defines options for applying that glossary.
///
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. Specifies the glossary used for this translation. Use this format:
/// projects/*/locations/*/glossaries/*
diff --git a/Src/Generated/Google.Apis.Translate.v3beta1/Google.Apis.Translate.v3beta1.csproj b/Src/Generated/Google.Apis.Translate.v3beta1/Google.Apis.Translate.v3beta1.csproj
index 862c0f8a7c..df8bf6fc71 100644
--- a/Src/Generated/Google.Apis.Translate.v3beta1/Google.Apis.Translate.v3beta1.csproj
+++ b/Src/Generated/Google.Apis.Translate.v3beta1/Google.Apis.Translate.v3beta1.csproj
@@ -3,7 +3,7 @@
Google.Apis.Translate.v3beta1 Client Library
- 1.68.0.3589
+ 1.68.0.3639
Google LLC
Copyright 2024 Google LLC
Google