Class: Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/language_v1beta1/classes.rb,
generated/google/apis/language_v1beta1/representations.rb,
generated/google/apis/language_v1beta1/representations.rb

Overview

The entity analysis response message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AnalyzeEntitiesResponse

Returns a new instance of AnalyzeEntitiesResponse



520
521
522
# File 'generated/google/apis/language_v1beta1/classes.rb', line 520

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

Instance Attribute Details

#entitiesArray<Google::Apis::LanguageV1beta1::Entity>

The recognized entities in the input document. Corresponds to the JSON property entities



518
519
520
# File 'generated/google/apis/language_v1beta1/classes.rb', line 518

def entities
  @entities
end

#languageString

The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details. Corresponds to the JSON property language

Returns:

  • (String)


513
514
515
# File 'generated/google/apis/language_v1beta1/classes.rb', line 513

def language
  @language
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



525
526
527
528
# File 'generated/google/apis/language_v1beta1/classes.rb', line 525

def update!(**args)
  @language = args[:language] if args.key?(:language)
  @entities = args[:entities] if args.key?(:entities)
end