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



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

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)


434
435
436
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 434

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>)


439
440
441
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 439

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>)


444
445
446
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 444

def requested_languages
  @requested_languages
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



451
452
453
454
455
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 451

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