Skip to content

Commit 5feb330

Browse files
feat: Automated regeneration of Language client (googleapis#12283)
Auto-created at 2024-10-05 13:16:27 +0000 using the toys pull request generator.
1 parent b690b79 commit 5feb330

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

clients/language/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_language, "~> 0.15"}]
14+
[{:google_api_language, "~> 0.16"}]
1515
end
1616
```
1717

clients/language/lib/google_api/language/v1/metadata.ex

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

23-
@discovery_revision "20240310"
23+
@discovery_revision "20240929"
2424

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

clients/language/lib/google_api/language/v2/metadata.ex

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

23-
@discovery_revision "20240713"
23+
@discovery_revision "20240929"
2424

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

clients/language/lib/google_api/language/v2/model/classification_category.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,20 @@ defmodule GoogleApi.Language.V2.Model.ClassificationCategory do
2323
2424
* `confidence` (*type:* `number()`, *default:* `nil`) - The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text.
2525
* `name` (*type:* `String.t`, *default:* `nil`) - The name of the category representing the document.
26+
* `severity` (*type:* `number()`, *default:* `nil`) - Optional. The classifier's severity of the category. This is only present when the ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, and the corresponding category has a severity score.
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
2930

3031
@type t :: %__MODULE__{
3132
:confidence => number() | nil,
32-
:name => String.t() | nil
33+
:name => String.t() | nil,
34+
:severity => number() | nil
3335
}
3436

3537
field(:confidence)
3638
field(:name)
39+
field(:severity)
3740
end
3841

3942
defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.ClassificationCategory do

clients/language/lib/google_api/language/v2/model/moderate_text_request.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,18 @@ defmodule GoogleApi.Language.V2.Model.ModerateTextRequest do
2222
## Attributes
2323
2424
* `document` (*type:* `GoogleApi.Language.V2.Model.Document.t`, *default:* `nil`) - Required. Input document.
25+
* `modelVersion` (*type:* `String.t`, *default:* `nil`) - Optional. The model version to use for ModerateText.
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
30-
:document => GoogleApi.Language.V2.Model.Document.t() | nil
31+
:document => GoogleApi.Language.V2.Model.Document.t() | nil,
32+
:modelVersion => String.t() | nil
3133
}
3234

3335
field(:document, as: GoogleApi.Language.V2.Model.Document)
36+
field(:modelVersion)
3437
end
3538

3639
defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.ModerateTextRequest do

clients/language/mix.exs

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

21-
@version "0.15.0"
21+
@version "0.16.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)