Class: Google::Apis::CommentanalyzerV1alpha1::SuggestCommentScoreResponse

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SuggestCommentScoreResponse

Returns a new instance of SuggestCommentScoreResponse



449
450
451
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 449

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#client_tokenString

Same token from the original SuggestCommentScoreRequest. Corresponds to the JSON property clientToken

Returns:

  • (String)


437
438
439
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 437

def client_token
  @client_token
end

#detected_languagesArray<String>

The list of languages detected from the comment text. Corresponds to the JSON property detectedLanguages

Returns:

  • (Array<String>)


442
443
444
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 442

def detected_languages
  @detected_languages
end

#requested_languagesArray<String>

The list of languages provided in the request. Corresponds to the JSON property requestedLanguages

Returns:

  • (Array<String>)


447
448
449
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 447

def requested_languages
  @requested_languages
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



454
455
456
457
458
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 454

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