Class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1LabelLocation

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 location.

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

Returns a new instance of GoogleCloudVideointelligenceV1beta1LabelLocation



561
562
563
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 561

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

Instance Attribute Details

#confidenceFloat

Confidence that the label is accurate. Range: [0, 1]. Corresponds to the JSON property confidence

Returns:

  • (Float)


549
550
551
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 549

def confidence
  @confidence
end

#levelString

Label level. Corresponds to the JSON property level

Returns:

  • (String)


554
555
556
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 554

def level
  @level
end

#segmentGoogle::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoSegment

Video segment. Corresponds to the JSON property segment



559
560
561
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 559

def segment
  @segment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



566
567
568
569
570
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 566

def update!(**args)
  @confidence = args[:confidence] if args.key?(:confidence)
  @level = args[:level] if args.key?(:level)
  @segment = args[:segment] if args.key?(:segment)
end