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.



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

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)


430
431
432
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 430

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


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

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


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