Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1Entity
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1Entity
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/videointelligence_v1/classes.rb,
generated/google/apis/videointelligence_v1/representations.rb,
generated/google/apis/videointelligence_v1/representations.rb
Overview
Detected entity from video analysis.
Instance Attribute Summary collapse
-
#description ⇒ String
Textual description, e.g.
-
#entity_id ⇒ String
Opaque entity ID.
-
#language_code ⇒ String
Language code for
description
in BCP-47 format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1Entity
constructor
A new instance of GoogleCloudVideointelligenceV1Entity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1Entity
Returns a new instance of GoogleCloudVideointelligenceV1Entity
156 157 158 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 156 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Textual description, e.g. Fixed-gear bicycle
.
Corresponds to the JSON property description
142 143 144 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 142 def description @description end |
#entity_id ⇒ String
Opaque entity ID. Some IDs may be available in
Google Knowledge Graph Search
API.
Corresponds to the JSON property entityId
149 150 151 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 149 def entity_id @entity_id end |
#language_code ⇒ String
Language code for description
in BCP-47 format.
Corresponds to the JSON property languageCode
154 155 156 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 154 def language_code @language_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
161 162 163 164 165 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 161 def update!(**args) @description = args[:description] if args.key?(:description) @entity_id = args[:entity_id] if args.key?(:entity_id) @language_code = args[:language_code] if args.key?(:language_code) end |