Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation

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

Explicit content annotation (based on per-frame visual signals only). If no explicit content has been detected in a frame, no annotations are present for that frame.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation

Returns a new instance of GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation.



4086
4087
4088
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4086

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

Instance Attribute Details

#framesArray<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame>

All video frames where explicit content was detected. Corresponds to the JSON property frames



4079
4080
4081
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4079

def frames
  @frames
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


4084
4085
4086
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4084

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4091
4092
4093
4094
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4091

def update!(**args)
  @frames = args[:frames] if args.key?(:frames)
  @version = args[:version] if args.key?(:version)
end