user_resource.pb.go 101 KB

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