Class: Google::Apis::LanguageV2::AnalyzeEntitiesResponse
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV2::AnalyzeEntitiesResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v2/classes.rb,
lib/google/apis/language_v2/representations.rb,
lib/google/apis/language_v2/representations.rb
Overview
The entity analysis response message.
Instance Attribute Summary collapse
-
#entities ⇒ Array<Google::Apis::LanguageV2::Entity>
The recognized entities in the input document.
-
#language_code ⇒ 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.
-
#language_supported ⇒ Boolean
(also: #language_supported?)
Whether the language is officially supported.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AnalyzeEntitiesResponse
constructor
A new instance of AnalyzeEntitiesResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AnalyzeEntitiesResponse
Returns a new instance of AnalyzeEntitiesResponse.
73 74 75 |
# File 'lib/google/apis/language_v2/classes.rb', line 73 def initialize(**args) update!(**args) end |
Instance Attribute Details
#entities ⇒ Array<Google::Apis::LanguageV2::Entity>
The recognized entities in the input document.
Corresponds to the JSON property entities
57 58 59 |
# File 'lib/google/apis/language_v2/classes.rb', line 57 def entities @entities end |
#language_code ⇒ 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 languageCode
64 65 66 |
# File 'lib/google/apis/language_v2/classes.rb', line 64 def language_code @language_code end |
#language_supported ⇒ Boolean Also known as: language_supported?
Whether the language is officially supported. The API may still return a
response when the language is not supported, but it is on a best effort basis.
Corresponds to the JSON property languageSupported
70 71 72 |
# File 'lib/google/apis/language_v2/classes.rb', line 70 def language_supported @language_supported end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
78 79 80 81 82 |
# File 'lib/google/apis/language_v2/classes.rb', line 78 def update!(**args) @entities = args[:entities] if args.key?(:entities) @language_code = args[:language_code] if args.key?(:language_code) @language_supported = args[:language_supported] if args.key?(:language_supported) end |