# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/videointelligence/v1/video_intelligence.proto require 'google/protobuf' require 'google/api/annotations_pb' require 'google/longrunning/operations_pb' require 'google/protobuf/duration_pb' require 'google/protobuf/timestamp_pb' require 'google/rpc/status_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_message "google.cloud.videointelligence.v1.AnnotateVideoRequest" do optional :input_uri, :string, 1 optional :input_content, :bytes, 6 repeated :features, :enum, 2, "google.cloud.videointelligence.v1.Feature" optional :video_context, :message, 3, "google.cloud.videointelligence.v1.VideoContext" optional :output_uri, :string, 4 optional :location_id, :string, 5 end add_message "google.cloud.videointelligence.v1.VideoContext" do repeated :segments, :message, 1, "google.cloud.videointelligence.v1.VideoSegment" optional :label_detection_config, :message, 2, "google.cloud.videointelligence.v1.LabelDetectionConfig" optional :shot_change_detection_config, :message, 3, "google.cloud.videointelligence.v1.ShotChangeDetectionConfig" optional :explicit_content_detection_config, :message, 4, "google.cloud.videointelligence.v1.ExplicitContentDetectionConfig" optional :face_detection_config, :message, 5, "google.cloud.videointelligence.v1.FaceDetectionConfig" optional :speech_transcription_config, :message, 6, "google.cloud.videointelligence.v1.SpeechTranscriptionConfig" end add_message "google.cloud.videointelligence.v1.LabelDetectionConfig" do optional :label_detection_mode, :enum, 1, "google.cloud.videointelligence.v1.LabelDetectionMode" optional :stationary_camera, :bool, 2 optional :model, :string, 3 end add_message "google.cloud.videointelligence.v1.ShotChangeDetectionConfig" do optional :model, :string, 1 end add_message "google.cloud.videointelligence.v1.ExplicitContentDetectionConfig" do optional :model, :string, 1 end add_message "google.cloud.videointelligence.v1.FaceDetectionConfig" do optional :model, :string, 1 optional :include_bounding_boxes, :bool, 2 end add_message "google.cloud.videointelligence.v1.VideoSegment" do optional :start_time_offset, :message, 1, "google.protobuf.Duration" optional :end_time_offset, :message, 2, "google.protobuf.Duration" end add_message "google.cloud.videointelligence.v1.LabelSegment" do optional :segment, :message, 1, "google.cloud.videointelligence.v1.VideoSegment" optional :confidence, :float, 2 end add_message "google.cloud.videointelligence.v1.LabelFrame" do optional :time_offset, :message, 1, "google.protobuf.Duration" optional :confidence, :float, 2 end add_message "google.cloud.videointelligence.v1.Entity" do optional :entity_id, :string, 1 optional :description, :string, 2 optional :language_code, :string, 3 end add_message "google.cloud.videointelligence.v1.LabelAnnotation" do optional :entity, :message, 1, "google.cloud.videointelligence.v1.Entity" repeated :category_entities, :message, 2, "google.cloud.videointelligence.v1.Entity" repeated :segments, :message, 3, "google.cloud.videointelligence.v1.LabelSegment" repeated :frames, :message, 4, "google.cloud.videointelligence.v1.LabelFrame" end add_message "google.cloud.videointelligence.v1.ExplicitContentFrame" do optional :time_offset, :message, 1, "google.protobuf.Duration" optional :pornography_likelihood, :enum, 2, "google.cloud.videointelligence.v1.Likelihood" end add_message "google.cloud.videointelligence.v1.ExplicitContentAnnotation" do repeated :frames, :message, 1, "google.cloud.videointelligence.v1.ExplicitContentFrame" end add_message "google.cloud.videointelligence.v1.NormalizedBoundingBox" do optional :left, :float, 1 optional :top, :float, 2 optional :right, :float, 3 optional :bottom, :float, 4 end add_message "google.cloud.videointelligence.v1.FaceSegment" do optional :segment, :message, 1, "google.cloud.videointelligence.v1.VideoSegment" end add_message "google.cloud.videointelligence.v1.FaceFrame" do repeated :normalized_bounding_boxes, :message, 1, "google.cloud.videointelligence.v1.NormalizedBoundingBox" optional :time_offset, :message, 2, "google.protobuf.Duration" end add_message "google.cloud.videointelligence.v1.FaceAnnotation" do optional :thumbnail, :bytes, 1 repeated :segments, :message, 2, "google.cloud.videointelligence.v1.FaceSegment" repeated :frames, :message, 3, "google.cloud.videointelligence.v1.FaceFrame" end add_message "google.cloud.videointelligence.v1.VideoAnnotationResults" do optional :input_uri, :string, 1 repeated :segment_label_annotations, :message, 2, "google.cloud.videointelligence.v1.LabelAnnotation" repeated :shot_label_annotations, :message, 3, "google.cloud.videointelligence.v1.LabelAnnotation" repeated :frame_label_annotations, :message, 4, "google.cloud.videointelligence.v1.LabelAnnotation" repeated :face_annotations, :message, 5, "google.cloud.videointelligence.v1.FaceAnnotation" repeated :shot_annotations, :message, 6, "google.cloud.videointelligence.v1.VideoSegment" optional :explicit_annotation, :message, 7, "google.cloud.videointelligence.v1.ExplicitContentAnnotation" repeated :speech_transcriptions, :message, 11, "google.cloud.videointelligence.v1.SpeechTranscription" optional :error, :message, 9, "google.rpc.Status" end add_message "google.cloud.videointelligence.v1.AnnotateVideoResponse" do repeated :annotation_results, :message, 1, "google.cloud.videointelligence.v1.VideoAnnotationResults" end add_message "google.cloud.videointelligence.v1.VideoAnnotationProgress" do optional :input_uri, :string, 1 optional :progress_percent, :int32, 2 optional :start_time, :message, 3, "google.protobuf.Timestamp" optional :update_time, :message, 4, "google.protobuf.Timestamp" end add_message "google.cloud.videointelligence.v1.AnnotateVideoProgress" do repeated :annotation_progress, :message, 1, "google.cloud.videointelligence.v1.VideoAnnotationProgress" end add_message "google.cloud.videointelligence.v1.SpeechTranscriptionConfig" do optional :language_code, :string, 1 optional :max_alternatives, :int32, 2 optional :filter_profanity, :bool, 3 repeated :speech_contexts, :message, 4, "google.cloud.videointelligence.v1.SpeechContext" optional :enable_automatic_punctuation, :bool, 5 repeated :audio_tracks, :int32, 6 optional :enable_speaker_diarization, :bool, 7 optional :diarization_speaker_count, :int32, 8 optional :enable_word_confidence, :bool, 9 end add_message "google.cloud.videointelligence.v1.SpeechContext" do repeated :phrases, :string, 1 end add_message "google.cloud.videointelligence.v1.SpeechTranscription" do repeated :alternatives, :message, 1, "google.cloud.videointelligence.v1.SpeechRecognitionAlternative" optional :language_code, :string, 2 end add_message "google.cloud.videointelligence.v1.SpeechRecognitionAlternative" do optional :transcript, :string, 1 optional :confidence, :float, 2 repeated :words, :message, 3, "google.cloud.videointelligence.v1.WordInfo" end add_message "google.cloud.videointelligence.v1.WordInfo" do optional :start_time, :message, 1, "google.protobuf.Duration" optional :end_time, :message, 2, "google.protobuf.Duration" optional :word, :string, 3 optional :confidence, :float, 4 optional :speaker_tag, :int32, 5 end add_enum "google.cloud.videointelligence.v1.Feature" do value :FEATURE_UNSPECIFIED, 0 value :LABEL_DETECTION, 1 value :SHOT_CHANGE_DETECTION, 2 value :EXPLICIT_CONTENT_DETECTION, 3 value :FACE_DETECTION, 4 value :SPEECH_TRANSCRIPTION, 6 end add_enum "google.cloud.videointelligence.v1.LabelDetectionMode" do value :LABEL_DETECTION_MODE_UNSPECIFIED, 0 value :SHOT_MODE, 1 value :FRAME_MODE, 2 value :SHOT_AND_FRAME_MODE, 3 end add_enum "google.cloud.videointelligence.v1.Likelihood" do value :LIKELIHOOD_UNSPECIFIED, 0 value :VERY_UNLIKELY, 1 value :UNLIKELY, 2 value :POSSIBLE, 3 value :LIKELY, 4 value :VERY_LIKELY, 5 end end module Google module Cloud module Videointelligence module V1 AnnotateVideoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoRequest").msgclass VideoContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoContext").msgclass LabelDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelDetectionConfig").msgclass ShotChangeDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ShotChangeDetectionConfig").msgclass ExplicitContentDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentDetectionConfig").msgclass FaceDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceDetectionConfig").msgclass VideoSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoSegment").msgclass LabelSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelSegment").msgclass LabelFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelFrame").msgclass Entity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Entity").msgclass LabelAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelAnnotation").msgclass ExplicitContentFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentFrame").msgclass ExplicitContentAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentAnnotation").msgclass NormalizedBoundingBox = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.NormalizedBoundingBox").msgclass FaceSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceSegment").msgclass FaceFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceFrame").msgclass FaceAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceAnnotation").msgclass VideoAnnotationResults = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoAnnotationResults").msgclass AnnotateVideoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoResponse").msgclass VideoAnnotationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoAnnotationProgress").msgclass AnnotateVideoProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoProgress").msgclass SpeechTranscriptionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechTranscriptionConfig").msgclass SpeechContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechContext").msgclass SpeechTranscription = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechTranscription").msgclass SpeechRecognitionAlternative = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechRecognitionAlternative").msgclass WordInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.WordInfo").msgclass Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Feature").enummodule LabelDetectionMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelDetectionMode").enummodule Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Likelihood").enummodule end end end end