Class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation

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. 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



612
613
614
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 612

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

Instance Attribute Details

#adultString

Likelihood of adult content. Corresponds to the JSON property adult

Returns:

  • (String)


584
585
586
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 584

def adult
  @adult
end

#medicalString

Likelihood of medical content. Corresponds to the JSON property medical

Returns:

  • (String)


589
590
591
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 589

def medical
  @medical
end

#racyString

Likelihood of racy content. Corresponds to the JSON property racy

Returns:

  • (String)


594
595
596
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 594

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)


600
601
602
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 600

def spoof
  @spoof
end

#time_offsetFixnum

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

Returns:

  • (Fixnum)


605
606
607
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 605

def time_offset
  @time_offset
end

#violentString

Likelihood of violent content. Corresponds to the JSON property violent

Returns:

  • (String)


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