Skip to content

Commit

Permalink
feat(language-v2): Support model_version parameter to the moderate_te…
Browse files Browse the repository at this point in the history
…xt RPC

feat(language-v2): Support ClassificationCategory#severity
  • Loading branch information
gcf-owl-bot[bot] authored Aug 1, 2024
1 parent ced725c commit 40a2604
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -440,13 +440,15 @@ def classify_text request, options = nil
# @param options [::Gapic::CallOptions, ::Hash]
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
#
# @overload moderate_text(document: nil)
# @overload moderate_text(document: nil, model_version: nil)
# Pass arguments to `moderate_text` via keyword arguments. Note that at
# least one keyword argument is required. To specify no parameters, or to keep all
# the default parameter values, pass an empty Hash as a request object (see above).
#
# @param document [::Google::Cloud::Language::V2::Document, ::Hash]
# Required. Input document.
# @param model_version [::Google::Cloud::Language::V2::ModerateTextRequest::ModelVersion]
# Optional. The model version to use for ModerateText.
#
# @yield [response, operation] Access the result along with the RPC operation
# @yieldparam response [::Google::Cloud::Language::V2::ModerateTextResponse]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,13 +436,15 @@ def classify_text request, options = nil
# @param options [::Gapic::CallOptions, ::Hash]
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
#
# @overload moderate_text(document: nil)
# @overload moderate_text(document: nil, model_version: nil)
# Pass arguments to `moderate_text` via keyword arguments. Note that at
# least one keyword argument is required. To specify no parameters, or to keep all
# the default parameter values, pass an empty Hash as a request object (see above).
#
# @param document [::Google::Cloud::Language::V2::Document, ::Hash]
# Required. Input document.
# @param model_version [::Google::Cloud::Language::V2::ModerateTextRequest::ModelVersion]
# Optional. The model version to use for ModerateText.
# @yield [result, operation] Access the result along with the TransportOperation object
# @yieldparam result [::Google::Cloud::Language::V2::ModerateTextResponse]
# @yieldparam operation [::Gapic::Rest::TransportOperation]
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 40a2604

Please sign in to comment.