12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.25.0
- // protoc v3.15.1
- // source: message.proto
- package message
- 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 SendMsgRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- ReceiveUserId string `protobuf:"bytes,1,opt,name=receiveUserId,proto3" json:"receiveUserId,omitempty"` //接收方用户ID
- ReceiveName string `protobuf:"bytes,2,opt,name=receiveName,proto3" json:"receiveName,omitempty"` //接收方用户名
- SendUserId string `protobuf:"bytes,3,opt,name=sendUserId,proto3" json:"sendUserId,omitempty"` //发送方用户ID
- SendName string `protobuf:"bytes,4,opt,name=sendName,proto3" json:"sendName,omitempty"` //发送方用户名
- Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` //主题
- Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` //内容
- MsgType int64 `protobuf:"varint,7,opt,name=msgType,proto3" json:"msgType,omitempty"` //消息类型 1:客服 2:系统通知 3:营销 4:用户会话
- Link string `protobuf:"bytes,8,opt,name=link,proto3" json:"link,omitempty"` //跳转链接
- CiteId int64 `protobuf:"varint,9,opt,name=citeId,proto3" json:"citeId,omitempty"` //引用id
- Appid string `protobuf:"bytes,10,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
- }
- func (x *SendMsgRequest) Reset() {
- *x = SendMsgRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *SendMsgRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SendMsgRequest) ProtoMessage() {}
- func (x *SendMsgRequest) ProtoReflect() protoreflect.Message {
- mi := &file_message_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 SendMsgRequest.ProtoReflect.Descriptor instead.
- func (*SendMsgRequest) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{0}
- }
- func (x *SendMsgRequest) GetReceiveUserId() string {
- if x != nil {
- return x.ReceiveUserId
- }
- return ""
- }
- func (x *SendMsgRequest) GetReceiveName() string {
- if x != nil {
- return x.ReceiveName
- }
- return ""
- }
- func (x *SendMsgRequest) GetSendUserId() string {
- if x != nil {
- return x.SendUserId
- }
- return ""
- }
- func (x *SendMsgRequest) GetSendName() string {
- if x != nil {
- return x.SendName
- }
- return ""
- }
- func (x *SendMsgRequest) GetTitle() string {
- if x != nil {
- return x.Title
- }
- return ""
- }
- func (x *SendMsgRequest) GetContent() string {
- if x != nil {
- return x.Content
- }
- return ""
- }
- func (x *SendMsgRequest) GetMsgType() int64 {
- if x != nil {
- return x.MsgType
- }
- return 0
- }
- func (x *SendMsgRequest) GetLink() string {
- if x != nil {
- return x.Link
- }
- return ""
- }
- func (x *SendMsgRequest) GetCiteId() int64 {
- if x != nil {
- return x.CiteId
- }
- return 0
- }
- func (x *SendMsgRequest) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- type ChangeReadStatusRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 消息id
- ReadStatus int64 `protobuf:"varint,2,opt,name=readStatus,proto3" json:"readStatus,omitempty"` // 阅读状态 0-未读 1-已读
- Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
- }
- func (x *ChangeReadStatusRequest) Reset() {
- *x = ChangeReadStatusRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ChangeReadStatusRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ChangeReadStatusRequest) ProtoMessage() {}
- func (x *ChangeReadStatusRequest) ProtoReflect() protoreflect.Message {
- mi := &file_message_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 ChangeReadStatusRequest.ProtoReflect.Descriptor instead.
- func (*ChangeReadStatusRequest) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{1}
- }
- func (x *ChangeReadStatusRequest) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *ChangeReadStatusRequest) GetReadStatus() int64 {
- if x != nil {
- return x.ReadStatus
- }
- return 0
- }
- func (x *ChangeReadStatusRequest) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- type ResCount struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- MsgType int64 `protobuf:"varint,1,opt,name=msgType,proto3" json:"msgType,omitempty"` // 类型及未读数量
- Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // 类型及未读数量
- }
- func (x *ResCount) Reset() {
- *x = ResCount{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ResCount) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ResCount) ProtoMessage() {}
- func (x *ResCount) ProtoReflect() protoreflect.Message {
- mi := &file_message_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 ResCount.ProtoReflect.Descriptor instead.
- func (*ResCount) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{2}
- }
- func (x *ResCount) GetMsgType() int64 {
- if x != nil {
- return x.MsgType
- }
- return 0
- }
- func (x *ResCount) GetCount() int64 {
- if x != nil {
- return x.Count
- }
- return 0
- }
- // 删除单一消息
- type DeleteSingleMessageRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 消息id
- Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
- }
- func (x *DeleteSingleMessageRequest) Reset() {
- *x = DeleteSingleMessageRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DeleteSingleMessageRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DeleteSingleMessageRequest) ProtoMessage() {}
- func (x *DeleteSingleMessageRequest) ProtoReflect() protoreflect.Message {
- mi := &file_message_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 DeleteSingleMessageRequest.ProtoReflect.Descriptor instead.
- func (*DeleteSingleMessageRequest) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{3}
- }
- func (x *DeleteSingleMessageRequest) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *DeleteSingleMessageRequest) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- // 批量删除消息
- type DeleteMultipleMessageRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 多条消息id, 逗号分隔
- Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
- }
- func (x *DeleteMultipleMessageRequest) Reset() {
- *x = DeleteMultipleMessageRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DeleteMultipleMessageRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DeleteMultipleMessageRequest) ProtoMessage() {}
- func (x *DeleteMultipleMessageRequest) ProtoReflect() protoreflect.Message {
- mi := &file_message_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 DeleteMultipleMessageRequest.ProtoReflect.Descriptor instead.
- func (*DeleteMultipleMessageRequest) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{4}
- }
- func (x *DeleteMultipleMessageRequest) GetId() string {
- if x != nil {
- return x.Id
- }
- return ""
- }
- func (x *DeleteMultipleMessageRequest) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- // 查询指定用户未读消息合计
- type GetUnreadCountRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
- Appid string `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
- }
- func (x *GetUnreadCountRequest) Reset() {
- *x = GetUnreadCountRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetUnreadCountRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetUnreadCountRequest) ProtoMessage() {}
- func (x *GetUnreadCountRequest) ProtoReflect() protoreflect.Message {
- mi := &file_message_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 GetUnreadCountRequest.ProtoReflect.Descriptor instead.
- func (*GetUnreadCountRequest) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{5}
- }
- func (x *GetUnreadCountRequest) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *GetUnreadCountRequest) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- type Response struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
- }
- func (x *Response) Reset() {
- *x = Response{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Response) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Response) ProtoMessage() {}
- func (x *Response) ProtoReflect() protoreflect.Message {
- mi := &file_message_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 Response.ProtoReflect.Descriptor instead.
- func (*Response) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{6}
- }
- func (x *Response) GetCode() int64 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *Response) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- type GetUnreadCountResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
- Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` //
- }
- func (x *GetUnreadCountResponse) Reset() {
- *x = GetUnreadCountResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetUnreadCountResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetUnreadCountResponse) ProtoMessage() {}
- func (x *GetUnreadCountResponse) ProtoReflect() protoreflect.Message {
- mi := &file_message_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 GetUnreadCountResponse.ProtoReflect.Descriptor instead.
- func (*GetUnreadCountResponse) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{7}
- }
- func (x *GetUnreadCountResponse) GetCode() int64 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *GetUnreadCountResponse) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- func (x *GetUnreadCountResponse) GetCount() int64 {
- if x != nil {
- return x.Count
- }
- return 0
- }
- type FindUserMsgReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` //用户id
- ReceiveUserId string `protobuf:"bytes,2,opt,name=receiveUserId,proto3" json:"receiveUserId,omitempty"` //聊天方用户id
- Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
- OffSet int64 `protobuf:"varint,4,opt,name=offSet,proto3" json:"offSet,omitempty"` //当前
- PageSize int64 `protobuf:"varint,5,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //大小
- MsgType int64 `protobuf:"varint,6,opt,name=msgType,proto3" json:"msgType,omitempty"` //是否区分类型
- Read int64 `protobuf:"varint,7,opt,name=read,proto3" json:"read,omitempty"` // 是否区分已读未读 -1 不区分已读未读 0 未读 1 已读
- }
- func (x *FindUserMsgReq) Reset() {
- *x = FindUserMsgReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *FindUserMsgReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*FindUserMsgReq) ProtoMessage() {}
- func (x *FindUserMsgReq) ProtoReflect() protoreflect.Message {
- mi := &file_message_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 FindUserMsgReq.ProtoReflect.Descriptor instead.
- func (*FindUserMsgReq) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{8}
- }
- func (x *FindUserMsgReq) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *FindUserMsgReq) GetReceiveUserId() string {
- if x != nil {
- return x.ReceiveUserId
- }
- return ""
- }
- func (x *FindUserMsgReq) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- func (x *FindUserMsgReq) GetOffSet() int64 {
- if x != nil {
- return x.OffSet
- }
- return 0
- }
- func (x *FindUserMsgReq) GetPageSize() int64 {
- if x != nil {
- return x.PageSize
- }
- return 0
- }
- func (x *FindUserMsgReq) GetMsgType() int64 {
- if x != nil {
- return x.MsgType
- }
- return 0
- }
- func (x *FindUserMsgReq) GetRead() int64 {
- if x != nil {
- return x.Read
- }
- return 0
- }
- type Messages struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- ReceiveUserId string `protobuf:"bytes,1,opt,name=receiveUserId,proto3" json:"receiveUserId,omitempty"` //接收方用户ID
- ReceiveName string `protobuf:"bytes,2,opt,name=receiveName,proto3" json:"receiveName,omitempty"` //接收方用户名
- SendUserId string `protobuf:"bytes,3,opt,name=sendUserId,proto3" json:"sendUserId,omitempty"` //发送方用户ID
- SendName string `protobuf:"bytes,4,opt,name=sendName,proto3" json:"sendName,omitempty"` //发送方用户名
- Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` //主题
- Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` //内容
- MsgType int64 `protobuf:"varint,7,opt,name=msgType,proto3" json:"msgType,omitempty"` //消息类型 1:客服 2:系统通知 3:营销 4:用户会话
- Link string `protobuf:"bytes,8,opt,name=link,proto3" json:"link,omitempty"` //跳转链接
- CiteId int64 `protobuf:"varint,9,opt,name=citeId,proto3" json:"citeId,omitempty"` //引用id
- IsRead int64 `protobuf:"varint,10,opt,name=isRead,proto3" json:"isRead,omitempty"` //已读未读 0:未读 1:已读
- Createtime string `protobuf:"bytes,11,opt,name=createtime,proto3" json:"createtime,omitempty"`
- Appid string `protobuf:"bytes,12,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
- Id int64 `protobuf:"varint,13,opt,name=id,proto3" json:"id,omitempty"` //消息id
- }
- func (x *Messages) Reset() {
- *x = Messages{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Messages) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Messages) ProtoMessage() {}
- func (x *Messages) ProtoReflect() protoreflect.Message {
- mi := &file_message_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 Messages.ProtoReflect.Descriptor instead.
- func (*Messages) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{9}
- }
- func (x *Messages) GetReceiveUserId() string {
- if x != nil {
- return x.ReceiveUserId
- }
- return ""
- }
- func (x *Messages) GetReceiveName() string {
- if x != nil {
- return x.ReceiveName
- }
- return ""
- }
- func (x *Messages) GetSendUserId() string {
- if x != nil {
- return x.SendUserId
- }
- return ""
- }
- func (x *Messages) GetSendName() string {
- if x != nil {
- return x.SendName
- }
- return ""
- }
- func (x *Messages) GetTitle() string {
- if x != nil {
- return x.Title
- }
- return ""
- }
- func (x *Messages) GetContent() string {
- if x != nil {
- return x.Content
- }
- return ""
- }
- func (x *Messages) GetMsgType() int64 {
- if x != nil {
- return x.MsgType
- }
- return 0
- }
- func (x *Messages) GetLink() string {
- if x != nil {
- return x.Link
- }
- return ""
- }
- func (x *Messages) GetCiteId() int64 {
- if x != nil {
- return x.CiteId
- }
- return 0
- }
- func (x *Messages) GetIsRead() int64 {
- if x != nil {
- return x.IsRead
- }
- return 0
- }
- func (x *Messages) GetCreatetime() string {
- if x != nil {
- return x.Createtime
- }
- return ""
- }
- func (x *Messages) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- func (x *Messages) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- type FindUserMsgRes struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
- Data []*Messages `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` //
- Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` //总数
- }
- func (x *FindUserMsgRes) Reset() {
- *x = FindUserMsgRes{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *FindUserMsgRes) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*FindUserMsgRes) ProtoMessage() {}
- func (x *FindUserMsgRes) ProtoReflect() protoreflect.Message {
- mi := &file_message_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 FindUserMsgRes.ProtoReflect.Descriptor instead.
- func (*FindUserMsgRes) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{10}
- }
- func (x *FindUserMsgRes) GetCode() int64 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *FindUserMsgRes) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- func (x *FindUserMsgRes) GetData() []*Messages {
- if x != nil {
- return x.Data
- }
- return nil
- }
- func (x *FindUserMsgRes) GetCount() int64 {
- if x != nil {
- return x.Count
- }
- return 0
- }
- type GetClassUnreadCountReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
- MsgType int64 `protobuf:"varint,2,opt,name=msgType,proto3" json:"msgType,omitempty"` //分类 1:客服 2:系统通知 3:营销 4:用户会话
- Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
- }
- func (x *GetClassUnreadCountReq) Reset() {
- *x = GetClassUnreadCountReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[11]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetClassUnreadCountReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetClassUnreadCountReq) ProtoMessage() {}
- func (x *GetClassUnreadCountReq) ProtoReflect() protoreflect.Message {
- mi := &file_message_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 GetClassUnreadCountReq.ProtoReflect.Descriptor instead.
- func (*GetClassUnreadCountReq) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{11}
- }
- func (x *GetClassUnreadCountReq) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *GetClassUnreadCountReq) GetMsgType() int64 {
- if x != nil {
- return x.MsgType
- }
- return 0
- }
- func (x *GetClassUnreadCountReq) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- //查看消息内容
- type MessageDetailReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //消息id
- }
- func (x *MessageDetailReq) Reset() {
- *x = MessageDetailReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[12]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *MessageDetailReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*MessageDetailReq) ProtoMessage() {}
- func (x *MessageDetailReq) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[12]
- 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 MessageDetailReq.ProtoReflect.Descriptor instead.
- func (*MessageDetailReq) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{12}
- }
- func (x *MessageDetailReq) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- type MessageDetailResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
- Data *Messages `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //
- }
- func (x *MessageDetailResp) Reset() {
- *x = MessageDetailResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[13]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *MessageDetailResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*MessageDetailResp) ProtoMessage() {}
- func (x *MessageDetailResp) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[13]
- 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 MessageDetailResp.ProtoReflect.Descriptor instead.
- func (*MessageDetailResp) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{13}
- }
- func (x *MessageDetailResp) GetCode() int64 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *MessageDetailResp) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- func (x *MessageDetailResp) GetData() *Messages {
- if x != nil {
- return x.Data
- }
- return nil
- }
- type GetLastMessageReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
- MsgType int64 `protobuf:"varint,2,opt,name=msgType,proto3" json:"msgType,omitempty"` //分类 1:客服 2:系统通知 3:营销 4:用户会话
- Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
- }
- func (x *GetLastMessageReq) Reset() {
- *x = GetLastMessageReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[14]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetLastMessageReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetLastMessageReq) ProtoMessage() {}
- func (x *GetLastMessageReq) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[14]
- 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 GetLastMessageReq.ProtoReflect.Descriptor instead.
- func (*GetLastMessageReq) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{14}
- }
- func (x *GetLastMessageReq) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *GetLastMessageReq) GetMsgType() int64 {
- if x != nil {
- return x.MsgType
- }
- return 0
- }
- func (x *GetLastMessageReq) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- type GetLastMessageRes struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
- Data *Messages `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //
- }
- func (x *GetLastMessageRes) Reset() {
- *x = GetLastMessageRes{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[15]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetLastMessageRes) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetLastMessageRes) ProtoMessage() {}
- func (x *GetLastMessageRes) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[15]
- 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 GetLastMessageRes.ProtoReflect.Descriptor instead.
- func (*GetLastMessageRes) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{15}
- }
- func (x *GetLastMessageRes) GetCode() int64 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *GetLastMessageRes) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- func (x *GetLastMessageRes) GetData() *Messages {
- if x != nil {
- return x.Data
- }
- return nil
- }
- // 获取用户分类的的未读消息分类及数量 及分类下最新的消息
- type GetUnreadClassCountReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
- Appid string `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
- }
- func (x *GetUnreadClassCountReq) Reset() {
- *x = GetUnreadClassCountReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[16]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetUnreadClassCountReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetUnreadClassCountReq) ProtoMessage() {}
- func (x *GetUnreadClassCountReq) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[16]
- 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 GetUnreadClassCountReq.ProtoReflect.Descriptor instead.
- func (*GetUnreadClassCountReq) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{16}
- }
- func (x *GetUnreadClassCountReq) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *GetUnreadClassCountReq) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- type GetUnreadClassCountRes struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
- Data []*ResCount `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` //
- Info []*Messages `protobuf:"bytes,4,rep,name=info,proto3" json:"info,omitempty"` // 每个类型最新消息列表
- }
- func (x *GetUnreadClassCountRes) Reset() {
- *x = GetUnreadClassCountRes{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[17]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetUnreadClassCountRes) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetUnreadClassCountRes) ProtoMessage() {}
- func (x *GetUnreadClassCountRes) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[17]
- 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 GetUnreadClassCountRes.ProtoReflect.Descriptor instead.
- func (*GetUnreadClassCountRes) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{17}
- }
- func (x *GetUnreadClassCountRes) GetCode() int64 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *GetUnreadClassCountRes) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- func (x *GetUnreadClassCountRes) GetData() []*ResCount {
- if x != nil {
- return x.Data
- }
- return nil
- }
- func (x *GetUnreadClassCountRes) GetInfo() []*Messages {
- if x != nil {
- return x.Info
- }
- return nil
- }
- type GetMsgTypeReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
- Appid string `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
- }
- func (x *GetMsgTypeReq) Reset() {
- *x = GetMsgTypeReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[18]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetMsgTypeReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetMsgTypeReq) ProtoMessage() {}
- func (x *GetMsgTypeReq) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[18]
- 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 GetMsgTypeReq.ProtoReflect.Descriptor instead.
- func (*GetMsgTypeReq) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{18}
- }
- func (x *GetMsgTypeReq) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *GetMsgTypeReq) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- type GetMsgTypeRes struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
- Data []int64 `protobuf:"varint,3,rep,packed,name=data,proto3" json:"data,omitempty"` //
- }
- func (x *GetMsgTypeRes) Reset() {
- *x = GetMsgTypeRes{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[19]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetMsgTypeRes) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetMsgTypeRes) ProtoMessage() {}
- func (x *GetMsgTypeRes) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[19]
- 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 GetMsgTypeRes.ProtoReflect.Descriptor instead.
- func (*GetMsgTypeRes) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{19}
- }
- func (x *GetMsgTypeRes) GetCode() int64 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *GetMsgTypeRes) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- func (x *GetMsgTypeRes) GetData() []int64 {
- if x != nil {
- return x.Data
- }
- return nil
- }
- //更新分类下消息状态 已读、未读
- type UpdateMessageReadReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- MsgType int64 `protobuf:"varint,1,opt,name=msgType,proto3" json:"msgType,omitempty"`
- ReceiveUserid string `protobuf:"bytes,2,opt,name=receiveUserid,proto3" json:"receiveUserid,omitempty"`
- AppId string `protobuf:"bytes,3,opt,name=appId,proto3" json:"appId,omitempty"`
- }
- func (x *UpdateMessageReadReq) Reset() {
- *x = UpdateMessageReadReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[20]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UpdateMessageReadReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UpdateMessageReadReq) ProtoMessage() {}
- func (x *UpdateMessageReadReq) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[20]
- 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 UpdateMessageReadReq.ProtoReflect.Descriptor instead.
- func (*UpdateMessageReadReq) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{20}
- }
- func (x *UpdateMessageReadReq) GetMsgType() int64 {
- if x != nil {
- return x.MsgType
- }
- return 0
- }
- func (x *UpdateMessageReadReq) GetReceiveUserid() string {
- if x != nil {
- return x.ReceiveUserid
- }
- return ""
- }
- func (x *UpdateMessageReadReq) GetAppId() string {
- if x != nil {
- return x.AppId
- }
- return ""
- }
- type UpdateMessageReadResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
- Status int64 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
- }
- func (x *UpdateMessageReadResp) Reset() {
- *x = UpdateMessageReadResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[21]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UpdateMessageReadResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UpdateMessageReadResp) ProtoMessage() {}
- func (x *UpdateMessageReadResp) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[21]
- 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 UpdateMessageReadResp.ProtoReflect.Descriptor instead.
- func (*UpdateMessageReadResp) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{21}
- }
- func (x *UpdateMessageReadResp) GetCode() int64 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *UpdateMessageReadResp) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- func (x *UpdateMessageReadResp) GetStatus() int64 {
- if x != nil {
- return x.Status
- }
- return 0
- }
- var File_message_proto protoreflect.FileDescriptor
- var file_message_proto_rawDesc = []byte{
- 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
- 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xa0, 0x02, 0x0a, 0x0e, 0x53, 0x65, 0x6e,
- 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x72,
- 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49,
- 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e,
- 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49,
- 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65,
- 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x18,
- 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12,
- 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
- 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
- 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12,
- 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03,
- 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e,
- 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x16, 0x0a,
- 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63,
- 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x0a,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x5f, 0x0a, 0x17, 0x43,
- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x61, 0x64, 0x53, 0x74,
- 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x61, 0x64,
- 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18,
- 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x3a, 0x0a, 0x08,
- 0x52, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54,
- 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79,
- 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
- 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x42, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65,
- 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18,
- 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x44, 0x0a, 0x1c,
- 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65,
- 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02,
- 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05,
- 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70,
- 0x69, 0x64, 0x22, 0x45, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43,
- 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75,
- 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65,
- 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x38, 0x0a, 0x08, 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, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73,
- 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73,
- 0x61, 0x67, 0x65, 0x22, 0x5c, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64,
- 0x43, 0x6f, 0x75, 0x6e, 0x74, 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, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63,
- 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e,
- 0x74, 0x22, 0xc6, 0x01, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73,
- 0x67, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d,
- 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72,
- 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x53,
- 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x53, 0x65, 0x74,
- 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01,
- 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x18, 0x0a, 0x07,
- 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d,
- 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x65, 0x61, 0x64, 0x18, 0x07,
- 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x72, 0x65, 0x61, 0x64, 0x22, 0xe2, 0x02, 0x0a, 0x08, 0x4d,
- 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69,
- 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
- 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a,
- 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12,
- 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12,
- 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74,
- 0x69, 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c,
- 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d,
- 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73,
- 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x08, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x69, 0x74,
- 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x69, 0x74, 0x65, 0x49,
- 0x64, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28,
- 0x03, 0x52, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x72, 0x65,
- 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63,
- 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70,
- 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12,
- 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22,
- 0x7b, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65,
- 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
- 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
- 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e,
- 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73,
- 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
- 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x60, 0x0a, 0x16,
- 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f,
- 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18,
- 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
- 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69,
- 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x22,
- 0x0a, 0x10, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52,
- 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02,
- 0x69, 0x64, 0x22, 0x68, 0x0a, 0x11, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74,
- 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d,
- 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65,
- 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20,
- 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65,
- 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x5b, 0x0a, 0x11,
- 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65,
- 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67,
- 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54,
- 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x68, 0x0a, 0x11, 0x47, 0x65, 0x74,
- 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x12, 0x12,
- 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f,
- 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x04,
- 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73,
- 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x04, 0x64,
- 0x61, 0x74, 0x61, 0x22, 0x46, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64,
- 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a,
- 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75,
- 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x94, 0x01, 0x0a, 0x16,
- 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f,
- 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65,
- 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73,
- 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03,
- 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73,
- 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x25, 0x0a, 0x04, 0x69,
- 0x6e, 0x66, 0x6f, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73,
- 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x04, 0x69, 0x6e,
- 0x66, 0x6f, 0x22, 0x3d, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65,
- 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61,
- 0x70, 0x70, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69,
- 0x64, 0x22, 0x51, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52,
- 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
- 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
- 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
- 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x04,
- 0x64, 0x61, 0x74, 0x61, 0x22, 0x6c, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65,
- 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07,
- 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d,
- 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76,
- 0x65, 0x55, 0x73, 0x65, 0x72, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72,
- 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05,
- 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70,
- 0x49, 0x64, 0x22, 0x5d, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73,
- 0x61, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63,
- 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12,
- 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61,
- 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
- 0x73, 0x32, 0x9d, 0x07, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x47, 0x0a,
- 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75,
- 0x73, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x43, 0x68, 0x61, 0x6e,
- 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65,
- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0b, 0x53, 0x65, 0x6e, 0x64, 0x55, 0x73,
- 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
- 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11,
- 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
- 0x65, 0x12, 0x4d, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c,
- 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
- 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d,
- 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e,
- 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
- 0x12, 0x51, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70,
- 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x2e, 0x6d, 0x65, 0x73, 0x73,
- 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70,
- 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64,
- 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
- 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
- 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65,
- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0b, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73,
- 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
- 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x17,
- 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65,
- 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x6c,
- 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f,
- 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73,
- 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a,
- 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72,
- 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
- 0x12, 0x48, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61,
- 0x67, 0x65, 0x12, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74,
- 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x1a,
- 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74,
- 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x11, 0x46, 0x69,
- 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12,
- 0x19, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
- 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x6d, 0x65, 0x73,
- 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61,
- 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x57, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72,
- 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x2e,
- 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61,
- 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1f,
- 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65,
- 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x12,
- 0x3c, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x2e,
- 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79,
- 0x70, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
- 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x12, 0x52, 0x0a,
- 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65,
- 0x61, 0x64, 0x12, 0x1d, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x55, 0x70, 0x64,
- 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65,
- 0x71, 0x1a, 0x1e, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x55, 0x70, 0x64, 0x61,
- 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73,
- 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_message_proto_rawDescOnce sync.Once
- file_message_proto_rawDescData = file_message_proto_rawDesc
- )
- func file_message_proto_rawDescGZIP() []byte {
- file_message_proto_rawDescOnce.Do(func() {
- file_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_message_proto_rawDescData)
- })
- return file_message_proto_rawDescData
- }
- var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 22)
- var file_message_proto_goTypes = []interface{}{
- (*SendMsgRequest)(nil), // 0: message.SendMsgRequest
- (*ChangeReadStatusRequest)(nil), // 1: message.ChangeReadStatusRequest
- (*ResCount)(nil), // 2: message.ResCount
- (*DeleteSingleMessageRequest)(nil), // 3: message.DeleteSingleMessageRequest
- (*DeleteMultipleMessageRequest)(nil), // 4: message.DeleteMultipleMessageRequest
- (*GetUnreadCountRequest)(nil), // 5: message.GetUnreadCountRequest
- (*Response)(nil), // 6: message.Response
- (*GetUnreadCountResponse)(nil), // 7: message.GetUnreadCountResponse
- (*FindUserMsgReq)(nil), // 8: message.FindUserMsgReq
- (*Messages)(nil), // 9: message.Messages
- (*FindUserMsgRes)(nil), // 10: message.FindUserMsgRes
- (*GetClassUnreadCountReq)(nil), // 11: message.GetClassUnreadCountReq
- (*MessageDetailReq)(nil), // 12: message.MessageDetailReq
- (*MessageDetailResp)(nil), // 13: message.MessageDetailResp
- (*GetLastMessageReq)(nil), // 14: message.GetLastMessageReq
- (*GetLastMessageRes)(nil), // 15: message.GetLastMessageRes
- (*GetUnreadClassCountReq)(nil), // 16: message.GetUnreadClassCountReq
- (*GetUnreadClassCountRes)(nil), // 17: message.GetUnreadClassCountRes
- (*GetMsgTypeReq)(nil), // 18: message.GetMsgTypeReq
- (*GetMsgTypeRes)(nil), // 19: message.GetMsgTypeRes
- (*UpdateMessageReadReq)(nil), // 20: message.UpdateMessageReadReq
- (*UpdateMessageReadResp)(nil), // 21: message.UpdateMessageReadResp
- }
- var file_message_proto_depIdxs = []int32{
- 9, // 0: message.FindUserMsgRes.data:type_name -> message.Messages
- 9, // 1: message.MessageDetailResp.data:type_name -> message.Messages
- 9, // 2: message.GetLastMessageRes.data:type_name -> message.Messages
- 2, // 3: message.GetUnreadClassCountRes.data:type_name -> message.ResCount
- 9, // 4: message.GetUnreadClassCountRes.info:type_name -> message.Messages
- 1, // 5: message.Message.ChangeReadStatus:input_type -> message.ChangeReadStatusRequest
- 0, // 6: message.Message.SendUserMsg:input_type -> message.SendMsgRequest
- 3, // 7: message.Message.DeleteSingleMessage:input_type -> message.DeleteSingleMessageRequest
- 4, // 8: message.Message.DeleteMultipleMessage:input_type -> message.DeleteMultipleMessageRequest
- 5, // 9: message.Message.GetUnreadCount:input_type -> message.GetUnreadCountRequest
- 8, // 10: message.Message.FindUserMsg:input_type -> message.FindUserMsgReq
- 11, // 11: message.Message.GetClassUnreadCount:input_type -> message.GetClassUnreadCountReq
- 14, // 12: message.Message.GetLastMessage:input_type -> message.GetLastMessageReq
- 12, // 13: message.Message.FindMessageDetail:input_type -> message.MessageDetailReq
- 16, // 14: message.Message.GetUnreadClassCount:input_type -> message.GetUnreadClassCountReq
- 18, // 15: message.Message.GetMsgType:input_type -> message.GetMsgTypeReq
- 20, // 16: message.Message.UpdateMessageRead:input_type -> message.UpdateMessageReadReq
- 6, // 17: message.Message.ChangeReadStatus:output_type -> message.Response
- 6, // 18: message.Message.SendUserMsg:output_type -> message.Response
- 6, // 19: message.Message.DeleteSingleMessage:output_type -> message.Response
- 6, // 20: message.Message.DeleteMultipleMessage:output_type -> message.Response
- 7, // 21: message.Message.GetUnreadCount:output_type -> message.GetUnreadCountResponse
- 10, // 22: message.Message.FindUserMsg:output_type -> message.FindUserMsgRes
- 7, // 23: message.Message.GetClassUnreadCount:output_type -> message.GetUnreadCountResponse
- 15, // 24: message.Message.GetLastMessage:output_type -> message.GetLastMessageRes
- 13, // 25: message.Message.FindMessageDetail:output_type -> message.MessageDetailResp
- 17, // 26: message.Message.GetUnreadClassCount:output_type -> message.GetUnreadClassCountRes
- 19, // 27: message.Message.GetMsgType:output_type -> message.GetMsgTypeRes
- 21, // 28: message.Message.UpdateMessageRead:output_type -> message.UpdateMessageReadResp
- 17, // [17:29] is the sub-list for method output_type
- 5, // [5:17] is the sub-list for method input_type
- 5, // [5:5] is the sub-list for extension type_name
- 5, // [5:5] is the sub-list for extension extendee
- 0, // [0:5] is the sub-list for field type_name
- }
- func init() { file_message_proto_init() }
- func file_message_proto_init() {
- if File_message_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*SendMsgRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ChangeReadStatusRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ResCount); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DeleteSingleMessageRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DeleteMultipleMessageRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetUnreadCountRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Response); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetUnreadCountResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*FindUserMsgReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Messages); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*FindUserMsgRes); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetClassUnreadCountReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*MessageDetailReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*MessageDetailResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetLastMessageReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetLastMessageRes); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetUnreadClassCountReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetUnreadClassCountRes); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetMsgTypeReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetMsgTypeRes); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UpdateMessageReadReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UpdateMessageReadResp); 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_message_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 22,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_message_proto_goTypes,
- DependencyIndexes: file_message_proto_depIdxs,
- MessageInfos: file_message_proto_msgTypes,
- }.Build()
- File_message_proto = out.File
- file_message_proto_rawDesc = nil
- file_message_proto_goTypes = nil
- file_message_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
- // MessageClient is the client API for Message service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type MessageClient interface {
- // 修改消息阅读状态
- ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error)
- //指定用户发消息
- SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error)
- // 删除单一消息
- DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error)
- // 删除多条消息
- DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error)
- // 查询指定用户未读消息合计
- GetUnreadCount(ctx context.Context, in *GetUnreadCountRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
- // 查询指定用户的历史消息记录
- FindUserMsg(ctx context.Context, in *FindUserMsgReq, opts ...grpc.CallOption) (*FindUserMsgRes, error)
- // 查询指定用户指定分类的未读消息合计
- GetClassUnreadCount(ctx context.Context, in *GetClassUnreadCountReq, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
- // 获取指定用户指定分类的最新一条未读消息
- GetLastMessage(ctx context.Context, in *GetLastMessageReq, opts ...grpc.CallOption) (*GetLastMessageRes, error)
- //查看详细详情
- FindMessageDetail(ctx context.Context, in *MessageDetailReq, opts ...grpc.CallOption) (*MessageDetailResp, error)
- // 获取指定用户的未读消息分类及数量 及分类的最新消息
- GetUnreadClassCount(ctx context.Context, in *GetUnreadClassCountReq, opts ...grpc.CallOption) (*GetUnreadClassCountRes, error)
- // 获取指定用户收到消息的分类
- GetMsgType(ctx context.Context, in *GetMsgTypeReq, opts ...grpc.CallOption) (*GetMsgTypeRes, error)
- //修改用户指定分类下的消息已读未读
- UpdateMessageRead(ctx context.Context, in *UpdateMessageReadReq, opts ...grpc.CallOption) (*UpdateMessageReadResp, error)
- }
- type messageClient struct {
- cc grpc.ClientConnInterface
- }
- func NewMessageClient(cc grpc.ClientConnInterface) MessageClient {
- return &messageClient{cc}
- }
- func (c *messageClient) ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error) {
- out := new(Response)
- err := c.cc.Invoke(ctx, "/message.Message/ChangeReadStatus", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *messageClient) SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error) {
- out := new(Response)
- err := c.cc.Invoke(ctx, "/message.Message/SendUserMsg", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *messageClient) DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
- out := new(Response)
- err := c.cc.Invoke(ctx, "/message.Message/DeleteSingleMessage", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *messageClient) DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
- out := new(Response)
- err := c.cc.Invoke(ctx, "/message.Message/DeleteMultipleMessage", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *messageClient) GetUnreadCount(ctx context.Context, in *GetUnreadCountRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) {
- out := new(GetUnreadCountResponse)
- err := c.cc.Invoke(ctx, "/message.Message/GetUnreadCount", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *messageClient) FindUserMsg(ctx context.Context, in *FindUserMsgReq, opts ...grpc.CallOption) (*FindUserMsgRes, error) {
- out := new(FindUserMsgRes)
- err := c.cc.Invoke(ctx, "/message.Message/FindUserMsg", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *messageClient) GetClassUnreadCount(ctx context.Context, in *GetClassUnreadCountReq, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) {
- out := new(GetUnreadCountResponse)
- err := c.cc.Invoke(ctx, "/message.Message/GetClassUnreadCount", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *messageClient) GetLastMessage(ctx context.Context, in *GetLastMessageReq, opts ...grpc.CallOption) (*GetLastMessageRes, error) {
- out := new(GetLastMessageRes)
- err := c.cc.Invoke(ctx, "/message.Message/GetLastMessage", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *messageClient) FindMessageDetail(ctx context.Context, in *MessageDetailReq, opts ...grpc.CallOption) (*MessageDetailResp, error) {
- out := new(MessageDetailResp)
- err := c.cc.Invoke(ctx, "/message.Message/FindMessageDetail", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *messageClient) GetUnreadClassCount(ctx context.Context, in *GetUnreadClassCountReq, opts ...grpc.CallOption) (*GetUnreadClassCountRes, error) {
- out := new(GetUnreadClassCountRes)
- err := c.cc.Invoke(ctx, "/message.Message/GetUnreadClassCount", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *messageClient) GetMsgType(ctx context.Context, in *GetMsgTypeReq, opts ...grpc.CallOption) (*GetMsgTypeRes, error) {
- out := new(GetMsgTypeRes)
- err := c.cc.Invoke(ctx, "/message.Message/GetMsgType", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *messageClient) UpdateMessageRead(ctx context.Context, in *UpdateMessageReadReq, opts ...grpc.CallOption) (*UpdateMessageReadResp, error) {
- out := new(UpdateMessageReadResp)
- err := c.cc.Invoke(ctx, "/message.Message/UpdateMessageRead", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // MessageServer is the server API for Message service.
- type MessageServer interface {
- // 修改消息阅读状态
- ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error)
- //指定用户发消息
- SendUserMsg(context.Context, *SendMsgRequest) (*Response, error)
- // 删除单一消息
- DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error)
- // 删除多条消息
- DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error)
- // 查询指定用户未读消息合计
- GetUnreadCount(context.Context, *GetUnreadCountRequest) (*GetUnreadCountResponse, error)
- // 查询指定用户的历史消息记录
- FindUserMsg(context.Context, *FindUserMsgReq) (*FindUserMsgRes, error)
- // 查询指定用户指定分类的未读消息合计
- GetClassUnreadCount(context.Context, *GetClassUnreadCountReq) (*GetUnreadCountResponse, error)
- // 获取指定用户指定分类的最新一条未读消息
- GetLastMessage(context.Context, *GetLastMessageReq) (*GetLastMessageRes, error)
- //查看详细详情
- FindMessageDetail(context.Context, *MessageDetailReq) (*MessageDetailResp, error)
- // 获取指定用户的未读消息分类及数量 及分类的最新消息
- GetUnreadClassCount(context.Context, *GetUnreadClassCountReq) (*GetUnreadClassCountRes, error)
- // 获取指定用户收到消息的分类
- GetMsgType(context.Context, *GetMsgTypeReq) (*GetMsgTypeRes, error)
- //修改用户指定分类下的消息已读未读
- UpdateMessageRead(context.Context, *UpdateMessageReadReq) (*UpdateMessageReadResp, error)
- }
- // UnimplementedMessageServer can be embedded to have forward compatible implementations.
- type UnimplementedMessageServer struct {
- }
- func (*UnimplementedMessageServer) ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ChangeReadStatus not implemented")
- }
- func (*UnimplementedMessageServer) SendUserMsg(context.Context, *SendMsgRequest) (*Response, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SendUserMsg not implemented")
- }
- func (*UnimplementedMessageServer) DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeleteSingleMessage not implemented")
- }
- func (*UnimplementedMessageServer) DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeleteMultipleMessage not implemented")
- }
- func (*UnimplementedMessageServer) GetUnreadCount(context.Context, *GetUnreadCountRequest) (*GetUnreadCountResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetUnreadCount not implemented")
- }
- func (*UnimplementedMessageServer) FindUserMsg(context.Context, *FindUserMsgReq) (*FindUserMsgRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindUserMsg not implemented")
- }
- func (*UnimplementedMessageServer) GetClassUnreadCount(context.Context, *GetClassUnreadCountReq) (*GetUnreadCountResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetClassUnreadCount not implemented")
- }
- func (*UnimplementedMessageServer) GetLastMessage(context.Context, *GetLastMessageReq) (*GetLastMessageRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetLastMessage not implemented")
- }
- func (*UnimplementedMessageServer) FindMessageDetail(context.Context, *MessageDetailReq) (*MessageDetailResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindMessageDetail not implemented")
- }
- func (*UnimplementedMessageServer) GetUnreadClassCount(context.Context, *GetUnreadClassCountReq) (*GetUnreadClassCountRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetUnreadClassCount not implemented")
- }
- func (*UnimplementedMessageServer) GetMsgType(context.Context, *GetMsgTypeReq) (*GetMsgTypeRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetMsgType not implemented")
- }
- func (*UnimplementedMessageServer) UpdateMessageRead(context.Context, *UpdateMessageReadReq) (*UpdateMessageReadResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateMessageRead not implemented")
- }
- func RegisterMessageServer(s *grpc.Server, srv MessageServer) {
- s.RegisterService(&_Message_serviceDesc, srv)
- }
- func _Message_ChangeReadStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ChangeReadStatusRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MessageServer).ChangeReadStatus(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/message.Message/ChangeReadStatus",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MessageServer).ChangeReadStatus(ctx, req.(*ChangeReadStatusRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Message_SendUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SendMsgRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MessageServer).SendUserMsg(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/message.Message/SendUserMsg",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MessageServer).SendUserMsg(ctx, req.(*SendMsgRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Message_DeleteSingleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DeleteSingleMessageRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MessageServer).DeleteSingleMessage(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/message.Message/DeleteSingleMessage",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MessageServer).DeleteSingleMessage(ctx, req.(*DeleteSingleMessageRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Message_DeleteMultipleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DeleteMultipleMessageRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MessageServer).DeleteMultipleMessage(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/message.Message/DeleteMultipleMessage",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MessageServer).DeleteMultipleMessage(ctx, req.(*DeleteMultipleMessageRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Message_GetUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetUnreadCountRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MessageServer).GetUnreadCount(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/message.Message/GetUnreadCount",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MessageServer).GetUnreadCount(ctx, req.(*GetUnreadCountRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Message_FindUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(FindUserMsgReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MessageServer).FindUserMsg(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/message.Message/FindUserMsg",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MessageServer).FindUserMsg(ctx, req.(*FindUserMsgReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Message_GetClassUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetClassUnreadCountReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MessageServer).GetClassUnreadCount(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/message.Message/GetClassUnreadCount",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MessageServer).GetClassUnreadCount(ctx, req.(*GetClassUnreadCountReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Message_GetLastMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetLastMessageReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MessageServer).GetLastMessage(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/message.Message/GetLastMessage",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MessageServer).GetLastMessage(ctx, req.(*GetLastMessageReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Message_FindMessageDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(MessageDetailReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MessageServer).FindMessageDetail(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/message.Message/FindMessageDetail",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MessageServer).FindMessageDetail(ctx, req.(*MessageDetailReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Message_GetUnreadClassCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetUnreadClassCountReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MessageServer).GetUnreadClassCount(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/message.Message/GetUnreadClassCount",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MessageServer).GetUnreadClassCount(ctx, req.(*GetUnreadClassCountReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Message_GetMsgType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetMsgTypeReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MessageServer).GetMsgType(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/message.Message/GetMsgType",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MessageServer).GetMsgType(ctx, req.(*GetMsgTypeReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Message_UpdateMessageRead_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UpdateMessageReadReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MessageServer).UpdateMessageRead(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/message.Message/UpdateMessageRead",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MessageServer).UpdateMessageRead(ctx, req.(*UpdateMessageReadReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _Message_serviceDesc = grpc.ServiceDesc{
- ServiceName: "message.Message",
- HandlerType: (*MessageServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "ChangeReadStatus",
- Handler: _Message_ChangeReadStatus_Handler,
- },
- {
- MethodName: "SendUserMsg",
- Handler: _Message_SendUserMsg_Handler,
- },
- {
- MethodName: "DeleteSingleMessage",
- Handler: _Message_DeleteSingleMessage_Handler,
- },
- {
- MethodName: "DeleteMultipleMessage",
- Handler: _Message_DeleteMultipleMessage_Handler,
- },
- {
- MethodName: "GetUnreadCount",
- Handler: _Message_GetUnreadCount_Handler,
- },
- {
- MethodName: "FindUserMsg",
- Handler: _Message_FindUserMsg_Handler,
- },
- {
- MethodName: "GetClassUnreadCount",
- Handler: _Message_GetClassUnreadCount_Handler,
- },
- {
- MethodName: "GetLastMessage",
- Handler: _Message_GetLastMessage_Handler,
- },
- {
- MethodName: "FindMessageDetail",
- Handler: _Message_FindMessageDetail_Handler,
- },
- {
- MethodName: "GetUnreadClassCount",
- Handler: _Message_GetUnreadClassCount_Handler,
- },
- {
- MethodName: "GetMsgType",
- Handler: _Message_GetMsgType_Handler,
- },
- {
- MethodName: "UpdateMessageRead",
- Handler: _Message_UpdateMessageRead_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "message.proto",
- }
|