# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/videointelligence/v1beta1/video_intelligence.proto

require 'google/protobuf'

require 'google/api/annotations_pb'
require 'google/longrunning/operations_pb'
require 'google/protobuf/timestamp_pb'
require 'google/rpc/status_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
  add_message "google.cloud.videointelligence.v1beta1.AnnotateVideoRequest" do
    optional :input_uri, :string, 1
    optional :input_content, :string, 6
    repeated :features, :enum, 2, "google.cloud.videointelligence.v1beta1.Feature"
    optional :video_context, :message, 3, "google.cloud.videointelligence.v1beta1.VideoContext"
    optional :output_uri, :string, 4
    optional :location_id, :string, 5
  end
  add_message "google.cloud.videointelligence.v1beta1.VideoContext" do
    repeated :segments, :message, 1, "google.cloud.videointelligence.v1beta1.VideoSegment"
    optional :label_detection_mode, :enum, 2, "google.cloud.videointelligence.v1beta1.LabelDetectionMode"
    optional :stationary_camera, :bool, 3
    optional :label_detection_model, :string, 4
    optional :face_detection_model, :string, 5
    optional :shot_change_detection_model, :string, 6
    optional :safe_search_detection_model, :string, 7
  end
  add_message "google.cloud.videointelligence.v1beta1.VideoSegment" do
    optional :start_time_offset, :int64, 1
    optional :end_time_offset, :int64, 2
  end
  add_message "google.cloud.videointelligence.v1beta1.LabelLocation" do
    optional :segment, :message, 1, "google.cloud.videointelligence.v1beta1.VideoSegment"
    optional :confidence, :float, 2
    optional :level, :enum, 3, "google.cloud.videointelligence.v1beta1.LabelLevel"
  end
  add_message "google.cloud.videointelligence.v1beta1.LabelAnnotation" do
    optional :description, :string, 1
    optional :language_code, :string, 2
    repeated :locations, :message, 3, "google.cloud.videointelligence.v1beta1.LabelLocation"
  end
  add_message "google.cloud.videointelligence.v1beta1.SafeSearchAnnotation" do
    optional :adult, :enum, 1, "google.cloud.videointelligence.v1beta1.Likelihood"
    optional :spoof, :enum, 2, "google.cloud.videointelligence.v1beta1.Likelihood"
    optional :medical, :enum, 3, "google.cloud.videointelligence.v1beta1.Likelihood"
    optional :violent, :enum, 4, "google.cloud.videointelligence.v1beta1.Likelihood"
    optional :racy, :enum, 5, "google.cloud.videointelligence.v1beta1.Likelihood"
    optional :time_offset, :int64, 6
  end
  add_message "google.cloud.videointelligence.v1beta1.BoundingBox" do
    optional :left, :int32, 1
    optional :right, :int32, 2
    optional :bottom, :int32, 3
    optional :top, :int32, 4
  end
  add_message "google.cloud.videointelligence.v1beta1.FaceLocation" do
    optional :bounding_box, :message, 1, "google.cloud.videointelligence.v1beta1.BoundingBox"
    optional :time_offset, :int64, 2
  end
  add_message "google.cloud.videointelligence.v1beta1.FaceAnnotation" do
    optional :thumbnail, :string, 1
    repeated :segments, :message, 2, "google.cloud.videointelligence.v1beta1.VideoSegment"
    repeated :locations, :message, 3, "google.cloud.videointelligence.v1beta1.FaceLocation"
  end
  add_message "google.cloud.videointelligence.v1beta1.VideoAnnotationResults" do
    optional :input_uri, :string, 1
    repeated :label_annotations, :message, 2, "google.cloud.videointelligence.v1beta1.LabelAnnotation"
    repeated :face_annotations, :message, 3, "google.cloud.videointelligence.v1beta1.FaceAnnotation"
    repeated :shot_annotations, :message, 4, "google.cloud.videointelligence.v1beta1.VideoSegment"
    repeated :safe_search_annotations, :message, 6, "google.cloud.videointelligence.v1beta1.SafeSearchAnnotation"
    optional :error, :message, 5, "google.rpc.Status"
  end
  add_message "google.cloud.videointelligence.v1beta1.AnnotateVideoResponse" do
    repeated :annotation_results, :message, 1, "google.cloud.videointelligence.v1beta1.VideoAnnotationResults"
  end
  add_message "google.cloud.videointelligence.v1beta1.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.v1beta1.AnnotateVideoProgress" do
    repeated :annotation_progress, :message, 1, "google.cloud.videointelligence.v1beta1.VideoAnnotationProgress"
  end
  add_enum "google.cloud.videointelligence.v1beta1.Feature" do
    value :FEATURE_UNSPECIFIED, 0
    value :LABEL_DETECTION, 1
    value :FACE_DETECTION, 2
    value :SHOT_CHANGE_DETECTION, 3
    value :SAFE_SEARCH_DETECTION, 4
  end
  add_enum "google.cloud.videointelligence.v1beta1.LabelLevel" do
    value :LABEL_LEVEL_UNSPECIFIED, 0
    value :VIDEO_LEVEL, 1
    value :SEGMENT_LEVEL, 2
    value :SHOT_LEVEL, 3
    value :FRAME_LEVEL, 4
  end
  add_enum "google.cloud.videointelligence.v1beta1.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.v1beta1.Likelihood" do
    value :UNKNOWN, 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 V1beta1
        AnnotateVideoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.AnnotateVideoRequest").msgclass
        VideoContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.VideoContext").msgclass
        VideoSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.VideoSegment").msgclass
        LabelLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.LabelLocation").msgclass
        LabelAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.LabelAnnotation").msgclass
        SafeSearchAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.SafeSearchAnnotation").msgclass
        BoundingBox = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.BoundingBox").msgclass
        FaceLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.FaceLocation").msgclass
        FaceAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.FaceAnnotation").msgclass
        VideoAnnotationResults = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.VideoAnnotationResults").msgclass
        AnnotateVideoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.AnnotateVideoResponse").msgclass
        VideoAnnotationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.VideoAnnotationProgress").msgclass
        AnnotateVideoProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.AnnotateVideoProgress").msgclass
        Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.Feature").enummodule
        LabelLevel = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.LabelLevel").enummodule
        LabelDetectionMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.LabelDetectionMode").enummodule
        Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.Likelihood").enummodule
      end
    end
  end
end
