12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.23.0
- // protoc v3.11.4
- // source: filesystem.proto
- package filesystem
- import (
- context "context"
- proto "github.com/golang/protobuf/proto"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
- 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)
- )
- // This is a compile-time assertion that a sufficiently up-to-date version
- // of the legacy proto package is being used.
- const _ = proto.ProtoPackageIsVersion4
- type DomainReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- MetaFields []string `protobuf:"bytes,2,rep,name=metaFields,proto3" json:"metaFields,omitempty"` //必须元数据
- }
- func (x *DomainReq) Reset() {
- *x = DomainReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_filesystem_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DomainReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DomainReq) ProtoMessage() {}
- func (x *DomainReq) ProtoReflect() protoreflect.Message {
- mi := &file_filesystem_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use DomainReq.ProtoReflect.Descriptor instead.
- func (*DomainReq) Descriptor() ([]byte, []int) {
- return file_filesystem_proto_rawDescGZIP(), []int{0}
- }
- func (x *DomainReq) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *DomainReq) GetMetaFields() []string {
- if x != nil {
- return x.MetaFields
- }
- return nil
- }
- type DomainResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- State bool `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"`
- }
- func (x *DomainResp) Reset() {
- *x = DomainResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_filesystem_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DomainResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DomainResp) ProtoMessage() {}
- func (x *DomainResp) ProtoReflect() protoreflect.Message {
- mi := &file_filesystem_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use DomainResp.ProtoReflect.Descriptor instead.
- func (*DomainResp) Descriptor() ([]byte, []int) {
- return file_filesystem_proto_rawDescGZIP(), []int{1}
- }
- func (x *DomainResp) GetState() bool {
- if x != nil {
- return x.State
- }
- return false
- }
- //
- type SaveFileReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` //存入哪个buckets
- FileId string `protobuf:"bytes,2,opt,name=fileId,proto3" json:"fileId,omitempty"`
- Meta map[string]string `protobuf:"bytes,3,rep,name=meta,proto3" json:"meta,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` //元数据
- RawFileContent []byte `protobuf:"bytes,4,opt,name=rawFileContent,proto3" json:"rawFileContent,omitempty"` //文件内容
- }
- func (x *SaveFileReq) Reset() {
- *x = SaveFileReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_filesystem_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *SaveFileReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SaveFileReq) ProtoMessage() {}
- func (x *SaveFileReq) ProtoReflect() protoreflect.Message {
- mi := &file_filesystem_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use SaveFileReq.ProtoReflect.Descriptor instead.
- func (*SaveFileReq) Descriptor() ([]byte, []int) {
- return file_filesystem_proto_rawDescGZIP(), []int{2}
- }
- func (x *SaveFileReq) GetDomain() string {
- if x != nil {
- return x.Domain
- }
- return ""
- }
- func (x *SaveFileReq) GetFileId() string {
- if x != nil {
- return x.FileId
- }
- return ""
- }
- func (x *SaveFileReq) GetMeta() map[string]string {
- if x != nil {
- return x.Meta
- }
- return nil
- }
- func (x *SaveFileReq) GetRawFileContent() []byte {
- if x != nil {
- return x.RawFileContent
- }
- return nil
- }
- //
- type FileOpResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- State bool `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"`
- Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
- FileId string `protobuf:"bytes,3,opt,name=fileId,proto3" json:"fileId,omitempty"` //文件ID
- }
- func (x *FileOpResp) Reset() {
- *x = FileOpResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_filesystem_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *FileOpResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*FileOpResp) ProtoMessage() {}
- func (x *FileOpResp) ProtoReflect() protoreflect.Message {
- mi := &file_filesystem_proto_msgTypes[3]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use FileOpResp.ProtoReflect.Descriptor instead.
- func (*FileOpResp) Descriptor() ([]byte, []int) {
- return file_filesystem_proto_rawDescGZIP(), []int{3}
- }
- func (x *FileOpResp) GetState() bool {
- if x != nil {
- return x.State
- }
- return false
- }
- func (x *FileOpResp) GetDomain() string {
- if x != nil {
- return x.Domain
- }
- return ""
- }
- func (x *FileOpResp) GetFileId() string {
- if x != nil {
- return x.FileId
- }
- return ""
- }
- //
- type UpdateFileMetaReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` //存入哪个buckets
- FileId string `protobuf:"bytes,2,opt,name=fileId,proto3" json:"fileId,omitempty"`
- Meta map[string]string `protobuf:"bytes,3,rep,name=meta,proto3" json:"meta,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` //元数据
- }
- func (x *UpdateFileMetaReq) Reset() {
- *x = UpdateFileMetaReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_filesystem_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UpdateFileMetaReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UpdateFileMetaReq) ProtoMessage() {}
- func (x *UpdateFileMetaReq) ProtoReflect() protoreflect.Message {
- mi := &file_filesystem_proto_msgTypes[4]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use UpdateFileMetaReq.ProtoReflect.Descriptor instead.
- func (*UpdateFileMetaReq) Descriptor() ([]byte, []int) {
- return file_filesystem_proto_rawDescGZIP(), []int{4}
- }
- func (x *UpdateFileMetaReq) GetDomain() string {
- if x != nil {
- return x.Domain
- }
- return ""
- }
- func (x *UpdateFileMetaReq) GetFileId() string {
- if x != nil {
- return x.FileId
- }
- return ""
- }
- func (x *UpdateFileMetaReq) GetMeta() map[string]string {
- if x != nil {
- return x.Meta
- }
- return nil
- }
- //
- type LoadFileReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` //存入哪个buckets
- FileId string `protobuf:"bytes,2,opt,name=fileId,proto3" json:"fileId,omitempty"`
- }
- func (x *LoadFileReq) Reset() {
- *x = LoadFileReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_filesystem_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *LoadFileReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*LoadFileReq) ProtoMessage() {}
- func (x *LoadFileReq) ProtoReflect() protoreflect.Message {
- mi := &file_filesystem_proto_msgTypes[5]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use LoadFileReq.ProtoReflect.Descriptor instead.
- func (*LoadFileReq) Descriptor() ([]byte, []int) {
- return file_filesystem_proto_rawDescGZIP(), []int{5}
- }
- func (x *LoadFileReq) GetDomain() string {
- if x != nil {
- return x.Domain
- }
- return ""
- }
- func (x *LoadFileReq) GetFileId() string {
- if x != nil {
- return x.FileId
- }
- return ""
- }
- //
- type LoadFileResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Meta map[string]string `protobuf:"bytes,2,rep,name=meta,proto3" json:"meta,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` //元数据
- RawFileContent []byte `protobuf:"bytes,3,opt,name=rawFileContent,proto3" json:"rawFileContent,omitempty"` //文件内容
- }
- func (x *LoadFileResp) Reset() {
- *x = LoadFileResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_filesystem_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *LoadFileResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*LoadFileResp) ProtoMessage() {}
- func (x *LoadFileResp) ProtoReflect() protoreflect.Message {
- mi := &file_filesystem_proto_msgTypes[6]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use LoadFileResp.ProtoReflect.Descriptor instead.
- func (*LoadFileResp) Descriptor() ([]byte, []int) {
- return file_filesystem_proto_rawDescGZIP(), []int{6}
- }
- func (x *LoadFileResp) GetMeta() map[string]string {
- if x != nil {
- return x.Meta
- }
- return nil
- }
- func (x *LoadFileResp) GetRawFileContent() []byte {
- if x != nil {
- return x.RawFileContent
- }
- return nil
- }
- //
- type LoadFileMetaResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Meta map[string]string `protobuf:"bytes,2,rep,name=meta,proto3" json:"meta,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` //元数据
- }
- func (x *LoadFileMetaResp) Reset() {
- *x = LoadFileMetaResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_filesystem_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *LoadFileMetaResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*LoadFileMetaResp) ProtoMessage() {}
- func (x *LoadFileMetaResp) ProtoReflect() protoreflect.Message {
- mi := &file_filesystem_proto_msgTypes[7]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use LoadFileMetaResp.ProtoReflect.Descriptor instead.
- func (*LoadFileMetaResp) Descriptor() ([]byte, []int) {
- return file_filesystem_proto_rawDescGZIP(), []int{7}
- }
- func (x *LoadFileMetaResp) GetMeta() map[string]string {
- if x != nil {
- return x.Meta
- }
- return nil
- }
- type OssUrlResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- OssUrl string `protobuf:"bytes,1,opt,name=ossUrl,proto3" json:"ossUrl,omitempty"`
- }
- func (x *OssUrlResp) Reset() {
- *x = OssUrlResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_filesystem_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *OssUrlResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*OssUrlResp) ProtoMessage() {}
- func (x *OssUrlResp) ProtoReflect() protoreflect.Message {
- mi := &file_filesystem_proto_msgTypes[8]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use OssUrlResp.ProtoReflect.Descriptor instead.
- func (*OssUrlResp) Descriptor() ([]byte, []int) {
- return file_filesystem_proto_rawDescGZIP(), []int{8}
- }
- func (x *OssUrlResp) GetOssUrl() string {
- if x != nil {
- return x.OssUrl
- }
- return ""
- }
- var File_filesystem_proto protoreflect.FileDescriptor
- var file_filesystem_proto_rawDesc = []byte{
- 0x0a, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x70, 0x72, 0x6f,
- 0x74, 0x6f, 0x12, 0x0a, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22, 0x3f,
- 0x0a, 0x09, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x6e,
- 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
- 0x1e, 0x0a, 0x0a, 0x6d, 0x65, 0x74, 0x61, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x02, 0x20,
- 0x03, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x65, 0x74, 0x61, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22,
- 0x22, 0x0a, 0x0a, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a,
- 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x73, 0x74,
- 0x61, 0x74, 0x65, 0x22, 0xd5, 0x01, 0x0a, 0x0b, 0x53, 0x61, 0x76, 0x65, 0x46, 0x69, 0x6c, 0x65,
- 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66,
- 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c,
- 0x65, 0x49, 0x64, 0x12, 0x35, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28,
- 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x53,
- 0x61, 0x76, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x45,
- 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x26, 0x0a, 0x0e, 0x72, 0x61,
- 0x77, 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01,
- 0x28, 0x0c, 0x52, 0x0e, 0x72, 0x61, 0x77, 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65,
- 0x6e, 0x74, 0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
- 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
- 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x52, 0x0a, 0x0a, 0x46,
- 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61,
- 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12,
- 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49,
- 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x22,
- 0xb9, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65,
- 0x74, 0x61, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x16, 0x0a,
- 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66,
- 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x3b, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20,
- 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d,
- 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x52,
- 0x65, 0x71, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6d, 0x65,
- 0x74, 0x61, 0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
- 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
- 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3d, 0x0a, 0x0b, 0x4c,
- 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f,
- 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61,
- 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x22, 0xa7, 0x01, 0x0a, 0x0c, 0x4c,
- 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x36, 0x0a, 0x04, 0x6d,
- 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, 0x69, 0x6c, 0x65,
- 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52,
- 0x65, 0x73, 0x70, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6d,
- 0x65, 0x74, 0x61, 0x12, 0x26, 0x0a, 0x0e, 0x72, 0x61, 0x77, 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f,
- 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x72, 0x61, 0x77,
- 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x1a, 0x37, 0x0a, 0x09, 0x4d,
- 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
- 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
- 0x3a, 0x02, 0x38, 0x01, 0x22, 0x87, 0x01, 0x0a, 0x10, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c,
- 0x65, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3a, 0x0a, 0x04, 0x6d, 0x65, 0x74,
- 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79,
- 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74,
- 0x61, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
- 0x04, 0x6d, 0x65, 0x74, 0x61, 0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74,
- 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x24,
- 0x0a, 0x0a, 0x4f, 0x73, 0x73, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06,
- 0x6f, 0x73, 0x73, 0x55, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x73,
- 0x73, 0x55, 0x72, 0x6c, 0x32, 0xd5, 0x04, 0x0a, 0x0a, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x79, 0x73,
- 0x74, 0x65, 0x6d, 0x12, 0x3d, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x6d,
- 0x61, 0x69, 0x6e, 0x12, 0x15, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d,
- 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x66, 0x69, 0x6c,
- 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65,
- 0x73, 0x70, 0x12, 0x41, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x6d, 0x61,
- 0x69, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x15, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73,
- 0x74, 0x65, 0x6d, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e,
- 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69,
- 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3d, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44,
- 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x15, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74,
- 0x65, 0x6d, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x66,
- 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
- 0x52, 0x65, 0x73, 0x70, 0x12, 0x3b, 0x0a, 0x08, 0x53, 0x61, 0x76, 0x65, 0x46, 0x69, 0x6c, 0x65,
- 0x12, 0x17, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x53, 0x61,
- 0x76, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x66, 0x69, 0x6c, 0x65,
- 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x52, 0x65, 0x73,
- 0x70, 0x12, 0x47, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x4d,
- 0x65, 0x74, 0x61, 0x12, 0x1d, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d,
- 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x52,
- 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e,
- 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3d, 0x0a, 0x0a, 0x44, 0x65,
- 0x6c, 0x65, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x17, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73,
- 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65,
- 0x71, 0x1a, 0x16, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x46,
- 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3c, 0x0a, 0x07, 0x47, 0x65, 0x74,
- 0x46, 0x69, 0x6c, 0x65, 0x12, 0x17, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65,
- 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e,
- 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46,
- 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x44, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x46, 0x69,
- 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x17, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73,
- 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a,
- 0x1c, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61,
- 0x64, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3d, 0x0a,
- 0x0a, 0x47, 0x65, 0x74, 0x4f, 0x73, 0x73, 0x55, 0x72, 0x69, 0x6c, 0x12, 0x17, 0x2e, 0x66, 0x69,
- 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c,
- 0x65, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65,
- 0x6d, 0x2e, 0x4f, 0x73, 0x73, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x62, 0x06, 0x70, 0x72,
- 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_filesystem_proto_rawDescOnce sync.Once
- file_filesystem_proto_rawDescData = file_filesystem_proto_rawDesc
- )
- func file_filesystem_proto_rawDescGZIP() []byte {
- file_filesystem_proto_rawDescOnce.Do(func() {
- file_filesystem_proto_rawDescData = protoimpl.X.CompressGZIP(file_filesystem_proto_rawDescData)
- })
- return file_filesystem_proto_rawDescData
- }
- var file_filesystem_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
- var file_filesystem_proto_goTypes = []interface{}{
- (*DomainReq)(nil), // 0: filesystem.DomainReq
- (*DomainResp)(nil), // 1: filesystem.DomainResp
- (*SaveFileReq)(nil), // 2: filesystem.SaveFileReq
- (*FileOpResp)(nil), // 3: filesystem.FileOpResp
- (*UpdateFileMetaReq)(nil), // 4: filesystem.UpdateFileMetaReq
- (*LoadFileReq)(nil), // 5: filesystem.LoadFileReq
- (*LoadFileResp)(nil), // 6: filesystem.LoadFileResp
- (*LoadFileMetaResp)(nil), // 7: filesystem.LoadFileMetaResp
- (*OssUrlResp)(nil), // 8: filesystem.OssUrlResp
- nil, // 9: filesystem.SaveFileReq.MetaEntry
- nil, // 10: filesystem.UpdateFileMetaReq.MetaEntry
- nil, // 11: filesystem.LoadFileResp.MetaEntry
- nil, // 12: filesystem.LoadFileMetaResp.MetaEntry
- }
- var file_filesystem_proto_depIdxs = []int32{
- 9, // 0: filesystem.SaveFileReq.meta:type_name -> filesystem.SaveFileReq.MetaEntry
- 10, // 1: filesystem.UpdateFileMetaReq.meta:type_name -> filesystem.UpdateFileMetaReq.MetaEntry
- 11, // 2: filesystem.LoadFileResp.meta:type_name -> filesystem.LoadFileResp.MetaEntry
- 12, // 3: filesystem.LoadFileMetaResp.meta:type_name -> filesystem.LoadFileMetaResp.MetaEntry
- 0, // 4: filesystem.FileSystem.CreateDomain:input_type -> filesystem.DomainReq
- 0, // 5: filesystem.FileSystem.UpdateDomainMeta:input_type -> filesystem.DomainReq
- 0, // 6: filesystem.FileSystem.DeleteDomain:input_type -> filesystem.DomainReq
- 2, // 7: filesystem.FileSystem.SaveFile:input_type -> filesystem.SaveFileReq
- 4, // 8: filesystem.FileSystem.UpdateFileMeta:input_type -> filesystem.UpdateFileMetaReq
- 5, // 9: filesystem.FileSystem.DeleteFile:input_type -> filesystem.LoadFileReq
- 5, // 10: filesystem.FileSystem.GetFile:input_type -> filesystem.LoadFileReq
- 5, // 11: filesystem.FileSystem.GetFileMeta:input_type -> filesystem.LoadFileReq
- 5, // 12: filesystem.FileSystem.GetOssUril:input_type -> filesystem.LoadFileReq
- 1, // 13: filesystem.FileSystem.CreateDomain:output_type -> filesystem.DomainResp
- 1, // 14: filesystem.FileSystem.UpdateDomainMeta:output_type -> filesystem.DomainResp
- 1, // 15: filesystem.FileSystem.DeleteDomain:output_type -> filesystem.DomainResp
- 3, // 16: filesystem.FileSystem.SaveFile:output_type -> filesystem.FileOpResp
- 3, // 17: filesystem.FileSystem.UpdateFileMeta:output_type -> filesystem.FileOpResp
- 3, // 18: filesystem.FileSystem.DeleteFile:output_type -> filesystem.FileOpResp
- 6, // 19: filesystem.FileSystem.GetFile:output_type -> filesystem.LoadFileResp
- 7, // 20: filesystem.FileSystem.GetFileMeta:output_type -> filesystem.LoadFileMetaResp
- 8, // 21: filesystem.FileSystem.GetOssUril:output_type -> filesystem.OssUrlResp
- 13, // [13:22] is the sub-list for method output_type
- 4, // [4:13] 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_filesystem_proto_init() }
- func file_filesystem_proto_init() {
- if File_filesystem_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_filesystem_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DomainReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_filesystem_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DomainResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_filesystem_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*SaveFileReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_filesystem_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*FileOpResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_filesystem_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UpdateFileMetaReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_filesystem_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*LoadFileReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_filesystem_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*LoadFileResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_filesystem_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*LoadFileMetaResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_filesystem_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*OssUrlResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_filesystem_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 13,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_filesystem_proto_goTypes,
- DependencyIndexes: file_filesystem_proto_depIdxs,
- MessageInfos: file_filesystem_proto_msgTypes,
- }.Build()
- File_filesystem_proto = out.File
- file_filesystem_proto_rawDesc = nil
- file_filesystem_proto_goTypes = nil
- file_filesystem_proto_depIdxs = nil
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConnInterface
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion6
- // FileSystemClient is the client API for FileSystem service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type FileSystemClient interface {
- //创建域
- CreateDomain(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error)
- //更新域
- UpdateDomainMeta(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error)
- //删除域
- DeleteDomain(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error)
- //保存文件
- SaveFile(ctx context.Context, in *SaveFileReq, opts ...grpc.CallOption) (*FileOpResp, error)
- //更新文件元数据
- UpdateFileMeta(ctx context.Context, in *UpdateFileMetaReq, opts ...grpc.CallOption) (*FileOpResp, error)
- //删除文件
- DeleteFile(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*FileOpResp, error)
- //获取文件
- GetFile(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*LoadFileResp, error)
- //获取文件元数据
- GetFileMeta(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*LoadFileMetaResp, error)
- //获取签名OSSURL
- GetOssUril(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*OssUrlResp, error)
- }
- type fileSystemClient struct {
- cc grpc.ClientConnInterface
- }
- func NewFileSystemClient(cc grpc.ClientConnInterface) FileSystemClient {
- return &fileSystemClient{cc}
- }
- func (c *fileSystemClient) CreateDomain(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error) {
- out := new(DomainResp)
- err := c.cc.Invoke(ctx, "/filesystem.FileSystem/CreateDomain", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *fileSystemClient) UpdateDomainMeta(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error) {
- out := new(DomainResp)
- err := c.cc.Invoke(ctx, "/filesystem.FileSystem/UpdateDomainMeta", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *fileSystemClient) DeleteDomain(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error) {
- out := new(DomainResp)
- err := c.cc.Invoke(ctx, "/filesystem.FileSystem/DeleteDomain", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *fileSystemClient) SaveFile(ctx context.Context, in *SaveFileReq, opts ...grpc.CallOption) (*FileOpResp, error) {
- out := new(FileOpResp)
- err := c.cc.Invoke(ctx, "/filesystem.FileSystem/SaveFile", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *fileSystemClient) UpdateFileMeta(ctx context.Context, in *UpdateFileMetaReq, opts ...grpc.CallOption) (*FileOpResp, error) {
- out := new(FileOpResp)
- err := c.cc.Invoke(ctx, "/filesystem.FileSystem/UpdateFileMeta", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *fileSystemClient) DeleteFile(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*FileOpResp, error) {
- out := new(FileOpResp)
- err := c.cc.Invoke(ctx, "/filesystem.FileSystem/DeleteFile", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *fileSystemClient) GetFile(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*LoadFileResp, error) {
- out := new(LoadFileResp)
- err := c.cc.Invoke(ctx, "/filesystem.FileSystem/GetFile", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *fileSystemClient) GetFileMeta(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*LoadFileMetaResp, error) {
- out := new(LoadFileMetaResp)
- err := c.cc.Invoke(ctx, "/filesystem.FileSystem/GetFileMeta", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *fileSystemClient) GetOssUril(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*OssUrlResp, error) {
- out := new(OssUrlResp)
- err := c.cc.Invoke(ctx, "/filesystem.FileSystem/GetOssUril", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // FileSystemServer is the server API for FileSystem service.
- type FileSystemServer interface {
- //创建域
- CreateDomain(context.Context, *DomainReq) (*DomainResp, error)
- //更新域
- UpdateDomainMeta(context.Context, *DomainReq) (*DomainResp, error)
- //删除域
- DeleteDomain(context.Context, *DomainReq) (*DomainResp, error)
- //保存文件
- SaveFile(context.Context, *SaveFileReq) (*FileOpResp, error)
- //更新文件元数据
- UpdateFileMeta(context.Context, *UpdateFileMetaReq) (*FileOpResp, error)
- //删除文件
- DeleteFile(context.Context, *LoadFileReq) (*FileOpResp, error)
- //获取文件
- GetFile(context.Context, *LoadFileReq) (*LoadFileResp, error)
- //获取文件元数据
- GetFileMeta(context.Context, *LoadFileReq) (*LoadFileMetaResp, error)
- //获取签名OSSURL
- GetOssUril(context.Context, *LoadFileReq) (*OssUrlResp, error)
- }
- // UnimplementedFileSystemServer can be embedded to have forward compatible implementations.
- type UnimplementedFileSystemServer struct {
- }
- func (*UnimplementedFileSystemServer) CreateDomain(context.Context, *DomainReq) (*DomainResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CreateDomain not implemented")
- }
- func (*UnimplementedFileSystemServer) UpdateDomainMeta(context.Context, *DomainReq) (*DomainResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateDomainMeta not implemented")
- }
- func (*UnimplementedFileSystemServer) DeleteDomain(context.Context, *DomainReq) (*DomainResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeleteDomain not implemented")
- }
- func (*UnimplementedFileSystemServer) SaveFile(context.Context, *SaveFileReq) (*FileOpResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SaveFile not implemented")
- }
- func (*UnimplementedFileSystemServer) UpdateFileMeta(context.Context, *UpdateFileMetaReq) (*FileOpResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateFileMeta not implemented")
- }
- func (*UnimplementedFileSystemServer) DeleteFile(context.Context, *LoadFileReq) (*FileOpResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeleteFile not implemented")
- }
- func (*UnimplementedFileSystemServer) GetFile(context.Context, *LoadFileReq) (*LoadFileResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetFile not implemented")
- }
- func (*UnimplementedFileSystemServer) GetFileMeta(context.Context, *LoadFileReq) (*LoadFileMetaResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetFileMeta not implemented")
- }
- func (*UnimplementedFileSystemServer) GetOssUril(context.Context, *LoadFileReq) (*OssUrlResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetOssUril not implemented")
- }
- func RegisterFileSystemServer(s *grpc.Server, srv FileSystemServer) {
- s.RegisterService(&_FileSystem_serviceDesc, srv)
- }
- func _FileSystem_CreateDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DomainReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(FileSystemServer).CreateDomain(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/filesystem.FileSystem/CreateDomain",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(FileSystemServer).CreateDomain(ctx, req.(*DomainReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _FileSystem_UpdateDomainMeta_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DomainReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(FileSystemServer).UpdateDomainMeta(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/filesystem.FileSystem/UpdateDomainMeta",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(FileSystemServer).UpdateDomainMeta(ctx, req.(*DomainReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _FileSystem_DeleteDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DomainReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(FileSystemServer).DeleteDomain(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/filesystem.FileSystem/DeleteDomain",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(FileSystemServer).DeleteDomain(ctx, req.(*DomainReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _FileSystem_SaveFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SaveFileReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(FileSystemServer).SaveFile(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/filesystem.FileSystem/SaveFile",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(FileSystemServer).SaveFile(ctx, req.(*SaveFileReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _FileSystem_UpdateFileMeta_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UpdateFileMetaReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(FileSystemServer).UpdateFileMeta(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/filesystem.FileSystem/UpdateFileMeta",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(FileSystemServer).UpdateFileMeta(ctx, req.(*UpdateFileMetaReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _FileSystem_DeleteFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(LoadFileReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(FileSystemServer).DeleteFile(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/filesystem.FileSystem/DeleteFile",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(FileSystemServer).DeleteFile(ctx, req.(*LoadFileReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _FileSystem_GetFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(LoadFileReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(FileSystemServer).GetFile(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/filesystem.FileSystem/GetFile",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(FileSystemServer).GetFile(ctx, req.(*LoadFileReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _FileSystem_GetFileMeta_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(LoadFileReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(FileSystemServer).GetFileMeta(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/filesystem.FileSystem/GetFileMeta",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(FileSystemServer).GetFileMeta(ctx, req.(*LoadFileReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _FileSystem_GetOssUril_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(LoadFileReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(FileSystemServer).GetOssUril(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/filesystem.FileSystem/GetOssUril",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(FileSystemServer).GetOssUril(ctx, req.(*LoadFileReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _FileSystem_serviceDesc = grpc.ServiceDesc{
- ServiceName: "filesystem.FileSystem",
- HandlerType: (*FileSystemServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "CreateDomain",
- Handler: _FileSystem_CreateDomain_Handler,
- },
- {
- MethodName: "UpdateDomainMeta",
- Handler: _FileSystem_UpdateDomainMeta_Handler,
- },
- {
- MethodName: "DeleteDomain",
- Handler: _FileSystem_DeleteDomain_Handler,
- },
- {
- MethodName: "SaveFile",
- Handler: _FileSystem_SaveFile_Handler,
- },
- {
- MethodName: "UpdateFileMeta",
- Handler: _FileSystem_UpdateFileMeta_Handler,
- },
- {
- MethodName: "DeleteFile",
- Handler: _FileSystem_DeleteFile_Handler,
- },
- {
- MethodName: "GetFile",
- Handler: _FileSystem_GetFile_Handler,
- },
- {
- MethodName: "GetFileMeta",
- Handler: _FileSystem_GetFileMeta_Handler,
- },
- {
- MethodName: "GetOssUril",
- Handler: _FileSystem_GetOssUril_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "filesystem.proto",
- }
|