Class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1SafeSearchAnnotation

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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#adultString

Likelihood of adult content. Corresponds to the JSON property adult

Returns:

  • (String)


138
139
140
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 138

def adult
  @adult
end

#timeString

Time-offset, relative to the beginning of the video, corresponding to the video frame for this annotation. Corresponds to the JSON property time

Returns:

  • (String)


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