Class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1LabelAnnotation

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

Overview

Label annotation.

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

Returns a new instance of GoogleCloudVideointelligenceV1beta1LabelAnnotation



530
531
532
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 530

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)


518
519
520
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 518

def description
  @description
end

#language_codeString

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

Returns:

  • (String)


523
524
525
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 523

def language_code
  @language_code
end

#locationsArray<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1LabelLocation>

Where the label was detected and with what confidence. Corresponds to the JSON property locations



528
529
530
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 528

def locations
  @locations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



535
536
537
538
539
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 535

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