Skip to content

Commit

Permalink
feat: Generate Google.Apis.Translate.v3 version 1.68.0.3639
Browse files Browse the repository at this point in the history
  • Loading branch information
amanda-tarafa committed Dec 23, 2024
1 parent e51a23d commit af2dd68
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
12 changes: 10 additions & 2 deletions DiscoveryJson/translate.v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -1710,7 +1710,7 @@
}
}
},
"revision": "20241029",
"revision": "20241218",
"rootUrl": "https://translation.googleapis.com/",
"schemas": {
"AdaptiveMtDataset": {
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
12 changes: 10 additions & 2 deletions Src/Generated/Google.Apis.Translate.v3/Google.Apis.Translate.v3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
/// </summary>
/// <param name="body">The body of the request.</param>
/// <param name="name">The name of the operation resource to be cancelled.</param>
Expand All @@ -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`.
/// </summary>
public class CancelRequest : TranslateBaseServiceRequest<Google.Apis.Translate.v3.Data.Empty>
{
Expand Down Expand Up @@ -4867,6 +4867,10 @@ public virtual System.DateTimeOffset? SubmitTimeDateTimeOffset
/// </summary>
public class GlossaryConfig : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>Optional. If set to true, the glossary will be used for contextual translation.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("contextualTranslationEnabled")]
public virtual System.Nullable<bool> ContextualTranslationEnabled { get; set; }

/// <summary>
/// Required. The `glossary` to be applied for this translation. The format depends on the glossary: -
/// User-provided custom glossary:
Expand Down Expand Up @@ -5806,6 +5810,10 @@ public class TranslateDocumentResponse : Google.Apis.Requests.IDirectResponseSch
/// </summary>
public class TranslateTextGlossaryConfig : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>Optional. If set to true, the glossary will be used for contextual translation.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("contextualTranslationEnabled")]
public virtual System.Nullable<bool> ContextualTranslationEnabled { get; set; }

/// <summary>
/// Required. The `glossary` to be applied for this translation. The format depends on the glossary: -
/// User-provided custom glossary:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- nupkg information -->
<PropertyGroup>
<Title>Google.Apis.Translate.v3 Client Library</Title>
<Version>1.68.0.3589</Version>
<Version>1.68.0.3639</Version>
<Authors>Google LLC</Authors>
<Copyright>Copyright 2024 Google LLC</Copyright>
<PackageTags>Google</PackageTags>
Expand Down

0 comments on commit af2dd68

Please sign in to comment.