Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1Entity

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1Entity

Returns a new instance of GoogleCloudVideointelligenceV1Entity.



224
225
226
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 224

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)


210
211
212
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 210

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)


217
218
219
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 217

def entity_id
  @entity_id
end

#language_codeString

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

Returns:

  • (String)


222
223
224
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 222

def language_code
  @language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



229
230
231
232
233
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 229

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