// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v5.29.3
// source: document_parser.proto

package docparser

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type ParseRequest struct {
	state           protoimpl.MessageState `protogen:"open.v1"`
	FileUrl         string                 `protobuf:"bytes,1,opt,name=file_url,json=fileUrl,proto3" json:"file_url,omitempty"`
	FileName        string                 `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
	FileType        string                 `protobuf:"bytes,3,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"`
	ParserEngine    string                 `protobuf:"bytes,4,opt,name=parser_engine,json=parserEngine,proto3" json:"parser_engine,omitempty"`
	EngineOverrides map[string]string      `protobuf:"bytes,5,rep,name=engine_overrides,json=engineOverrides,proto3" json:"engine_overrides,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// VLM 配置（可选）
	VlmConfig     *VLMConfig `protobuf:"bytes,6,opt,name=vlm_config,json=vlmConfig,proto3" json:"vlm_config,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ParseRequest) Reset() {
	*x = ParseRequest{}
	mi := &file_document_parser_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ParseRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ParseRequest) ProtoMessage() {}

func (x *ParseRequest) ProtoReflect() protoreflect.Message {
	mi := &file_document_parser_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ParseRequest.ProtoReflect.Descriptor instead.
func (*ParseRequest) Descriptor() ([]byte, []int) {
	return file_document_parser_proto_rawDescGZIP(), []int{0}
}

func (x *ParseRequest) GetFileUrl() string {
	if x != nil {
		return x.FileUrl
	}
	return ""
}

func (x *ParseRequest) GetFileName() string {
	if x != nil {
		return x.FileName
	}
	return ""
}

func (x *ParseRequest) GetFileType() string {
	if x != nil {
		return x.FileType
	}
	return ""
}

func (x *ParseRequest) GetParserEngine() string {
	if x != nil {
		return x.ParserEngine
	}
	return ""
}

func (x *ParseRequest) GetEngineOverrides() map[string]string {
	if x != nil {
		return x.EngineOverrides
	}
	return nil
}

func (x *ParseRequest) GetVlmConfig() *VLMConfig {
	if x != nil {
		return x.VlmConfig
	}
	return nil
}

type VLMConfig struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Enabled       bool                   `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`               // 是否启用 VLM
	Provider      string                 `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`              // VLM 提供商: openai, anthropic, local 等
	Model         string                 `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"`                    // 模型名称
	ApiKey        string                 `protobuf:"bytes,4,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`    // API Key
	BaseUrl       string                 `protobuf:"bytes,5,opt,name=base_url,json=baseUrl,proto3" json:"base_url,omitempty"` // 自定义 API 地址
	Prompt        string                 `protobuf:"bytes,6,opt,name=prompt,proto3" json:"prompt,omitempty"`                  // 自定义提示词
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *VLMConfig) Reset() {
	*x = VLMConfig{}
	mi := &file_document_parser_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *VLMConfig) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*VLMConfig) ProtoMessage() {}

