model.pb.go 83 KB

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