Class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p2beta1Entity

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

Overview

Detected entity from video analysis.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p2beta1Entity

Returns a new instance of GoogleCloudVideointelligenceV1p2beta1Entity.



3652
3653
3654
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 3652

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)


3639
3640
3641
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 3639

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)


3645
3646
3647
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 3645

def entity_id
  @entity_id
end

#language_codeString

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

Returns:

  • (String)


3650
3651
3652
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 3650

def language_code
  @language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3657
3658
3659
3660
3661
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 3657

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