func (x *VLMConfig) ProtoReflect() protoreflect.Message {
	mi := &file_document_parser_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use VLMConfig.ProtoReflect.Descriptor instead.
func (*VLMConfig) Descriptor() ([]byte, []int) {
	return file_document_parser_proto_rawDescGZIP(), []int{1}
}

func (x *VLMConfig) GetEnabled() bool {
	if x != nil {
		return x.Enabled
	}
	return false
}

func (x *VLMConfig) GetProvider() string {
	if x != nil {
		return x.Provider
	}
	return ""
}

func (x *VLMConfig) GetModel() string {
	if x != nil {
		return x.Model
	}
	return ""
}

func (x *VLMConfig) GetApiKey() string {
	if x != nil {
		return x.ApiKey
	}
	return ""
}

func (x *VLMConfig) GetBaseUrl() string {
	if x != nil {
		return x.BaseUrl
	}
	return ""
}

func (x *VLMConfig) GetPrompt() string {
	if x != nil {
		return x.Prompt
	}
	return ""
}

type ParseResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Success       bool                   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Content       string                 `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	Message       string                 `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	ContentLength int32                  `protobuf:"varint,4,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"`
	FileType      string                 `protobuf:"bytes,5,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"`
	ParserEngine  string                 `protobuf:"bytes,6,opt,name=parser_engine,json=parserEngine,proto3" json:"parser_engine,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ParseResponse) Reset() {
	*x = ParseResponse{}
	mi := &file_document_parser_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ParseResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ParseResponse) ProtoMessage() {}

func (x *ParseResponse) ProtoReflect() protoreflect.Message {
	mi := &file_document_parser_proto_msgTypes[2]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ParseResponse.ProtoReflect.Descriptor instead.
func (*ParseResponse) Descriptor() ([]byte, []int) {
	return file_document_parser_proto_rawDescGZIP(), []int{2}
}

func (x *ParseResponse) GetSuccess() bool {
	if x != nil {
		return x.Success
	}
	return false
}

func (x *ParseResponse) GetContent() string {
	if x != nil {
		return x.Content
	}
	return ""
}

func (x *ParseResponse) GetMessage() string {
	if x != nil {
		return x.Message
	}
	return ""
}

func (x *ParseResponse) GetContentLength() int32 {
	if x != nil {
		return x.ContentLength
	}
	return 0
}

func (x *ParseResponse) GetFileType() string {
	if x != nil {
		return x.FileType
	}
	return ""
}

func (x *ParseResponse) GetParserEngine() string {
	if x != nil {
		return x.ParserEngine
	}
	return ""
}

type Empty struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Empty) Reset() {
	*x = Empty{}
	mi := &file_document_parser_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Empty) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Empty) ProtoMessage() {}

func (x *Empty) ProtoReflect() protoreflect.Message {
	mi := &file_document_parser_proto_msgTypes[3]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Empty.ProtoReflect.Descriptor instead.
func (*Empty) Descriptor() ([]byte, []int) {
	return file_document_parser_proto_rawDescGZIP(), []int{3}
}

type SupportedFormatsResponse struct {
	state                protoimpl.MessageState `protogen:"open.v1"`
	FileTypes            []string               `protobuf:"bytes,1,rep,name=file_types,json=fileTypes,proto3" json:"file_types,omitempty"`
	FileTypeDescriptions map[string]string      `protobuf:"bytes,2,rep,name=file_type_descriptions,json=fileTypeDescriptions,proto3" json:"file_type_descriptions,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	unknownFields        protoimpl.UnknownFields
	sizeCache            protoimpl.SizeCache
}

func (x *SupportedFormatsResponse) Reset() {
	*x = SupportedFormatsResponse{}
	mi := &file_document_parser_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *SupportedFormatsResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*SupportedFormatsResponse) ProtoMessage() {}

