Class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation
- 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
Safe search annotation (based on per-frame visual signals only).
If no unsafe content has been detected in a frame, no annotations
are present for that frame. If only some types of unsafe content
have been detected in a frame, the likelihood is set to UNKNOWN
for all other types of unsafe content.
Instance Attribute Summary collapse
-
#adult ⇒ String
Likelihood of adult content.
-
#medical ⇒ String
Likelihood of medical content.
-
#racy ⇒ String
Likelihood of racy content.
-
#spoof ⇒ String
Likelihood that an obvious modification was made to the original version to make it appear funny or offensive.
-
#time_offset ⇒ Fixnum
Video time offset in microseconds.
-
#violent ⇒ String
Likelihood of violent content.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation
constructor
A new instance of GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation
Returns a new instance of GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation
612 613 614 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 612 def initialize(**args) update!(**args) end |
Instance Attribute Details
#adult ⇒ String
Likelihood of adult content.
Corresponds to the JSON property adult
584 585 586 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 584 def adult @adult end |
#medical ⇒ String
Likelihood of medical content.
Corresponds to the JSON property medical
589 590 591 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 589 def medical @medical end |
#racy ⇒ String
Likelihood of racy content.
Corresponds to the JSON property racy
594 595 596 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 594 def racy @racy end |
#spoof ⇒ String
Likelihood that an obvious modification was made to the original
version to make it appear funny or offensive.
Corresponds to the JSON property spoof
600 601 602 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 600 def spoof @spoof end |
#time_offset ⇒ Fixnum
Video time offset in microseconds.
Corresponds to the JSON property timeOffset
605 606 607 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 605 def time_offset @time_offset end |
#violent ⇒ String
Likelihood of violent content.
Corresponds to the JSON property violent
610 611 612 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 610 def violent @violent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
617 618 619 620 621 622 623 624 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 617 def update!(**args) @adult = args[:adult] if args.key?(:adult) @medical = args[:medical] if args.key?(:medical) @racy = args[:racy] if args.key?(:racy) @spoof = args[:spoof] if args.key?(:spoof) @time_offset = args[:time_offset] if args.key?(:time_offset) @violent = args[:violent] if args.key?(:violent) end |