12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.23.0
- // protoc v3.11.4
- // source: stdlib.proto
- package stdlib
- 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 DocQueryRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- PageNum int64 `protobuf:"varint,1,opt,name=pageNum,proto3" json:"pageNum,omitempty"` //页码
- PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //每页数量
- KeyWord string `protobuf:"bytes,3,opt,name=keyWord,proto3" json:"keyWord,omitempty"` //检索词 文档名检索 模糊
- DocClass []string `protobuf:"bytes,4,rep,name=docClass,proto3" json:"docClass,omitempty"` // 分类 []string
- DocTag []string `protobuf:"bytes,5,rep,name=docTag,proto3" json:"docTag,omitempty"` // 标签 []string
- UpdateDateSort int64 `protobuf:"varint,6,opt,name=updateDateSort,proto3" json:"updateDateSort,omitempty"` // 上传时间排序 1正序 -1倒序
- DownloadSort int64 `protobuf:"varint,7,opt,name=downloadSort,proto3" json:"downloadSort,omitempty"` // 下载次数排序 1正序 -1倒序
- ViewSort int64 `protobuf:"varint,8,opt,name=viewSort,proto3" json:"viewSort,omitempty"` // 浏览量排序 1正序 -1倒序
- UserId string `protobuf:"bytes,9,opt,name=userId,proto3" json:"userId,omitempty"` //用户id
- }
- func (x *DocQueryRequest) Reset() {
- *x = DocQueryRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DocQueryRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DocQueryRequest) ProtoMessage() {}
- func (x *DocQueryRequest) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_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 DocQueryRequest.ProtoReflect.Descriptor instead.
- func (*DocQueryRequest) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{0}
- }
- func (x *DocQueryRequest) GetPageNum() int64 {
- if x != nil {
- return x.PageNum
- }
- return 0
- }
- func (x *DocQueryRequest) GetPageSize() int64 {
- if x != nil {
- return x.PageSize
- }
- return 0
- }
- func (x *DocQueryRequest) GetKeyWord() string {
- if x != nil {
- return x.KeyWord
- }
- return ""
- }
- func (x *DocQueryRequest) GetDocClass() []string {
- if x != nil {
- return x.DocClass
- }
- return nil
- }
- func (x *DocQueryRequest) GetDocTag() []string {
- if x != nil {
- return x.DocTag
- }
- return nil
- }
- func (x *DocQueryRequest) GetUpdateDateSort() int64 {
- if x != nil {
- return x.UpdateDateSort
- }
- return 0
- }
- func (x *DocQueryRequest) GetDownloadSort() int64 {
- if x != nil {
- return x.DownloadSort
- }
- return 0
- }
- func (x *DocQueryRequest) GetViewSort() int64 {
- if x != nil {
- return x.ViewSort
- }
- return 0
- }
- func (x *DocQueryRequest) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- type DocQueryResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
- Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` //响应消息
- Docs []*Doc `protobuf:"bytes,3,rep,name=docs,proto3" json:"docs,omitempty"` //文档列表集合,没有分页参数
- Total int64 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` //总数
- }
- func (x *DocQueryResponse) Reset() {
- *x = DocQueryResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DocQueryResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DocQueryResponse) ProtoMessage() {}
- func (x *DocQueryResponse) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_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 DocQueryResponse.ProtoReflect.Descriptor instead.
- func (*DocQueryResponse) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{1}
- }
- func (x *DocQueryResponse) GetCode() int64 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *DocQueryResponse) GetMsg() string {
- if x != nil {
- return x.Msg
- }
- return ""
- }
- func (x *DocQueryResponse) GetDocs() []*Doc {
- if x != nil {
- return x.Docs
- }
- return nil
- }
- func (x *DocQueryResponse) GetTotal() int64 {
- if x != nil {
- return x.Total
- }
- return 0
- }
- type Doc struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
- DocName string `protobuf:"bytes,2,opt,name=docName,proto3" json:"docName,omitempty"` //文档名称
- Price int64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"` //价格
- DocFileSize int64 `protobuf:"varint,4,opt,name=docFileSize,proto3" json:"docFileSize,omitempty"` //文档大小
- DocPageSize int64 `protobuf:"varint,5,opt,name=docPageSize,proto3" json:"docPageSize,omitempty"` //文档页码数
- DownTimes int64 `protobuf:"varint,6,opt,name=downTimes,proto3" json:"downTimes,omitempty"` //下载次数
- ViewTimes int64 `protobuf:"varint,7,opt,name=viewTimes,proto3" json:"viewTimes,omitempty"` //浏览次数
- UploadDate string `protobuf:"bytes,8,opt,name=uploadDate,proto3" json:"uploadDate,omitempty"` //上传时间
- DocSummary string `protobuf:"bytes,9,opt,name=docSummary,proto3" json:"docSummary,omitempty"` //摘要
- DocFileType string `protobuf:"bytes,10,opt,name=docFileType,proto3" json:"docFileType,omitempty"` //文档类型
- }
- func (x *Doc) Reset() {
- *x = Doc{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Doc) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Doc) ProtoMessage() {}
- func (x *Doc) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_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 Doc.ProtoReflect.Descriptor instead.
- func (*Doc) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{2}
- }
- func (x *Doc) GetDocId() string {
- if x != nil {
- return x.DocId
- }
- return ""
- }
- func (x *Doc) GetDocName() string {
- if x != nil {
- return x.DocName
- }
- return ""
- }
- func (x *Doc) GetPrice() int64 {
- if x != nil {
- return x.Price
- }
- return 0
- }
- func (x *Doc) GetDocFileSize() int64 {
- if x != nil {
- return x.DocFileSize
- }
- return 0
- }
- func (x *Doc) GetDocPageSize() int64 {
- if x != nil {
- return x.DocPageSize
- }
- return 0
- }
- func (x *Doc) GetDownTimes() int64 {
- if x != nil {
- return x.DownTimes
- }
- return 0
- }
- func (x *Doc) GetViewTimes() int64 {
- if x != nil {
- return x.ViewTimes
- }
- return 0
- }
- func (x *Doc) GetUploadDate() string {
- if x != nil {
- return x.UploadDate
- }
- return ""
- }
- func (x *Doc) GetDocSummary() string {
- if x != nil {
- return x.DocSummary
- }
- return ""
- }
- func (x *Doc) GetDocFileType() string {
- if x != nil {
- return x.DocFileType
- }
- return ""
- }
- type DocChangeReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` //文档id
- Reason int32 `protobuf:"varint,2,opt,name=reason,proto3" json:"reason,omitempty"` //处理原因 1机审通过上架 2人审通过上加 10投诉下架 11过期下架
- AppId string `protobuf:"bytes,3,opt,name=appId,proto3" json:"appId,omitempty"` //appId
- }
- func (x *DocChangeReq) Reset() {
- *x = DocChangeReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DocChangeReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DocChangeReq) ProtoMessage() {}
- func (x *DocChangeReq) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_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 DocChangeReq.ProtoReflect.Descriptor instead.
- func (*DocChangeReq) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{3}
- }
- func (x *DocChangeReq) GetId() string {
- if x != nil {
- return x.Id
- }
- return ""
- }
- func (x *DocChangeReq) GetReason() int32 {
- if x != nil {
- return x.Reason
- }
- return 0
- }
- func (x *DocChangeReq) GetAppId() string {
- if x != nil {
- return x.AppId
- }
- return ""
- }
- type DocChangeResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- State bool `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"` //是否成功
- }
- func (x *DocChangeResp) Reset() {
- *x = DocChangeResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DocChangeResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DocChangeResp) ProtoMessage() {}
- func (x *DocChangeResp) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_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 DocChangeResp.ProtoReflect.Descriptor instead.
- func (*DocChangeResp) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{4}
- }
- func (x *DocChangeResp) GetState() bool {
- if x != nil {
- return x.State
- }
- return false
- }
- type DocStatisticsReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
- DocStatisticsType int32 `protobuf:"varint,2,opt,name=DocStatisticsType,proto3" json:"DocStatisticsType,omitempty"` //文档统计类型 1增加下载次数 2增加浏览次数 3评分
- AppId string `protobuf:"bytes,3,opt,name=appId,proto3" json:"appId,omitempty"` //appId
- }
- func (x *DocStatisticsReq) Reset() {
- *x = DocStatisticsReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DocStatisticsReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DocStatisticsReq) ProtoMessage() {}
- func (x *DocStatisticsReq) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_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 DocStatisticsReq.ProtoReflect.Descriptor instead.
- func (*DocStatisticsReq) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{5}
- }
- func (x *DocStatisticsReq) GetDocId() string {
- if x != nil {
- return x.DocId
- }
- return ""
- }
- func (x *DocStatisticsReq) GetDocStatisticsType() int32 {
- if x != nil {
- return x.DocStatisticsType
- }
- return 0
- }
- func (x *DocStatisticsReq) GetAppId() string {
- if x != nil {
- return x.AppId
- }
- return ""
- }
- type DocGetCheckReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
- UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` //用户id
- AppId string `protobuf:"bytes,3,opt,name=appId,proto3" json:"appId,omitempty"` //appId
- }
- func (x *DocGetCheckReq) Reset() {
- *x = DocGetCheckReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DocGetCheckReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DocGetCheckReq) ProtoMessage() {}
- func (x *DocGetCheckReq) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_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 DocGetCheckReq.ProtoReflect.Descriptor instead.
- func (*DocGetCheckReq) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{6}
- }
- func (x *DocGetCheckReq) GetDocId() string {
- if x != nil {
- return x.DocId
- }
- return ""
- }
- func (x *DocGetCheckReq) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *DocGetCheckReq) GetAppId() string {
- if x != nil {
- return x.AppId
- }
- return ""
- }
- type DocGetCheckResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
- Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` //响应消息
- DocName string `protobuf:"bytes,3,opt,name=docName,proto3" json:"docName,omitempty"` //文档名称
- DocType int32 `protobuf:"varint,4,opt,name=docType,proto3" json:"docType,omitempty"` //文档类型
- DocFileSize int32 `protobuf:"varint,5,opt,name=docFileSize,proto3" json:"docFileSize,omitempty"` //文档大小
- DocPageSize int32 `protobuf:"varint,6,opt,name=docPageSize,proto3" json:"docPageSize,omitempty"` //文档页码数
- Tags string `protobuf:"bytes,7,opt,name=tags,proto3" json:"tags,omitempty"` //文档标签
- UserId string `protobuf:"bytes,8,opt,name=userId,proto3" json:"userId,omitempty"` //上传人id
- DocSummary string `protobuf:"bytes,9,opt,name=docSummary,proto3" json:"docSummary,omitempty"` //摘要
- PreviewImgId string `protobuf:"bytes,10,opt,name=previewImgId,proto3" json:"previewImgId,omitempty"` //缩略图
- IsBuy bool `protobuf:"varint,11,opt,name=isBuy,proto3" json:"isBuy,omitempty"` //是否购买
- }
- func (x *DocGetCheckResp) Reset() {
- *x = DocGetCheckResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DocGetCheckResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DocGetCheckResp) ProtoMessage() {}
- func (x *DocGetCheckResp) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_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 DocGetCheckResp.ProtoReflect.Descriptor instead.
- func (*DocGetCheckResp) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{7}
- }
- func (x *DocGetCheckResp) GetCode() int32 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *DocGetCheckResp) GetMsg() string {
- if x != nil {
- return x.Msg
- }
- return ""
- }
- func (x *DocGetCheckResp) GetDocName() string {
- if x != nil {
- return x.DocName
- }
- return ""
- }
- func (x *DocGetCheckResp) GetDocType() int32 {
- if x != nil {
- return x.DocType
- }
- return 0
- }
- func (x *DocGetCheckResp) GetDocFileSize() int32 {
- if x != nil {
- return x.DocFileSize
- }
- return 0
- }
- func (x *DocGetCheckResp) GetDocPageSize() int32 {
- if x != nil {
- return x.DocPageSize
- }
- return 0
- }
- func (x *DocGetCheckResp) GetTags() string {
- if x != nil {
- return x.Tags
- }
- return ""
- }
- func (x *DocGetCheckResp) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *DocGetCheckResp) GetDocSummary() string {
- if x != nil {
- return x.DocSummary
- }
- return ""
- }
- func (x *DocGetCheckResp) GetPreviewImgId() string {
- if x != nil {
- return x.PreviewImgId
- }
- return ""
- }
- func (x *DocGetCheckResp) GetIsBuy() bool {
- if x != nil {
- return x.IsBuy
- }
- return false
- }
- type DocGetContentResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
- Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` //响应消息
- DocContent []byte `protobuf:"bytes,3,opt,name=docContent,proto3" json:"docContent,omitempty"` //文件内容
- }
- func (x *DocGetContentResp) Reset() {
- *x = DocGetContentResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DocGetContentResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DocGetContentResp) ProtoMessage() {}
- func (x *DocGetContentResp) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_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 DocGetContentResp.ProtoReflect.Descriptor instead.
- func (*DocGetContentResp) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{8}
- }
- func (x *DocGetContentResp) GetCode() int32 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *DocGetContentResp) GetMsg() string {
- if x != nil {
- return x.Msg
- }
- return ""
- }
- func (x *DocGetContentResp) GetDocContent() []byte {
- if x != nil {
- return x.DocContent
- }
- return nil
- }
- type DocActivityReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- PageNum int32 `protobuf:"varint,1,opt,name=pageNum,proto3" json:"pageNum,omitempty"` //页码
- PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //每页数量
- AppId string `protobuf:"bytes,3,opt,name=appId,proto3" json:"appId,omitempty"` //appId
- ActivityId int32 `protobuf:"varint,4,opt,name=activityId,proto3" json:"activityId,omitempty"` //活动id
- }
- func (x *DocActivityReq) Reset() {
- *x = DocActivityReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DocActivityReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DocActivityReq) ProtoMessage() {}
- func (x *DocActivityReq) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_proto_msgTypes[9]
- 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 DocActivityReq.ProtoReflect.Descriptor instead.
- func (*DocActivityReq) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{9}
- }
- func (x *DocActivityReq) GetPageNum() int32 {
- if x != nil {
- return x.PageNum
- }
- return 0
- }
- func (x *DocActivityReq) GetPageSize() int32 {
- if x != nil {
- return x.PageSize
- }
- return 0
- }
- func (x *DocActivityReq) GetAppId() string {
- if x != nil {
- return x.AppId
- }
- return ""
- }
- func (x *DocActivityReq) GetActivityId() int32 {
- if x != nil {
- return x.ActivityId
- }
- return 0
- }
- type DocActivity struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
- ActivityId int32 `protobuf:"varint,2,opt,name=activityId,proto3" json:"activityId,omitempty"` //活动id
- DocTitle string `protobuf:"bytes,3,opt,name=docTitle,proto3" json:"docTitle,omitempty"` //文档标题
- DocSummary string `protobuf:"bytes,4,opt,name=docSummary,proto3" json:"docSummary,omitempty"` //文档摘要
- DocImg string `protobuf:"bytes,5,opt,name=docImg,proto3" json:"docImg,omitempty"` //文档配图
- Price int32 `protobuf:"varint,6,opt,name=price,proto3" json:"price,omitempty"` //活动价
- CostPrice int32 `protobuf:"varint,7,opt,name=costPrice,proto3" json:"costPrice,omitempty"` //成本价
- }
- func (x *DocActivity) Reset() {
- *x = DocActivity{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DocActivity) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DocActivity) ProtoMessage() {}
- func (x *DocActivity) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_proto_msgTypes[10]
- 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 DocActivity.ProtoReflect.Descriptor instead.
- func (*DocActivity) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{10}
- }
- func (x *DocActivity) GetDocId() string {
- if x != nil {
- return x.DocId
- }
- return ""
- }
- func (x *DocActivity) GetActivityId() int32 {
- if x != nil {
- return x.ActivityId
- }
- return 0
- }
- func (x *DocActivity) GetDocTitle() string {
- if x != nil {
- return x.DocTitle
- }
- return ""
- }
- func (x *DocActivity) GetDocSummary() string {
- if x != nil {
- return x.DocSummary
- }
- return ""
- }
- func (x *DocActivity) GetDocImg() string {
- if x != nil {
- return x.DocImg
- }
- return ""
- }
- func (x *DocActivity) GetPrice() int32 {
- if x != nil {
- return x.Price
- }
- return 0
- }
- func (x *DocActivity) GetCostPrice() int32 {
- if x != nil {
- return x.CostPrice
- }
- return 0
- }
- type DocActivityResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
- Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` //响应消息
- Docs []*DocActivity `protobuf:"bytes,3,rep,name=docs,proto3" json:"docs,omitempty"` //活动文档列表
- Total int32 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` //总数
- }
- func (x *DocActivityResp) Reset() {
- *x = DocActivityResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[11]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DocActivityResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DocActivityResp) ProtoMessage() {}
- func (x *DocActivityResp) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_proto_msgTypes[11]
- 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 DocActivityResp.ProtoReflect.Descriptor instead.
- func (*DocActivityResp) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{11}
- }
- func (x *DocActivityResp) GetCode() int32 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *DocActivityResp) GetMsg() string {
- if x != nil {
- return x.Msg
- }
- return ""
- }
- func (x *DocActivityResp) GetDocs() []*DocActivity {
- if x != nil {
- return x.Docs
- }
- return nil
- }
- func (x *DocActivityResp) GetTotal() int32 {
- if x != nil {
- return x.Total
- }
- return 0
- }
- var File_stdlib_proto protoreflect.FileDescriptor
- var file_stdlib_proto_rawDesc = []byte{
- 0x0a, 0x0c, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
- 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x22, 0x95, 0x02, 0x0a, 0x0f, 0x44, 0x6f, 0x63, 0x51, 0x75,
- 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61,
- 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x70, 0x61, 0x67,
- 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
- 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x57, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x57, 0x6f, 0x72, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x6f,
- 0x63, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f,
- 0x63, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x63, 0x54, 0x61, 0x67,
- 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x63, 0x54, 0x61, 0x67, 0x12, 0x26,
- 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x65, 0x53, 0x6f, 0x72, 0x74,
- 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61,
- 0x74, 0x65, 0x53, 0x6f, 0x72, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f,
- 0x61, 0x64, 0x53, 0x6f, 0x72, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x64, 0x6f,
- 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x6f, 0x72, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x76, 0x69,
- 0x65, 0x77, 0x53, 0x6f, 0x72, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x76, 0x69,
- 0x65, 0x77, 0x53, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
- 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x6f,
- 0x0a, 0x10, 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
- 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
- 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x1f, 0x0a, 0x04, 0x64, 0x6f, 0x63, 0x73,
- 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e,
- 0x44, 0x6f, 0x63, 0x52, 0x04, 0x64, 0x6f, 0x63, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74,
- 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22,
- 0xad, 0x02, 0x0a, 0x03, 0x44, 0x6f, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a,
- 0x07, 0x64, 0x6f, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
- 0x64, 0x6f, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65,
- 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x20, 0x0a,
- 0x0b, 0x64, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01,
- 0x28, 0x03, 0x52, 0x0b, 0x64, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12,
- 0x20, 0x0a, 0x0b, 0x64, 0x6f, 0x63, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x05,
- 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x64, 0x6f, 0x63, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a,
- 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x6f, 0x77, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x18, 0x06,
- 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x64, 0x6f, 0x77, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x12,
- 0x1c, 0x0a, 0x09, 0x76, 0x69, 0x65, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01,
- 0x28, 0x03, 0x52, 0x09, 0x76, 0x69, 0x65, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x12, 0x1e, 0x0a,
- 0x0a, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x44, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x0a, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, 0x1e, 0x0a,
- 0x0a, 0x64, 0x6f, 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x0a, 0x64, 0x6f, 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x20, 0x0a,
- 0x0b, 0x64, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x0b, 0x64, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22,
- 0x4c, 0x0a, 0x0c, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x12,
- 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
- 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
- 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64,
- 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x22, 0x25, 0x0a,
- 0x0d, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 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, 0x6c, 0x0a, 0x10, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x69,
- 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49,
- 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x2c,
- 0x0a, 0x11, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x54,
- 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x44, 0x6f, 0x63, 0x53, 0x74,
- 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05,
- 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70,
- 0x49, 0x64, 0x22, 0x54, 0x0a, 0x0e, 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x68, 0x65, 0x63,
- 0x6b, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73,
- 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72,
- 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x22, 0xb5, 0x02, 0x0a, 0x0f, 0x44, 0x6f, 0x63,
- 0x47, 0x65, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04,
- 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65,
- 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d,
- 0x73, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6f, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x6f, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07,
- 0x64, 0x6f, 0x63, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x64,
- 0x6f, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x6f, 0x63, 0x46, 0x69, 0x6c,
- 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x64, 0x6f, 0x63,
- 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x6f, 0x63, 0x50,
- 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x64,
- 0x6f, 0x63, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61,
- 0x67, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x16,
- 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
- 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x6f, 0x63, 0x53, 0x75, 0x6d,
- 0x6d, 0x61, 0x72, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x6f, 0x63, 0x53,
- 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65,
- 0x77, 0x49, 0x6d, 0x67, 0x49, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72,
- 0x65, 0x76, 0x69, 0x65, 0x77, 0x49, 0x6d, 0x67, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x73,
- 0x42, 0x75, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x69, 0x73, 0x42, 0x75, 0x79,
- 0x22, 0x59, 0x0a, 0x11, 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
- 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x1e, 0x0a, 0x0a, 0x64,
- 0x6f, 0x63, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52,
- 0x0a, 0x64, 0x6f, 0x63, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x7c, 0x0a, 0x0e, 0x44,
- 0x6f, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a,
- 0x07, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07,
- 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53,
- 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53,
- 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x63, 0x74,
- 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x61,
- 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x64, 0x22, 0xcb, 0x01, 0x0a, 0x0b, 0x44, 0x6f,
- 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63,
- 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12,
- 0x1e, 0x0a, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x05, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12,
- 0x1a, 0x0a, 0x08, 0x64, 0x6f, 0x63, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x08, 0x64, 0x6f, 0x63, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64,
- 0x6f, 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x0a, 0x64, 0x6f, 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x64,
- 0x6f, 0x63, 0x49, 0x6d, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x63,
- 0x49, 0x6d, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01,
- 0x28, 0x05, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x73,
- 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x6f,
- 0x73, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x22, 0x76, 0x0a, 0x0f, 0x44, 0x6f, 0x63, 0x41, 0x63,
- 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f,
- 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10,
- 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67,
- 0x12, 0x27, 0x0a, 0x04, 0x64, 0x6f, 0x63, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13,
- 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76,
- 0x69, 0x74, 0x79, 0x52, 0x04, 0x64, 0x6f, 0x63, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74,
- 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x32,
- 0xba, 0x03, 0x0a, 0x06, 0x53, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x12, 0x3d, 0x0a, 0x08, 0x44, 0x6f,
- 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e,
- 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
- 0x18, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65, 0x72,
- 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x44, 0x6f, 0x63,
- 0x4f, 0x6e, 0x12, 0x14, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x43,
- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69,
- 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12,
- 0x35, 0x0a, 0x06, 0x44, 0x6f, 0x63, 0x4f, 0x66, 0x66, 0x12, 0x14, 0x2e, 0x73, 0x74, 0x64, 0x6c,
- 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a,
- 0x15, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e,
- 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x40, 0x0a, 0x0d, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x61,
- 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x18, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62,
- 0x2e, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65,
- 0x71, 0x1a, 0x15, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x43, 0x68,
- 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3e, 0x0a, 0x0b, 0x44, 0x6f, 0x63, 0x47,
- 0x65, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x16, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62,
- 0x2e, 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x1a,
- 0x17, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43,
- 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x42, 0x0a, 0x0d, 0x44, 0x6f, 0x63, 0x47,
- 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x2e, 0x73, 0x74, 0x64, 0x6c,
- 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65,
- 0x71, 0x1a, 0x19, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x47, 0x65,
- 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3e, 0x0a, 0x0b,
- 0x44, 0x6f, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x12, 0x16, 0x2e, 0x73, 0x74,
- 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79,
- 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63,
- 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x62, 0x06, 0x70, 0x72,
- 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_stdlib_proto_rawDescOnce sync.Once
- file_stdlib_proto_rawDescData = file_stdlib_proto_rawDesc
- )
- func file_stdlib_proto_rawDescGZIP() []byte {
- file_stdlib_proto_rawDescOnce.Do(func() {
- file_stdlib_proto_rawDescData = protoimpl.X.CompressGZIP(file_stdlib_proto_rawDescData)
- })
- return file_stdlib_proto_rawDescData
- }
- var file_stdlib_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
- var file_stdlib_proto_goTypes = []interface{}{
- (*DocQueryRequest)(nil), // 0: stdlib.DocQueryRequest
- (*DocQueryResponse)(nil), // 1: stdlib.DocQueryResponse
- (*Doc)(nil), // 2: stdlib.Doc
- (*DocChangeReq)(nil), // 3: stdlib.DocChangeReq
- (*DocChangeResp)(nil), // 4: stdlib.DocChangeResp
- (*DocStatisticsReq)(nil), // 5: stdlib.DocStatisticsReq
- (*DocGetCheckReq)(nil), // 6: stdlib.DocGetCheckReq
- (*DocGetCheckResp)(nil), // 7: stdlib.DocGetCheckResp
- (*DocGetContentResp)(nil), // 8: stdlib.DocGetContentResp
- (*DocActivityReq)(nil), // 9: stdlib.DocActivityReq
- (*DocActivity)(nil), // 10: stdlib.DocActivity
- (*DocActivityResp)(nil), // 11: stdlib.DocActivityResp
- }
- var file_stdlib_proto_depIdxs = []int32{
- 2, // 0: stdlib.DocQueryResponse.docs:type_name -> stdlib.Doc
- 10, // 1: stdlib.DocActivityResp.docs:type_name -> stdlib.DocActivity
- 0, // 2: stdlib.Stdlib.DocQuery:input_type -> stdlib.DocQueryRequest
- 3, // 3: stdlib.Stdlib.DocOn:input_type -> stdlib.DocChangeReq
- 3, // 4: stdlib.Stdlib.DocOff:input_type -> stdlib.DocChangeReq
- 5, // 5: stdlib.Stdlib.DocStatistics:input_type -> stdlib.DocStatisticsReq
- 6, // 6: stdlib.Stdlib.DocGetCheck:input_type -> stdlib.DocGetCheckReq
- 6, // 7: stdlib.Stdlib.DocGetContent:input_type -> stdlib.DocGetCheckReq
- 9, // 8: stdlib.Stdlib.DocActivity:input_type -> stdlib.DocActivityReq
- 1, // 9: stdlib.Stdlib.DocQuery:output_type -> stdlib.DocQueryResponse
- 4, // 10: stdlib.Stdlib.DocOn:output_type -> stdlib.DocChangeResp
- 4, // 11: stdlib.Stdlib.DocOff:output_type -> stdlib.DocChangeResp
- 4, // 12: stdlib.Stdlib.DocStatistics:output_type -> stdlib.DocChangeResp
- 7, // 13: stdlib.Stdlib.DocGetCheck:output_type -> stdlib.DocGetCheckResp
- 8, // 14: stdlib.Stdlib.DocGetContent:output_type -> stdlib.DocGetContentResp
- 11, // 15: stdlib.Stdlib.DocActivity:output_type -> stdlib.DocActivityResp
- 9, // [9:16] is the sub-list for method output_type
- 2, // [2:9] is the sub-list for method input_type
- 2, // [2:2] is the sub-list for extension type_name
- 2, // [2:2] is the sub-list for extension extendee
- 0, // [0:2] is the sub-list for field type_name
- }
- func init() { file_stdlib_proto_init() }
- func file_stdlib_proto_init() {
- if File_stdlib_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_stdlib_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DocQueryRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_stdlib_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DocQueryResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_stdlib_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Doc); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_stdlib_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DocChangeReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_stdlib_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DocChangeResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_stdlib_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DocStatisticsReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_stdlib_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DocGetCheckReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_stdlib_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DocGetCheckResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_stdlib_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DocGetContentResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_stdlib_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DocActivityReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_stdlib_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DocActivity); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_stdlib_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DocActivityResp); 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_stdlib_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 12,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_stdlib_proto_goTypes,
- DependencyIndexes: file_stdlib_proto_depIdxs,
- MessageInfos: file_stdlib_proto_msgTypes,
- }.Build()
- File_stdlib_proto = out.File
- file_stdlib_proto_rawDesc = nil
- file_stdlib_proto_goTypes = nil
- file_stdlib_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
- // StdlibClient is the client API for Stdlib service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type StdlibClient interface {
- DocQuery(ctx context.Context, in *DocQueryRequest, opts ...grpc.CallOption) (*DocQueryResponse, error)
- DocOn(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error)
- DocOff(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error)
- DocStatistics(ctx context.Context, in *DocStatisticsReq, opts ...grpc.CallOption) (*DocChangeResp, error)
- DocGetCheck(ctx context.Context, in *DocGetCheckReq, opts ...grpc.CallOption) (*DocGetCheckResp, error)
- DocGetContent(ctx context.Context, in *DocGetCheckReq, opts ...grpc.CallOption) (*DocGetContentResp, error)
- DocActivity(ctx context.Context, in *DocActivityReq, opts ...grpc.CallOption) (*DocActivityResp, error)
- }
- type stdlibClient struct {
- cc grpc.ClientConnInterface
- }
- func NewStdlibClient(cc grpc.ClientConnInterface) StdlibClient {
- return &stdlibClient{cc}
- }
- func (c *stdlibClient) DocQuery(ctx context.Context, in *DocQueryRequest, opts ...grpc.CallOption) (*DocQueryResponse, error) {
- out := new(DocQueryResponse)
- err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocQuery", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *stdlibClient) DocOn(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error) {
- out := new(DocChangeResp)
- err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocOn", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *stdlibClient) DocOff(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error) {
- out := new(DocChangeResp)
- err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocOff", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *stdlibClient) DocStatistics(ctx context.Context, in *DocStatisticsReq, opts ...grpc.CallOption) (*DocChangeResp, error) {
- out := new(DocChangeResp)
- err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocStatistics", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *stdlibClient) DocGetCheck(ctx context.Context, in *DocGetCheckReq, opts ...grpc.CallOption) (*DocGetCheckResp, error) {
- out := new(DocGetCheckResp)
- err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocGetCheck", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *stdlibClient) DocGetContent(ctx context.Context, in *DocGetCheckReq, opts ...grpc.CallOption) (*DocGetContentResp, error) {
- out := new(DocGetContentResp)
- err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocGetContent", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *stdlibClient) DocActivity(ctx context.Context, in *DocActivityReq, opts ...grpc.CallOption) (*DocActivityResp, error) {
- out := new(DocActivityResp)
- err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocActivity", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // StdlibServer is the server API for Stdlib service.
- type StdlibServer interface {
- DocQuery(context.Context, *DocQueryRequest) (*DocQueryResponse, error)
- DocOn(context.Context, *DocChangeReq) (*DocChangeResp, error)
- DocOff(context.Context, *DocChangeReq) (*DocChangeResp, error)
- DocStatistics(context.Context, *DocStatisticsReq) (*DocChangeResp, error)
- DocGetCheck(context.Context, *DocGetCheckReq) (*DocGetCheckResp, error)
- DocGetContent(context.Context, *DocGetCheckReq) (*DocGetContentResp, error)
- DocActivity(context.Context, *DocActivityReq) (*DocActivityResp, error)
- }
- // UnimplementedStdlibServer can be embedded to have forward compatible implementations.
- type UnimplementedStdlibServer struct {
- }
- func (*UnimplementedStdlibServer) DocQuery(context.Context, *DocQueryRequest) (*DocQueryResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DocQuery not implemented")
- }
- func (*UnimplementedStdlibServer) DocOn(context.Context, *DocChangeReq) (*DocChangeResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DocOn not implemented")
- }
- func (*UnimplementedStdlibServer) DocOff(context.Context, *DocChangeReq) (*DocChangeResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DocOff not implemented")
- }
- func (*UnimplementedStdlibServer) DocStatistics(context.Context, *DocStatisticsReq) (*DocChangeResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DocStatistics not implemented")
- }
- func (*UnimplementedStdlibServer) DocGetCheck(context.Context, *DocGetCheckReq) (*DocGetCheckResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DocGetCheck not implemented")
- }
- func (*UnimplementedStdlibServer) DocGetContent(context.Context, *DocGetCheckReq) (*DocGetContentResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DocGetContent not implemented")
- }
- func (*UnimplementedStdlibServer) DocActivity(context.Context, *DocActivityReq) (*DocActivityResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DocActivity not implemented")
- }
- func RegisterStdlibServer(s *grpc.Server, srv StdlibServer) {
- s.RegisterService(&_Stdlib_serviceDesc, srv)
- }
- func _Stdlib_DocQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DocQueryRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(StdlibServer).DocQuery(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/stdlib.Stdlib/DocQuery",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StdlibServer).DocQuery(ctx, req.(*DocQueryRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Stdlib_DocOn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DocChangeReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(StdlibServer).DocOn(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/stdlib.Stdlib/DocOn",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StdlibServer).DocOn(ctx, req.(*DocChangeReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Stdlib_DocOff_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DocChangeReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(StdlibServer).DocOff(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/stdlib.Stdlib/DocOff",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StdlibServer).DocOff(ctx, req.(*DocChangeReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Stdlib_DocStatistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DocStatisticsReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(StdlibServer).DocStatistics(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/stdlib.Stdlib/DocStatistics",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StdlibServer).DocStatistics(ctx, req.(*DocStatisticsReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Stdlib_DocGetCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DocGetCheckReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(StdlibServer).DocGetCheck(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/stdlib.Stdlib/DocGetCheck",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StdlibServer).DocGetCheck(ctx, req.(*DocGetCheckReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Stdlib_DocGetContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DocGetCheckReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(StdlibServer).DocGetContent(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/stdlib.Stdlib/DocGetContent",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StdlibServer).DocGetContent(ctx, req.(*DocGetCheckReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Stdlib_DocActivity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DocActivityReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(StdlibServer).DocActivity(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/stdlib.Stdlib/DocActivity",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StdlibServer).DocActivity(ctx, req.(*DocActivityReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _Stdlib_serviceDesc = grpc.ServiceDesc{
- ServiceName: "stdlib.Stdlib",
- HandlerType: (*StdlibServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "DocQuery",
- Handler: _Stdlib_DocQuery_Handler,
- },
- {
- MethodName: "DocOn",
- Handler: _Stdlib_DocOn_Handler,
- },
- {
- MethodName: "DocOff",
- Handler: _Stdlib_DocOff_Handler,
- },
- {
- MethodName: "DocStatistics",
- Handler: _Stdlib_DocStatistics_Handler,
- },
- {
- MethodName: "DocGetCheck",
- Handler: _Stdlib_DocGetCheck_Handler,
- },
- {
- MethodName: "DocGetContent",
- Handler: _Stdlib_DocGetContent_Handler,
- },
- {
- MethodName: "DocActivity",
- Handler: _Stdlib_DocActivity_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "stdlib.proto",
- }
|