# 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/api/client_pb' require 'google/api/field_behavior_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" optional :text_detection_config, :message, 8, "google.cloud.videointelligence.v1.TextDetectionConfig" optional :object_tracking_config, :message, 13, "google.cloud.videointelligence.v1.ObjectTrackingConfig" 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 optional :frame_confidence_threshold, :float, 4 optional :video_confidence_threshold, :float, 5 end add_message "google.cloud.videointelligence.v1.ShotChangeDetectionConfig" do optional :model, :string, 1 end add_message "google.cloud.videointelligence.v1.ObjectTrackingConfig" 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.ExplicitContentDetectionConfig" do optional :model, :string, 1 end add_message "google.cloud.videointelligence.v1.TextDetectionConfig" do repeated :language_hints, :string, 1 optional :model, :string, 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.TimestampedObject" do optional :normalized_bounding_box, :message, 1, "google.cloud.videointelligence.v1.NormalizedBoundingBox" optional :time_offset, :message, 2, "google.protobuf.Duration" repeated :attributes, :message, 3, "google.cloud.videointelligence.v1.DetectedAttribute" repeated :landmarks, :message, 4, "google.cloud.videointelligence.v1.DetectedLandmark" end add_message "google.cloud.videointelligence.v1.Track" do optional :segment, :message, 1, "google.cloud.videointelligence.v1.VideoSegment" repeated :timestamped_objects, :message, 2, "google.cloud.videointelligence.v1.TimestampedObject" repeated :attributes, :message, 3, "google.cloud.videointelligence.v1.DetectedAttribute" optional :confidence, :float, 4 end add_message "google.cloud.videointelligence.v1.DetectedAttribute" do optional :name, :string, 1 optional :confidence, :float, 2 optional :value, :string, 3 end add_message "google.cloud.videointelligence.v1.DetectedLandmark" do optional :name, :string, 1 optional :point, :message, 2, "google.cloud.videointelligence.v1.NormalizedVertex" optional :confidence, :float, 3 end add_message "google.cloud.videointelligence.v1.VideoAnnotationResults" do optional :input_uri, :string, 1 optional :segment, :message, 10, "google.cloud.videointelligence.v1.VideoSegment" repeated :segment_label_annotations, :message, 2, "google.cloud.videointelligence.v1.LabelAnnotation" repeated :segment_presence_label_annotations, :message, 23, "google.cloud.videointelligence.v1.LabelAnnotation" repeated :shot_label_annotations, :message, 3, "google.cloud.videointelligence.v1.LabelAnnotation" repeated :shot_presence_label_annotations, :message, 24, "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" repeated :text_annotations, :message, 12, "google.cloud.videointelligence.v1.TextAnnotation" repeated :object_annotations, :message, 14, "google.cloud.videointelligence.v1.ObjectTrackingAnnotation" repeated :logo_recognition_annotations, :message, 19, "google.cloud.videointelligence.v1.LogoRecognitionAnnotation" 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" optional :feature, :enum, 5, "google.cloud.videointelligence.v1.Feature" optional :segment, :message, 6, "google.cloud.videointelligence.v1.VideoSegment" 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_message "google.cloud.videointelligence.v1.NormalizedVertex" do optional :x, :float, 1 optional :y, :float, 2 end add_message "google.cloud.videointelligence.v1.NormalizedBoundingPoly" do repeated :vertices, :message, 1, "google.cloud.videointelligence.v1.NormalizedVertex" end add_message "google.cloud.videointelligence.v1.TextSegment" do optional :segment, :message, 1, "google.cloud.videointelligence.v1.VideoSegment" optional :confidence, :float, 2 repeated :frames, :message, 3, "google.cloud.videointelligence.v1.TextFrame" end add_message "google.cloud.videointelligence.v1.TextFrame" do optional :rotated_bounding_box, :message, 1, "google.cloud.videointelligence.v1.NormalizedBoundingPoly" optional :time_offset, :message, 2, "google.protobuf.Duration" end add_message "google.cloud.videointelligence.v1.TextAnnotation" do optional :text, :string, 1 repeated :segments, :message, 2, "google.cloud.videointelligence.v1.TextSegment" end add_message "google.cloud.videointelligence.v1.ObjectTrackingFrame" do optional :normalized_bounding_box, :message, 1, "google.cloud.videointelligence.v1.NormalizedBoundingBox" optional :time_offset, :message, 2, "google.protobuf.Duration" end add_message "google.cloud.videointelligence.v1.ObjectTrackingAnnotation" do optional :entity, :message, 1, "google.cloud.videointelligence.v1.Entity" optional :confidence, :float, 4 repeated :frames, :message, 2, "google.cloud.videointelligence.v1.ObjectTrackingFrame" oneof :track_info do optional :segment, :message, 3, "google.cloud.videointelligence.v1.VideoSegment" optional :track_id, :int64, 5 end end add_message "google.cloud.videointelligence.v1.LogoRecognitionAnnotation" do optional :entity, :message, 1, "google.cloud.videointelligence.v1.Entity" repeated :tracks, :message, 2, "google.cloud.videointelligence.v1.Track" repeated :segments, :message, 3, "google.cloud.videointelligence.v1.VideoSegment" 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 value :TEXT_DETECTION, 7 value :OBJECT_TRACKING, 9 value :LOGO_RECOGNITION, 12 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 end Videointelligence = VideoIntelligence unless const_defined? :Videointelligence end end module Google::Cloud::VideoIntelligence::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 ObjectTrackingConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingConfig").msgclass FaceDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceDetectionConfig").msgclass ExplicitContentDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentDetectionConfig").msgclass TextDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextDetectionConfig").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 TimestampedObject = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TimestampedObject").msgclass Track = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Track").msgclass DetectedAttribute = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.DetectedAttribute").msgclass DetectedLandmark = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.DetectedLandmark").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 NormalizedVertex = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.NormalizedVertex").msgclass NormalizedBoundingPoly = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.NormalizedBoundingPoly").msgclass TextSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextSegment").msgclass TextFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextFrame").msgclass TextAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextAnnotation").msgclass ObjectTrackingFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingFrame").msgclass ObjectTrackingAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingAnnotation").msgclass LogoRecognitionAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LogoRecognitionAnnotation").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