api.pb.go 124 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402
  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. AddPointReply
  9. AddPointReq
  10. AllConfigReply
  11. AllConfigReq
  12. CloseReply
  13. CloseReq
  14. ConfigReply
  15. ConfigReq
  16. ConsumePointReply
  17. ConsumePointReq
  18. ModelArgPoint
  19. ModelArgPointAdd
  20. ModelArgPointConsume
  21. ModelOldPointHistory
  22. ModelPointHistory
  23. ModelPointInfo
  24. OldPointHistoryReply
  25. OldPointHistoryReq
  26. PingReply
  27. PingReq
  28. PointAddByBpReply
  29. PointAddByBpReq
  30. PointHistoryReply
  31. PointHistoryReq
  32. PointInfoReply
  33. PointInfoReq
  34. */
  35. package v1
  36. import proto "github.com/gogo/protobuf/proto"
  37. import fmt "fmt"
  38. import math "math"
  39. import context "golang.org/x/net/context"
  40. import grpc "google.golang.org/grpc"
  41. import binary "encoding/binary"
  42. import io "io"
  43. // Reference imports to suppress errors if they are not otherwise used.
  44. var _ = proto.Marshal
  45. var _ = fmt.Errorf
  46. var _ = math.Inf
  47. // This is a compile-time assertion to ensure that this generated file
  48. // is compatible with the proto package it is being compiled against.
  49. // A compilation error at this line likely means your copy of the
  50. // proto package needs to be updated.
  51. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  52. type AddPointReply struct {
  53. Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
  54. }
  55. func (m *AddPointReply) Reset() { *m = AddPointReply{} }
  56. func (m *AddPointReply) String() string { return proto.CompactTextString(m) }
  57. func (*AddPointReply) ProtoMessage() {}
  58. func (*AddPointReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{0} }
  59. func (m *AddPointReply) GetStatus() int32 {
  60. if m != nil {
  61. return m.Status
  62. }
  63. return 0
  64. }
  65. type AddPointReq struct {
  66. Pc *ModelArgPoint `protobuf:"bytes,2,opt,name=pc" json:"pc,omitempty"`
  67. }
  68. func (m *AddPointReq) Reset() { *m = AddPointReq{} }
  69. func (m *AddPointReq) String() string { return proto.CompactTextString(m) }
  70. func (*AddPointReq) ProtoMessage() {}
  71. func (*AddPointReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{1} }
  72. func (m *AddPointReq) GetPc() *ModelArgPoint {
  73. if m != nil {
  74. return m.Pc
  75. }
  76. return nil
  77. }
  78. type AllConfigReply struct {
  79. Data_0 map[string]int64 `protobuf:"bytes,1,rep,name=data_0,json=data0" json:"data_0,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
  80. }
  81. func (m *AllConfigReply) Reset() { *m = AllConfigReply{} }
  82. func (m *AllConfigReply) String() string { return proto.CompactTextString(m) }
  83. func (*AllConfigReply) ProtoMessage() {}
  84. func (*AllConfigReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{2} }
  85. func (m *AllConfigReply) GetData_0() map[string]int64 {
  86. if m != nil {
  87. return m.Data_0
  88. }
  89. return nil
  90. }
  91. type AllConfigReq struct {
  92. }
  93. func (m *AllConfigReq) Reset() { *m = AllConfigReq{} }
  94. func (m *AllConfigReq) String() string { return proto.CompactTextString(m) }
  95. func (*AllConfigReq) ProtoMessage() {}
  96. func (*AllConfigReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{3} }
  97. type CloseReply struct {
  98. }
  99. func (m *CloseReply) Reset() { *m = CloseReply{} }
  100. func (m *CloseReply) String() string { return proto.CompactTextString(m) }
  101. func (*CloseReply) ProtoMessage() {}
  102. func (*CloseReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{4} }
  103. type CloseReq struct {
  104. }
  105. func (m *CloseReq) Reset() { *m = CloseReq{} }
  106. func (m *CloseReq) String() string { return proto.CompactTextString(m) }
  107. func (*CloseReq) ProtoMessage() {}
  108. func (*CloseReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{5} }
  109. type ConfigReply struct {
  110. Point int64 `protobuf:"varint,1,opt,name=point,proto3" json:"point,omitempty"`
  111. }
  112. func (m *ConfigReply) Reset() { *m = ConfigReply{} }
  113. func (m *ConfigReply) String() string { return proto.CompactTextString(m) }
  114. func (*ConfigReply) ProtoMessage() {}
  115. func (*ConfigReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{6} }
  116. func (m *ConfigReply) GetPoint() int64 {
  117. if m != nil {
  118. return m.Point
  119. }
  120. return 0
  121. }
  122. type ConfigReq struct {
  123. ChangeType int32 `protobuf:"varint,2,opt,name=change_type,json=changeType,proto3" json:"change_type,omitempty"`
  124. Mid int64 `protobuf:"varint,3,opt,name=mid,proto3" json:"mid,omitempty"`
  125. Bp float64 `protobuf:"fixed64,4,opt,name=bp,proto3" json:"bp,omitempty"`
  126. }
  127. func (m *ConfigReq) Reset() { *m = ConfigReq{} }
  128. func (m *ConfigReq) String() string { return proto.CompactTextString(m) }
  129. func (*ConfigReq) ProtoMessage() {}
  130. func (*ConfigReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{7} }
  131. func (m *ConfigReq) GetChangeType() int32 {
  132. if m != nil {
  133. return m.ChangeType
  134. }
  135. return 0
  136. }
  137. func (m *ConfigReq) GetMid() int64 {
  138. if m != nil {
  139. return m.Mid
  140. }
  141. return 0
  142. }
  143. func (m *ConfigReq) GetBp() float64 {
  144. if m != nil {
  145. return m.Bp
  146. }
  147. return 0
  148. }
  149. type ConsumePointReply struct {
  150. Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
  151. }
  152. func (m *ConsumePointReply) Reset() { *m = ConsumePointReply{} }
  153. func (m *ConsumePointReply) String() string { return proto.CompactTextString(m) }
  154. func (*ConsumePointReply) ProtoMessage() {}
  155. func (*ConsumePointReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{8} }
  156. func (m *ConsumePointReply) GetStatus() int32 {
  157. if m != nil {
  158. return m.Status
  159. }
  160. return 0
  161. }
  162. type ConsumePointReq struct {
  163. Pc *ModelArgPointConsume `protobuf:"bytes,2,opt,name=pc" json:"pc,omitempty"`
  164. }
  165. func (m *ConsumePointReq) Reset() { *m = ConsumePointReq{} }
  166. func (m *ConsumePointReq) String() string { return proto.CompactTextString(m) }
  167. func (*ConsumePointReq) ProtoMessage() {}
  168. func (*ConsumePointReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{9} }
  169. func (m *ConsumePointReq) GetPc() *ModelArgPointConsume {
  170. if m != nil {
  171. return m.Pc
  172. }
  173. return nil
  174. }
  175. type ModelArgPoint struct {
  176. Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"`
  177. ChangeType int64 `protobuf:"varint,2,opt,name=change_type,json=changeType,proto3" json:"change_type,omitempty"`
  178. Point int64 `protobuf:"varint,3,opt,name=point,proto3" json:"point,omitempty"`
  179. Remark string `protobuf:"bytes,4,opt,name=remark,proto3" json:"remark,omitempty"`
  180. Operator string `protobuf:"bytes,5,opt,name=operator,proto3" json:"operator,omitempty"`
  181. }
  182. func (m *ModelArgPoint) Reset() { *m = ModelArgPoint{} }
  183. func (m *ModelArgPoint) String() string { return proto.CompactTextString(m) }
  184. func (*ModelArgPoint) ProtoMessage() {}
  185. func (*ModelArgPoint) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{10} }
  186. func (m *ModelArgPoint) GetMid() int64 {
  187. if m != nil {
  188. return m.Mid
  189. }
  190. return 0
  191. }
  192. func (m *ModelArgPoint) GetChangeType() int64 {
  193. if m != nil {
  194. return m.ChangeType
  195. }
  196. return 0
  197. }
  198. func (m *ModelArgPoint) GetPoint() int64 {
  199. if m != nil {
  200. return m.Point
  201. }
  202. return 0
  203. }
  204. func (m *ModelArgPoint) GetRemark() string {
  205. if m != nil {
  206. return m.Remark
  207. }
  208. return ""
  209. }
  210. func (m *ModelArgPoint) GetOperator() string {
  211. if m != nil {
  212. return m.Operator
  213. }
  214. return ""
  215. }
  216. type ModelArgPointAdd struct {
  217. Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"`
  218. ChangeType int32 `protobuf:"varint,2,opt,name=change_type,json=changeType,proto3" json:"change_type,omitempty"`
  219. RelationId string `protobuf:"bytes,3,opt,name=relation_id,json=relationId,proto3" json:"relation_id,omitempty"`
  220. Bcoin float64 `protobuf:"fixed64,4,opt,name=bcoin,proto3" json:"bcoin,omitempty"`
  221. Remark string `protobuf:"bytes,5,opt,name=remark,proto3" json:"remark,omitempty"`
  222. OrderId string `protobuf:"bytes,6,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
  223. }
  224. func (m *ModelArgPointAdd) Reset() { *m = ModelArgPointAdd{} }
  225. func (m *ModelArgPointAdd) String() string { return proto.CompactTextString(m) }
  226. func (*ModelArgPointAdd) ProtoMessage() {}
  227. func (*ModelArgPointAdd) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{11} }
  228. func (m *ModelArgPointAdd) GetMid() int64 {
  229. if m != nil {
  230. return m.Mid
  231. }
  232. return 0
  233. }
  234. func (m *ModelArgPointAdd) GetChangeType() int32 {
  235. if m != nil {
  236. return m.ChangeType
  237. }
  238. return 0
  239. }
  240. func (m *ModelArgPointAdd) GetRelationId() string {
  241. if m != nil {
  242. return m.RelationId
  243. }
  244. return ""
  245. }
  246. func (m *ModelArgPointAdd) GetBcoin() float64 {
  247. if m != nil {
  248. return m.Bcoin
  249. }
  250. return 0
  251. }
  252. func (m *ModelArgPointAdd) GetRemark() string {
  253. if m != nil {
  254. return m.Remark
  255. }
  256. return ""
  257. }
  258. func (m *ModelArgPointAdd) GetOrderId() string {
  259. if m != nil {
  260. return m.OrderId
  261. }
  262. return ""
  263. }
  264. type ModelArgPointConsume struct {
  265. Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"`
  266. ChangeType int64 `protobuf:"varint,2,opt,name=change_type,json=changeType,proto3" json:"change_type,omitempty"`
  267. RelationId string `protobuf:"bytes,3,opt,name=relation_id,json=relationId,proto3" json:"relation_id,omitempty"`
  268. Point int64 `protobuf:"varint,4,opt,name=point,proto3" json:"point,omitempty"`
  269. Remark string `protobuf:"bytes,5,opt,name=remark,proto3" json:"remark,omitempty"`
  270. }
  271. func (m *ModelArgPointConsume) Reset() { *m = ModelArgPointConsume{} }
  272. func (m *ModelArgPointConsume) String() string { return proto.CompactTextString(m) }
  273. func (*ModelArgPointConsume) ProtoMessage() {}
  274. func (*ModelArgPointConsume) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{12} }
  275. func (m *ModelArgPointConsume) GetMid() int64 {
  276. if m != nil {
  277. return m.Mid
  278. }
  279. return 0
  280. }
  281. func (m *ModelArgPointConsume) GetChangeType() int64 {
  282. if m != nil {
  283. return m.ChangeType
  284. }
  285. return 0
  286. }
  287. func (m *ModelArgPointConsume) GetRelationId() string {
  288. if m != nil {
  289. return m.RelationId
  290. }
  291. return ""
  292. }
  293. func (m *ModelArgPointConsume) GetPoint() int64 {
  294. if m != nil {
  295. return m.Point
  296. }
  297. return 0
  298. }
  299. func (m *ModelArgPointConsume) GetRemark() string {
  300. if m != nil {
  301. return m.Remark
  302. }
  303. return ""
  304. }
  305. type ModelOldPointHistory struct {
  306. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  307. Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"`
  308. Point int64 `protobuf:"varint,3,opt,name=point,proto3" json:"point,omitempty"`
  309. OrderId string `protobuf:"bytes,4,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
  310. ChangeType int32 `protobuf:"varint,5,opt,name=change_type,json=changeType,proto3" json:"change_type,omitempty"`
  311. ChangeTime int64 `protobuf:"varint,6,opt,name=change_time,json=changeTime,proto3" json:"change_time,omitempty"`
  312. RelationId string `protobuf:"bytes,7,opt,name=relation_id,json=relationId,proto3" json:"relation_id,omitempty"`
  313. PointBalance int64 `protobuf:"varint,8,opt,name=point_balance,json=pointBalance,proto3" json:"point_balance,omitempty"`
  314. Remark string `protobuf:"bytes,9,opt,name=remark,proto3" json:"remark,omitempty"`
  315. Operator string `protobuf:"bytes,10,opt,name=operator,proto3" json:"operator,omitempty"`
  316. }
  317. func (m *ModelOldPointHistory) Reset() { *m = ModelOldPointHistory{} }
  318. func (m *ModelOldPointHistory) String() string { return proto.CompactTextString(m) }
  319. func (*ModelOldPointHistory) ProtoMessage() {}
  320. func (*ModelOldPointHistory) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{13} }
  321. func (m *ModelOldPointHistory) GetId() int64 {
  322. if m != nil {
  323. return m.Id
  324. }
  325. return 0
  326. }
  327. func (m *ModelOldPointHistory) GetMid() int64 {
  328. if m != nil {
  329. return m.Mid
  330. }
  331. return 0
  332. }
  333. func (m *ModelOldPointHistory) GetPoint() int64 {
  334. if m != nil {
  335. return m.Point
  336. }
  337. return 0
  338. }
  339. func (m *ModelOldPointHistory) GetOrderId() string {
  340. if m != nil {
  341. return m.OrderId
  342. }
  343. return ""
  344. }
  345. func (m *ModelOldPointHistory) GetChangeType() int32 {
  346. if m != nil {
  347. return m.ChangeType
  348. }
  349. return 0
  350. }
  351. func (m *ModelOldPointHistory) GetChangeTime() int64 {
  352. if m != nil {
  353. return m.ChangeTime
  354. }
  355. return 0
  356. }
  357. func (m *ModelOldPointHistory) GetRelationId() string {
  358. if m != nil {
  359. return m.RelationId
  360. }
  361. return ""
  362. }
  363. func (m *ModelOldPointHistory) GetPointBalance() int64 {
  364. if m != nil {
  365. return m.PointBalance
  366. }
  367. return 0
  368. }
  369. func (m *ModelOldPointHistory) GetRemark() string {
  370. if m != nil {
  371. return m.Remark
  372. }
  373. return ""
  374. }
  375. func (m *ModelOldPointHistory) GetOperator() string {
  376. if m != nil {
  377. return m.Operator
  378. }
  379. return ""
  380. }
  381. type ModelPointHistory struct {
  382. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  383. Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"`
  384. Point int64 `protobuf:"varint,3,opt,name=point,proto3" json:"point,omitempty"`
  385. OrderId string `protobuf:"bytes,4,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
  386. ChangeType int32 `protobuf:"varint,5,opt,name=change_type,json=changeType,proto3" json:"change_type,omitempty"`
  387. ChangeTime int64 `protobuf:"varint,6,opt,name=change_time,json=changeTime,proto3" json:"change_time,omitempty"`
  388. RelationId string `protobuf:"bytes,7,opt,name=relation_id,json=relationId,proto3" json:"relation_id,omitempty"`
  389. PointBalance int64 `protobuf:"varint,8,opt,name=point_balance,json=pointBalance,proto3" json:"point_balance,omitempty"`
  390. Remark string `protobuf:"bytes,9,opt,name=remark,proto3" json:"remark,omitempty"`
  391. Operator string `protobuf:"bytes,10,opt,name=operator,proto3" json:"operator,omitempty"`
  392. }
  393. func (m *ModelPointHistory) Reset() { *m = ModelPointHistory{} }
  394. func (m *ModelPointHistory) String() string { return proto.CompactTextString(m) }
  395. func (*ModelPointHistory) ProtoMessage() {}
  396. func (*ModelPointHistory) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{14} }
  397. func (m *ModelPointHistory) GetId() int64 {
  398. if m != nil {
  399. return m.Id
  400. }
  401. return 0
  402. }
  403. func (m *ModelPointHistory) GetMid() int64 {
  404. if m != nil {
  405. return m.Mid
  406. }
  407. return 0
  408. }
  409. func (m *ModelPointHistory) GetPoint() int64 {
  410. if m != nil {
  411. return m.Point
  412. }
  413. return 0
  414. }
  415. func (m *ModelPointHistory) GetOrderId() string {
  416. if m != nil {
  417. return m.OrderId
  418. }
  419. return ""
  420. }
  421. func (m *ModelPointHistory) GetChangeType() int32 {
  422. if m != nil {
  423. return m.ChangeType
  424. }
  425. return 0
  426. }
  427. func (m *ModelPointHistory) GetChangeTime() int64 {
  428. if m != nil {
  429. return m.ChangeTime
  430. }
  431. return 0
  432. }
  433. func (m *ModelPointHistory) GetRelationId() string {
  434. if m != nil {
  435. return m.RelationId
  436. }
  437. return ""
  438. }
  439. func (m *ModelPointHistory) GetPointBalance() int64 {
  440. if m != nil {
  441. return m.PointBalance
  442. }
  443. return 0
  444. }
  445. func (m *ModelPointHistory) GetRemark() string {
  446. if m != nil {
  447. return m.Remark
  448. }
  449. return ""
  450. }
  451. func (m *ModelPointHistory) GetOperator() string {
  452. if m != nil {
  453. return m.Operator
  454. }
  455. return ""
  456. }
  457. type ModelPointInfo struct {
  458. Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"`
  459. PointBalance int64 `protobuf:"varint,2,opt,name=point_balance,json=pointBalance,proto3" json:"point_balance,omitempty"`
  460. Ver int64 `protobuf:"varint,3,opt,name=ver,proto3" json:"ver,omitempty"`
  461. }
  462. func (m *ModelPointInfo) Reset() { *m = ModelPointInfo{} }
  463. func (m *ModelPointInfo) String() string { return proto.CompactTextString(m) }
  464. func (*ModelPointInfo) ProtoMessage() {}
  465. func (*ModelPointInfo) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{15} }
  466. func (m *ModelPointInfo) GetMid() int64 {
  467. if m != nil {
  468. return m.Mid
  469. }
  470. return 0
  471. }
  472. func (m *ModelPointInfo) GetPointBalance() int64 {
  473. if m != nil {
  474. return m.PointBalance
  475. }
  476. return 0
  477. }
  478. func (m *ModelPointInfo) GetVer() int64 {
  479. if m != nil {
  480. return m.Ver
  481. }
  482. return 0
  483. }
  484. type OldPointHistoryReply struct {
  485. Phs []*ModelOldPointHistory `protobuf:"bytes,1,rep,name=phs" json:"phs,omitempty"`
  486. Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
  487. }
  488. func (m *OldPointHistoryReply) Reset() { *m = OldPointHistoryReply{} }
  489. func (m *OldPointHistoryReply) String() string { return proto.CompactTextString(m) }
  490. func (*OldPointHistoryReply) ProtoMessage() {}
  491. func (*OldPointHistoryReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{16} }
  492. func (m *OldPointHistoryReply) GetPhs() []*ModelOldPointHistory {
  493. if m != nil {
  494. return m.Phs
  495. }
  496. return nil
  497. }
  498. func (m *OldPointHistoryReply) GetTotal() int32 {
  499. if m != nil {
  500. return m.Total
  501. }
  502. return 0
  503. }
  504. type OldPointHistoryReq struct {
  505. Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"`
  506. Pn int32 `protobuf:"varint,3,opt,name=pn,proto3" json:"pn,omitempty"`
  507. Ps int32 `protobuf:"varint,4,opt,name=ps,proto3" json:"ps,omitempty"`
  508. }
  509. func (m *OldPointHistoryReq) Reset() { *m = OldPointHistoryReq{} }
  510. func (m *OldPointHistoryReq) String() string { return proto.CompactTextString(m) }
  511. func (*OldPointHistoryReq) ProtoMessage() {}
  512. func (*OldPointHistoryReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{17} }
  513. func (m *OldPointHistoryReq) GetMid() int64 {
  514. if m != nil {
  515. return m.Mid
  516. }
  517. return 0
  518. }
  519. func (m *OldPointHistoryReq) GetPn() int32 {
  520. if m != nil {
  521. return m.Pn
  522. }
  523. return 0
  524. }
  525. func (m *OldPointHistoryReq) GetPs() int32 {
  526. if m != nil {
  527. return m.Ps
  528. }
  529. return 0
  530. }
  531. type PingReply struct {
  532. }
  533. func (m *PingReply) Reset() { *m = PingReply{} }
  534. func (m *PingReply) String() string { return proto.CompactTextString(m) }
  535. func (*PingReply) ProtoMessage() {}
  536. func (*PingReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{18} }
  537. type PingReq struct {
  538. }
  539. func (m *PingReq) Reset() { *m = PingReq{} }
  540. func (m *PingReq) String() string { return proto.CompactTextString(m) }
  541. func (*PingReq) ProtoMessage() {}
  542. func (*PingReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{19} }
  543. type PointAddByBpReply struct {
  544. P int64 `protobuf:"varint,1,opt,name=p,proto3" json:"p,omitempty"`
  545. }
  546. func (m *PointAddByBpReply) Reset() { *m = PointAddByBpReply{} }
  547. func (m *PointAddByBpReply) String() string { return proto.CompactTextString(m) }
  548. func (*PointAddByBpReply) ProtoMessage() {}
  549. func (*PointAddByBpReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{20} }
  550. func (m *PointAddByBpReply) GetP() int64 {
  551. if m != nil {
  552. return m.P
  553. }
  554. return 0
  555. }
  556. type PointAddByBpReq struct {
  557. Pa *ModelArgPointAdd `protobuf:"bytes,2,opt,name=pa" json:"pa,omitempty"`
  558. }
  559. func (m *PointAddByBpReq) Reset() { *m = PointAddByBpReq{} }
  560. func (m *PointAddByBpReq) String() string { return proto.CompactTextString(m) }
  561. func (*PointAddByBpReq) ProtoMessage() {}
  562. func (*PointAddByBpReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{21} }
  563. func (m *PointAddByBpReq) GetPa() *ModelArgPointAdd {
  564. if m != nil {
  565. return m.Pa
  566. }
  567. return nil
  568. }
  569. type PointHistoryReply struct {
  570. Phs []*ModelPointHistory `protobuf:"bytes,1,rep,name=phs" json:"phs,omitempty"`
  571. Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
  572. Ncursor int32 `protobuf:"varint,3,opt,name=ncursor,proto3" json:"ncursor,omitempty"`
  573. }
  574. func (m *PointHistoryReply) Reset() { *m = PointHistoryReply{} }
  575. func (m *PointHistoryReply) String() string { return proto.CompactTextString(m) }
  576. func (*PointHistoryReply) ProtoMessage() {}
  577. func (*PointHistoryReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{22} }
  578. func (m *PointHistoryReply) GetPhs() []*ModelPointHistory {
  579. if m != nil {
  580. return m.Phs
  581. }
  582. return nil
  583. }
  584. func (m *PointHistoryReply) GetTotal() int32 {
  585. if m != nil {
  586. return m.Total
  587. }
  588. return 0
  589. }
  590. func (m *PointHistoryReply) GetNcursor() int32 {
  591. if m != nil {
  592. return m.Ncursor
  593. }
  594. return 0
  595. }
  596. type PointHistoryReq struct {
  597. Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"`
  598. Cursor int32 `protobuf:"varint,3,opt,name=cursor,proto3" json:"cursor,omitempty"`
  599. Ps int32 `protobuf:"varint,4,opt,name=ps,proto3" json:"ps,omitempty"`
  600. }
  601. func (m *PointHistoryReq) Reset() { *m = PointHistoryReq{} }
  602. func (m *PointHistoryReq) String() string { return proto.CompactTextString(m) }
  603. func (*PointHistoryReq) ProtoMessage() {}
  604. func (*PointHistoryReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{23} }
  605. func (m *PointHistoryReq) GetMid() int64 {
  606. if m != nil {
  607. return m.Mid
  608. }
  609. return 0
  610. }
  611. func (m *PointHistoryReq) GetCursor() int32 {
  612. if m != nil {
  613. return m.Cursor
  614. }
  615. return 0
  616. }
  617. func (m *PointHistoryReq) GetPs() int32 {
  618. if m != nil {
  619. return m.Ps
  620. }
  621. return 0
  622. }
  623. type PointInfoReply struct {
  624. Pi *ModelPointInfo `protobuf:"bytes,1,opt,name=pi" json:"pi,omitempty"`
  625. }
  626. func (m *PointInfoReply) Reset() { *m = PointInfoReply{} }
  627. func (m *PointInfoReply) String() string { return proto.CompactTextString(m) }
  628. func (*PointInfoReply) ProtoMessage() {}
  629. func (*PointInfoReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{24} }
  630. func (m *PointInfoReply) GetPi() *ModelPointInfo {
  631. if m != nil {
  632. return m.Pi
  633. }
  634. return nil
  635. }
  636. type PointInfoReq struct {
  637. Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"`
  638. }
  639. func (m *PointInfoReq) Reset() { *m = PointInfoReq{} }
  640. func (m *PointInfoReq) String() string { return proto.CompactTextString(m) }
  641. func (*PointInfoReq) ProtoMessage() {}
  642. func (*PointInfoReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{25} }
  643. func (m *PointInfoReq) GetMid() int64 {
  644. if m != nil {
  645. return m.Mid
  646. }
  647. return 0
  648. }
  649. func init() {
  650. proto.RegisterType((*AddPointReply)(nil), "account.point.AddPointReply")
  651. proto.RegisterType((*AddPointReq)(nil), "account.point.AddPointReq")
  652. proto.RegisterType((*AllConfigReply)(nil), "account.point.AllConfigReply")
  653. proto.RegisterType((*AllConfigReq)(nil), "account.point.AllConfigReq")
  654. proto.RegisterType((*CloseReply)(nil), "account.point.CloseReply")
  655. proto.RegisterType((*CloseReq)(nil), "account.point.CloseReq")
  656. proto.RegisterType((*ConfigReply)(nil), "account.point.ConfigReply")
  657. proto.RegisterType((*ConfigReq)(nil), "account.point.ConfigReq")
  658. proto.RegisterType((*ConsumePointReply)(nil), "account.point.ConsumePointReply")
  659. proto.RegisterType((*ConsumePointReq)(nil), "account.point.ConsumePointReq")
  660. proto.RegisterType((*ModelArgPoint)(nil), "account.point.ModelArgPoint")
  661. proto.RegisterType((*ModelArgPointAdd)(nil), "account.point.ModelArgPointAdd")
  662. proto.RegisterType((*ModelArgPointConsume)(nil), "account.point.ModelArgPointConsume")
  663. proto.RegisterType((*ModelOldPointHistory)(nil), "account.point.ModelOldPointHistory")
  664. proto.RegisterType((*ModelPointHistory)(nil), "account.point.ModelPointHistory")
  665. proto.RegisterType((*ModelPointInfo)(nil), "account.point.ModelPointInfo")
  666. proto.RegisterType((*OldPointHistoryReply)(nil), "account.point.OldPointHistoryReply")
  667. proto.RegisterType((*OldPointHistoryReq)(nil), "account.point.OldPointHistoryReq")
  668. proto.RegisterType((*PingReply)(nil), "account.point.PingReply")
  669. proto.RegisterType((*PingReq)(nil), "account.point.PingReq")
  670. proto.RegisterType((*PointAddByBpReply)(nil), "account.point.PointAddByBpReply")
  671. proto.RegisterType((*PointAddByBpReq)(nil), "account.point.PointAddByBpReq")
  672. proto.RegisterType((*PointHistoryReply)(nil), "account.point.PointHistoryReply")
  673. proto.RegisterType((*PointHistoryReq)(nil), "account.point.PointHistoryReq")
  674. proto.RegisterType((*PointInfoReply)(nil), "account.point.PointInfoReply")
  675. proto.RegisterType((*PointInfoReq)(nil), "account.point.PointInfoReq")
  676. }
  677. // Reference imports to suppress errors if they are not otherwise used.
  678. var _ context.Context
  679. var _ grpc.ClientConn
  680. // This is a compile-time assertion to ensure that this generated file
  681. // is compatible with the grpc package it is being compiled against.
  682. const _ = grpc.SupportPackageIsVersion4
  683. // Client API for Point service
  684. type PointClient interface {
  685. // Config get point config.
  686. Config(ctx context.Context, in *ConfigReq, opts ...grpc.CallOption) (*ConfigReply, error)
  687. // AllConfig all point config
  688. AllConfig(ctx context.Context, in *AllConfigReq, opts ...grpc.CallOption) (*AllConfigReply, error)
  689. // Ping Service
  690. Ping(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PingReply, error)
  691. // Close Service
  692. Close(ctx context.Context, in *CloseReq, opts ...grpc.CallOption) (*CloseReply, error)
  693. // PointInfo .
  694. PointInfo(ctx context.Context, in *PointInfoReq, opts ...grpc.CallOption) (*PointInfoReply, error)
  695. // PointHistory .
  696. PointHistory(ctx context.Context, in *PointHistoryReq, opts ...grpc.CallOption) (*PointHistoryReply, error)
  697. // OldPointHistory old point history .
  698. OldPointHistory(ctx context.Context, in *OldPointHistoryReq, opts ...grpc.CallOption) (*OldPointHistoryReply, error)
  699. // PointAddByBp by bp.
  700. PointAddByBp(ctx context.Context, in *PointAddByBpReq, opts ...grpc.CallOption) (*PointAddByBpReply, error)
  701. // ConsumePoint .
  702. ConsumePoint(ctx context.Context, in *ConsumePointReq, opts ...grpc.CallOption) (*ConsumePointReply, error)
  703. // AddPoint .
  704. AddPoint(ctx context.Context, in *AddPointReq, opts ...grpc.CallOption) (*AddPointReply, error)
  705. }
  706. type pointClient struct {
  707. cc *grpc.ClientConn
  708. }
  709. func NewPointClient(cc *grpc.ClientConn) PointClient {
  710. return &pointClient{cc}
  711. }
  712. func (c *pointClient) Config(ctx context.Context, in *ConfigReq, opts ...grpc.CallOption) (*ConfigReply, error) {
  713. out := new(ConfigReply)
  714. err := grpc.Invoke(ctx, "/account.point.Point/Config", in, out, c.cc, opts...)
  715. if err != nil {
  716. return nil, err
  717. }
  718. return out, nil
  719. }
  720. func (c *pointClient) AllConfig(ctx context.Context, in *AllConfigReq, opts ...grpc.CallOption) (*AllConfigReply, error) {
  721. out := new(AllConfigReply)
  722. err := grpc.Invoke(ctx, "/account.point.Point/AllConfig", in, out, c.cc, opts...)
  723. if err != nil {
  724. return nil, err
  725. }
  726. return out, nil
  727. }
  728. func (c *pointClient) Ping(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PingReply, error) {
  729. out := new(PingReply)
  730. err := grpc.Invoke(ctx, "/account.point.Point/Ping", in, out, c.cc, opts...)
  731. if err != nil {
  732. return nil, err
  733. }
  734. return out, nil
  735. }
  736. func (c *pointClient) Close(ctx context.Context, in *CloseReq, opts ...grpc.CallOption) (*CloseReply, error) {
  737. out := new(CloseReply)
  738. err := grpc.Invoke(ctx, "/account.point.Point/Close", in, out, c.cc, opts...)
  739. if err != nil {
  740. return nil, err
  741. }
  742. return out, nil
  743. }
  744. func (c *pointClient) PointInfo(ctx context.Context, in *PointInfoReq, opts ...grpc.CallOption) (*PointInfoReply, error) {
  745. out := new(PointInfoReply)
  746. err := grpc.Invoke(ctx, "/account.point.Point/PointInfo", in, out, c.cc, opts...)
  747. if err != nil {
  748. return nil, err
  749. }
  750. return out, nil
  751. }
  752. func (c *pointClient) PointHistory(ctx context.Context, in *PointHistoryReq, opts ...grpc.CallOption) (*PointHistoryReply, error) {
  753. out := new(PointHistoryReply)
  754. err := grpc.Invoke(ctx, "/account.point.Point/PointHistory", in, out, c.cc, opts...)
  755. if err != nil {
  756. return nil, err
  757. }
  758. return out, nil
  759. }
  760. func (c *pointClient) OldPointHistory(ctx context.Context, in *OldPointHistoryReq, opts ...grpc.CallOption) (*OldPointHistoryReply, error) {
  761. out := new(OldPointHistoryReply)
  762. err := grpc.Invoke(ctx, "/account.point.Point/OldPointHistory", in, out, c.cc, opts...)
  763. if err != nil {
  764. return nil, err
  765. }
  766. return out, nil
  767. }
  768. func (c *pointClient) PointAddByBp(ctx context.Context, in *PointAddByBpReq, opts ...grpc.CallOption) (*PointAddByBpReply, error) {
  769. out := new(PointAddByBpReply)
  770. err := grpc.Invoke(ctx, "/account.point.Point/PointAddByBp", in, out, c.cc, opts...)
  771. if err != nil {
  772. return nil, err
  773. }
  774. return out, nil
  775. }
  776. func (c *pointClient) ConsumePoint(ctx context.Context, in *ConsumePointReq, opts ...grpc.CallOption) (*ConsumePointReply, error) {
  777. out := new(ConsumePointReply)
  778. err := grpc.Invoke(ctx, "/account.point.Point/ConsumePoint", in, out, c.cc, opts...)
  779. if err != nil {
  780. return nil, err
  781. }
  782. return out, nil
  783. }
  784. func (c *pointClient) AddPoint(ctx context.Context, in *AddPointReq, opts ...grpc.CallOption) (*AddPointReply, error) {
  785. out := new(AddPointReply)
  786. err := grpc.Invoke(ctx, "/account.point.Point/AddPoint", in, out, c.cc, opts...)
  787. if err != nil {
  788. return nil, err
  789. }
  790. return out, nil
  791. }
  792. // Server API for Point service
  793. type PointServer interface {
  794. // Config get point config.
  795. Config(context.Context, *ConfigReq) (*ConfigReply, error)
  796. // AllConfig all point config
  797. AllConfig(context.Context, *AllConfigReq) (*AllConfigReply, error)
  798. // Ping Service
  799. Ping(context.Context, *PingReq) (*PingReply, error)
  800. // Close Service
  801. Close(context.Context, *CloseReq) (*CloseReply, error)
  802. // PointInfo .
  803. PointInfo(context.Context, *PointInfoReq) (*PointInfoReply, error)
  804. // PointHistory .
  805. PointHistory(context.Context, *PointHistoryReq) (*PointHistoryReply, error)
  806. // OldPointHistory old point history .
  807. OldPointHistory(context.Context, *OldPointHistoryReq) (*OldPointHistoryReply, error)
  808. // PointAddByBp by bp.
  809. PointAddByBp(context.Context, *PointAddByBpReq) (*PointAddByBpReply, error)
  810. // ConsumePoint .
  811. ConsumePoint(context.Context, *ConsumePointReq) (*ConsumePointReply, error)
  812. // AddPoint .
  813. AddPoint(context.Context, *AddPointReq) (*AddPointReply, error)
  814. }
  815. func RegisterPointServer(s *grpc.Server, srv PointServer) {
  816. s.RegisterService(&_Point_serviceDesc, srv)
  817. }
  818. func _Point_Config_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  819. in := new(ConfigReq)
  820. if err := dec(in); err != nil {
  821. return nil, err
  822. }
  823. if interceptor == nil {
  824. return srv.(PointServer).Config(ctx, in)
  825. }
  826. info := &grpc.UnaryServerInfo{
  827. Server: srv,
  828. FullMethod: "/account.point.Point/Config",
  829. }
  830. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  831. return srv.(PointServer).Config(ctx, req.(*ConfigReq))
  832. }
  833. return interceptor(ctx, in, info, handler)
  834. }
  835. func _Point_AllConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  836. in := new(AllConfigReq)
  837. if err := dec(in); err != nil {
  838. return nil, err
  839. }
  840. if interceptor == nil {
  841. return srv.(PointServer).AllConfig(ctx, in)
  842. }
  843. info := &grpc.UnaryServerInfo{
  844. Server: srv,
  845. FullMethod: "/account.point.Point/AllConfig",
  846. }
  847. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  848. return srv.(PointServer).AllConfig(ctx, req.(*AllConfigReq))
  849. }
  850. return interceptor(ctx, in, info, handler)
  851. }
  852. func _Point_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  853. in := new(PingReq)
  854. if err := dec(in); err != nil {
  855. return nil, err
  856. }
  857. if interceptor == nil {
  858. return srv.(PointServer).Ping(ctx, in)
  859. }
  860. info := &grpc.UnaryServerInfo{
  861. Server: srv,
  862. FullMethod: "/account.point.Point/Ping",
  863. }
  864. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  865. return srv.(PointServer).Ping(ctx, req.(*PingReq))
  866. }
  867. return interceptor(ctx, in, info, handler)
  868. }
  869. func _Point_Close_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  870. in := new(CloseReq)
  871. if err := dec(in); err != nil {
  872. return nil, err
  873. }
  874. if interceptor == nil {
  875. return srv.(PointServer).Close(ctx, in)
  876. }
  877. info := &grpc.UnaryServerInfo{
  878. Server: srv,
  879. FullMethod: "/account.point.Point/Close",
  880. }
  881. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  882. return srv.(PointServer).Close(ctx, req.(*CloseReq))
  883. }
  884. return interceptor(ctx, in, info, handler)
  885. }
  886. func _Point_PointInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  887. in := new(PointInfoReq)
  888. if err := dec(in); err != nil {
  889. return nil, err
  890. }
  891. if interceptor == nil {
  892. return srv.(PointServer).PointInfo(ctx, in)
  893. }
  894. info := &grpc.UnaryServerInfo{
  895. Server: srv,
  896. FullMethod: "/account.point.Point/PointInfo",
  897. }
  898. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  899. return srv.(PointServer).PointInfo(ctx, req.(*PointInfoReq))
  900. }
  901. return interceptor(ctx, in, info, handler)
  902. }
  903. func _Point_PointHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  904. in := new(PointHistoryReq)
  905. if err := dec(in); err != nil {
  906. return nil, err
  907. }
  908. if interceptor == nil {
  909. return srv.(PointServer).PointHistory(ctx, in)
  910. }
  911. info := &grpc.UnaryServerInfo{
  912. Server: srv,
  913. FullMethod: "/account.point.Point/PointHistory",
  914. }
  915. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  916. return srv.(PointServer).PointHistory(ctx, req.(*PointHistoryReq))
  917. }
  918. return interceptor(ctx, in, info, handler)
  919. }
  920. func _Point_OldPointHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  921. in := new(OldPointHistoryReq)
  922. if err := dec(in); err != nil {
  923. return nil, err
  924. }
  925. if interceptor == nil {
  926. return srv.(PointServer).OldPointHistory(ctx, in)
  927. }
  928. info := &grpc.UnaryServerInfo{
  929. Server: srv,
  930. FullMethod: "/account.point.Point/OldPointHistory",
  931. }
  932. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  933. return srv.(PointServer).OldPointHistory(ctx, req.(*OldPointHistoryReq))
  934. }
  935. return interceptor(ctx, in, info, handler)
  936. }
  937. func _Point_PointAddByBp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  938. in := new(PointAddByBpReq)
  939. if err := dec(in); err != nil {
  940. return nil, err
  941. }
  942. if interceptor == nil {
  943. return srv.(PointServer).PointAddByBp(ctx, in)
  944. }
  945. info := &grpc.UnaryServerInfo{
  946. Server: srv,
  947. FullMethod: "/account.point.Point/PointAddByBp",
  948. }
  949. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  950. return srv.(PointServer).PointAddByBp(ctx, req.(*PointAddByBpReq))
  951. }
  952. return interceptor(ctx, in, info, handler)
  953. }
  954. func _Point_ConsumePoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  955. in := new(ConsumePointReq)
  956. if err := dec(in); err != nil {
  957. return nil, err
  958. }
  959. if interceptor == nil {
  960. return srv.(PointServer).ConsumePoint(ctx, in)
  961. }
  962. info := &grpc.UnaryServerInfo{
  963. Server: srv,
  964. FullMethod: "/account.point.Point/ConsumePoint",
  965. }
  966. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  967. return srv.(PointServer).ConsumePoint(ctx, req.(*ConsumePointReq))
  968. }
  969. return interceptor(ctx, in, info, handler)
  970. }
  971. func _Point_AddPoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  972. in := new(AddPointReq)
  973. if err := dec(in); err != nil {
  974. return nil, err
  975. }
  976. if interceptor == nil {
  977. return srv.(PointServer).AddPoint(ctx, in)
  978. }
  979. info := &grpc.UnaryServerInfo{
  980. Server: srv,
  981. FullMethod: "/account.point.Point/AddPoint",
  982. }
  983. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  984. return srv.(PointServer).AddPoint(ctx, req.(*AddPointReq))
  985. }
  986. return interceptor(ctx, in, info, handler)
  987. }
  988. var _Point_serviceDesc = grpc.ServiceDesc{
  989. ServiceName: "account.point.Point",
  990. HandlerType: (*PointServer)(nil),
  991. Methods: []grpc.MethodDesc{
  992. {
  993. MethodName: "Config",
  994. Handler: _Point_Config_Handler,
  995. },
  996. {
  997. MethodName: "AllConfig",
  998. Handler: _Point_AllConfig_Handler,
  999. },
  1000. {
  1001. MethodName: "Ping",
  1002. Handler: _Point_Ping_Handler,
  1003. },
  1004. {
  1005. MethodName: "Close",
  1006. Handler: _Point_Close_Handler,
  1007. },
  1008. {
  1009. MethodName: "PointInfo",
  1010. Handler: _Point_PointInfo_Handler,
  1011. },
  1012. {
  1013. MethodName: "PointHistory",
  1014. Handler: _Point_PointHistory_Handler,
  1015. },
  1016. {
  1017. MethodName: "OldPointHistory",
  1018. Handler: _Point_OldPointHistory_Handler,
  1019. },
  1020. {
  1021. MethodName: "PointAddByBp",
  1022. Handler: _Point_PointAddByBp_Handler,
  1023. },
  1024. {
  1025. MethodName: "ConsumePoint",
  1026. Handler: _Point_ConsumePoint_Handler,
  1027. },
  1028. {
  1029. MethodName: "AddPoint",
  1030. Handler: _Point_AddPoint_Handler,
  1031. },
  1032. },
  1033. Streams: []grpc.StreamDesc{},
  1034. Metadata: "api.proto",
  1035. }
  1036. func (m *AddPointReply) Marshal() (dAtA []byte, err error) {
  1037. size := m.Size()
  1038. dAtA = make([]byte, size)
  1039. n, err := m.MarshalTo(dAtA)
  1040. if err != nil {
  1041. return nil, err
  1042. }
  1043. return dAtA[:n], nil
  1044. }
  1045. func (m *AddPointReply) MarshalTo(dAtA []byte) (int, error) {
  1046. var i int
  1047. _ = i
  1048. var l int
  1049. _ = l
  1050. if m.Status != 0 {
  1051. dAtA[i] = 0x8
  1052. i++
  1053. i = encodeVarintApi(dAtA, i, uint64(m.Status))
  1054. }
  1055. return i, nil
  1056. }
  1057. func (m *AddPointReq) 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 *AddPointReq) MarshalTo(dAtA []byte) (int, error) {
  1067. var i int
  1068. _ = i
  1069. var l int
  1070. _ = l
  1071. if m.Pc != nil {
  1072. dAtA[i] = 0x12
  1073. i++
  1074. i = encodeVarintApi(dAtA, i, uint64(m.Pc.Size()))
  1075. n1, err := m.Pc.MarshalTo(dAtA[i:])
  1076. if err != nil {
  1077. return 0, err
  1078. }
  1079. i += n1
  1080. }
  1081. return i, nil
  1082. }
  1083. func (m *AllConfigReply) Marshal() (dAtA []byte, err error) {
  1084. size := m.Size()
  1085. dAtA = make([]byte, size)
  1086. n, err := m.MarshalTo(dAtA)
  1087. if err != nil {
  1088. return nil, err
  1089. }
  1090. return dAtA[:n], nil
  1091. }
  1092. func (m *AllConfigReply) MarshalTo(dAtA []byte) (int, error) {
  1093. var i int
  1094. _ = i
  1095. var l int
  1096. _ = l
  1097. if len(m.Data_0) > 0 {
  1098. for k, _ := range m.Data_0 {
  1099. dAtA[i] = 0xa
  1100. i++
  1101. v := m.Data_0[k]
  1102. mapSize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + sovApi(uint64(v))
  1103. i = encodeVarintApi(dAtA, i, uint64(mapSize))
  1104. dAtA[i] = 0xa
  1105. i++
  1106. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  1107. i += copy(dAtA[i:], k)
  1108. dAtA[i] = 0x10
  1109. i++
  1110. i = encodeVarintApi(dAtA, i, uint64(v))
  1111. }
  1112. }
  1113. return i, nil
  1114. }
  1115. func (m *AllConfigReq) Marshal() (dAtA []byte, err error) {
  1116. size := m.Size()
  1117. dAtA = make([]byte, size)
  1118. n, err := m.MarshalTo(dAtA)
  1119. if err != nil {
  1120. return nil, err
  1121. }
  1122. return dAtA[:n], nil
  1123. }
  1124. func (m *AllConfigReq) MarshalTo(dAtA []byte) (int, error) {
  1125. var i int
  1126. _ = i
  1127. var l int
  1128. _ = l
  1129. return i, nil
  1130. }
  1131. func (m *CloseReply) Marshal() (dAtA []byte, err error) {
  1132. size := m.Size()
  1133. dAtA = make([]byte, size)
  1134. n, err := m.MarshalTo(dAtA)
  1135. if err != nil {
  1136. return nil, err
  1137. }
  1138. return dAtA[:n], nil
  1139. }
  1140. func (m *CloseReply) MarshalTo(dAtA []byte) (int, error) {
  1141. var i int
  1142. _ = i
  1143. var l int
  1144. _ = l
  1145. return i, nil
  1146. }
  1147. func (m *CloseReq) Marshal() (dAtA []byte, err error) {
  1148. size := m.Size()
  1149. dAtA = make([]byte, size)
  1150. n, err := m.MarshalTo(dAtA)
  1151. if err != nil {
  1152. return nil, err
  1153. }
  1154. return dAtA[:n], nil
  1155. }
  1156. func (m *CloseReq) MarshalTo(dAtA []byte) (int, error) {
  1157. var i int
  1158. _ = i
  1159. var l int
  1160. _ = l
  1161. return i, nil
  1162. }
  1163. func (m *ConfigReply) Marshal() (dAtA []byte, err error) {
  1164. size := m.Size()
  1165. dAtA = make([]byte, size)
  1166. n, err := m.MarshalTo(dAtA)
  1167. if err != nil {
  1168. return nil, err
  1169. }
  1170. return dAtA[:n], nil
  1171. }
  1172. func (m *ConfigReply) MarshalTo(dAtA []byte) (int, error) {
  1173. var i int
  1174. _ = i
  1175. var l int
  1176. _ = l
  1177. if m.Point != 0 {
  1178. dAtA[i] = 0x8
  1179. i++
  1180. i = encodeVarintApi(dAtA, i, uint64(m.Point))
  1181. }
  1182. return i, nil
  1183. }
  1184. func (m *ConfigReq) Marshal() (dAtA []byte, err error) {
  1185. size := m.Size()
  1186. dAtA = make([]byte, size)
  1187. n, err := m.MarshalTo(dAtA)
  1188. if err != nil {
  1189. return nil, err
  1190. }
  1191. return dAtA[:n], nil
  1192. }
  1193. func (m *ConfigReq) MarshalTo(dAtA []byte) (int, error) {
  1194. var i int
  1195. _ = i
  1196. var l int
  1197. _ = l
  1198. if m.ChangeType != 0 {
  1199. dAtA[i] = 0x10
  1200. i++
  1201. i = encodeVarintApi(dAtA, i, uint64(m.ChangeType))
  1202. }
  1203. if m.Mid != 0 {
  1204. dAtA[i] = 0x18
  1205. i++
  1206. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  1207. }
  1208. if m.Bp != 0 {
  1209. dAtA[i] = 0x21
  1210. i++
  1211. binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Bp))))
  1212. i += 8
  1213. }
  1214. return i, nil
  1215. }
  1216. func (m *ConsumePointReply) Marshal() (dAtA []byte, err error) {
  1217. size := m.Size()
  1218. dAtA = make([]byte, size)
  1219. n, err := m.MarshalTo(dAtA)
  1220. if err != nil {
  1221. return nil, err
  1222. }
  1223. return dAtA[:n], nil
  1224. }
  1225. func (m *ConsumePointReply) MarshalTo(dAtA []byte) (int, error) {
  1226. var i int
  1227. _ = i
  1228. var l int
  1229. _ = l
  1230. if m.Status != 0 {
  1231. dAtA[i] = 0x8
  1232. i++
  1233. i = encodeVarintApi(dAtA, i, uint64(m.Status))
  1234. }
  1235. return i, nil
  1236. }
  1237. func (m *ConsumePointReq) Marshal() (dAtA []byte, err error) {
  1238. size := m.Size()
  1239. dAtA = make([]byte, size)
  1240. n, err := m.MarshalTo(dAtA)
  1241. if err != nil {
  1242. return nil, err
  1243. }
  1244. return dAtA[:n], nil
  1245. }
  1246. func (m *ConsumePointReq) MarshalTo(dAtA []byte) (int, error) {
  1247. var i int
  1248. _ = i
  1249. var l int
  1250. _ = l
  1251. if m.Pc != nil {
  1252. dAtA[i] = 0x12
  1253. i++
  1254. i = encodeVarintApi(dAtA, i, uint64(m.Pc.Size()))
  1255. n2, err := m.Pc.MarshalTo(dAtA[i:])
  1256. if err != nil {
  1257. return 0, err
  1258. }
  1259. i += n2
  1260. }
  1261. return i, nil
  1262. }
  1263. func (m *ModelArgPoint) Marshal() (dAtA []byte, err error) {
  1264. size := m.Size()
  1265. dAtA = make([]byte, size)
  1266. n, err := m.MarshalTo(dAtA)
  1267. if err != nil {
  1268. return nil, err
  1269. }
  1270. return dAtA[:n], nil
  1271. }
  1272. func (m *ModelArgPoint) MarshalTo(dAtA []byte) (int, error) {
  1273. var i int
  1274. _ = i
  1275. var l int
  1276. _ = l
  1277. if m.Mid != 0 {
  1278. dAtA[i] = 0x8
  1279. i++
  1280. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  1281. }
  1282. if m.ChangeType != 0 {
  1283. dAtA[i] = 0x10
  1284. i++
  1285. i = encodeVarintApi(dAtA, i, uint64(m.ChangeType))
  1286. }
  1287. if m.Point != 0 {
  1288. dAtA[i] = 0x18
  1289. i++
  1290. i = encodeVarintApi(dAtA, i, uint64(m.Point))
  1291. }
  1292. if len(m.Remark) > 0 {
  1293. dAtA[i] = 0x22
  1294. i++
  1295. i = encodeVarintApi(dAtA, i, uint64(len(m.Remark)))
  1296. i += copy(dAtA[i:], m.Remark)
  1297. }
  1298. if len(m.Operator) > 0 {
  1299. dAtA[i] = 0x2a
  1300. i++
  1301. i = encodeVarintApi(dAtA, i, uint64(len(m.Operator)))
  1302. i += copy(dAtA[i:], m.Operator)
  1303. }
  1304. return i, nil
  1305. }
  1306. func (m *ModelArgPointAdd) Marshal() (dAtA []byte, err error) {
  1307. size := m.Size()
  1308. dAtA = make([]byte, size)
  1309. n, err := m.MarshalTo(dAtA)
  1310. if err != nil {
  1311. return nil, err
  1312. }
  1313. return dAtA[:n], nil
  1314. }
  1315. func (m *ModelArgPointAdd) MarshalTo(dAtA []byte) (int, error) {
  1316. var i int
  1317. _ = i
  1318. var l int
  1319. _ = l
  1320. if m.Mid != 0 {
  1321. dAtA[i] = 0x8
  1322. i++
  1323. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  1324. }
  1325. if m.ChangeType != 0 {
  1326. dAtA[i] = 0x10
  1327. i++
  1328. i = encodeVarintApi(dAtA, i, uint64(m.ChangeType))
  1329. }
  1330. if len(m.RelationId) > 0 {
  1331. dAtA[i] = 0x1a
  1332. i++
  1333. i = encodeVarintApi(dAtA, i, uint64(len(m.RelationId)))
  1334. i += copy(dAtA[i:], m.RelationId)
  1335. }
  1336. if m.Bcoin != 0 {
  1337. dAtA[i] = 0x21
  1338. i++
  1339. binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Bcoin))))
  1340. i += 8
  1341. }
  1342. if len(m.Remark) > 0 {
  1343. dAtA[i] = 0x2a
  1344. i++
  1345. i = encodeVarintApi(dAtA, i, uint64(len(m.Remark)))
  1346. i += copy(dAtA[i:], m.Remark)
  1347. }
  1348. if len(m.OrderId) > 0 {
  1349. dAtA[i] = 0x32
  1350. i++
  1351. i = encodeVarintApi(dAtA, i, uint64(len(m.OrderId)))
  1352. i += copy(dAtA[i:], m.OrderId)
  1353. }
  1354. return i, nil
  1355. }
  1356. func (m *ModelArgPointConsume) Marshal() (dAtA []byte, err error) {
  1357. size := m.Size()
  1358. dAtA = make([]byte, size)
  1359. n, err := m.MarshalTo(dAtA)
  1360. if err != nil {
  1361. return nil, err
  1362. }
  1363. return dAtA[:n], nil
  1364. }
  1365. func (m *ModelArgPointConsume) MarshalTo(dAtA []byte) (int, error) {
  1366. var i int
  1367. _ = i
  1368. var l int
  1369. _ = l
  1370. if m.Mid != 0 {
  1371. dAtA[i] = 0x8
  1372. i++
  1373. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  1374. }
  1375. if m.ChangeType != 0 {
  1376. dAtA[i] = 0x10
  1377. i++
  1378. i = encodeVarintApi(dAtA, i, uint64(m.ChangeType))
  1379. }
  1380. if len(m.RelationId) > 0 {
  1381. dAtA[i] = 0x1a
  1382. i++
  1383. i = encodeVarintApi(dAtA, i, uint64(len(m.RelationId)))
  1384. i += copy(dAtA[i:], m.RelationId)
  1385. }
  1386. if m.Point != 0 {
  1387. dAtA[i] = 0x20
  1388. i++
  1389. i = encodeVarintApi(dAtA, i, uint64(m.Point))
  1390. }
  1391. if len(m.Remark) > 0 {
  1392. dAtA[i] = 0x2a
  1393. i++
  1394. i = encodeVarintApi(dAtA, i, uint64(len(m.Remark)))
  1395. i += copy(dAtA[i:], m.Remark)
  1396. }
  1397. return i, nil
  1398. }
  1399. func (m *ModelOldPointHistory) Marshal() (dAtA []byte, err error) {
  1400. size := m.Size()
  1401. dAtA = make([]byte, size)
  1402. n, err := m.MarshalTo(dAtA)
  1403. if err != nil {
  1404. return nil, err
  1405. }
  1406. return dAtA[:n], nil
  1407. }
  1408. func (m *ModelOldPointHistory) MarshalTo(dAtA []byte) (int, error) {
  1409. var i int
  1410. _ = i
  1411. var l int
  1412. _ = l
  1413. if m.Id != 0 {
  1414. dAtA[i] = 0x8
  1415. i++
  1416. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  1417. }
  1418. if m.Mid != 0 {
  1419. dAtA[i] = 0x10
  1420. i++
  1421. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  1422. }
  1423. if m.Point != 0 {
  1424. dAtA[i] = 0x18
  1425. i++
  1426. i = encodeVarintApi(dAtA, i, uint64(m.Point))
  1427. }
  1428. if len(m.OrderId) > 0 {
  1429. dAtA[i] = 0x22
  1430. i++
  1431. i = encodeVarintApi(dAtA, i, uint64(len(m.OrderId)))
  1432. i += copy(dAtA[i:], m.OrderId)
  1433. }
  1434. if m.ChangeType != 0 {
  1435. dAtA[i] = 0x28
  1436. i++
  1437. i = encodeVarintApi(dAtA, i, uint64(m.ChangeType))
  1438. }
  1439. if m.ChangeTime != 0 {
  1440. dAtA[i] = 0x30
  1441. i++
  1442. i = encodeVarintApi(dAtA, i, uint64(m.ChangeTime))
  1443. }
  1444. if len(m.RelationId) > 0 {
  1445. dAtA[i] = 0x3a
  1446. i++
  1447. i = encodeVarintApi(dAtA, i, uint64(len(m.RelationId)))
  1448. i += copy(dAtA[i:], m.RelationId)
  1449. }
  1450. if m.PointBalance != 0 {
  1451. dAtA[i] = 0x40
  1452. i++
  1453. i = encodeVarintApi(dAtA, i, uint64(m.PointBalance))
  1454. }
  1455. if len(m.Remark) > 0 {
  1456. dAtA[i] = 0x4a
  1457. i++
  1458. i = encodeVarintApi(dAtA, i, uint64(len(m.Remark)))
  1459. i += copy(dAtA[i:], m.Remark)
  1460. }
  1461. if len(m.Operator) > 0 {
  1462. dAtA[i] = 0x52
  1463. i++
  1464. i = encodeVarintApi(dAtA, i, uint64(len(m.Operator)))
  1465. i += copy(dAtA[i:], m.Operator)
  1466. }
  1467. return i, nil
  1468. }
  1469. func (m *ModelPointHistory) Marshal() (dAtA []byte, err error) {
  1470. size := m.Size()
  1471. dAtA = make([]byte, size)
  1472. n, err := m.MarshalTo(dAtA)
  1473. if err != nil {
  1474. return nil, err
  1475. }
  1476. return dAtA[:n], nil
  1477. }
  1478. func (m *ModelPointHistory) MarshalTo(dAtA []byte) (int, error) {
  1479. var i int
  1480. _ = i
  1481. var l int
  1482. _ = l
  1483. if m.Id != 0 {
  1484. dAtA[i] = 0x8
  1485. i++
  1486. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  1487. }
  1488. if m.Mid != 0 {
  1489. dAtA[i] = 0x10
  1490. i++
  1491. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  1492. }
  1493. if m.Point != 0 {
  1494. dAtA[i] = 0x18
  1495. i++
  1496. i = encodeVarintApi(dAtA, i, uint64(m.Point))
  1497. }
  1498. if len(m.OrderId) > 0 {
  1499. dAtA[i] = 0x22
  1500. i++
  1501. i = encodeVarintApi(dAtA, i, uint64(len(m.OrderId)))
  1502. i += copy(dAtA[i:], m.OrderId)
  1503. }
  1504. if m.ChangeType != 0 {
  1505. dAtA[i] = 0x28
  1506. i++
  1507. i = encodeVarintApi(dAtA, i, uint64(m.ChangeType))
  1508. }
  1509. if m.ChangeTime != 0 {
  1510. dAtA[i] = 0x30
  1511. i++
  1512. i = encodeVarintApi(dAtA, i, uint64(m.ChangeTime))
  1513. }
  1514. if len(m.RelationId) > 0 {
  1515. dAtA[i] = 0x3a
  1516. i++
  1517. i = encodeVarintApi(dAtA, i, uint64(len(m.RelationId)))
  1518. i += copy(dAtA[i:], m.RelationId)
  1519. }
  1520. if m.PointBalance != 0 {
  1521. dAtA[i] = 0x40
  1522. i++
  1523. i = encodeVarintApi(dAtA, i, uint64(m.PointBalance))
  1524. }
  1525. if len(m.Remark) > 0 {
  1526. dAtA[i] = 0x4a
  1527. i++
  1528. i = encodeVarintApi(dAtA, i, uint64(len(m.Remark)))
  1529. i += copy(dAtA[i:], m.Remark)
  1530. }
  1531. if len(m.Operator) > 0 {
  1532. dAtA[i] = 0x52
  1533. i++
  1534. i = encodeVarintApi(dAtA, i, uint64(len(m.Operator)))
  1535. i += copy(dAtA[i:], m.Operator)
  1536. }
  1537. return i, nil
  1538. }
  1539. func (m *ModelPointInfo) Marshal() (dAtA []byte, err error) {
  1540. size := m.Size()
  1541. dAtA = make([]byte, size)
  1542. n, err := m.MarshalTo(dAtA)
  1543. if err != nil {
  1544. return nil, err
  1545. }
  1546. return dAtA[:n], nil
  1547. }
  1548. func (m *ModelPointInfo) MarshalTo(dAtA []byte) (int, error) {
  1549. var i int
  1550. _ = i
  1551. var l int
  1552. _ = l
  1553. if m.Mid != 0 {
  1554. dAtA[i] = 0x8
  1555. i++
  1556. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  1557. }
  1558. if m.PointBalance != 0 {
  1559. dAtA[i] = 0x10
  1560. i++
  1561. i = encodeVarintApi(dAtA, i, uint64(m.PointBalance))
  1562. }
  1563. if m.Ver != 0 {
  1564. dAtA[i] = 0x18
  1565. i++
  1566. i = encodeVarintApi(dAtA, i, uint64(m.Ver))
  1567. }
  1568. return i, nil
  1569. }
  1570. func (m *OldPointHistoryReply) Marshal() (dAtA []byte, err error) {
  1571. size := m.Size()
  1572. dAtA = make([]byte, size)
  1573. n, err := m.MarshalTo(dAtA)
  1574. if err != nil {
  1575. return nil, err
  1576. }
  1577. return dAtA[:n], nil
  1578. }
  1579. func (m *OldPointHistoryReply) MarshalTo(dAtA []byte) (int, error) {
  1580. var i int
  1581. _ = i
  1582. var l int
  1583. _ = l
  1584. if len(m.Phs) > 0 {
  1585. for _, msg := range m.Phs {
  1586. dAtA[i] = 0xa
  1587. i++
  1588. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  1589. n, err := msg.MarshalTo(dAtA[i:])
  1590. if err != nil {
  1591. return 0, err
  1592. }
  1593. i += n
  1594. }
  1595. }
  1596. if m.Total != 0 {
  1597. dAtA[i] = 0x10
  1598. i++
  1599. i = encodeVarintApi(dAtA, i, uint64(m.Total))
  1600. }
  1601. return i, nil
  1602. }
  1603. func (m *OldPointHistoryReq) Marshal() (dAtA []byte, err error) {
  1604. size := m.Size()
  1605. dAtA = make([]byte, size)
  1606. n, err := m.MarshalTo(dAtA)
  1607. if err != nil {
  1608. return nil, err
  1609. }
  1610. return dAtA[:n], nil
  1611. }
  1612. func (m *OldPointHistoryReq) MarshalTo(dAtA []byte) (int, error) {
  1613. var i int
  1614. _ = i
  1615. var l int
  1616. _ = l
  1617. if m.Mid != 0 {
  1618. dAtA[i] = 0x10
  1619. i++
  1620. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  1621. }
  1622. if m.Pn != 0 {
  1623. dAtA[i] = 0x18
  1624. i++
  1625. i = encodeVarintApi(dAtA, i, uint64(m.Pn))
  1626. }
  1627. if m.Ps != 0 {
  1628. dAtA[i] = 0x20
  1629. i++
  1630. i = encodeVarintApi(dAtA, i, uint64(m.Ps))
  1631. }
  1632. return i, nil
  1633. }
  1634. func (m *PingReply) Marshal() (dAtA []byte, err error) {
  1635. size := m.Size()
  1636. dAtA = make([]byte, size)
  1637. n, err := m.MarshalTo(dAtA)
  1638. if err != nil {
  1639. return nil, err
  1640. }
  1641. return dAtA[:n], nil
  1642. }
  1643. func (m *PingReply) MarshalTo(dAtA []byte) (int, error) {
  1644. var i int
  1645. _ = i
  1646. var l int
  1647. _ = l
  1648. return i, nil
  1649. }
  1650. func (m *PingReq) Marshal() (dAtA []byte, err error) {
  1651. size := m.Size()
  1652. dAtA = make([]byte, size)
  1653. n, err := m.MarshalTo(dAtA)
  1654. if err != nil {
  1655. return nil, err
  1656. }
  1657. return dAtA[:n], nil
  1658. }
  1659. func (m *PingReq) MarshalTo(dAtA []byte) (int, error) {
  1660. var i int
  1661. _ = i
  1662. var l int
  1663. _ = l
  1664. return i, nil
  1665. }
  1666. func (m *PointAddByBpReply) Marshal() (dAtA []byte, err error) {
  1667. size := m.Size()
  1668. dAtA = make([]byte, size)
  1669. n, err := m.MarshalTo(dAtA)
  1670. if err != nil {
  1671. return nil, err
  1672. }
  1673. return dAtA[:n], nil
  1674. }
  1675. func (m *PointAddByBpReply) MarshalTo(dAtA []byte) (int, error) {
  1676. var i int
  1677. _ = i
  1678. var l int
  1679. _ = l
  1680. if m.P != 0 {
  1681. dAtA[i] = 0x8
  1682. i++
  1683. i = encodeVarintApi(dAtA, i, uint64(m.P))
  1684. }
  1685. return i, nil
  1686. }
  1687. func (m *PointAddByBpReq) Marshal() (dAtA []byte, err error) {
  1688. size := m.Size()
  1689. dAtA = make([]byte, size)
  1690. n, err := m.MarshalTo(dAtA)
  1691. if err != nil {
  1692. return nil, err
  1693. }
  1694. return dAtA[:n], nil
  1695. }
  1696. func (m *PointAddByBpReq) MarshalTo(dAtA []byte) (int, error) {
  1697. var i int
  1698. _ = i
  1699. var l int
  1700. _ = l
  1701. if m.Pa != nil {
  1702. dAtA[i] = 0x12
  1703. i++
  1704. i = encodeVarintApi(dAtA, i, uint64(m.Pa.Size()))
  1705. n3, err := m.Pa.MarshalTo(dAtA[i:])
  1706. if err != nil {
  1707. return 0, err
  1708. }
  1709. i += n3
  1710. }
  1711. return i, nil
  1712. }
  1713. func (m *PointHistoryReply) Marshal() (dAtA []byte, err error) {
  1714. size := m.Size()
  1715. dAtA = make([]byte, size)
  1716. n, err := m.MarshalTo(dAtA)
  1717. if err != nil {
  1718. return nil, err
  1719. }
  1720. return dAtA[:n], nil
  1721. }
  1722. func (m *PointHistoryReply) MarshalTo(dAtA []byte) (int, error) {
  1723. var i int
  1724. _ = i
  1725. var l int
  1726. _ = l
  1727. if len(m.Phs) > 0 {
  1728. for _, msg := range m.Phs {
  1729. dAtA[i] = 0xa
  1730. i++
  1731. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  1732. n, err := msg.MarshalTo(dAtA[i:])
  1733. if err != nil {
  1734. return 0, err
  1735. }
  1736. i += n
  1737. }
  1738. }
  1739. if m.Total != 0 {
  1740. dAtA[i] = 0x10
  1741. i++
  1742. i = encodeVarintApi(dAtA, i, uint64(m.Total))
  1743. }
  1744. if m.Ncursor != 0 {
  1745. dAtA[i] = 0x18
  1746. i++
  1747. i = encodeVarintApi(dAtA, i, uint64(m.Ncursor))
  1748. }
  1749. return i, nil
  1750. }
  1751. func (m *PointHistoryReq) Marshal() (dAtA []byte, err error) {
  1752. size := m.Size()
  1753. dAtA = make([]byte, size)
  1754. n, err := m.MarshalTo(dAtA)
  1755. if err != nil {
  1756. return nil, err
  1757. }
  1758. return dAtA[:n], nil
  1759. }
  1760. func (m *PointHistoryReq) MarshalTo(dAtA []byte) (int, error) {
  1761. var i int
  1762. _ = i
  1763. var l int
  1764. _ = l
  1765. if m.Mid != 0 {
  1766. dAtA[i] = 0x10
  1767. i++
  1768. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  1769. }
  1770. if m.Cursor != 0 {
  1771. dAtA[i] = 0x18
  1772. i++
  1773. i = encodeVarintApi(dAtA, i, uint64(m.Cursor))
  1774. }
  1775. if m.Ps != 0 {
  1776. dAtA[i] = 0x20
  1777. i++
  1778. i = encodeVarintApi(dAtA, i, uint64(m.Ps))
  1779. }
  1780. return i, nil
  1781. }
  1782. func (m *PointInfoReply) Marshal() (dAtA []byte, err error) {
  1783. size := m.Size()
  1784. dAtA = make([]byte, size)
  1785. n, err := m.MarshalTo(dAtA)
  1786. if err != nil {
  1787. return nil, err
  1788. }
  1789. return dAtA[:n], nil
  1790. }
  1791. func (m *PointInfoReply) MarshalTo(dAtA []byte) (int, error) {
  1792. var i int
  1793. _ = i
  1794. var l int
  1795. _ = l
  1796. if m.Pi != nil {
  1797. dAtA[i] = 0xa
  1798. i++
  1799. i = encodeVarintApi(dAtA, i, uint64(m.Pi.Size()))
  1800. n4, err := m.Pi.MarshalTo(dAtA[i:])
  1801. if err != nil {
  1802. return 0, err
  1803. }
  1804. i += n4
  1805. }
  1806. return i, nil
  1807. }
  1808. func (m *PointInfoReq) Marshal() (dAtA []byte, err error) {
  1809. size := m.Size()
  1810. dAtA = make([]byte, size)
  1811. n, err := m.MarshalTo(dAtA)
  1812. if err != nil {
  1813. return nil, err
  1814. }
  1815. return dAtA[:n], nil
  1816. }
  1817. func (m *PointInfoReq) MarshalTo(dAtA []byte) (int, error) {
  1818. var i int
  1819. _ = i
  1820. var l int
  1821. _ = l
  1822. if m.Mid != 0 {
  1823. dAtA[i] = 0x10
  1824. i++
  1825. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  1826. }
  1827. return i, nil
  1828. }
  1829. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  1830. for v >= 1<<7 {
  1831. dAtA[offset] = uint8(v&0x7f | 0x80)
  1832. v >>= 7
  1833. offset++
  1834. }
  1835. dAtA[offset] = uint8(v)
  1836. return offset + 1
  1837. }
  1838. func (m *AddPointReply) Size() (n int) {
  1839. var l int
  1840. _ = l
  1841. if m.Status != 0 {
  1842. n += 1 + sovApi(uint64(m.Status))
  1843. }
  1844. return n
  1845. }
  1846. func (m *AddPointReq) Size() (n int) {
  1847. var l int
  1848. _ = l
  1849. if m.Pc != nil {
  1850. l = m.Pc.Size()
  1851. n += 1 + l + sovApi(uint64(l))
  1852. }
  1853. return n
  1854. }
  1855. func (m *AllConfigReply) Size() (n int) {
  1856. var l int
  1857. _ = l
  1858. if len(m.Data_0) > 0 {
  1859. for k, v := range m.Data_0 {
  1860. _ = k
  1861. _ = v
  1862. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + sovApi(uint64(v))
  1863. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  1864. }
  1865. }
  1866. return n
  1867. }
  1868. func (m *AllConfigReq) Size() (n int) {
  1869. var l int
  1870. _ = l
  1871. return n
  1872. }
  1873. func (m *CloseReply) Size() (n int) {
  1874. var l int
  1875. _ = l
  1876. return n
  1877. }
  1878. func (m *CloseReq) Size() (n int) {
  1879. var l int
  1880. _ = l
  1881. return n
  1882. }
  1883. func (m *ConfigReply) Size() (n int) {
  1884. var l int
  1885. _ = l
  1886. if m.Point != 0 {
  1887. n += 1 + sovApi(uint64(m.Point))
  1888. }
  1889. return n
  1890. }
  1891. func (m *ConfigReq) Size() (n int) {
  1892. var l int
  1893. _ = l
  1894. if m.ChangeType != 0 {
  1895. n += 1 + sovApi(uint64(m.ChangeType))
  1896. }
  1897. if m.Mid != 0 {
  1898. n += 1 + sovApi(uint64(m.Mid))
  1899. }
  1900. if m.Bp != 0 {
  1901. n += 9
  1902. }
  1903. return n
  1904. }
  1905. func (m *ConsumePointReply) Size() (n int) {
  1906. var l int
  1907. _ = l
  1908. if m.Status != 0 {
  1909. n += 1 + sovApi(uint64(m.Status))
  1910. }
  1911. return n
  1912. }
  1913. func (m *ConsumePointReq) Size() (n int) {
  1914. var l int
  1915. _ = l
  1916. if m.Pc != nil {
  1917. l = m.Pc.Size()
  1918. n += 1 + l + sovApi(uint64(l))
  1919. }
  1920. return n
  1921. }
  1922. func (m *ModelArgPoint) Size() (n int) {
  1923. var l int
  1924. _ = l
  1925. if m.Mid != 0 {
  1926. n += 1 + sovApi(uint64(m.Mid))
  1927. }
  1928. if m.ChangeType != 0 {
  1929. n += 1 + sovApi(uint64(m.ChangeType))
  1930. }
  1931. if m.Point != 0 {
  1932. n += 1 + sovApi(uint64(m.Point))
  1933. }
  1934. l = len(m.Remark)
  1935. if l > 0 {
  1936. n += 1 + l + sovApi(uint64(l))
  1937. }
  1938. l = len(m.Operator)
  1939. if l > 0 {
  1940. n += 1 + l + sovApi(uint64(l))
  1941. }
  1942. return n
  1943. }
  1944. func (m *ModelArgPointAdd) Size() (n int) {
  1945. var l int
  1946. _ = l
  1947. if m.Mid != 0 {
  1948. n += 1 + sovApi(uint64(m.Mid))
  1949. }
  1950. if m.ChangeType != 0 {
  1951. n += 1 + sovApi(uint64(m.ChangeType))
  1952. }
  1953. l = len(m.RelationId)
  1954. if l > 0 {
  1955. n += 1 + l + sovApi(uint64(l))
  1956. }
  1957. if m.Bcoin != 0 {
  1958. n += 9
  1959. }
  1960. l = len(m.Remark)
  1961. if l > 0 {
  1962. n += 1 + l + sovApi(uint64(l))
  1963. }
  1964. l = len(m.OrderId)
  1965. if l > 0 {
  1966. n += 1 + l + sovApi(uint64(l))
  1967. }
  1968. return n
  1969. }
  1970. func (m *ModelArgPointConsume) Size() (n int) {
  1971. var l int
  1972. _ = l
  1973. if m.Mid != 0 {
  1974. n += 1 + sovApi(uint64(m.Mid))
  1975. }
  1976. if m.ChangeType != 0 {
  1977. n += 1 + sovApi(uint64(m.ChangeType))
  1978. }
  1979. l = len(m.RelationId)
  1980. if l > 0 {
  1981. n += 1 + l + sovApi(uint64(l))
  1982. }
  1983. if m.Point != 0 {
  1984. n += 1 + sovApi(uint64(m.Point))
  1985. }
  1986. l = len(m.Remark)
  1987. if l > 0 {
  1988. n += 1 + l + sovApi(uint64(l))
  1989. }
  1990. return n
  1991. }
  1992. func (m *ModelOldPointHistory) Size() (n int) {
  1993. var l int
  1994. _ = l
  1995. if m.Id != 0 {
  1996. n += 1 + sovApi(uint64(m.Id))
  1997. }
  1998. if m.Mid != 0 {
  1999. n += 1 + sovApi(uint64(m.Mid))
  2000. }
  2001. if m.Point != 0 {
  2002. n += 1 + sovApi(uint64(m.Point))
  2003. }
  2004. l = len(m.OrderId)
  2005. if l > 0 {
  2006. n += 1 + l + sovApi(uint64(l))
  2007. }
  2008. if m.ChangeType != 0 {
  2009. n += 1 + sovApi(uint64(m.ChangeType))
  2010. }
  2011. if m.ChangeTime != 0 {
  2012. n += 1 + sovApi(uint64(m.ChangeTime))
  2013. }
  2014. l = len(m.RelationId)
  2015. if l > 0 {
  2016. n += 1 + l + sovApi(uint64(l))
  2017. }
  2018. if m.PointBalance != 0 {
  2019. n += 1 + sovApi(uint64(m.PointBalance))
  2020. }
  2021. l = len(m.Remark)
  2022. if l > 0 {
  2023. n += 1 + l + sovApi(uint64(l))
  2024. }
  2025. l = len(m.Operator)
  2026. if l > 0 {
  2027. n += 1 + l + sovApi(uint64(l))
  2028. }
  2029. return n
  2030. }
  2031. func (m *ModelPointHistory) Size() (n int) {
  2032. var l int
  2033. _ = l
  2034. if m.Id != 0 {
  2035. n += 1 + sovApi(uint64(m.Id))
  2036. }
  2037. if m.Mid != 0 {
  2038. n += 1 + sovApi(uint64(m.Mid))
  2039. }
  2040. if m.Point != 0 {
  2041. n += 1 + sovApi(uint64(m.Point))
  2042. }
  2043. l = len(m.OrderId)
  2044. if l > 0 {
  2045. n += 1 + l + sovApi(uint64(l))
  2046. }
  2047. if m.ChangeType != 0 {
  2048. n += 1 + sovApi(uint64(m.ChangeType))
  2049. }
  2050. if m.ChangeTime != 0 {
  2051. n += 1 + sovApi(uint64(m.ChangeTime))
  2052. }
  2053. l = len(m.RelationId)
  2054. if l > 0 {
  2055. n += 1 + l + sovApi(uint64(l))
  2056. }
  2057. if m.PointBalance != 0 {
  2058. n += 1 + sovApi(uint64(m.PointBalance))
  2059. }
  2060. l = len(m.Remark)
  2061. if l > 0 {
  2062. n += 1 + l + sovApi(uint64(l))
  2063. }
  2064. l = len(m.Operator)
  2065. if l > 0 {
  2066. n += 1 + l + sovApi(uint64(l))
  2067. }
  2068. return n
  2069. }
  2070. func (m *ModelPointInfo) Size() (n int) {
  2071. var l int
  2072. _ = l
  2073. if m.Mid != 0 {
  2074. n += 1 + sovApi(uint64(m.Mid))
  2075. }
  2076. if m.PointBalance != 0 {
  2077. n += 1 + sovApi(uint64(m.PointBalance))
  2078. }
  2079. if m.Ver != 0 {
  2080. n += 1 + sovApi(uint64(m.Ver))
  2081. }
  2082. return n
  2083. }
  2084. func (m *OldPointHistoryReply) Size() (n int) {
  2085. var l int
  2086. _ = l
  2087. if len(m.Phs) > 0 {
  2088. for _, e := range m.Phs {
  2089. l = e.Size()
  2090. n += 1 + l + sovApi(uint64(l))
  2091. }
  2092. }
  2093. if m.Total != 0 {
  2094. n += 1 + sovApi(uint64(m.Total))
  2095. }
  2096. return n
  2097. }
  2098. func (m *OldPointHistoryReq) Size() (n int) {
  2099. var l int
  2100. _ = l
  2101. if m.Mid != 0 {
  2102. n += 1 + sovApi(uint64(m.Mid))
  2103. }
  2104. if m.Pn != 0 {
  2105. n += 1 + sovApi(uint64(m.Pn))
  2106. }
  2107. if m.Ps != 0 {
  2108. n += 1 + sovApi(uint64(m.Ps))
  2109. }
  2110. return n
  2111. }
  2112. func (m *PingReply) Size() (n int) {
  2113. var l int
  2114. _ = l
  2115. return n
  2116. }
  2117. func (m *PingReq) Size() (n int) {
  2118. var l int
  2119. _ = l
  2120. return n
  2121. }
  2122. func (m *PointAddByBpReply) Size() (n int) {
  2123. var l int
  2124. _ = l
  2125. if m.P != 0 {
  2126. n += 1 + sovApi(uint64(m.P))
  2127. }
  2128. return n
  2129. }
  2130. func (m *PointAddByBpReq) Size() (n int) {
  2131. var l int
  2132. _ = l
  2133. if m.Pa != nil {
  2134. l = m.Pa.Size()
  2135. n += 1 + l + sovApi(uint64(l))
  2136. }
  2137. return n
  2138. }
  2139. func (m *PointHistoryReply) Size() (n int) {
  2140. var l int
  2141. _ = l
  2142. if len(m.Phs) > 0 {
  2143. for _, e := range m.Phs {
  2144. l = e.Size()
  2145. n += 1 + l + sovApi(uint64(l))
  2146. }
  2147. }
  2148. if m.Total != 0 {
  2149. n += 1 + sovApi(uint64(m.Total))
  2150. }
  2151. if m.Ncursor != 0 {
  2152. n += 1 + sovApi(uint64(m.Ncursor))
  2153. }
  2154. return n
  2155. }
  2156. func (m *PointHistoryReq) Size() (n int) {
  2157. var l int
  2158. _ = l
  2159. if m.Mid != 0 {
  2160. n += 1 + sovApi(uint64(m.Mid))
  2161. }
  2162. if m.Cursor != 0 {
  2163. n += 1 + sovApi(uint64(m.Cursor))
  2164. }
  2165. if m.Ps != 0 {
  2166. n += 1 + sovApi(uint64(m.Ps))
  2167. }
  2168. return n
  2169. }
  2170. func (m *PointInfoReply) Size() (n int) {
  2171. var l int
  2172. _ = l
  2173. if m.Pi != nil {
  2174. l = m.Pi.Size()
  2175. n += 1 + l + sovApi(uint64(l))
  2176. }
  2177. return n
  2178. }
  2179. func (m *PointInfoReq) Size() (n int) {
  2180. var l int
  2181. _ = l
  2182. if m.Mid != 0 {
  2183. n += 1 + sovApi(uint64(m.Mid))
  2184. }
  2185. return n
  2186. }
  2187. func sovApi(x uint64) (n int) {
  2188. for {
  2189. n++
  2190. x >>= 7
  2191. if x == 0 {
  2192. break
  2193. }
  2194. }
  2195. return n
  2196. }
  2197. func sozApi(x uint64) (n int) {
  2198. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  2199. }
  2200. func (m *AddPointReply) Unmarshal(dAtA []byte) error {
  2201. l := len(dAtA)
  2202. iNdEx := 0
  2203. for iNdEx < l {
  2204. preIndex := iNdEx
  2205. var wire uint64
  2206. for shift := uint(0); ; shift += 7 {
  2207. if shift >= 64 {
  2208. return ErrIntOverflowApi
  2209. }
  2210. if iNdEx >= l {
  2211. return io.ErrUnexpectedEOF
  2212. }
  2213. b := dAtA[iNdEx]
  2214. iNdEx++
  2215. wire |= (uint64(b) & 0x7F) << shift
  2216. if b < 0x80 {
  2217. break
  2218. }
  2219. }
  2220. fieldNum := int32(wire >> 3)
  2221. wireType := int(wire & 0x7)
  2222. if wireType == 4 {
  2223. return fmt.Errorf("proto: AddPointReply: wiretype end group for non-group")
  2224. }
  2225. if fieldNum <= 0 {
  2226. return fmt.Errorf("proto: AddPointReply: illegal tag %d (wire type %d)", fieldNum, wire)
  2227. }
  2228. switch fieldNum {
  2229. case 1:
  2230. if wireType != 0 {
  2231. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  2232. }
  2233. m.Status = 0
  2234. for shift := uint(0); ; shift += 7 {
  2235. if shift >= 64 {
  2236. return ErrIntOverflowApi
  2237. }
  2238. if iNdEx >= l {
  2239. return io.ErrUnexpectedEOF
  2240. }
  2241. b := dAtA[iNdEx]
  2242. iNdEx++
  2243. m.Status |= (int32(b) & 0x7F) << shift
  2244. if b < 0x80 {
  2245. break
  2246. }
  2247. }
  2248. default:
  2249. iNdEx = preIndex
  2250. skippy, err := skipApi(dAtA[iNdEx:])
  2251. if err != nil {
  2252. return err
  2253. }
  2254. if skippy < 0 {
  2255. return ErrInvalidLengthApi
  2256. }
  2257. if (iNdEx + skippy) > l {
  2258. return io.ErrUnexpectedEOF
  2259. }
  2260. iNdEx += skippy
  2261. }
  2262. }
  2263. if iNdEx > l {
  2264. return io.ErrUnexpectedEOF
  2265. }
  2266. return nil
  2267. }
  2268. func (m *AddPointReq) Unmarshal(dAtA []byte) error {
  2269. l := len(dAtA)
  2270. iNdEx := 0
  2271. for iNdEx < l {
  2272. preIndex := iNdEx
  2273. var wire uint64
  2274. for shift := uint(0); ; shift += 7 {
  2275. if shift >= 64 {
  2276. return ErrIntOverflowApi
  2277. }
  2278. if iNdEx >= l {
  2279. return io.ErrUnexpectedEOF
  2280. }
  2281. b := dAtA[iNdEx]
  2282. iNdEx++
  2283. wire |= (uint64(b) & 0x7F) << shift
  2284. if b < 0x80 {
  2285. break
  2286. }
  2287. }
  2288. fieldNum := int32(wire >> 3)
  2289. wireType := int(wire & 0x7)
  2290. if wireType == 4 {
  2291. return fmt.Errorf("proto: AddPointReq: wiretype end group for non-group")
  2292. }
  2293. if fieldNum <= 0 {
  2294. return fmt.Errorf("proto: AddPointReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2295. }
  2296. switch fieldNum {
  2297. case 2:
  2298. if wireType != 2 {
  2299. return fmt.Errorf("proto: wrong wireType = %d for field Pc", wireType)
  2300. }
  2301. var msglen int
  2302. for shift := uint(0); ; shift += 7 {
  2303. if shift >= 64 {
  2304. return ErrIntOverflowApi
  2305. }
  2306. if iNdEx >= l {
  2307. return io.ErrUnexpectedEOF
  2308. }
  2309. b := dAtA[iNdEx]
  2310. iNdEx++
  2311. msglen |= (int(b) & 0x7F) << shift
  2312. if b < 0x80 {
  2313. break
  2314. }
  2315. }
  2316. if msglen < 0 {
  2317. return ErrInvalidLengthApi
  2318. }
  2319. postIndex := iNdEx + msglen
  2320. if postIndex > l {
  2321. return io.ErrUnexpectedEOF
  2322. }
  2323. if m.Pc == nil {
  2324. m.Pc = &ModelArgPoint{}
  2325. }
  2326. if err := m.Pc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2327. return err
  2328. }
  2329. iNdEx = postIndex
  2330. default:
  2331. iNdEx = preIndex
  2332. skippy, err := skipApi(dAtA[iNdEx:])
  2333. if err != nil {
  2334. return err
  2335. }
  2336. if skippy < 0 {
  2337. return ErrInvalidLengthApi
  2338. }
  2339. if (iNdEx + skippy) > l {
  2340. return io.ErrUnexpectedEOF
  2341. }
  2342. iNdEx += skippy
  2343. }
  2344. }
  2345. if iNdEx > l {
  2346. return io.ErrUnexpectedEOF
  2347. }
  2348. return nil
  2349. }
  2350. func (m *AllConfigReply) Unmarshal(dAtA []byte) error {
  2351. l := len(dAtA)
  2352. iNdEx := 0
  2353. for iNdEx < l {
  2354. preIndex := iNdEx
  2355. var wire uint64
  2356. for shift := uint(0); ; shift += 7 {
  2357. if shift >= 64 {
  2358. return ErrIntOverflowApi
  2359. }
  2360. if iNdEx >= l {
  2361. return io.ErrUnexpectedEOF
  2362. }
  2363. b := dAtA[iNdEx]
  2364. iNdEx++
  2365. wire |= (uint64(b) & 0x7F) << shift
  2366. if b < 0x80 {
  2367. break
  2368. }
  2369. }
  2370. fieldNum := int32(wire >> 3)
  2371. wireType := int(wire & 0x7)
  2372. if wireType == 4 {
  2373. return fmt.Errorf("proto: AllConfigReply: wiretype end group for non-group")
  2374. }
  2375. if fieldNum <= 0 {
  2376. return fmt.Errorf("proto: AllConfigReply: illegal tag %d (wire type %d)", fieldNum, wire)
  2377. }
  2378. switch fieldNum {
  2379. case 1:
  2380. if wireType != 2 {
  2381. return fmt.Errorf("proto: wrong wireType = %d for field Data_0", wireType)
  2382. }
  2383. var msglen int
  2384. for shift := uint(0); ; shift += 7 {
  2385. if shift >= 64 {
  2386. return ErrIntOverflowApi
  2387. }
  2388. if iNdEx >= l {
  2389. return io.ErrUnexpectedEOF
  2390. }
  2391. b := dAtA[iNdEx]
  2392. iNdEx++
  2393. msglen |= (int(b) & 0x7F) << shift
  2394. if b < 0x80 {
  2395. break
  2396. }
  2397. }
  2398. if msglen < 0 {
  2399. return ErrInvalidLengthApi
  2400. }
  2401. postIndex := iNdEx + msglen
  2402. if postIndex > l {
  2403. return io.ErrUnexpectedEOF
  2404. }
  2405. if m.Data_0 == nil {
  2406. m.Data_0 = make(map[string]int64)
  2407. }
  2408. var mapkey string
  2409. var mapvalue int64
  2410. for iNdEx < postIndex {
  2411. entryPreIndex := iNdEx
  2412. var wire uint64
  2413. for shift := uint(0); ; shift += 7 {
  2414. if shift >= 64 {
  2415. return ErrIntOverflowApi
  2416. }
  2417. if iNdEx >= l {
  2418. return io.ErrUnexpectedEOF
  2419. }
  2420. b := dAtA[iNdEx]
  2421. iNdEx++
  2422. wire |= (uint64(b) & 0x7F) << shift
  2423. if b < 0x80 {
  2424. break
  2425. }
  2426. }
  2427. fieldNum := int32(wire >> 3)
  2428. if fieldNum == 1 {
  2429. var stringLenmapkey uint64
  2430. for shift := uint(0); ; shift += 7 {
  2431. if shift >= 64 {
  2432. return ErrIntOverflowApi
  2433. }
  2434. if iNdEx >= l {
  2435. return io.ErrUnexpectedEOF
  2436. }
  2437. b := dAtA[iNdEx]
  2438. iNdEx++
  2439. stringLenmapkey |= (uint64(b) & 0x7F) << shift
  2440. if b < 0x80 {
  2441. break
  2442. }
  2443. }
  2444. intStringLenmapkey := int(stringLenmapkey)
  2445. if intStringLenmapkey < 0 {
  2446. return ErrInvalidLengthApi
  2447. }
  2448. postStringIndexmapkey := iNdEx + intStringLenmapkey
  2449. if postStringIndexmapkey > l {
  2450. return io.ErrUnexpectedEOF
  2451. }
  2452. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  2453. iNdEx = postStringIndexmapkey
  2454. } else if fieldNum == 2 {
  2455. for shift := uint(0); ; shift += 7 {
  2456. if shift >= 64 {
  2457. return ErrIntOverflowApi
  2458. }
  2459. if iNdEx >= l {
  2460. return io.ErrUnexpectedEOF
  2461. }
  2462. b := dAtA[iNdEx]
  2463. iNdEx++
  2464. mapvalue |= (int64(b) & 0x7F) << shift
  2465. if b < 0x80 {
  2466. break
  2467. }
  2468. }
  2469. } else {
  2470. iNdEx = entryPreIndex
  2471. skippy, err := skipApi(dAtA[iNdEx:])
  2472. if err != nil {
  2473. return err
  2474. }
  2475. if skippy < 0 {
  2476. return ErrInvalidLengthApi
  2477. }
  2478. if (iNdEx + skippy) > postIndex {
  2479. return io.ErrUnexpectedEOF
  2480. }
  2481. iNdEx += skippy
  2482. }
  2483. }
  2484. m.Data_0[mapkey] = mapvalue
  2485. iNdEx = postIndex
  2486. default:
  2487. iNdEx = preIndex
  2488. skippy, err := skipApi(dAtA[iNdEx:])
  2489. if err != nil {
  2490. return err
  2491. }
  2492. if skippy < 0 {
  2493. return ErrInvalidLengthApi
  2494. }
  2495. if (iNdEx + skippy) > l {
  2496. return io.ErrUnexpectedEOF
  2497. }
  2498. iNdEx += skippy
  2499. }
  2500. }
  2501. if iNdEx > l {
  2502. return io.ErrUnexpectedEOF
  2503. }
  2504. return nil
  2505. }
  2506. func (m *AllConfigReq) Unmarshal(dAtA []byte) error {
  2507. l := len(dAtA)
  2508. iNdEx := 0
  2509. for iNdEx < l {
  2510. preIndex := iNdEx
  2511. var wire uint64
  2512. for shift := uint(0); ; shift += 7 {
  2513. if shift >= 64 {
  2514. return ErrIntOverflowApi
  2515. }
  2516. if iNdEx >= l {
  2517. return io.ErrUnexpectedEOF
  2518. }
  2519. b := dAtA[iNdEx]
  2520. iNdEx++
  2521. wire |= (uint64(b) & 0x7F) << shift
  2522. if b < 0x80 {
  2523. break
  2524. }
  2525. }
  2526. fieldNum := int32(wire >> 3)
  2527. wireType := int(wire & 0x7)
  2528. if wireType == 4 {
  2529. return fmt.Errorf("proto: AllConfigReq: wiretype end group for non-group")
  2530. }
  2531. if fieldNum <= 0 {
  2532. return fmt.Errorf("proto: AllConfigReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2533. }
  2534. switch fieldNum {
  2535. default:
  2536. iNdEx = preIndex
  2537. skippy, err := skipApi(dAtA[iNdEx:])
  2538. if err != nil {
  2539. return err
  2540. }
  2541. if skippy < 0 {
  2542. return ErrInvalidLengthApi
  2543. }
  2544. if (iNdEx + skippy) > l {
  2545. return io.ErrUnexpectedEOF
  2546. }
  2547. iNdEx += skippy
  2548. }
  2549. }
  2550. if iNdEx > l {
  2551. return io.ErrUnexpectedEOF
  2552. }
  2553. return nil
  2554. }
  2555. func (m *CloseReply) Unmarshal(dAtA []byte) error {
  2556. l := len(dAtA)
  2557. iNdEx := 0
  2558. for iNdEx < l {
  2559. preIndex := iNdEx
  2560. var wire uint64
  2561. for shift := uint(0); ; shift += 7 {
  2562. if shift >= 64 {
  2563. return ErrIntOverflowApi
  2564. }
  2565. if iNdEx >= l {
  2566. return io.ErrUnexpectedEOF
  2567. }
  2568. b := dAtA[iNdEx]
  2569. iNdEx++
  2570. wire |= (uint64(b) & 0x7F) << shift
  2571. if b < 0x80 {
  2572. break
  2573. }
  2574. }
  2575. fieldNum := int32(wire >> 3)
  2576. wireType := int(wire & 0x7)
  2577. if wireType == 4 {
  2578. return fmt.Errorf("proto: CloseReply: wiretype end group for non-group")
  2579. }
  2580. if fieldNum <= 0 {
  2581. return fmt.Errorf("proto: CloseReply: illegal tag %d (wire type %d)", fieldNum, wire)
  2582. }
  2583. switch fieldNum {
  2584. default:
  2585. iNdEx = preIndex
  2586. skippy, err := skipApi(dAtA[iNdEx:])
  2587. if err != nil {
  2588. return err
  2589. }
  2590. if skippy < 0 {
  2591. return ErrInvalidLengthApi
  2592. }
  2593. if (iNdEx + skippy) > l {
  2594. return io.ErrUnexpectedEOF
  2595. }
  2596. iNdEx += skippy
  2597. }
  2598. }
  2599. if iNdEx > l {
  2600. return io.ErrUnexpectedEOF
  2601. }
  2602. return nil
  2603. }
  2604. func (m *CloseReq) Unmarshal(dAtA []byte) error {
  2605. l := len(dAtA)
  2606. iNdEx := 0
  2607. for iNdEx < l {
  2608. preIndex := iNdEx
  2609. var wire uint64
  2610. for shift := uint(0); ; shift += 7 {
  2611. if shift >= 64 {
  2612. return ErrIntOverflowApi
  2613. }
  2614. if iNdEx >= l {
  2615. return io.ErrUnexpectedEOF
  2616. }
  2617. b := dAtA[iNdEx]
  2618. iNdEx++
  2619. wire |= (uint64(b) & 0x7F) << shift
  2620. if b < 0x80 {
  2621. break
  2622. }
  2623. }
  2624. fieldNum := int32(wire >> 3)
  2625. wireType := int(wire & 0x7)
  2626. if wireType == 4 {
  2627. return fmt.Errorf("proto: CloseReq: wiretype end group for non-group")
  2628. }
  2629. if fieldNum <= 0 {
  2630. return fmt.Errorf("proto: CloseReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2631. }
  2632. switch fieldNum {
  2633. default:
  2634. iNdEx = preIndex
  2635. skippy, err := skipApi(dAtA[iNdEx:])
  2636. if err != nil {
  2637. return err
  2638. }
  2639. if skippy < 0 {
  2640. return ErrInvalidLengthApi
  2641. }
  2642. if (iNdEx + skippy) > l {
  2643. return io.ErrUnexpectedEOF
  2644. }
  2645. iNdEx += skippy
  2646. }
  2647. }
  2648. if iNdEx > l {
  2649. return io.ErrUnexpectedEOF
  2650. }
  2651. return nil
  2652. }
  2653. func (m *ConfigReply) Unmarshal(dAtA []byte) error {
  2654. l := len(dAtA)
  2655. iNdEx := 0
  2656. for iNdEx < l {
  2657. preIndex := iNdEx
  2658. var wire uint64
  2659. for shift := uint(0); ; shift += 7 {
  2660. if shift >= 64 {
  2661. return ErrIntOverflowApi
  2662. }
  2663. if iNdEx >= l {
  2664. return io.ErrUnexpectedEOF
  2665. }
  2666. b := dAtA[iNdEx]
  2667. iNdEx++
  2668. wire |= (uint64(b) & 0x7F) << shift
  2669. if b < 0x80 {
  2670. break
  2671. }
  2672. }
  2673. fieldNum := int32(wire >> 3)
  2674. wireType := int(wire & 0x7)
  2675. if wireType == 4 {
  2676. return fmt.Errorf("proto: ConfigReply: wiretype end group for non-group")
  2677. }
  2678. if fieldNum <= 0 {
  2679. return fmt.Errorf("proto: ConfigReply: illegal tag %d (wire type %d)", fieldNum, wire)
  2680. }
  2681. switch fieldNum {
  2682. case 1:
  2683. if wireType != 0 {
  2684. return fmt.Errorf("proto: wrong wireType = %d for field Point", wireType)
  2685. }
  2686. m.Point = 0
  2687. for shift := uint(0); ; shift += 7 {
  2688. if shift >= 64 {
  2689. return ErrIntOverflowApi
  2690. }
  2691. if iNdEx >= l {
  2692. return io.ErrUnexpectedEOF
  2693. }
  2694. b := dAtA[iNdEx]
  2695. iNdEx++
  2696. m.Point |= (int64(b) & 0x7F) << shift
  2697. if b < 0x80 {
  2698. break
  2699. }
  2700. }
  2701. default:
  2702. iNdEx = preIndex
  2703. skippy, err := skipApi(dAtA[iNdEx:])
  2704. if err != nil {
  2705. return err
  2706. }
  2707. if skippy < 0 {
  2708. return ErrInvalidLengthApi
  2709. }
  2710. if (iNdEx + skippy) > l {
  2711. return io.ErrUnexpectedEOF
  2712. }
  2713. iNdEx += skippy
  2714. }
  2715. }
  2716. if iNdEx > l {
  2717. return io.ErrUnexpectedEOF
  2718. }
  2719. return nil
  2720. }
  2721. func (m *ConfigReq) Unmarshal(dAtA []byte) error {
  2722. l := len(dAtA)
  2723. iNdEx := 0
  2724. for iNdEx < l {
  2725. preIndex := iNdEx
  2726. var wire uint64
  2727. for shift := uint(0); ; shift += 7 {
  2728. if shift >= 64 {
  2729. return ErrIntOverflowApi
  2730. }
  2731. if iNdEx >= l {
  2732. return io.ErrUnexpectedEOF
  2733. }
  2734. b := dAtA[iNdEx]
  2735. iNdEx++
  2736. wire |= (uint64(b) & 0x7F) << shift
  2737. if b < 0x80 {
  2738. break
  2739. }
  2740. }
  2741. fieldNum := int32(wire >> 3)
  2742. wireType := int(wire & 0x7)
  2743. if wireType == 4 {
  2744. return fmt.Errorf("proto: ConfigReq: wiretype end group for non-group")
  2745. }
  2746. if fieldNum <= 0 {
  2747. return fmt.Errorf("proto: ConfigReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2748. }
  2749. switch fieldNum {
  2750. case 2:
  2751. if wireType != 0 {
  2752. return fmt.Errorf("proto: wrong wireType = %d for field ChangeType", wireType)
  2753. }
  2754. m.ChangeType = 0
  2755. for shift := uint(0); ; shift += 7 {
  2756. if shift >= 64 {
  2757. return ErrIntOverflowApi
  2758. }
  2759. if iNdEx >= l {
  2760. return io.ErrUnexpectedEOF
  2761. }
  2762. b := dAtA[iNdEx]
  2763. iNdEx++
  2764. m.ChangeType |= (int32(b) & 0x7F) << shift
  2765. if b < 0x80 {
  2766. break
  2767. }
  2768. }
  2769. case 3:
  2770. if wireType != 0 {
  2771. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  2772. }
  2773. m.Mid = 0
  2774. for shift := uint(0); ; shift += 7 {
  2775. if shift >= 64 {
  2776. return ErrIntOverflowApi
  2777. }
  2778. if iNdEx >= l {
  2779. return io.ErrUnexpectedEOF
  2780. }
  2781. b := dAtA[iNdEx]
  2782. iNdEx++
  2783. m.Mid |= (int64(b) & 0x7F) << shift
  2784. if b < 0x80 {
  2785. break
  2786. }
  2787. }
  2788. case 4:
  2789. if wireType != 1 {
  2790. return fmt.Errorf("proto: wrong wireType = %d for field Bp", wireType)
  2791. }
  2792. var v uint64
  2793. if (iNdEx + 8) > l {
  2794. return io.ErrUnexpectedEOF
  2795. }
  2796. v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  2797. iNdEx += 8
  2798. m.Bp = float64(math.Float64frombits(v))
  2799. default:
  2800. iNdEx = preIndex
  2801. skippy, err := skipApi(dAtA[iNdEx:])
  2802. if err != nil {
  2803. return err
  2804. }
  2805. if skippy < 0 {
  2806. return ErrInvalidLengthApi
  2807. }
  2808. if (iNdEx + skippy) > l {
  2809. return io.ErrUnexpectedEOF
  2810. }
  2811. iNdEx += skippy
  2812. }
  2813. }
  2814. if iNdEx > l {
  2815. return io.ErrUnexpectedEOF
  2816. }
  2817. return nil
  2818. }
  2819. func (m *ConsumePointReply) Unmarshal(dAtA []byte) error {
  2820. l := len(dAtA)
  2821. iNdEx := 0
  2822. for iNdEx < l {
  2823. preIndex := iNdEx
  2824. var wire uint64
  2825. for shift := uint(0); ; shift += 7 {
  2826. if shift >= 64 {
  2827. return ErrIntOverflowApi
  2828. }
  2829. if iNdEx >= l {
  2830. return io.ErrUnexpectedEOF
  2831. }
  2832. b := dAtA[iNdEx]
  2833. iNdEx++
  2834. wire |= (uint64(b) & 0x7F) << shift
  2835. if b < 0x80 {
  2836. break
  2837. }
  2838. }
  2839. fieldNum := int32(wire >> 3)
  2840. wireType := int(wire & 0x7)
  2841. if wireType == 4 {
  2842. return fmt.Errorf("proto: ConsumePointReply: wiretype end group for non-group")
  2843. }
  2844. if fieldNum <= 0 {
  2845. return fmt.Errorf("proto: ConsumePointReply: illegal tag %d (wire type %d)", fieldNum, wire)
  2846. }
  2847. switch fieldNum {
  2848. case 1:
  2849. if wireType != 0 {
  2850. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  2851. }
  2852. m.Status = 0
  2853. for shift := uint(0); ; shift += 7 {
  2854. if shift >= 64 {
  2855. return ErrIntOverflowApi
  2856. }
  2857. if iNdEx >= l {
  2858. return io.ErrUnexpectedEOF
  2859. }
  2860. b := dAtA[iNdEx]
  2861. iNdEx++
  2862. m.Status |= (int32(b) & 0x7F) << shift
  2863. if b < 0x80 {
  2864. break
  2865. }
  2866. }
  2867. default:
  2868. iNdEx = preIndex
  2869. skippy, err := skipApi(dAtA[iNdEx:])
  2870. if err != nil {
  2871. return err
  2872. }
  2873. if skippy < 0 {
  2874. return ErrInvalidLengthApi
  2875. }
  2876. if (iNdEx + skippy) > l {
  2877. return io.ErrUnexpectedEOF
  2878. }
  2879. iNdEx += skippy
  2880. }
  2881. }
  2882. if iNdEx > l {
  2883. return io.ErrUnexpectedEOF
  2884. }
  2885. return nil
  2886. }
  2887. func (m *ConsumePointReq) Unmarshal(dAtA []byte) error {
  2888. l := len(dAtA)
  2889. iNdEx := 0
  2890. for iNdEx < l {
  2891. preIndex := iNdEx
  2892. var wire uint64
  2893. for shift := uint(0); ; shift += 7 {
  2894. if shift >= 64 {
  2895. return ErrIntOverflowApi
  2896. }
  2897. if iNdEx >= l {
  2898. return io.ErrUnexpectedEOF
  2899. }
  2900. b := dAtA[iNdEx]
  2901. iNdEx++
  2902. wire |= (uint64(b) & 0x7F) << shift
  2903. if b < 0x80 {
  2904. break
  2905. }
  2906. }
  2907. fieldNum := int32(wire >> 3)
  2908. wireType := int(wire & 0x7)
  2909. if wireType == 4 {
  2910. return fmt.Errorf("proto: ConsumePointReq: wiretype end group for non-group")
  2911. }
  2912. if fieldNum <= 0 {
  2913. return fmt.Errorf("proto: ConsumePointReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2914. }
  2915. switch fieldNum {
  2916. case 2:
  2917. if wireType != 2 {
  2918. return fmt.Errorf("proto: wrong wireType = %d for field Pc", wireType)
  2919. }
  2920. var msglen int
  2921. for shift := uint(0); ; shift += 7 {
  2922. if shift >= 64 {
  2923. return ErrIntOverflowApi
  2924. }
  2925. if iNdEx >= l {
  2926. return io.ErrUnexpectedEOF
  2927. }
  2928. b := dAtA[iNdEx]
  2929. iNdEx++
  2930. msglen |= (int(b) & 0x7F) << shift
  2931. if b < 0x80 {
  2932. break
  2933. }
  2934. }
  2935. if msglen < 0 {
  2936. return ErrInvalidLengthApi
  2937. }
  2938. postIndex := iNdEx + msglen
  2939. if postIndex > l {
  2940. return io.ErrUnexpectedEOF
  2941. }
  2942. if m.Pc == nil {
  2943. m.Pc = &ModelArgPointConsume{}
  2944. }
  2945. if err := m.Pc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2946. return err
  2947. }
  2948. iNdEx = postIndex
  2949. default:
  2950. iNdEx = preIndex
  2951. skippy, err := skipApi(dAtA[iNdEx:])
  2952. if err != nil {
  2953. return err
  2954. }
  2955. if skippy < 0 {
  2956. return ErrInvalidLengthApi
  2957. }
  2958. if (iNdEx + skippy) > l {
  2959. return io.ErrUnexpectedEOF
  2960. }
  2961. iNdEx += skippy
  2962. }
  2963. }
  2964. if iNdEx > l {
  2965. return io.ErrUnexpectedEOF
  2966. }
  2967. return nil
  2968. }
  2969. func (m *ModelArgPoint) Unmarshal(dAtA []byte) error {
  2970. l := len(dAtA)
  2971. iNdEx := 0
  2972. for iNdEx < l {
  2973. preIndex := iNdEx
  2974. var wire uint64
  2975. for shift := uint(0); ; shift += 7 {
  2976. if shift >= 64 {
  2977. return ErrIntOverflowApi
  2978. }
  2979. if iNdEx >= l {
  2980. return io.ErrUnexpectedEOF
  2981. }
  2982. b := dAtA[iNdEx]
  2983. iNdEx++
  2984. wire |= (uint64(b) & 0x7F) << shift
  2985. if b < 0x80 {
  2986. break
  2987. }
  2988. }
  2989. fieldNum := int32(wire >> 3)
  2990. wireType := int(wire & 0x7)
  2991. if wireType == 4 {
  2992. return fmt.Errorf("proto: ModelArgPoint: wiretype end group for non-group")
  2993. }
  2994. if fieldNum <= 0 {
  2995. return fmt.Errorf("proto: ModelArgPoint: illegal tag %d (wire type %d)", fieldNum, wire)
  2996. }
  2997. switch fieldNum {
  2998. case 1:
  2999. if wireType != 0 {
  3000. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  3001. }
  3002. m.Mid = 0
  3003. for shift := uint(0); ; shift += 7 {
  3004. if shift >= 64 {
  3005. return ErrIntOverflowApi
  3006. }
  3007. if iNdEx >= l {
  3008. return io.ErrUnexpectedEOF
  3009. }
  3010. b := dAtA[iNdEx]
  3011. iNdEx++
  3012. m.Mid |= (int64(b) & 0x7F) << shift
  3013. if b < 0x80 {
  3014. break
  3015. }
  3016. }
  3017. case 2:
  3018. if wireType != 0 {
  3019. return fmt.Errorf("proto: wrong wireType = %d for field ChangeType", wireType)
  3020. }
  3021. m.ChangeType = 0
  3022. for shift := uint(0); ; shift += 7 {
  3023. if shift >= 64 {
  3024. return ErrIntOverflowApi
  3025. }
  3026. if iNdEx >= l {
  3027. return io.ErrUnexpectedEOF
  3028. }
  3029. b := dAtA[iNdEx]
  3030. iNdEx++
  3031. m.ChangeType |= (int64(b) & 0x7F) << shift
  3032. if b < 0x80 {
  3033. break
  3034. }
  3035. }
  3036. case 3:
  3037. if wireType != 0 {
  3038. return fmt.Errorf("proto: wrong wireType = %d for field Point", wireType)
  3039. }
  3040. m.Point = 0
  3041. for shift := uint(0); ; shift += 7 {
  3042. if shift >= 64 {
  3043. return ErrIntOverflowApi
  3044. }
  3045. if iNdEx >= l {
  3046. return io.ErrUnexpectedEOF
  3047. }
  3048. b := dAtA[iNdEx]
  3049. iNdEx++
  3050. m.Point |= (int64(b) & 0x7F) << shift
  3051. if b < 0x80 {
  3052. break
  3053. }
  3054. }
  3055. case 4:
  3056. if wireType != 2 {
  3057. return fmt.Errorf("proto: wrong wireType = %d for field Remark", wireType)
  3058. }
  3059. var stringLen uint64
  3060. for shift := uint(0); ; shift += 7 {
  3061. if shift >= 64 {
  3062. return ErrIntOverflowApi
  3063. }
  3064. if iNdEx >= l {
  3065. return io.ErrUnexpectedEOF
  3066. }
  3067. b := dAtA[iNdEx]
  3068. iNdEx++
  3069. stringLen |= (uint64(b) & 0x7F) << shift
  3070. if b < 0x80 {
  3071. break
  3072. }
  3073. }
  3074. intStringLen := int(stringLen)
  3075. if intStringLen < 0 {
  3076. return ErrInvalidLengthApi
  3077. }
  3078. postIndex := iNdEx + intStringLen
  3079. if postIndex > l {
  3080. return io.ErrUnexpectedEOF
  3081. }
  3082. m.Remark = string(dAtA[iNdEx:postIndex])
  3083. iNdEx = postIndex
  3084. case 5:
  3085. if wireType != 2 {
  3086. return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType)
  3087. }
  3088. var stringLen uint64
  3089. for shift := uint(0); ; shift += 7 {
  3090. if shift >= 64 {
  3091. return ErrIntOverflowApi
  3092. }
  3093. if iNdEx >= l {
  3094. return io.ErrUnexpectedEOF
  3095. }
  3096. b := dAtA[iNdEx]
  3097. iNdEx++
  3098. stringLen |= (uint64(b) & 0x7F) << shift
  3099. if b < 0x80 {
  3100. break
  3101. }
  3102. }
  3103. intStringLen := int(stringLen)
  3104. if intStringLen < 0 {
  3105. return ErrInvalidLengthApi
  3106. }
  3107. postIndex := iNdEx + intStringLen
  3108. if postIndex > l {
  3109. return io.ErrUnexpectedEOF
  3110. }
  3111. m.Operator = string(dAtA[iNdEx:postIndex])
  3112. iNdEx = postIndex
  3113. default:
  3114. iNdEx = preIndex
  3115. skippy, err := skipApi(dAtA[iNdEx:])
  3116. if err != nil {
  3117. return err
  3118. }
  3119. if skippy < 0 {
  3120. return ErrInvalidLengthApi
  3121. }
  3122. if (iNdEx + skippy) > l {
  3123. return io.ErrUnexpectedEOF
  3124. }
  3125. iNdEx += skippy
  3126. }
  3127. }
  3128. if iNdEx > l {
  3129. return io.ErrUnexpectedEOF
  3130. }
  3131. return nil
  3132. }
  3133. func (m *ModelArgPointAdd) Unmarshal(dAtA []byte) error {
  3134. l := len(dAtA)
  3135. iNdEx := 0
  3136. for iNdEx < l {
  3137. preIndex := iNdEx
  3138. var wire uint64
  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. wire |= (uint64(b) & 0x7F) << shift
  3149. if b < 0x80 {
  3150. break
  3151. }
  3152. }
  3153. fieldNum := int32(wire >> 3)
  3154. wireType := int(wire & 0x7)
  3155. if wireType == 4 {
  3156. return fmt.Errorf("proto: ModelArgPointAdd: wiretype end group for non-group")
  3157. }
  3158. if fieldNum <= 0 {
  3159. return fmt.Errorf("proto: ModelArgPointAdd: illegal tag %d (wire type %d)", fieldNum, wire)
  3160. }
  3161. switch fieldNum {
  3162. case 1:
  3163. if wireType != 0 {
  3164. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  3165. }
  3166. m.Mid = 0
  3167. for shift := uint(0); ; shift += 7 {
  3168. if shift >= 64 {
  3169. return ErrIntOverflowApi
  3170. }
  3171. if iNdEx >= l {
  3172. return io.ErrUnexpectedEOF
  3173. }
  3174. b := dAtA[iNdEx]
  3175. iNdEx++
  3176. m.Mid |= (int64(b) & 0x7F) << shift
  3177. if b < 0x80 {
  3178. break
  3179. }
  3180. }
  3181. case 2:
  3182. if wireType != 0 {
  3183. return fmt.Errorf("proto: wrong wireType = %d for field ChangeType", wireType)
  3184. }
  3185. m.ChangeType = 0
  3186. for shift := uint(0); ; shift += 7 {
  3187. if shift >= 64 {
  3188. return ErrIntOverflowApi
  3189. }
  3190. if iNdEx >= l {
  3191. return io.ErrUnexpectedEOF
  3192. }
  3193. b := dAtA[iNdEx]
  3194. iNdEx++
  3195. m.ChangeType |= (int32(b) & 0x7F) << shift
  3196. if b < 0x80 {
  3197. break
  3198. }
  3199. }
  3200. case 3:
  3201. if wireType != 2 {
  3202. return fmt.Errorf("proto: wrong wireType = %d for field RelationId", wireType)
  3203. }
  3204. var stringLen uint64
  3205. for shift := uint(0); ; shift += 7 {
  3206. if shift >= 64 {
  3207. return ErrIntOverflowApi
  3208. }
  3209. if iNdEx >= l {
  3210. return io.ErrUnexpectedEOF
  3211. }
  3212. b := dAtA[iNdEx]
  3213. iNdEx++
  3214. stringLen |= (uint64(b) & 0x7F) << shift
  3215. if b < 0x80 {
  3216. break
  3217. }
  3218. }
  3219. intStringLen := int(stringLen)
  3220. if intStringLen < 0 {
  3221. return ErrInvalidLengthApi
  3222. }
  3223. postIndex := iNdEx + intStringLen
  3224. if postIndex > l {
  3225. return io.ErrUnexpectedEOF
  3226. }
  3227. m.RelationId = string(dAtA[iNdEx:postIndex])
  3228. iNdEx = postIndex
  3229. case 4:
  3230. if wireType != 1 {
  3231. return fmt.Errorf("proto: wrong wireType = %d for field Bcoin", wireType)
  3232. }
  3233. var v uint64
  3234. if (iNdEx + 8) > l {
  3235. return io.ErrUnexpectedEOF
  3236. }
  3237. v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  3238. iNdEx += 8
  3239. m.Bcoin = float64(math.Float64frombits(v))
  3240. case 5:
  3241. if wireType != 2 {
  3242. return fmt.Errorf("proto: wrong wireType = %d for field Remark", wireType)
  3243. }
  3244. var stringLen uint64
  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. stringLen |= (uint64(b) & 0x7F) << shift
  3255. if b < 0x80 {
  3256. break
  3257. }
  3258. }
  3259. intStringLen := int(stringLen)
  3260. if intStringLen < 0 {
  3261. return ErrInvalidLengthApi
  3262. }
  3263. postIndex := iNdEx + intStringLen
  3264. if postIndex > l {
  3265. return io.ErrUnexpectedEOF
  3266. }
  3267. m.Remark = string(dAtA[iNdEx:postIndex])
  3268. iNdEx = postIndex
  3269. case 6:
  3270. if wireType != 2 {
  3271. return fmt.Errorf("proto: wrong wireType = %d for field OrderId", wireType)
  3272. }
  3273. var stringLen uint64
  3274. for shift := uint(0); ; shift += 7 {
  3275. if shift >= 64 {
  3276. return ErrIntOverflowApi
  3277. }
  3278. if iNdEx >= l {
  3279. return io.ErrUnexpectedEOF
  3280. }
  3281. b := dAtA[iNdEx]
  3282. iNdEx++
  3283. stringLen |= (uint64(b) & 0x7F) << shift
  3284. if b < 0x80 {
  3285. break
  3286. }
  3287. }
  3288. intStringLen := int(stringLen)
  3289. if intStringLen < 0 {
  3290. return ErrInvalidLengthApi
  3291. }
  3292. postIndex := iNdEx + intStringLen
  3293. if postIndex > l {
  3294. return io.ErrUnexpectedEOF
  3295. }
  3296. m.OrderId = string(dAtA[iNdEx:postIndex])
  3297. iNdEx = postIndex
  3298. default:
  3299. iNdEx = preIndex
  3300. skippy, err := skipApi(dAtA[iNdEx:])
  3301. if err != nil {
  3302. return err
  3303. }
  3304. if skippy < 0 {
  3305. return ErrInvalidLengthApi
  3306. }
  3307. if (iNdEx + skippy) > l {
  3308. return io.ErrUnexpectedEOF
  3309. }
  3310. iNdEx += skippy
  3311. }
  3312. }
  3313. if iNdEx > l {
  3314. return io.ErrUnexpectedEOF
  3315. }
  3316. return nil
  3317. }
  3318. func (m *ModelArgPointConsume) Unmarshal(dAtA []byte) error {
  3319. l := len(dAtA)
  3320. iNdEx := 0
  3321. for iNdEx < l {
  3322. preIndex := iNdEx
  3323. var wire uint64
  3324. for shift := uint(0); ; shift += 7 {
  3325. if shift >= 64 {
  3326. return ErrIntOverflowApi
  3327. }
  3328. if iNdEx >= l {
  3329. return io.ErrUnexpectedEOF
  3330. }
  3331. b := dAtA[iNdEx]
  3332. iNdEx++
  3333. wire |= (uint64(b) & 0x7F) << shift
  3334. if b < 0x80 {
  3335. break
  3336. }
  3337. }
  3338. fieldNum := int32(wire >> 3)
  3339. wireType := int(wire & 0x7)
  3340. if wireType == 4 {
  3341. return fmt.Errorf("proto: ModelArgPointConsume: wiretype end group for non-group")
  3342. }
  3343. if fieldNum <= 0 {
  3344. return fmt.Errorf("proto: ModelArgPointConsume: illegal tag %d (wire type %d)", fieldNum, wire)
  3345. }
  3346. switch fieldNum {
  3347. case 1:
  3348. if wireType != 0 {
  3349. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  3350. }
  3351. m.Mid = 0
  3352. for shift := uint(0); ; shift += 7 {
  3353. if shift >= 64 {
  3354. return ErrIntOverflowApi
  3355. }
  3356. if iNdEx >= l {
  3357. return io.ErrUnexpectedEOF
  3358. }
  3359. b := dAtA[iNdEx]
  3360. iNdEx++
  3361. m.Mid |= (int64(b) & 0x7F) << shift
  3362. if b < 0x80 {
  3363. break
  3364. }
  3365. }
  3366. case 2:
  3367. if wireType != 0 {
  3368. return fmt.Errorf("proto: wrong wireType = %d for field ChangeType", wireType)
  3369. }
  3370. m.ChangeType = 0
  3371. for shift := uint(0); ; shift += 7 {
  3372. if shift >= 64 {
  3373. return ErrIntOverflowApi
  3374. }
  3375. if iNdEx >= l {
  3376. return io.ErrUnexpectedEOF
  3377. }
  3378. b := dAtA[iNdEx]
  3379. iNdEx++
  3380. m.ChangeType |= (int64(b) & 0x7F) << shift
  3381. if b < 0x80 {
  3382. break
  3383. }
  3384. }
  3385. case 3:
  3386. if wireType != 2 {
  3387. return fmt.Errorf("proto: wrong wireType = %d for field RelationId", wireType)
  3388. }
  3389. var stringLen uint64
  3390. for shift := uint(0); ; shift += 7 {
  3391. if shift >= 64 {
  3392. return ErrIntOverflowApi
  3393. }
  3394. if iNdEx >= l {
  3395. return io.ErrUnexpectedEOF
  3396. }
  3397. b := dAtA[iNdEx]
  3398. iNdEx++
  3399. stringLen |= (uint64(b) & 0x7F) << shift
  3400. if b < 0x80 {
  3401. break
  3402. }
  3403. }
  3404. intStringLen := int(stringLen)
  3405. if intStringLen < 0 {
  3406. return ErrInvalidLengthApi
  3407. }
  3408. postIndex := iNdEx + intStringLen
  3409. if postIndex > l {
  3410. return io.ErrUnexpectedEOF
  3411. }
  3412. m.RelationId = string(dAtA[iNdEx:postIndex])
  3413. iNdEx = postIndex
  3414. case 4:
  3415. if wireType != 0 {
  3416. return fmt.Errorf("proto: wrong wireType = %d for field Point", wireType)
  3417. }
  3418. m.Point = 0
  3419. for shift := uint(0); ; shift += 7 {
  3420. if shift >= 64 {
  3421. return ErrIntOverflowApi
  3422. }
  3423. if iNdEx >= l {
  3424. return io.ErrUnexpectedEOF
  3425. }
  3426. b := dAtA[iNdEx]
  3427. iNdEx++
  3428. m.Point |= (int64(b) & 0x7F) << shift
  3429. if b < 0x80 {
  3430. break
  3431. }
  3432. }
  3433. case 5:
  3434. if wireType != 2 {
  3435. return fmt.Errorf("proto: wrong wireType = %d for field Remark", wireType)
  3436. }
  3437. var stringLen uint64
  3438. for shift := uint(0); ; shift += 7 {
  3439. if shift >= 64 {
  3440. return ErrIntOverflowApi
  3441. }
  3442. if iNdEx >= l {
  3443. return io.ErrUnexpectedEOF
  3444. }
  3445. b := dAtA[iNdEx]
  3446. iNdEx++
  3447. stringLen |= (uint64(b) & 0x7F) << shift
  3448. if b < 0x80 {
  3449. break
  3450. }
  3451. }
  3452. intStringLen := int(stringLen)
  3453. if intStringLen < 0 {
  3454. return ErrInvalidLengthApi
  3455. }
  3456. postIndex := iNdEx + intStringLen
  3457. if postIndex > l {
  3458. return io.ErrUnexpectedEOF
  3459. }
  3460. m.Remark = string(dAtA[iNdEx:postIndex])
  3461. iNdEx = postIndex
  3462. default:
  3463. iNdEx = preIndex
  3464. skippy, err := skipApi(dAtA[iNdEx:])
  3465. if err != nil {
  3466. return err
  3467. }
  3468. if skippy < 0 {
  3469. return ErrInvalidLengthApi
  3470. }
  3471. if (iNdEx + skippy) > l {
  3472. return io.ErrUnexpectedEOF
  3473. }
  3474. iNdEx += skippy
  3475. }
  3476. }
  3477. if iNdEx > l {
  3478. return io.ErrUnexpectedEOF
  3479. }
  3480. return nil
  3481. }
  3482. func (m *ModelOldPointHistory) Unmarshal(dAtA []byte) error {
  3483. l := len(dAtA)
  3484. iNdEx := 0
  3485. for iNdEx < l {
  3486. preIndex := iNdEx
  3487. var wire uint64
  3488. for shift := uint(0); ; shift += 7 {
  3489. if shift >= 64 {
  3490. return ErrIntOverflowApi
  3491. }
  3492. if iNdEx >= l {
  3493. return io.ErrUnexpectedEOF
  3494. }
  3495. b := dAtA[iNdEx]
  3496. iNdEx++
  3497. wire |= (uint64(b) & 0x7F) << shift
  3498. if b < 0x80 {
  3499. break
  3500. }
  3501. }
  3502. fieldNum := int32(wire >> 3)
  3503. wireType := int(wire & 0x7)
  3504. if wireType == 4 {
  3505. return fmt.Errorf("proto: ModelOldPointHistory: wiretype end group for non-group")
  3506. }
  3507. if fieldNum <= 0 {
  3508. return fmt.Errorf("proto: ModelOldPointHistory: illegal tag %d (wire type %d)", fieldNum, wire)
  3509. }
  3510. switch fieldNum {
  3511. case 1:
  3512. if wireType != 0 {
  3513. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  3514. }
  3515. m.Id = 0
  3516. for shift := uint(0); ; shift += 7 {
  3517. if shift >= 64 {
  3518. return ErrIntOverflowApi
  3519. }
  3520. if iNdEx >= l {
  3521. return io.ErrUnexpectedEOF
  3522. }
  3523. b := dAtA[iNdEx]
  3524. iNdEx++
  3525. m.Id |= (int64(b) & 0x7F) << shift
  3526. if b < 0x80 {
  3527. break
  3528. }
  3529. }
  3530. case 2:
  3531. if wireType != 0 {
  3532. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  3533. }
  3534. m.Mid = 0
  3535. for shift := uint(0); ; shift += 7 {
  3536. if shift >= 64 {
  3537. return ErrIntOverflowApi
  3538. }
  3539. if iNdEx >= l {
  3540. return io.ErrUnexpectedEOF
  3541. }
  3542. b := dAtA[iNdEx]
  3543. iNdEx++
  3544. m.Mid |= (int64(b) & 0x7F) << shift
  3545. if b < 0x80 {
  3546. break
  3547. }
  3548. }
  3549. case 3:
  3550. if wireType != 0 {
  3551. return fmt.Errorf("proto: wrong wireType = %d for field Point", wireType)
  3552. }
  3553. m.Point = 0
  3554. for shift := uint(0); ; shift += 7 {
  3555. if shift >= 64 {
  3556. return ErrIntOverflowApi
  3557. }
  3558. if iNdEx >= l {
  3559. return io.ErrUnexpectedEOF
  3560. }
  3561. b := dAtA[iNdEx]
  3562. iNdEx++
  3563. m.Point |= (int64(b) & 0x7F) << shift
  3564. if b < 0x80 {
  3565. break
  3566. }
  3567. }
  3568. case 4:
  3569. if wireType != 2 {
  3570. return fmt.Errorf("proto: wrong wireType = %d for field OrderId", wireType)
  3571. }
  3572. var stringLen uint64
  3573. for shift := uint(0); ; shift += 7 {
  3574. if shift >= 64 {
  3575. return ErrIntOverflowApi
  3576. }
  3577. if iNdEx >= l {
  3578. return io.ErrUnexpectedEOF
  3579. }
  3580. b := dAtA[iNdEx]
  3581. iNdEx++
  3582. stringLen |= (uint64(b) & 0x7F) << shift
  3583. if b < 0x80 {
  3584. break
  3585. }
  3586. }
  3587. intStringLen := int(stringLen)
  3588. if intStringLen < 0 {
  3589. return ErrInvalidLengthApi
  3590. }
  3591. postIndex := iNdEx + intStringLen
  3592. if postIndex > l {
  3593. return io.ErrUnexpectedEOF
  3594. }
  3595. m.OrderId = string(dAtA[iNdEx:postIndex])
  3596. iNdEx = postIndex
  3597. case 5:
  3598. if wireType != 0 {
  3599. return fmt.Errorf("proto: wrong wireType = %d for field ChangeType", wireType)
  3600. }
  3601. m.ChangeType = 0
  3602. for shift := uint(0); ; shift += 7 {
  3603. if shift >= 64 {
  3604. return ErrIntOverflowApi
  3605. }
  3606. if iNdEx >= l {
  3607. return io.ErrUnexpectedEOF
  3608. }
  3609. b := dAtA[iNdEx]
  3610. iNdEx++
  3611. m.ChangeType |= (int32(b) & 0x7F) << shift
  3612. if b < 0x80 {
  3613. break
  3614. }
  3615. }
  3616. case 6:
  3617. if wireType != 0 {
  3618. return fmt.Errorf("proto: wrong wireType = %d for field ChangeTime", wireType)
  3619. }
  3620. m.ChangeTime = 0
  3621. for shift := uint(0); ; shift += 7 {
  3622. if shift >= 64 {
  3623. return ErrIntOverflowApi
  3624. }
  3625. if iNdEx >= l {
  3626. return io.ErrUnexpectedEOF
  3627. }
  3628. b := dAtA[iNdEx]
  3629. iNdEx++
  3630. m.ChangeTime |= (int64(b) & 0x7F) << shift
  3631. if b < 0x80 {
  3632. break
  3633. }
  3634. }
  3635. case 7:
  3636. if wireType != 2 {
  3637. return fmt.Errorf("proto: wrong wireType = %d for field RelationId", wireType)
  3638. }
  3639. var stringLen uint64
  3640. for shift := uint(0); ; shift += 7 {
  3641. if shift >= 64 {
  3642. return ErrIntOverflowApi
  3643. }
  3644. if iNdEx >= l {
  3645. return io.ErrUnexpectedEOF
  3646. }
  3647. b := dAtA[iNdEx]
  3648. iNdEx++
  3649. stringLen |= (uint64(b) & 0x7F) << shift
  3650. if b < 0x80 {
  3651. break
  3652. }
  3653. }
  3654. intStringLen := int(stringLen)
  3655. if intStringLen < 0 {
  3656. return ErrInvalidLengthApi
  3657. }
  3658. postIndex := iNdEx + intStringLen
  3659. if postIndex > l {
  3660. return io.ErrUnexpectedEOF
  3661. }
  3662. m.RelationId = string(dAtA[iNdEx:postIndex])
  3663. iNdEx = postIndex
  3664. case 8:
  3665. if wireType != 0 {
  3666. return fmt.Errorf("proto: wrong wireType = %d for field PointBalance", wireType)
  3667. }
  3668. m.PointBalance = 0
  3669. for shift := uint(0); ; shift += 7 {
  3670. if shift >= 64 {
  3671. return ErrIntOverflowApi
  3672. }
  3673. if iNdEx >= l {
  3674. return io.ErrUnexpectedEOF
  3675. }
  3676. b := dAtA[iNdEx]
  3677. iNdEx++
  3678. m.PointBalance |= (int64(b) & 0x7F) << shift
  3679. if b < 0x80 {
  3680. break
  3681. }
  3682. }
  3683. case 9:
  3684. if wireType != 2 {
  3685. return fmt.Errorf("proto: wrong wireType = %d for field Remark", wireType)
  3686. }
  3687. var stringLen uint64
  3688. for shift := uint(0); ; shift += 7 {
  3689. if shift >= 64 {
  3690. return ErrIntOverflowApi
  3691. }
  3692. if iNdEx >= l {
  3693. return io.ErrUnexpectedEOF
  3694. }
  3695. b := dAtA[iNdEx]
  3696. iNdEx++
  3697. stringLen |= (uint64(b) & 0x7F) << shift
  3698. if b < 0x80 {
  3699. break
  3700. }
  3701. }
  3702. intStringLen := int(stringLen)
  3703. if intStringLen < 0 {
  3704. return ErrInvalidLengthApi
  3705. }
  3706. postIndex := iNdEx + intStringLen
  3707. if postIndex > l {
  3708. return io.ErrUnexpectedEOF
  3709. }
  3710. m.Remark = string(dAtA[iNdEx:postIndex])
  3711. iNdEx = postIndex
  3712. case 10:
  3713. if wireType != 2 {
  3714. return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType)
  3715. }
  3716. var stringLen uint64
  3717. for shift := uint(0); ; shift += 7 {
  3718. if shift >= 64 {
  3719. return ErrIntOverflowApi
  3720. }
  3721. if iNdEx >= l {
  3722. return io.ErrUnexpectedEOF
  3723. }
  3724. b := dAtA[iNdEx]
  3725. iNdEx++
  3726. stringLen |= (uint64(b) & 0x7F) << shift
  3727. if b < 0x80 {
  3728. break
  3729. }
  3730. }
  3731. intStringLen := int(stringLen)
  3732. if intStringLen < 0 {
  3733. return ErrInvalidLengthApi
  3734. }
  3735. postIndex := iNdEx + intStringLen
  3736. if postIndex > l {
  3737. return io.ErrUnexpectedEOF
  3738. }
  3739. m.Operator = string(dAtA[iNdEx:postIndex])
  3740. iNdEx = postIndex
  3741. default:
  3742. iNdEx = preIndex
  3743. skippy, err := skipApi(dAtA[iNdEx:])
  3744. if err != nil {
  3745. return err
  3746. }
  3747. if skippy < 0 {
  3748. return ErrInvalidLengthApi
  3749. }
  3750. if (iNdEx + skippy) > l {
  3751. return io.ErrUnexpectedEOF
  3752. }
  3753. iNdEx += skippy
  3754. }
  3755. }
  3756. if iNdEx > l {
  3757. return io.ErrUnexpectedEOF
  3758. }
  3759. return nil
  3760. }
  3761. func (m *ModelPointHistory) Unmarshal(dAtA []byte) error {
  3762. l := len(dAtA)
  3763. iNdEx := 0
  3764. for iNdEx < l {
  3765. preIndex := iNdEx
  3766. var wire uint64
  3767. for shift := uint(0); ; shift += 7 {
  3768. if shift >= 64 {
  3769. return ErrIntOverflowApi
  3770. }
  3771. if iNdEx >= l {
  3772. return io.ErrUnexpectedEOF
  3773. }
  3774. b := dAtA[iNdEx]
  3775. iNdEx++
  3776. wire |= (uint64(b) & 0x7F) << shift
  3777. if b < 0x80 {
  3778. break
  3779. }
  3780. }
  3781. fieldNum := int32(wire >> 3)
  3782. wireType := int(wire & 0x7)
  3783. if wireType == 4 {
  3784. return fmt.Errorf("proto: ModelPointHistory: wiretype end group for non-group")
  3785. }
  3786. if fieldNum <= 0 {
  3787. return fmt.Errorf("proto: ModelPointHistory: illegal tag %d (wire type %d)", fieldNum, wire)
  3788. }
  3789. switch fieldNum {
  3790. case 1:
  3791. if wireType != 0 {
  3792. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  3793. }
  3794. m.Id = 0
  3795. for shift := uint(0); ; shift += 7 {
  3796. if shift >= 64 {
  3797. return ErrIntOverflowApi
  3798. }
  3799. if iNdEx >= l {
  3800. return io.ErrUnexpectedEOF
  3801. }
  3802. b := dAtA[iNdEx]
  3803. iNdEx++
  3804. m.Id |= (int64(b) & 0x7F) << shift
  3805. if b < 0x80 {
  3806. break
  3807. }
  3808. }
  3809. case 2:
  3810. if wireType != 0 {
  3811. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  3812. }
  3813. m.Mid = 0
  3814. for shift := uint(0); ; shift += 7 {
  3815. if shift >= 64 {
  3816. return ErrIntOverflowApi
  3817. }
  3818. if iNdEx >= l {
  3819. return io.ErrUnexpectedEOF
  3820. }
  3821. b := dAtA[iNdEx]
  3822. iNdEx++
  3823. m.Mid |= (int64(b) & 0x7F) << shift
  3824. if b < 0x80 {
  3825. break
  3826. }
  3827. }
  3828. case 3:
  3829. if wireType != 0 {
  3830. return fmt.Errorf("proto: wrong wireType = %d for field Point", wireType)
  3831. }
  3832. m.Point = 0
  3833. for shift := uint(0); ; shift += 7 {
  3834. if shift >= 64 {
  3835. return ErrIntOverflowApi
  3836. }
  3837. if iNdEx >= l {
  3838. return io.ErrUnexpectedEOF
  3839. }
  3840. b := dAtA[iNdEx]
  3841. iNdEx++
  3842. m.Point |= (int64(b) & 0x7F) << shift
  3843. if b < 0x80 {
  3844. break
  3845. }
  3846. }
  3847. case 4:
  3848. if wireType != 2 {
  3849. return fmt.Errorf("proto: wrong wireType = %d for field OrderId", wireType)
  3850. }
  3851. var stringLen uint64
  3852. for shift := uint(0); ; shift += 7 {
  3853. if shift >= 64 {
  3854. return ErrIntOverflowApi
  3855. }
  3856. if iNdEx >= l {
  3857. return io.ErrUnexpectedEOF
  3858. }
  3859. b := dAtA[iNdEx]
  3860. iNdEx++
  3861. stringLen |= (uint64(b) & 0x7F) << shift
  3862. if b < 0x80 {
  3863. break
  3864. }
  3865. }
  3866. intStringLen := int(stringLen)
  3867. if intStringLen < 0 {
  3868. return ErrInvalidLengthApi
  3869. }
  3870. postIndex := iNdEx + intStringLen
  3871. if postIndex > l {
  3872. return io.ErrUnexpectedEOF
  3873. }
  3874. m.OrderId = string(dAtA[iNdEx:postIndex])
  3875. iNdEx = postIndex
  3876. case 5:
  3877. if wireType != 0 {
  3878. return fmt.Errorf("proto: wrong wireType = %d for field ChangeType", wireType)
  3879. }
  3880. m.ChangeType = 0
  3881. for shift := uint(0); ; shift += 7 {
  3882. if shift >= 64 {
  3883. return ErrIntOverflowApi
  3884. }
  3885. if iNdEx >= l {
  3886. return io.ErrUnexpectedEOF
  3887. }
  3888. b := dAtA[iNdEx]
  3889. iNdEx++
  3890. m.ChangeType |= (int32(b) & 0x7F) << shift
  3891. if b < 0x80 {
  3892. break
  3893. }
  3894. }
  3895. case 6:
  3896. if wireType != 0 {
  3897. return fmt.Errorf("proto: wrong wireType = %d for field ChangeTime", wireType)
  3898. }
  3899. m.ChangeTime = 0
  3900. for shift := uint(0); ; shift += 7 {
  3901. if shift >= 64 {
  3902. return ErrIntOverflowApi
  3903. }
  3904. if iNdEx >= l {
  3905. return io.ErrUnexpectedEOF
  3906. }
  3907. b := dAtA[iNdEx]
  3908. iNdEx++
  3909. m.ChangeTime |= (int64(b) & 0x7F) << shift
  3910. if b < 0x80 {
  3911. break
  3912. }
  3913. }
  3914. case 7:
  3915. if wireType != 2 {
  3916. return fmt.Errorf("proto: wrong wireType = %d for field RelationId", wireType)
  3917. }
  3918. var stringLen uint64
  3919. for shift := uint(0); ; shift += 7 {
  3920. if shift >= 64 {
  3921. return ErrIntOverflowApi
  3922. }
  3923. if iNdEx >= l {
  3924. return io.ErrUnexpectedEOF
  3925. }
  3926. b := dAtA[iNdEx]
  3927. iNdEx++
  3928. stringLen |= (uint64(b) & 0x7F) << shift
  3929. if b < 0x80 {
  3930. break
  3931. }
  3932. }
  3933. intStringLen := int(stringLen)
  3934. if intStringLen < 0 {
  3935. return ErrInvalidLengthApi
  3936. }
  3937. postIndex := iNdEx + intStringLen
  3938. if postIndex > l {
  3939. return io.ErrUnexpectedEOF
  3940. }
  3941. m.RelationId = string(dAtA[iNdEx:postIndex])
  3942. iNdEx = postIndex
  3943. case 8:
  3944. if wireType != 0 {
  3945. return fmt.Errorf("proto: wrong wireType = %d for field PointBalance", wireType)
  3946. }
  3947. m.PointBalance = 0
  3948. for shift := uint(0); ; shift += 7 {
  3949. if shift >= 64 {
  3950. return ErrIntOverflowApi
  3951. }
  3952. if iNdEx >= l {
  3953. return io.ErrUnexpectedEOF
  3954. }
  3955. b := dAtA[iNdEx]
  3956. iNdEx++
  3957. m.PointBalance |= (int64(b) & 0x7F) << shift
  3958. if b < 0x80 {
  3959. break
  3960. }
  3961. }
  3962. case 9:
  3963. if wireType != 2 {
  3964. return fmt.Errorf("proto: wrong wireType = %d for field Remark", wireType)
  3965. }
  3966. var stringLen uint64
  3967. for shift := uint(0); ; shift += 7 {
  3968. if shift >= 64 {
  3969. return ErrIntOverflowApi
  3970. }
  3971. if iNdEx >= l {
  3972. return io.ErrUnexpectedEOF
  3973. }
  3974. b := dAtA[iNdEx]
  3975. iNdEx++
  3976. stringLen |= (uint64(b) & 0x7F) << shift
  3977. if b < 0x80 {
  3978. break
  3979. }
  3980. }
  3981. intStringLen := int(stringLen)
  3982. if intStringLen < 0 {
  3983. return ErrInvalidLengthApi
  3984. }
  3985. postIndex := iNdEx + intStringLen
  3986. if postIndex > l {
  3987. return io.ErrUnexpectedEOF
  3988. }
  3989. m.Remark = string(dAtA[iNdEx:postIndex])
  3990. iNdEx = postIndex
  3991. case 10:
  3992. if wireType != 2 {
  3993. return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType)
  3994. }
  3995. var stringLen uint64
  3996. for shift := uint(0); ; shift += 7 {
  3997. if shift >= 64 {
  3998. return ErrIntOverflowApi
  3999. }
  4000. if iNdEx >= l {
  4001. return io.ErrUnexpectedEOF
  4002. }
  4003. b := dAtA[iNdEx]
  4004. iNdEx++
  4005. stringLen |= (uint64(b) & 0x7F) << shift
  4006. if b < 0x80 {
  4007. break
  4008. }
  4009. }
  4010. intStringLen := int(stringLen)
  4011. if intStringLen < 0 {
  4012. return ErrInvalidLengthApi
  4013. }
  4014. postIndex := iNdEx + intStringLen
  4015. if postIndex > l {
  4016. return io.ErrUnexpectedEOF
  4017. }
  4018. m.Operator = string(dAtA[iNdEx:postIndex])
  4019. iNdEx = postIndex
  4020. default:
  4021. iNdEx = preIndex
  4022. skippy, err := skipApi(dAtA[iNdEx:])
  4023. if err != nil {
  4024. return err
  4025. }
  4026. if skippy < 0 {
  4027. return ErrInvalidLengthApi
  4028. }
  4029. if (iNdEx + skippy) > l {
  4030. return io.ErrUnexpectedEOF
  4031. }
  4032. iNdEx += skippy
  4033. }
  4034. }
  4035. if iNdEx > l {
  4036. return io.ErrUnexpectedEOF
  4037. }
  4038. return nil
  4039. }
  4040. func (m *ModelPointInfo) Unmarshal(dAtA []byte) error {
  4041. l := len(dAtA)
  4042. iNdEx := 0
  4043. for iNdEx < l {
  4044. preIndex := iNdEx
  4045. var wire uint64
  4046. for shift := uint(0); ; shift += 7 {
  4047. if shift >= 64 {
  4048. return ErrIntOverflowApi
  4049. }
  4050. if iNdEx >= l {
  4051. return io.ErrUnexpectedEOF
  4052. }
  4053. b := dAtA[iNdEx]
  4054. iNdEx++
  4055. wire |= (uint64(b) & 0x7F) << shift
  4056. if b < 0x80 {
  4057. break
  4058. }
  4059. }
  4060. fieldNum := int32(wire >> 3)
  4061. wireType := int(wire & 0x7)
  4062. if wireType == 4 {
  4063. return fmt.Errorf("proto: ModelPointInfo: wiretype end group for non-group")
  4064. }
  4065. if fieldNum <= 0 {
  4066. return fmt.Errorf("proto: ModelPointInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  4067. }
  4068. switch fieldNum {
  4069. case 1:
  4070. if wireType != 0 {
  4071. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  4072. }
  4073. m.Mid = 0
  4074. for shift := uint(0); ; shift += 7 {
  4075. if shift >= 64 {
  4076. return ErrIntOverflowApi
  4077. }
  4078. if iNdEx >= l {
  4079. return io.ErrUnexpectedEOF
  4080. }
  4081. b := dAtA[iNdEx]
  4082. iNdEx++
  4083. m.Mid |= (int64(b) & 0x7F) << shift
  4084. if b < 0x80 {
  4085. break
  4086. }
  4087. }
  4088. case 2:
  4089. if wireType != 0 {
  4090. return fmt.Errorf("proto: wrong wireType = %d for field PointBalance", wireType)
  4091. }
  4092. m.PointBalance = 0
  4093. for shift := uint(0); ; shift += 7 {
  4094. if shift >= 64 {
  4095. return ErrIntOverflowApi
  4096. }
  4097. if iNdEx >= l {
  4098. return io.ErrUnexpectedEOF
  4099. }
  4100. b := dAtA[iNdEx]
  4101. iNdEx++
  4102. m.PointBalance |= (int64(b) & 0x7F) << shift
  4103. if b < 0x80 {
  4104. break
  4105. }
  4106. }
  4107. case 3:
  4108. if wireType != 0 {
  4109. return fmt.Errorf("proto: wrong wireType = %d for field Ver", wireType)
  4110. }
  4111. m.Ver = 0
  4112. for shift := uint(0); ; shift += 7 {
  4113. if shift >= 64 {
  4114. return ErrIntOverflowApi
  4115. }
  4116. if iNdEx >= l {
  4117. return io.ErrUnexpectedEOF
  4118. }
  4119. b := dAtA[iNdEx]
  4120. iNdEx++
  4121. m.Ver |= (int64(b) & 0x7F) << shift
  4122. if b < 0x80 {
  4123. break
  4124. }
  4125. }
  4126. default:
  4127. iNdEx = preIndex
  4128. skippy, err := skipApi(dAtA[iNdEx:])
  4129. if err != nil {
  4130. return err
  4131. }
  4132. if skippy < 0 {
  4133. return ErrInvalidLengthApi
  4134. }
  4135. if (iNdEx + skippy) > l {
  4136. return io.ErrUnexpectedEOF
  4137. }
  4138. iNdEx += skippy
  4139. }
  4140. }
  4141. if iNdEx > l {
  4142. return io.ErrUnexpectedEOF
  4143. }
  4144. return nil
  4145. }
  4146. func (m *OldPointHistoryReply) Unmarshal(dAtA []byte) error {
  4147. l := len(dAtA)
  4148. iNdEx := 0
  4149. for iNdEx < l {
  4150. preIndex := iNdEx
  4151. var wire uint64
  4152. for shift := uint(0); ; shift += 7 {
  4153. if shift >= 64 {
  4154. return ErrIntOverflowApi
  4155. }
  4156. if iNdEx >= l {
  4157. return io.ErrUnexpectedEOF
  4158. }
  4159. b := dAtA[iNdEx]
  4160. iNdEx++
  4161. wire |= (uint64(b) & 0x7F) << shift
  4162. if b < 0x80 {
  4163. break
  4164. }
  4165. }
  4166. fieldNum := int32(wire >> 3)
  4167. wireType := int(wire & 0x7)
  4168. if wireType == 4 {
  4169. return fmt.Errorf("proto: OldPointHistoryReply: wiretype end group for non-group")
  4170. }
  4171. if fieldNum <= 0 {
  4172. return fmt.Errorf("proto: OldPointHistoryReply: illegal tag %d (wire type %d)", fieldNum, wire)
  4173. }
  4174. switch fieldNum {
  4175. case 1:
  4176. if wireType != 2 {
  4177. return fmt.Errorf("proto: wrong wireType = %d for field Phs", wireType)
  4178. }
  4179. var msglen int
  4180. for shift := uint(0); ; shift += 7 {
  4181. if shift >= 64 {
  4182. return ErrIntOverflowApi
  4183. }
  4184. if iNdEx >= l {
  4185. return io.ErrUnexpectedEOF
  4186. }
  4187. b := dAtA[iNdEx]
  4188. iNdEx++
  4189. msglen |= (int(b) & 0x7F) << shift
  4190. if b < 0x80 {
  4191. break
  4192. }
  4193. }
  4194. if msglen < 0 {
  4195. return ErrInvalidLengthApi
  4196. }
  4197. postIndex := iNdEx + msglen
  4198. if postIndex > l {
  4199. return io.ErrUnexpectedEOF
  4200. }
  4201. m.Phs = append(m.Phs, &ModelOldPointHistory{})
  4202. if err := m.Phs[len(m.Phs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4203. return err
  4204. }
  4205. iNdEx = postIndex
  4206. case 2:
  4207. if wireType != 0 {
  4208. return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType)
  4209. }
  4210. m.Total = 0
  4211. for shift := uint(0); ; shift += 7 {
  4212. if shift >= 64 {
  4213. return ErrIntOverflowApi
  4214. }
  4215. if iNdEx >= l {
  4216. return io.ErrUnexpectedEOF
  4217. }
  4218. b := dAtA[iNdEx]
  4219. iNdEx++
  4220. m.Total |= (int32(b) & 0x7F) << shift
  4221. if b < 0x80 {
  4222. break
  4223. }
  4224. }
  4225. default:
  4226. iNdEx = preIndex
  4227. skippy, err := skipApi(dAtA[iNdEx:])
  4228. if err != nil {
  4229. return err
  4230. }
  4231. if skippy < 0 {
  4232. return ErrInvalidLengthApi
  4233. }
  4234. if (iNdEx + skippy) > l {
  4235. return io.ErrUnexpectedEOF
  4236. }
  4237. iNdEx += skippy
  4238. }
  4239. }
  4240. if iNdEx > l {
  4241. return io.ErrUnexpectedEOF
  4242. }
  4243. return nil
  4244. }
  4245. func (m *OldPointHistoryReq) Unmarshal(dAtA []byte) error {
  4246. l := len(dAtA)
  4247. iNdEx := 0
  4248. for iNdEx < l {
  4249. preIndex := iNdEx
  4250. var wire uint64
  4251. for shift := uint(0); ; shift += 7 {
  4252. if shift >= 64 {
  4253. return ErrIntOverflowApi
  4254. }
  4255. if iNdEx >= l {
  4256. return io.ErrUnexpectedEOF
  4257. }
  4258. b := dAtA[iNdEx]
  4259. iNdEx++
  4260. wire |= (uint64(b) & 0x7F) << shift
  4261. if b < 0x80 {
  4262. break
  4263. }
  4264. }
  4265. fieldNum := int32(wire >> 3)
  4266. wireType := int(wire & 0x7)
  4267. if wireType == 4 {
  4268. return fmt.Errorf("proto: OldPointHistoryReq: wiretype end group for non-group")
  4269. }
  4270. if fieldNum <= 0 {
  4271. return fmt.Errorf("proto: OldPointHistoryReq: illegal tag %d (wire type %d)", fieldNum, wire)
  4272. }
  4273. switch fieldNum {
  4274. case 2:
  4275. if wireType != 0 {
  4276. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  4277. }
  4278. m.Mid = 0
  4279. for shift := uint(0); ; shift += 7 {
  4280. if shift >= 64 {
  4281. return ErrIntOverflowApi
  4282. }
  4283. if iNdEx >= l {
  4284. return io.ErrUnexpectedEOF
  4285. }
  4286. b := dAtA[iNdEx]
  4287. iNdEx++
  4288. m.Mid |= (int64(b) & 0x7F) << shift
  4289. if b < 0x80 {
  4290. break
  4291. }
  4292. }
  4293. case 3:
  4294. if wireType != 0 {
  4295. return fmt.Errorf("proto: wrong wireType = %d for field Pn", wireType)
  4296. }
  4297. m.Pn = 0
  4298. for shift := uint(0); ; shift += 7 {
  4299. if shift >= 64 {
  4300. return ErrIntOverflowApi
  4301. }
  4302. if iNdEx >= l {
  4303. return io.ErrUnexpectedEOF
  4304. }
  4305. b := dAtA[iNdEx]
  4306. iNdEx++
  4307. m.Pn |= (int32(b) & 0x7F) << shift
  4308. if b < 0x80 {
  4309. break
  4310. }
  4311. }
  4312. case 4:
  4313. if wireType != 0 {
  4314. return fmt.Errorf("proto: wrong wireType = %d for field Ps", wireType)
  4315. }
  4316. m.Ps = 0
  4317. for shift := uint(0); ; shift += 7 {
  4318. if shift >= 64 {
  4319. return ErrIntOverflowApi
  4320. }
  4321. if iNdEx >= l {
  4322. return io.ErrUnexpectedEOF
  4323. }
  4324. b := dAtA[iNdEx]
  4325. iNdEx++
  4326. m.Ps |= (int32(b) & 0x7F) << shift
  4327. if b < 0x80 {
  4328. break
  4329. }
  4330. }
  4331. default:
  4332. iNdEx = preIndex
  4333. skippy, err := skipApi(dAtA[iNdEx:])
  4334. if err != nil {
  4335. return err
  4336. }
  4337. if skippy < 0 {
  4338. return ErrInvalidLengthApi
  4339. }
  4340. if (iNdEx + skippy) > l {
  4341. return io.ErrUnexpectedEOF
  4342. }
  4343. iNdEx += skippy
  4344. }
  4345. }
  4346. if iNdEx > l {
  4347. return io.ErrUnexpectedEOF
  4348. }
  4349. return nil
  4350. }
  4351. func (m *PingReply) Unmarshal(dAtA []byte) error {
  4352. l := len(dAtA)
  4353. iNdEx := 0
  4354. for iNdEx < l {
  4355. preIndex := iNdEx
  4356. var wire uint64
  4357. for shift := uint(0); ; shift += 7 {
  4358. if shift >= 64 {
  4359. return ErrIntOverflowApi
  4360. }
  4361. if iNdEx >= l {
  4362. return io.ErrUnexpectedEOF
  4363. }
  4364. b := dAtA[iNdEx]
  4365. iNdEx++
  4366. wire |= (uint64(b) & 0x7F) << shift
  4367. if b < 0x80 {
  4368. break
  4369. }
  4370. }
  4371. fieldNum := int32(wire >> 3)
  4372. wireType := int(wire & 0x7)
  4373. if wireType == 4 {
  4374. return fmt.Errorf("proto: PingReply: wiretype end group for non-group")
  4375. }
  4376. if fieldNum <= 0 {
  4377. return fmt.Errorf("proto: PingReply: illegal tag %d (wire type %d)", fieldNum, wire)
  4378. }
  4379. switch fieldNum {
  4380. default:
  4381. iNdEx = preIndex
  4382. skippy, err := skipApi(dAtA[iNdEx:])
  4383. if err != nil {
  4384. return err
  4385. }
  4386. if skippy < 0 {
  4387. return ErrInvalidLengthApi
  4388. }
  4389. if (iNdEx + skippy) > l {
  4390. return io.ErrUnexpectedEOF
  4391. }
  4392. iNdEx += skippy
  4393. }
  4394. }
  4395. if iNdEx > l {
  4396. return io.ErrUnexpectedEOF
  4397. }
  4398. return nil
  4399. }
  4400. func (m *PingReq) Unmarshal(dAtA []byte) error {
  4401. l := len(dAtA)
  4402. iNdEx := 0
  4403. for iNdEx < l {
  4404. preIndex := iNdEx
  4405. var wire uint64
  4406. for shift := uint(0); ; shift += 7 {
  4407. if shift >= 64 {
  4408. return ErrIntOverflowApi
  4409. }
  4410. if iNdEx >= l {
  4411. return io.ErrUnexpectedEOF
  4412. }
  4413. b := dAtA[iNdEx]
  4414. iNdEx++
  4415. wire |= (uint64(b) & 0x7F) << shift
  4416. if b < 0x80 {
  4417. break
  4418. }
  4419. }
  4420. fieldNum := int32(wire >> 3)
  4421. wireType := int(wire & 0x7)
  4422. if wireType == 4 {
  4423. return fmt.Errorf("proto: PingReq: wiretype end group for non-group")
  4424. }
  4425. if fieldNum <= 0 {
  4426. return fmt.Errorf("proto: PingReq: illegal tag %d (wire type %d)", fieldNum, wire)
  4427. }
  4428. switch fieldNum {
  4429. default:
  4430. iNdEx = preIndex
  4431. skippy, err := skipApi(dAtA[iNdEx:])
  4432. if err != nil {
  4433. return err
  4434. }
  4435. if skippy < 0 {
  4436. return ErrInvalidLengthApi
  4437. }
  4438. if (iNdEx + skippy) > l {
  4439. return io.ErrUnexpectedEOF
  4440. }
  4441. iNdEx += skippy
  4442. }
  4443. }
  4444. if iNdEx > l {
  4445. return io.ErrUnexpectedEOF
  4446. }
  4447. return nil
  4448. }
  4449. func (m *PointAddByBpReply) Unmarshal(dAtA []byte) error {
  4450. l := len(dAtA)
  4451. iNdEx := 0
  4452. for iNdEx < l {
  4453. preIndex := iNdEx
  4454. var wire uint64
  4455. for shift := uint(0); ; shift += 7 {
  4456. if shift >= 64 {
  4457. return ErrIntOverflowApi
  4458. }
  4459. if iNdEx >= l {
  4460. return io.ErrUnexpectedEOF
  4461. }
  4462. b := dAtA[iNdEx]
  4463. iNdEx++
  4464. wire |= (uint64(b) & 0x7F) << shift
  4465. if b < 0x80 {
  4466. break
  4467. }
  4468. }
  4469. fieldNum := int32(wire >> 3)
  4470. wireType := int(wire & 0x7)
  4471. if wireType == 4 {
  4472. return fmt.Errorf("proto: PointAddByBpReply: wiretype end group for non-group")
  4473. }
  4474. if fieldNum <= 0 {
  4475. return fmt.Errorf("proto: PointAddByBpReply: illegal tag %d (wire type %d)", fieldNum, wire)
  4476. }
  4477. switch fieldNum {
  4478. case 1:
  4479. if wireType != 0 {
  4480. return fmt.Errorf("proto: wrong wireType = %d for field P", wireType)
  4481. }
  4482. m.P = 0
  4483. for shift := uint(0); ; shift += 7 {
  4484. if shift >= 64 {
  4485. return ErrIntOverflowApi
  4486. }
  4487. if iNdEx >= l {
  4488. return io.ErrUnexpectedEOF
  4489. }
  4490. b := dAtA[iNdEx]
  4491. iNdEx++
  4492. m.P |= (int64(b) & 0x7F) << shift
  4493. if b < 0x80 {
  4494. break
  4495. }
  4496. }
  4497. default:
  4498. iNdEx = preIndex
  4499. skippy, err := skipApi(dAtA[iNdEx:])
  4500. if err != nil {
  4501. return err
  4502. }
  4503. if skippy < 0 {
  4504. return ErrInvalidLengthApi
  4505. }
  4506. if (iNdEx + skippy) > l {
  4507. return io.ErrUnexpectedEOF
  4508. }
  4509. iNdEx += skippy
  4510. }
  4511. }
  4512. if iNdEx > l {
  4513. return io.ErrUnexpectedEOF
  4514. }
  4515. return nil
  4516. }
  4517. func (m *PointAddByBpReq) Unmarshal(dAtA []byte) error {
  4518. l := len(dAtA)
  4519. iNdEx := 0
  4520. for iNdEx < l {
  4521. preIndex := iNdEx
  4522. var wire uint64
  4523. for shift := uint(0); ; shift += 7 {
  4524. if shift >= 64 {
  4525. return ErrIntOverflowApi
  4526. }
  4527. if iNdEx >= l {
  4528. return io.ErrUnexpectedEOF
  4529. }
  4530. b := dAtA[iNdEx]
  4531. iNdEx++
  4532. wire |= (uint64(b) & 0x7F) << shift
  4533. if b < 0x80 {
  4534. break
  4535. }
  4536. }
  4537. fieldNum := int32(wire >> 3)
  4538. wireType := int(wire & 0x7)
  4539. if wireType == 4 {
  4540. return fmt.Errorf("proto: PointAddByBpReq: wiretype end group for non-group")
  4541. }
  4542. if fieldNum <= 0 {
  4543. return fmt.Errorf("proto: PointAddByBpReq: illegal tag %d (wire type %d)", fieldNum, wire)
  4544. }
  4545. switch fieldNum {
  4546. case 2:
  4547. if wireType != 2 {
  4548. return fmt.Errorf("proto: wrong wireType = %d for field Pa", wireType)
  4549. }
  4550. var msglen int
  4551. for shift := uint(0); ; shift += 7 {
  4552. if shift >= 64 {
  4553. return ErrIntOverflowApi
  4554. }
  4555. if iNdEx >= l {
  4556. return io.ErrUnexpectedEOF
  4557. }
  4558. b := dAtA[iNdEx]
  4559. iNdEx++
  4560. msglen |= (int(b) & 0x7F) << shift
  4561. if b < 0x80 {
  4562. break
  4563. }
  4564. }
  4565. if msglen < 0 {
  4566. return ErrInvalidLengthApi
  4567. }
  4568. postIndex := iNdEx + msglen
  4569. if postIndex > l {
  4570. return io.ErrUnexpectedEOF
  4571. }
  4572. if m.Pa == nil {
  4573. m.Pa = &ModelArgPointAdd{}
  4574. }
  4575. if err := m.Pa.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4576. return err
  4577. }
  4578. iNdEx = postIndex
  4579. default:
  4580. iNdEx = preIndex
  4581. skippy, err := skipApi(dAtA[iNdEx:])
  4582. if err != nil {
  4583. return err
  4584. }
  4585. if skippy < 0 {
  4586. return ErrInvalidLengthApi
  4587. }
  4588. if (iNdEx + skippy) > l {
  4589. return io.ErrUnexpectedEOF
  4590. }
  4591. iNdEx += skippy
  4592. }
  4593. }
  4594. if iNdEx > l {
  4595. return io.ErrUnexpectedEOF
  4596. }
  4597. return nil
  4598. }
  4599. func (m *PointHistoryReply) Unmarshal(dAtA []byte) error {
  4600. l := len(dAtA)
  4601. iNdEx := 0
  4602. for iNdEx < l {
  4603. preIndex := iNdEx
  4604. var wire uint64
  4605. for shift := uint(0); ; shift += 7 {
  4606. if shift >= 64 {
  4607. return ErrIntOverflowApi
  4608. }
  4609. if iNdEx >= l {
  4610. return io.ErrUnexpectedEOF
  4611. }
  4612. b := dAtA[iNdEx]
  4613. iNdEx++
  4614. wire |= (uint64(b) & 0x7F) << shift
  4615. if b < 0x80 {
  4616. break
  4617. }
  4618. }
  4619. fieldNum := int32(wire >> 3)
  4620. wireType := int(wire & 0x7)
  4621. if wireType == 4 {
  4622. return fmt.Errorf("proto: PointHistoryReply: wiretype end group for non-group")
  4623. }
  4624. if fieldNum <= 0 {
  4625. return fmt.Errorf("proto: PointHistoryReply: illegal tag %d (wire type %d)", fieldNum, wire)
  4626. }
  4627. switch fieldNum {
  4628. case 1:
  4629. if wireType != 2 {
  4630. return fmt.Errorf("proto: wrong wireType = %d for field Phs", wireType)
  4631. }
  4632. var msglen int
  4633. for shift := uint(0); ; shift += 7 {
  4634. if shift >= 64 {
  4635. return ErrIntOverflowApi
  4636. }
  4637. if iNdEx >= l {
  4638. return io.ErrUnexpectedEOF
  4639. }
  4640. b := dAtA[iNdEx]
  4641. iNdEx++
  4642. msglen |= (int(b) & 0x7F) << shift
  4643. if b < 0x80 {
  4644. break
  4645. }
  4646. }
  4647. if msglen < 0 {
  4648. return ErrInvalidLengthApi
  4649. }
  4650. postIndex := iNdEx + msglen
  4651. if postIndex > l {
  4652. return io.ErrUnexpectedEOF
  4653. }
  4654. m.Phs = append(m.Phs, &ModelPointHistory{})
  4655. if err := m.Phs[len(m.Phs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4656. return err
  4657. }
  4658. iNdEx = postIndex
  4659. case 2:
  4660. if wireType != 0 {
  4661. return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType)
  4662. }
  4663. m.Total = 0
  4664. for shift := uint(0); ; shift += 7 {
  4665. if shift >= 64 {
  4666. return ErrIntOverflowApi
  4667. }
  4668. if iNdEx >= l {
  4669. return io.ErrUnexpectedEOF
  4670. }
  4671. b := dAtA[iNdEx]
  4672. iNdEx++
  4673. m.Total |= (int32(b) & 0x7F) << shift
  4674. if b < 0x80 {
  4675. break
  4676. }
  4677. }
  4678. case 3:
  4679. if wireType != 0 {
  4680. return fmt.Errorf("proto: wrong wireType = %d for field Ncursor", wireType)
  4681. }
  4682. m.Ncursor = 0
  4683. for shift := uint(0); ; shift += 7 {
  4684. if shift >= 64 {
  4685. return ErrIntOverflowApi
  4686. }
  4687. if iNdEx >= l {
  4688. return io.ErrUnexpectedEOF
  4689. }
  4690. b := dAtA[iNdEx]
  4691. iNdEx++
  4692. m.Ncursor |= (int32(b) & 0x7F) << shift
  4693. if b < 0x80 {
  4694. break
  4695. }
  4696. }
  4697. default:
  4698. iNdEx = preIndex
  4699. skippy, err := skipApi(dAtA[iNdEx:])
  4700. if err != nil {
  4701. return err
  4702. }
  4703. if skippy < 0 {
  4704. return ErrInvalidLengthApi
  4705. }
  4706. if (iNdEx + skippy) > l {
  4707. return io.ErrUnexpectedEOF
  4708. }
  4709. iNdEx += skippy
  4710. }
  4711. }
  4712. if iNdEx > l {
  4713. return io.ErrUnexpectedEOF
  4714. }
  4715. return nil
  4716. }
  4717. func (m *PointHistoryReq) Unmarshal(dAtA []byte) error {
  4718. l := len(dAtA)
  4719. iNdEx := 0
  4720. for iNdEx < l {
  4721. preIndex := iNdEx
  4722. var wire uint64
  4723. for shift := uint(0); ; shift += 7 {
  4724. if shift >= 64 {
  4725. return ErrIntOverflowApi
  4726. }
  4727. if iNdEx >= l {
  4728. return io.ErrUnexpectedEOF
  4729. }
  4730. b := dAtA[iNdEx]
  4731. iNdEx++
  4732. wire |= (uint64(b) & 0x7F) << shift
  4733. if b < 0x80 {
  4734. break
  4735. }
  4736. }
  4737. fieldNum := int32(wire >> 3)
  4738. wireType := int(wire & 0x7)
  4739. if wireType == 4 {
  4740. return fmt.Errorf("proto: PointHistoryReq: wiretype end group for non-group")
  4741. }
  4742. if fieldNum <= 0 {
  4743. return fmt.Errorf("proto: PointHistoryReq: illegal tag %d (wire type %d)", fieldNum, wire)
  4744. }
  4745. switch fieldNum {
  4746. case 2:
  4747. if wireType != 0 {
  4748. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  4749. }
  4750. m.Mid = 0
  4751. for shift := uint(0); ; shift += 7 {
  4752. if shift >= 64 {
  4753. return ErrIntOverflowApi
  4754. }
  4755. if iNdEx >= l {
  4756. return io.ErrUnexpectedEOF
  4757. }
  4758. b := dAtA[iNdEx]
  4759. iNdEx++
  4760. m.Mid |= (int64(b) & 0x7F) << shift
  4761. if b < 0x80 {
  4762. break
  4763. }
  4764. }
  4765. case 3:
  4766. if wireType != 0 {
  4767. return fmt.Errorf("proto: wrong wireType = %d for field Cursor", wireType)
  4768. }
  4769. m.Cursor = 0
  4770. for shift := uint(0); ; shift += 7 {
  4771. if shift >= 64 {
  4772. return ErrIntOverflowApi
  4773. }
  4774. if iNdEx >= l {
  4775. return io.ErrUnexpectedEOF
  4776. }
  4777. b := dAtA[iNdEx]
  4778. iNdEx++
  4779. m.Cursor |= (int32(b) & 0x7F) << shift
  4780. if b < 0x80 {
  4781. break
  4782. }
  4783. }
  4784. case 4:
  4785. if wireType != 0 {
  4786. return fmt.Errorf("proto: wrong wireType = %d for field Ps", wireType)
  4787. }
  4788. m.Ps = 0
  4789. for shift := uint(0); ; shift += 7 {
  4790. if shift >= 64 {
  4791. return ErrIntOverflowApi
  4792. }
  4793. if iNdEx >= l {
  4794. return io.ErrUnexpectedEOF
  4795. }
  4796. b := dAtA[iNdEx]
  4797. iNdEx++
  4798. m.Ps |= (int32(b) & 0x7F) << shift
  4799. if b < 0x80 {
  4800. break
  4801. }
  4802. }
  4803. default:
  4804. iNdEx = preIndex
  4805. skippy, err := skipApi(dAtA[iNdEx:])
  4806. if err != nil {
  4807. return err
  4808. }
  4809. if skippy < 0 {
  4810. return ErrInvalidLengthApi
  4811. }
  4812. if (iNdEx + skippy) > l {
  4813. return io.ErrUnexpectedEOF
  4814. }
  4815. iNdEx += skippy
  4816. }
  4817. }
  4818. if iNdEx > l {
  4819. return io.ErrUnexpectedEOF
  4820. }
  4821. return nil
  4822. }
  4823. func (m *PointInfoReply) Unmarshal(dAtA []byte) error {
  4824. l := len(dAtA)
  4825. iNdEx := 0
  4826. for iNdEx < l {
  4827. preIndex := iNdEx
  4828. var wire uint64
  4829. for shift := uint(0); ; shift += 7 {
  4830. if shift >= 64 {
  4831. return ErrIntOverflowApi
  4832. }
  4833. if iNdEx >= l {
  4834. return io.ErrUnexpectedEOF
  4835. }
  4836. b := dAtA[iNdEx]
  4837. iNdEx++
  4838. wire |= (uint64(b) & 0x7F) << shift
  4839. if b < 0x80 {
  4840. break
  4841. }
  4842. }
  4843. fieldNum := int32(wire >> 3)
  4844. wireType := int(wire & 0x7)
  4845. if wireType == 4 {
  4846. return fmt.Errorf("proto: PointInfoReply: wiretype end group for non-group")
  4847. }
  4848. if fieldNum <= 0 {
  4849. return fmt.Errorf("proto: PointInfoReply: illegal tag %d (wire type %d)", fieldNum, wire)
  4850. }
  4851. switch fieldNum {
  4852. case 1:
  4853. if wireType != 2 {
  4854. return fmt.Errorf("proto: wrong wireType = %d for field Pi", wireType)
  4855. }
  4856. var msglen int
  4857. for shift := uint(0); ; shift += 7 {
  4858. if shift >= 64 {
  4859. return ErrIntOverflowApi
  4860. }
  4861. if iNdEx >= l {
  4862. return io.ErrUnexpectedEOF
  4863. }
  4864. b := dAtA[iNdEx]
  4865. iNdEx++
  4866. msglen |= (int(b) & 0x7F) << shift
  4867. if b < 0x80 {
  4868. break
  4869. }
  4870. }
  4871. if msglen < 0 {
  4872. return ErrInvalidLengthApi
  4873. }
  4874. postIndex := iNdEx + msglen
  4875. if postIndex > l {
  4876. return io.ErrUnexpectedEOF
  4877. }
  4878. if m.Pi == nil {
  4879. m.Pi = &ModelPointInfo{}
  4880. }
  4881. if err := m.Pi.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4882. return err
  4883. }
  4884. iNdEx = postIndex
  4885. default:
  4886. iNdEx = preIndex
  4887. skippy, err := skipApi(dAtA[iNdEx:])
  4888. if err != nil {
  4889. return err
  4890. }
  4891. if skippy < 0 {
  4892. return ErrInvalidLengthApi
  4893. }
  4894. if (iNdEx + skippy) > l {
  4895. return io.ErrUnexpectedEOF
  4896. }
  4897. iNdEx += skippy
  4898. }
  4899. }
  4900. if iNdEx > l {
  4901. return io.ErrUnexpectedEOF
  4902. }
  4903. return nil
  4904. }
  4905. func (m *PointInfoReq) Unmarshal(dAtA []byte) error {
  4906. l := len(dAtA)
  4907. iNdEx := 0
  4908. for iNdEx < l {
  4909. preIndex := iNdEx
  4910. var wire uint64
  4911. for shift := uint(0); ; shift += 7 {
  4912. if shift >= 64 {
  4913. return ErrIntOverflowApi
  4914. }
  4915. if iNdEx >= l {
  4916. return io.ErrUnexpectedEOF
  4917. }
  4918. b := dAtA[iNdEx]
  4919. iNdEx++
  4920. wire |= (uint64(b) & 0x7F) << shift
  4921. if b < 0x80 {
  4922. break
  4923. }
  4924. }
  4925. fieldNum := int32(wire >> 3)
  4926. wireType := int(wire & 0x7)
  4927. if wireType == 4 {
  4928. return fmt.Errorf("proto: PointInfoReq: wiretype end group for non-group")
  4929. }
  4930. if fieldNum <= 0 {
  4931. return fmt.Errorf("proto: PointInfoReq: illegal tag %d (wire type %d)", fieldNum, wire)
  4932. }
  4933. switch fieldNum {
  4934. case 2:
  4935. if wireType != 0 {
  4936. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  4937. }
  4938. m.Mid = 0
  4939. for shift := uint(0); ; shift += 7 {
  4940. if shift >= 64 {
  4941. return ErrIntOverflowApi
  4942. }
  4943. if iNdEx >= l {
  4944. return io.ErrUnexpectedEOF
  4945. }
  4946. b := dAtA[iNdEx]
  4947. iNdEx++
  4948. m.Mid |= (int64(b) & 0x7F) << shift
  4949. if b < 0x80 {
  4950. break
  4951. }
  4952. }
  4953. default:
  4954. iNdEx = preIndex
  4955. skippy, err := skipApi(dAtA[iNdEx:])
  4956. if err != nil {
  4957. return err
  4958. }
  4959. if skippy < 0 {
  4960. return ErrInvalidLengthApi
  4961. }
  4962. if (iNdEx + skippy) > l {
  4963. return io.ErrUnexpectedEOF
  4964. }
  4965. iNdEx += skippy
  4966. }
  4967. }
  4968. if iNdEx > l {
  4969. return io.ErrUnexpectedEOF
  4970. }
  4971. return nil
  4972. }
  4973. func skipApi(dAtA []byte) (n int, err error) {
  4974. l := len(dAtA)
  4975. iNdEx := 0
  4976. for iNdEx < l {
  4977. var wire uint64
  4978. for shift := uint(0); ; shift += 7 {
  4979. if shift >= 64 {
  4980. return 0, ErrIntOverflowApi
  4981. }
  4982. if iNdEx >= l {
  4983. return 0, io.ErrUnexpectedEOF
  4984. }
  4985. b := dAtA[iNdEx]
  4986. iNdEx++
  4987. wire |= (uint64(b) & 0x7F) << shift
  4988. if b < 0x80 {
  4989. break
  4990. }
  4991. }
  4992. wireType := int(wire & 0x7)
  4993. switch wireType {
  4994. case 0:
  4995. for shift := uint(0); ; shift += 7 {
  4996. if shift >= 64 {
  4997. return 0, ErrIntOverflowApi
  4998. }
  4999. if iNdEx >= l {
  5000. return 0, io.ErrUnexpectedEOF
  5001. }
  5002. iNdEx++
  5003. if dAtA[iNdEx-1] < 0x80 {
  5004. break
  5005. }
  5006. }
  5007. return iNdEx, nil
  5008. case 1:
  5009. iNdEx += 8
  5010. return iNdEx, nil
  5011. case 2:
  5012. var length int
  5013. for shift := uint(0); ; shift += 7 {
  5014. if shift >= 64 {
  5015. return 0, ErrIntOverflowApi
  5016. }
  5017. if iNdEx >= l {
  5018. return 0, io.ErrUnexpectedEOF
  5019. }
  5020. b := dAtA[iNdEx]
  5021. iNdEx++
  5022. length |= (int(b) & 0x7F) << shift
  5023. if b < 0x80 {
  5024. break
  5025. }
  5026. }
  5027. iNdEx += length
  5028. if length < 0 {
  5029. return 0, ErrInvalidLengthApi
  5030. }
  5031. return iNdEx, nil
  5032. case 3:
  5033. for {
  5034. var innerWire uint64
  5035. var start int = iNdEx
  5036. for shift := uint(0); ; shift += 7 {
  5037. if shift >= 64 {
  5038. return 0, ErrIntOverflowApi
  5039. }
  5040. if iNdEx >= l {
  5041. return 0, io.ErrUnexpectedEOF
  5042. }
  5043. b := dAtA[iNdEx]
  5044. iNdEx++
  5045. innerWire |= (uint64(b) & 0x7F) << shift
  5046. if b < 0x80 {
  5047. break
  5048. }
  5049. }
  5050. innerWireType := int(innerWire & 0x7)
  5051. if innerWireType == 4 {
  5052. break
  5053. }
  5054. next, err := skipApi(dAtA[start:])
  5055. if err != nil {
  5056. return 0, err
  5057. }
  5058. iNdEx = start + next
  5059. }
  5060. return iNdEx, nil
  5061. case 4:
  5062. return iNdEx, nil
  5063. case 5:
  5064. iNdEx += 4
  5065. return iNdEx, nil
  5066. default:
  5067. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  5068. }
  5069. }
  5070. panic("unreachable")
  5071. }
  5072. var (
  5073. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  5074. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  5075. )
  5076. func init() { proto.RegisterFile("api.proto", fileDescriptorApi) }
  5077. var fileDescriptorApi = []byte{
  5078. // 960 bytes of a gzipped FileDescriptorProto
  5079. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xcf, 0x6e, 0x23, 0x45,
  5080. 0x13, 0xd7, 0xf4, 0x64, 0x1c, 0x4f, 0xd9, 0x71, 0x92, 0x56, 0x94, 0x6f, 0x76, 0xbe, 0xdd, 0xc4,
  5081. 0xdb, 0x39, 0x60, 0x09, 0x30, 0xc1, 0x2b, 0xa4, 0x88, 0x95, 0x58, 0xd9, 0x59, 0x16, 0x22, 0x04,
  5082. 0x44, 0x23, 0x2e, 0xcb, 0x25, 0x6a, 0xcf, 0xcc, 0x66, 0x47, 0x3b, 0x9e, 0x6e, 0xcf, 0x8c, 0x83,
  5083. 0xfc, 0x0c, 0xf0, 0x00, 0x9c, 0x91, 0x38, 0xf3, 0x1a, 0x1c, 0x79, 0x04, 0x94, 0x0b, 0xaf, 0x81,
  5084. 0xa6, 0xbb, 0xed, 0xf9, 0x6b, 0x13, 0x71, 0xe6, 0xd6, 0xd5, 0x5d, 0x5d, 0xf5, 0xab, 0x5f, 0x55,
  5085. 0x57, 0x17, 0x98, 0x94, 0x07, 0x43, 0x1e, 0xb3, 0x94, 0xe1, 0x3d, 0xea, 0xba, 0x6c, 0x11, 0xa5,
  5086. 0x43, 0xce, 0x82, 0x28, 0x25, 0xef, 0xc1, 0xde, 0xd8, 0xf3, 0xae, 0xb3, 0xb5, 0xe3, 0xf3, 0x70,
  5087. 0x89, 0x8f, 0xa1, 0x95, 0xa4, 0x34, 0x5d, 0x24, 0x96, 0xd6, 0xd7, 0x06, 0x86, 0xa3, 0x24, 0xf2,
  5088. 0x1c, 0x3a, 0xb9, 0xe2, 0x1c, 0x7f, 0x00, 0x88, 0xbb, 0x16, 0xea, 0x6b, 0x83, 0xce, 0xe8, 0xf1,
  5089. 0xb0, 0x64, 0x73, 0xf8, 0x35, 0xf3, 0xfc, 0x70, 0x1c, 0xdf, 0x4a, 0x65, 0xc4, 0x5d, 0xf2, 0xa3,
  5090. 0x06, 0xbd, 0x71, 0x18, 0x5e, 0xb2, 0xe8, 0x4d, 0x70, 0x2b, 0xfd, 0xbc, 0x80, 0x96, 0x47, 0x53,
  5091. 0x7a, 0x73, 0x6e, 0x69, 0x7d, 0x7d, 0xd0, 0x19, 0x0d, 0x2a, 0x46, 0xca, 0xea, 0xc3, 0x97, 0x34,
  5092. 0xa5, 0xe7, 0x9f, 0x47, 0x69, 0xbc, 0x74, 0x8c, 0xec, 0xde, 0xb9, 0x7d, 0x01, 0x90, 0x6f, 0xe2,
  5093. 0x03, 0xd0, 0xdf, 0xf9, 0x4b, 0x81, 0xd9, 0x74, 0xb2, 0x25, 0x3e, 0x02, 0xe3, 0x8e, 0x86, 0x0b,
  5094. 0x5f, 0x80, 0xd4, 0x1d, 0x29, 0x7c, 0x8a, 0x2e, 0x34, 0xd2, 0x83, 0x6e, 0xc1, 0xfa, 0x9c, 0x74,
  5095. 0x01, 0x2e, 0x43, 0x96, 0xf8, 0xc2, 0x13, 0x01, 0x68, 0x2b, 0x69, 0x4e, 0xce, 0xa0, 0x53, 0xc4,
  5096. 0x7c, 0x04, 0x86, 0x00, 0x27, 0xdc, 0xe8, 0x8e, 0x14, 0xc8, 0x37, 0x60, 0xae, 0x6d, 0xe1, 0x53,
  5097. 0xe8, 0xb8, 0x6f, 0x69, 0x74, 0xeb, 0xdf, 0xa4, 0x4b, 0x2e, 0x7d, 0x1b, 0x0e, 0xc8, 0xad, 0xef,
  5098. 0x96, 0xdc, 0xcf, 0x80, 0xce, 0x02, 0xcf, 0xd2, 0x85, 0x85, 0x6c, 0x89, 0x7b, 0x80, 0xa6, 0xdc,
  5099. 0xda, 0xe9, 0x6b, 0x03, 0xcd, 0x41, 0x53, 0x4e, 0xde, 0x87, 0xc3, 0x4b, 0x16, 0x25, 0x8b, 0x99,
  5100. 0xff, 0x80, 0xb4, 0xbc, 0x82, 0xfd, 0xb2, 0xf2, 0x1c, 0x3f, 0x2b, 0xa4, 0xe6, 0x6c, 0x5b, 0x6a,
  5101. 0xd4, 0x45, 0x91, 0xa1, 0x9f, 0x34, 0xd8, 0x2b, 0x1d, 0xae, 0x80, 0x6a, 0x39, 0xd0, 0x86, 0xd8,
  5102. 0xf4, 0x52, 0x6c, 0x6b, 0x7e, 0xf4, 0x02, 0x3f, 0x19, 0xf4, 0xd8, 0x9f, 0xd1, 0xf8, 0x9d, 0x88,
  5103. 0xd1, 0x74, 0x94, 0x84, 0x6d, 0x68, 0x33, 0xee, 0xc7, 0x34, 0x65, 0xb1, 0x65, 0x88, 0x93, 0xb5,
  5104. 0x4c, 0x7e, 0xd3, 0xe0, 0xa0, 0x04, 0x67, 0xec, 0x79, 0x0f, 0x43, 0x54, 0x66, 0xfb, 0x14, 0x3a,
  5105. 0xb1, 0x1f, 0xd2, 0x34, 0x60, 0xd1, 0x8d, 0x62, 0xdd, 0x74, 0x60, 0xb5, 0x75, 0xe5, 0x65, 0x90,
  5106. 0xa7, 0x2e, 0x0b, 0x22, 0xc5, 0xbf, 0x14, 0x0a, 0x90, 0x8d, 0x12, 0xe4, 0x47, 0xd0, 0x66, 0xb1,
  5107. 0xe7, 0xc7, 0x99, 0xad, 0x96, 0x38, 0xd9, 0x15, 0xf2, 0x95, 0x47, 0x7e, 0xd6, 0xe0, 0xa8, 0x89,
  5108. 0xdd, 0x7f, 0xc3, 0xe3, 0x43, 0x50, 0x4b, 0xa2, 0x77, 0x9a, 0x89, 0x2e, 0xa1, 0x26, 0xbf, 0x22,
  5109. 0x05, 0xed, 0xdb, 0x50, 0x3e, 0xe0, 0x2f, 0x83, 0x24, 0x65, 0xf1, 0x32, 0xab, 0xbc, 0x35, 0x32,
  5110. 0x14, 0xac, 0x09, 0x46, 0x39, 0xd4, 0xe6, 0x8c, 0x16, 0x69, 0xd8, 0x29, 0xd1, 0x50, 0x8d, 0xcd,
  5111. 0x68, 0xca, 0xc8, 0x4a, 0x21, 0x98, 0xf9, 0x82, 0xc5, 0x3c, 0xf8, 0x60, 0x56, 0x0b, 0x7e, 0xb7,
  5112. 0x16, 0xfc, 0x19, 0xec, 0x09, 0x18, 0x37, 0x53, 0x1a, 0xd2, 0xc8, 0xf5, 0xad, 0xb6, 0xb0, 0xd1,
  5113. 0x15, 0x9b, 0x13, 0xb9, 0x57, 0xe0, 0xc2, 0xdc, 0x58, 0x74, 0x50, 0x29, 0xba, 0x5f, 0x10, 0x1c,
  5114. 0x0a, 0x9e, 0xfe, 0x23, 0x69, 0x33, 0x49, 0xaf, 0xa1, 0x97, 0x73, 0x74, 0x15, 0xbd, 0x61, 0x0d,
  5115. 0x05, 0x5e, 0x73, 0x8e, 0x1a, 0x9c, 0x1f, 0x80, 0x7e, 0xe7, 0xc7, 0xab, 0x46, 0x78, 0xe7, 0xc7,
  5116. 0xc4, 0x85, 0xa3, 0x4a, 0x85, 0xca, 0xde, 0xf7, 0x09, 0xe8, 0xfc, 0x6d, 0xa2, 0xfe, 0x89, 0xc6,
  5117. 0x8e, 0x56, 0xbd, 0x96, 0xe9, 0x67, 0x69, 0x49, 0x59, 0x4a, 0x43, 0xd5, 0x16, 0xa4, 0x40, 0x5e,
  5118. 0x01, 0xae, 0x39, 0x99, 0x37, 0x24, 0xb5, 0x07, 0x88, 0x47, 0x02, 0x9d, 0xe1, 0x20, 0x1e, 0x09,
  5119. 0x39, 0x11, 0x89, 0xcc, 0xe4, 0x84, 0x74, 0xc0, 0xbc, 0x0e, 0x22, 0xf9, 0x31, 0x10, 0x13, 0x76,
  5120. 0xa5, 0x30, 0x27, 0x4f, 0xe1, 0x70, 0xd5, 0xb0, 0x26, 0xcb, 0x09, 0x97, 0x11, 0x74, 0x41, 0xe3,
  5121. 0x8a, 0x20, 0x8d, 0x93, 0x09, 0xec, 0x97, 0x55, 0xe6, 0xf8, 0x23, 0x40, 0x9c, 0xaa, 0x9e, 0x7d,
  5122. 0xba, 0xad, 0x67, 0x8f, 0x3d, 0xcf, 0x41, 0x9c, 0x92, 0x1f, 0x94, 0x9b, 0x12, 0x51, 0xa3, 0x22,
  5123. 0x51, 0xfd, 0x26, 0x33, 0x0f, 0x64, 0x09, 0x5b, 0xb0, 0x1b, 0xb9, 0x8b, 0x38, 0x61, 0xb1, 0xa2,
  5124. 0x60, 0x25, 0x92, 0xaf, 0x14, 0xf8, 0xad, 0xe4, 0x1d, 0x43, 0xab, 0x74, 0x5b, 0x49, 0x35, 0x12,
  5125. 0x5f, 0x40, 0x6f, 0x5d, 0x47, 0x32, 0x84, 0x0f, 0x01, 0xf1, 0x40, 0x50, 0xd5, 0x19, 0x3d, 0xd9,
  5126. 0x18, 0x81, 0xd0, 0x47, 0x3c, 0x20, 0x7d, 0xe8, 0x16, 0x0c, 0x34, 0x40, 0x19, 0xfd, 0x65, 0x80,
  5127. 0x21, 0x3f, 0xb4, 0xcf, 0xa0, 0x25, 0xff, 0x69, 0x6c, 0x55, 0x0c, 0xaf, 0xbf, 0x6f, 0xdb, 0xde,
  5128. 0x70, 0x92, 0x41, 0xfb, 0x02, 0xcc, 0xf5, 0xd8, 0x80, 0xff, 0xbf, 0x79, 0x5c, 0x99, 0xdb, 0x4f,
  5129. 0xb6, 0xce, 0x32, 0xf8, 0x02, 0x76, 0xb2, 0x6a, 0xc1, 0xc7, 0x15, 0x35, 0x55, 0x42, 0xb6, 0xd5,
  5130. 0xb8, 0x9f, 0xdd, 0x7c, 0x0e, 0x86, 0x98, 0x4d, 0xf0, 0xff, 0xaa, 0x38, 0xd5, 0xc4, 0x62, 0x3f,
  5131. 0x6a, 0x3e, 0x50, 0xf8, 0xf3, 0x47, 0x5b, 0xc5, 0x5f, 0x64, 0xb1, 0x86, 0xbf, 0x92, 0xa3, 0x6b,
  5132. 0x45, 0xfa, 0xaa, 0x43, 0x9e, 0x34, 0xa9, 0xe7, 0xf5, 0x61, 0xf7, 0xb7, 0x9e, 0x67, 0x16, 0x5f,
  5133. 0xc3, 0x7e, 0xf5, 0x6f, 0x7a, 0x5a, 0xb9, 0x54, 0x7f, 0xb4, 0xf6, 0xd9, 0x3f, 0xa9, 0x14, 0xc1,
  5134. 0xaa, 0xc7, 0xd6, 0x0c, 0x36, 0x7f, 0x89, 0xcd, 0x60, 0x4b, 0x8f, 0xf9, 0x1a, 0xba, 0xc5, 0x91,
  5135. 0xab, 0x66, 0xb1, 0x32, 0x8f, 0xd5, 0x2c, 0xd6, 0x87, 0xbb, 0x97, 0xd0, 0x5e, 0xcd, 0xd6, 0xb8,
  5136. 0x5a, 0x81, 0x85, 0xa1, 0xdb, 0x7e, 0xbc, 0xf1, 0x8c, 0x87, 0xcb, 0xc9, 0xc1, 0xef, 0xf7, 0x27,
  5137. 0xda, 0x1f, 0xf7, 0x27, 0xda, 0x9f, 0xf7, 0x27, 0xda, 0xf7, 0xe8, 0xee, 0xe3, 0x69, 0x4b, 0x8c,
  5138. 0xfc, 0xcf, 0xfe, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xc6, 0x4b, 0xee, 0x6e, 0xff, 0x0b, 0x00, 0x00,
  5139. }