Class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2VideoContext

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/videointelligence_v1beta2/classes.rb,
generated/google/apis/videointelligence_v1beta2/representations.rb,
generated/google/apis/videointelligence_v1beta2/representations.rb

Overview

Video context and/or feature-specific parameters.

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) ⇒ GoogleCloudVideointelligenceV1beta2VideoContext

Returns a new instance of GoogleCloudVideointelligenceV1beta2VideoContext



928
929
930
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 928

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

Instance Attribute Details

#explicit_content_detection_configGoogle::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2ExplicitContentDetectionConfig

Config for EXPLICIT_CONTENT_DETECTION. Corresponds to the JSON property explicitContentDetectionConfig



909
910
911
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 909

def explicit_content_detection_config
  @explicit_content_detection_config
end

#label_detection_configGoogle::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2LabelDetectionConfig

Config for LABEL_DETECTION. Corresponds to the JSON property labelDetectionConfig



914
915
916
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 914

def label_detection_config
  @label_detection_config
end

#segmentsArray<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2VideoSegment>

Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment. Corresponds to the JSON property segments



921
922
923
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 921

def segments
  @segments
end

#shot_change_detection_configGoogle::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2ShotChangeDetectionConfig

Config for SHOT_CHANGE_DETECTION. Corresponds to the JSON property shotChangeDetectionConfig



926
927
928
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 926

def shot_change_detection_config
  @shot_change_detection_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



933
934
935
936
937
938
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 933

def update!(**args)
  @explicit_content_detection_config = args[:explicit_content_detection_config] if args.key?(:explicit_content_detection_config)
  @label_detection_config = args[:label_detection_config] if args.key?(:label_detection_config)
  @segments = args[:segments] if args.key?(:segments)
  @shot_change_detection_config = args[:shot_change_detection_config] if args.key?(:shot_change_detection_config)
end