Class: Google::Apis::LanguageV1beta2::AnalyzeEntitiesResponse

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

Overview

The entity analysis response message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AnalyzeEntitiesResponse

Returns a new instance of AnalyzeEntitiesResponse.



66
67
68
# File 'lib/google/apis/language_v1beta2/classes.rb', line 66

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

Instance Attribute Details

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

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



57
58
59
# File 'lib/google/apis/language_v1beta2/classes.rb', line 57

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)


64
65
66
# File 'lib/google/apis/language_v1beta2/classes.rb', line 64

def language
  @language
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



71
72
73
74
# File 'lib/google/apis/language_v1beta2/classes.rb', line 71

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