Class: Google::Apis::CommentanalyzerV1alpha1::SuggestCommentScoreResponse
- Inherits:
-
Object
- Object
- Google::Apis::CommentanalyzerV1alpha1::SuggestCommentScoreResponse
- Defined in:
- generated/google/apis/commentanalyzer_v1alpha1/classes.rb,
generated/google/apis/commentanalyzer_v1alpha1/representations.rb,
generated/google/apis/commentanalyzer_v1alpha1/representations.rb
Overview
The comment score suggestion response message.
Instance Attribute Summary collapse
-
#client_token ⇒ String
Same token from the original SuggestCommentScoreRequest.
-
#detected_languages ⇒ Array<String>
The list of languages detected from the comment text.
-
#requested_languages ⇒ Array<String>
The list of languages provided in the request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SuggestCommentScoreResponse
constructor
A new instance of SuggestCommentScoreResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ SuggestCommentScoreResponse
Returns a new instance of SuggestCommentScoreResponse.
442 443 444 |
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 442 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_token ⇒ String
Same token from the original SuggestCommentScoreRequest.
Corresponds to the JSON property clientToken
430 431 432 |
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 430 def client_token @client_token end |
#detected_languages ⇒ Array<String>
The list of languages detected from the comment text.
Corresponds to the JSON property detectedLanguages
435 436 437 |
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 435 def detected_languages @detected_languages end |
#requested_languages ⇒ Array<String>
The list of languages provided in the request.
Corresponds to the JSON property requestedLanguages
440 441 442 |
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 440 def requested_languages @requested_languages end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
447 448 449 450 451 |
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 447 def update!(**args) @client_token = args[:client_token] if args.key?(:client_token) @detected_languages = args[:detected_languages] if args.key?(:detected_languages) @requested_languages = args[:requested_languages] if args.key?(:requested_languages) end |