func (x *SupportedFormatsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_document_parser_proto_msgTypes[4]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use SupportedFormatsResponse.ProtoReflect.Descriptor instead.
func (*SupportedFormatsResponse) Descriptor() ([]byte, []int) {
	return file_document_parser_proto_rawDescGZIP(), []int{4}
}

func (x *SupportedFormatsResponse) GetFileTypes() []string {
	if x != nil {
		return x.FileTypes
	}
	return nil
}

func (x *SupportedFormatsResponse) GetFileTypeDescriptions() map[string]string {
	if x != nil {
		return x.FileTypeDescriptions
	}
	return nil
}

type EnginesResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Engines       []*EngineInfo          `protobuf:"bytes,1,rep,name=engines,proto3" json:"engines,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *EnginesResponse) Reset() {
	*x = EnginesResponse{}
	mi := &file_document_parser_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *EnginesResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*EnginesResponse) ProtoMessage() {}

func (x *EnginesResponse) ProtoReflect() protoreflect.Message {
	mi := &file_document_parser_proto_msgTypes[5]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use EnginesResponse.ProtoReflect.Descriptor instead.
func (*EnginesResponse) Descriptor() ([]byte, []int) {
	return file_document_parser_proto_rawDescGZIP(), []int{5}
}

func (x *EnginesResponse) GetEngines() []*EngineInfo {
	if x != nil {
		return x.Engines
	}
	return nil
}

type EngineInfo struct {
	state              protoimpl.MessageState `protogen:"open.v1"`
	Name               string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description        string                 `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	SupportedFileTypes []string               `protobuf:"bytes,3,rep,name=supported_file_types,json=supportedFileTypes,proto3" json:"supported_file_types,omitempty"`
	Available          bool                   `protobuf:"varint,4,opt,name=available,proto3" json:"available,omitempty"`
	UnavailableReason  string                 `protobuf:"bytes,5,opt,name=unavailable_reason,json=unavailableReason,proto3" json:"unavailable_reason,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

func (x *EngineInfo) Reset() {
	*x = EngineInfo{}
	mi := &file_document_parser_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *EngineInfo) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*EngineInfo) ProtoMessage() {}

func (x *EngineInfo) ProtoReflect() protoreflect.Message {
	mi := &file_document_parser_proto_msgTypes[6]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use EngineInfo.ProtoReflect.Descriptor instead.
func (*EngineInfo) Descriptor() ([]byte, []int) {
	return file_document_parser_proto_rawDescGZIP(), []int{6}
}

func (x *EngineInfo) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *EngineInfo) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *EngineInfo) GetSupportedFileTypes() []string {
	if x != nil {
		return x.SupportedFileTypes
	}
	return nil
}

func (x *EngineInfo) GetAvailable() bool {
	if x != nil {
		return x.Available
	}
	return false
}

func (x *EngineInfo) GetUnavailableReason() string {
	if x != nil {
		return x.UnavailableReason
	}
	return ""
}

var File_document_parser_proto protoreflect.FileDescriptor

const file_document_parser_proto_rawDesc = "" +
	"\n" +
	"\x15document_parser.proto\x12\tdocparser\"\xda\x02\n" +
	"\fParseRequest\x12\x19\n" +
	"\bfile_url\x18\x01 \x01(\tR\afileUrl\x12\x1b\n" +
	"\tfile_name\x18\x02 \x01(\tR\bfileName\x12\x1b\n" +
	"\tfile_type\x18\x03 \x01(\tR\bfileType\x12#\n" +
	"\rparser_engine\x18\x04 \x01(\tR\fparserEngine\x12W\n" +
	"\x10engine_overrides\x18\x05 \x03(\v2,.docparser.ParseRequest.EngineOverridesEntryR\x0fengineOverrides\x123\n" +
	"\n" +
	"vlm_config\x18\x06 \x01(\v2\x14.docparser.VLMConfigR\tvlmConfig\x1aB\n" +
	"\x14EngineOverridesEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xa3\x01\n" +
	"\tVLMConfig\x12\x18\n" +
	"\aenabled\x18\x01 \x01(\bR\aenabled\x12\x1a\n" +
	"\bprovider\x18\x02 \x01(\tR\bprovider\x12\x14\n" +
	"\x05model\x18\x03 \x01(\tR\x05model\x12\x17\n" +
	"\aapi_key\x18\x04 \x01(\tR\x06apiKey\x12\x19\n" +
	"\bbase_url\x18\x05 \x01(\tR\abaseUrl\x12\x16\n" +
	"\x06prompt\x18\x06 \x01(\tR\x06prompt\"\xc6\x01\n" +
	"\rParseResponse\x12\x18\n" +
	"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
	"\acontent\x18\x02 \x01(\tR\acontent\x12\x18\n" +
	"\amessage\x18\x03 \x01(\tR\amessage\x12%\n" +
	"\x0econtent_length\x18\x04 \x01(\x05R\rcontentLength\x12\x1b\n" +
	"\tfile_type\x18\x05 \x01(\tR\bfileType\x12#\n" +
	"\rparser_engine\x18\x06 \x01(\tR\fparserEngine\"\a\n" +
	"\x05Empty\"\xf7\x01\n" +
	"\x18SupportedFormatsResponse\x12\x1d\n" +
	"\n" +
	"file_types\x18\x01 \x03(\tR\tfileTypes\x12s\n" +
	"\x16file_type_descriptions\x18\x02 \x03(\v2=.docparser.SupportedFormatsResponse.FileTypeDescriptionsEntryR\x14fileTypeDescriptions\x1aG\n" +
	"\x19FileTypeDescriptionsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"B\n" +
	"\x0fEnginesResponse\x12/\n" +
	"\aengines\x18\x01 \x03(\v2\x15.docparser.EngineInfoR\aengines\"\xc1\x01\n" +
	"\n" +
	"EngineInfo\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x02 \x01(\tR\vdescription\x120\n" +
	"\x14supported_file_types\x18\x03 \x03(\tR\x12supportedFileTypes\x12\x1c\n" +
	"\tavailable\x18\x04 \x01(\bR\tavailable\x12-\n" +
	"\x12unavailable_reason\x18\x05 \x01(\tR\x11unavailableReason2\xde\x01\n" +
	"\x0eDocumentParser\x12B\n" +
	"\rParseDocument\x12\x17.docparser.ParseRequest\x1a\x18.docparser.ParseResponse\x12L\n" +
	"\x13GetSupportedFormats\x12\x10.docparser.Empty\x1a#.docparser.SupportedFormatsResponse\x12:\n" +
	"\n" +
	"GetEngines\x12\x10.docparser.Empty\x1a\x1a.docparser.EnginesResponseB\x1aZ\x18x-agents/proto/docparserb\x06proto3"

var (
	file_document_parser_proto_rawDescOnce sync.Once
	file_document_parser_proto_rawDescData []byte
)

func file_document_parser_proto_rawDescGZIP() []byte {
	file_document_parser_proto_rawDescOnce.Do(func() {
		file_document_parser_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_document_parser_proto_rawDesc), len(file_document_parser_proto_rawDesc)))
	})
	return file_document_parser_proto_rawDescData
}

var file_document_parser_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_document_parser_proto_goTypes = []any{
	(*ParseRequest)(nil),             // 0: docparser.ParseRequest
	(*VLMConfig)(nil),                // 1: docparser.VLMConfig
	(*ParseResponse)(nil),            // 2: docparser.ParseResponse
	(*Empty)(nil),                    // 3: docparser.Empty
	(*SupportedFormatsResponse)(nil), // 4: docparser.SupportedFormatsResponse
	(*EnginesResponse)(nil),          // 5: docparser.EnginesResponse
	(*EngineInfo)(nil),               // 6: docparser.EngineInfo
	nil,                              // 7: docparser.ParseRequest.EngineOverridesEntry
	nil,                              // 8: docparser.SupportedFormatsResponse.FileTypeDescriptionsEntry
}
var file_document_parser_proto_depIdxs = []int32{
	7, // 0: docparser.ParseRequest.engine_overrides:type_name -> docparser.ParseRequest.EngineOverridesEntry
	1, // 1: docparser.ParseRequest.vlm_config:type_name -> docparser.VLMConfig
	8, // 2: docparser.SupportedFormatsResponse.file_type_descriptions:type_name -> docparser.SupportedFormatsResponse.FileTypeDescriptionsEntry
	6, // 3: docparser.EnginesResponse.engines:type_name -> docparser.EngineInfo
	0, // 4: docparser.DocumentParser.ParseDocument:input_type -> docparser.ParseRequest
	3, // 5: docparser.DocumentParser.GetSupportedFormats:input_type -> docparser.Empty
	3, // 6: docparser.DocumentParser.GetEngines:input_type -> docparser.Empty
	2, // 7: docparser.DocumentParser.ParseDocument:output_type -> docparser.ParseResponse
	4, // 8: docparser.DocumentParser.GetSupportedFormats:output_type -> docparser.SupportedFormatsResponse
	5, // 9: docparser.DocumentParser.GetEngines:output_type -> docparser.EnginesResponse
	7, // [7:10] is the sub-list for method output_type
	4, // [4:7] is the sub-list for method input_type
	4, // [4:4] is the sub-list for extension type_name
	4, // [4:4] is the sub-list for extension extendee
	0, // [0:4] is the sub-list for field type_name
}

func init() { file_document_parser_proto_init() }
func file_document_parser_proto_init() {
	if File_document_parser_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_document_parser_proto_rawDesc), len(file_document_parser_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   9,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_document_parser_proto_goTypes,
		DependencyIndexes: file_document_parser_proto_depIdxs,
		MessageInfos:      file_document_parser_proto_msgTypes,
	}.Build()
	File_document_parser_proto = out.File
	file_document_parser_proto_goTypes = nil
	file_document_parser_proto_depIdxs = nil
}
