Class: Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse
- 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
-
#entities ⇒ Array<Google::Apis::LanguageV1beta1::Entity>
The recognized entities in the input document.
-
#language ⇒ String
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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AnalyzeEntitiesResponse
constructor
A new instance of AnalyzeEntitiesResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AnalyzeEntitiesResponse
Returns a new instance of AnalyzeEntitiesResponse.
586 587 588 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 586 def initialize(**args) update!(**args) end |
Instance Attribute Details
#entities ⇒ Array<Google::Apis::LanguageV1beta1::Entity>
The recognized entities in the input document.
Corresponds to the JSON property entities
577 578 579 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 577 def entities @entities end |
#language ⇒ String
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
584 585 586 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 584 def language @language end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
591 592 593 594 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 591 def update!(**args) @entities = args[:entities] if args.key?(:entities) @language = args[:language] if args.key?(:language) end |