diff --git a/clients/translate/README.md b/clients/translate/README.md index f1221c0d87..369b7d03bb 100644 --- a/clients/translate/README.md +++ b/clients/translate/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_translate, "~> 0.21"}] + [{:google_api_translate, "~> 0.22"}] end ``` diff --git a/clients/translate/lib/google_api/translate/v3/api/projects.ex b/clients/translate/lib/google_api/translate/v3/api/projects.ex index 174074de02..17963355bd 100644 --- a/clients/translate/lib/google_api/translate/v3/api/projects.ex +++ b/clients/translate/lib/google_api/translate/v3/api/projects.ex @@ -3237,7 +3237,7 @@ defmodule GoogleApi.Translate.V3.Api.Projects do end @doc """ - 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`. + 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`. ## Parameters diff --git a/clients/translate/lib/google_api/translate/v3/metadata.ex b/clients/translate/lib/google_api/translate/v3/metadata.ex index b1f4c03a68..28dbcbe15e 100644 --- a/clients/translate/lib/google_api/translate/v3/metadata.ex +++ b/clients/translate/lib/google_api/translate/v3/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Translate.V3 do API client metadata for GoogleApi.Translate.V3. """ - @discovery_revision "20240821" + @discovery_revision "20241218" def discovery_revision(), do: @discovery_revision end diff --git a/clients/translate/lib/google_api/translate/v3/model/glossary_config.ex b/clients/translate/lib/google_api/translate/v3/model/glossary_config.ex index 2847af4fc7..f314b501cc 100644 --- a/clients/translate/lib/google_api/translate/v3/model/glossary_config.ex +++ b/clients/translate/lib/google_api/translate/v3/model/glossary_config.ex @@ -21,6 +21,7 @@ defmodule GoogleApi.Translate.V3.Model.GlossaryConfig do ## Attributes + * `contextualTranslationEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. If set to true, the glossary will be used for contextual translation. * `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}` * `ignoreCase` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates match is case insensitive. The default value is `false` if missing. """ @@ -28,10 +29,12 @@ defmodule GoogleApi.Translate.V3.Model.GlossaryConfig do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :contextualTranslationEnabled => boolean() | nil, :glossary => String.t() | nil, :ignoreCase => boolean() | nil } + field(:contextualTranslationEnabled) field(:glossary) field(:ignoreCase) end diff --git a/clients/translate/lib/google_api/translate/v3/model/translate_text_glossary_config.ex b/clients/translate/lib/google_api/translate/v3/model/translate_text_glossary_config.ex index c1469899e6..7ff6a00fbf 100644 --- a/clients/translate/lib/google_api/translate/v3/model/translate_text_glossary_config.ex +++ b/clients/translate/lib/google_api/translate/v3/model/translate_text_glossary_config.ex @@ -21,6 +21,7 @@ defmodule GoogleApi.Translate.V3.Model.TranslateTextGlossaryConfig do ## Attributes + * `contextualTranslationEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. If set to true, the glossary will be used for contextual translation. * `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}` * `ignoreCase` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates match is case insensitive. The default value is `false` if missing. """ @@ -28,10 +29,12 @@ defmodule GoogleApi.Translate.V3.Model.TranslateTextGlossaryConfig do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :contextualTranslationEnabled => boolean() | nil, :glossary => String.t() | nil, :ignoreCase => boolean() | nil } + field(:contextualTranslationEnabled) field(:glossary) field(:ignoreCase) end diff --git a/clients/translate/mix.exs b/clients/translate/mix.exs index edeb8ab4cf..535a27082b 100644 --- a/clients/translate/mix.exs +++ b/clients/translate/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.Translate.Mixfile do use Mix.Project - @version "0.21.0" + @version "0.22.0" def project() do [