api.pb.go 85 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/main/history/api/grpc/api.proto
  3. /*
  4. Package v1 is a generated protocol buffer package.
  5. It is generated from these files:
  6. app/service/main/history/api/grpc/api.proto
  7. It has these top-level messages:
  8. AddHistoryReply
  9. AddHistoryReq
  10. AddHistoriesReq
  11. AddHistoriesReply
  12. DelHistoriesReq
  13. DelHistoriesReply
  14. ClearHistoryReq
  15. ClearHistoryReply
  16. UserHistoriesReq
  17. UserHistoriesReply
  18. HistoriesReq
  19. HistoriesReply
  20. UserHideReq
  21. UserHideReply
  22. UpdateUserHideReq
  23. UpdateUserHideReply
  24. */
  25. package v1
  26. import proto "github.com/gogo/protobuf/proto"
  27. import fmt "fmt"
  28. import math "math"
  29. import _ "github.com/gogo/protobuf/gogoproto"
  30. import history "go-common/app/service/main/history/model"
  31. import context "golang.org/x/net/context"
  32. import grpc "google.golang.org/grpc"
  33. import io "io"
  34. // Reference imports to suppress errors if they are not otherwise used.
  35. var _ = proto.Marshal
  36. var _ = fmt.Errorf
  37. var _ = math.Inf
  38. // This is a compile-time assertion to ensure that this generated file
  39. // is compatible with the proto package it is being compiled against.
  40. // A compilation error at this line likely means your copy of the
  41. // proto package needs to be updated.
  42. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  43. // AddHistoryReply reply
  44. type AddHistoryReply struct {
  45. }
  46. func (m *AddHistoryReply) Reset() { *m = AddHistoryReply{} }
  47. func (m *AddHistoryReply) String() string { return proto.CompactTextString(m) }
  48. func (*AddHistoryReply) ProtoMessage() {}
  49. func (*AddHistoryReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{0} }
  50. // AddHistoryReq req
  51. type AddHistoryReq struct {
  52. // mid
  53. Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"required"`
  54. // business 业务
  55. Business string `protobuf:"bytes,2,opt,name=business,proto3" json:"business,omitempty" form:"business" validate:"required"`
  56. // kid 业务中唯一id
  57. Kid int64 `protobuf:"varint,3,opt,name=kid,proto3" json:"kid,omitempty" form:"kid" validate:"required"`
  58. // aid
  59. Aid int64 `protobuf:"varint,4,opt,name=aid,proto3" json:"aid,omitempty" form:"aid"`
  60. // sid
  61. Sid int64 `protobuf:"varint,5,opt,name=sid,proto3" json:"sid,omitempty" form:"sid"`
  62. // epid
  63. Epid int64 `protobuf:"varint,6,opt,name=epid,proto3" json:"epid,omitempty" form:"epid"`
  64. // cid
  65. Cid int64 `protobuf:"varint,7,opt,name=cid,proto3" json:"cid,omitempty" form:"cid"`
  66. // sub_type 子类型
  67. SubType int32 `protobuf:"varint,8,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty" form:"sub_type"`
  68. // device 设备类型
  69. Device int32 `protobuf:"varint,9,opt,name=device,proto3" json:"device,omitempty" form:"device"`
  70. // progress 进度
  71. Progress int32 `protobuf:"varint,10,opt,name=progress,proto3" json:"progress,omitempty" form:"progress"`
  72. // 观看时间
  73. ViewAt int64 `protobuf:"varint,11,opt,name=view_at,json=viewAt,proto3" json:"view_at,omitempty" form:"view_at" validate:"required"`
  74. }
  75. func (m *AddHistoryReq) Reset() { *m = AddHistoryReq{} }
  76. func (m *AddHistoryReq) String() string { return proto.CompactTextString(m) }
  77. func (*AddHistoryReq) ProtoMessage() {}
  78. func (*AddHistoryReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{1} }
  79. func (m *AddHistoryReq) GetMid() int64 {
  80. if m != nil {
  81. return m.Mid
  82. }
  83. return 0
  84. }
  85. func (m *AddHistoryReq) GetBusiness() string {
  86. if m != nil {
  87. return m.Business
  88. }
  89. return ""
  90. }
  91. func (m *AddHistoryReq) GetKid() int64 {
  92. if m != nil {
  93. return m.Kid
  94. }
  95. return 0
  96. }
  97. func (m *AddHistoryReq) GetAid() int64 {
  98. if m != nil {
  99. return m.Aid
  100. }
  101. return 0
  102. }
  103. func (m *AddHistoryReq) GetSid() int64 {
  104. if m != nil {
  105. return m.Sid
  106. }
  107. return 0
  108. }
  109. func (m *AddHistoryReq) GetEpid() int64 {
  110. if m != nil {
  111. return m.Epid
  112. }
  113. return 0
  114. }
  115. func (m *AddHistoryReq) GetCid() int64 {
  116. if m != nil {
  117. return m.Cid
  118. }
  119. return 0
  120. }
  121. func (m *AddHistoryReq) GetSubType() int32 {
  122. if m != nil {
  123. return m.SubType
  124. }
  125. return 0
  126. }
  127. func (m *AddHistoryReq) GetDevice() int32 {
  128. if m != nil {
  129. return m.Device
  130. }
  131. return 0
  132. }
  133. func (m *AddHistoryReq) GetProgress() int32 {
  134. if m != nil {
  135. return m.Progress
  136. }
  137. return 0
  138. }
  139. func (m *AddHistoryReq) GetViewAt() int64 {
  140. if m != nil {
  141. return m.ViewAt
  142. }
  143. return 0
  144. }
  145. // AddHistoriesReq 增加多条记录
  146. type AddHistoriesReq struct {
  147. Histories []*AddHistoryReq `protobuf:"bytes,1,rep,name=histories" json:"histories,omitempty"`
  148. }
  149. func (m *AddHistoriesReq) Reset() { *m = AddHistoriesReq{} }
  150. func (m *AddHistoriesReq) String() string { return proto.CompactTextString(m) }
  151. func (*AddHistoriesReq) ProtoMessage() {}
  152. func (*AddHistoriesReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{2} }
  153. func (m *AddHistoriesReq) GetHistories() []*AddHistoryReq {
  154. if m != nil {
  155. return m.Histories
  156. }
  157. return nil
  158. }
  159. // AddHistoriesReply .
  160. type AddHistoriesReply struct {
  161. }
  162. func (m *AddHistoriesReply) Reset() { *m = AddHistoriesReply{} }
  163. func (m *AddHistoriesReply) String() string { return proto.CompactTextString(m) }
  164. func (*AddHistoriesReply) ProtoMessage() {}
  165. func (*AddHistoriesReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{3} }
  166. // DelHistoriesReq del histories request
  167. type DelHistoriesReq struct {
  168. // mid
  169. Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"required,min=1"`
  170. Records []*DelHistoriesReq_Record `protobuf:"bytes,2,rep,name=records" json:"records,omitempty" validate:"required"`
  171. }
  172. func (m *DelHistoriesReq) Reset() { *m = DelHistoriesReq{} }
  173. func (m *DelHistoriesReq) String() string { return proto.CompactTextString(m) }
  174. func (*DelHistoriesReq) ProtoMessage() {}
  175. func (*DelHistoriesReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{4} }
  176. func (m *DelHistoriesReq) GetMid() int64 {
  177. if m != nil {
  178. return m.Mid
  179. }
  180. return 0
  181. }
  182. func (m *DelHistoriesReq) GetRecords() []*DelHistoriesReq_Record {
  183. if m != nil {
  184. return m.Records
  185. }
  186. return nil
  187. }
  188. type DelHistoriesReq_Record struct {
  189. // business 业务
  190. Business string `protobuf:"bytes,1,opt,name=business,proto3" json:"business,omitempty" form:"business" validate:"required"`
  191. // id
  192. ID int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty" form:"id" validate:"required"`
  193. }
  194. func (m *DelHistoriesReq_Record) Reset() { *m = DelHistoriesReq_Record{} }
  195. func (m *DelHistoriesReq_Record) String() string { return proto.CompactTextString(m) }
  196. func (*DelHistoriesReq_Record) ProtoMessage() {}
  197. func (*DelHistoriesReq_Record) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{4, 0} }
  198. func (m *DelHistoriesReq_Record) GetBusiness() string {
  199. if m != nil {
  200. return m.Business
  201. }
  202. return ""
  203. }
  204. func (m *DelHistoriesReq_Record) GetID() int64 {
  205. if m != nil {
  206. return m.ID
  207. }
  208. return 0
  209. }
  210. // DelHistoriesReply del histories reply
  211. type DelHistoriesReply struct {
  212. }
  213. func (m *DelHistoriesReply) Reset() { *m = DelHistoriesReply{} }
  214. func (m *DelHistoriesReply) String() string { return proto.CompactTextString(m) }
  215. func (*DelHistoriesReply) ProtoMessage() {}
  216. func (*DelHistoriesReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{5} }
  217. // ClearHistoryReq clear histories request
  218. type ClearHistoryReq struct {
  219. // businesses 业务 为空为全部业务
  220. Businesses []string `protobuf:"bytes,1,rep,name=businesses" json:"businesses,omitempty" form:"businesses,split"`
  221. // mid
  222. Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"required,min=1"`
  223. }
  224. func (m *ClearHistoryReq) Reset() { *m = ClearHistoryReq{} }
  225. func (m *ClearHistoryReq) String() string { return proto.CompactTextString(m) }
  226. func (*ClearHistoryReq) ProtoMessage() {}
  227. func (*ClearHistoryReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{6} }
  228. func (m *ClearHistoryReq) GetBusinesses() []string {
  229. if m != nil {
  230. return m.Businesses
  231. }
  232. return nil
  233. }
  234. func (m *ClearHistoryReq) GetMid() int64 {
  235. if m != nil {
  236. return m.Mid
  237. }
  238. return 0
  239. }
  240. // ClearHistoryReply clear histories reply
  241. type ClearHistoryReply struct {
  242. }
  243. func (m *ClearHistoryReply) Reset() { *m = ClearHistoryReply{} }
  244. func (m *ClearHistoryReply) String() string { return proto.CompactTextString(m) }
  245. func (*ClearHistoryReply) ProtoMessage() {}
  246. func (*ClearHistoryReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{7} }
  247. // UserHistoriesReq .
  248. type UserHistoriesReq struct {
  249. // mid
  250. Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"required,min=1"`
  251. // businesses 查询的业务范围 为空为全部业务
  252. Businesses []string `protobuf:"bytes,2,rep,name=businesses" json:"businesses,omitempty" form:"businesses,split"`
  253. // business 上一条的业务类型
  254. Business string `protobuf:"bytes,3,opt,name=business,proto3" json:"business,omitempty" form:"business"`
  255. // kid 上一条的id 业务中唯一id
  256. Kid int64 `protobuf:"varint,4,opt,name=kid,proto3" json:"kid,omitempty" form:"kid"`
  257. // 上一条的观看时间
  258. ViewAt int64 `protobuf:"varint,5,opt,name=view_at,json=viewAt,proto3" json:"view_at,omitempty" form:"view_at" validate:"required"`
  259. // 每页几条
  260. Ps int64 `protobuf:"varint,6,opt,name=Ps,proto3" json:"Ps,omitempty" form:"ps" validate:"required,min=1,max=1000"`
  261. }
  262. func (m *UserHistoriesReq) Reset() { *m = UserHistoriesReq{} }
  263. func (m *UserHistoriesReq) String() string { return proto.CompactTextString(m) }
  264. func (*UserHistoriesReq) ProtoMessage() {}
  265. func (*UserHistoriesReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{8} }
  266. func (m *UserHistoriesReq) GetMid() int64 {
  267. if m != nil {
  268. return m.Mid
  269. }
  270. return 0
  271. }
  272. func (m *UserHistoriesReq) GetBusinesses() []string {
  273. if m != nil {
  274. return m.Businesses
  275. }
  276. return nil
  277. }
  278. func (m *UserHistoriesReq) GetBusiness() string {
  279. if m != nil {
  280. return m.Business
  281. }
  282. return ""
  283. }
  284. func (m *UserHistoriesReq) GetKid() int64 {
  285. if m != nil {
  286. return m.Kid
  287. }
  288. return 0
  289. }
  290. func (m *UserHistoriesReq) GetViewAt() int64 {
  291. if m != nil {
  292. return m.ViewAt
  293. }
  294. return 0
  295. }
  296. func (m *UserHistoriesReq) GetPs() int64 {
  297. if m != nil {
  298. return m.Ps
  299. }
  300. return 0
  301. }
  302. // UserHistoriesReply .
  303. type UserHistoriesReply struct {
  304. Histories []*history.History `protobuf:"bytes,1,rep,name=histories" json:"histories"`
  305. }
  306. func (m *UserHistoriesReply) Reset() { *m = UserHistoriesReply{} }
  307. func (m *UserHistoriesReply) String() string { return proto.CompactTextString(m) }
  308. func (*UserHistoriesReply) ProtoMessage() {}
  309. func (*UserHistoriesReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{9} }
  310. func (m *UserHistoriesReply) GetHistories() []*history.History {
  311. if m != nil {
  312. return m.Histories
  313. }
  314. return nil
  315. }
  316. // HistoriesReq .
  317. type HistoriesReq struct {
  318. // mid
  319. Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"required,min=1"`
  320. // business 业务
  321. Business string `protobuf:"bytes,2,opt,name=business,proto3" json:"business,omitempty" form:"business" validate:"required"`
  322. // kids 业务id
  323. Kids []int64 `protobuf:"varint,3,rep,packed,name=kids" json:"kids,omitempty" form:"kids,split" validate:"required"`
  324. }
  325. func (m *HistoriesReq) Reset() { *m = HistoriesReq{} }
  326. func (m *HistoriesReq) String() string { return proto.CompactTextString(m) }
  327. func (*HistoriesReq) ProtoMessage() {}
  328. func (*HistoriesReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{10} }
  329. func (m *HistoriesReq) GetMid() int64 {
  330. if m != nil {
  331. return m.Mid
  332. }
  333. return 0
  334. }
  335. func (m *HistoriesReq) GetBusiness() string {
  336. if m != nil {
  337. return m.Business
  338. }
  339. return ""
  340. }
  341. func (m *HistoriesReq) GetKids() []int64 {
  342. if m != nil {
  343. return m.Kids
  344. }
  345. return nil
  346. }
  347. // AddHistoriesReply .
  348. type HistoriesReply struct {
  349. Histories map[int64]*history.History `protobuf:"bytes,1,rep,name=histories" json:"histories" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
  350. }
  351. func (m *HistoriesReply) Reset() { *m = HistoriesReply{} }
  352. func (m *HistoriesReply) String() string { return proto.CompactTextString(m) }
  353. func (*HistoriesReply) ProtoMessage() {}
  354. func (*HistoriesReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{11} }
  355. func (m *HistoriesReply) GetHistories() map[int64]*history.History {
  356. if m != nil {
  357. return m.Histories
  358. }
  359. return nil
  360. }
  361. // UserHideReq req
  362. type UserHideReq struct {
  363. // mid
  364. Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"required,min=1"`
  365. }
  366. func (m *UserHideReq) Reset() { *m = UserHideReq{} }
  367. func (m *UserHideReq) String() string { return proto.CompactTextString(m) }
  368. func (*UserHideReq) ProtoMessage() {}
  369. func (*UserHideReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{12} }
  370. func (m *UserHideReq) GetMid() int64 {
  371. if m != nil {
  372. return m.Mid
  373. }
  374. return 0
  375. }
  376. // UserHideReply reply
  377. type UserHideReply struct {
  378. Hide bool `protobuf:"varint,1,opt,name=hide,proto3" json:"hide"`
  379. }
  380. func (m *UserHideReply) Reset() { *m = UserHideReply{} }
  381. func (m *UserHideReply) String() string { return proto.CompactTextString(m) }
  382. func (*UserHideReply) ProtoMessage() {}
  383. func (*UserHideReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{13} }
  384. func (m *UserHideReply) GetHide() bool {
  385. if m != nil {
  386. return m.Hide
  387. }
  388. return false
  389. }
  390. // UpdateUserHideReq req
  391. type UpdateUserHideReq struct {
  392. // mid
  393. Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"required,min=1"`
  394. Hide bool `protobuf:"varint,2,opt,name=hide,proto3" json:"hide,omitempty" form:"hide"`
  395. }
  396. func (m *UpdateUserHideReq) Reset() { *m = UpdateUserHideReq{} }
  397. func (m *UpdateUserHideReq) String() string { return proto.CompactTextString(m) }
  398. func (*UpdateUserHideReq) ProtoMessage() {}
  399. func (*UpdateUserHideReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{14} }
  400. func (m *UpdateUserHideReq) GetMid() int64 {
  401. if m != nil {
  402. return m.Mid
  403. }
  404. return 0
  405. }
  406. func (m *UpdateUserHideReq) GetHide() bool {
  407. if m != nil {
  408. return m.Hide
  409. }
  410. return false
  411. }
  412. // UpdateUserHideReply reply
  413. type UpdateUserHideReply struct {
  414. }
  415. func (m *UpdateUserHideReply) Reset() { *m = UpdateUserHideReply{} }
  416. func (m *UpdateUserHideReply) String() string { return proto.CompactTextString(m) }
  417. func (*UpdateUserHideReply) ProtoMessage() {}
  418. func (*UpdateUserHideReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{15} }
  419. func init() {
  420. proto.RegisterType((*AddHistoryReply)(nil), "community.service.history.v1.AddHistoryReply")
  421. proto.RegisterType((*AddHistoryReq)(nil), "community.service.history.v1.AddHistoryReq")
  422. proto.RegisterType((*AddHistoriesReq)(nil), "community.service.history.v1.AddHistoriesReq")
  423. proto.RegisterType((*AddHistoriesReply)(nil), "community.service.history.v1.AddHistoriesReply")
  424. proto.RegisterType((*DelHistoriesReq)(nil), "community.service.history.v1.DelHistoriesReq")
  425. proto.RegisterType((*DelHistoriesReq_Record)(nil), "community.service.history.v1.DelHistoriesReq.Record")
  426. proto.RegisterType((*DelHistoriesReply)(nil), "community.service.history.v1.DelHistoriesReply")
  427. proto.RegisterType((*ClearHistoryReq)(nil), "community.service.history.v1.ClearHistoryReq")
  428. proto.RegisterType((*ClearHistoryReply)(nil), "community.service.history.v1.ClearHistoryReply")
  429. proto.RegisterType((*UserHistoriesReq)(nil), "community.service.history.v1.UserHistoriesReq")
  430. proto.RegisterType((*UserHistoriesReply)(nil), "community.service.history.v1.UserHistoriesReply")
  431. proto.RegisterType((*HistoriesReq)(nil), "community.service.history.v1.HistoriesReq")
  432. proto.RegisterType((*HistoriesReply)(nil), "community.service.history.v1.HistoriesReply")
  433. proto.RegisterType((*UserHideReq)(nil), "community.service.history.v1.UserHideReq")
  434. proto.RegisterType((*UserHideReply)(nil), "community.service.history.v1.UserHideReply")
  435. proto.RegisterType((*UpdateUserHideReq)(nil), "community.service.history.v1.UpdateUserHideReq")
  436. proto.RegisterType((*UpdateUserHideReply)(nil), "community.service.history.v1.UpdateUserHideReply")
  437. }
  438. // Reference imports to suppress errors if they are not otherwise used.
  439. var _ context.Context
  440. var _ grpc.ClientConn
  441. // This is a compile-time assertion to ensure that this generated file
  442. // is compatible with the grpc package it is being compiled against.
  443. const _ = grpc.SupportPackageIsVersion4
  444. // Client API for History service
  445. type HistoryClient interface {
  446. // AddHistory add history. 增加播放历史接口
  447. AddHistory(ctx context.Context, in *AddHistoryReq, opts ...grpc.CallOption) (*AddHistoryReply, error)
  448. // AddHistories 增加多条播放历史记录
  449. AddHistories(ctx context.Context, in *AddHistoriesReq, opts ...grpc.CallOption) (*AddHistoriesReply, error)
  450. // DelHistories delete histories. 批量删除播放历史接口
  451. DelHistories(ctx context.Context, in *DelHistoriesReq, opts ...grpc.CallOption) (*DelHistoriesReply, error)
  452. // ClearHistory clear history 按照业务删除所有播放记录
  453. ClearHistory(ctx context.Context, in *ClearHistoryReq, opts ...grpc.CallOption) (*ClearHistoryReply, error)
  454. // UserHistories 查询用户的播放历史列表
  455. UserHistories(ctx context.Context, in *UserHistoriesReq, opts ...grpc.CallOption) (*UserHistoriesReply, error)
  456. // Histories 根据id查询播放历史
  457. Histories(ctx context.Context, in *HistoriesReq, opts ...grpc.CallOption) (*HistoriesReply, error)
  458. // UserHide 查询是否记录播放历史
  459. UserHide(ctx context.Context, in *UserHideReq, opts ...grpc.CallOption) (*UserHideReply, error)
  460. // UpdateUserHide 修改是否记录播放历史
  461. UpdateUserHide(ctx context.Context, in *UpdateUserHideReq, opts ...grpc.CallOption) (*UpdateUserHideReply, error)
  462. }
  463. type historyClient struct {
  464. cc *grpc.ClientConn
  465. }
  466. func NewHistoryClient(cc *grpc.ClientConn) HistoryClient {
  467. return &historyClient{cc}
  468. }
  469. func (c *historyClient) AddHistory(ctx context.Context, in *AddHistoryReq, opts ...grpc.CallOption) (*AddHistoryReply, error) {
  470. out := new(AddHistoryReply)
  471. err := grpc.Invoke(ctx, "/community.service.history.v1.History/AddHistory", in, out, c.cc, opts...)
  472. if err != nil {
  473. return nil, err
  474. }
  475. return out, nil
  476. }
  477. func (c *historyClient) AddHistories(ctx context.Context, in *AddHistoriesReq, opts ...grpc.CallOption) (*AddHistoriesReply, error) {
  478. out := new(AddHistoriesReply)
  479. err := grpc.Invoke(ctx, "/community.service.history.v1.History/AddHistories", in, out, c.cc, opts...)
  480. if err != nil {
  481. return nil, err
  482. }
  483. return out, nil
  484. }
  485. func (c *historyClient) DelHistories(ctx context.Context, in *DelHistoriesReq, opts ...grpc.CallOption) (*DelHistoriesReply, error) {
  486. out := new(DelHistoriesReply)
  487. err := grpc.Invoke(ctx, "/community.service.history.v1.History/DelHistories", in, out, c.cc, opts...)
  488. if err != nil {
  489. return nil, err
  490. }
  491. return out, nil
  492. }
  493. func (c *historyClient) ClearHistory(ctx context.Context, in *ClearHistoryReq, opts ...grpc.CallOption) (*ClearHistoryReply, error) {
  494. out := new(ClearHistoryReply)
  495. err := grpc.Invoke(ctx, "/community.service.history.v1.History/ClearHistory", in, out, c.cc, opts...)
  496. if err != nil {
  497. return nil, err
  498. }
  499. return out, nil
  500. }
  501. func (c *historyClient) UserHistories(ctx context.Context, in *UserHistoriesReq, opts ...grpc.CallOption) (*UserHistoriesReply, error) {
  502. out := new(UserHistoriesReply)
  503. err := grpc.Invoke(ctx, "/community.service.history.v1.History/UserHistories", in, out, c.cc, opts...)
  504. if err != nil {
  505. return nil, err
  506. }
  507. return out, nil
  508. }
  509. func (c *historyClient) Histories(ctx context.Context, in *HistoriesReq, opts ...grpc.CallOption) (*HistoriesReply, error) {
  510. out := new(HistoriesReply)
  511. err := grpc.Invoke(ctx, "/community.service.history.v1.History/Histories", in, out, c.cc, opts...)
  512. if err != nil {
  513. return nil, err
  514. }
  515. return out, nil
  516. }
  517. func (c *historyClient) UserHide(ctx context.Context, in *UserHideReq, opts ...grpc.CallOption) (*UserHideReply, error) {
  518. out := new(UserHideReply)
  519. err := grpc.Invoke(ctx, "/community.service.history.v1.History/UserHide", in, out, c.cc, opts...)
  520. if err != nil {
  521. return nil, err
  522. }
  523. return out, nil
  524. }
  525. func (c *historyClient) UpdateUserHide(ctx context.Context, in *UpdateUserHideReq, opts ...grpc.CallOption) (*UpdateUserHideReply, error) {
  526. out := new(UpdateUserHideReply)
  527. err := grpc.Invoke(ctx, "/community.service.history.v1.History/UpdateUserHide", in, out, c.cc, opts...)
  528. if err != nil {
  529. return nil, err
  530. }
  531. return out, nil
  532. }
  533. // Server API for History service
  534. type HistoryServer interface {
  535. // AddHistory add history. 增加播放历史接口
  536. AddHistory(context.Context, *AddHistoryReq) (*AddHistoryReply, error)
  537. // AddHistories 增加多条播放历史记录
  538. AddHistories(context.Context, *AddHistoriesReq) (*AddHistoriesReply, error)
  539. // DelHistories delete histories. 批量删除播放历史接口
  540. DelHistories(context.Context, *DelHistoriesReq) (*DelHistoriesReply, error)
  541. // ClearHistory clear history 按照业务删除所有播放记录
  542. ClearHistory(context.Context, *ClearHistoryReq) (*ClearHistoryReply, error)
  543. // UserHistories 查询用户的播放历史列表
  544. UserHistories(context.Context, *UserHistoriesReq) (*UserHistoriesReply, error)
  545. // Histories 根据id查询播放历史
  546. Histories(context.Context, *HistoriesReq) (*HistoriesReply, error)
  547. // UserHide 查询是否记录播放历史
  548. UserHide(context.Context, *UserHideReq) (*UserHideReply, error)
  549. // UpdateUserHide 修改是否记录播放历史
  550. UpdateUserHide(context.Context, *UpdateUserHideReq) (*UpdateUserHideReply, error)
  551. }
  552. func RegisterHistoryServer(s *grpc.Server, srv HistoryServer) {
  553. s.RegisterService(&_History_serviceDesc, srv)
  554. }
  555. func _History_AddHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  556. in := new(AddHistoryReq)
  557. if err := dec(in); err != nil {
  558. return nil, err
  559. }
  560. if interceptor == nil {
  561. return srv.(HistoryServer).AddHistory(ctx, in)
  562. }
  563. info := &grpc.UnaryServerInfo{
  564. Server: srv,
  565. FullMethod: "/community.service.history.v1.History/AddHistory",
  566. }
  567. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  568. return srv.(HistoryServer).AddHistory(ctx, req.(*AddHistoryReq))
  569. }
  570. return interceptor(ctx, in, info, handler)
  571. }
  572. func _History_AddHistories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  573. in := new(AddHistoriesReq)
  574. if err := dec(in); err != nil {
  575. return nil, err
  576. }
  577. if interceptor == nil {
  578. return srv.(HistoryServer).AddHistories(ctx, in)
  579. }
  580. info := &grpc.UnaryServerInfo{
  581. Server: srv,
  582. FullMethod: "/community.service.history.v1.History/AddHistories",
  583. }
  584. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  585. return srv.(HistoryServer).AddHistories(ctx, req.(*AddHistoriesReq))
  586. }
  587. return interceptor(ctx, in, info, handler)
  588. }
  589. func _History_DelHistories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  590. in := new(DelHistoriesReq)
  591. if err := dec(in); err != nil {
  592. return nil, err
  593. }
  594. if interceptor == nil {
  595. return srv.(HistoryServer).DelHistories(ctx, in)
  596. }
  597. info := &grpc.UnaryServerInfo{
  598. Server: srv,
  599. FullMethod: "/community.service.history.v1.History/DelHistories",
  600. }
  601. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  602. return srv.(HistoryServer).DelHistories(ctx, req.(*DelHistoriesReq))
  603. }
  604. return interceptor(ctx, in, info, handler)
  605. }
  606. func _History_ClearHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  607. in := new(ClearHistoryReq)
  608. if err := dec(in); err != nil {
  609. return nil, err
  610. }
  611. if interceptor == nil {
  612. return srv.(HistoryServer).ClearHistory(ctx, in)
  613. }
  614. info := &grpc.UnaryServerInfo{
  615. Server: srv,
  616. FullMethod: "/community.service.history.v1.History/ClearHistory",
  617. }
  618. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  619. return srv.(HistoryServer).ClearHistory(ctx, req.(*ClearHistoryReq))
  620. }
  621. return interceptor(ctx, in, info, handler)
  622. }
  623. func _History_UserHistories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  624. in := new(UserHistoriesReq)
  625. if err := dec(in); err != nil {
  626. return nil, err
  627. }
  628. if interceptor == nil {
  629. return srv.(HistoryServer).UserHistories(ctx, in)
  630. }
  631. info := &grpc.UnaryServerInfo{
  632. Server: srv,
  633. FullMethod: "/community.service.history.v1.History/UserHistories",
  634. }
  635. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  636. return srv.(HistoryServer).UserHistories(ctx, req.(*UserHistoriesReq))
  637. }
  638. return interceptor(ctx, in, info, handler)
  639. }
  640. func _History_Histories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  641. in := new(HistoriesReq)
  642. if err := dec(in); err != nil {
  643. return nil, err
  644. }
  645. if interceptor == nil {
  646. return srv.(HistoryServer).Histories(ctx, in)
  647. }
  648. info := &grpc.UnaryServerInfo{
  649. Server: srv,
  650. FullMethod: "/community.service.history.v1.History/Histories",
  651. }
  652. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  653. return srv.(HistoryServer).Histories(ctx, req.(*HistoriesReq))
  654. }
  655. return interceptor(ctx, in, info, handler)
  656. }
  657. func _History_UserHide_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  658. in := new(UserHideReq)
  659. if err := dec(in); err != nil {
  660. return nil, err
  661. }
  662. if interceptor == nil {
  663. return srv.(HistoryServer).UserHide(ctx, in)
  664. }
  665. info := &grpc.UnaryServerInfo{
  666. Server: srv,
  667. FullMethod: "/community.service.history.v1.History/UserHide",
  668. }
  669. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  670. return srv.(HistoryServer).UserHide(ctx, req.(*UserHideReq))
  671. }
  672. return interceptor(ctx, in, info, handler)
  673. }
  674. func _History_UpdateUserHide_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  675. in := new(UpdateUserHideReq)
  676. if err := dec(in); err != nil {
  677. return nil, err
  678. }
  679. if interceptor == nil {
  680. return srv.(HistoryServer).UpdateUserHide(ctx, in)
  681. }
  682. info := &grpc.UnaryServerInfo{
  683. Server: srv,
  684. FullMethod: "/community.service.history.v1.History/UpdateUserHide",
  685. }
  686. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  687. return srv.(HistoryServer).UpdateUserHide(ctx, req.(*UpdateUserHideReq))
  688. }
  689. return interceptor(ctx, in, info, handler)
  690. }
  691. var _History_serviceDesc = grpc.ServiceDesc{
  692. ServiceName: "community.service.history.v1.History",
  693. HandlerType: (*HistoryServer)(nil),
  694. Methods: []grpc.MethodDesc{
  695. {
  696. MethodName: "AddHistory",
  697. Handler: _History_AddHistory_Handler,
  698. },
  699. {
  700. MethodName: "AddHistories",
  701. Handler: _History_AddHistories_Handler,
  702. },
  703. {
  704. MethodName: "DelHistories",
  705. Handler: _History_DelHistories_Handler,
  706. },
  707. {
  708. MethodName: "ClearHistory",
  709. Handler: _History_ClearHistory_Handler,
  710. },
  711. {
  712. MethodName: "UserHistories",
  713. Handler: _History_UserHistories_Handler,
  714. },
  715. {
  716. MethodName: "Histories",
  717. Handler: _History_Histories_Handler,
  718. },
  719. {
  720. MethodName: "UserHide",
  721. Handler: _History_UserHide_Handler,
  722. },
  723. {
  724. MethodName: "UpdateUserHide",
  725. Handler: _History_UpdateUserHide_Handler,
  726. },
  727. },
  728. Streams: []grpc.StreamDesc{},
  729. Metadata: "app/service/main/history/api/grpc/api.proto",
  730. }
  731. func (m *AddHistoryReply) Marshal() (dAtA []byte, err error) {
  732. size := m.Size()
  733. dAtA = make([]byte, size)
  734. n, err := m.MarshalTo(dAtA)
  735. if err != nil {
  736. return nil, err
  737. }
  738. return dAtA[:n], nil
  739. }
  740. func (m *AddHistoryReply) MarshalTo(dAtA []byte) (int, error) {
  741. var i int
  742. _ = i
  743. var l int
  744. _ = l
  745. return i, nil
  746. }
  747. func (m *AddHistoryReq) Marshal() (dAtA []byte, err error) {
  748. size := m.Size()
  749. dAtA = make([]byte, size)
  750. n, err := m.MarshalTo(dAtA)
  751. if err != nil {
  752. return nil, err
  753. }
  754. return dAtA[:n], nil
  755. }
  756. func (m *AddHistoryReq) MarshalTo(dAtA []byte) (int, error) {
  757. var i int
  758. _ = i
  759. var l int
  760. _ = l
  761. if m.Mid != 0 {
  762. dAtA[i] = 0x8
  763. i++
  764. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  765. }
  766. if len(m.Business) > 0 {
  767. dAtA[i] = 0x12
  768. i++
  769. i = encodeVarintApi(dAtA, i, uint64(len(m.Business)))
  770. i += copy(dAtA[i:], m.Business)
  771. }
  772. if m.Kid != 0 {
  773. dAtA[i] = 0x18
  774. i++
  775. i = encodeVarintApi(dAtA, i, uint64(m.Kid))
  776. }
  777. if m.Aid != 0 {
  778. dAtA[i] = 0x20
  779. i++
  780. i = encodeVarintApi(dAtA, i, uint64(m.Aid))
  781. }
  782. if m.Sid != 0 {
  783. dAtA[i] = 0x28
  784. i++
  785. i = encodeVarintApi(dAtA, i, uint64(m.Sid))
  786. }
  787. if m.Epid != 0 {
  788. dAtA[i] = 0x30
  789. i++
  790. i = encodeVarintApi(dAtA, i, uint64(m.Epid))
  791. }
  792. if m.Cid != 0 {
  793. dAtA[i] = 0x38
  794. i++
  795. i = encodeVarintApi(dAtA, i, uint64(m.Cid))
  796. }
  797. if m.SubType != 0 {
  798. dAtA[i] = 0x40
  799. i++
  800. i = encodeVarintApi(dAtA, i, uint64(m.SubType))
  801. }
  802. if m.Device != 0 {
  803. dAtA[i] = 0x48
  804. i++
  805. i = encodeVarintApi(dAtA, i, uint64(m.Device))
  806. }
  807. if m.Progress != 0 {
  808. dAtA[i] = 0x50
  809. i++
  810. i = encodeVarintApi(dAtA, i, uint64(m.Progress))
  811. }
  812. if m.ViewAt != 0 {
  813. dAtA[i] = 0x58
  814. i++
  815. i = encodeVarintApi(dAtA, i, uint64(m.ViewAt))
  816. }
  817. return i, nil
  818. }
  819. func (m *AddHistoriesReq) Marshal() (dAtA []byte, err error) {
  820. size := m.Size()
  821. dAtA = make([]byte, size)
  822. n, err := m.MarshalTo(dAtA)
  823. if err != nil {
  824. return nil, err
  825. }
  826. return dAtA[:n], nil
  827. }
  828. func (m *AddHistoriesReq) MarshalTo(dAtA []byte) (int, error) {
  829. var i int
  830. _ = i
  831. var l int
  832. _ = l
  833. if len(m.Histories) > 0 {
  834. for _, msg := range m.Histories {
  835. dAtA[i] = 0xa
  836. i++
  837. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  838. n, err := msg.MarshalTo(dAtA[i:])
  839. if err != nil {
  840. return 0, err
  841. }
  842. i += n
  843. }
  844. }
  845. return i, nil
  846. }
  847. func (m *AddHistoriesReply) Marshal() (dAtA []byte, err error) {
  848. size := m.Size()
  849. dAtA = make([]byte, size)
  850. n, err := m.MarshalTo(dAtA)
  851. if err != nil {
  852. return nil, err
  853. }
  854. return dAtA[:n], nil
  855. }
  856. func (m *AddHistoriesReply) MarshalTo(dAtA []byte) (int, error) {
  857. var i int
  858. _ = i
  859. var l int
  860. _ = l
  861. return i, nil
  862. }
  863. func (m *DelHistoriesReq) Marshal() (dAtA []byte, err error) {
  864. size := m.Size()
  865. dAtA = make([]byte, size)
  866. n, err := m.MarshalTo(dAtA)
  867. if err != nil {
  868. return nil, err
  869. }
  870. return dAtA[:n], nil
  871. }
  872. func (m *DelHistoriesReq) MarshalTo(dAtA []byte) (int, error) {
  873. var i int
  874. _ = i
  875. var l int
  876. _ = l
  877. if m.Mid != 0 {
  878. dAtA[i] = 0x8
  879. i++
  880. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  881. }
  882. if len(m.Records) > 0 {
  883. for _, msg := range m.Records {
  884. dAtA[i] = 0x12
  885. i++
  886. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  887. n, err := msg.MarshalTo(dAtA[i:])
  888. if err != nil {
  889. return 0, err
  890. }
  891. i += n
  892. }
  893. }
  894. return i, nil
  895. }
  896. func (m *DelHistoriesReq_Record) Marshal() (dAtA []byte, err error) {
  897. size := m.Size()
  898. dAtA = make([]byte, size)
  899. n, err := m.MarshalTo(dAtA)
  900. if err != nil {
  901. return nil, err
  902. }
  903. return dAtA[:n], nil
  904. }
  905. func (m *DelHistoriesReq_Record) MarshalTo(dAtA []byte) (int, error) {
  906. var i int
  907. _ = i
  908. var l int
  909. _ = l
  910. if len(m.Business) > 0 {
  911. dAtA[i] = 0xa
  912. i++
  913. i = encodeVarintApi(dAtA, i, uint64(len(m.Business)))
  914. i += copy(dAtA[i:], m.Business)
  915. }
  916. if m.ID != 0 {
  917. dAtA[i] = 0x10
  918. i++
  919. i = encodeVarintApi(dAtA, i, uint64(m.ID))
  920. }
  921. return i, nil
  922. }
  923. func (m *DelHistoriesReply) Marshal() (dAtA []byte, err error) {
  924. size := m.Size()
  925. dAtA = make([]byte, size)
  926. n, err := m.MarshalTo(dAtA)
  927. if err != nil {
  928. return nil, err
  929. }
  930. return dAtA[:n], nil
  931. }
  932. func (m *DelHistoriesReply) MarshalTo(dAtA []byte) (int, error) {
  933. var i int
  934. _ = i
  935. var l int
  936. _ = l
  937. return i, nil
  938. }
  939. func (m *ClearHistoryReq) Marshal() (dAtA []byte, err error) {
  940. size := m.Size()
  941. dAtA = make([]byte, size)
  942. n, err := m.MarshalTo(dAtA)
  943. if err != nil {
  944. return nil, err
  945. }
  946. return dAtA[:n], nil
  947. }
  948. func (m *ClearHistoryReq) MarshalTo(dAtA []byte) (int, error) {
  949. var i int
  950. _ = i
  951. var l int
  952. _ = l
  953. if len(m.Businesses) > 0 {
  954. for _, s := range m.Businesses {
  955. dAtA[i] = 0xa
  956. i++
  957. l = len(s)
  958. for l >= 1<<7 {
  959. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  960. l >>= 7
  961. i++
  962. }
  963. dAtA[i] = uint8(l)
  964. i++
  965. i += copy(dAtA[i:], s)
  966. }
  967. }
  968. if m.Mid != 0 {
  969. dAtA[i] = 0x10
  970. i++
  971. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  972. }
  973. return i, nil
  974. }
  975. func (m *ClearHistoryReply) Marshal() (dAtA []byte, err error) {
  976. size := m.Size()
  977. dAtA = make([]byte, size)
  978. n, err := m.MarshalTo(dAtA)
  979. if err != nil {
  980. return nil, err
  981. }
  982. return dAtA[:n], nil
  983. }
  984. func (m *ClearHistoryReply) MarshalTo(dAtA []byte) (int, error) {
  985. var i int
  986. _ = i
  987. var l int
  988. _ = l
  989. return i, nil
  990. }
  991. func (m *UserHistoriesReq) Marshal() (dAtA []byte, err error) {
  992. size := m.Size()
  993. dAtA = make([]byte, size)
  994. n, err := m.MarshalTo(dAtA)
  995. if err != nil {
  996. return nil, err
  997. }
  998. return dAtA[:n], nil
  999. }
  1000. func (m *UserHistoriesReq) MarshalTo(dAtA []byte) (int, error) {
  1001. var i int
  1002. _ = i
  1003. var l int
  1004. _ = l
  1005. if m.Mid != 0 {
  1006. dAtA[i] = 0x8
  1007. i++
  1008. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  1009. }
  1010. if len(m.Businesses) > 0 {
  1011. for _, s := range m.Businesses {
  1012. dAtA[i] = 0x12
  1013. i++
  1014. l = len(s)
  1015. for l >= 1<<7 {
  1016. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  1017. l >>= 7
  1018. i++
  1019. }
  1020. dAtA[i] = uint8(l)
  1021. i++
  1022. i += copy(dAtA[i:], s)
  1023. }
  1024. }
  1025. if len(m.Business) > 0 {
  1026. dAtA[i] = 0x1a
  1027. i++
  1028. i = encodeVarintApi(dAtA, i, uint64(len(m.Business)))
  1029. i += copy(dAtA[i:], m.Business)
  1030. }
  1031. if m.Kid != 0 {
  1032. dAtA[i] = 0x20
  1033. i++
  1034. i = encodeVarintApi(dAtA, i, uint64(m.Kid))
  1035. }
  1036. if m.ViewAt != 0 {
  1037. dAtA[i] = 0x28
  1038. i++
  1039. i = encodeVarintApi(dAtA, i, uint64(m.ViewAt))
  1040. }
  1041. if m.Ps != 0 {
  1042. dAtA[i] = 0x30
  1043. i++
  1044. i = encodeVarintApi(dAtA, i, uint64(m.Ps))
  1045. }
  1046. return i, nil
  1047. }
  1048. func (m *UserHistoriesReply) Marshal() (dAtA []byte, err error) {
  1049. size := m.Size()
  1050. dAtA = make([]byte, size)
  1051. n, err := m.MarshalTo(dAtA)
  1052. if err != nil {
  1053. return nil, err
  1054. }
  1055. return dAtA[:n], nil
  1056. }
  1057. func (m *UserHistoriesReply) MarshalTo(dAtA []byte) (int, error) {
  1058. var i int
  1059. _ = i
  1060. var l int
  1061. _ = l
  1062. if len(m.Histories) > 0 {
  1063. for _, msg := range m.Histories {
  1064. dAtA[i] = 0xa
  1065. i++
  1066. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  1067. n, err := msg.MarshalTo(dAtA[i:])
  1068. if err != nil {
  1069. return 0, err
  1070. }
  1071. i += n
  1072. }
  1073. }
  1074. return i, nil
  1075. }
  1076. func (m *HistoriesReq) Marshal() (dAtA []byte, err error) {
  1077. size := m.Size()
  1078. dAtA = make([]byte, size)
  1079. n, err := m.MarshalTo(dAtA)
  1080. if err != nil {
  1081. return nil, err
  1082. }
  1083. return dAtA[:n], nil
  1084. }
  1085. func (m *HistoriesReq) MarshalTo(dAtA []byte) (int, error) {
  1086. var i int
  1087. _ = i
  1088. var l int
  1089. _ = l
  1090. if m.Mid != 0 {
  1091. dAtA[i] = 0x8
  1092. i++
  1093. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  1094. }
  1095. if len(m.Business) > 0 {
  1096. dAtA[i] = 0x12
  1097. i++
  1098. i = encodeVarintApi(dAtA, i, uint64(len(m.Business)))
  1099. i += copy(dAtA[i:], m.Business)
  1100. }
  1101. if len(m.Kids) > 0 {
  1102. dAtA2 := make([]byte, len(m.Kids)*10)
  1103. var j1 int
  1104. for _, num1 := range m.Kids {
  1105. num := uint64(num1)
  1106. for num >= 1<<7 {
  1107. dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80)
  1108. num >>= 7
  1109. j1++
  1110. }
  1111. dAtA2[j1] = uint8(num)
  1112. j1++
  1113. }
  1114. dAtA[i] = 0x1a
  1115. i++
  1116. i = encodeVarintApi(dAtA, i, uint64(j1))
  1117. i += copy(dAtA[i:], dAtA2[:j1])
  1118. }
  1119. return i, nil
  1120. }
  1121. func (m *HistoriesReply) Marshal() (dAtA []byte, err error) {
  1122. size := m.Size()
  1123. dAtA = make([]byte, size)
  1124. n, err := m.MarshalTo(dAtA)
  1125. if err != nil {
  1126. return nil, err
  1127. }
  1128. return dAtA[:n], nil
  1129. }
  1130. func (m *HistoriesReply) MarshalTo(dAtA []byte) (int, error) {
  1131. var i int
  1132. _ = i
  1133. var l int
  1134. _ = l
  1135. if len(m.Histories) > 0 {
  1136. for k, _ := range m.Histories {
  1137. dAtA[i] = 0xa
  1138. i++
  1139. v := m.Histories[k]
  1140. msgSize := 0
  1141. if v != nil {
  1142. msgSize = v.Size()
  1143. msgSize += 1 + sovApi(uint64(msgSize))
  1144. }
  1145. mapSize := 1 + sovApi(uint64(k)) + msgSize
  1146. i = encodeVarintApi(dAtA, i, uint64(mapSize))
  1147. dAtA[i] = 0x8
  1148. i++
  1149. i = encodeVarintApi(dAtA, i, uint64(k))
  1150. if v != nil {
  1151. dAtA[i] = 0x12
  1152. i++
  1153. i = encodeVarintApi(dAtA, i, uint64(v.Size()))
  1154. n3, err := v.MarshalTo(dAtA[i:])
  1155. if err != nil {
  1156. return 0, err
  1157. }
  1158. i += n3
  1159. }
  1160. }
  1161. }
  1162. return i, nil
  1163. }
  1164. func (m *UserHideReq) Marshal() (dAtA []byte, err error) {
  1165. size := m.Size()
  1166. dAtA = make([]byte, size)
  1167. n, err := m.MarshalTo(dAtA)
  1168. if err != nil {
  1169. return nil, err
  1170. }
  1171. return dAtA[:n], nil
  1172. }
  1173. func (m *UserHideReq) MarshalTo(dAtA []byte) (int, error) {
  1174. var i int
  1175. _ = i
  1176. var l int
  1177. _ = l
  1178. if m.Mid != 0 {
  1179. dAtA[i] = 0x8
  1180. i++
  1181. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  1182. }
  1183. return i, nil
  1184. }
  1185. func (m *UserHideReply) Marshal() (dAtA []byte, err error) {
  1186. size := m.Size()
  1187. dAtA = make([]byte, size)
  1188. n, err := m.MarshalTo(dAtA)
  1189. if err != nil {
  1190. return nil, err
  1191. }
  1192. return dAtA[:n], nil
  1193. }
  1194. func (m *UserHideReply) MarshalTo(dAtA []byte) (int, error) {
  1195. var i int
  1196. _ = i
  1197. var l int
  1198. _ = l
  1199. if m.Hide {
  1200. dAtA[i] = 0x8
  1201. i++
  1202. if m.Hide {
  1203. dAtA[i] = 1
  1204. } else {
  1205. dAtA[i] = 0
  1206. }
  1207. i++
  1208. }
  1209. return i, nil
  1210. }
  1211. func (m *UpdateUserHideReq) Marshal() (dAtA []byte, err error) {
  1212. size := m.Size()
  1213. dAtA = make([]byte, size)
  1214. n, err := m.MarshalTo(dAtA)
  1215. if err != nil {
  1216. return nil, err
  1217. }
  1218. return dAtA[:n], nil
  1219. }
  1220. func (m *UpdateUserHideReq) MarshalTo(dAtA []byte) (int, error) {
  1221. var i int
  1222. _ = i
  1223. var l int
  1224. _ = l
  1225. if m.Mid != 0 {
  1226. dAtA[i] = 0x8
  1227. i++
  1228. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  1229. }
  1230. if m.Hide {
  1231. dAtA[i] = 0x10
  1232. i++
  1233. if m.Hide {
  1234. dAtA[i] = 1
  1235. } else {
  1236. dAtA[i] = 0
  1237. }
  1238. i++
  1239. }
  1240. return i, nil
  1241. }
  1242. func (m *UpdateUserHideReply) Marshal() (dAtA []byte, err error) {
  1243. size := m.Size()
  1244. dAtA = make([]byte, size)
  1245. n, err := m.MarshalTo(dAtA)
  1246. if err != nil {
  1247. return nil, err
  1248. }
  1249. return dAtA[:n], nil
  1250. }
  1251. func (m *UpdateUserHideReply) MarshalTo(dAtA []byte) (int, error) {
  1252. var i int
  1253. _ = i
  1254. var l int
  1255. _ = l
  1256. return i, nil
  1257. }
  1258. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  1259. for v >= 1<<7 {
  1260. dAtA[offset] = uint8(v&0x7f | 0x80)
  1261. v >>= 7
  1262. offset++
  1263. }
  1264. dAtA[offset] = uint8(v)
  1265. return offset + 1
  1266. }
  1267. func (m *AddHistoryReply) Size() (n int) {
  1268. var l int
  1269. _ = l
  1270. return n
  1271. }
  1272. func (m *AddHistoryReq) Size() (n int) {
  1273. var l int
  1274. _ = l
  1275. if m.Mid != 0 {
  1276. n += 1 + sovApi(uint64(m.Mid))
  1277. }
  1278. l = len(m.Business)
  1279. if l > 0 {
  1280. n += 1 + l + sovApi(uint64(l))
  1281. }
  1282. if m.Kid != 0 {
  1283. n += 1 + sovApi(uint64(m.Kid))
  1284. }
  1285. if m.Aid != 0 {
  1286. n += 1 + sovApi(uint64(m.Aid))
  1287. }
  1288. if m.Sid != 0 {
  1289. n += 1 + sovApi(uint64(m.Sid))
  1290. }
  1291. if m.Epid != 0 {
  1292. n += 1 + sovApi(uint64(m.Epid))
  1293. }
  1294. if m.Cid != 0 {
  1295. n += 1 + sovApi(uint64(m.Cid))
  1296. }
  1297. if m.SubType != 0 {
  1298. n += 1 + sovApi(uint64(m.SubType))
  1299. }
  1300. if m.Device != 0 {
  1301. n += 1 + sovApi(uint64(m.Device))
  1302. }
  1303. if m.Progress != 0 {
  1304. n += 1 + sovApi(uint64(m.Progress))
  1305. }
  1306. if m.ViewAt != 0 {
  1307. n += 1 + sovApi(uint64(m.ViewAt))
  1308. }
  1309. return n
  1310. }
  1311. func (m *AddHistoriesReq) Size() (n int) {
  1312. var l int
  1313. _ = l
  1314. if len(m.Histories) > 0 {
  1315. for _, e := range m.Histories {
  1316. l = e.Size()
  1317. n += 1 + l + sovApi(uint64(l))
  1318. }
  1319. }
  1320. return n
  1321. }
  1322. func (m *AddHistoriesReply) Size() (n int) {
  1323. var l int
  1324. _ = l
  1325. return n
  1326. }
  1327. func (m *DelHistoriesReq) Size() (n int) {
  1328. var l int
  1329. _ = l
  1330. if m.Mid != 0 {
  1331. n += 1 + sovApi(uint64(m.Mid))
  1332. }
  1333. if len(m.Records) > 0 {
  1334. for _, e := range m.Records {
  1335. l = e.Size()
  1336. n += 1 + l + sovApi(uint64(l))
  1337. }
  1338. }
  1339. return n
  1340. }
  1341. func (m *DelHistoriesReq_Record) Size() (n int) {
  1342. var l int
  1343. _ = l
  1344. l = len(m.Business)
  1345. if l > 0 {
  1346. n += 1 + l + sovApi(uint64(l))
  1347. }
  1348. if m.ID != 0 {
  1349. n += 1 + sovApi(uint64(m.ID))
  1350. }
  1351. return n
  1352. }
  1353. func (m *DelHistoriesReply) Size() (n int) {
  1354. var l int
  1355. _ = l
  1356. return n
  1357. }
  1358. func (m *ClearHistoryReq) Size() (n int) {
  1359. var l int
  1360. _ = l
  1361. if len(m.Businesses) > 0 {
  1362. for _, s := range m.Businesses {
  1363. l = len(s)
  1364. n += 1 + l + sovApi(uint64(l))
  1365. }
  1366. }
  1367. if m.Mid != 0 {
  1368. n += 1 + sovApi(uint64(m.Mid))
  1369. }
  1370. return n
  1371. }
  1372. func (m *ClearHistoryReply) Size() (n int) {
  1373. var l int
  1374. _ = l
  1375. return n
  1376. }
  1377. func (m *UserHistoriesReq) Size() (n int) {
  1378. var l int
  1379. _ = l
  1380. if m.Mid != 0 {
  1381. n += 1 + sovApi(uint64(m.Mid))
  1382. }
  1383. if len(m.Businesses) > 0 {
  1384. for _, s := range m.Businesses {
  1385. l = len(s)
  1386. n += 1 + l + sovApi(uint64(l))
  1387. }
  1388. }
  1389. l = len(m.Business)
  1390. if l > 0 {
  1391. n += 1 + l + sovApi(uint64(l))
  1392. }
  1393. if m.Kid != 0 {
  1394. n += 1 + sovApi(uint64(m.Kid))
  1395. }
  1396. if m.ViewAt != 0 {
  1397. n += 1 + sovApi(uint64(m.ViewAt))
  1398. }
  1399. if m.Ps != 0 {
  1400. n += 1 + sovApi(uint64(m.Ps))
  1401. }
  1402. return n
  1403. }
  1404. func (m *UserHistoriesReply) Size() (n int) {
  1405. var l int
  1406. _ = l
  1407. if len(m.Histories) > 0 {
  1408. for _, e := range m.Histories {
  1409. l = e.Size()
  1410. n += 1 + l + sovApi(uint64(l))
  1411. }
  1412. }
  1413. return n
  1414. }
  1415. func (m *HistoriesReq) Size() (n int) {
  1416. var l int
  1417. _ = l
  1418. if m.Mid != 0 {
  1419. n += 1 + sovApi(uint64(m.Mid))
  1420. }
  1421. l = len(m.Business)
  1422. if l > 0 {
  1423. n += 1 + l + sovApi(uint64(l))
  1424. }
  1425. if len(m.Kids) > 0 {
  1426. l = 0
  1427. for _, e := range m.Kids {
  1428. l += sovApi(uint64(e))
  1429. }
  1430. n += 1 + sovApi(uint64(l)) + l
  1431. }
  1432. return n
  1433. }
  1434. func (m *HistoriesReply) Size() (n int) {
  1435. var l int
  1436. _ = l
  1437. if len(m.Histories) > 0 {
  1438. for k, v := range m.Histories {
  1439. _ = k
  1440. _ = v
  1441. l = 0
  1442. if v != nil {
  1443. l = v.Size()
  1444. l += 1 + sovApi(uint64(l))
  1445. }
  1446. mapEntrySize := 1 + sovApi(uint64(k)) + l
  1447. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  1448. }
  1449. }
  1450. return n
  1451. }
  1452. func (m *UserHideReq) Size() (n int) {
  1453. var l int
  1454. _ = l
  1455. if m.Mid != 0 {
  1456. n += 1 + sovApi(uint64(m.Mid))
  1457. }
  1458. return n
  1459. }
  1460. func (m *UserHideReply) Size() (n int) {
  1461. var l int
  1462. _ = l
  1463. if m.Hide {
  1464. n += 2
  1465. }
  1466. return n
  1467. }
  1468. func (m *UpdateUserHideReq) Size() (n int) {
  1469. var l int
  1470. _ = l
  1471. if m.Mid != 0 {
  1472. n += 1 + sovApi(uint64(m.Mid))
  1473. }
  1474. if m.Hide {
  1475. n += 2
  1476. }
  1477. return n
  1478. }
  1479. func (m *UpdateUserHideReply) Size() (n int) {
  1480. var l int
  1481. _ = l
  1482. return n
  1483. }
  1484. func sovApi(x uint64) (n int) {
  1485. for {
  1486. n++
  1487. x >>= 7
  1488. if x == 0 {
  1489. break
  1490. }
  1491. }
  1492. return n
  1493. }
  1494. func sozApi(x uint64) (n int) {
  1495. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1496. }
  1497. func (m *AddHistoryReply) Unmarshal(dAtA []byte) error {
  1498. l := len(dAtA)
  1499. iNdEx := 0
  1500. for iNdEx < l {
  1501. preIndex := iNdEx
  1502. var wire uint64
  1503. for shift := uint(0); ; shift += 7 {
  1504. if shift >= 64 {
  1505. return ErrIntOverflowApi
  1506. }
  1507. if iNdEx >= l {
  1508. return io.ErrUnexpectedEOF
  1509. }
  1510. b := dAtA[iNdEx]
  1511. iNdEx++
  1512. wire |= (uint64(b) & 0x7F) << shift
  1513. if b < 0x80 {
  1514. break
  1515. }
  1516. }
  1517. fieldNum := int32(wire >> 3)
  1518. wireType := int(wire & 0x7)
  1519. if wireType == 4 {
  1520. return fmt.Errorf("proto: AddHistoryReply: wiretype end group for non-group")
  1521. }
  1522. if fieldNum <= 0 {
  1523. return fmt.Errorf("proto: AddHistoryReply: illegal tag %d (wire type %d)", fieldNum, wire)
  1524. }
  1525. switch fieldNum {
  1526. default:
  1527. iNdEx = preIndex
  1528. skippy, err := skipApi(dAtA[iNdEx:])
  1529. if err != nil {
  1530. return err
  1531. }
  1532. if skippy < 0 {
  1533. return ErrInvalidLengthApi
  1534. }
  1535. if (iNdEx + skippy) > l {
  1536. return io.ErrUnexpectedEOF
  1537. }
  1538. iNdEx += skippy
  1539. }
  1540. }
  1541. if iNdEx > l {
  1542. return io.ErrUnexpectedEOF
  1543. }
  1544. return nil
  1545. }
  1546. func (m *AddHistoryReq) Unmarshal(dAtA []byte) error {
  1547. l := len(dAtA)
  1548. iNdEx := 0
  1549. for iNdEx < l {
  1550. preIndex := iNdEx
  1551. var wire uint64
  1552. for shift := uint(0); ; shift += 7 {
  1553. if shift >= 64 {
  1554. return ErrIntOverflowApi
  1555. }
  1556. if iNdEx >= l {
  1557. return io.ErrUnexpectedEOF
  1558. }
  1559. b := dAtA[iNdEx]
  1560. iNdEx++
  1561. wire |= (uint64(b) & 0x7F) << shift
  1562. if b < 0x80 {
  1563. break
  1564. }
  1565. }
  1566. fieldNum := int32(wire >> 3)
  1567. wireType := int(wire & 0x7)
  1568. if wireType == 4 {
  1569. return fmt.Errorf("proto: AddHistoryReq: wiretype end group for non-group")
  1570. }
  1571. if fieldNum <= 0 {
  1572. return fmt.Errorf("proto: AddHistoryReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1573. }
  1574. switch fieldNum {
  1575. case 1:
  1576. if wireType != 0 {
  1577. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  1578. }
  1579. m.Mid = 0
  1580. for shift := uint(0); ; shift += 7 {
  1581. if shift >= 64 {
  1582. return ErrIntOverflowApi
  1583. }
  1584. if iNdEx >= l {
  1585. return io.ErrUnexpectedEOF
  1586. }
  1587. b := dAtA[iNdEx]
  1588. iNdEx++
  1589. m.Mid |= (int64(b) & 0x7F) << shift
  1590. if b < 0x80 {
  1591. break
  1592. }
  1593. }
  1594. case 2:
  1595. if wireType != 2 {
  1596. return fmt.Errorf("proto: wrong wireType = %d for field Business", wireType)
  1597. }
  1598. var stringLen uint64
  1599. for shift := uint(0); ; shift += 7 {
  1600. if shift >= 64 {
  1601. return ErrIntOverflowApi
  1602. }
  1603. if iNdEx >= l {
  1604. return io.ErrUnexpectedEOF
  1605. }
  1606. b := dAtA[iNdEx]
  1607. iNdEx++
  1608. stringLen |= (uint64(b) & 0x7F) << shift
  1609. if b < 0x80 {
  1610. break
  1611. }
  1612. }
  1613. intStringLen := int(stringLen)
  1614. if intStringLen < 0 {
  1615. return ErrInvalidLengthApi
  1616. }
  1617. postIndex := iNdEx + intStringLen
  1618. if postIndex > l {
  1619. return io.ErrUnexpectedEOF
  1620. }
  1621. m.Business = string(dAtA[iNdEx:postIndex])
  1622. iNdEx = postIndex
  1623. case 3:
  1624. if wireType != 0 {
  1625. return fmt.Errorf("proto: wrong wireType = %d for field Kid", wireType)
  1626. }
  1627. m.Kid = 0
  1628. for shift := uint(0); ; shift += 7 {
  1629. if shift >= 64 {
  1630. return ErrIntOverflowApi
  1631. }
  1632. if iNdEx >= l {
  1633. return io.ErrUnexpectedEOF
  1634. }
  1635. b := dAtA[iNdEx]
  1636. iNdEx++
  1637. m.Kid |= (int64(b) & 0x7F) << shift
  1638. if b < 0x80 {
  1639. break
  1640. }
  1641. }
  1642. case 4:
  1643. if wireType != 0 {
  1644. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  1645. }
  1646. m.Aid = 0
  1647. for shift := uint(0); ; shift += 7 {
  1648. if shift >= 64 {
  1649. return ErrIntOverflowApi
  1650. }
  1651. if iNdEx >= l {
  1652. return io.ErrUnexpectedEOF
  1653. }
  1654. b := dAtA[iNdEx]
  1655. iNdEx++
  1656. m.Aid |= (int64(b) & 0x7F) << shift
  1657. if b < 0x80 {
  1658. break
  1659. }
  1660. }
  1661. case 5:
  1662. if wireType != 0 {
  1663. return fmt.Errorf("proto: wrong wireType = %d for field Sid", wireType)
  1664. }
  1665. m.Sid = 0
  1666. for shift := uint(0); ; shift += 7 {
  1667. if shift >= 64 {
  1668. return ErrIntOverflowApi
  1669. }
  1670. if iNdEx >= l {
  1671. return io.ErrUnexpectedEOF
  1672. }
  1673. b := dAtA[iNdEx]
  1674. iNdEx++
  1675. m.Sid |= (int64(b) & 0x7F) << shift
  1676. if b < 0x80 {
  1677. break
  1678. }
  1679. }
  1680. case 6:
  1681. if wireType != 0 {
  1682. return fmt.Errorf("proto: wrong wireType = %d for field Epid", wireType)
  1683. }
  1684. m.Epid = 0
  1685. for shift := uint(0); ; shift += 7 {
  1686. if shift >= 64 {
  1687. return ErrIntOverflowApi
  1688. }
  1689. if iNdEx >= l {
  1690. return io.ErrUnexpectedEOF
  1691. }
  1692. b := dAtA[iNdEx]
  1693. iNdEx++
  1694. m.Epid |= (int64(b) & 0x7F) << shift
  1695. if b < 0x80 {
  1696. break
  1697. }
  1698. }
  1699. case 7:
  1700. if wireType != 0 {
  1701. return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType)
  1702. }
  1703. m.Cid = 0
  1704. for shift := uint(0); ; shift += 7 {
  1705. if shift >= 64 {
  1706. return ErrIntOverflowApi
  1707. }
  1708. if iNdEx >= l {
  1709. return io.ErrUnexpectedEOF
  1710. }
  1711. b := dAtA[iNdEx]
  1712. iNdEx++
  1713. m.Cid |= (int64(b) & 0x7F) << shift
  1714. if b < 0x80 {
  1715. break
  1716. }
  1717. }
  1718. case 8:
  1719. if wireType != 0 {
  1720. return fmt.Errorf("proto: wrong wireType = %d for field SubType", wireType)
  1721. }
  1722. m.SubType = 0
  1723. for shift := uint(0); ; shift += 7 {
  1724. if shift >= 64 {
  1725. return ErrIntOverflowApi
  1726. }
  1727. if iNdEx >= l {
  1728. return io.ErrUnexpectedEOF
  1729. }
  1730. b := dAtA[iNdEx]
  1731. iNdEx++
  1732. m.SubType |= (int32(b) & 0x7F) << shift
  1733. if b < 0x80 {
  1734. break
  1735. }
  1736. }
  1737. case 9:
  1738. if wireType != 0 {
  1739. return fmt.Errorf("proto: wrong wireType = %d for field Device", wireType)
  1740. }
  1741. m.Device = 0
  1742. for shift := uint(0); ; shift += 7 {
  1743. if shift >= 64 {
  1744. return ErrIntOverflowApi
  1745. }
  1746. if iNdEx >= l {
  1747. return io.ErrUnexpectedEOF
  1748. }
  1749. b := dAtA[iNdEx]
  1750. iNdEx++
  1751. m.Device |= (int32(b) & 0x7F) << shift
  1752. if b < 0x80 {
  1753. break
  1754. }
  1755. }
  1756. case 10:
  1757. if wireType != 0 {
  1758. return fmt.Errorf("proto: wrong wireType = %d for field Progress", wireType)
  1759. }
  1760. m.Progress = 0
  1761. for shift := uint(0); ; shift += 7 {
  1762. if shift >= 64 {
  1763. return ErrIntOverflowApi
  1764. }
  1765. if iNdEx >= l {
  1766. return io.ErrUnexpectedEOF
  1767. }
  1768. b := dAtA[iNdEx]
  1769. iNdEx++
  1770. m.Progress |= (int32(b) & 0x7F) << shift
  1771. if b < 0x80 {
  1772. break
  1773. }
  1774. }
  1775. case 11:
  1776. if wireType != 0 {
  1777. return fmt.Errorf("proto: wrong wireType = %d for field ViewAt", wireType)
  1778. }
  1779. m.ViewAt = 0
  1780. for shift := uint(0); ; shift += 7 {
  1781. if shift >= 64 {
  1782. return ErrIntOverflowApi
  1783. }
  1784. if iNdEx >= l {
  1785. return io.ErrUnexpectedEOF
  1786. }
  1787. b := dAtA[iNdEx]
  1788. iNdEx++
  1789. m.ViewAt |= (int64(b) & 0x7F) << shift
  1790. if b < 0x80 {
  1791. break
  1792. }
  1793. }
  1794. default:
  1795. iNdEx = preIndex
  1796. skippy, err := skipApi(dAtA[iNdEx:])
  1797. if err != nil {
  1798. return err
  1799. }
  1800. if skippy < 0 {
  1801. return ErrInvalidLengthApi
  1802. }
  1803. if (iNdEx + skippy) > l {
  1804. return io.ErrUnexpectedEOF
  1805. }
  1806. iNdEx += skippy
  1807. }
  1808. }
  1809. if iNdEx > l {
  1810. return io.ErrUnexpectedEOF
  1811. }
  1812. return nil
  1813. }
  1814. func (m *AddHistoriesReq) Unmarshal(dAtA []byte) error {
  1815. l := len(dAtA)
  1816. iNdEx := 0
  1817. for iNdEx < l {
  1818. preIndex := iNdEx
  1819. var wire uint64
  1820. for shift := uint(0); ; shift += 7 {
  1821. if shift >= 64 {
  1822. return ErrIntOverflowApi
  1823. }
  1824. if iNdEx >= l {
  1825. return io.ErrUnexpectedEOF
  1826. }
  1827. b := dAtA[iNdEx]
  1828. iNdEx++
  1829. wire |= (uint64(b) & 0x7F) << shift
  1830. if b < 0x80 {
  1831. break
  1832. }
  1833. }
  1834. fieldNum := int32(wire >> 3)
  1835. wireType := int(wire & 0x7)
  1836. if wireType == 4 {
  1837. return fmt.Errorf("proto: AddHistoriesReq: wiretype end group for non-group")
  1838. }
  1839. if fieldNum <= 0 {
  1840. return fmt.Errorf("proto: AddHistoriesReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1841. }
  1842. switch fieldNum {
  1843. case 1:
  1844. if wireType != 2 {
  1845. return fmt.Errorf("proto: wrong wireType = %d for field Histories", wireType)
  1846. }
  1847. var msglen int
  1848. for shift := uint(0); ; shift += 7 {
  1849. if shift >= 64 {
  1850. return ErrIntOverflowApi
  1851. }
  1852. if iNdEx >= l {
  1853. return io.ErrUnexpectedEOF
  1854. }
  1855. b := dAtA[iNdEx]
  1856. iNdEx++
  1857. msglen |= (int(b) & 0x7F) << shift
  1858. if b < 0x80 {
  1859. break
  1860. }
  1861. }
  1862. if msglen < 0 {
  1863. return ErrInvalidLengthApi
  1864. }
  1865. postIndex := iNdEx + msglen
  1866. if postIndex > l {
  1867. return io.ErrUnexpectedEOF
  1868. }
  1869. m.Histories = append(m.Histories, &AddHistoryReq{})
  1870. if err := m.Histories[len(m.Histories)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1871. return err
  1872. }
  1873. iNdEx = postIndex
  1874. default:
  1875. iNdEx = preIndex
  1876. skippy, err := skipApi(dAtA[iNdEx:])
  1877. if err != nil {
  1878. return err
  1879. }
  1880. if skippy < 0 {
  1881. return ErrInvalidLengthApi
  1882. }
  1883. if (iNdEx + skippy) > l {
  1884. return io.ErrUnexpectedEOF
  1885. }
  1886. iNdEx += skippy
  1887. }
  1888. }
  1889. if iNdEx > l {
  1890. return io.ErrUnexpectedEOF
  1891. }
  1892. return nil
  1893. }
  1894. func (m *AddHistoriesReply) Unmarshal(dAtA []byte) error {
  1895. l := len(dAtA)
  1896. iNdEx := 0
  1897. for iNdEx < l {
  1898. preIndex := iNdEx
  1899. var wire uint64
  1900. for shift := uint(0); ; shift += 7 {
  1901. if shift >= 64 {
  1902. return ErrIntOverflowApi
  1903. }
  1904. if iNdEx >= l {
  1905. return io.ErrUnexpectedEOF
  1906. }
  1907. b := dAtA[iNdEx]
  1908. iNdEx++
  1909. wire |= (uint64(b) & 0x7F) << shift
  1910. if b < 0x80 {
  1911. break
  1912. }
  1913. }
  1914. fieldNum := int32(wire >> 3)
  1915. wireType := int(wire & 0x7)
  1916. if wireType == 4 {
  1917. return fmt.Errorf("proto: AddHistoriesReply: wiretype end group for non-group")
  1918. }
  1919. if fieldNum <= 0 {
  1920. return fmt.Errorf("proto: AddHistoriesReply: illegal tag %d (wire type %d)", fieldNum, wire)
  1921. }
  1922. switch fieldNum {
  1923. default:
  1924. iNdEx = preIndex
  1925. skippy, err := skipApi(dAtA[iNdEx:])
  1926. if err != nil {
  1927. return err
  1928. }
  1929. if skippy < 0 {
  1930. return ErrInvalidLengthApi
  1931. }
  1932. if (iNdEx + skippy) > l {
  1933. return io.ErrUnexpectedEOF
  1934. }
  1935. iNdEx += skippy
  1936. }
  1937. }
  1938. if iNdEx > l {
  1939. return io.ErrUnexpectedEOF
  1940. }
  1941. return nil
  1942. }
  1943. func (m *DelHistoriesReq) Unmarshal(dAtA []byte) error {
  1944. l := len(dAtA)
  1945. iNdEx := 0
  1946. for iNdEx < l {
  1947. preIndex := iNdEx
  1948. var wire uint64
  1949. for shift := uint(0); ; shift += 7 {
  1950. if shift >= 64 {
  1951. return ErrIntOverflowApi
  1952. }
  1953. if iNdEx >= l {
  1954. return io.ErrUnexpectedEOF
  1955. }
  1956. b := dAtA[iNdEx]
  1957. iNdEx++
  1958. wire |= (uint64(b) & 0x7F) << shift
  1959. if b < 0x80 {
  1960. break
  1961. }
  1962. }
  1963. fieldNum := int32(wire >> 3)
  1964. wireType := int(wire & 0x7)
  1965. if wireType == 4 {
  1966. return fmt.Errorf("proto: DelHistoriesReq: wiretype end group for non-group")
  1967. }
  1968. if fieldNum <= 0 {
  1969. return fmt.Errorf("proto: DelHistoriesReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1970. }
  1971. switch fieldNum {
  1972. case 1:
  1973. if wireType != 0 {
  1974. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  1975. }
  1976. m.Mid = 0
  1977. for shift := uint(0); ; shift += 7 {
  1978. if shift >= 64 {
  1979. return ErrIntOverflowApi
  1980. }
  1981. if iNdEx >= l {
  1982. return io.ErrUnexpectedEOF
  1983. }
  1984. b := dAtA[iNdEx]
  1985. iNdEx++
  1986. m.Mid |= (int64(b) & 0x7F) << shift
  1987. if b < 0x80 {
  1988. break
  1989. }
  1990. }
  1991. case 2:
  1992. if wireType != 2 {
  1993. return fmt.Errorf("proto: wrong wireType = %d for field Records", wireType)
  1994. }
  1995. var msglen int
  1996. for shift := uint(0); ; shift += 7 {
  1997. if shift >= 64 {
  1998. return ErrIntOverflowApi
  1999. }
  2000. if iNdEx >= l {
  2001. return io.ErrUnexpectedEOF
  2002. }
  2003. b := dAtA[iNdEx]
  2004. iNdEx++
  2005. msglen |= (int(b) & 0x7F) << shift
  2006. if b < 0x80 {
  2007. break
  2008. }
  2009. }
  2010. if msglen < 0 {
  2011. return ErrInvalidLengthApi
  2012. }
  2013. postIndex := iNdEx + msglen
  2014. if postIndex > l {
  2015. return io.ErrUnexpectedEOF
  2016. }
  2017. m.Records = append(m.Records, &DelHistoriesReq_Record{})
  2018. if err := m.Records[len(m.Records)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2019. return err
  2020. }
  2021. iNdEx = postIndex
  2022. default:
  2023. iNdEx = preIndex
  2024. skippy, err := skipApi(dAtA[iNdEx:])
  2025. if err != nil {
  2026. return err
  2027. }
  2028. if skippy < 0 {
  2029. return ErrInvalidLengthApi
  2030. }
  2031. if (iNdEx + skippy) > l {
  2032. return io.ErrUnexpectedEOF
  2033. }
  2034. iNdEx += skippy
  2035. }
  2036. }
  2037. if iNdEx > l {
  2038. return io.ErrUnexpectedEOF
  2039. }
  2040. return nil
  2041. }
  2042. func (m *DelHistoriesReq_Record) Unmarshal(dAtA []byte) error {
  2043. l := len(dAtA)
  2044. iNdEx := 0
  2045. for iNdEx < l {
  2046. preIndex := iNdEx
  2047. var wire uint64
  2048. for shift := uint(0); ; shift += 7 {
  2049. if shift >= 64 {
  2050. return ErrIntOverflowApi
  2051. }
  2052. if iNdEx >= l {
  2053. return io.ErrUnexpectedEOF
  2054. }
  2055. b := dAtA[iNdEx]
  2056. iNdEx++
  2057. wire |= (uint64(b) & 0x7F) << shift
  2058. if b < 0x80 {
  2059. break
  2060. }
  2061. }
  2062. fieldNum := int32(wire >> 3)
  2063. wireType := int(wire & 0x7)
  2064. if wireType == 4 {
  2065. return fmt.Errorf("proto: Record: wiretype end group for non-group")
  2066. }
  2067. if fieldNum <= 0 {
  2068. return fmt.Errorf("proto: Record: illegal tag %d (wire type %d)", fieldNum, wire)
  2069. }
  2070. switch fieldNum {
  2071. case 1:
  2072. if wireType != 2 {
  2073. return fmt.Errorf("proto: wrong wireType = %d for field Business", wireType)
  2074. }
  2075. var stringLen uint64
  2076. for shift := uint(0); ; shift += 7 {
  2077. if shift >= 64 {
  2078. return ErrIntOverflowApi
  2079. }
  2080. if iNdEx >= l {
  2081. return io.ErrUnexpectedEOF
  2082. }
  2083. b := dAtA[iNdEx]
  2084. iNdEx++
  2085. stringLen |= (uint64(b) & 0x7F) << shift
  2086. if b < 0x80 {
  2087. break
  2088. }
  2089. }
  2090. intStringLen := int(stringLen)
  2091. if intStringLen < 0 {
  2092. return ErrInvalidLengthApi
  2093. }
  2094. postIndex := iNdEx + intStringLen
  2095. if postIndex > l {
  2096. return io.ErrUnexpectedEOF
  2097. }
  2098. m.Business = string(dAtA[iNdEx:postIndex])
  2099. iNdEx = postIndex
  2100. case 2:
  2101. if wireType != 0 {
  2102. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  2103. }
  2104. m.ID = 0
  2105. for shift := uint(0); ; shift += 7 {
  2106. if shift >= 64 {
  2107. return ErrIntOverflowApi
  2108. }
  2109. if iNdEx >= l {
  2110. return io.ErrUnexpectedEOF
  2111. }
  2112. b := dAtA[iNdEx]
  2113. iNdEx++
  2114. m.ID |= (int64(b) & 0x7F) << shift
  2115. if b < 0x80 {
  2116. break
  2117. }
  2118. }
  2119. default:
  2120. iNdEx = preIndex
  2121. skippy, err := skipApi(dAtA[iNdEx:])
  2122. if err != nil {
  2123. return err
  2124. }
  2125. if skippy < 0 {
  2126. return ErrInvalidLengthApi
  2127. }
  2128. if (iNdEx + skippy) > l {
  2129. return io.ErrUnexpectedEOF
  2130. }
  2131. iNdEx += skippy
  2132. }
  2133. }
  2134. if iNdEx > l {
  2135. return io.ErrUnexpectedEOF
  2136. }
  2137. return nil
  2138. }
  2139. func (m *DelHistoriesReply) Unmarshal(dAtA []byte) error {
  2140. l := len(dAtA)
  2141. iNdEx := 0
  2142. for iNdEx < l {
  2143. preIndex := iNdEx
  2144. var wire uint64
  2145. for shift := uint(0); ; shift += 7 {
  2146. if shift >= 64 {
  2147. return ErrIntOverflowApi
  2148. }
  2149. if iNdEx >= l {
  2150. return io.ErrUnexpectedEOF
  2151. }
  2152. b := dAtA[iNdEx]
  2153. iNdEx++
  2154. wire |= (uint64(b) & 0x7F) << shift
  2155. if b < 0x80 {
  2156. break
  2157. }
  2158. }
  2159. fieldNum := int32(wire >> 3)
  2160. wireType := int(wire & 0x7)
  2161. if wireType == 4 {
  2162. return fmt.Errorf("proto: DelHistoriesReply: wiretype end group for non-group")
  2163. }
  2164. if fieldNum <= 0 {
  2165. return fmt.Errorf("proto: DelHistoriesReply: illegal tag %d (wire type %d)", fieldNum, wire)
  2166. }
  2167. switch fieldNum {
  2168. default:
  2169. iNdEx = preIndex
  2170. skippy, err := skipApi(dAtA[iNdEx:])
  2171. if err != nil {
  2172. return err
  2173. }
  2174. if skippy < 0 {
  2175. return ErrInvalidLengthApi
  2176. }
  2177. if (iNdEx + skippy) > l {
  2178. return io.ErrUnexpectedEOF
  2179. }
  2180. iNdEx += skippy
  2181. }
  2182. }
  2183. if iNdEx > l {
  2184. return io.ErrUnexpectedEOF
  2185. }
  2186. return nil
  2187. }
  2188. func (m *ClearHistoryReq) Unmarshal(dAtA []byte) error {
  2189. l := len(dAtA)
  2190. iNdEx := 0
  2191. for iNdEx < l {
  2192. preIndex := iNdEx
  2193. var wire uint64
  2194. for shift := uint(0); ; shift += 7 {
  2195. if shift >= 64 {
  2196. return ErrIntOverflowApi
  2197. }
  2198. if iNdEx >= l {
  2199. return io.ErrUnexpectedEOF
  2200. }
  2201. b := dAtA[iNdEx]
  2202. iNdEx++
  2203. wire |= (uint64(b) & 0x7F) << shift
  2204. if b < 0x80 {
  2205. break
  2206. }
  2207. }
  2208. fieldNum := int32(wire >> 3)
  2209. wireType := int(wire & 0x7)
  2210. if wireType == 4 {
  2211. return fmt.Errorf("proto: ClearHistoryReq: wiretype end group for non-group")
  2212. }
  2213. if fieldNum <= 0 {
  2214. return fmt.Errorf("proto: ClearHistoryReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2215. }
  2216. switch fieldNum {
  2217. case 1:
  2218. if wireType != 2 {
  2219. return fmt.Errorf("proto: wrong wireType = %d for field Businesses", wireType)
  2220. }
  2221. var stringLen uint64
  2222. for shift := uint(0); ; shift += 7 {
  2223. if shift >= 64 {
  2224. return ErrIntOverflowApi
  2225. }
  2226. if iNdEx >= l {
  2227. return io.ErrUnexpectedEOF
  2228. }
  2229. b := dAtA[iNdEx]
  2230. iNdEx++
  2231. stringLen |= (uint64(b) & 0x7F) << shift
  2232. if b < 0x80 {
  2233. break
  2234. }
  2235. }
  2236. intStringLen := int(stringLen)
  2237. if intStringLen < 0 {
  2238. return ErrInvalidLengthApi
  2239. }
  2240. postIndex := iNdEx + intStringLen
  2241. if postIndex > l {
  2242. return io.ErrUnexpectedEOF
  2243. }
  2244. m.Businesses = append(m.Businesses, string(dAtA[iNdEx:postIndex]))
  2245. iNdEx = postIndex
  2246. case 2:
  2247. if wireType != 0 {
  2248. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  2249. }
  2250. m.Mid = 0
  2251. for shift := uint(0); ; shift += 7 {
  2252. if shift >= 64 {
  2253. return ErrIntOverflowApi
  2254. }
  2255. if iNdEx >= l {
  2256. return io.ErrUnexpectedEOF
  2257. }
  2258. b := dAtA[iNdEx]
  2259. iNdEx++
  2260. m.Mid |= (int64(b) & 0x7F) << shift
  2261. if b < 0x80 {
  2262. break
  2263. }
  2264. }
  2265. default:
  2266. iNdEx = preIndex
  2267. skippy, err := skipApi(dAtA[iNdEx:])
  2268. if err != nil {
  2269. return err
  2270. }
  2271. if skippy < 0 {
  2272. return ErrInvalidLengthApi
  2273. }
  2274. if (iNdEx + skippy) > l {
  2275. return io.ErrUnexpectedEOF
  2276. }
  2277. iNdEx += skippy
  2278. }
  2279. }
  2280. if iNdEx > l {
  2281. return io.ErrUnexpectedEOF
  2282. }
  2283. return nil
  2284. }
  2285. func (m *ClearHistoryReply) Unmarshal(dAtA []byte) error {
  2286. l := len(dAtA)
  2287. iNdEx := 0
  2288. for iNdEx < l {
  2289. preIndex := iNdEx
  2290. var wire uint64
  2291. for shift := uint(0); ; shift += 7 {
  2292. if shift >= 64 {
  2293. return ErrIntOverflowApi
  2294. }
  2295. if iNdEx >= l {
  2296. return io.ErrUnexpectedEOF
  2297. }
  2298. b := dAtA[iNdEx]
  2299. iNdEx++
  2300. wire |= (uint64(b) & 0x7F) << shift
  2301. if b < 0x80 {
  2302. break
  2303. }
  2304. }
  2305. fieldNum := int32(wire >> 3)
  2306. wireType := int(wire & 0x7)
  2307. if wireType == 4 {
  2308. return fmt.Errorf("proto: ClearHistoryReply: wiretype end group for non-group")
  2309. }
  2310. if fieldNum <= 0 {
  2311. return fmt.Errorf("proto: ClearHistoryReply: illegal tag %d (wire type %d)", fieldNum, wire)
  2312. }
  2313. switch fieldNum {
  2314. default:
  2315. iNdEx = preIndex
  2316. skippy, err := skipApi(dAtA[iNdEx:])
  2317. if err != nil {
  2318. return err
  2319. }
  2320. if skippy < 0 {
  2321. return ErrInvalidLengthApi
  2322. }
  2323. if (iNdEx + skippy) > l {
  2324. return io.ErrUnexpectedEOF
  2325. }
  2326. iNdEx += skippy
  2327. }
  2328. }
  2329. if iNdEx > l {
  2330. return io.ErrUnexpectedEOF
  2331. }
  2332. return nil
  2333. }
  2334. func (m *UserHistoriesReq) Unmarshal(dAtA []byte) error {
  2335. l := len(dAtA)
  2336. iNdEx := 0
  2337. for iNdEx < l {
  2338. preIndex := iNdEx
  2339. var wire uint64
  2340. for shift := uint(0); ; shift += 7 {
  2341. if shift >= 64 {
  2342. return ErrIntOverflowApi
  2343. }
  2344. if iNdEx >= l {
  2345. return io.ErrUnexpectedEOF
  2346. }
  2347. b := dAtA[iNdEx]
  2348. iNdEx++
  2349. wire |= (uint64(b) & 0x7F) << shift
  2350. if b < 0x80 {
  2351. break
  2352. }
  2353. }
  2354. fieldNum := int32(wire >> 3)
  2355. wireType := int(wire & 0x7)
  2356. if wireType == 4 {
  2357. return fmt.Errorf("proto: UserHistoriesReq: wiretype end group for non-group")
  2358. }
  2359. if fieldNum <= 0 {
  2360. return fmt.Errorf("proto: UserHistoriesReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2361. }
  2362. switch fieldNum {
  2363. case 1:
  2364. if wireType != 0 {
  2365. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  2366. }
  2367. m.Mid = 0
  2368. for shift := uint(0); ; shift += 7 {
  2369. if shift >= 64 {
  2370. return ErrIntOverflowApi
  2371. }
  2372. if iNdEx >= l {
  2373. return io.ErrUnexpectedEOF
  2374. }
  2375. b := dAtA[iNdEx]
  2376. iNdEx++
  2377. m.Mid |= (int64(b) & 0x7F) << shift
  2378. if b < 0x80 {
  2379. break
  2380. }
  2381. }
  2382. case 2:
  2383. if wireType != 2 {
  2384. return fmt.Errorf("proto: wrong wireType = %d for field Businesses", wireType)
  2385. }
  2386. var stringLen uint64
  2387. for shift := uint(0); ; shift += 7 {
  2388. if shift >= 64 {
  2389. return ErrIntOverflowApi
  2390. }
  2391. if iNdEx >= l {
  2392. return io.ErrUnexpectedEOF
  2393. }
  2394. b := dAtA[iNdEx]
  2395. iNdEx++
  2396. stringLen |= (uint64(b) & 0x7F) << shift
  2397. if b < 0x80 {
  2398. break
  2399. }
  2400. }
  2401. intStringLen := int(stringLen)
  2402. if intStringLen < 0 {
  2403. return ErrInvalidLengthApi
  2404. }
  2405. postIndex := iNdEx + intStringLen
  2406. if postIndex > l {
  2407. return io.ErrUnexpectedEOF
  2408. }
  2409. m.Businesses = append(m.Businesses, string(dAtA[iNdEx:postIndex]))
  2410. iNdEx = postIndex
  2411. case 3:
  2412. if wireType != 2 {
  2413. return fmt.Errorf("proto: wrong wireType = %d for field Business", wireType)
  2414. }
  2415. var stringLen uint64
  2416. for shift := uint(0); ; shift += 7 {
  2417. if shift >= 64 {
  2418. return ErrIntOverflowApi
  2419. }
  2420. if iNdEx >= l {
  2421. return io.ErrUnexpectedEOF
  2422. }
  2423. b := dAtA[iNdEx]
  2424. iNdEx++
  2425. stringLen |= (uint64(b) & 0x7F) << shift
  2426. if b < 0x80 {
  2427. break
  2428. }
  2429. }
  2430. intStringLen := int(stringLen)
  2431. if intStringLen < 0 {
  2432. return ErrInvalidLengthApi
  2433. }
  2434. postIndex := iNdEx + intStringLen
  2435. if postIndex > l {
  2436. return io.ErrUnexpectedEOF
  2437. }
  2438. m.Business = string(dAtA[iNdEx:postIndex])
  2439. iNdEx = postIndex
  2440. case 4:
  2441. if wireType != 0 {
  2442. return fmt.Errorf("proto: wrong wireType = %d for field Kid", wireType)
  2443. }
  2444. m.Kid = 0
  2445. for shift := uint(0); ; shift += 7 {
  2446. if shift >= 64 {
  2447. return ErrIntOverflowApi
  2448. }
  2449. if iNdEx >= l {
  2450. return io.ErrUnexpectedEOF
  2451. }
  2452. b := dAtA[iNdEx]
  2453. iNdEx++
  2454. m.Kid |= (int64(b) & 0x7F) << shift
  2455. if b < 0x80 {
  2456. break
  2457. }
  2458. }
  2459. case 5:
  2460. if wireType != 0 {
  2461. return fmt.Errorf("proto: wrong wireType = %d for field ViewAt", wireType)
  2462. }
  2463. m.ViewAt = 0
  2464. for shift := uint(0); ; shift += 7 {
  2465. if shift >= 64 {
  2466. return ErrIntOverflowApi
  2467. }
  2468. if iNdEx >= l {
  2469. return io.ErrUnexpectedEOF
  2470. }
  2471. b := dAtA[iNdEx]
  2472. iNdEx++
  2473. m.ViewAt |= (int64(b) & 0x7F) << shift
  2474. if b < 0x80 {
  2475. break
  2476. }
  2477. }
  2478. case 6:
  2479. if wireType != 0 {
  2480. return fmt.Errorf("proto: wrong wireType = %d for field Ps", wireType)
  2481. }
  2482. m.Ps = 0
  2483. for shift := uint(0); ; shift += 7 {
  2484. if shift >= 64 {
  2485. return ErrIntOverflowApi
  2486. }
  2487. if iNdEx >= l {
  2488. return io.ErrUnexpectedEOF
  2489. }
  2490. b := dAtA[iNdEx]
  2491. iNdEx++
  2492. m.Ps |= (int64(b) & 0x7F) << shift
  2493. if b < 0x80 {
  2494. break
  2495. }
  2496. }
  2497. default:
  2498. iNdEx = preIndex
  2499. skippy, err := skipApi(dAtA[iNdEx:])
  2500. if err != nil {
  2501. return err
  2502. }
  2503. if skippy < 0 {
  2504. return ErrInvalidLengthApi
  2505. }
  2506. if (iNdEx + skippy) > l {
  2507. return io.ErrUnexpectedEOF
  2508. }
  2509. iNdEx += skippy
  2510. }
  2511. }
  2512. if iNdEx > l {
  2513. return io.ErrUnexpectedEOF
  2514. }
  2515. return nil
  2516. }
  2517. func (m *UserHistoriesReply) Unmarshal(dAtA []byte) error {
  2518. l := len(dAtA)
  2519. iNdEx := 0
  2520. for iNdEx < l {
  2521. preIndex := iNdEx
  2522. var wire uint64
  2523. for shift := uint(0); ; shift += 7 {
  2524. if shift >= 64 {
  2525. return ErrIntOverflowApi
  2526. }
  2527. if iNdEx >= l {
  2528. return io.ErrUnexpectedEOF
  2529. }
  2530. b := dAtA[iNdEx]
  2531. iNdEx++
  2532. wire |= (uint64(b) & 0x7F) << shift
  2533. if b < 0x80 {
  2534. break
  2535. }
  2536. }
  2537. fieldNum := int32(wire >> 3)
  2538. wireType := int(wire & 0x7)
  2539. if wireType == 4 {
  2540. return fmt.Errorf("proto: UserHistoriesReply: wiretype end group for non-group")
  2541. }
  2542. if fieldNum <= 0 {
  2543. return fmt.Errorf("proto: UserHistoriesReply: illegal tag %d (wire type %d)", fieldNum, wire)
  2544. }
  2545. switch fieldNum {
  2546. case 1:
  2547. if wireType != 2 {
  2548. return fmt.Errorf("proto: wrong wireType = %d for field Histories", wireType)
  2549. }
  2550. var msglen int
  2551. for shift := uint(0); ; shift += 7 {
  2552. if shift >= 64 {
  2553. return ErrIntOverflowApi
  2554. }
  2555. if iNdEx >= l {
  2556. return io.ErrUnexpectedEOF
  2557. }
  2558. b := dAtA[iNdEx]
  2559. iNdEx++
  2560. msglen |= (int(b) & 0x7F) << shift
  2561. if b < 0x80 {
  2562. break
  2563. }
  2564. }
  2565. if msglen < 0 {
  2566. return ErrInvalidLengthApi
  2567. }
  2568. postIndex := iNdEx + msglen
  2569. if postIndex > l {
  2570. return io.ErrUnexpectedEOF
  2571. }
  2572. m.Histories = append(m.Histories, &history.History{})
  2573. if err := m.Histories[len(m.Histories)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2574. return err
  2575. }
  2576. iNdEx = postIndex
  2577. default:
  2578. iNdEx = preIndex
  2579. skippy, err := skipApi(dAtA[iNdEx:])
  2580. if err != nil {
  2581. return err
  2582. }
  2583. if skippy < 0 {
  2584. return ErrInvalidLengthApi
  2585. }
  2586. if (iNdEx + skippy) > l {
  2587. return io.ErrUnexpectedEOF
  2588. }
  2589. iNdEx += skippy
  2590. }
  2591. }
  2592. if iNdEx > l {
  2593. return io.ErrUnexpectedEOF
  2594. }
  2595. return nil
  2596. }
  2597. func (m *HistoriesReq) Unmarshal(dAtA []byte) error {
  2598. l := len(dAtA)
  2599. iNdEx := 0
  2600. for iNdEx < l {
  2601. preIndex := iNdEx
  2602. var wire uint64
  2603. for shift := uint(0); ; shift += 7 {
  2604. if shift >= 64 {
  2605. return ErrIntOverflowApi
  2606. }
  2607. if iNdEx >= l {
  2608. return io.ErrUnexpectedEOF
  2609. }
  2610. b := dAtA[iNdEx]
  2611. iNdEx++
  2612. wire |= (uint64(b) & 0x7F) << shift
  2613. if b < 0x80 {
  2614. break
  2615. }
  2616. }
  2617. fieldNum := int32(wire >> 3)
  2618. wireType := int(wire & 0x7)
  2619. if wireType == 4 {
  2620. return fmt.Errorf("proto: HistoriesReq: wiretype end group for non-group")
  2621. }
  2622. if fieldNum <= 0 {
  2623. return fmt.Errorf("proto: HistoriesReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2624. }
  2625. switch fieldNum {
  2626. case 1:
  2627. if wireType != 0 {
  2628. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  2629. }
  2630. m.Mid = 0
  2631. for shift := uint(0); ; shift += 7 {
  2632. if shift >= 64 {
  2633. return ErrIntOverflowApi
  2634. }
  2635. if iNdEx >= l {
  2636. return io.ErrUnexpectedEOF
  2637. }
  2638. b := dAtA[iNdEx]
  2639. iNdEx++
  2640. m.Mid |= (int64(b) & 0x7F) << shift
  2641. if b < 0x80 {
  2642. break
  2643. }
  2644. }
  2645. case 2:
  2646. if wireType != 2 {
  2647. return fmt.Errorf("proto: wrong wireType = %d for field Business", wireType)
  2648. }
  2649. var stringLen uint64
  2650. for shift := uint(0); ; shift += 7 {
  2651. if shift >= 64 {
  2652. return ErrIntOverflowApi
  2653. }
  2654. if iNdEx >= l {
  2655. return io.ErrUnexpectedEOF
  2656. }
  2657. b := dAtA[iNdEx]
  2658. iNdEx++
  2659. stringLen |= (uint64(b) & 0x7F) << shift
  2660. if b < 0x80 {
  2661. break
  2662. }
  2663. }
  2664. intStringLen := int(stringLen)
  2665. if intStringLen < 0 {
  2666. return ErrInvalidLengthApi
  2667. }
  2668. postIndex := iNdEx + intStringLen
  2669. if postIndex > l {
  2670. return io.ErrUnexpectedEOF
  2671. }
  2672. m.Business = string(dAtA[iNdEx:postIndex])
  2673. iNdEx = postIndex
  2674. case 3:
  2675. if wireType == 0 {
  2676. var v int64
  2677. for shift := uint(0); ; shift += 7 {
  2678. if shift >= 64 {
  2679. return ErrIntOverflowApi
  2680. }
  2681. if iNdEx >= l {
  2682. return io.ErrUnexpectedEOF
  2683. }
  2684. b := dAtA[iNdEx]
  2685. iNdEx++
  2686. v |= (int64(b) & 0x7F) << shift
  2687. if b < 0x80 {
  2688. break
  2689. }
  2690. }
  2691. m.Kids = append(m.Kids, v)
  2692. } else if wireType == 2 {
  2693. var packedLen int
  2694. for shift := uint(0); ; shift += 7 {
  2695. if shift >= 64 {
  2696. return ErrIntOverflowApi
  2697. }
  2698. if iNdEx >= l {
  2699. return io.ErrUnexpectedEOF
  2700. }
  2701. b := dAtA[iNdEx]
  2702. iNdEx++
  2703. packedLen |= (int(b) & 0x7F) << shift
  2704. if b < 0x80 {
  2705. break
  2706. }
  2707. }
  2708. if packedLen < 0 {
  2709. return ErrInvalidLengthApi
  2710. }
  2711. postIndex := iNdEx + packedLen
  2712. if postIndex > l {
  2713. return io.ErrUnexpectedEOF
  2714. }
  2715. for iNdEx < postIndex {
  2716. var v int64
  2717. for shift := uint(0); ; shift += 7 {
  2718. if shift >= 64 {
  2719. return ErrIntOverflowApi
  2720. }
  2721. if iNdEx >= l {
  2722. return io.ErrUnexpectedEOF
  2723. }
  2724. b := dAtA[iNdEx]
  2725. iNdEx++
  2726. v |= (int64(b) & 0x7F) << shift
  2727. if b < 0x80 {
  2728. break
  2729. }
  2730. }
  2731. m.Kids = append(m.Kids, v)
  2732. }
  2733. } else {
  2734. return fmt.Errorf("proto: wrong wireType = %d for field Kids", wireType)
  2735. }
  2736. default:
  2737. iNdEx = preIndex
  2738. skippy, err := skipApi(dAtA[iNdEx:])
  2739. if err != nil {
  2740. return err
  2741. }
  2742. if skippy < 0 {
  2743. return ErrInvalidLengthApi
  2744. }
  2745. if (iNdEx + skippy) > l {
  2746. return io.ErrUnexpectedEOF
  2747. }
  2748. iNdEx += skippy
  2749. }
  2750. }
  2751. if iNdEx > l {
  2752. return io.ErrUnexpectedEOF
  2753. }
  2754. return nil
  2755. }
  2756. func (m *HistoriesReply) Unmarshal(dAtA []byte) error {
  2757. l := len(dAtA)
  2758. iNdEx := 0
  2759. for iNdEx < l {
  2760. preIndex := iNdEx
  2761. var wire uint64
  2762. for shift := uint(0); ; shift += 7 {
  2763. if shift >= 64 {
  2764. return ErrIntOverflowApi
  2765. }
  2766. if iNdEx >= l {
  2767. return io.ErrUnexpectedEOF
  2768. }
  2769. b := dAtA[iNdEx]
  2770. iNdEx++
  2771. wire |= (uint64(b) & 0x7F) << shift
  2772. if b < 0x80 {
  2773. break
  2774. }
  2775. }
  2776. fieldNum := int32(wire >> 3)
  2777. wireType := int(wire & 0x7)
  2778. if wireType == 4 {
  2779. return fmt.Errorf("proto: HistoriesReply: wiretype end group for non-group")
  2780. }
  2781. if fieldNum <= 0 {
  2782. return fmt.Errorf("proto: HistoriesReply: illegal tag %d (wire type %d)", fieldNum, wire)
  2783. }
  2784. switch fieldNum {
  2785. case 1:
  2786. if wireType != 2 {
  2787. return fmt.Errorf("proto: wrong wireType = %d for field Histories", wireType)
  2788. }
  2789. var msglen int
  2790. for shift := uint(0); ; shift += 7 {
  2791. if shift >= 64 {
  2792. return ErrIntOverflowApi
  2793. }
  2794. if iNdEx >= l {
  2795. return io.ErrUnexpectedEOF
  2796. }
  2797. b := dAtA[iNdEx]
  2798. iNdEx++
  2799. msglen |= (int(b) & 0x7F) << shift
  2800. if b < 0x80 {
  2801. break
  2802. }
  2803. }
  2804. if msglen < 0 {
  2805. return ErrInvalidLengthApi
  2806. }
  2807. postIndex := iNdEx + msglen
  2808. if postIndex > l {
  2809. return io.ErrUnexpectedEOF
  2810. }
  2811. if m.Histories == nil {
  2812. m.Histories = make(map[int64]*history.History)
  2813. }
  2814. var mapkey int64
  2815. var mapvalue *history.History
  2816. for iNdEx < postIndex {
  2817. entryPreIndex := iNdEx
  2818. var wire uint64
  2819. for shift := uint(0); ; shift += 7 {
  2820. if shift >= 64 {
  2821. return ErrIntOverflowApi
  2822. }
  2823. if iNdEx >= l {
  2824. return io.ErrUnexpectedEOF
  2825. }
  2826. b := dAtA[iNdEx]
  2827. iNdEx++
  2828. wire |= (uint64(b) & 0x7F) << shift
  2829. if b < 0x80 {
  2830. break
  2831. }
  2832. }
  2833. fieldNum := int32(wire >> 3)
  2834. if fieldNum == 1 {
  2835. for shift := uint(0); ; shift += 7 {
  2836. if shift >= 64 {
  2837. return ErrIntOverflowApi
  2838. }
  2839. if iNdEx >= l {
  2840. return io.ErrUnexpectedEOF
  2841. }
  2842. b := dAtA[iNdEx]
  2843. iNdEx++
  2844. mapkey |= (int64(b) & 0x7F) << shift
  2845. if b < 0x80 {
  2846. break
  2847. }
  2848. }
  2849. } else if fieldNum == 2 {
  2850. var mapmsglen int
  2851. for shift := uint(0); ; shift += 7 {
  2852. if shift >= 64 {
  2853. return ErrIntOverflowApi
  2854. }
  2855. if iNdEx >= l {
  2856. return io.ErrUnexpectedEOF
  2857. }
  2858. b := dAtA[iNdEx]
  2859. iNdEx++
  2860. mapmsglen |= (int(b) & 0x7F) << shift
  2861. if b < 0x80 {
  2862. break
  2863. }
  2864. }
  2865. if mapmsglen < 0 {
  2866. return ErrInvalidLengthApi
  2867. }
  2868. postmsgIndex := iNdEx + mapmsglen
  2869. if mapmsglen < 0 {
  2870. return ErrInvalidLengthApi
  2871. }
  2872. if postmsgIndex > l {
  2873. return io.ErrUnexpectedEOF
  2874. }
  2875. mapvalue = &history.History{}
  2876. if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  2877. return err
  2878. }
  2879. iNdEx = postmsgIndex
  2880. } else {
  2881. iNdEx = entryPreIndex
  2882. skippy, err := skipApi(dAtA[iNdEx:])
  2883. if err != nil {
  2884. return err
  2885. }
  2886. if skippy < 0 {
  2887. return ErrInvalidLengthApi
  2888. }
  2889. if (iNdEx + skippy) > postIndex {
  2890. return io.ErrUnexpectedEOF
  2891. }
  2892. iNdEx += skippy
  2893. }
  2894. }
  2895. m.Histories[mapkey] = mapvalue
  2896. iNdEx = postIndex
  2897. default:
  2898. iNdEx = preIndex
  2899. skippy, err := skipApi(dAtA[iNdEx:])
  2900. if err != nil {
  2901. return err
  2902. }
  2903. if skippy < 0 {
  2904. return ErrInvalidLengthApi
  2905. }
  2906. if (iNdEx + skippy) > l {
  2907. return io.ErrUnexpectedEOF
  2908. }
  2909. iNdEx += skippy
  2910. }
  2911. }
  2912. if iNdEx > l {
  2913. return io.ErrUnexpectedEOF
  2914. }
  2915. return nil
  2916. }
  2917. func (m *UserHideReq) Unmarshal(dAtA []byte) error {
  2918. l := len(dAtA)
  2919. iNdEx := 0
  2920. for iNdEx < l {
  2921. preIndex := iNdEx
  2922. var wire uint64
  2923. for shift := uint(0); ; shift += 7 {
  2924. if shift >= 64 {
  2925. return ErrIntOverflowApi
  2926. }
  2927. if iNdEx >= l {
  2928. return io.ErrUnexpectedEOF
  2929. }
  2930. b := dAtA[iNdEx]
  2931. iNdEx++
  2932. wire |= (uint64(b) & 0x7F) << shift
  2933. if b < 0x80 {
  2934. break
  2935. }
  2936. }
  2937. fieldNum := int32(wire >> 3)
  2938. wireType := int(wire & 0x7)
  2939. if wireType == 4 {
  2940. return fmt.Errorf("proto: UserHideReq: wiretype end group for non-group")
  2941. }
  2942. if fieldNum <= 0 {
  2943. return fmt.Errorf("proto: UserHideReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2944. }
  2945. switch fieldNum {
  2946. case 1:
  2947. if wireType != 0 {
  2948. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  2949. }
  2950. m.Mid = 0
  2951. for shift := uint(0); ; shift += 7 {
  2952. if shift >= 64 {
  2953. return ErrIntOverflowApi
  2954. }
  2955. if iNdEx >= l {
  2956. return io.ErrUnexpectedEOF
  2957. }
  2958. b := dAtA[iNdEx]
  2959. iNdEx++
  2960. m.Mid |= (int64(b) & 0x7F) << shift
  2961. if b < 0x80 {
  2962. break
  2963. }
  2964. }
  2965. default:
  2966. iNdEx = preIndex
  2967. skippy, err := skipApi(dAtA[iNdEx:])
  2968. if err != nil {
  2969. return err
  2970. }
  2971. if skippy < 0 {
  2972. return ErrInvalidLengthApi
  2973. }
  2974. if (iNdEx + skippy) > l {
  2975. return io.ErrUnexpectedEOF
  2976. }
  2977. iNdEx += skippy
  2978. }
  2979. }
  2980. if iNdEx > l {
  2981. return io.ErrUnexpectedEOF
  2982. }
  2983. return nil
  2984. }
  2985. func (m *UserHideReply) Unmarshal(dAtA []byte) error {
  2986. l := len(dAtA)
  2987. iNdEx := 0
  2988. for iNdEx < l {
  2989. preIndex := iNdEx
  2990. var wire uint64
  2991. for shift := uint(0); ; shift += 7 {
  2992. if shift >= 64 {
  2993. return ErrIntOverflowApi
  2994. }
  2995. if iNdEx >= l {
  2996. return io.ErrUnexpectedEOF
  2997. }
  2998. b := dAtA[iNdEx]
  2999. iNdEx++
  3000. wire |= (uint64(b) & 0x7F) << shift
  3001. if b < 0x80 {
  3002. break
  3003. }
  3004. }
  3005. fieldNum := int32(wire >> 3)
  3006. wireType := int(wire & 0x7)
  3007. if wireType == 4 {
  3008. return fmt.Errorf("proto: UserHideReply: wiretype end group for non-group")
  3009. }
  3010. if fieldNum <= 0 {
  3011. return fmt.Errorf("proto: UserHideReply: illegal tag %d (wire type %d)", fieldNum, wire)
  3012. }
  3013. switch fieldNum {
  3014. case 1:
  3015. if wireType != 0 {
  3016. return fmt.Errorf("proto: wrong wireType = %d for field Hide", wireType)
  3017. }
  3018. var v int
  3019. for shift := uint(0); ; shift += 7 {
  3020. if shift >= 64 {
  3021. return ErrIntOverflowApi
  3022. }
  3023. if iNdEx >= l {
  3024. return io.ErrUnexpectedEOF
  3025. }
  3026. b := dAtA[iNdEx]
  3027. iNdEx++
  3028. v |= (int(b) & 0x7F) << shift
  3029. if b < 0x80 {
  3030. break
  3031. }
  3032. }
  3033. m.Hide = bool(v != 0)
  3034. default:
  3035. iNdEx = preIndex
  3036. skippy, err := skipApi(dAtA[iNdEx:])
  3037. if err != nil {
  3038. return err
  3039. }
  3040. if skippy < 0 {
  3041. return ErrInvalidLengthApi
  3042. }
  3043. if (iNdEx + skippy) > l {
  3044. return io.ErrUnexpectedEOF
  3045. }
  3046. iNdEx += skippy
  3047. }
  3048. }
  3049. if iNdEx > l {
  3050. return io.ErrUnexpectedEOF
  3051. }
  3052. return nil
  3053. }
  3054. func (m *UpdateUserHideReq) Unmarshal(dAtA []byte) error {
  3055. l := len(dAtA)
  3056. iNdEx := 0
  3057. for iNdEx < l {
  3058. preIndex := iNdEx
  3059. var wire uint64
  3060. for shift := uint(0); ; shift += 7 {
  3061. if shift >= 64 {
  3062. return ErrIntOverflowApi
  3063. }
  3064. if iNdEx >= l {
  3065. return io.ErrUnexpectedEOF
  3066. }
  3067. b := dAtA[iNdEx]
  3068. iNdEx++
  3069. wire |= (uint64(b) & 0x7F) << shift
  3070. if b < 0x80 {
  3071. break
  3072. }
  3073. }
  3074. fieldNum := int32(wire >> 3)
  3075. wireType := int(wire & 0x7)
  3076. if wireType == 4 {
  3077. return fmt.Errorf("proto: UpdateUserHideReq: wiretype end group for non-group")
  3078. }
  3079. if fieldNum <= 0 {
  3080. return fmt.Errorf("proto: UpdateUserHideReq: illegal tag %d (wire type %d)", fieldNum, wire)
  3081. }
  3082. switch fieldNum {
  3083. case 1:
  3084. if wireType != 0 {
  3085. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  3086. }
  3087. m.Mid = 0
  3088. for shift := uint(0); ; shift += 7 {
  3089. if shift >= 64 {
  3090. return ErrIntOverflowApi
  3091. }
  3092. if iNdEx >= l {
  3093. return io.ErrUnexpectedEOF
  3094. }
  3095. b := dAtA[iNdEx]
  3096. iNdEx++
  3097. m.Mid |= (int64(b) & 0x7F) << shift
  3098. if b < 0x80 {
  3099. break
  3100. }
  3101. }
  3102. case 2:
  3103. if wireType != 0 {
  3104. return fmt.Errorf("proto: wrong wireType = %d for field Hide", wireType)
  3105. }
  3106. var v int
  3107. for shift := uint(0); ; shift += 7 {
  3108. if shift >= 64 {
  3109. return ErrIntOverflowApi
  3110. }
  3111. if iNdEx >= l {
  3112. return io.ErrUnexpectedEOF
  3113. }
  3114. b := dAtA[iNdEx]
  3115. iNdEx++
  3116. v |= (int(b) & 0x7F) << shift
  3117. if b < 0x80 {
  3118. break
  3119. }
  3120. }
  3121. m.Hide = bool(v != 0)
  3122. default:
  3123. iNdEx = preIndex
  3124. skippy, err := skipApi(dAtA[iNdEx:])
  3125. if err != nil {
  3126. return err
  3127. }
  3128. if skippy < 0 {
  3129. return ErrInvalidLengthApi
  3130. }
  3131. if (iNdEx + skippy) > l {
  3132. return io.ErrUnexpectedEOF
  3133. }
  3134. iNdEx += skippy
  3135. }
  3136. }
  3137. if iNdEx > l {
  3138. return io.ErrUnexpectedEOF
  3139. }
  3140. return nil
  3141. }
  3142. func (m *UpdateUserHideReply) Unmarshal(dAtA []byte) error {
  3143. l := len(dAtA)
  3144. iNdEx := 0
  3145. for iNdEx < l {
  3146. preIndex := iNdEx
  3147. var wire uint64
  3148. for shift := uint(0); ; shift += 7 {
  3149. if shift >= 64 {
  3150. return ErrIntOverflowApi
  3151. }
  3152. if iNdEx >= l {
  3153. return io.ErrUnexpectedEOF
  3154. }
  3155. b := dAtA[iNdEx]
  3156. iNdEx++
  3157. wire |= (uint64(b) & 0x7F) << shift
  3158. if b < 0x80 {
  3159. break
  3160. }
  3161. }
  3162. fieldNum := int32(wire >> 3)
  3163. wireType := int(wire & 0x7)
  3164. if wireType == 4 {
  3165. return fmt.Errorf("proto: UpdateUserHideReply: wiretype end group for non-group")
  3166. }
  3167. if fieldNum <= 0 {
  3168. return fmt.Errorf("proto: UpdateUserHideReply: illegal tag %d (wire type %d)", fieldNum, wire)
  3169. }
  3170. switch fieldNum {
  3171. default:
  3172. iNdEx = preIndex
  3173. skippy, err := skipApi(dAtA[iNdEx:])
  3174. if err != nil {
  3175. return err
  3176. }
  3177. if skippy < 0 {
  3178. return ErrInvalidLengthApi
  3179. }
  3180. if (iNdEx + skippy) > l {
  3181. return io.ErrUnexpectedEOF
  3182. }
  3183. iNdEx += skippy
  3184. }
  3185. }
  3186. if iNdEx > l {
  3187. return io.ErrUnexpectedEOF
  3188. }
  3189. return nil
  3190. }
  3191. func skipApi(dAtA []byte) (n int, err error) {
  3192. l := len(dAtA)
  3193. iNdEx := 0
  3194. for iNdEx < l {
  3195. var wire uint64
  3196. for shift := uint(0); ; shift += 7 {
  3197. if shift >= 64 {
  3198. return 0, ErrIntOverflowApi
  3199. }
  3200. if iNdEx >= l {
  3201. return 0, io.ErrUnexpectedEOF
  3202. }
  3203. b := dAtA[iNdEx]
  3204. iNdEx++
  3205. wire |= (uint64(b) & 0x7F) << shift
  3206. if b < 0x80 {
  3207. break
  3208. }
  3209. }
  3210. wireType := int(wire & 0x7)
  3211. switch wireType {
  3212. case 0:
  3213. for shift := uint(0); ; shift += 7 {
  3214. if shift >= 64 {
  3215. return 0, ErrIntOverflowApi
  3216. }
  3217. if iNdEx >= l {
  3218. return 0, io.ErrUnexpectedEOF
  3219. }
  3220. iNdEx++
  3221. if dAtA[iNdEx-1] < 0x80 {
  3222. break
  3223. }
  3224. }
  3225. return iNdEx, nil
  3226. case 1:
  3227. iNdEx += 8
  3228. return iNdEx, nil
  3229. case 2:
  3230. var length int
  3231. for shift := uint(0); ; shift += 7 {
  3232. if shift >= 64 {
  3233. return 0, ErrIntOverflowApi
  3234. }
  3235. if iNdEx >= l {
  3236. return 0, io.ErrUnexpectedEOF
  3237. }
  3238. b := dAtA[iNdEx]
  3239. iNdEx++
  3240. length |= (int(b) & 0x7F) << shift
  3241. if b < 0x80 {
  3242. break
  3243. }
  3244. }
  3245. iNdEx += length
  3246. if length < 0 {
  3247. return 0, ErrInvalidLengthApi
  3248. }
  3249. return iNdEx, nil
  3250. case 3:
  3251. for {
  3252. var innerWire uint64
  3253. var start int = iNdEx
  3254. for shift := uint(0); ; shift += 7 {
  3255. if shift >= 64 {
  3256. return 0, ErrIntOverflowApi
  3257. }
  3258. if iNdEx >= l {
  3259. return 0, io.ErrUnexpectedEOF
  3260. }
  3261. b := dAtA[iNdEx]
  3262. iNdEx++
  3263. innerWire |= (uint64(b) & 0x7F) << shift
  3264. if b < 0x80 {
  3265. break
  3266. }
  3267. }
  3268. innerWireType := int(innerWire & 0x7)
  3269. if innerWireType == 4 {
  3270. break
  3271. }
  3272. next, err := skipApi(dAtA[start:])
  3273. if err != nil {
  3274. return 0, err
  3275. }
  3276. iNdEx = start + next
  3277. }
  3278. return iNdEx, nil
  3279. case 4:
  3280. return iNdEx, nil
  3281. case 5:
  3282. iNdEx += 4
  3283. return iNdEx, nil
  3284. default:
  3285. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  3286. }
  3287. }
  3288. panic("unreachable")
  3289. }
  3290. var (
  3291. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  3292. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  3293. )
  3294. func init() { proto.RegisterFile("app/service/main/history/api/grpc/api.proto", fileDescriptorApi) }
  3295. var fileDescriptorApi = []byte{
  3296. // 1028 bytes of a gzipped FileDescriptorProto
  3297. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x4f, 0x6f, 0xe3, 0x44,
  3298. 0x14, 0x97, 0x9d, 0x36, 0x4d, 0x5f, 0xb7, 0xff, 0xa6, 0x42, 0x6b, 0x99, 0xa5, 0x8e, 0x66, 0x81,
  3299. 0x4d, 0x69, 0x6a, 0xb7, 0xcb, 0x22, 0x50, 0x57, 0x15, 0xac, 0x77, 0x41, 0x54, 0x5c, 0x56, 0x16,
  3300. 0x7b, 0x41, 0x48, 0x2b, 0x27, 0x33, 0x9b, 0x8c, 0x62, 0xc7, 0xae, 0xed, 0x04, 0xf2, 0x05, 0x38,
  3301. 0xf0, 0x09, 0xf8, 0x36, 0x48, 0x9c, 0x38, 0x21, 0x3e, 0x81, 0x05, 0x3d, 0xee, 0xd1, 0x17, 0xae,
  3302. 0x68, 0xc6, 0x76, 0x63, 0x3b, 0x6d, 0xda, 0x74, 0x7b, 0x89, 0x3c, 0x33, 0xbf, 0xf7, 0x7e, 0x33,
  3303. 0xef, 0xf7, 0xfe, 0x28, 0xb0, 0x6f, 0xfb, 0xbe, 0x11, 0xd2, 0x60, 0xcc, 0xba, 0xd4, 0x70, 0x6d,
  3304. 0x36, 0x34, 0xfa, 0x2c, 0x8c, 0xbc, 0x60, 0x62, 0xd8, 0x3e, 0x33, 0x7a, 0x81, 0xdf, 0xe5, 0x1f,
  3305. 0xba, 0x1f, 0x78, 0x91, 0x87, 0x1e, 0x74, 0x3d, 0xd7, 0x1d, 0x0d, 0x59, 0x34, 0xd1, 0x33, 0x13,
  3306. 0x3d, 0x43, 0xeb, 0xe3, 0x23, 0xf5, 0xa0, 0xc7, 0xa2, 0xfe, 0xa8, 0xa3, 0x77, 0x3d, 0xd7, 0xe8,
  3307. 0x79, 0x3d, 0xcf, 0x10, 0x46, 0x9d, 0xd1, 0x1b, 0xb1, 0x12, 0x0b, 0xf1, 0x95, 0x3a, 0x53, 0xdb,
  3308. 0x57, 0x32, 0xbb, 0x1e, 0xa1, 0x4e, 0xbe, 0x4a, 0xd1, 0x78, 0x1b, 0x36, 0x9f, 0x11, 0xf2, 0x6d,
  3309. 0xba, 0x67, 0x51, 0xdf, 0x99, 0xe0, 0xdf, 0x96, 0x60, 0xbd, 0xb8, 0x77, 0x86, 0x9e, 0x40, 0xcd,
  3310. 0x65, 0x44, 0x91, 0x9a, 0x52, 0xab, 0x66, 0xe2, 0x24, 0xd6, 0x76, 0xdf, 0x78, 0x81, 0x7b, 0x8c,
  3311. 0x5d, 0x46, 0x70, 0x73, 0x6c, 0x3b, 0x8c, 0xd8, 0x11, 0x3d, 0xc6, 0x01, 0x3d, 0x1b, 0xb1, 0x80,
  3312. 0x12, 0x6c, 0x71, 0x38, 0x7a, 0x0e, 0x8d, 0xce, 0x28, 0x64, 0x43, 0x1a, 0x86, 0x8a, 0xdc, 0x94,
  3313. 0x5a, 0xab, 0xe6, 0xa3, 0x24, 0xd6, 0x1e, 0xa6, 0xa6, 0xf9, 0xc9, 0xe5, 0xf6, 0x17, 0x86, 0x9c,
  3314. 0x7a, 0xc0, 0x88, 0x52, 0xab, 0x52, 0x0f, 0xae, 0xa4, 0x1e, 0x30, 0x82, 0x9a, 0x50, 0xb3, 0x19,
  3315. 0x51, 0x96, 0x84, 0xd5, 0x46, 0x12, 0x6b, 0x90, 0x5a, 0xd9, 0x8c, 0x23, 0xec, 0x14, 0x11, 0x32,
  3316. 0xa2, 0x2c, 0x57, 0x11, 0xa1, 0x40, 0x84, 0x8c, 0xa0, 0x87, 0xb0, 0x44, 0x7d, 0x46, 0x94, 0xba,
  3317. 0x80, 0x6c, 0x26, 0xb1, 0xb6, 0x96, 0x42, 0xf8, 0x2e, 0xb6, 0xc4, 0x21, 0x77, 0xd3, 0x65, 0x44,
  3318. 0x59, 0xa9, 0xba, 0xe9, 0x0a, 0x37, 0x5d, 0x46, 0x90, 0x0e, 0x8d, 0x70, 0xd4, 0x79, 0x1d, 0x4d,
  3319. 0x7c, 0xaa, 0x34, 0x9a, 0x52, 0x6b, 0xd9, 0xdc, 0x49, 0x62, 0x6d, 0x33, 0x63, 0xcb, 0x4e, 0xb0,
  3320. 0xb5, 0x12, 0x8e, 0x3a, 0xdf, 0x4f, 0x7c, 0x8a, 0xf6, 0xa0, 0x4e, 0x28, 0xd7, 0x4e, 0x59, 0x15,
  3321. 0xe8, 0xed, 0x24, 0xd6, 0xd6, 0x53, 0x74, 0xba, 0x8f, 0xad, 0x0c, 0x80, 0x0c, 0x68, 0xf8, 0x81,
  3322. 0xd7, 0x0b, 0x78, 0x80, 0xa1, 0xea, 0x3a, 0x3f, 0xc1, 0xd6, 0x05, 0x08, 0x7d, 0x09, 0x2b, 0x63,
  3323. 0x46, 0x7f, 0x7a, 0x6d, 0x47, 0xca, 0x9a, 0xb8, 0xf1, 0xc7, 0x49, 0xac, 0xe1, 0x14, 0x9f, 0x1d,
  3324. 0x5c, 0x1e, 0xd4, 0x3a, 0x3f, 0x7d, 0x16, 0xe1, 0x1f, 0x0b, 0xd9, 0xc2, 0x68, 0xc8, 0x73, 0xe3,
  3325. 0x14, 0x56, 0xfb, 0xf9, 0x5a, 0x91, 0x9a, 0xb5, 0xd6, 0xda, 0xe3, 0x7d, 0x7d, 0x5e, 0x3e, 0xeb,
  3326. 0xa5, 0xdc, 0xb2, 0xa6, 0xd6, 0x78, 0x07, 0xb6, 0xcb, 0xde, 0x79, 0x36, 0xfe, 0x2e, 0xc3, 0xe6,
  3327. 0x0b, 0xea, 0x94, 0x38, 0x8f, 0x8b, 0xf9, 0xd8, 0x4a, 0x62, 0xed, 0xc3, 0xb9, 0xf9, 0xd8, 0x76,
  3328. 0xd9, 0xf0, 0xe4, 0x28, 0xcb, 0xca, 0x1e, 0xac, 0x04, 0xb4, 0xeb, 0x05, 0x84, 0x27, 0x25, 0xbf,
  3329. 0xed, 0x93, 0xf9, 0xb7, 0xad, 0x70, 0xeb, 0x96, 0x30, 0x36, 0xef, 0x27, 0xb1, 0xb6, 0x73, 0x59,
  3330. 0xa8, 0x72, 0xef, 0xea, 0x2f, 0x12, 0xd4, 0x53, 0x70, 0xa9, 0x12, 0xa4, 0xdb, 0x56, 0xc2, 0xe7,
  3331. 0x20, 0x33, 0x22, 0x0a, 0xa9, 0x66, 0x3e, 0x3a, 0x8f, 0x35, 0xf9, 0xf4, 0x45, 0x12, 0x6b, 0x1f,
  3332. 0xa4, 0x4e, 0xae, 0xaa, 0x06, 0x99, 0x11, 0x1e, 0xd6, 0xf2, 0x23, 0x78, 0x58, 0x7f, 0x95, 0x60,
  3333. 0xf3, 0xb9, 0x43, 0xed, 0xa0, 0x50, 0xe6, 0x4f, 0x01, 0x72, 0xb6, 0x4c, 0xcb, 0x55, 0xf3, 0xfd,
  3334. 0x24, 0xd6, 0xee, 0x97, 0x2f, 0x4a, 0xc3, 0x76, 0xe8, 0x3b, 0x2c, 0xc2, 0x56, 0x01, 0x9e, 0x6b,
  3335. 0x22, 0xdf, 0x42, 0x13, 0x7e, 0xc3, 0xf2, 0x5d, 0xf8, 0x0d, 0xff, 0x95, 0x61, 0xeb, 0x55, 0x48,
  3336. 0x83, 0x3b, 0x53, 0xbe, 0xfc, 0x3c, 0x79, 0xb1, 0xe7, 0x19, 0x05, 0x09, 0x6b, 0x42, 0xc2, 0x42,
  3337. 0xad, 0x5d, 0x48, 0x58, 0x90, 0xab, 0x99, 0x36, 0xae, 0x99, 0x16, 0x34, 0x60, 0x79, 0x93, 0x2a,
  3338. 0x54, 0xe3, 0xf2, 0x6d, 0xaa, 0x11, 0x7d, 0x05, 0xf2, 0xcb, 0x30, 0xeb, 0x4f, 0x87, 0x49, 0xac,
  3339. 0xb5, 0xb3, 0xca, 0x0f, 0xaf, 0x0e, 0x45, 0xdb, 0xb5, 0x7f, 0x3e, 0x39, 0x3a, 0x3c, 0x3c, 0xc4,
  3340. 0x96, 0xfc, 0x32, 0xc4, 0xdf, 0x01, 0xaa, 0x84, 0xd8, 0x77, 0x26, 0xe8, 0xb3, 0xd9, 0x92, 0x6e,
  3341. 0xe8, 0x99, 0x36, 0xe6, 0xfa, 0xdb, 0x58, 0x9b, 0x1e, 0x17, 0xcb, 0xf7, 0x2f, 0x09, 0xee, 0xdd,
  3342. 0x99, 0x58, 0x77, 0x32, 0x3c, 0x4e, 0x60, 0x69, 0xc0, 0x08, 0x17, 0xac, 0xd6, 0xaa, 0x99, 0x7b,
  3343. 0x49, 0xac, 0x7d, 0x74, 0x21, 0x42, 0xae, 0xf2, 0xa5, 0x2e, 0x84, 0x19, 0xfe, 0x43, 0x82, 0x8d,
  3344. 0x4a, 0x68, 0xfa, 0xb3, 0xa1, 0x79, 0x3a, 0xbf, 0x7f, 0x94, 0x1d, 0x4c, 0x97, 0x5f, 0x0f, 0xa3,
  3345. 0x79, 0xd1, 0x54, 0xbf, 0x29, 0x70, 0x0b, 0x2c, 0xda, 0x82, 0xda, 0x80, 0x4e, 0xd2, 0x70, 0x5a,
  3346. 0xfc, 0x13, 0xed, 0xc2, 0xf2, 0xd8, 0x76, 0x46, 0x54, 0x44, 0xa8, 0x20, 0x92, 0x95, 0x6e, 0x1f,
  3347. 0xcb, 0x5f, 0x48, 0xf8, 0x14, 0xd6, 0x52, 0x89, 0x09, 0x7d, 0x47, 0x4d, 0xf0, 0x01, 0xac, 0x4f,
  3348. 0x5d, 0xf1, 0x68, 0x3c, 0x80, 0xa5, 0x3e, 0x23, 0x54, 0x78, 0x6b, 0x98, 0x8d, 0xb7, 0xb1, 0x26,
  3349. 0xd6, 0x96, 0xf8, 0xc5, 0x11, 0x6c, 0xbf, 0xf2, 0xb9, 0xbb, 0x3b, 0xe2, 0xe7, 0x13, 0x59, 0xd0,
  3350. 0xc9, 0x82, 0xae, 0x30, 0x91, 0x05, 0x5d, 0xc6, 0xfa, 0x1e, 0xec, 0x54, 0x59, 0x7d, 0x67, 0xf2,
  3351. 0xf8, 0xbf, 0x3a, 0xac, 0x64, 0xd1, 0x41, 0x7d, 0x80, 0xe9, 0x0c, 0x42, 0x8b, 0x4c, 0x2b, 0xf5,
  3352. 0xe0, 0xe6, 0x60, 0x1e, 0xa0, 0x21, 0xdc, 0x2b, 0x4e, 0x34, 0x74, 0x53, 0xf3, 0xb4, 0x80, 0x54,
  3353. 0x63, 0x11, 0x78, 0xc6, 0x57, 0x6c, 0xf5, 0xd7, 0xf1, 0x55, 0x66, 0xdb, 0x75, 0x7c, 0x33, 0x53,
  3354. 0x84, 0xf3, 0x15, 0x1b, 0xf7, 0x75, 0x7c, 0x95, 0x81, 0x73, 0x1d, 0xdf, 0xcc, 0x4c, 0x40, 0x67,
  3355. 0x79, 0x06, 0xe6, 0x0f, 0xd4, 0xe7, 0x7b, 0xa8, 0xce, 0x0f, 0xf5, 0x70, 0x21, 0x3c, 0xa7, 0xa4,
  3356. 0xb0, 0x3a, 0xa5, 0xfb, 0xe4, 0xc6, 0xb5, 0x7e, 0xa6, 0xb6, 0x17, 0xe9, 0x0b, 0xa8, 0x03, 0x8d,
  3357. 0x3c, 0x61, 0xd1, 0xde, 0x4d, 0x2e, 0x29, 0xca, 0x49, 0xdd, 0xbf, 0x29, 0x94, 0x73, 0x44, 0xb0,
  3358. 0x51, 0x2e, 0x0d, 0x74, 0x8d, 0x00, 0x33, 0xe5, 0xab, 0x1e, 0x2d, 0x66, 0xe0, 0x3b, 0x13, 0x73,
  3359. 0xeb, 0xcf, 0xf3, 0x5d, 0xe9, 0xef, 0xf3, 0x5d, 0xe9, 0x9f, 0xf3, 0x5d, 0xe9, 0x07, 0x79, 0x7c,
  3360. 0xd4, 0xa9, 0x8b, 0xbf, 0x1e, 0x9f, 0xfe, 0x1f, 0x00, 0x00, 0xff, 0xff, 0x68, 0x92, 0x81, 0xd6,
  3361. 0x24, 0x0d, 0x00, 0x00,
  3362. }