Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1LabelLocation
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1LabelLocation
- 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
Label location.
Instance Attribute Summary collapse
-
#confidence ⇒ Float
Confidence that the label is accurate.
-
#level ⇒ String
Label level.
-
#segment ⇒ Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1VideoSegment
Video segment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta1LabelLocation
constructor
A new instance of GoogleCloudVideointelligenceV1beta1LabelLocation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta1LabelLocation
Returns a new instance of GoogleCloudVideointelligenceV1beta1LabelLocation
682 683 684 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 682 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence ⇒ Float
Confidence that the label is accurate. Range: [0, 1].
Corresponds to the JSON property confidence
670 671 672 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 670 def confidence @confidence end |
#level ⇒ String
Label level.
Corresponds to the JSON property level
675 676 677 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 675 def level @level end |
#segment ⇒ Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1VideoSegment
Video segment.
Corresponds to the JSON property segment
680 681 682 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 680 def segment @segment end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
687 688 689 690 691 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 687 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 |