Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1Entity

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

Overview

Detected entity from video analysis.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1Entity

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1Entity.



5471
5472
5473
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 5471

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

Instance Attribute Details

#descriptionString

Textual description, e.g., Fixed-gear bicycle. Corresponds to the JSON property description

Returns:

  • (String)


5458
5459
5460
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 5458

def description
  @description
end

#entity_idString

Opaque entity ID. Some IDs may be available in Google Knowledge Graph Search API. Corresponds to the JSON property entityId

Returns:

  • (String)


5464
5465
5466
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 5464

def entity_id
  @entity_id
end

#language_codeString

Language code for description in BCP-47 format. Corresponds to the JSON property languageCode

Returns:

  • (String)


5469
5470
5471
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 5469

def language_code
  @language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5476
5477
5478
5479
5480
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 5476

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