Class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1SafeSearchAnnotation
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1SafeSearchAnnotation
- 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.
Instance Attribute Summary collapse
-
#adult ⇒ String
Likelihood of adult content.
-
#time ⇒ String
Time-offset, relative to the beginning of the video, corresponding to the video frame for this annotation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1SafeSearchAnnotation
constructor
A new instance of GoogleCloudVideointelligenceV1SafeSearchAnnotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1SafeSearchAnnotation
Returns a new instance of GoogleCloudVideointelligenceV1SafeSearchAnnotation
146 147 148 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 146 def initialize(**args) update!(**args) end |
Instance Attribute Details
#adult ⇒ String
Likelihood of adult content.
Corresponds to the JSON property adult
138 139 140 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 138 def adult @adult end |
#time ⇒ String
Time-offset, relative to the beginning of the video,
corresponding to the video frame for this annotation.
Corresponds to the JSON property time
144 145 146 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 144 def time @time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
151 152 153 154 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 151 def update!(**args) @adult = args[:adult] if args.key?(:adult) @time = args[:time] if args.key?(:time) end |