# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: faro/proto/face_service.proto

require 'google/protobuf'

require 'faro/proto/image_pb'
require 'faro/proto/geometry_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("faro/proto/face_service.proto", :syntax => :proto3) do
    add_message "Attribute" do
      optional :key, :string, 1
      optional :description, :string, 2
      optional :buffer, :bytes, 3
      optional :fvalue, :float, 4
      optional :ivalue, :int32, 5
      optional :text, :string, 6
      optional :pickle, :bytes, 7
      optional :json, :bytes, 8
      optional :matrix, :message, 9, "Matrix"
      optional :vector, :message, 10, "Vector"
      optional :image, :message, 11, "Image"
      optional :point, :message, 12, "Point2D"
      optional :rect, :message, 13, "Rect"
      optional :xml, :bytes, 14
    end
    add_message "ErrorMessage" do
      optional :error_code, :int32, 3
      optional :error_message, :string, 4
    end
    add_message "Detection" do
      optional :score, :float, 1
      optional :location, :message, 2, "Rect"
      optional :detection_id, :int32, 3
      optional :detection_class, :string, 4
      repeated :attributes, :message, 5, "Attribute"
    end
    add_message "Landmark" do
      optional :landmark_id, :string, 1
      optional :location, :message, 2, "Point2D"
    end
    add_message "DetectionOptions" do
      optional :algorithm_id, :string, 1
      optional :best, :bool, 2
      optional :threshold, :float, 3
      optional :scale_levels, :int32, 4
      optional :scan_levels, :int32, 5
      optional :scan_overlap, :float, 6
      optional :min_size, :int32, 7
      optional :save_request, :bool, 9
      optional :debug, :bool, 10
      repeated :attributes, :message, 8, "Attribute"
    end
    add_message "ExtractOptions" do
      optional :algorithm_id, :string, 1
      optional :save_request, :bool, 2
      optional :debug, :bool, 3
      repeated :attributes, :message, 8, "Attribute"
    end
    add_message "EnrollOptions" do
      optional :save_request, :bool, 2
      optional :debug, :bool, 3
      repeated :attributes, :message, 8, "Attribute"
    end
    add_message "DetectionList" do
      repeated :detections, :message, 1, "Detection"
      optional :detection_time, :float, 2
      optional :image_width, :int32, 3
      optional :image_height, :int32, 4
      optional :detection_count, :int32, 5
      optional :options, :message, 6, "DetectionOptions"
    end
    add_message "MatchList" do
      repeated :match_list, :message, 1, "MatchInfo"
    end
    add_message "MatchInfo" do
      optional :score, :float, 1
      optional :image_id, :string, 2
      optional :detection_id, :string, 3
      optional :subject_id, :string, 4
      optional :subject_name, :string, 5
      optional :face, :message, 6, "Image"
    end
    add_message "TemplateInput" do
      optional :im, :message, 1, "Image"
      repeated :detections, :message, 2, "Rect"
    end
    add_message "FaceTemplate" do
      optional :data, :message, 1, "Vector"
      optional :buffer, :bytes, 2
    end
    add_message "TemplateList" do
      repeated :templates, :message, 1, "FaceTemplate"
    end
    add_message "AccessRecord" do
      optional :datetime, :float, 1
      optional :notes, :string, 2
      optional :credential, :string, 3
      repeated :metadata, :message, 4, "Attribute"
    end
    add_message "FaceRecord" do
      optional :subject_id, :string, 1
      optional :name, :string, 5
      optional :source, :string, 4
      optional :frame, :int64, 14
      optional :notes, :string, 6
      optional :gallery_key, :string, 15
      optional :collection_date, :float, 16
      optional :enrollment_date, :float, 17
      repeated :metadata, :message, 18, "Attribute"
      repeated :access_records, :message, 19, "AccessRecord"
      optional :view, :message, 7, "Image"
      optional :aligned, :message, 9, "Image"
      optional :detection, :message, 2, "Detection"
      repeated :landmarks, :message, 8, "Landmark"
      repeated :attributes, :message, 10, "Attribute"
      repeated :internal_data, :message, 11, "Attribute"
      optional :template, :message, 3, "FaceTemplate"
      optional :score, :float, 12
      optional :search_results, :message, 13, "FaceRecordList"
    end
    add_message "FaceRecordList" do
      repeated :face_records, :message, 1, "FaceRecord"
    end
    add_message "VerificationRequest" do
      optional :gallery, :string, 1
      optional :subject_id, :string, 2
      repeated :face_record, :message, 3, "FaceRecord"
    end
    add_message "VerificationResponse" do
      optional :error_code, :int32, 4
      optional :error_message, :string, 5
      optional :success, :bool, 1
      optional :confidence, :float, 2
      repeated :matches, :message, 3, "FaceRecord"
    end
    add_message "SearchRequest" do
      optional :search_gallery, :string, 1
      optional :probes, :message, 3, "FaceRecordList"
      optional :max_results, :int32, 4
      optional :threshold, :float, 5
    end
    add_message "SearchResponse" do
      optional :message, :message, 1, "ErrorMessage"
      optional :probes, :message, 2, "FaceRecordList"
    end
    add_message "EnrollRequest" do
      optional :enroll_gallery, :string, 1
      optional :records, :message, 2, "FaceRecordList"
      optional :enroll_options, :message, 10, "EnrollOptions"
    end
    add_message "DetectRequest" do
      optional :image, :message, 1, "Image"
      optional :source, :string, 2
      optional :frame, :int64, 3
      optional :subject_id, :string, 4
      optional :subject_name, :string, 5
      optional :detect_options, :message, 8, "DetectionOptions"
    end
    add_message "ExtractRequest" do
      optional :image, :message, 1, "Image"
      optional :records, :message, 4, "FaceRecordList"
      optional :extract_options, :message, 9, "ExtractOptions"
    end
    add_message "ScoreRequest" do
      optional :face_probes, :message, 1, "FaceRecordList"
      optional :face_gallery, :message, 2, "FaceRecordList"
      optional :template_probes, :message, 3, "TemplateList"
      optional :template_gallery, :message, 4, "TemplateList"
    end
    add_message "DetectExtractRequest" do
      optional :detect_request, :message, 1, "DetectRequest"
      optional :extract_request, :message, 2, "ExtractRequest"
    end
    add_message "DetectExtractEnrollRequest" do
      optional :detect_request, :message, 1, "DetectRequest"
      optional :extract_request, :message, 2, "ExtractRequest"
      optional :enroll_request, :message, 3, "EnrollRequest"
    end
    add_message "DetectExtractSearchRequest" do
      optional :detect_request, :message, 1, "DetectRequest"
      optional :extract_request, :message, 2, "ExtractRequest"
      optional :search_request, :message, 3, "SearchRequest"
    end
    add_message "FaceStatusRequest" do
    end
    add_message "FaceServiceInfo" do
      optional :status, :enum, 1, "ServiceStatus"
      optional :worker_count, :int32, 2
      optional :detection_support, :bool, 3
      optional :extract_support, :bool, 4
      optional :score_support, :bool, 5
      optional :attribute_support, :bool, 6
      optional :score_type, :enum, 7, "ScoreType"
      optional :detection_threshold, :float, 8
      optional :match_threshold, :float, 9
      optional :algorithm, :string, 10
      optional :notes, :string, 11
    end
    add_message "GalleryListRequest" do
    end
    add_message "GalleryDeleteRequest" do
      optional :gallery_name, :string, 1
    end
    add_message "EnrollmentListRequest" do
      optional :gallery_name, :string, 1
    end
    add_message "EnrollmentInfo" do
      optional :subject_id, :string, 1
      optional :name, :string, 2
      optional :face_count, :int32, 3
    end
    add_message "EnrollmentListResponse" do
      optional :gallery_name, :string, 1
      repeated :enrollments, :message, 2, "EnrollmentInfo"
    end
    add_message "EnrollmentDeleteRequest" do
      optional :gallery_name, :string, 1
      optional :subject_id, :string, 2
    end
    add_message "GalleryInfo" do
      optional :gallery_name, :string, 1
      optional :face_count, :int64, 2
    end
    add_message "GalleryList" do
      repeated :galleries, :message, 1, "GalleryInfo"
    end
    add_message "Empty" do
    end
    add_enum "ServiceStatus" do
      value :UNKNOWN, 0
      value :READY, 1
      value :ERROR, 2
      value :BUSY, 3
    end
    add_enum "DataType" do
      value :EMPTY, 0
      value :STRING, 1
      value :INT, 2
      value :FLOAT, 3
      value :BYTES, 4
      value :VECTOR, 5
      value :PICKLE, 6
      value :XML, 7
      value :JSON, 8
    end
    add_enum "ScoreType" do
      value :SERVER, 0
      value :L1, 1
      value :L2, 2
      value :NEG_DOT, 3
    end
  end
