Class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Celebrity
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Celebrity
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/vision_v1/classes.rb,
generated/google/apis/vision_v1/representations.rb,
generated/google/apis/vision_v1/representations.rb
Overview
A Celebrity is a group of Faces with an identity.
Instance Attribute Summary collapse
-
#description ⇒ String
The Celebrity's description.
-
#display_name ⇒ String
The Celebrity's display name.
-
#name ⇒ String
The resource name of the preloaded Celebrity.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVisionV1p4beta1Celebrity
constructor
A new instance of GoogleCloudVisionV1p4beta1Celebrity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVisionV1p4beta1Celebrity
Returns a new instance of GoogleCloudVisionV1p4beta1Celebrity.
7274 7275 7276 |
# File 'generated/google/apis/vision_v1/classes.rb', line 7274 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The Celebrity's description.
Corresponds to the JSON property description
7261 7262 7263 |
# File 'generated/google/apis/vision_v1/classes.rb', line 7261 def description @description end |
#display_name ⇒ String
The Celebrity's display name.
Corresponds to the JSON property displayName
7266 7267 7268 |
# File 'generated/google/apis/vision_v1/classes.rb', line 7266 def display_name @display_name end |
#name ⇒ String
The resource name of the preloaded Celebrity. Has the format
builtin/
mid`.
Corresponds to the JSON property
name`
7272 7273 7274 |
# File 'generated/google/apis/vision_v1/classes.rb', line 7272 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7279 7280 7281 7282 7283 |
# File 'generated/google/apis/vision_v1/classes.rb', line 7279 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 |