api.pb.go 137 KB

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