titans.pb.go 94 KB

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