Class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p2beta1Entity
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p2beta1Entity
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/videointelligence_v1p3beta1/classes.rb,
lib/google/apis/videointelligence_v1p3beta1/representations.rb,
lib/google/apis/videointelligence_v1p3beta1/representations.rb
Overview
Detected entity from video analysis.
Instance Attribute Summary collapse
-
#description ⇒ String
Textual description, e.g.,
Fixed-gear bicycle
. -
#entity_id ⇒ String
Opaque entity ID.
-
#language_code ⇒ String
Language code for
description
in BCP-47 format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p2beta1Entity
constructor
A new instance of GoogleCloudVideointelligenceV1p2beta1Entity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p2beta1Entity
Returns a new instance of GoogleCloudVideointelligenceV1p2beta1Entity.
3585 3586 3587 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 3585 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Textual description, e.g., Fixed-gear bicycle
.
Corresponds to the JSON property description
3572 3573 3574 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 3572 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
3578 3579 3580 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 3578 def entity_id @entity_id end |
#language_code ⇒ String
Language code for description
in BCP-47 format.
Corresponds to the JSON property languageCode
3583 3584 3585 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 3583 def language_code @language_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3590 3591 3592 3593 3594 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 3590 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 |