api.pb.go 97 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: api.proto
  3. /*
  4. Package v1 is a generated protocol buffer package.
  5. It is generated from these files:
  6. api.proto
  7. It has these top-level messages:
  8. AddHistoryReply
  9. AddHistoryReq
  10. ClearHistoryReply
  11. ClearHistoryReq
  12. DeleteReply
  13. DeleteReq
  14. FlushHistoryReply
  15. FlushHistoryReq
  16. HistoriesReply
  17. HistoriesReq
  18. HistoryCursorReply
  19. HistoryCursorReq
  20. ModelHistory
  21. ModelResource
  22. PositionReply
  23. PositionReq
  24. ProgressReply
  25. ProgressReq
  26. */
  27. package v1
  28. import proto "github.com/golang/protobuf/proto"
  29. import fmt "fmt"
  30. import math "math"
  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.ProtoPackageIsVersion2 // please upgrade the proto package
  43. type AddHistoryReply struct {
  44. }
  45. func (m *AddHistoryReply) Reset() { *m = AddHistoryReply{} }
  46. func (m *AddHistoryReply) String() string { return proto.CompactTextString(m) }
  47. func (*AddHistoryReply) ProtoMessage() {}
  48. func (*AddHistoryReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{0} }
  49. type AddHistoryReq struct {
  50. Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"`
  51. Rtime int64 `protobuf:"varint,3,opt,name=rtime,proto3" json:"rtime,omitempty"`
  52. H *ModelHistory `protobuf:"bytes,4,opt,name=h" json:"h,omitempty"`
  53. }
  54. func (m *AddHistoryReq) Reset() { *m = AddHistoryReq{} }
  55. func (m *AddHistoryReq) String() string { return proto.CompactTextString(m) }
  56. func (*AddHistoryReq) ProtoMessage() {}
  57. func (*AddHistoryReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{1} }
  58. func (m *AddHistoryReq) GetMid() int64 {
  59. if m != nil {
  60. return m.Mid
  61. }
  62. return 0
  63. }
  64. func (m *AddHistoryReq) GetRtime() int64 {
  65. if m != nil {
  66. return m.Rtime
  67. }
  68. return 0
  69. }
  70. func (m *AddHistoryReq) GetH() *ModelHistory {
  71. if m != nil {
  72. return m.H
  73. }
  74. return nil
  75. }
  76. type ClearHistoryReply struct {
  77. }
  78. func (m *ClearHistoryReply) Reset() { *m = ClearHistoryReply{} }
  79. func (m *ClearHistoryReply) String() string { return proto.CompactTextString(m) }
  80. func (*ClearHistoryReply) ProtoMessage() {}
  81. func (*ClearHistoryReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{2} }
  82. type ClearHistoryReq struct {
  83. Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"`
  84. Businesses []string `protobuf:"bytes,3,rep,name=businesses" json:"businesses,omitempty"`
  85. }
  86. func (m *ClearHistoryReq) Reset() { *m = ClearHistoryReq{} }
  87. func (m *ClearHistoryReq) String() string { return proto.CompactTextString(m) }
  88. func (*ClearHistoryReq) ProtoMessage() {}
  89. func (*ClearHistoryReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{3} }
  90. func (m *ClearHistoryReq) GetMid() int64 {
  91. if m != nil {
  92. return m.Mid
  93. }
  94. return 0
  95. }
  96. func (m *ClearHistoryReq) GetBusinesses() []string {
  97. if m != nil {
  98. return m.Businesses
  99. }
  100. return nil
  101. }
  102. type DeleteReply struct {
  103. }
  104. func (m *DeleteReply) Reset() { *m = DeleteReply{} }
  105. func (m *DeleteReply) String() string { return proto.CompactTextString(m) }
  106. func (*DeleteReply) ProtoMessage() {}
  107. func (*DeleteReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{4} }
  108. type DeleteReq struct {
  109. Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"`
  110. His []*ModelHistory `protobuf:"bytes,3,rep,name=his" json:"his,omitempty"`
  111. }
  112. func (m *DeleteReq) Reset() { *m = DeleteReq{} }
  113. func (m *DeleteReq) String() string { return proto.CompactTextString(m) }
  114. func (*DeleteReq) ProtoMessage() {}
  115. func (*DeleteReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{5} }
  116. func (m *DeleteReq) GetMid() int64 {
  117. if m != nil {
  118. return m.Mid
  119. }
  120. return 0
  121. }
  122. func (m *DeleteReq) GetHis() []*ModelHistory {
  123. if m != nil {
  124. return m.His
  125. }
  126. return nil
  127. }
  128. type FlushHistoryReply struct {
  129. }
  130. func (m *FlushHistoryReply) Reset() { *m = FlushHistoryReply{} }
  131. func (m *FlushHistoryReply) String() string { return proto.CompactTextString(m) }
  132. func (*FlushHistoryReply) ProtoMessage() {}
  133. func (*FlushHistoryReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{6} }
  134. type FlushHistoryReq struct {
  135. Mids []int64 `protobuf:"varint,2,rep,packed,name=mids" json:"mids,omitempty"`
  136. Stime int64 `protobuf:"varint,3,opt,name=stime,proto3" json:"stime,omitempty"`
  137. }
  138. func (m *FlushHistoryReq) Reset() { *m = FlushHistoryReq{} }
  139. func (m *FlushHistoryReq) String() string { return proto.CompactTextString(m) }
  140. func (*FlushHistoryReq) ProtoMessage() {}
  141. func (*FlushHistoryReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{7} }
  142. func (m *FlushHistoryReq) GetMids() []int64 {
  143. if m != nil {
  144. return m.Mids
  145. }
  146. return nil
  147. }
  148. func (m *FlushHistoryReq) GetStime() int64 {
  149. if m != nil {
  150. return m.Stime
  151. }
  152. return 0
  153. }
  154. type HistoriesReply struct {
  155. Res []*ModelResource `protobuf:"bytes,1,rep,name=res" json:"res,omitempty"`
  156. }
  157. func (m *HistoriesReply) Reset() { *m = HistoriesReply{} }
  158. func (m *HistoriesReply) String() string { return proto.CompactTextString(m) }
  159. func (*HistoriesReply) ProtoMessage() {}
  160. func (*HistoriesReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{8} }
  161. func (m *HistoriesReply) GetRes() []*ModelResource {
  162. if m != nil {
  163. return m.Res
  164. }
  165. return nil
  166. }
  167. type HistoriesReq struct {
  168. Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"`
  169. Business string `protobuf:"bytes,3,opt,name=business,proto3" json:"business,omitempty"`
  170. Pn int32 `protobuf:"varint,4,opt,name=pn,proto3" json:"pn,omitempty"`
  171. Ps int32 `protobuf:"varint,5,opt,name=ps,proto3" json:"ps,omitempty"`
  172. }
  173. func (m *HistoriesReq) Reset() { *m = HistoriesReq{} }
  174. func (m *HistoriesReq) String() string { return proto.CompactTextString(m) }
  175. func (*HistoriesReq) ProtoMessage() {}
  176. func (*HistoriesReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{9} }
  177. func (m *HistoriesReq) GetMid() int64 {
  178. if m != nil {
  179. return m.Mid
  180. }
  181. return 0
  182. }
  183. func (m *HistoriesReq) GetBusiness() string {
  184. if m != nil {
  185. return m.Business
  186. }
  187. return ""
  188. }
  189. func (m *HistoriesReq) GetPn() int32 {
  190. if m != nil {
  191. return m.Pn
  192. }
  193. return 0
  194. }
  195. func (m *HistoriesReq) GetPs() int32 {
  196. if m != nil {
  197. return m.Ps
  198. }
  199. return 0
  200. }
  201. type HistoryCursorReply struct {
  202. Res []*ModelResource `protobuf:"bytes,1,rep,name=res" json:"res,omitempty"`
  203. }
  204. func (m *HistoryCursorReply) Reset() { *m = HistoryCursorReply{} }
  205. func (m *HistoryCursorReply) String() string { return proto.CompactTextString(m) }
  206. func (*HistoryCursorReply) ProtoMessage() {}
  207. func (*HistoryCursorReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{10} }
  208. func (m *HistoryCursorReply) GetRes() []*ModelResource {
  209. if m != nil {
  210. return m.Res
  211. }
  212. return nil
  213. }
  214. type HistoryCursorReq struct {
  215. Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"`
  216. Max int64 `protobuf:"varint,3,opt,name=max,proto3" json:"max,omitempty"`
  217. ViewAt int64 `protobuf:"varint,4,opt,name=view_at,json=viewAt,proto3" json:"view_at,omitempty"`
  218. Ps int32 `protobuf:"varint,5,opt,name=ps,proto3" json:"ps,omitempty"`
  219. Business string `protobuf:"bytes,6,opt,name=business,proto3" json:"business,omitempty"`
  220. Businesses []string `protobuf:"bytes,7,rep,name=businesses" json:"businesses,omitempty"`
  221. Ip string `protobuf:"bytes,8,opt,name=ip,proto3" json:"ip,omitempty"`
  222. }
  223. func (m *HistoryCursorReq) Reset() { *m = HistoryCursorReq{} }
  224. func (m *HistoryCursorReq) String() string { return proto.CompactTextString(m) }
  225. func (*HistoryCursorReq) ProtoMessage() {}
  226. func (*HistoryCursorReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{11} }
  227. func (m *HistoryCursorReq) GetMid() int64 {
  228. if m != nil {
  229. return m.Mid
  230. }
  231. return 0
  232. }
  233. func (m *HistoryCursorReq) GetMax() int64 {
  234. if m != nil {
  235. return m.Max
  236. }
  237. return 0
  238. }
  239. func (m *HistoryCursorReq) GetViewAt() int64 {
  240. if m != nil {
  241. return m.ViewAt
  242. }
  243. return 0
  244. }
  245. func (m *HistoryCursorReq) GetPs() int32 {
  246. if m != nil {
  247. return m.Ps
  248. }
  249. return 0
  250. }
  251. func (m *HistoryCursorReq) GetBusiness() string {
  252. if m != nil {
  253. return m.Business
  254. }
  255. return ""
  256. }
  257. func (m *HistoryCursorReq) GetBusinesses() []string {
  258. if m != nil {
  259. return m.Businesses
  260. }
  261. return nil
  262. }
  263. func (m *HistoryCursorReq) GetIp() string {
  264. if m != nil {
  265. return m.Ip
  266. }
  267. return ""
  268. }
  269. type ModelHistory struct {
  270. Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"`
  271. Aid int64 `protobuf:"varint,2,opt,name=aid,proto3" json:"aid,omitempty"`
  272. Sid int64 `protobuf:"varint,3,opt,name=sid,proto3" json:"sid,omitempty"`
  273. Epid int64 `protobuf:"varint,4,opt,name=epid,proto3" json:"epid,omitempty"`
  274. Tp int32 `protobuf:"varint,5,opt,name=tp,proto3" json:"tp,omitempty"`
  275. Business string `protobuf:"bytes,6,opt,name=business,proto3" json:"business,omitempty"`
  276. Stp int32 `protobuf:"varint,7,opt,name=stp,proto3" json:"stp,omitempty"`
  277. Cid int64 `protobuf:"varint,8,opt,name=cid,proto3" json:"cid,omitempty"`
  278. Dt int32 `protobuf:"varint,9,opt,name=dt,proto3" json:"dt,omitempty"`
  279. Pro int64 `protobuf:"varint,10,opt,name=pro,proto3" json:"pro,omitempty"`
  280. Unix int64 `protobuf:"varint,11,opt,name=unix,proto3" json:"unix,omitempty"`
  281. }
  282. func (m *ModelHistory) Reset() { *m = ModelHistory{} }
  283. func (m *ModelHistory) String() string { return proto.CompactTextString(m) }
  284. func (*ModelHistory) ProtoMessage() {}
  285. func (*ModelHistory) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{12} }
  286. func (m *ModelHistory) GetMid() int64 {
  287. if m != nil {
  288. return m.Mid
  289. }
  290. return 0
  291. }
  292. func (m *ModelHistory) GetAid() int64 {
  293. if m != nil {
  294. return m.Aid
  295. }
  296. return 0
  297. }
  298. func (m *ModelHistory) GetSid() int64 {
  299. if m != nil {
  300. return m.Sid
  301. }
  302. return 0
  303. }
  304. func (m *ModelHistory) GetEpid() int64 {
  305. if m != nil {
  306. return m.Epid
  307. }
  308. return 0
  309. }
  310. func (m *ModelHistory) GetTp() int32 {
  311. if m != nil {
  312. return m.Tp
  313. }
  314. return 0
  315. }
  316. func (m *ModelHistory) GetBusiness() string {
  317. if m != nil {
  318. return m.Business
  319. }
  320. return ""
  321. }
  322. func (m *ModelHistory) GetStp() int32 {
  323. if m != nil {
  324. return m.Stp
  325. }
  326. return 0
  327. }
  328. func (m *ModelHistory) GetCid() int64 {
  329. if m != nil {
  330. return m.Cid
  331. }
  332. return 0
  333. }
  334. func (m *ModelHistory) GetDt() int32 {
  335. if m != nil {
  336. return m.Dt
  337. }
  338. return 0
  339. }
  340. func (m *ModelHistory) GetPro() int64 {
  341. if m != nil {
  342. return m.Pro
  343. }
  344. return 0
  345. }
  346. func (m *ModelHistory) GetUnix() int64 {
  347. if m != nil {
  348. return m.Unix
  349. }
  350. return 0
  351. }
  352. type ModelResource struct {
  353. Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"`
  354. Oid int64 `protobuf:"varint,2,opt,name=oid,proto3" json:"oid,omitempty"`
  355. Sid int64 `protobuf:"varint,3,opt,name=sid,proto3" json:"sid,omitempty"`
  356. Epid int64 `protobuf:"varint,4,opt,name=epid,proto3" json:"epid,omitempty"`
  357. Tp int32 `protobuf:"varint,5,opt,name=tp,proto3" json:"tp,omitempty"`
  358. Stp int32 `protobuf:"varint,6,opt,name=stp,proto3" json:"stp,omitempty"`
  359. Cid int64 `protobuf:"varint,7,opt,name=cid,proto3" json:"cid,omitempty"`
  360. Business string `protobuf:"bytes,8,opt,name=business,proto3" json:"business,omitempty"`
  361. Dt int32 `protobuf:"varint,9,opt,name=dt,proto3" json:"dt,omitempty"`
  362. Pro int64 `protobuf:"varint,10,opt,name=pro,proto3" json:"pro,omitempty"`
  363. Unix int64 `protobuf:"varint,11,opt,name=unix,proto3" json:"unix,omitempty"`
  364. }
  365. func (m *ModelResource) Reset() { *m = ModelResource{} }
  366. func (m *ModelResource) String() string { return proto.CompactTextString(m) }
  367. func (*ModelResource) ProtoMessage() {}
  368. func (*ModelResource) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{13} }
  369. func (m *ModelResource) GetMid() int64 {
  370. if m != nil {
  371. return m.Mid
  372. }
  373. return 0
  374. }
  375. func (m *ModelResource) GetOid() int64 {
  376. if m != nil {
  377. return m.Oid
  378. }
  379. return 0
  380. }
  381. func (m *ModelResource) GetSid() int64 {
  382. if m != nil {
  383. return m.Sid
  384. }
  385. return 0
  386. }
  387. func (m *ModelResource) GetEpid() int64 {
  388. if m != nil {
  389. return m.Epid
  390. }
  391. return 0
  392. }
  393. func (m *ModelResource) GetTp() int32 {
  394. if m != nil {
  395. return m.Tp
  396. }
  397. return 0
  398. }
  399. func (m *ModelResource) GetStp() int32 {
  400. if m != nil {
  401. return m.Stp
  402. }
  403. return 0
  404. }
  405. func (m *ModelResource) GetCid() int64 {
  406. if m != nil {
  407. return m.Cid
  408. }
  409. return 0
  410. }
  411. func (m *ModelResource) GetBusiness() string {
  412. if m != nil {
  413. return m.Business
  414. }
  415. return ""
  416. }
  417. func (m *ModelResource) GetDt() int32 {
  418. if m != nil {
  419. return m.Dt
  420. }
  421. return 0
  422. }
  423. func (m *ModelResource) GetPro() int64 {
  424. if m != nil {
  425. return m.Pro
  426. }
  427. return 0
  428. }
  429. func (m *ModelResource) GetUnix() int64 {
  430. if m != nil {
  431. return m.Unix
  432. }
  433. return 0
  434. }
  435. type PositionReply struct {
  436. Res *ModelHistory `protobuf:"bytes,1,opt,name=res" json:"res,omitempty"`
  437. }
  438. func (m *PositionReply) Reset() { *m = PositionReply{} }
  439. func (m *PositionReply) String() string { return proto.CompactTextString(m) }
  440. func (*PositionReply) ProtoMessage() {}
  441. func (*PositionReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{14} }
  442. func (m *PositionReply) GetRes() *ModelHistory {
  443. if m != nil {
  444. return m.Res
  445. }
  446. return nil
  447. }
  448. type PositionReq struct {
  449. Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"`
  450. Aid int64 `protobuf:"varint,3,opt,name=aid,proto3" json:"aid,omitempty"`
  451. Business string `protobuf:"bytes,4,opt,name=business,proto3" json:"business,omitempty"`
  452. }
  453. func (m *PositionReq) Reset() { *m = PositionReq{} }
  454. func (m *PositionReq) String() string { return proto.CompactTextString(m) }
  455. func (*PositionReq) ProtoMessage() {}
  456. func (*PositionReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{15} }
  457. func (m *PositionReq) GetMid() int64 {
  458. if m != nil {
  459. return m.Mid
  460. }
  461. return 0
  462. }
  463. func (m *PositionReq) GetAid() int64 {
  464. if m != nil {
  465. return m.Aid
  466. }
  467. return 0
  468. }
  469. func (m *PositionReq) GetBusiness() string {
  470. if m != nil {
  471. return m.Business
  472. }
  473. return ""
  474. }
  475. type ProgressReply struct {
  476. Res map[int64]*ModelHistory `protobuf:"bytes,1,rep,name=res" json:"res,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
  477. }
  478. func (m *ProgressReply) Reset() { *m = ProgressReply{} }
  479. func (m *ProgressReply) String() string { return proto.CompactTextString(m) }
  480. func (*ProgressReply) ProtoMessage() {}
  481. func (*ProgressReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{16} }
  482. func (m *ProgressReply) GetRes() map[int64]*ModelHistory {
  483. if m != nil {
  484. return m.Res
  485. }
  486. return nil
  487. }
  488. type ProgressReq struct {
  489. Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"`
  490. Aids []int64 `protobuf:"varint,3,rep,packed,name=aids" json:"aids,omitempty"`
  491. }
  492. func (m *ProgressReq) Reset() { *m = ProgressReq{} }
  493. func (m *ProgressReq) String() string { return proto.CompactTextString(m) }
  494. func (*ProgressReq) ProtoMessage() {}
  495. func (*ProgressReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{17} }
  496. func (m *ProgressReq) GetMid() int64 {
  497. if m != nil {
  498. return m.Mid
  499. }
  500. return 0
  501. }
  502. func (m *ProgressReq) GetAids() []int64 {
  503. if m != nil {
  504. return m.Aids
  505. }
  506. return nil
  507. }
  508. func init() {
  509. proto.RegisterType((*AddHistoryReply)(nil), "community.service.history.AddHistoryReply")
  510. proto.RegisterType((*AddHistoryReq)(nil), "community.service.history.AddHistoryReq")
  511. proto.RegisterType((*ClearHistoryReply)(nil), "community.service.history.ClearHistoryReply")
  512. proto.RegisterType((*ClearHistoryReq)(nil), "community.service.history.ClearHistoryReq")
  513. proto.RegisterType((*DeleteReply)(nil), "community.service.history.DeleteReply")
  514. proto.RegisterType((*DeleteReq)(nil), "community.service.history.DeleteReq")
  515. proto.RegisterType((*FlushHistoryReply)(nil), "community.service.history.FlushHistoryReply")
  516. proto.RegisterType((*FlushHistoryReq)(nil), "community.service.history.FlushHistoryReq")
  517. proto.RegisterType((*HistoriesReply)(nil), "community.service.history.HistoriesReply")
  518. proto.RegisterType((*HistoriesReq)(nil), "community.service.history.HistoriesReq")
  519. proto.RegisterType((*HistoryCursorReply)(nil), "community.service.history.HistoryCursorReply")
  520. proto.RegisterType((*HistoryCursorReq)(nil), "community.service.history.HistoryCursorReq")
  521. proto.RegisterType((*ModelHistory)(nil), "community.service.history.ModelHistory")
  522. proto.RegisterType((*ModelResource)(nil), "community.service.history.ModelResource")
  523. proto.RegisterType((*PositionReply)(nil), "community.service.history.PositionReply")
  524. proto.RegisterType((*PositionReq)(nil), "community.service.history.PositionReq")
  525. proto.RegisterType((*ProgressReply)(nil), "community.service.history.ProgressReply")
  526. proto.RegisterType((*ProgressReq)(nil), "community.service.history.ProgressReq")
  527. }
  528. // Reference imports to suppress errors if they are not otherwise used.
  529. var _ context.Context
  530. var _ grpc.ClientConn
  531. // This is a compile-time assertion to ensure that this generated file
  532. // is compatible with the grpc package it is being compiled against.
  533. const _ = grpc.SupportPackageIsVersion4
  534. // Client API for History service
  535. type HistoryClient interface {
  536. // AddHistory add hisotry progress into hbase.
  537. AddHistory(ctx context.Context, in *AddHistoryReq, opts ...grpc.CallOption) (*AddHistoryReply, error)
  538. // Progress get view progress from cache/hbase.
  539. Progress(ctx context.Context, in *ProgressReq, opts ...grpc.CallOption) (*ProgressReply, error)
  540. // Position get view progress from cache/hbase.
  541. Position(ctx context.Context, in *PositionReq, opts ...grpc.CallOption) (*PositionReply, error)
  542. // ClearHistory clear user's historys.
  543. ClearHistory(ctx context.Context, in *ClearHistoryReq, opts ...grpc.CallOption) (*ClearHistoryReply, error)
  544. // Histories return the user all av history.
  545. Histories(ctx context.Context, in *HistoriesReq, opts ...grpc.CallOption) (*HistoriesReply, error)
  546. // HistoryCursor return the user all av history.
  547. HistoryCursor(ctx context.Context, in *HistoryCursorReq, opts ...grpc.CallOption) (*HistoryCursorReply, error)
  548. // Delete .
  549. Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*DeleteReply, error)
  550. // FlushHistory flush to hbase from cache.
  551. FlushHistory(ctx context.Context, in *FlushHistoryReq, opts ...grpc.CallOption) (*FlushHistoryReply, error)
  552. }
  553. type historyClient struct {
  554. cc *grpc.ClientConn
  555. }
  556. func NewHistoryClient(cc *grpc.ClientConn) HistoryClient {
  557. return &historyClient{cc}
  558. }
  559. func (c *historyClient) AddHistory(ctx context.Context, in *AddHistoryReq, opts ...grpc.CallOption) (*AddHistoryReply, error) {
  560. out := new(AddHistoryReply)
  561. err := grpc.Invoke(ctx, "/community.service.history.History/AddHistory", in, out, c.cc, opts...)
  562. if err != nil {
  563. return nil, err
  564. }
  565. return out, nil
  566. }
  567. func (c *historyClient) Progress(ctx context.Context, in *ProgressReq, opts ...grpc.CallOption) (*ProgressReply, error) {
  568. out := new(ProgressReply)
  569. err := grpc.Invoke(ctx, "/community.service.history.History/Progress", in, out, c.cc, opts...)
  570. if err != nil {
  571. return nil, err
  572. }
  573. return out, nil
  574. }
  575. func (c *historyClient) Position(ctx context.Context, in *PositionReq, opts ...grpc.CallOption) (*PositionReply, error) {
  576. out := new(PositionReply)
  577. err := grpc.Invoke(ctx, "/community.service.history.History/Position", in, out, c.cc, opts...)
  578. if err != nil {
  579. return nil, err
  580. }
  581. return out, nil
  582. }
  583. func (c *historyClient) ClearHistory(ctx context.Context, in *ClearHistoryReq, opts ...grpc.CallOption) (*ClearHistoryReply, error) {
  584. out := new(ClearHistoryReply)
  585. err := grpc.Invoke(ctx, "/community.service.history.History/ClearHistory", in, out, c.cc, opts...)
  586. if err != nil {
  587. return nil, err
  588. }
  589. return out, nil
  590. }
  591. func (c *historyClient) Histories(ctx context.Context, in *HistoriesReq, opts ...grpc.CallOption) (*HistoriesReply, error) {
  592. out := new(HistoriesReply)
  593. err := grpc.Invoke(ctx, "/community.service.history.History/Histories", in, out, c.cc, opts...)
  594. if err != nil {
  595. return nil, err
  596. }
  597. return out, nil
  598. }
  599. func (c *historyClient) HistoryCursor(ctx context.Context, in *HistoryCursorReq, opts ...grpc.CallOption) (*HistoryCursorReply, error) {
  600. out := new(HistoryCursorReply)
  601. err := grpc.Invoke(ctx, "/community.service.history.History/HistoryCursor", in, out, c.cc, opts...)
  602. if err != nil {
  603. return nil, err
  604. }
  605. return out, nil
  606. }
  607. func (c *historyClient) Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*DeleteReply, error) {
  608. out := new(DeleteReply)
  609. err := grpc.Invoke(ctx, "/community.service.history.History/Delete", in, out, c.cc, opts...)
  610. if err != nil {
  611. return nil, err
  612. }
  613. return out, nil
  614. }
  615. func (c *historyClient) FlushHistory(ctx context.Context, in *FlushHistoryReq, opts ...grpc.CallOption) (*FlushHistoryReply, error) {
  616. out := new(FlushHistoryReply)
  617. err := grpc.Invoke(ctx, "/community.service.history.History/FlushHistory", in, out, c.cc, opts...)
  618. if err != nil {
  619. return nil, err
  620. }
  621. return out, nil
  622. }
  623. // Server API for History service
  624. type HistoryServer interface {
  625. // AddHistory add hisotry progress into hbase.
  626. AddHistory(context.Context, *AddHistoryReq) (*AddHistoryReply, error)
  627. // Progress get view progress from cache/hbase.
  628. Progress(context.Context, *ProgressReq) (*ProgressReply, error)
  629. // Position get view progress from cache/hbase.
  630. Position(context.Context, *PositionReq) (*PositionReply, error)
  631. // ClearHistory clear user's historys.
  632. ClearHistory(context.Context, *ClearHistoryReq) (*ClearHistoryReply, error)
  633. // Histories return the user all av history.
  634. Histories(context.Context, *HistoriesReq) (*HistoriesReply, error)
  635. // HistoryCursor return the user all av history.
  636. HistoryCursor(context.Context, *HistoryCursorReq) (*HistoryCursorReply, error)
  637. // Delete .
  638. Delete(context.Context, *DeleteReq) (*DeleteReply, error)
  639. // FlushHistory flush to hbase from cache.
  640. FlushHistory(context.Context, *FlushHistoryReq) (*FlushHistoryReply, error)
  641. }
  642. func RegisterHistoryServer(s *grpc.Server, srv HistoryServer) {
  643. s.RegisterService(&_History_serviceDesc, srv)
  644. }
  645. func _History_AddHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  646. in := new(AddHistoryReq)
  647. if err := dec(in); err != nil {
  648. return nil, err
  649. }
  650. if interceptor == nil {
  651. return srv.(HistoryServer).AddHistory(ctx, in)
  652. }
  653. info := &grpc.UnaryServerInfo{
  654. Server: srv,
  655. FullMethod: "/community.service.history.History/AddHistory",
  656. }
  657. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  658. return srv.(HistoryServer).AddHistory(ctx, req.(*AddHistoryReq))
  659. }
  660. return interceptor(ctx, in, info, handler)
  661. }
  662. func _History_Progress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  663. in := new(ProgressReq)
  664. if err := dec(in); err != nil {
  665. return nil, err
  666. }
  667. if interceptor == nil {
  668. return srv.(HistoryServer).Progress(ctx, in)
  669. }
  670. info := &grpc.UnaryServerInfo{
  671. Server: srv,
  672. FullMethod: "/community.service.history.History/Progress",
  673. }
  674. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  675. return srv.(HistoryServer).Progress(ctx, req.(*ProgressReq))
  676. }
  677. return interceptor(ctx, in, info, handler)
  678. }
  679. func _History_Position_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  680. in := new(PositionReq)
  681. if err := dec(in); err != nil {
  682. return nil, err
  683. }
  684. if interceptor == nil {
  685. return srv.(HistoryServer).Position(ctx, in)
  686. }
  687. info := &grpc.UnaryServerInfo{
  688. Server: srv,
  689. FullMethod: "/community.service.history.History/Position",
  690. }
  691. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  692. return srv.(HistoryServer).Position(ctx, req.(*PositionReq))
  693. }
  694. return interceptor(ctx, in, info, handler)
  695. }
  696. func _History_ClearHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  697. in := new(ClearHistoryReq)
  698. if err := dec(in); err != nil {
  699. return nil, err
  700. }
  701. if interceptor == nil {
  702. return srv.(HistoryServer).ClearHistory(ctx, in)
  703. }
  704. info := &grpc.UnaryServerInfo{
  705. Server: srv,
  706. FullMethod: "/community.service.history.History/ClearHistory",
  707. }
  708. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  709. return srv.(HistoryServer).ClearHistory(ctx, req.(*ClearHistoryReq))
  710. }
  711. return interceptor(ctx, in, info, handler)
  712. }
  713. func _History_Histories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  714. in := new(HistoriesReq)
  715. if err := dec(in); err != nil {
  716. return nil, err
  717. }
  718. if interceptor == nil {
  719. return srv.(HistoryServer).Histories(ctx, in)
  720. }
  721. info := &grpc.UnaryServerInfo{
  722. Server: srv,
  723. FullMethod: "/community.service.history.History/Histories",
  724. }
  725. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  726. return srv.(HistoryServer).Histories(ctx, req.(*HistoriesReq))
  727. }
  728. return interceptor(ctx, in, info, handler)
  729. }
  730. func _History_HistoryCursor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  731. in := new(HistoryCursorReq)
  732. if err := dec(in); err != nil {
  733. return nil, err
  734. }
  735. if interceptor == nil {
  736. return srv.(HistoryServer).HistoryCursor(ctx, in)
  737. }
  738. info := &grpc.UnaryServerInfo{
  739. Server: srv,
  740. FullMethod: "/community.service.history.History/HistoryCursor",
  741. }
  742. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  743. return srv.(HistoryServer).HistoryCursor(ctx, req.(*HistoryCursorReq))
  744. }
  745. return interceptor(ctx, in, info, handler)
  746. }
  747. func _History_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  748. in := new(DeleteReq)
  749. if err := dec(in); err != nil {
  750. return nil, err
  751. }
  752. if interceptor == nil {
  753. return srv.(HistoryServer).Delete(ctx, in)
  754. }
  755. info := &grpc.UnaryServerInfo{
  756. Server: srv,
  757. FullMethod: "/community.service.history.History/Delete",
  758. }
  759. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  760. return srv.(HistoryServer).Delete(ctx, req.(*DeleteReq))
  761. }
  762. return interceptor(ctx, in, info, handler)
  763. }
  764. func _History_FlushHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  765. in := new(FlushHistoryReq)
  766. if err := dec(in); err != nil {
  767. return nil, err
  768. }
  769. if interceptor == nil {
  770. return srv.(HistoryServer).FlushHistory(ctx, in)
  771. }
  772. info := &grpc.UnaryServerInfo{
  773. Server: srv,
  774. FullMethod: "/community.service.history.History/FlushHistory",
  775. }
  776. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  777. return srv.(HistoryServer).FlushHistory(ctx, req.(*FlushHistoryReq))
  778. }
  779. return interceptor(ctx, in, info, handler)
  780. }
  781. var _History_serviceDesc = grpc.ServiceDesc{
  782. ServiceName: "community.service.history.History",
  783. HandlerType: (*HistoryServer)(nil),
  784. Methods: []grpc.MethodDesc{
  785. {
  786. MethodName: "AddHistory",
  787. Handler: _History_AddHistory_Handler,
  788. },
  789. {
  790. MethodName: "Progress",
  791. Handler: _History_Progress_Handler,
  792. },
  793. {
  794. MethodName: "Position",
  795. Handler: _History_Position_Handler,
  796. },
  797. {
  798. MethodName: "ClearHistory",
  799. Handler: _History_ClearHistory_Handler,
  800. },
  801. {
  802. MethodName: "Histories",
  803. Handler: _History_Histories_Handler,
  804. },
  805. {
  806. MethodName: "HistoryCursor",
  807. Handler: _History_HistoryCursor_Handler,
  808. },
  809. {
  810. MethodName: "Delete",
  811. Handler: _History_Delete_Handler,
  812. },
  813. {
  814. MethodName: "FlushHistory",
  815. Handler: _History_FlushHistory_Handler,
  816. },
  817. },
  818. Streams: []grpc.StreamDesc{},
  819. Metadata: "api.proto",
  820. }
  821. func (m *AddHistoryReply) Marshal() (dAtA []byte, err error) {
  822. size := m.Size()
  823. dAtA = make([]byte, size)
  824. n, err := m.MarshalTo(dAtA)
  825. if err != nil {
  826. return nil, err
  827. }
  828. return dAtA[:n], nil
  829. }
  830. func (m *AddHistoryReply) MarshalTo(dAtA []byte) (int, error) {
  831. var i int
  832. _ = i
  833. var l int
  834. _ = l
  835. return i, nil
  836. }
  837. func (m *AddHistoryReq) Marshal() (dAtA []byte, err error) {
  838. size := m.Size()
  839. dAtA = make([]byte, size)
  840. n, err := m.MarshalTo(dAtA)
  841. if err != nil {
  842. return nil, err
  843. }
  844. return dAtA[:n], nil
  845. }
  846. func (m *AddHistoryReq) MarshalTo(dAtA []byte) (int, error) {
  847. var i int
  848. _ = i
  849. var l int
  850. _ = l
  851. if m.Mid != 0 {
  852. dAtA[i] = 0x10
  853. i++
  854. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  855. }
  856. if m.Rtime != 0 {
  857. dAtA[i] = 0x18
  858. i++
  859. i = encodeVarintApi(dAtA, i, uint64(m.Rtime))
  860. }
  861. if m.H != nil {
  862. dAtA[i] = 0x22
  863. i++
  864. i = encodeVarintApi(dAtA, i, uint64(m.H.Size()))
  865. n1, err := m.H.MarshalTo(dAtA[i:])
  866. if err != nil {
  867. return 0, err
  868. }
  869. i += n1
  870. }
  871. return i, nil
  872. }
  873. func (m *ClearHistoryReply) Marshal() (dAtA []byte, err error) {
  874. size := m.Size()
  875. dAtA = make([]byte, size)
  876. n, err := m.MarshalTo(dAtA)
  877. if err != nil {
  878. return nil, err
  879. }
  880. return dAtA[:n], nil
  881. }
  882. func (m *ClearHistoryReply) MarshalTo(dAtA []byte) (int, error) {
  883. var i int
  884. _ = i
  885. var l int
  886. _ = l
  887. return i, nil
  888. }
  889. func (m *ClearHistoryReq) Marshal() (dAtA []byte, err error) {
  890. size := m.Size()
  891. dAtA = make([]byte, size)
  892. n, err := m.MarshalTo(dAtA)
  893. if err != nil {
  894. return nil, err
  895. }
  896. return dAtA[:n], nil
  897. }
  898. func (m *ClearHistoryReq) MarshalTo(dAtA []byte) (int, error) {
  899. var i int
  900. _ = i
  901. var l int
  902. _ = l
  903. if m.Mid != 0 {
  904. dAtA[i] = 0x10
  905. i++
  906. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  907. }
  908. if len(m.Businesses) > 0 {
  909. for _, s := range m.Businesses {
  910. dAtA[i] = 0x1a
  911. i++
  912. l = len(s)
  913. for l >= 1<<7 {
  914. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  915. l >>= 7
  916. i++
  917. }
  918. dAtA[i] = uint8(l)
  919. i++
  920. i += copy(dAtA[i:], s)
  921. }
  922. }
  923. return i, nil
  924. }
  925. func (m *DeleteReply) Marshal() (dAtA []byte, err error) {
  926. size := m.Size()
  927. dAtA = make([]byte, size)
  928. n, err := m.MarshalTo(dAtA)
  929. if err != nil {
  930. return nil, err
  931. }
  932. return dAtA[:n], nil
  933. }
  934. func (m *DeleteReply) MarshalTo(dAtA []byte) (int, error) {
  935. var i int
  936. _ = i
  937. var l int
  938. _ = l
  939. return i, nil
  940. }
  941. func (m *DeleteReq) Marshal() (dAtA []byte, err error) {
  942. size := m.Size()
  943. dAtA = make([]byte, size)
  944. n, err := m.MarshalTo(dAtA)
  945. if err != nil {
  946. return nil, err
  947. }
  948. return dAtA[:n], nil
  949. }
  950. func (m *DeleteReq) MarshalTo(dAtA []byte) (int, error) {
  951. var i int
  952. _ = i
  953. var l int
  954. _ = l
  955. if m.Mid != 0 {
  956. dAtA[i] = 0x10
  957. i++
  958. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  959. }
  960. if len(m.His) > 0 {
  961. for _, msg := range m.His {
  962. dAtA[i] = 0x1a
  963. i++
  964. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  965. n, err := msg.MarshalTo(dAtA[i:])
  966. if err != nil {
  967. return 0, err
  968. }
  969. i += n
  970. }
  971. }
  972. return i, nil
  973. }
  974. func (m *FlushHistoryReply) Marshal() (dAtA []byte, err error) {
  975. size := m.Size()
  976. dAtA = make([]byte, size)
  977. n, err := m.MarshalTo(dAtA)
  978. if err != nil {
  979. return nil, err
  980. }
  981. return dAtA[:n], nil
  982. }
  983. func (m *FlushHistoryReply) MarshalTo(dAtA []byte) (int, error) {
  984. var i int
  985. _ = i
  986. var l int
  987. _ = l
  988. return i, nil
  989. }
  990. func (m *FlushHistoryReq) Marshal() (dAtA []byte, err error) {
  991. size := m.Size()
  992. dAtA = make([]byte, size)
  993. n, err := m.MarshalTo(dAtA)
  994. if err != nil {
  995. return nil, err
  996. }
  997. return dAtA[:n], nil
  998. }
  999. func (m *FlushHistoryReq) MarshalTo(dAtA []byte) (int, error) {
  1000. var i int
  1001. _ = i
  1002. var l int
  1003. _ = l
  1004. if len(m.Mids) > 0 {
  1005. dAtA3 := make([]byte, len(m.Mids)*10)
  1006. var j2 int
  1007. for _, num1 := range m.Mids {
  1008. num := uint64(num1)
  1009. for num >= 1<<7 {
  1010. dAtA3[j2] = uint8(uint64(num)&0x7f | 0x80)
  1011. num >>= 7
  1012. j2++
  1013. }
  1014. dAtA3[j2] = uint8(num)
  1015. j2++
  1016. }
  1017. dAtA[i] = 0x12
  1018. i++
  1019. i = encodeVarintApi(dAtA, i, uint64(j2))
  1020. i += copy(dAtA[i:], dAtA3[:j2])
  1021. }
  1022. if m.Stime != 0 {
  1023. dAtA[i] = 0x18
  1024. i++
  1025. i = encodeVarintApi(dAtA, i, uint64(m.Stime))
  1026. }
  1027. return i, nil
  1028. }
  1029. func (m *HistoriesReply) Marshal() (dAtA []byte, err error) {
  1030. size := m.Size()
  1031. dAtA = make([]byte, size)
  1032. n, err := m.MarshalTo(dAtA)
  1033. if err != nil {
  1034. return nil, err
  1035. }
  1036. return dAtA[:n], nil
  1037. }
  1038. func (m *HistoriesReply) MarshalTo(dAtA []byte) (int, error) {
  1039. var i int
  1040. _ = i
  1041. var l int
  1042. _ = l
  1043. if len(m.Res) > 0 {
  1044. for _, msg := range m.Res {
  1045. dAtA[i] = 0xa
  1046. i++
  1047. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  1048. n, err := msg.MarshalTo(dAtA[i:])
  1049. if err != nil {
  1050. return 0, err
  1051. }
  1052. i += n
  1053. }
  1054. }
  1055. return i, nil
  1056. }
  1057. func (m *HistoriesReq) Marshal() (dAtA []byte, err error) {
  1058. size := m.Size()
  1059. dAtA = make([]byte, size)
  1060. n, err := m.MarshalTo(dAtA)
  1061. if err != nil {
  1062. return nil, err
  1063. }
  1064. return dAtA[:n], nil
  1065. }
  1066. func (m *HistoriesReq) MarshalTo(dAtA []byte) (int, error) {
  1067. var i int
  1068. _ = i
  1069. var l int
  1070. _ = l
  1071. if m.Mid != 0 {
  1072. dAtA[i] = 0x10
  1073. i++
  1074. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  1075. }
  1076. if len(m.Business) > 0 {
  1077. dAtA[i] = 0x1a
  1078. i++
  1079. i = encodeVarintApi(dAtA, i, uint64(len(m.Business)))
  1080. i += copy(dAtA[i:], m.Business)
  1081. }
  1082. if m.Pn != 0 {
  1083. dAtA[i] = 0x20
  1084. i++
  1085. i = encodeVarintApi(dAtA, i, uint64(m.Pn))
  1086. }
  1087. if m.Ps != 0 {
  1088. dAtA[i] = 0x28
  1089. i++
  1090. i = encodeVarintApi(dAtA, i, uint64(m.Ps))
  1091. }
  1092. return i, nil
  1093. }
  1094. func (m *HistoryCursorReply) Marshal() (dAtA []byte, err error) {
  1095. size := m.Size()
  1096. dAtA = make([]byte, size)
  1097. n, err := m.MarshalTo(dAtA)
  1098. if err != nil {
  1099. return nil, err
  1100. }
  1101. return dAtA[:n], nil
  1102. }
  1103. func (m *HistoryCursorReply) MarshalTo(dAtA []byte) (int, error) {
  1104. var i int
  1105. _ = i
  1106. var l int
  1107. _ = l
  1108. if len(m.Res) > 0 {
  1109. for _, msg := range m.Res {
  1110. dAtA[i] = 0xa
  1111. i++
  1112. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  1113. n, err := msg.MarshalTo(dAtA[i:])
  1114. if err != nil {
  1115. return 0, err
  1116. }
  1117. i += n
  1118. }
  1119. }
  1120. return i, nil
  1121. }
  1122. func (m *HistoryCursorReq) Marshal() (dAtA []byte, err error) {
  1123. size := m.Size()
  1124. dAtA = make([]byte, size)
  1125. n, err := m.MarshalTo(dAtA)
  1126. if err != nil {
  1127. return nil, err
  1128. }
  1129. return dAtA[:n], nil
  1130. }
  1131. func (m *HistoryCursorReq) MarshalTo(dAtA []byte) (int, error) {
  1132. var i int
  1133. _ = i
  1134. var l int
  1135. _ = l
  1136. if m.Mid != 0 {
  1137. dAtA[i] = 0x10
  1138. i++
  1139. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  1140. }
  1141. if m.Max != 0 {
  1142. dAtA[i] = 0x18
  1143. i++
  1144. i = encodeVarintApi(dAtA, i, uint64(m.Max))
  1145. }
  1146. if m.ViewAt != 0 {
  1147. dAtA[i] = 0x20
  1148. i++
  1149. i = encodeVarintApi(dAtA, i, uint64(m.ViewAt))
  1150. }
  1151. if m.Ps != 0 {
  1152. dAtA[i] = 0x28
  1153. i++
  1154. i = encodeVarintApi(dAtA, i, uint64(m.Ps))
  1155. }
  1156. if len(m.Business) > 0 {
  1157. dAtA[i] = 0x32
  1158. i++
  1159. i = encodeVarintApi(dAtA, i, uint64(len(m.Business)))
  1160. i += copy(dAtA[i:], m.Business)
  1161. }
  1162. if len(m.Businesses) > 0 {
  1163. for _, s := range m.Businesses {
  1164. dAtA[i] = 0x3a
  1165. i++
  1166. l = len(s)
  1167. for l >= 1<<7 {
  1168. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  1169. l >>= 7
  1170. i++
  1171. }
  1172. dAtA[i] = uint8(l)
  1173. i++
  1174. i += copy(dAtA[i:], s)
  1175. }
  1176. }
  1177. if len(m.Ip) > 0 {
  1178. dAtA[i] = 0x42
  1179. i++
  1180. i = encodeVarintApi(dAtA, i, uint64(len(m.Ip)))
  1181. i += copy(dAtA[i:], m.Ip)
  1182. }
  1183. return i, nil
  1184. }
  1185. func (m *ModelHistory) 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 *ModelHistory) MarshalTo(dAtA []byte) (int, error) {
  1195. var i int
  1196. _ = i
  1197. var l int
  1198. _ = l
  1199. if m.Mid != 0 {
  1200. dAtA[i] = 0x8
  1201. i++
  1202. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  1203. }
  1204. if m.Aid != 0 {
  1205. dAtA[i] = 0x10
  1206. i++
  1207. i = encodeVarintApi(dAtA, i, uint64(m.Aid))
  1208. }
  1209. if m.Sid != 0 {
  1210. dAtA[i] = 0x18
  1211. i++
  1212. i = encodeVarintApi(dAtA, i, uint64(m.Sid))
  1213. }
  1214. if m.Epid != 0 {
  1215. dAtA[i] = 0x20
  1216. i++
  1217. i = encodeVarintApi(dAtA, i, uint64(m.Epid))
  1218. }
  1219. if m.Tp != 0 {
  1220. dAtA[i] = 0x28
  1221. i++
  1222. i = encodeVarintApi(dAtA, i, uint64(m.Tp))
  1223. }
  1224. if len(m.Business) > 0 {
  1225. dAtA[i] = 0x32
  1226. i++
  1227. i = encodeVarintApi(dAtA, i, uint64(len(m.Business)))
  1228. i += copy(dAtA[i:], m.Business)
  1229. }
  1230. if m.Stp != 0 {
  1231. dAtA[i] = 0x38
  1232. i++
  1233. i = encodeVarintApi(dAtA, i, uint64(m.Stp))
  1234. }
  1235. if m.Cid != 0 {
  1236. dAtA[i] = 0x40
  1237. i++
  1238. i = encodeVarintApi(dAtA, i, uint64(m.Cid))
  1239. }
  1240. if m.Dt != 0 {
  1241. dAtA[i] = 0x48
  1242. i++
  1243. i = encodeVarintApi(dAtA, i, uint64(m.Dt))
  1244. }
  1245. if m.Pro != 0 {
  1246. dAtA[i] = 0x50
  1247. i++
  1248. i = encodeVarintApi(dAtA, i, uint64(m.Pro))
  1249. }
  1250. if m.Unix != 0 {
  1251. dAtA[i] = 0x58
  1252. i++
  1253. i = encodeVarintApi(dAtA, i, uint64(m.Unix))
  1254. }
  1255. return i, nil
  1256. }
  1257. func (m *ModelResource) Marshal() (dAtA []byte, err error) {
  1258. size := m.Size()
  1259. dAtA = make([]byte, size)
  1260. n, err := m.MarshalTo(dAtA)
  1261. if err != nil {
  1262. return nil, err
  1263. }
  1264. return dAtA[:n], nil
  1265. }
  1266. func (m *ModelResource) MarshalTo(dAtA []byte) (int, error) {
  1267. var i int
  1268. _ = i
  1269. var l int
  1270. _ = l
  1271. if m.Mid != 0 {
  1272. dAtA[i] = 0x8
  1273. i++
  1274. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  1275. }
  1276. if m.Oid != 0 {
  1277. dAtA[i] = 0x10
  1278. i++
  1279. i = encodeVarintApi(dAtA, i, uint64(m.Oid))
  1280. }
  1281. if m.Sid != 0 {
  1282. dAtA[i] = 0x18
  1283. i++
  1284. i = encodeVarintApi(dAtA, i, uint64(m.Sid))
  1285. }
  1286. if m.Epid != 0 {
  1287. dAtA[i] = 0x20
  1288. i++
  1289. i = encodeVarintApi(dAtA, i, uint64(m.Epid))
  1290. }
  1291. if m.Tp != 0 {
  1292. dAtA[i] = 0x28
  1293. i++
  1294. i = encodeVarintApi(dAtA, i, uint64(m.Tp))
  1295. }
  1296. if m.Stp != 0 {
  1297. dAtA[i] = 0x30
  1298. i++
  1299. i = encodeVarintApi(dAtA, i, uint64(m.Stp))
  1300. }
  1301. if m.Cid != 0 {
  1302. dAtA[i] = 0x38
  1303. i++
  1304. i = encodeVarintApi(dAtA, i, uint64(m.Cid))
  1305. }
  1306. if len(m.Business) > 0 {
  1307. dAtA[i] = 0x42
  1308. i++
  1309. i = encodeVarintApi(dAtA, i, uint64(len(m.Business)))
  1310. i += copy(dAtA[i:], m.Business)
  1311. }
  1312. if m.Dt != 0 {
  1313. dAtA[i] = 0x48
  1314. i++
  1315. i = encodeVarintApi(dAtA, i, uint64(m.Dt))
  1316. }
  1317. if m.Pro != 0 {
  1318. dAtA[i] = 0x50
  1319. i++
  1320. i = encodeVarintApi(dAtA, i, uint64(m.Pro))
  1321. }
  1322. if m.Unix != 0 {
  1323. dAtA[i] = 0x58
  1324. i++
  1325. i = encodeVarintApi(dAtA, i, uint64(m.Unix))
  1326. }
  1327. return i, nil
  1328. }
  1329. func (m *PositionReply) Marshal() (dAtA []byte, err error) {
  1330. size := m.Size()
  1331. dAtA = make([]byte, size)
  1332. n, err := m.MarshalTo(dAtA)
  1333. if err != nil {
  1334. return nil, err
  1335. }
  1336. return dAtA[:n], nil
  1337. }
  1338. func (m *PositionReply) MarshalTo(dAtA []byte) (int, error) {
  1339. var i int
  1340. _ = i
  1341. var l int
  1342. _ = l
  1343. if m.Res != nil {
  1344. dAtA[i] = 0xa
  1345. i++
  1346. i = encodeVarintApi(dAtA, i, uint64(m.Res.Size()))
  1347. n4, err := m.Res.MarshalTo(dAtA[i:])
  1348. if err != nil {
  1349. return 0, err
  1350. }
  1351. i += n4
  1352. }
  1353. return i, nil
  1354. }
  1355. func (m *PositionReq) Marshal() (dAtA []byte, err error) {
  1356. size := m.Size()
  1357. dAtA = make([]byte, size)
  1358. n, err := m.MarshalTo(dAtA)
  1359. if err != nil {
  1360. return nil, err
  1361. }
  1362. return dAtA[:n], nil
  1363. }
  1364. func (m *PositionReq) MarshalTo(dAtA []byte) (int, error) {
  1365. var i int
  1366. _ = i
  1367. var l int
  1368. _ = l
  1369. if m.Mid != 0 {
  1370. dAtA[i] = 0x10
  1371. i++
  1372. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  1373. }
  1374. if m.Aid != 0 {
  1375. dAtA[i] = 0x18
  1376. i++
  1377. i = encodeVarintApi(dAtA, i, uint64(m.Aid))
  1378. }
  1379. if len(m.Business) > 0 {
  1380. dAtA[i] = 0x22
  1381. i++
  1382. i = encodeVarintApi(dAtA, i, uint64(len(m.Business)))
  1383. i += copy(dAtA[i:], m.Business)
  1384. }
  1385. return i, nil
  1386. }
  1387. func (m *ProgressReply) Marshal() (dAtA []byte, err error) {
  1388. size := m.Size()
  1389. dAtA = make([]byte, size)
  1390. n, err := m.MarshalTo(dAtA)
  1391. if err != nil {
  1392. return nil, err
  1393. }
  1394. return dAtA[:n], nil
  1395. }
  1396. func (m *ProgressReply) MarshalTo(dAtA []byte) (int, error) {
  1397. var i int
  1398. _ = i
  1399. var l int
  1400. _ = l
  1401. if len(m.Res) > 0 {
  1402. for k, _ := range m.Res {
  1403. dAtA[i] = 0xa
  1404. i++
  1405. v := m.Res[k]
  1406. msgSize := 0
  1407. if v != nil {
  1408. msgSize = v.Size()
  1409. msgSize += 1 + sovApi(uint64(msgSize))
  1410. }
  1411. mapSize := 1 + sovApi(uint64(k)) + msgSize
  1412. i = encodeVarintApi(dAtA, i, uint64(mapSize))
  1413. dAtA[i] = 0x8
  1414. i++
  1415. i = encodeVarintApi(dAtA, i, uint64(k))
  1416. if v != nil {
  1417. dAtA[i] = 0x12
  1418. i++
  1419. i = encodeVarintApi(dAtA, i, uint64(v.Size()))
  1420. n5, err := v.MarshalTo(dAtA[i:])
  1421. if err != nil {
  1422. return 0, err
  1423. }
  1424. i += n5
  1425. }
  1426. }
  1427. }
  1428. return i, nil
  1429. }
  1430. func (m *ProgressReq) Marshal() (dAtA []byte, err error) {
  1431. size := m.Size()
  1432. dAtA = make([]byte, size)
  1433. n, err := m.MarshalTo(dAtA)
  1434. if err != nil {
  1435. return nil, err
  1436. }
  1437. return dAtA[:n], nil
  1438. }
  1439. func (m *ProgressReq) MarshalTo(dAtA []byte) (int, error) {
  1440. var i int
  1441. _ = i
  1442. var l int
  1443. _ = l
  1444. if m.Mid != 0 {
  1445. dAtA[i] = 0x10
  1446. i++
  1447. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  1448. }
  1449. if len(m.Aids) > 0 {
  1450. dAtA7 := make([]byte, len(m.Aids)*10)
  1451. var j6 int
  1452. for _, num1 := range m.Aids {
  1453. num := uint64(num1)
  1454. for num >= 1<<7 {
  1455. dAtA7[j6] = uint8(uint64(num)&0x7f | 0x80)
  1456. num >>= 7
  1457. j6++
  1458. }
  1459. dAtA7[j6] = uint8(num)
  1460. j6++
  1461. }
  1462. dAtA[i] = 0x1a
  1463. i++
  1464. i = encodeVarintApi(dAtA, i, uint64(j6))
  1465. i += copy(dAtA[i:], dAtA7[:j6])
  1466. }
  1467. return i, nil
  1468. }
  1469. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  1470. for v >= 1<<7 {
  1471. dAtA[offset] = uint8(v&0x7f | 0x80)
  1472. v >>= 7
  1473. offset++
  1474. }
  1475. dAtA[offset] = uint8(v)
  1476. return offset + 1
  1477. }
  1478. func (m *AddHistoryReply) Size() (n int) {
  1479. var l int
  1480. _ = l
  1481. return n
  1482. }
  1483. func (m *AddHistoryReq) Size() (n int) {
  1484. var l int
  1485. _ = l
  1486. if m.Mid != 0 {
  1487. n += 1 + sovApi(uint64(m.Mid))
  1488. }
  1489. if m.Rtime != 0 {
  1490. n += 1 + sovApi(uint64(m.Rtime))
  1491. }
  1492. if m.H != nil {
  1493. l = m.H.Size()
  1494. n += 1 + l + sovApi(uint64(l))
  1495. }
  1496. return n
  1497. }
  1498. func (m *ClearHistoryReply) Size() (n int) {
  1499. var l int
  1500. _ = l
  1501. return n
  1502. }
  1503. func (m *ClearHistoryReq) Size() (n int) {
  1504. var l int
  1505. _ = l
  1506. if m.Mid != 0 {
  1507. n += 1 + sovApi(uint64(m.Mid))
  1508. }
  1509. if len(m.Businesses) > 0 {
  1510. for _, s := range m.Businesses {
  1511. l = len(s)
  1512. n += 1 + l + sovApi(uint64(l))
  1513. }
  1514. }
  1515. return n
  1516. }
  1517. func (m *DeleteReply) Size() (n int) {
  1518. var l int
  1519. _ = l
  1520. return n
  1521. }
  1522. func (m *DeleteReq) Size() (n int) {
  1523. var l int
  1524. _ = l
  1525. if m.Mid != 0 {
  1526. n += 1 + sovApi(uint64(m.Mid))
  1527. }
  1528. if len(m.His) > 0 {
  1529. for _, e := range m.His {
  1530. l = e.Size()
  1531. n += 1 + l + sovApi(uint64(l))
  1532. }
  1533. }
  1534. return n
  1535. }
  1536. func (m *FlushHistoryReply) Size() (n int) {
  1537. var l int
  1538. _ = l
  1539. return n
  1540. }
  1541. func (m *FlushHistoryReq) Size() (n int) {
  1542. var l int
  1543. _ = l
  1544. if len(m.Mids) > 0 {
  1545. l = 0
  1546. for _, e := range m.Mids {
  1547. l += sovApi(uint64(e))
  1548. }
  1549. n += 1 + sovApi(uint64(l)) + l
  1550. }
  1551. if m.Stime != 0 {
  1552. n += 1 + sovApi(uint64(m.Stime))
  1553. }
  1554. return n
  1555. }
  1556. func (m *HistoriesReply) Size() (n int) {
  1557. var l int
  1558. _ = l
  1559. if len(m.Res) > 0 {
  1560. for _, e := range m.Res {
  1561. l = e.Size()
  1562. n += 1 + l + sovApi(uint64(l))
  1563. }
  1564. }
  1565. return n
  1566. }
  1567. func (m *HistoriesReq) Size() (n int) {
  1568. var l int
  1569. _ = l
  1570. if m.Mid != 0 {
  1571. n += 1 + sovApi(uint64(m.Mid))
  1572. }
  1573. l = len(m.Business)
  1574. if l > 0 {
  1575. n += 1 + l + sovApi(uint64(l))
  1576. }
  1577. if m.Pn != 0 {
  1578. n += 1 + sovApi(uint64(m.Pn))
  1579. }
  1580. if m.Ps != 0 {
  1581. n += 1 + sovApi(uint64(m.Ps))
  1582. }
  1583. return n
  1584. }
  1585. func (m *HistoryCursorReply) Size() (n int) {
  1586. var l int
  1587. _ = l
  1588. if len(m.Res) > 0 {
  1589. for _, e := range m.Res {
  1590. l = e.Size()
  1591. n += 1 + l + sovApi(uint64(l))
  1592. }
  1593. }
  1594. return n
  1595. }
  1596. func (m *HistoryCursorReq) Size() (n int) {
  1597. var l int
  1598. _ = l
  1599. if m.Mid != 0 {
  1600. n += 1 + sovApi(uint64(m.Mid))
  1601. }
  1602. if m.Max != 0 {
  1603. n += 1 + sovApi(uint64(m.Max))
  1604. }
  1605. if m.ViewAt != 0 {
  1606. n += 1 + sovApi(uint64(m.ViewAt))
  1607. }
  1608. if m.Ps != 0 {
  1609. n += 1 + sovApi(uint64(m.Ps))
  1610. }
  1611. l = len(m.Business)
  1612. if l > 0 {
  1613. n += 1 + l + sovApi(uint64(l))
  1614. }
  1615. if len(m.Businesses) > 0 {
  1616. for _, s := range m.Businesses {
  1617. l = len(s)
  1618. n += 1 + l + sovApi(uint64(l))
  1619. }
  1620. }
  1621. l = len(m.Ip)
  1622. if l > 0 {
  1623. n += 1 + l + sovApi(uint64(l))
  1624. }
  1625. return n
  1626. }
  1627. func (m *ModelHistory) Size() (n int) {
  1628. var l int
  1629. _ = l
  1630. if m.Mid != 0 {
  1631. n += 1 + sovApi(uint64(m.Mid))
  1632. }
  1633. if m.Aid != 0 {
  1634. n += 1 + sovApi(uint64(m.Aid))
  1635. }
  1636. if m.Sid != 0 {
  1637. n += 1 + sovApi(uint64(m.Sid))
  1638. }
  1639. if m.Epid != 0 {
  1640. n += 1 + sovApi(uint64(m.Epid))
  1641. }
  1642. if m.Tp != 0 {
  1643. n += 1 + sovApi(uint64(m.Tp))
  1644. }
  1645. l = len(m.Business)
  1646. if l > 0 {
  1647. n += 1 + l + sovApi(uint64(l))
  1648. }
  1649. if m.Stp != 0 {
  1650. n += 1 + sovApi(uint64(m.Stp))
  1651. }
  1652. if m.Cid != 0 {
  1653. n += 1 + sovApi(uint64(m.Cid))
  1654. }
  1655. if m.Dt != 0 {
  1656. n += 1 + sovApi(uint64(m.Dt))
  1657. }
  1658. if m.Pro != 0 {
  1659. n += 1 + sovApi(uint64(m.Pro))
  1660. }
  1661. if m.Unix != 0 {
  1662. n += 1 + sovApi(uint64(m.Unix))
  1663. }
  1664. return n
  1665. }
  1666. func (m *ModelResource) Size() (n int) {
  1667. var l int
  1668. _ = l
  1669. if m.Mid != 0 {
  1670. n += 1 + sovApi(uint64(m.Mid))
  1671. }
  1672. if m.Oid != 0 {
  1673. n += 1 + sovApi(uint64(m.Oid))
  1674. }
  1675. if m.Sid != 0 {
  1676. n += 1 + sovApi(uint64(m.Sid))
  1677. }
  1678. if m.Epid != 0 {
  1679. n += 1 + sovApi(uint64(m.Epid))
  1680. }
  1681. if m.Tp != 0 {
  1682. n += 1 + sovApi(uint64(m.Tp))
  1683. }
  1684. if m.Stp != 0 {
  1685. n += 1 + sovApi(uint64(m.Stp))
  1686. }
  1687. if m.Cid != 0 {
  1688. n += 1 + sovApi(uint64(m.Cid))
  1689. }
  1690. l = len(m.Business)
  1691. if l > 0 {
  1692. n += 1 + l + sovApi(uint64(l))
  1693. }
  1694. if m.Dt != 0 {
  1695. n += 1 + sovApi(uint64(m.Dt))
  1696. }
  1697. if m.Pro != 0 {
  1698. n += 1 + sovApi(uint64(m.Pro))
  1699. }
  1700. if m.Unix != 0 {
  1701. n += 1 + sovApi(uint64(m.Unix))
  1702. }
  1703. return n
  1704. }
  1705. func (m *PositionReply) Size() (n int) {
  1706. var l int
  1707. _ = l
  1708. if m.Res != nil {
  1709. l = m.Res.Size()
  1710. n += 1 + l + sovApi(uint64(l))
  1711. }
  1712. return n
  1713. }
  1714. func (m *PositionReq) Size() (n int) {
  1715. var l int
  1716. _ = l
  1717. if m.Mid != 0 {
  1718. n += 1 + sovApi(uint64(m.Mid))
  1719. }
  1720. if m.Aid != 0 {
  1721. n += 1 + sovApi(uint64(m.Aid))
  1722. }
  1723. l = len(m.Business)
  1724. if l > 0 {
  1725. n += 1 + l + sovApi(uint64(l))
  1726. }
  1727. return n
  1728. }
  1729. func (m *ProgressReply) Size() (n int) {
  1730. var l int
  1731. _ = l
  1732. if len(m.Res) > 0 {
  1733. for k, v := range m.Res {
  1734. _ = k
  1735. _ = v
  1736. l = 0
  1737. if v != nil {
  1738. l = v.Size()
  1739. l += 1 + sovApi(uint64(l))
  1740. }
  1741. mapEntrySize := 1 + sovApi(uint64(k)) + l
  1742. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  1743. }
  1744. }
  1745. return n
  1746. }
  1747. func (m *ProgressReq) Size() (n int) {
  1748. var l int
  1749. _ = l
  1750. if m.Mid != 0 {
  1751. n += 1 + sovApi(uint64(m.Mid))
  1752. }
  1753. if len(m.Aids) > 0 {
  1754. l = 0
  1755. for _, e := range m.Aids {
  1756. l += sovApi(uint64(e))
  1757. }
  1758. n += 1 + sovApi(uint64(l)) + l
  1759. }
  1760. return n
  1761. }
  1762. func sovApi(x uint64) (n int) {
  1763. for {
  1764. n++
  1765. x >>= 7
  1766. if x == 0 {
  1767. break
  1768. }
  1769. }
  1770. return n
  1771. }
  1772. func sozApi(x uint64) (n int) {
  1773. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1774. }
  1775. func (m *AddHistoryReply) Unmarshal(dAtA []byte) error {
  1776. l := len(dAtA)
  1777. iNdEx := 0
  1778. for iNdEx < l {
  1779. preIndex := iNdEx
  1780. var wire uint64
  1781. for shift := uint(0); ; shift += 7 {
  1782. if shift >= 64 {
  1783. return ErrIntOverflowApi
  1784. }
  1785. if iNdEx >= l {
  1786. return io.ErrUnexpectedEOF
  1787. }
  1788. b := dAtA[iNdEx]
  1789. iNdEx++
  1790. wire |= (uint64(b) & 0x7F) << shift
  1791. if b < 0x80 {
  1792. break
  1793. }
  1794. }
  1795. fieldNum := int32(wire >> 3)
  1796. wireType := int(wire & 0x7)
  1797. if wireType == 4 {
  1798. return fmt.Errorf("proto: AddHistoryReply: wiretype end group for non-group")
  1799. }
  1800. if fieldNum <= 0 {
  1801. return fmt.Errorf("proto: AddHistoryReply: illegal tag %d (wire type %d)", fieldNum, wire)
  1802. }
  1803. switch fieldNum {
  1804. default:
  1805. iNdEx = preIndex
  1806. skippy, err := skipApi(dAtA[iNdEx:])
  1807. if err != nil {
  1808. return err
  1809. }
  1810. if skippy < 0 {
  1811. return ErrInvalidLengthApi
  1812. }
  1813. if (iNdEx + skippy) > l {
  1814. return io.ErrUnexpectedEOF
  1815. }
  1816. iNdEx += skippy
  1817. }
  1818. }
  1819. if iNdEx > l {
  1820. return io.ErrUnexpectedEOF
  1821. }
  1822. return nil
  1823. }
  1824. func (m *AddHistoryReq) Unmarshal(dAtA []byte) error {
  1825. l := len(dAtA)
  1826. iNdEx := 0
  1827. for iNdEx < l {
  1828. preIndex := iNdEx
  1829. var wire uint64
  1830. for shift := uint(0); ; shift += 7 {
  1831. if shift >= 64 {
  1832. return ErrIntOverflowApi
  1833. }
  1834. if iNdEx >= l {
  1835. return io.ErrUnexpectedEOF
  1836. }
  1837. b := dAtA[iNdEx]
  1838. iNdEx++
  1839. wire |= (uint64(b) & 0x7F) << shift
  1840. if b < 0x80 {
  1841. break
  1842. }
  1843. }
  1844. fieldNum := int32(wire >> 3)
  1845. wireType := int(wire & 0x7)
  1846. if wireType == 4 {
  1847. return fmt.Errorf("proto: AddHistoryReq: wiretype end group for non-group")
  1848. }
  1849. if fieldNum <= 0 {
  1850. return fmt.Errorf("proto: AddHistoryReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1851. }
  1852. switch fieldNum {
  1853. case 2:
  1854. if wireType != 0 {
  1855. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  1856. }
  1857. m.Mid = 0
  1858. for shift := uint(0); ; shift += 7 {
  1859. if shift >= 64 {
  1860. return ErrIntOverflowApi
  1861. }
  1862. if iNdEx >= l {
  1863. return io.ErrUnexpectedEOF
  1864. }
  1865. b := dAtA[iNdEx]
  1866. iNdEx++
  1867. m.Mid |= (int64(b) & 0x7F) << shift
  1868. if b < 0x80 {
  1869. break
  1870. }
  1871. }
  1872. case 3:
  1873. if wireType != 0 {
  1874. return fmt.Errorf("proto: wrong wireType = %d for field Rtime", wireType)
  1875. }
  1876. m.Rtime = 0
  1877. for shift := uint(0); ; shift += 7 {
  1878. if shift >= 64 {
  1879. return ErrIntOverflowApi
  1880. }
  1881. if iNdEx >= l {
  1882. return io.ErrUnexpectedEOF
  1883. }
  1884. b := dAtA[iNdEx]
  1885. iNdEx++
  1886. m.Rtime |= (int64(b) & 0x7F) << shift
  1887. if b < 0x80 {
  1888. break
  1889. }
  1890. }
  1891. case 4:
  1892. if wireType != 2 {
  1893. return fmt.Errorf("proto: wrong wireType = %d for field H", wireType)
  1894. }
  1895. var msglen int
  1896. for shift := uint(0); ; shift += 7 {
  1897. if shift >= 64 {
  1898. return ErrIntOverflowApi
  1899. }
  1900. if iNdEx >= l {
  1901. return io.ErrUnexpectedEOF
  1902. }
  1903. b := dAtA[iNdEx]
  1904. iNdEx++
  1905. msglen |= (int(b) & 0x7F) << shift
  1906. if b < 0x80 {
  1907. break
  1908. }
  1909. }
  1910. if msglen < 0 {
  1911. return ErrInvalidLengthApi
  1912. }
  1913. postIndex := iNdEx + msglen
  1914. if postIndex > l {
  1915. return io.ErrUnexpectedEOF
  1916. }
  1917. if m.H == nil {
  1918. m.H = &ModelHistory{}
  1919. }
  1920. if err := m.H.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1921. return err
  1922. }
  1923. iNdEx = postIndex
  1924. default:
  1925. iNdEx = preIndex
  1926. skippy, err := skipApi(dAtA[iNdEx:])
  1927. if err != nil {
  1928. return err
  1929. }
  1930. if skippy < 0 {
  1931. return ErrInvalidLengthApi
  1932. }
  1933. if (iNdEx + skippy) > l {
  1934. return io.ErrUnexpectedEOF
  1935. }
  1936. iNdEx += skippy
  1937. }
  1938. }
  1939. if iNdEx > l {
  1940. return io.ErrUnexpectedEOF
  1941. }
  1942. return nil
  1943. }
  1944. func (m *ClearHistoryReply) Unmarshal(dAtA []byte) error {
  1945. l := len(dAtA)
  1946. iNdEx := 0
  1947. for iNdEx < l {
  1948. preIndex := iNdEx
  1949. var wire uint64
  1950. for shift := uint(0); ; shift += 7 {
  1951. if shift >= 64 {
  1952. return ErrIntOverflowApi
  1953. }
  1954. if iNdEx >= l {
  1955. return io.ErrUnexpectedEOF
  1956. }
  1957. b := dAtA[iNdEx]
  1958. iNdEx++
  1959. wire |= (uint64(b) & 0x7F) << shift
  1960. if b < 0x80 {
  1961. break
  1962. }
  1963. }
  1964. fieldNum := int32(wire >> 3)
  1965. wireType := int(wire & 0x7)
  1966. if wireType == 4 {
  1967. return fmt.Errorf("proto: ClearHistoryReply: wiretype end group for non-group")
  1968. }
  1969. if fieldNum <= 0 {
  1970. return fmt.Errorf("proto: ClearHistoryReply: illegal tag %d (wire type %d)", fieldNum, wire)
  1971. }
  1972. switch fieldNum {
  1973. default:
  1974. iNdEx = preIndex
  1975. skippy, err := skipApi(dAtA[iNdEx:])
  1976. if err != nil {
  1977. return err
  1978. }
  1979. if skippy < 0 {
  1980. return ErrInvalidLengthApi
  1981. }
  1982. if (iNdEx + skippy) > l {
  1983. return io.ErrUnexpectedEOF
  1984. }
  1985. iNdEx += skippy
  1986. }
  1987. }
  1988. if iNdEx > l {
  1989. return io.ErrUnexpectedEOF
  1990. }
  1991. return nil
  1992. }
  1993. func (m *ClearHistoryReq) Unmarshal(dAtA []byte) error {
  1994. l := len(dAtA)
  1995. iNdEx := 0
  1996. for iNdEx < l {
  1997. preIndex := iNdEx
  1998. var wire uint64
  1999. for shift := uint(0); ; shift += 7 {
  2000. if shift >= 64 {
  2001. return ErrIntOverflowApi
  2002. }
  2003. if iNdEx >= l {
  2004. return io.ErrUnexpectedEOF
  2005. }
  2006. b := dAtA[iNdEx]
  2007. iNdEx++
  2008. wire |= (uint64(b) & 0x7F) << shift
  2009. if b < 0x80 {
  2010. break
  2011. }
  2012. }
  2013. fieldNum := int32(wire >> 3)
  2014. wireType := int(wire & 0x7)
  2015. if wireType == 4 {
  2016. return fmt.Errorf("proto: ClearHistoryReq: wiretype end group for non-group")
  2017. }
  2018. if fieldNum <= 0 {
  2019. return fmt.Errorf("proto: ClearHistoryReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2020. }
  2021. switch fieldNum {
  2022. case 2:
  2023. if wireType != 0 {
  2024. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  2025. }
  2026. m.Mid = 0
  2027. for shift := uint(0); ; shift += 7 {
  2028. if shift >= 64 {
  2029. return ErrIntOverflowApi
  2030. }
  2031. if iNdEx >= l {
  2032. return io.ErrUnexpectedEOF
  2033. }
  2034. b := dAtA[iNdEx]
  2035. iNdEx++
  2036. m.Mid |= (int64(b) & 0x7F) << shift
  2037. if b < 0x80 {
  2038. break
  2039. }
  2040. }
  2041. case 3:
  2042. if wireType != 2 {
  2043. return fmt.Errorf("proto: wrong wireType = %d for field Businesses", wireType)
  2044. }
  2045. var stringLen uint64
  2046. for shift := uint(0); ; shift += 7 {
  2047. if shift >= 64 {
  2048. return ErrIntOverflowApi
  2049. }
  2050. if iNdEx >= l {
  2051. return io.ErrUnexpectedEOF
  2052. }
  2053. b := dAtA[iNdEx]
  2054. iNdEx++
  2055. stringLen |= (uint64(b) & 0x7F) << shift
  2056. if b < 0x80 {
  2057. break
  2058. }
  2059. }
  2060. intStringLen := int(stringLen)
  2061. if intStringLen < 0 {
  2062. return ErrInvalidLengthApi
  2063. }
  2064. postIndex := iNdEx + intStringLen
  2065. if postIndex > l {
  2066. return io.ErrUnexpectedEOF
  2067. }
  2068. m.Businesses = append(m.Businesses, string(dAtA[iNdEx:postIndex]))
  2069. iNdEx = postIndex
  2070. default:
  2071. iNdEx = preIndex
  2072. skippy, err := skipApi(dAtA[iNdEx:])
  2073. if err != nil {
  2074. return err
  2075. }
  2076. if skippy < 0 {
  2077. return ErrInvalidLengthApi
  2078. }
  2079. if (iNdEx + skippy) > l {
  2080. return io.ErrUnexpectedEOF
  2081. }
  2082. iNdEx += skippy
  2083. }
  2084. }
  2085. if iNdEx > l {
  2086. return io.ErrUnexpectedEOF
  2087. }
  2088. return nil
  2089. }
  2090. func (m *DeleteReply) Unmarshal(dAtA []byte) error {
  2091. l := len(dAtA)
  2092. iNdEx := 0
  2093. for iNdEx < l {
  2094. preIndex := iNdEx
  2095. var wire uint64
  2096. for shift := uint(0); ; shift += 7 {
  2097. if shift >= 64 {
  2098. return ErrIntOverflowApi
  2099. }
  2100. if iNdEx >= l {
  2101. return io.ErrUnexpectedEOF
  2102. }
  2103. b := dAtA[iNdEx]
  2104. iNdEx++
  2105. wire |= (uint64(b) & 0x7F) << shift
  2106. if b < 0x80 {
  2107. break
  2108. }
  2109. }
  2110. fieldNum := int32(wire >> 3)
  2111. wireType := int(wire & 0x7)
  2112. if wireType == 4 {
  2113. return fmt.Errorf("proto: DeleteReply: wiretype end group for non-group")
  2114. }
  2115. if fieldNum <= 0 {
  2116. return fmt.Errorf("proto: DeleteReply: illegal tag %d (wire type %d)", fieldNum, wire)
  2117. }
  2118. switch fieldNum {
  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 *DeleteReq) 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: DeleteReq: wiretype end group for non-group")
  2163. }
  2164. if fieldNum <= 0 {
  2165. return fmt.Errorf("proto: DeleteReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2166. }
  2167. switch fieldNum {
  2168. case 2:
  2169. if wireType != 0 {
  2170. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  2171. }
  2172. m.Mid = 0
  2173. for shift := uint(0); ; shift += 7 {
  2174. if shift >= 64 {
  2175. return ErrIntOverflowApi
  2176. }
  2177. if iNdEx >= l {
  2178. return io.ErrUnexpectedEOF
  2179. }
  2180. b := dAtA[iNdEx]
  2181. iNdEx++
  2182. m.Mid |= (int64(b) & 0x7F) << shift
  2183. if b < 0x80 {
  2184. break
  2185. }
  2186. }
  2187. case 3:
  2188. if wireType != 2 {
  2189. return fmt.Errorf("proto: wrong wireType = %d for field His", wireType)
  2190. }
  2191. var msglen int
  2192. for shift := uint(0); ; shift += 7 {
  2193. if shift >= 64 {
  2194. return ErrIntOverflowApi
  2195. }
  2196. if iNdEx >= l {
  2197. return io.ErrUnexpectedEOF
  2198. }
  2199. b := dAtA[iNdEx]
  2200. iNdEx++
  2201. msglen |= (int(b) & 0x7F) << shift
  2202. if b < 0x80 {
  2203. break
  2204. }
  2205. }
  2206. if msglen < 0 {
  2207. return ErrInvalidLengthApi
  2208. }
  2209. postIndex := iNdEx + msglen
  2210. if postIndex > l {
  2211. return io.ErrUnexpectedEOF
  2212. }
  2213. m.His = append(m.His, &ModelHistory{})
  2214. if err := m.His[len(m.His)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2215. return err
  2216. }
  2217. iNdEx = postIndex
  2218. default:
  2219. iNdEx = preIndex
  2220. skippy, err := skipApi(dAtA[iNdEx:])
  2221. if err != nil {
  2222. return err
  2223. }
  2224. if skippy < 0 {
  2225. return ErrInvalidLengthApi
  2226. }
  2227. if (iNdEx + skippy) > l {
  2228. return io.ErrUnexpectedEOF
  2229. }
  2230. iNdEx += skippy
  2231. }
  2232. }
  2233. if iNdEx > l {
  2234. return io.ErrUnexpectedEOF
  2235. }
  2236. return nil
  2237. }
  2238. func (m *FlushHistoryReply) Unmarshal(dAtA []byte) error {
  2239. l := len(dAtA)
  2240. iNdEx := 0
  2241. for iNdEx < l {
  2242. preIndex := iNdEx
  2243. var wire uint64
  2244. for shift := uint(0); ; shift += 7 {
  2245. if shift >= 64 {
  2246. return ErrIntOverflowApi
  2247. }
  2248. if iNdEx >= l {
  2249. return io.ErrUnexpectedEOF
  2250. }
  2251. b := dAtA[iNdEx]
  2252. iNdEx++
  2253. wire |= (uint64(b) & 0x7F) << shift
  2254. if b < 0x80 {
  2255. break
  2256. }
  2257. }
  2258. fieldNum := int32(wire >> 3)
  2259. wireType := int(wire & 0x7)
  2260. if wireType == 4 {
  2261. return fmt.Errorf("proto: FlushHistoryReply: wiretype end group for non-group")
  2262. }
  2263. if fieldNum <= 0 {
  2264. return fmt.Errorf("proto: FlushHistoryReply: illegal tag %d (wire type %d)", fieldNum, wire)
  2265. }
  2266. switch fieldNum {
  2267. default:
  2268. iNdEx = preIndex
  2269. skippy, err := skipApi(dAtA[iNdEx:])
  2270. if err != nil {
  2271. return err
  2272. }
  2273. if skippy < 0 {
  2274. return ErrInvalidLengthApi
  2275. }
  2276. if (iNdEx + skippy) > l {
  2277. return io.ErrUnexpectedEOF
  2278. }
  2279. iNdEx += skippy
  2280. }
  2281. }
  2282. if iNdEx > l {
  2283. return io.ErrUnexpectedEOF
  2284. }
  2285. return nil
  2286. }
  2287. func (m *FlushHistoryReq) Unmarshal(dAtA []byte) error {
  2288. l := len(dAtA)
  2289. iNdEx := 0
  2290. for iNdEx < l {
  2291. preIndex := iNdEx
  2292. var wire uint64
  2293. for shift := uint(0); ; shift += 7 {
  2294. if shift >= 64 {
  2295. return ErrIntOverflowApi
  2296. }
  2297. if iNdEx >= l {
  2298. return io.ErrUnexpectedEOF
  2299. }
  2300. b := dAtA[iNdEx]
  2301. iNdEx++
  2302. wire |= (uint64(b) & 0x7F) << shift
  2303. if b < 0x80 {
  2304. break
  2305. }
  2306. }
  2307. fieldNum := int32(wire >> 3)
  2308. wireType := int(wire & 0x7)
  2309. if wireType == 4 {
  2310. return fmt.Errorf("proto: FlushHistoryReq: wiretype end group for non-group")
  2311. }
  2312. if fieldNum <= 0 {
  2313. return fmt.Errorf("proto: FlushHistoryReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2314. }
  2315. switch fieldNum {
  2316. case 2:
  2317. if wireType == 0 {
  2318. var v int64
  2319. for shift := uint(0); ; shift += 7 {
  2320. if shift >= 64 {
  2321. return ErrIntOverflowApi
  2322. }
  2323. if iNdEx >= l {
  2324. return io.ErrUnexpectedEOF
  2325. }
  2326. b := dAtA[iNdEx]
  2327. iNdEx++
  2328. v |= (int64(b) & 0x7F) << shift
  2329. if b < 0x80 {
  2330. break
  2331. }
  2332. }
  2333. m.Mids = append(m.Mids, v)
  2334. } else if wireType == 2 {
  2335. var packedLen int
  2336. for shift := uint(0); ; shift += 7 {
  2337. if shift >= 64 {
  2338. return ErrIntOverflowApi
  2339. }
  2340. if iNdEx >= l {
  2341. return io.ErrUnexpectedEOF
  2342. }
  2343. b := dAtA[iNdEx]
  2344. iNdEx++
  2345. packedLen |= (int(b) & 0x7F) << shift
  2346. if b < 0x80 {
  2347. break
  2348. }
  2349. }
  2350. if packedLen < 0 {
  2351. return ErrInvalidLengthApi
  2352. }
  2353. postIndex := iNdEx + packedLen
  2354. if postIndex > l {
  2355. return io.ErrUnexpectedEOF
  2356. }
  2357. for iNdEx < postIndex {
  2358. var v int64
  2359. for shift := uint(0); ; shift += 7 {
  2360. if shift >= 64 {
  2361. return ErrIntOverflowApi
  2362. }
  2363. if iNdEx >= l {
  2364. return io.ErrUnexpectedEOF
  2365. }
  2366. b := dAtA[iNdEx]
  2367. iNdEx++
  2368. v |= (int64(b) & 0x7F) << shift
  2369. if b < 0x80 {
  2370. break
  2371. }
  2372. }
  2373. m.Mids = append(m.Mids, v)
  2374. }
  2375. } else {
  2376. return fmt.Errorf("proto: wrong wireType = %d for field Mids", wireType)
  2377. }
  2378. case 3:
  2379. if wireType != 0 {
  2380. return fmt.Errorf("proto: wrong wireType = %d for field Stime", wireType)
  2381. }
  2382. m.Stime = 0
  2383. for shift := uint(0); ; shift += 7 {
  2384. if shift >= 64 {
  2385. return ErrIntOverflowApi
  2386. }
  2387. if iNdEx >= l {
  2388. return io.ErrUnexpectedEOF
  2389. }
  2390. b := dAtA[iNdEx]
  2391. iNdEx++
  2392. m.Stime |= (int64(b) & 0x7F) << shift
  2393. if b < 0x80 {
  2394. break
  2395. }
  2396. }
  2397. default:
  2398. iNdEx = preIndex
  2399. skippy, err := skipApi(dAtA[iNdEx:])
  2400. if err != nil {
  2401. return err
  2402. }
  2403. if skippy < 0 {
  2404. return ErrInvalidLengthApi
  2405. }
  2406. if (iNdEx + skippy) > l {
  2407. return io.ErrUnexpectedEOF
  2408. }
  2409. iNdEx += skippy
  2410. }
  2411. }
  2412. if iNdEx > l {
  2413. return io.ErrUnexpectedEOF
  2414. }
  2415. return nil
  2416. }
  2417. func (m *HistoriesReply) Unmarshal(dAtA []byte) error {
  2418. l := len(dAtA)
  2419. iNdEx := 0
  2420. for iNdEx < l {
  2421. preIndex := iNdEx
  2422. var wire uint64
  2423. for shift := uint(0); ; shift += 7 {
  2424. if shift >= 64 {
  2425. return ErrIntOverflowApi
  2426. }
  2427. if iNdEx >= l {
  2428. return io.ErrUnexpectedEOF
  2429. }
  2430. b := dAtA[iNdEx]
  2431. iNdEx++
  2432. wire |= (uint64(b) & 0x7F) << shift
  2433. if b < 0x80 {
  2434. break
  2435. }
  2436. }
  2437. fieldNum := int32(wire >> 3)
  2438. wireType := int(wire & 0x7)
  2439. if wireType == 4 {
  2440. return fmt.Errorf("proto: HistoriesReply: wiretype end group for non-group")
  2441. }
  2442. if fieldNum <= 0 {
  2443. return fmt.Errorf("proto: HistoriesReply: illegal tag %d (wire type %d)", fieldNum, wire)
  2444. }
  2445. switch fieldNum {
  2446. case 1:
  2447. if wireType != 2 {
  2448. return fmt.Errorf("proto: wrong wireType = %d for field Res", wireType)
  2449. }
  2450. var msglen int
  2451. for shift := uint(0); ; shift += 7 {
  2452. if shift >= 64 {
  2453. return ErrIntOverflowApi
  2454. }
  2455. if iNdEx >= l {
  2456. return io.ErrUnexpectedEOF
  2457. }
  2458. b := dAtA[iNdEx]
  2459. iNdEx++
  2460. msglen |= (int(b) & 0x7F) << shift
  2461. if b < 0x80 {
  2462. break
  2463. }
  2464. }
  2465. if msglen < 0 {
  2466. return ErrInvalidLengthApi
  2467. }
  2468. postIndex := iNdEx + msglen
  2469. if postIndex > l {
  2470. return io.ErrUnexpectedEOF
  2471. }
  2472. m.Res = append(m.Res, &ModelResource{})
  2473. if err := m.Res[len(m.Res)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2474. return err
  2475. }
  2476. iNdEx = postIndex
  2477. default:
  2478. iNdEx = preIndex
  2479. skippy, err := skipApi(dAtA[iNdEx:])
  2480. if err != nil {
  2481. return err
  2482. }
  2483. if skippy < 0 {
  2484. return ErrInvalidLengthApi
  2485. }
  2486. if (iNdEx + skippy) > l {
  2487. return io.ErrUnexpectedEOF
  2488. }
  2489. iNdEx += skippy
  2490. }
  2491. }
  2492. if iNdEx > l {
  2493. return io.ErrUnexpectedEOF
  2494. }
  2495. return nil
  2496. }
  2497. func (m *HistoriesReq) Unmarshal(dAtA []byte) error {
  2498. l := len(dAtA)
  2499. iNdEx := 0
  2500. for iNdEx < l {
  2501. preIndex := iNdEx
  2502. var wire uint64
  2503. for shift := uint(0); ; shift += 7 {
  2504. if shift >= 64 {
  2505. return ErrIntOverflowApi
  2506. }
  2507. if iNdEx >= l {
  2508. return io.ErrUnexpectedEOF
  2509. }
  2510. b := dAtA[iNdEx]
  2511. iNdEx++
  2512. wire |= (uint64(b) & 0x7F) << shift
  2513. if b < 0x80 {
  2514. break
  2515. }
  2516. }
  2517. fieldNum := int32(wire >> 3)
  2518. wireType := int(wire & 0x7)
  2519. if wireType == 4 {
  2520. return fmt.Errorf("proto: HistoriesReq: wiretype end group for non-group")
  2521. }
  2522. if fieldNum <= 0 {
  2523. return fmt.Errorf("proto: HistoriesReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2524. }
  2525. switch fieldNum {
  2526. case 2:
  2527. if wireType != 0 {
  2528. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  2529. }
  2530. m.Mid = 0
  2531. for shift := uint(0); ; shift += 7 {
  2532. if shift >= 64 {
  2533. return ErrIntOverflowApi
  2534. }
  2535. if iNdEx >= l {
  2536. return io.ErrUnexpectedEOF
  2537. }
  2538. b := dAtA[iNdEx]
  2539. iNdEx++
  2540. m.Mid |= (int64(b) & 0x7F) << shift
  2541. if b < 0x80 {
  2542. break
  2543. }
  2544. }
  2545. case 3:
  2546. if wireType != 2 {
  2547. return fmt.Errorf("proto: wrong wireType = %d for field Business", wireType)
  2548. }
  2549. var stringLen uint64
  2550. for shift := uint(0); ; shift += 7 {
  2551. if shift >= 64 {
  2552. return ErrIntOverflowApi
  2553. }
  2554. if iNdEx >= l {
  2555. return io.ErrUnexpectedEOF
  2556. }
  2557. b := dAtA[iNdEx]
  2558. iNdEx++
  2559. stringLen |= (uint64(b) & 0x7F) << shift
  2560. if b < 0x80 {
  2561. break
  2562. }
  2563. }
  2564. intStringLen := int(stringLen)
  2565. if intStringLen < 0 {
  2566. return ErrInvalidLengthApi
  2567. }
  2568. postIndex := iNdEx + intStringLen
  2569. if postIndex > l {
  2570. return io.ErrUnexpectedEOF
  2571. }
  2572. m.Business = string(dAtA[iNdEx:postIndex])
  2573. iNdEx = postIndex
  2574. case 4:
  2575. if wireType != 0 {
  2576. return fmt.Errorf("proto: wrong wireType = %d for field Pn", wireType)
  2577. }
  2578. m.Pn = 0
  2579. for shift := uint(0); ; shift += 7 {
  2580. if shift >= 64 {
  2581. return ErrIntOverflowApi
  2582. }
  2583. if iNdEx >= l {
  2584. return io.ErrUnexpectedEOF
  2585. }
  2586. b := dAtA[iNdEx]
  2587. iNdEx++
  2588. m.Pn |= (int32(b) & 0x7F) << shift
  2589. if b < 0x80 {
  2590. break
  2591. }
  2592. }
  2593. case 5:
  2594. if wireType != 0 {
  2595. return fmt.Errorf("proto: wrong wireType = %d for field Ps", wireType)
  2596. }
  2597. m.Ps = 0
  2598. for shift := uint(0); ; shift += 7 {
  2599. if shift >= 64 {
  2600. return ErrIntOverflowApi
  2601. }
  2602. if iNdEx >= l {
  2603. return io.ErrUnexpectedEOF
  2604. }
  2605. b := dAtA[iNdEx]
  2606. iNdEx++
  2607. m.Ps |= (int32(b) & 0x7F) << shift
  2608. if b < 0x80 {
  2609. break
  2610. }
  2611. }
  2612. default:
  2613. iNdEx = preIndex
  2614. skippy, err := skipApi(dAtA[iNdEx:])
  2615. if err != nil {
  2616. return err
  2617. }
  2618. if skippy < 0 {
  2619. return ErrInvalidLengthApi
  2620. }
  2621. if (iNdEx + skippy) > l {
  2622. return io.ErrUnexpectedEOF
  2623. }
  2624. iNdEx += skippy
  2625. }
  2626. }
  2627. if iNdEx > l {
  2628. return io.ErrUnexpectedEOF
  2629. }
  2630. return nil
  2631. }
  2632. func (m *HistoryCursorReply) Unmarshal(dAtA []byte) error {
  2633. l := len(dAtA)
  2634. iNdEx := 0
  2635. for iNdEx < l {
  2636. preIndex := iNdEx
  2637. var wire uint64
  2638. for shift := uint(0); ; shift += 7 {
  2639. if shift >= 64 {
  2640. return ErrIntOverflowApi
  2641. }
  2642. if iNdEx >= l {
  2643. return io.ErrUnexpectedEOF
  2644. }
  2645. b := dAtA[iNdEx]
  2646. iNdEx++
  2647. wire |= (uint64(b) & 0x7F) << shift
  2648. if b < 0x80 {
  2649. break
  2650. }
  2651. }
  2652. fieldNum := int32(wire >> 3)
  2653. wireType := int(wire & 0x7)
  2654. if wireType == 4 {
  2655. return fmt.Errorf("proto: HistoryCursorReply: wiretype end group for non-group")
  2656. }
  2657. if fieldNum <= 0 {
  2658. return fmt.Errorf("proto: HistoryCursorReply: illegal tag %d (wire type %d)", fieldNum, wire)
  2659. }
  2660. switch fieldNum {
  2661. case 1:
  2662. if wireType != 2 {
  2663. return fmt.Errorf("proto: wrong wireType = %d for field Res", wireType)
  2664. }
  2665. var msglen int
  2666. for shift := uint(0); ; shift += 7 {
  2667. if shift >= 64 {
  2668. return ErrIntOverflowApi
  2669. }
  2670. if iNdEx >= l {
  2671. return io.ErrUnexpectedEOF
  2672. }
  2673. b := dAtA[iNdEx]
  2674. iNdEx++
  2675. msglen |= (int(b) & 0x7F) << shift
  2676. if b < 0x80 {
  2677. break
  2678. }
  2679. }
  2680. if msglen < 0 {
  2681. return ErrInvalidLengthApi
  2682. }
  2683. postIndex := iNdEx + msglen
  2684. if postIndex > l {
  2685. return io.ErrUnexpectedEOF
  2686. }
  2687. m.Res = append(m.Res, &ModelResource{})
  2688. if err := m.Res[len(m.Res)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2689. return err
  2690. }
  2691. iNdEx = postIndex
  2692. default:
  2693. iNdEx = preIndex
  2694. skippy, err := skipApi(dAtA[iNdEx:])
  2695. if err != nil {
  2696. return err
  2697. }
  2698. if skippy < 0 {
  2699. return ErrInvalidLengthApi
  2700. }
  2701. if (iNdEx + skippy) > l {
  2702. return io.ErrUnexpectedEOF
  2703. }
  2704. iNdEx += skippy
  2705. }
  2706. }
  2707. if iNdEx > l {
  2708. return io.ErrUnexpectedEOF
  2709. }
  2710. return nil
  2711. }
  2712. func (m *HistoryCursorReq) Unmarshal(dAtA []byte) error {
  2713. l := len(dAtA)
  2714. iNdEx := 0
  2715. for iNdEx < l {
  2716. preIndex := iNdEx
  2717. var wire uint64
  2718. for shift := uint(0); ; shift += 7 {
  2719. if shift >= 64 {
  2720. return ErrIntOverflowApi
  2721. }
  2722. if iNdEx >= l {
  2723. return io.ErrUnexpectedEOF
  2724. }
  2725. b := dAtA[iNdEx]
  2726. iNdEx++
  2727. wire |= (uint64(b) & 0x7F) << shift
  2728. if b < 0x80 {
  2729. break
  2730. }
  2731. }
  2732. fieldNum := int32(wire >> 3)
  2733. wireType := int(wire & 0x7)
  2734. if wireType == 4 {
  2735. return fmt.Errorf("proto: HistoryCursorReq: wiretype end group for non-group")
  2736. }
  2737. if fieldNum <= 0 {
  2738. return fmt.Errorf("proto: HistoryCursorReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2739. }
  2740. switch fieldNum {
  2741. case 2:
  2742. if wireType != 0 {
  2743. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  2744. }
  2745. m.Mid = 0
  2746. for shift := uint(0); ; shift += 7 {
  2747. if shift >= 64 {
  2748. return ErrIntOverflowApi
  2749. }
  2750. if iNdEx >= l {
  2751. return io.ErrUnexpectedEOF
  2752. }
  2753. b := dAtA[iNdEx]
  2754. iNdEx++
  2755. m.Mid |= (int64(b) & 0x7F) << shift
  2756. if b < 0x80 {
  2757. break
  2758. }
  2759. }
  2760. case 3:
  2761. if wireType != 0 {
  2762. return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType)
  2763. }
  2764. m.Max = 0
  2765. for shift := uint(0); ; shift += 7 {
  2766. if shift >= 64 {
  2767. return ErrIntOverflowApi
  2768. }
  2769. if iNdEx >= l {
  2770. return io.ErrUnexpectedEOF
  2771. }
  2772. b := dAtA[iNdEx]
  2773. iNdEx++
  2774. m.Max |= (int64(b) & 0x7F) << shift
  2775. if b < 0x80 {
  2776. break
  2777. }
  2778. }
  2779. case 4:
  2780. if wireType != 0 {
  2781. return fmt.Errorf("proto: wrong wireType = %d for field ViewAt", wireType)
  2782. }
  2783. m.ViewAt = 0
  2784. for shift := uint(0); ; shift += 7 {
  2785. if shift >= 64 {
  2786. return ErrIntOverflowApi
  2787. }
  2788. if iNdEx >= l {
  2789. return io.ErrUnexpectedEOF
  2790. }
  2791. b := dAtA[iNdEx]
  2792. iNdEx++
  2793. m.ViewAt |= (int64(b) & 0x7F) << shift
  2794. if b < 0x80 {
  2795. break
  2796. }
  2797. }
  2798. case 5:
  2799. if wireType != 0 {
  2800. return fmt.Errorf("proto: wrong wireType = %d for field Ps", wireType)
  2801. }
  2802. m.Ps = 0
  2803. for shift := uint(0); ; shift += 7 {
  2804. if shift >= 64 {
  2805. return ErrIntOverflowApi
  2806. }
  2807. if iNdEx >= l {
  2808. return io.ErrUnexpectedEOF
  2809. }
  2810. b := dAtA[iNdEx]
  2811. iNdEx++
  2812. m.Ps |= (int32(b) & 0x7F) << shift
  2813. if b < 0x80 {
  2814. break
  2815. }
  2816. }
  2817. case 6:
  2818. if wireType != 2 {
  2819. return fmt.Errorf("proto: wrong wireType = %d for field Business", wireType)
  2820. }
  2821. var stringLen uint64
  2822. for shift := uint(0); ; shift += 7 {
  2823. if shift >= 64 {
  2824. return ErrIntOverflowApi
  2825. }
  2826. if iNdEx >= l {
  2827. return io.ErrUnexpectedEOF
  2828. }
  2829. b := dAtA[iNdEx]
  2830. iNdEx++
  2831. stringLen |= (uint64(b) & 0x7F) << shift
  2832. if b < 0x80 {
  2833. break
  2834. }
  2835. }
  2836. intStringLen := int(stringLen)
  2837. if intStringLen < 0 {
  2838. return ErrInvalidLengthApi
  2839. }
  2840. postIndex := iNdEx + intStringLen
  2841. if postIndex > l {
  2842. return io.ErrUnexpectedEOF
  2843. }
  2844. m.Business = string(dAtA[iNdEx:postIndex])
  2845. iNdEx = postIndex
  2846. case 7:
  2847. if wireType != 2 {
  2848. return fmt.Errorf("proto: wrong wireType = %d for field Businesses", wireType)
  2849. }
  2850. var stringLen uint64
  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. stringLen |= (uint64(b) & 0x7F) << shift
  2861. if b < 0x80 {
  2862. break
  2863. }
  2864. }
  2865. intStringLen := int(stringLen)
  2866. if intStringLen < 0 {
  2867. return ErrInvalidLengthApi
  2868. }
  2869. postIndex := iNdEx + intStringLen
  2870. if postIndex > l {
  2871. return io.ErrUnexpectedEOF
  2872. }
  2873. m.Businesses = append(m.Businesses, string(dAtA[iNdEx:postIndex]))
  2874. iNdEx = postIndex
  2875. case 8:
  2876. if wireType != 2 {
  2877. return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType)
  2878. }
  2879. var stringLen uint64
  2880. for shift := uint(0); ; shift += 7 {
  2881. if shift >= 64 {
  2882. return ErrIntOverflowApi
  2883. }
  2884. if iNdEx >= l {
  2885. return io.ErrUnexpectedEOF
  2886. }
  2887. b := dAtA[iNdEx]
  2888. iNdEx++
  2889. stringLen |= (uint64(b) & 0x7F) << shift
  2890. if b < 0x80 {
  2891. break
  2892. }
  2893. }
  2894. intStringLen := int(stringLen)
  2895. if intStringLen < 0 {
  2896. return ErrInvalidLengthApi
  2897. }
  2898. postIndex := iNdEx + intStringLen
  2899. if postIndex > l {
  2900. return io.ErrUnexpectedEOF
  2901. }
  2902. m.Ip = string(dAtA[iNdEx:postIndex])
  2903. iNdEx = postIndex
  2904. default:
  2905. iNdEx = preIndex
  2906. skippy, err := skipApi(dAtA[iNdEx:])
  2907. if err != nil {
  2908. return err
  2909. }
  2910. if skippy < 0 {
  2911. return ErrInvalidLengthApi
  2912. }
  2913. if (iNdEx + skippy) > l {
  2914. return io.ErrUnexpectedEOF
  2915. }
  2916. iNdEx += skippy
  2917. }
  2918. }
  2919. if iNdEx > l {
  2920. return io.ErrUnexpectedEOF
  2921. }
  2922. return nil
  2923. }
  2924. func (m *ModelHistory) Unmarshal(dAtA []byte) error {
  2925. l := len(dAtA)
  2926. iNdEx := 0
  2927. for iNdEx < l {
  2928. preIndex := iNdEx
  2929. var wire uint64
  2930. for shift := uint(0); ; shift += 7 {
  2931. if shift >= 64 {
  2932. return ErrIntOverflowApi
  2933. }
  2934. if iNdEx >= l {
  2935. return io.ErrUnexpectedEOF
  2936. }
  2937. b := dAtA[iNdEx]
  2938. iNdEx++
  2939. wire |= (uint64(b) & 0x7F) << shift
  2940. if b < 0x80 {
  2941. break
  2942. }
  2943. }
  2944. fieldNum := int32(wire >> 3)
  2945. wireType := int(wire & 0x7)
  2946. if wireType == 4 {
  2947. return fmt.Errorf("proto: ModelHistory: wiretype end group for non-group")
  2948. }
  2949. if fieldNum <= 0 {
  2950. return fmt.Errorf("proto: ModelHistory: illegal tag %d (wire type %d)", fieldNum, wire)
  2951. }
  2952. switch fieldNum {
  2953. case 1:
  2954. if wireType != 0 {
  2955. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  2956. }
  2957. m.Mid = 0
  2958. for shift := uint(0); ; shift += 7 {
  2959. if shift >= 64 {
  2960. return ErrIntOverflowApi
  2961. }
  2962. if iNdEx >= l {
  2963. return io.ErrUnexpectedEOF
  2964. }
  2965. b := dAtA[iNdEx]
  2966. iNdEx++
  2967. m.Mid |= (int64(b) & 0x7F) << shift
  2968. if b < 0x80 {
  2969. break
  2970. }
  2971. }
  2972. case 2:
  2973. if wireType != 0 {
  2974. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  2975. }
  2976. m.Aid = 0
  2977. for shift := uint(0); ; shift += 7 {
  2978. if shift >= 64 {
  2979. return ErrIntOverflowApi
  2980. }
  2981. if iNdEx >= l {
  2982. return io.ErrUnexpectedEOF
  2983. }
  2984. b := dAtA[iNdEx]
  2985. iNdEx++
  2986. m.Aid |= (int64(b) & 0x7F) << shift
  2987. if b < 0x80 {
  2988. break
  2989. }
  2990. }
  2991. case 3:
  2992. if wireType != 0 {
  2993. return fmt.Errorf("proto: wrong wireType = %d for field Sid", wireType)
  2994. }
  2995. m.Sid = 0
  2996. for shift := uint(0); ; shift += 7 {
  2997. if shift >= 64 {
  2998. return ErrIntOverflowApi
  2999. }
  3000. if iNdEx >= l {
  3001. return io.ErrUnexpectedEOF
  3002. }
  3003. b := dAtA[iNdEx]
  3004. iNdEx++
  3005. m.Sid |= (int64(b) & 0x7F) << shift
  3006. if b < 0x80 {
  3007. break
  3008. }
  3009. }
  3010. case 4:
  3011. if wireType != 0 {
  3012. return fmt.Errorf("proto: wrong wireType = %d for field Epid", wireType)
  3013. }
  3014. m.Epid = 0
  3015. for shift := uint(0); ; shift += 7 {
  3016. if shift >= 64 {
  3017. return ErrIntOverflowApi
  3018. }
  3019. if iNdEx >= l {
  3020. return io.ErrUnexpectedEOF
  3021. }
  3022. b := dAtA[iNdEx]
  3023. iNdEx++
  3024. m.Epid |= (int64(b) & 0x7F) << shift
  3025. if b < 0x80 {
  3026. break
  3027. }
  3028. }
  3029. case 5:
  3030. if wireType != 0 {
  3031. return fmt.Errorf("proto: wrong wireType = %d for field Tp", wireType)
  3032. }
  3033. m.Tp = 0
  3034. for shift := uint(0); ; shift += 7 {
  3035. if shift >= 64 {
  3036. return ErrIntOverflowApi
  3037. }
  3038. if iNdEx >= l {
  3039. return io.ErrUnexpectedEOF
  3040. }
  3041. b := dAtA[iNdEx]
  3042. iNdEx++
  3043. m.Tp |= (int32(b) & 0x7F) << shift
  3044. if b < 0x80 {
  3045. break
  3046. }
  3047. }
  3048. case 6:
  3049. if wireType != 2 {
  3050. return fmt.Errorf("proto: wrong wireType = %d for field Business", wireType)
  3051. }
  3052. var stringLen uint64
  3053. for shift := uint(0); ; shift += 7 {
  3054. if shift >= 64 {
  3055. return ErrIntOverflowApi
  3056. }
  3057. if iNdEx >= l {
  3058. return io.ErrUnexpectedEOF
  3059. }
  3060. b := dAtA[iNdEx]
  3061. iNdEx++
  3062. stringLen |= (uint64(b) & 0x7F) << shift
  3063. if b < 0x80 {
  3064. break
  3065. }
  3066. }
  3067. intStringLen := int(stringLen)
  3068. if intStringLen < 0 {
  3069. return ErrInvalidLengthApi
  3070. }
  3071. postIndex := iNdEx + intStringLen
  3072. if postIndex > l {
  3073. return io.ErrUnexpectedEOF
  3074. }
  3075. m.Business = string(dAtA[iNdEx:postIndex])
  3076. iNdEx = postIndex
  3077. case 7:
  3078. if wireType != 0 {
  3079. return fmt.Errorf("proto: wrong wireType = %d for field Stp", wireType)
  3080. }
  3081. m.Stp = 0
  3082. for shift := uint(0); ; shift += 7 {
  3083. if shift >= 64 {
  3084. return ErrIntOverflowApi
  3085. }
  3086. if iNdEx >= l {
  3087. return io.ErrUnexpectedEOF
  3088. }
  3089. b := dAtA[iNdEx]
  3090. iNdEx++
  3091. m.Stp |= (int32(b) & 0x7F) << shift
  3092. if b < 0x80 {
  3093. break
  3094. }
  3095. }
  3096. case 8:
  3097. if wireType != 0 {
  3098. return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType)
  3099. }
  3100. m.Cid = 0
  3101. for shift := uint(0); ; shift += 7 {
  3102. if shift >= 64 {
  3103. return ErrIntOverflowApi
  3104. }
  3105. if iNdEx >= l {
  3106. return io.ErrUnexpectedEOF
  3107. }
  3108. b := dAtA[iNdEx]
  3109. iNdEx++
  3110. m.Cid |= (int64(b) & 0x7F) << shift
  3111. if b < 0x80 {
  3112. break
  3113. }
  3114. }
  3115. case 9:
  3116. if wireType != 0 {
  3117. return fmt.Errorf("proto: wrong wireType = %d for field Dt", wireType)
  3118. }
  3119. m.Dt = 0
  3120. for shift := uint(0); ; shift += 7 {
  3121. if shift >= 64 {
  3122. return ErrIntOverflowApi
  3123. }
  3124. if iNdEx >= l {
  3125. return io.ErrUnexpectedEOF
  3126. }
  3127. b := dAtA[iNdEx]
  3128. iNdEx++
  3129. m.Dt |= (int32(b) & 0x7F) << shift
  3130. if b < 0x80 {
  3131. break
  3132. }
  3133. }
  3134. case 10:
  3135. if wireType != 0 {
  3136. return fmt.Errorf("proto: wrong wireType = %d for field Pro", wireType)
  3137. }
  3138. m.Pro = 0
  3139. for shift := uint(0); ; shift += 7 {
  3140. if shift >= 64 {
  3141. return ErrIntOverflowApi
  3142. }
  3143. if iNdEx >= l {
  3144. return io.ErrUnexpectedEOF
  3145. }
  3146. b := dAtA[iNdEx]
  3147. iNdEx++
  3148. m.Pro |= (int64(b) & 0x7F) << shift
  3149. if b < 0x80 {
  3150. break
  3151. }
  3152. }
  3153. case 11:
  3154. if wireType != 0 {
  3155. return fmt.Errorf("proto: wrong wireType = %d for field Unix", wireType)
  3156. }
  3157. m.Unix = 0
  3158. for shift := uint(0); ; shift += 7 {
  3159. if shift >= 64 {
  3160. return ErrIntOverflowApi
  3161. }
  3162. if iNdEx >= l {
  3163. return io.ErrUnexpectedEOF
  3164. }
  3165. b := dAtA[iNdEx]
  3166. iNdEx++
  3167. m.Unix |= (int64(b) & 0x7F) << shift
  3168. if b < 0x80 {
  3169. break
  3170. }
  3171. }
  3172. default:
  3173. iNdEx = preIndex
  3174. skippy, err := skipApi(dAtA[iNdEx:])
  3175. if err != nil {
  3176. return err
  3177. }
  3178. if skippy < 0 {
  3179. return ErrInvalidLengthApi
  3180. }
  3181. if (iNdEx + skippy) > l {
  3182. return io.ErrUnexpectedEOF
  3183. }
  3184. iNdEx += skippy
  3185. }
  3186. }
  3187. if iNdEx > l {
  3188. return io.ErrUnexpectedEOF
  3189. }
  3190. return nil
  3191. }
  3192. func (m *ModelResource) Unmarshal(dAtA []byte) error {
  3193. l := len(dAtA)
  3194. iNdEx := 0
  3195. for iNdEx < l {
  3196. preIndex := iNdEx
  3197. var wire uint64
  3198. for shift := uint(0); ; shift += 7 {
  3199. if shift >= 64 {
  3200. return ErrIntOverflowApi
  3201. }
  3202. if iNdEx >= l {
  3203. return io.ErrUnexpectedEOF
  3204. }
  3205. b := dAtA[iNdEx]
  3206. iNdEx++
  3207. wire |= (uint64(b) & 0x7F) << shift
  3208. if b < 0x80 {
  3209. break
  3210. }
  3211. }
  3212. fieldNum := int32(wire >> 3)
  3213. wireType := int(wire & 0x7)
  3214. if wireType == 4 {
  3215. return fmt.Errorf("proto: ModelResource: wiretype end group for non-group")
  3216. }
  3217. if fieldNum <= 0 {
  3218. return fmt.Errorf("proto: ModelResource: illegal tag %d (wire type %d)", fieldNum, wire)
  3219. }
  3220. switch fieldNum {
  3221. case 1:
  3222. if wireType != 0 {
  3223. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  3224. }
  3225. m.Mid = 0
  3226. for shift := uint(0); ; shift += 7 {
  3227. if shift >= 64 {
  3228. return ErrIntOverflowApi
  3229. }
  3230. if iNdEx >= l {
  3231. return io.ErrUnexpectedEOF
  3232. }
  3233. b := dAtA[iNdEx]
  3234. iNdEx++
  3235. m.Mid |= (int64(b) & 0x7F) << shift
  3236. if b < 0x80 {
  3237. break
  3238. }
  3239. }
  3240. case 2:
  3241. if wireType != 0 {
  3242. return fmt.Errorf("proto: wrong wireType = %d for field Oid", wireType)
  3243. }
  3244. m.Oid = 0
  3245. for shift := uint(0); ; shift += 7 {
  3246. if shift >= 64 {
  3247. return ErrIntOverflowApi
  3248. }
  3249. if iNdEx >= l {
  3250. return io.ErrUnexpectedEOF
  3251. }
  3252. b := dAtA[iNdEx]
  3253. iNdEx++
  3254. m.Oid |= (int64(b) & 0x7F) << shift
  3255. if b < 0x80 {
  3256. break
  3257. }
  3258. }
  3259. case 3:
  3260. if wireType != 0 {
  3261. return fmt.Errorf("proto: wrong wireType = %d for field Sid", wireType)
  3262. }
  3263. m.Sid = 0
  3264. for shift := uint(0); ; shift += 7 {
  3265. if shift >= 64 {
  3266. return ErrIntOverflowApi
  3267. }
  3268. if iNdEx >= l {
  3269. return io.ErrUnexpectedEOF
  3270. }
  3271. b := dAtA[iNdEx]
  3272. iNdEx++
  3273. m.Sid |= (int64(b) & 0x7F) << shift
  3274. if b < 0x80 {
  3275. break
  3276. }
  3277. }
  3278. case 4:
  3279. if wireType != 0 {
  3280. return fmt.Errorf("proto: wrong wireType = %d for field Epid", wireType)
  3281. }
  3282. m.Epid = 0
  3283. for shift := uint(0); ; shift += 7 {
  3284. if shift >= 64 {
  3285. return ErrIntOverflowApi
  3286. }
  3287. if iNdEx >= l {
  3288. return io.ErrUnexpectedEOF
  3289. }
  3290. b := dAtA[iNdEx]
  3291. iNdEx++
  3292. m.Epid |= (int64(b) & 0x7F) << shift
  3293. if b < 0x80 {
  3294. break
  3295. }
  3296. }
  3297. case 5:
  3298. if wireType != 0 {
  3299. return fmt.Errorf("proto: wrong wireType = %d for field Tp", wireType)
  3300. }
  3301. m.Tp = 0
  3302. for shift := uint(0); ; shift += 7 {
  3303. if shift >= 64 {
  3304. return ErrIntOverflowApi
  3305. }
  3306. if iNdEx >= l {
  3307. return io.ErrUnexpectedEOF
  3308. }
  3309. b := dAtA[iNdEx]
  3310. iNdEx++
  3311. m.Tp |= (int32(b) & 0x7F) << shift
  3312. if b < 0x80 {
  3313. break
  3314. }
  3315. }
  3316. case 6:
  3317. if wireType != 0 {
  3318. return fmt.Errorf("proto: wrong wireType = %d for field Stp", wireType)
  3319. }
  3320. m.Stp = 0
  3321. for shift := uint(0); ; shift += 7 {
  3322. if shift >= 64 {
  3323. return ErrIntOverflowApi
  3324. }
  3325. if iNdEx >= l {
  3326. return io.ErrUnexpectedEOF
  3327. }
  3328. b := dAtA[iNdEx]
  3329. iNdEx++
  3330. m.Stp |= (int32(b) & 0x7F) << shift
  3331. if b < 0x80 {
  3332. break
  3333. }
  3334. }
  3335. case 7:
  3336. if wireType != 0 {
  3337. return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType)
  3338. }
  3339. m.Cid = 0
  3340. for shift := uint(0); ; shift += 7 {
  3341. if shift >= 64 {
  3342. return ErrIntOverflowApi
  3343. }
  3344. if iNdEx >= l {
  3345. return io.ErrUnexpectedEOF
  3346. }
  3347. b := dAtA[iNdEx]
  3348. iNdEx++
  3349. m.Cid |= (int64(b) & 0x7F) << shift
  3350. if b < 0x80 {
  3351. break
  3352. }
  3353. }
  3354. case 8:
  3355. if wireType != 2 {
  3356. return fmt.Errorf("proto: wrong wireType = %d for field Business", wireType)
  3357. }
  3358. var stringLen uint64
  3359. for shift := uint(0); ; shift += 7 {
  3360. if shift >= 64 {
  3361. return ErrIntOverflowApi
  3362. }
  3363. if iNdEx >= l {
  3364. return io.ErrUnexpectedEOF
  3365. }
  3366. b := dAtA[iNdEx]
  3367. iNdEx++
  3368. stringLen |= (uint64(b) & 0x7F) << shift
  3369. if b < 0x80 {
  3370. break
  3371. }
  3372. }
  3373. intStringLen := int(stringLen)
  3374. if intStringLen < 0 {
  3375. return ErrInvalidLengthApi
  3376. }
  3377. postIndex := iNdEx + intStringLen
  3378. if postIndex > l {
  3379. return io.ErrUnexpectedEOF
  3380. }
  3381. m.Business = string(dAtA[iNdEx:postIndex])
  3382. iNdEx = postIndex
  3383. case 9:
  3384. if wireType != 0 {
  3385. return fmt.Errorf("proto: wrong wireType = %d for field Dt", wireType)
  3386. }
  3387. m.Dt = 0
  3388. for shift := uint(0); ; shift += 7 {
  3389. if shift >= 64 {
  3390. return ErrIntOverflowApi
  3391. }
  3392. if iNdEx >= l {
  3393. return io.ErrUnexpectedEOF
  3394. }
  3395. b := dAtA[iNdEx]
  3396. iNdEx++
  3397. m.Dt |= (int32(b) & 0x7F) << shift
  3398. if b < 0x80 {
  3399. break
  3400. }
  3401. }
  3402. case 10:
  3403. if wireType != 0 {
  3404. return fmt.Errorf("proto: wrong wireType = %d for field Pro", wireType)
  3405. }
  3406. m.Pro = 0
  3407. for shift := uint(0); ; shift += 7 {
  3408. if shift >= 64 {
  3409. return ErrIntOverflowApi
  3410. }
  3411. if iNdEx >= l {
  3412. return io.ErrUnexpectedEOF
  3413. }
  3414. b := dAtA[iNdEx]
  3415. iNdEx++
  3416. m.Pro |= (int64(b) & 0x7F) << shift
  3417. if b < 0x80 {
  3418. break
  3419. }
  3420. }
  3421. case 11:
  3422. if wireType != 0 {
  3423. return fmt.Errorf("proto: wrong wireType = %d for field Unix", wireType)
  3424. }
  3425. m.Unix = 0
  3426. for shift := uint(0); ; shift += 7 {
  3427. if shift >= 64 {
  3428. return ErrIntOverflowApi
  3429. }
  3430. if iNdEx >= l {
  3431. return io.ErrUnexpectedEOF
  3432. }
  3433. b := dAtA[iNdEx]
  3434. iNdEx++
  3435. m.Unix |= (int64(b) & 0x7F) << shift
  3436. if b < 0x80 {
  3437. break
  3438. }
  3439. }
  3440. default:
  3441. iNdEx = preIndex
  3442. skippy, err := skipApi(dAtA[iNdEx:])
  3443. if err != nil {
  3444. return err
  3445. }
  3446. if skippy < 0 {
  3447. return ErrInvalidLengthApi
  3448. }
  3449. if (iNdEx + skippy) > l {
  3450. return io.ErrUnexpectedEOF
  3451. }
  3452. iNdEx += skippy
  3453. }
  3454. }
  3455. if iNdEx > l {
  3456. return io.ErrUnexpectedEOF
  3457. }
  3458. return nil
  3459. }
  3460. func (m *PositionReply) Unmarshal(dAtA []byte) error {
  3461. l := len(dAtA)
  3462. iNdEx := 0
  3463. for iNdEx < l {
  3464. preIndex := iNdEx
  3465. var wire uint64
  3466. for shift := uint(0); ; shift += 7 {
  3467. if shift >= 64 {
  3468. return ErrIntOverflowApi
  3469. }
  3470. if iNdEx >= l {
  3471. return io.ErrUnexpectedEOF
  3472. }
  3473. b := dAtA[iNdEx]
  3474. iNdEx++
  3475. wire |= (uint64(b) & 0x7F) << shift
  3476. if b < 0x80 {
  3477. break
  3478. }
  3479. }
  3480. fieldNum := int32(wire >> 3)
  3481. wireType := int(wire & 0x7)
  3482. if wireType == 4 {
  3483. return fmt.Errorf("proto: PositionReply: wiretype end group for non-group")
  3484. }
  3485. if fieldNum <= 0 {
  3486. return fmt.Errorf("proto: PositionReply: illegal tag %d (wire type %d)", fieldNum, wire)
  3487. }
  3488. switch fieldNum {
  3489. case 1:
  3490. if wireType != 2 {
  3491. return fmt.Errorf("proto: wrong wireType = %d for field Res", wireType)
  3492. }
  3493. var msglen int
  3494. for shift := uint(0); ; shift += 7 {
  3495. if shift >= 64 {
  3496. return ErrIntOverflowApi
  3497. }
  3498. if iNdEx >= l {
  3499. return io.ErrUnexpectedEOF
  3500. }
  3501. b := dAtA[iNdEx]
  3502. iNdEx++
  3503. msglen |= (int(b) & 0x7F) << shift
  3504. if b < 0x80 {
  3505. break
  3506. }
  3507. }
  3508. if msglen < 0 {
  3509. return ErrInvalidLengthApi
  3510. }
  3511. postIndex := iNdEx + msglen
  3512. if postIndex > l {
  3513. return io.ErrUnexpectedEOF
  3514. }
  3515. if m.Res == nil {
  3516. m.Res = &ModelHistory{}
  3517. }
  3518. if err := m.Res.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3519. return err
  3520. }
  3521. iNdEx = postIndex
  3522. default:
  3523. iNdEx = preIndex
  3524. skippy, err := skipApi(dAtA[iNdEx:])
  3525. if err != nil {
  3526. return err
  3527. }
  3528. if skippy < 0 {
  3529. return ErrInvalidLengthApi
  3530. }
  3531. if (iNdEx + skippy) > l {
  3532. return io.ErrUnexpectedEOF
  3533. }
  3534. iNdEx += skippy
  3535. }
  3536. }
  3537. if iNdEx > l {
  3538. return io.ErrUnexpectedEOF
  3539. }
  3540. return nil
  3541. }
  3542. func (m *PositionReq) Unmarshal(dAtA []byte) error {
  3543. l := len(dAtA)
  3544. iNdEx := 0
  3545. for iNdEx < l {
  3546. preIndex := iNdEx
  3547. var wire uint64
  3548. for shift := uint(0); ; shift += 7 {
  3549. if shift >= 64 {
  3550. return ErrIntOverflowApi
  3551. }
  3552. if iNdEx >= l {
  3553. return io.ErrUnexpectedEOF
  3554. }
  3555. b := dAtA[iNdEx]
  3556. iNdEx++
  3557. wire |= (uint64(b) & 0x7F) << shift
  3558. if b < 0x80 {
  3559. break
  3560. }
  3561. }
  3562. fieldNum := int32(wire >> 3)
  3563. wireType := int(wire & 0x7)
  3564. if wireType == 4 {
  3565. return fmt.Errorf("proto: PositionReq: wiretype end group for non-group")
  3566. }
  3567. if fieldNum <= 0 {
  3568. return fmt.Errorf("proto: PositionReq: illegal tag %d (wire type %d)", fieldNum, wire)
  3569. }
  3570. switch fieldNum {
  3571. case 2:
  3572. if wireType != 0 {
  3573. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  3574. }
  3575. m.Mid = 0
  3576. for shift := uint(0); ; shift += 7 {
  3577. if shift >= 64 {
  3578. return ErrIntOverflowApi
  3579. }
  3580. if iNdEx >= l {
  3581. return io.ErrUnexpectedEOF
  3582. }
  3583. b := dAtA[iNdEx]
  3584. iNdEx++
  3585. m.Mid |= (int64(b) & 0x7F) << shift
  3586. if b < 0x80 {
  3587. break
  3588. }
  3589. }
  3590. case 3:
  3591. if wireType != 0 {
  3592. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  3593. }
  3594. m.Aid = 0
  3595. for shift := uint(0); ; shift += 7 {
  3596. if shift >= 64 {
  3597. return ErrIntOverflowApi
  3598. }
  3599. if iNdEx >= l {
  3600. return io.ErrUnexpectedEOF
  3601. }
  3602. b := dAtA[iNdEx]
  3603. iNdEx++
  3604. m.Aid |= (int64(b) & 0x7F) << shift
  3605. if b < 0x80 {
  3606. break
  3607. }
  3608. }
  3609. case 4:
  3610. if wireType != 2 {
  3611. return fmt.Errorf("proto: wrong wireType = %d for field Business", wireType)
  3612. }
  3613. var stringLen uint64
  3614. for shift := uint(0); ; shift += 7 {
  3615. if shift >= 64 {
  3616. return ErrIntOverflowApi
  3617. }
  3618. if iNdEx >= l {
  3619. return io.ErrUnexpectedEOF
  3620. }
  3621. b := dAtA[iNdEx]
  3622. iNdEx++
  3623. stringLen |= (uint64(b) & 0x7F) << shift
  3624. if b < 0x80 {
  3625. break
  3626. }
  3627. }
  3628. intStringLen := int(stringLen)
  3629. if intStringLen < 0 {
  3630. return ErrInvalidLengthApi
  3631. }
  3632. postIndex := iNdEx + intStringLen
  3633. if postIndex > l {
  3634. return io.ErrUnexpectedEOF
  3635. }
  3636. m.Business = string(dAtA[iNdEx:postIndex])
  3637. iNdEx = postIndex
  3638. default:
  3639. iNdEx = preIndex
  3640. skippy, err := skipApi(dAtA[iNdEx:])
  3641. if err != nil {
  3642. return err
  3643. }
  3644. if skippy < 0 {
  3645. return ErrInvalidLengthApi
  3646. }
  3647. if (iNdEx + skippy) > l {
  3648. return io.ErrUnexpectedEOF
  3649. }
  3650. iNdEx += skippy
  3651. }
  3652. }
  3653. if iNdEx > l {
  3654. return io.ErrUnexpectedEOF
  3655. }
  3656. return nil
  3657. }
  3658. func (m *ProgressReply) Unmarshal(dAtA []byte) error {
  3659. l := len(dAtA)
  3660. iNdEx := 0
  3661. for iNdEx < l {
  3662. preIndex := iNdEx
  3663. var wire uint64
  3664. for shift := uint(0); ; shift += 7 {
  3665. if shift >= 64 {
  3666. return ErrIntOverflowApi
  3667. }
  3668. if iNdEx >= l {
  3669. return io.ErrUnexpectedEOF
  3670. }
  3671. b := dAtA[iNdEx]
  3672. iNdEx++
  3673. wire |= (uint64(b) & 0x7F) << shift
  3674. if b < 0x80 {
  3675. break
  3676. }
  3677. }
  3678. fieldNum := int32(wire >> 3)
  3679. wireType := int(wire & 0x7)
  3680. if wireType == 4 {
  3681. return fmt.Errorf("proto: ProgressReply: wiretype end group for non-group")
  3682. }
  3683. if fieldNum <= 0 {
  3684. return fmt.Errorf("proto: ProgressReply: illegal tag %d (wire type %d)", fieldNum, wire)
  3685. }
  3686. switch fieldNum {
  3687. case 1:
  3688. if wireType != 2 {
  3689. return fmt.Errorf("proto: wrong wireType = %d for field Res", wireType)
  3690. }
  3691. var msglen int
  3692. for shift := uint(0); ; shift += 7 {
  3693. if shift >= 64 {
  3694. return ErrIntOverflowApi
  3695. }
  3696. if iNdEx >= l {
  3697. return io.ErrUnexpectedEOF
  3698. }
  3699. b := dAtA[iNdEx]
  3700. iNdEx++
  3701. msglen |= (int(b) & 0x7F) << shift
  3702. if b < 0x80 {
  3703. break
  3704. }
  3705. }
  3706. if msglen < 0 {
  3707. return ErrInvalidLengthApi
  3708. }
  3709. postIndex := iNdEx + msglen
  3710. if postIndex > l {
  3711. return io.ErrUnexpectedEOF
  3712. }
  3713. if m.Res == nil {
  3714. m.Res = make(map[int64]*ModelHistory)
  3715. }
  3716. var mapkey int64
  3717. var mapvalue *ModelHistory
  3718. for iNdEx < postIndex {
  3719. entryPreIndex := iNdEx
  3720. var wire uint64
  3721. for shift := uint(0); ; shift += 7 {
  3722. if shift >= 64 {
  3723. return ErrIntOverflowApi
  3724. }
  3725. if iNdEx >= l {
  3726. return io.ErrUnexpectedEOF
  3727. }
  3728. b := dAtA[iNdEx]
  3729. iNdEx++
  3730. wire |= (uint64(b) & 0x7F) << shift
  3731. if b < 0x80 {
  3732. break
  3733. }
  3734. }
  3735. fieldNum := int32(wire >> 3)
  3736. if fieldNum == 1 {
  3737. for shift := uint(0); ; shift += 7 {
  3738. if shift >= 64 {
  3739. return ErrIntOverflowApi
  3740. }
  3741. if iNdEx >= l {
  3742. return io.ErrUnexpectedEOF
  3743. }
  3744. b := dAtA[iNdEx]
  3745. iNdEx++
  3746. mapkey |= (int64(b) & 0x7F) << shift
  3747. if b < 0x80 {
  3748. break
  3749. }
  3750. }
  3751. } else if fieldNum == 2 {
  3752. var mapmsglen int
  3753. for shift := uint(0); ; shift += 7 {
  3754. if shift >= 64 {
  3755. return ErrIntOverflowApi
  3756. }
  3757. if iNdEx >= l {
  3758. return io.ErrUnexpectedEOF
  3759. }
  3760. b := dAtA[iNdEx]
  3761. iNdEx++
  3762. mapmsglen |= (int(b) & 0x7F) << shift
  3763. if b < 0x80 {
  3764. break
  3765. }
  3766. }
  3767. if mapmsglen < 0 {
  3768. return ErrInvalidLengthApi
  3769. }
  3770. postmsgIndex := iNdEx + mapmsglen
  3771. if mapmsglen < 0 {
  3772. return ErrInvalidLengthApi
  3773. }
  3774. if postmsgIndex > l {
  3775. return io.ErrUnexpectedEOF
  3776. }
  3777. mapvalue = &ModelHistory{}
  3778. if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  3779. return err
  3780. }
  3781. iNdEx = postmsgIndex
  3782. } else {
  3783. iNdEx = entryPreIndex
  3784. skippy, err := skipApi(dAtA[iNdEx:])
  3785. if err != nil {
  3786. return err
  3787. }
  3788. if skippy < 0 {
  3789. return ErrInvalidLengthApi
  3790. }
  3791. if (iNdEx + skippy) > postIndex {
  3792. return io.ErrUnexpectedEOF
  3793. }
  3794. iNdEx += skippy
  3795. }
  3796. }
  3797. m.Res[mapkey] = mapvalue
  3798. iNdEx = postIndex
  3799. default:
  3800. iNdEx = preIndex
  3801. skippy, err := skipApi(dAtA[iNdEx:])
  3802. if err != nil {
  3803. return err
  3804. }
  3805. if skippy < 0 {
  3806. return ErrInvalidLengthApi
  3807. }
  3808. if (iNdEx + skippy) > l {
  3809. return io.ErrUnexpectedEOF
  3810. }
  3811. iNdEx += skippy
  3812. }
  3813. }
  3814. if iNdEx > l {
  3815. return io.ErrUnexpectedEOF
  3816. }
  3817. return nil
  3818. }
  3819. func (m *ProgressReq) Unmarshal(dAtA []byte) error {
  3820. l := len(dAtA)
  3821. iNdEx := 0
  3822. for iNdEx < l {
  3823. preIndex := iNdEx
  3824. var wire uint64
  3825. for shift := uint(0); ; shift += 7 {
  3826. if shift >= 64 {
  3827. return ErrIntOverflowApi
  3828. }
  3829. if iNdEx >= l {
  3830. return io.ErrUnexpectedEOF
  3831. }
  3832. b := dAtA[iNdEx]
  3833. iNdEx++
  3834. wire |= (uint64(b) & 0x7F) << shift
  3835. if b < 0x80 {
  3836. break
  3837. }
  3838. }
  3839. fieldNum := int32(wire >> 3)
  3840. wireType := int(wire & 0x7)
  3841. if wireType == 4 {
  3842. return fmt.Errorf("proto: ProgressReq: wiretype end group for non-group")
  3843. }
  3844. if fieldNum <= 0 {
  3845. return fmt.Errorf("proto: ProgressReq: illegal tag %d (wire type %d)", fieldNum, wire)
  3846. }
  3847. switch fieldNum {
  3848. case 2:
  3849. if wireType != 0 {
  3850. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  3851. }
  3852. m.Mid = 0
  3853. for shift := uint(0); ; shift += 7 {
  3854. if shift >= 64 {
  3855. return ErrIntOverflowApi
  3856. }
  3857. if iNdEx >= l {
  3858. return io.ErrUnexpectedEOF
  3859. }
  3860. b := dAtA[iNdEx]
  3861. iNdEx++
  3862. m.Mid |= (int64(b) & 0x7F) << shift
  3863. if b < 0x80 {
  3864. break
  3865. }
  3866. }
  3867. case 3:
  3868. if wireType == 0 {
  3869. var v int64
  3870. for shift := uint(0); ; shift += 7 {
  3871. if shift >= 64 {
  3872. return ErrIntOverflowApi
  3873. }
  3874. if iNdEx >= l {
  3875. return io.ErrUnexpectedEOF
  3876. }
  3877. b := dAtA[iNdEx]
  3878. iNdEx++
  3879. v |= (int64(b) & 0x7F) << shift
  3880. if b < 0x80 {
  3881. break
  3882. }
  3883. }
  3884. m.Aids = append(m.Aids, v)
  3885. } else if wireType == 2 {
  3886. var packedLen int
  3887. for shift := uint(0); ; shift += 7 {
  3888. if shift >= 64 {
  3889. return ErrIntOverflowApi
  3890. }
  3891. if iNdEx >= l {
  3892. return io.ErrUnexpectedEOF
  3893. }
  3894. b := dAtA[iNdEx]
  3895. iNdEx++
  3896. packedLen |= (int(b) & 0x7F) << shift
  3897. if b < 0x80 {
  3898. break
  3899. }
  3900. }
  3901. if packedLen < 0 {
  3902. return ErrInvalidLengthApi
  3903. }
  3904. postIndex := iNdEx + packedLen
  3905. if postIndex > l {
  3906. return io.ErrUnexpectedEOF
  3907. }
  3908. for iNdEx < postIndex {
  3909. var v int64
  3910. for shift := uint(0); ; shift += 7 {
  3911. if shift >= 64 {
  3912. return ErrIntOverflowApi
  3913. }
  3914. if iNdEx >= l {
  3915. return io.ErrUnexpectedEOF
  3916. }
  3917. b := dAtA[iNdEx]
  3918. iNdEx++
  3919. v |= (int64(b) & 0x7F) << shift
  3920. if b < 0x80 {
  3921. break
  3922. }
  3923. }
  3924. m.Aids = append(m.Aids, v)
  3925. }
  3926. } else {
  3927. return fmt.Errorf("proto: wrong wireType = %d for field Aids", wireType)
  3928. }
  3929. default:
  3930. iNdEx = preIndex
  3931. skippy, err := skipApi(dAtA[iNdEx:])
  3932. if err != nil {
  3933. return err
  3934. }
  3935. if skippy < 0 {
  3936. return ErrInvalidLengthApi
  3937. }
  3938. if (iNdEx + skippy) > l {
  3939. return io.ErrUnexpectedEOF
  3940. }
  3941. iNdEx += skippy
  3942. }
  3943. }
  3944. if iNdEx > l {
  3945. return io.ErrUnexpectedEOF
  3946. }
  3947. return nil
  3948. }
  3949. func skipApi(dAtA []byte) (n int, err error) {
  3950. l := len(dAtA)
  3951. iNdEx := 0
  3952. for iNdEx < l {
  3953. var wire uint64
  3954. for shift := uint(0); ; shift += 7 {
  3955. if shift >= 64 {
  3956. return 0, ErrIntOverflowApi
  3957. }
  3958. if iNdEx >= l {
  3959. return 0, io.ErrUnexpectedEOF
  3960. }
  3961. b := dAtA[iNdEx]
  3962. iNdEx++
  3963. wire |= (uint64(b) & 0x7F) << shift
  3964. if b < 0x80 {
  3965. break
  3966. }
  3967. }
  3968. wireType := int(wire & 0x7)
  3969. switch wireType {
  3970. case 0:
  3971. for shift := uint(0); ; shift += 7 {
  3972. if shift >= 64 {
  3973. return 0, ErrIntOverflowApi
  3974. }
  3975. if iNdEx >= l {
  3976. return 0, io.ErrUnexpectedEOF
  3977. }
  3978. iNdEx++
  3979. if dAtA[iNdEx-1] < 0x80 {
  3980. break
  3981. }
  3982. }
  3983. return iNdEx, nil
  3984. case 1:
  3985. iNdEx += 8
  3986. return iNdEx, nil
  3987. case 2:
  3988. var length int
  3989. for shift := uint(0); ; shift += 7 {
  3990. if shift >= 64 {
  3991. return 0, ErrIntOverflowApi
  3992. }
  3993. if iNdEx >= l {
  3994. return 0, io.ErrUnexpectedEOF
  3995. }
  3996. b := dAtA[iNdEx]
  3997. iNdEx++
  3998. length |= (int(b) & 0x7F) << shift
  3999. if b < 0x80 {
  4000. break
  4001. }
  4002. }
  4003. iNdEx += length
  4004. if length < 0 {
  4005. return 0, ErrInvalidLengthApi
  4006. }
  4007. return iNdEx, nil
  4008. case 3:
  4009. for {
  4010. var innerWire uint64
  4011. var start int = iNdEx
  4012. for shift := uint(0); ; shift += 7 {
  4013. if shift >= 64 {
  4014. return 0, ErrIntOverflowApi
  4015. }
  4016. if iNdEx >= l {
  4017. return 0, io.ErrUnexpectedEOF
  4018. }
  4019. b := dAtA[iNdEx]
  4020. iNdEx++
  4021. innerWire |= (uint64(b) & 0x7F) << shift
  4022. if b < 0x80 {
  4023. break
  4024. }
  4025. }
  4026. innerWireType := int(innerWire & 0x7)
  4027. if innerWireType == 4 {
  4028. break
  4029. }
  4030. next, err := skipApi(dAtA[start:])
  4031. if err != nil {
  4032. return 0, err
  4033. }
  4034. iNdEx = start + next
  4035. }
  4036. return iNdEx, nil
  4037. case 4:
  4038. return iNdEx, nil
  4039. case 5:
  4040. iNdEx += 4
  4041. return iNdEx, nil
  4042. default:
  4043. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  4044. }
  4045. }
  4046. panic("unreachable")
  4047. }
  4048. var (
  4049. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  4050. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  4051. )
  4052. func init() { proto.RegisterFile("api.proto", fileDescriptorApi) }
  4053. var fileDescriptorApi = []byte{
  4054. // 789 bytes of a gzipped FileDescriptorProto
  4055. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xdd, 0x6e, 0xd3, 0x4a,
  4056. 0x10, 0x3e, 0x1b, 0xe7, 0x77, 0xd2, 0xf4, 0x67, 0x4f, 0xa5, 0xe3, 0xe3, 0x8b, 0x28, 0xb2, 0x8e,
  4057. 0x7a, 0xc2, 0x5f, 0xa4, 0xb6, 0x42, 0xa2, 0x45, 0x5c, 0x94, 0x00, 0x42, 0x88, 0x4a, 0x95, 0x2f,
  4058. 0x10, 0x42, 0x95, 0x2a, 0x37, 0x5e, 0x91, 0x55, 0x13, 0xaf, 0xeb, 0x5d, 0x87, 0xe6, 0x4d, 0xb8,
  4059. 0xe7, 0x92, 0x6b, 0xde, 0x81, 0x4b, 0x9e, 0x00, 0x50, 0x79, 0x11, 0xb4, 0x6b, 0xbb, 0xfe, 0x69,
  4060. 0xea, 0xba, 0xe5, 0x6e, 0x66, 0x34, 0xf3, 0xed, 0xf7, 0xcd, 0x8e, 0x77, 0x0c, 0x2d, 0xdb, 0xa3,
  4061. 0x03, 0xcf, 0x67, 0x82, 0xe1, 0x7f, 0x47, 0x6c, 0x3a, 0x0d, 0x5c, 0x2a, 0xe6, 0x03, 0x4e, 0xfc,
  4062. 0x19, 0x1d, 0x91, 0xc1, 0x98, 0x72, 0xc1, 0xfc, 0xb9, 0xb9, 0x06, 0x2b, 0x7b, 0x8e, 0xf3, 0x32,
  4063. 0xf4, 0x2c, 0xe2, 0x4d, 0xe6, 0xa6, 0x0b, 0x9d, 0x74, 0xe8, 0x14, 0xaf, 0x82, 0x36, 0xa5, 0x8e,
  4064. 0x5e, 0xe9, 0xa1, 0xbe, 0x66, 0x49, 0x13, 0xaf, 0x43, 0xcd, 0x17, 0x74, 0x4a, 0x74, 0x4d, 0xc5,
  4065. 0x42, 0x07, 0x3f, 0x04, 0x34, 0xd6, 0xab, 0x3d, 0xd4, 0x6f, 0x6f, 0xfd, 0x3f, 0xb8, 0xf2, 0xc8,
  4066. 0xc1, 0x3e, 0x73, 0xc8, 0x24, 0x86, 0x47, 0x63, 0xf3, 0x6f, 0x58, 0x1b, 0x4e, 0x88, 0xed, 0x67,
  4067. 0x48, 0x0c, 0x61, 0x25, 0x1b, 0x5c, 0x44, 0xa3, 0x0b, 0x70, 0x1c, 0x70, 0xea, 0x12, 0xce, 0x09,
  4068. 0xd7, 0xb5, 0x9e, 0xd6, 0x6f, 0x59, 0xa9, 0x88, 0xd9, 0x81, 0xf6, 0x33, 0x32, 0x21, 0x82, 0x84,
  4069. 0x98, 0x6f, 0xa1, 0x15, 0xbb, 0x8b, 0xd0, 0x76, 0x40, 0x1b, 0xd3, 0x10, 0xe6, 0x06, 0x02, 0x64,
  4070. 0x8d, 0x94, 0xf0, 0x62, 0x12, 0xf0, 0x71, 0x46, 0xc2, 0x63, 0x58, 0xc9, 0x06, 0x4f, 0x31, 0x86,
  4071. 0xea, 0x94, 0x3a, 0x5c, 0xaf, 0xf4, 0xb4, 0xbe, 0x66, 0x29, 0x5b, 0xf6, 0x92, 0xa7, 0x7b, 0xa9,
  4072. 0x1c, 0xf3, 0x35, 0x2c, 0x87, 0x75, 0x94, 0x70, 0x05, 0x87, 0x77, 0x41, 0xf3, 0x09, 0xd7, 0x91,
  4073. 0xa2, 0xd7, 0xbf, 0x8e, 0x9e, 0x45, 0x38, 0x0b, 0xfc, 0x11, 0xb1, 0x64, 0x91, 0x79, 0x08, 0x4b,
  4074. 0x29, 0xb4, 0x45, 0xe2, 0x0d, 0x68, 0xc6, 0x8d, 0x53, 0x44, 0x5a, 0xd6, 0x85, 0x8f, 0x97, 0xa1,
  4075. 0xe2, 0xb9, 0xea, 0x62, 0x6b, 0x56, 0xc5, 0x73, 0x95, 0xcf, 0xf5, 0x5a, 0xe4, 0x73, 0xf3, 0x00,
  4076. 0x70, 0xa4, 0x71, 0x18, 0xf8, 0x9c, 0xf9, 0x7f, 0xce, 0xf7, 0x33, 0x82, 0xd5, 0x1c, 0xe4, 0x22,
  4077. 0xd2, 0x32, 0x62, 0x9f, 0x45, 0x8d, 0x93, 0x26, 0xfe, 0x07, 0x1a, 0x33, 0x4a, 0x3e, 0x1c, 0xd9,
  4078. 0x42, 0xf1, 0xd5, 0xac, 0xba, 0x74, 0xf7, 0x44, 0x9e, 0x73, 0x46, 0x6f, 0x3d, 0xa7, 0x37, 0x3b,
  4079. 0x56, 0x8d, 0xfc, 0x58, 0x49, 0x2c, 0xea, 0xe9, 0x4d, 0x55, 0x55, 0xa1, 0x9e, 0xf9, 0x1d, 0xc1,
  4080. 0x52, 0x7a, 0x26, 0x62, 0xa6, 0x28, 0xc3, 0xd4, 0x4e, 0xb8, 0xdb, 0x61, 0x84, 0x53, 0x27, 0xe6,
  4081. 0xce, 0xa9, 0x23, 0x87, 0x83, 0x78, 0xd4, 0x89, 0x88, 0x2b, 0x5b, 0x1e, 0x25, 0xbc, 0x98, 0xb6,
  4082. 0xf0, 0x0a, 0x69, 0x4b, 0x44, 0xe1, 0xe9, 0x0d, 0x95, 0x2c, 0x4d, 0x19, 0x19, 0x51, 0x47, 0x31,
  4083. 0xd5, 0x2c, 0x69, 0x4a, 0x3c, 0x47, 0xe8, 0xad, 0x10, 0xcf, 0x11, 0x32, 0xc3, 0xf3, 0x99, 0x0e,
  4084. 0x61, 0x86, 0xe7, 0x33, 0xc9, 0x22, 0x70, 0xe9, 0x99, 0xde, 0x0e, 0x59, 0x48, 0xdb, 0xfc, 0x81,
  4085. 0xa0, 0x93, 0xb9, 0xa5, 0xc5, 0x0a, 0x59, 0xa2, 0x90, 0xdd, 0x5a, 0x61, 0xa4, 0xa2, 0x7e, 0x49,
  4086. 0x45, 0x23, 0x51, 0x91, 0xee, 0x42, 0xf3, 0xf2, 0xb0, 0xde, 0x42, 0xe1, 0x2b, 0xe8, 0x1c, 0x30,
  4087. 0x4e, 0x05, 0x65, 0x6e, 0x38, 0xbd, 0x3b, 0xf1, 0xf4, 0xde, 0xe8, 0x35, 0x53, 0xc3, 0xbb, 0x0f,
  4088. 0xed, 0x04, 0xeb, 0x8a, 0xb1, 0xb5, 0x93, 0xc6, 0xd8, 0x39, 0x41, 0xd5, 0xac, 0x20, 0xf3, 0x0b,
  4089. 0x82, 0xce, 0x81, 0xcf, 0xde, 0xfb, 0x84, 0x47, 0x2f, 0xc1, 0x30, 0xfd, 0x65, 0x6d, 0x16, 0x70,
  4090. 0xcb, 0x94, 0x0d, 0x2c, 0xc2, 0x9f, 0xbb, 0x22, 0x62, 0x69, 0x1c, 0x41, 0x33, 0x0e, 0x48, 0x42,
  4091. 0x27, 0x64, 0x1e, 0xdf, 0xe6, 0x09, 0x99, 0xe3, 0x27, 0x50, 0x9b, 0xd9, 0x93, 0x80, 0x28, 0xda,
  4092. 0x37, 0x68, 0x40, 0x58, 0xb5, 0x5b, 0x79, 0x84, 0xcc, 0x6d, 0x68, 0x27, 0xe7, 0x2f, 0x6a, 0x03,
  4093. 0x86, 0xaa, 0x2d, 0x1f, 0x43, 0x2d, 0x7c, 0x0c, 0xa5, 0xbd, 0xf5, 0xa9, 0x0e, 0x8d, 0xf8, 0x2b,
  4094. 0x3a, 0x06, 0x48, 0xf6, 0x10, 0x2e, 0x7a, 0x41, 0x32, 0xeb, 0xca, 0xb8, 0x5b, 0x32, 0x53, 0xb6,
  4095. 0xf2, 0x10, 0x9a, 0x31, 0x49, 0xbc, 0x51, 0xaa, 0x93, 0xa7, 0x46, 0xbf, 0x6c, 0xc7, 0x15, 0x7a,
  4096. 0x34, 0x09, 0xc5, 0xe8, 0xc9, 0xb8, 0x14, 0xa3, 0x67, 0x46, 0x74, 0x0c, 0x4b, 0xe9, 0x15, 0x89,
  4097. 0x8b, 0x74, 0xe7, 0x76, 0xa9, 0x71, 0xbf, 0x74, 0xae, 0x3c, 0xe9, 0x08, 0x5a, 0x17, 0xeb, 0x03,
  4098. 0x17, 0xcd, 0x42, 0x7a, 0xc9, 0x18, 0x77, 0xca, 0x25, 0xca, 0x03, 0x4e, 0xa0, 0x93, 0x79, 0xee,
  4099. 0xf1, 0xbd, 0x6b, 0x6b, 0x93, 0xc5, 0x60, 0x3c, 0x28, 0x9f, 0x2c, 0x0f, 0x7b, 0x03, 0xf5, 0xf0,
  4100. 0x37, 0x00, 0xff, 0x57, 0x50, 0x78, 0xf1, 0xa7, 0x60, 0x6c, 0x94, 0xc8, 0x8a, 0xee, 0x23, 0xbd,
  4101. 0xef, 0x0b, 0xef, 0x23, 0xf7, 0x63, 0x50, 0x78, 0x1f, 0x97, 0xfe, 0x2c, 0x9e, 0xae, 0x7f, 0x3d,
  4102. 0xef, 0xa2, 0x6f, 0xe7, 0x5d, 0xf4, 0xf3, 0xbc, 0x8b, 0x3e, 0xfe, 0xea, 0xfe, 0xf5, 0xae, 0x32,
  4103. 0xdb, 0x3c, 0xae, 0xab, 0x9f, 0xbd, 0xed, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd7, 0xf8, 0x12,
  4104. 0xbe, 0xf9, 0x09, 0x00, 0x00,
  4105. }