Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation
 
- 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
- 
  
    
      #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
| 733 734 735 | # File 'generated/google/apis/videointelligence_v1/classes.rb', line 733 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#adult ⇒ String
Likelihood of adult content.
Corresponds to the JSON property adult
| 705 706 707 | # File 'generated/google/apis/videointelligence_v1/classes.rb', line 705 def adult @adult end | 
#medical ⇒ String
Likelihood of medical content.
Corresponds to the JSON property medical
| 710 711 712 | # File 'generated/google/apis/videointelligence_v1/classes.rb', line 710 def medical @medical end | 
#racy ⇒ String
Likelihood of racy content.
Corresponds to the JSON property racy
| 715 716 717 | # File 'generated/google/apis/videointelligence_v1/classes.rb', line 715 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
| 721 722 723 | # File 'generated/google/apis/videointelligence_v1/classes.rb', line 721 def spoof @spoof end | 
#time_offset ⇒ Fixnum
Video time offset in microseconds.
Corresponds to the JSON property timeOffset
| 726 727 728 | # File 'generated/google/apis/videointelligence_v1/classes.rb', line 726 def time_offset @time_offset end | 
#violent ⇒ String
Likelihood of violent content.
Corresponds to the JSON property violent
| 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 |