Class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1Celebrity

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

Overview

A Celebrity is a group of Faces with an identity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVisionV1p4beta1Celebrity

Returns a new instance of GoogleCloudVisionV1p4beta1Celebrity.



7137
7138
7139
# File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 7137

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

Instance Attribute Details

#descriptionString

The Celebrity's description. Corresponds to the JSON property description

Returns:

  • (String)


7125
7126
7127
# File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 7125

def description
  @description
end

#display_nameString

The Celebrity's display name. Corresponds to the JSON property displayName

Returns:

  • (String)


7130
7131
7132
# File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 7130

def display_name
  @display_name
end

#nameString

The resource name of the preloaded Celebrity. Has the format builtin/mid`. Corresponds to the JSON propertyname`

Returns:

  • (String)


7135
7136
7137
# File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 7135

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7142
7143
7144
7145
7146
# File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 7142

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