Class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2Entity

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

Overview

Detected entity from video analysis.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta2Entity

Returns a new instance of GoogleCloudVideointelligenceV1beta2Entity.



1364
1365
1366
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1364

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)


1351
1352
1353
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1351

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)


1357
1358
1359
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1357

def entity_id
  @entity_id
end

#language_codeString

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

Returns:

  • (String)


1362
1363
1364
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1362

def language_code
  @language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1369
1370
1371
1372
1373
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1369

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