api.pb.go 108 KB

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