Skip to content

Commit

Permalink
Autogenerated update (2019-11-26)
Browse files Browse the repository at this point in the history
Update:
- commentanalyzer_v1alpha1
  • Loading branch information
googleapis-publisher committed Nov 26, 2019
1 parent b76d248 commit b961bf3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
2 changes: 1 addition & 1 deletion generated/google/apis/commentanalyzer_v1alpha1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module Apis
# @see https://github.com/conversationai/perspectiveapi/blob/master/README.md
module CommentanalyzerV1alpha1
VERSION = 'V1alpha1'
REVISION = '20190922'
REVISION = '20191124'

# View your email address
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
Expand Down
33 changes: 14 additions & 19 deletions generated/google/apis/commentanalyzer_v1alpha1/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ class AnalyzeCommentRequest
attr_accessor :do_not_store
alias_method :do_not_store?, :do_not_store

# The language(s) of the comment and context (if none are specified, the
# language is automatically detected). If multiple languages are specified,
# the text is checked in all of them that are supported. Both ISO and BCP-47
# language codes are accepted.
# Current Language Restrictions:
# * Only English text ("en") is supported.
# If none of the languages specified by the caller are supported, an
# `UNIMPLEMENTED` error is returned.
# The language(s) of the comment and context. If none are specified, we
# attempt to automatically detect the language. Specifying multiple languages
# means the text contains multiple lanugages. Both ISO and BCP-47 language
# codes are accepted.
# The server returns an error if no language was specified and language
# detection fails. The server also returns an error if the languages (either
# specified by the caller, or auto-detected) are not *all* supported by the
# service.
# Corresponds to the JSON property `languages`
# @return [Array<String>]
attr_accessor :languages
Expand Down Expand Up @@ -146,10 +146,10 @@ class AnalyzeCommentResponse
# The language(s) used by CommentAnalyzer service to choose which Model to
# use when analyzing the comment. Might better be called
# "effective_languages". The logic used to make the choice is as follows:
# if Request.languages.empty()
# effective_languages = detected_languages
# else
# if !Request.languages.empty()
# effective_languages = Request.languages
# else
# effective_languages = detected_languages[0]
# Corresponds to the JSON property `languages`
# @return [Array<String>]
attr_accessor :languages
Expand Down Expand Up @@ -389,14 +389,9 @@ class SuggestCommentScoreRequest
# @return [Google::Apis::CommentanalyzerV1alpha1::Context]
attr_accessor :context

# The language(s) of the comment and context (if none are specified, the
# language is automatically detected). If multiple languages are specified,
# the text is checked in all of them that are supported. Both ISO and BCP-47
# language codes are accepted.
# Current Language Restrictions:
# * Only English text ("en") is supported.
# If none of the languages specified by the caller are supported, an
# `UNIMPLEMENTED` error is returned.
# The language(s) of the comment and context. If none are specified, we
# attempt to automatically detect the language. Both ISO and BCP-47 language
# codes are accepted.
# Corresponds to the JSON property `languages`
# @return [Array<String>]
attr_accessor :languages
Expand Down

0 comments on commit b961bf3

Please sign in to comment.