Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation

Inherits:
Object
  • Object
show all
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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation

Returns a new instance of GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation



733
734
735
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 733

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

Instance Attribute Details

#adultString

Likelihood of adult content. Corresponds to the JSON property adult

Returns:

  • (String)


705
706
707
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 705

def adult
  @adult
end

#medicalString

Likelihood of medical content. Corresponds to the JSON property medical

Returns:

  • (String)


710
711
712
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 710

def medical
  @medical
end

#racyString

Likelihood of racy content. Corresponds to the JSON property racy

Returns:

  • (String)


715
716
717
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 715

def racy
  @racy
end

#spoofString

Likelihood that an obvious modification was made to the original version to make it appear funny or offensive. Corresponds to the JSON property spoof

Returns:

  • (String)


721
722
723
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 721

def spoof
  @spoof
end

#time_offsetFixnum

Video time offset in microseconds. Corresponds to the JSON property timeOffset

Returns:

  • (Fixnum)


726
727
728
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 726

def time_offset
  @time_offset
end

#violentString

Likelihood of violent content. Corresponds to the JSON property violent

Returns:

  • (String)


731
732
733
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 731

def violent
  @violent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



738
739
740
741
742
743
744
745
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 738

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