Skip to content

Commit d0f4f2d

Browse files
feat: Automated regeneration of Translate client (googleapis#12747)
Auto-created at 2024-12-20 13:12:13 +0000 using the toys pull request generator.
1 parent 485385a commit d0f4f2d

File tree

6 files changed

+10
-4
lines changed

6 files changed

+10
-4
lines changed

clients/translate/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_translate, "~> 0.21"}]
14+
[{:google_api_translate, "~> 0.22"}]
1515
end
1616
```
1717

clients/translate/lib/google_api/translate/v3/api/projects.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3237,7 +3237,7 @@ defmodule GoogleApi.Translate.V3.Api.Projects do
32373237
end
32383238

32393239
@doc """
3240-
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`.
3240+
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`.
32413241
32423242
## Parameters
32433243

clients/translate/lib/google_api/translate/v3/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Translate.V3 do
2020
API client metadata for GoogleApi.Translate.V3.
2121
"""
2222

23-
@discovery_revision "20240821"
23+
@discovery_revision "20241218"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/translate/lib/google_api/translate/v3/model/glossary_config.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,20 @@ defmodule GoogleApi.Translate.V3.Model.GlossaryConfig do
2121
2222
## Attributes
2323
24+
* `contextualTranslationEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. If set to true, the glossary will be used for contextual translation.
2425
* `glossary` (*type:* `String.t`, *default:* `nil`) - 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}`
2526
* `ignoreCase` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates match is case insensitive. The default value is `false` if missing.
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
2930

3031
@type t :: %__MODULE__{
32+
:contextualTranslationEnabled => boolean() | nil,
3133
:glossary => String.t() | nil,
3234
:ignoreCase => boolean() | nil
3335
}
3436

37+
field(:contextualTranslationEnabled)
3538
field(:glossary)
3639
field(:ignoreCase)
3740
end

clients/translate/lib/google_api/translate/v3/model/translate_text_glossary_config.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,20 @@ defmodule GoogleApi.Translate.V3.Model.TranslateTextGlossaryConfig do
2121
2222
## Attributes
2323
24+
* `contextualTranslationEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. If set to true, the glossary will be used for contextual translation.
2425
* `glossary` (*type:* `String.t`, *default:* `nil`) - 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}`
2526
* `ignoreCase` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates match is case insensitive. The default value is `false` if missing.
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
2930

3031
@type t :: %__MODULE__{
32+
:contextualTranslationEnabled => boolean() | nil,
3133
:glossary => String.t() | nil,
3234
:ignoreCase => boolean() | nil
3335
}
3436

37+
field(:contextualTranslationEnabled)
3538
field(:glossary)
3639
field(:ignoreCase)
3740
end

clients/translate/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.Translate.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.21.0"
21+
@version "0.22.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)