api.pb.go 141 KB

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