end

Attribute = Google::Protobuf::DescriptorPool.generated_pool.lookup("Attribute").msgclass
ErrorMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("ErrorMessage").msgclass
Detection = Google::Protobuf::DescriptorPool.generated_pool.lookup("Detection").msgclass
Landmark = Google::Protobuf::DescriptorPool.generated_pool.lookup("Landmark").msgclass
DetectionOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("DetectionOptions").msgclass
ExtractOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("ExtractOptions").msgclass
EnrollOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("EnrollOptions").msgclass
DetectionList = Google::Protobuf::DescriptorPool.generated_pool.lookup("DetectionList").msgclass
MatchList = Google::Protobuf::DescriptorPool.generated_pool.lookup("MatchList").msgclass
MatchInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("MatchInfo").msgclass
TemplateInput = Google::Protobuf::DescriptorPool.generated_pool.lookup("TemplateInput").msgclass
FaceTemplate = Google::Protobuf::DescriptorPool.generated_pool.lookup("FaceTemplate").msgclass
TemplateList = Google::Protobuf::DescriptorPool.generated_pool.lookup("TemplateList").msgclass
AccessRecord = Google::Protobuf::DescriptorPool.generated_pool.lookup("AccessRecord").msgclass
FaceRecord = Google::Protobuf::DescriptorPool.generated_pool.lookup("FaceRecord").msgclass
FaceRecordList = Google::Protobuf::DescriptorPool.generated_pool.lookup("FaceRecordList").msgclass
VerificationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("VerificationRequest").msgclass
VerificationResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("VerificationResponse").msgclass
SearchRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("SearchRequest").msgclass
SearchResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("SearchResponse").msgclass
EnrollRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("EnrollRequest").msgclass
DetectRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("DetectRequest").msgclass
ExtractRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("ExtractRequest").msgclass
ScoreRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("ScoreRequest").msgclass
DetectExtractRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("DetectExtractRequest").msgclass
DetectExtractEnrollRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("DetectExtractEnrollRequest").msgclass
DetectExtractSearchRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("DetectExtractSearchRequest").msgclass
FaceStatusRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("FaceStatusRequest").msgclass
FaceServiceInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("FaceServiceInfo").msgclass
GalleryListRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("GalleryListRequest").msgclass
GalleryDeleteRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("GalleryDeleteRequest").msgclass
EnrollmentListRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("EnrollmentListRequest").msgclass
EnrollmentInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("EnrollmentInfo").msgclass
EnrollmentListResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("EnrollmentListResponse").msgclass
EnrollmentDeleteRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("EnrollmentDeleteRequest").msgclass
GalleryInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("GalleryInfo").msgclass
GalleryList = Google::Protobuf::DescriptorPool.generated_pool.lookup("GalleryList").msgclass
Empty = Google::Protobuf::DescriptorPool.generated_pool.lookup("Empty").msgclass
ServiceStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("ServiceStatus").enummodule
DataType = Google::Protobuf::DescriptorPool.generated_pool.lookup("DataType").enummodule
ScoreType = Google::Protobuf::DescriptorPool.generated_pool.lookup("ScoreType").enummodule
