Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1Celebrity

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

Celebrity definition.

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) ⇒ GoogleCloudVideointelligenceV1p3beta1Celebrity

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1Celebrity.



4573
4574
4575
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4573

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

Instance Attribute Details

#descriptionString

Textual description of additional information about the celebrity, if applicable. Corresponds to the JSON property description

Returns:

  • (String)


4558
4559
4560
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4558

def description
  @description
end

#display_nameString

The celebrity name. Corresponds to the JSON property displayName

Returns:

  • (String)


4563
4564
4565
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4563

def display_name
  @display_name
end

#nameString

The resource name of the celebrity. Have the format video-intelligence/kg-mid indicates a celebrity from preloaded gallery. kg-mid is the id in Google knowledge graph, which is unique for the celebrity. Corresponds to the JSON property name

Returns:

  • (String)


4571
4572
4573
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4571

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4578
4579
4580
4581
4582
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4578

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @name = args[:name] if args.key?(:name)
end