Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1VideoContext

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

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

Returns a new instance of GoogleCloudVideointelligenceV1VideoContext



752
753
754
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 752

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

Instance Attribute Details

#explicit_content_detection_configGoogle::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1ExplicitContentDetectionConfig

Config for EXPLICIT_CONTENT_DETECTION. Corresponds to the JSON property explicitContentDetectionConfig



728
729
730
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 728

def explicit_content_detection_config
  @explicit_content_detection_config
end

#label_detection_configGoogle::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1LabelDetectionConfig

Config for LABEL_DETECTION. Corresponds to the JSON property labelDetectionConfig



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

def label_detection_config
  @label_detection_config
end

#segmentsArray<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1VideoSegment>

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



740
741
742
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 740

def segments
  @segments
end

#shot_change_detection_configGoogle::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1ShotChangeDetectionConfig

Config for SHOT_CHANGE_DETECTION. Corresponds to the JSON property shotChangeDetectionConfig



745
746
747
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 745

def shot_change_detection_config
  @shot_change_detection_config
end

#speech_transcription_configGoogle::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1SpeechTranscriptionConfig

Config for SPEECH_TRANSCRIPTION. Corresponds to the JSON property speechTranscriptionConfig



750
751
752
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 750

def speech_transcription_config
  @speech_transcription_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



757
758
759
760
761
762
763
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 757

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)
  @speech_transcription_config = args[:speech_transcription_config] if args.key?(:speech_transcription_config)
end