UserSetting.pb.go 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: v1/UserSetting.proto
  3. package v1
  4. import proto "github.com/gogo/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/gogo/protobuf/gogoproto"
  8. import io "io"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  18. type UserSettingGetTagReq struct {
  19. }
  20. func (m *UserSettingGetTagReq) Reset() { *m = UserSettingGetTagReq{} }
  21. func (m *UserSettingGetTagReq) String() string { return proto.CompactTextString(m) }
  22. func (*UserSettingGetTagReq) ProtoMessage() {}
  23. func (*UserSettingGetTagReq) Descriptor() ([]byte, []int) {
  24. return fileDescriptor_UserSetting_6ecfe772383476d5, []int{0}
  25. }
  26. func (m *UserSettingGetTagReq) XXX_Unmarshal(b []byte) error {
  27. return m.Unmarshal(b)
  28. }
  29. func (m *UserSettingGetTagReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  30. if deterministic {
  31. return xxx_messageInfo_UserSettingGetTagReq.Marshal(b, m, deterministic)
  32. } else {
  33. b = b[:cap(b)]
  34. n, err := m.MarshalTo(b)
  35. if err != nil {
  36. return nil, err
  37. }
  38. return b[:n], nil
  39. }
  40. }
  41. func (dst *UserSettingGetTagReq) XXX_Merge(src proto.Message) {
  42. xxx_messageInfo_UserSettingGetTagReq.Merge(dst, src)
  43. }
  44. func (m *UserSettingGetTagReq) XXX_Size() int {
  45. return m.Size()
  46. }
  47. func (m *UserSettingGetTagReq) XXX_DiscardUnknown() {
  48. xxx_messageInfo_UserSettingGetTagReq.DiscardUnknown(m)
  49. }
  50. var xxx_messageInfo_UserSettingGetTagReq proto.InternalMessageInfo
  51. type UserSettingGetTagResp struct {
  52. // code
  53. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  54. // msg
  55. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  56. //
  57. Data *UserSettingGetTagResp_Data `protobuf:"bytes,3,opt,name=data" json:"data"`
  58. }
  59. func (m *UserSettingGetTagResp) Reset() { *m = UserSettingGetTagResp{} }
  60. func (m *UserSettingGetTagResp) String() string { return proto.CompactTextString(m) }
  61. func (*UserSettingGetTagResp) ProtoMessage() {}
  62. func (*UserSettingGetTagResp) Descriptor() ([]byte, []int) {
  63. return fileDescriptor_UserSetting_6ecfe772383476d5, []int{1}
  64. }
  65. func (m *UserSettingGetTagResp) XXX_Unmarshal(b []byte) error {
  66. return m.Unmarshal(b)
  67. }
  68. func (m *UserSettingGetTagResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  69. if deterministic {
  70. return xxx_messageInfo_UserSettingGetTagResp.Marshal(b, m, deterministic)
  71. } else {
  72. b = b[:cap(b)]
  73. n, err := m.MarshalTo(b)
  74. if err != nil {
  75. return nil, err
  76. }
  77. return b[:n], nil
  78. }
  79. }
  80. func (dst *UserSettingGetTagResp) XXX_Merge(src proto.Message) {
  81. xxx_messageInfo_UserSettingGetTagResp.Merge(dst, src)
  82. }
  83. func (m *UserSettingGetTagResp) XXX_Size() int {
  84. return m.Size()
  85. }
  86. func (m *UserSettingGetTagResp) XXX_DiscardUnknown() {
  87. xxx_messageInfo_UserSettingGetTagResp.DiscardUnknown(m)
  88. }
  89. var xxx_messageInfo_UserSettingGetTagResp proto.InternalMessageInfo
  90. func (m *UserSettingGetTagResp) GetCode() int64 {
  91. if m != nil {
  92. return m.Code
  93. }
  94. return 0
  95. }
  96. func (m *UserSettingGetTagResp) GetMsg() string {
  97. if m != nil {
  98. return m.Msg
  99. }
  100. return ""
  101. }
  102. func (m *UserSettingGetTagResp) GetData() *UserSettingGetTagResp_Data {
  103. if m != nil {
  104. return m.Data
  105. }
  106. return nil
  107. }
  108. type UserSettingGetTagResp_Tags struct {
  109. // tag id
  110. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  111. // tag name
  112. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
  113. // 标签图标
  114. Pic string `protobuf:"bytes,3,opt,name=pic,proto3" json:"pic"`
  115. // 是否为推荐标签 1是 0否
  116. IsAdvice int64 `protobuf:"varint,4,opt,name=is_advice,json=isAdvice,proto3" json:"is_advice"`
  117. // 父分区id
  118. ParentId int64 `protobuf:"varint,5,opt,name=parent_id,json=parentId,proto3" json:"parent_id"`
  119. // 父分区名
  120. ParentName string `protobuf:"bytes,6,opt,name=parent_name,json=parentName,proto3" json:"parent_name"`
  121. // 活动id
  122. ActId int64 `protobuf:"varint,7,opt,name=act_id,json=actId,proto3" json:"act_id"`
  123. }
  124. func (m *UserSettingGetTagResp_Tags) Reset() { *m = UserSettingGetTagResp_Tags{} }
  125. func (m *UserSettingGetTagResp_Tags) String() string { return proto.CompactTextString(m) }
  126. func (*UserSettingGetTagResp_Tags) ProtoMessage() {}
  127. func (*UserSettingGetTagResp_Tags) Descriptor() ([]byte, []int) {
  128. return fileDescriptor_UserSetting_6ecfe772383476d5, []int{1, 0}
  129. }
  130. func (m *UserSettingGetTagResp_Tags) XXX_Unmarshal(b []byte) error {
  131. return m.Unmarshal(b)
  132. }
  133. func (m *UserSettingGetTagResp_Tags) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  134. if deterministic {
  135. return xxx_messageInfo_UserSettingGetTagResp_Tags.Marshal(b, m, deterministic)
  136. } else {
  137. b = b[:cap(b)]
  138. n, err := m.MarshalTo(b)
  139. if err != nil {
  140. return nil, err
  141. }
  142. return b[:n], nil
  143. }
  144. }
  145. func (dst *UserSettingGetTagResp_Tags) XXX_Merge(src proto.Message) {
  146. xxx_messageInfo_UserSettingGetTagResp_Tags.Merge(dst, src)
  147. }
  148. func (m *UserSettingGetTagResp_Tags) XXX_Size() int {
  149. return m.Size()
  150. }
  151. func (m *UserSettingGetTagResp_Tags) XXX_DiscardUnknown() {
  152. xxx_messageInfo_UserSettingGetTagResp_Tags.DiscardUnknown(m)
  153. }
  154. var xxx_messageInfo_UserSettingGetTagResp_Tags proto.InternalMessageInfo
  155. func (m *UserSettingGetTagResp_Tags) GetId() int64 {
  156. if m != nil {
  157. return m.Id
  158. }
  159. return 0
  160. }
  161. func (m *UserSettingGetTagResp_Tags) GetName() string {
  162. if m != nil {
  163. return m.Name
  164. }
  165. return ""
  166. }
  167. func (m *UserSettingGetTagResp_Tags) GetPic() string {
  168. if m != nil {
  169. return m.Pic
  170. }
  171. return ""
  172. }
  173. func (m *UserSettingGetTagResp_Tags) GetIsAdvice() int64 {
  174. if m != nil {
  175. return m.IsAdvice
  176. }
  177. return 0
  178. }
  179. func (m *UserSettingGetTagResp_Tags) GetParentId() int64 {
  180. if m != nil {
  181. return m.ParentId
  182. }
  183. return 0
  184. }
  185. func (m *UserSettingGetTagResp_Tags) GetParentName() string {
  186. if m != nil {
  187. return m.ParentName
  188. }
  189. return ""
  190. }
  191. func (m *UserSettingGetTagResp_Tags) GetActId() int64 {
  192. if m != nil {
  193. return m.ActId
  194. }
  195. return 0
  196. }
  197. type UserSettingGetTagResp_OfflineTags struct {
  198. // 标签id
  199. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  200. // 标签名称
  201. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
  202. }
  203. func (m *UserSettingGetTagResp_OfflineTags) Reset() { *m = UserSettingGetTagResp_OfflineTags{} }
  204. func (m *UserSettingGetTagResp_OfflineTags) String() string { return proto.CompactTextString(m) }
  205. func (*UserSettingGetTagResp_OfflineTags) ProtoMessage() {}
  206. func (*UserSettingGetTagResp_OfflineTags) Descriptor() ([]byte, []int) {
  207. return fileDescriptor_UserSetting_6ecfe772383476d5, []int{1, 1}
  208. }
  209. func (m *UserSettingGetTagResp_OfflineTags) XXX_Unmarshal(b []byte) error {
  210. return m.Unmarshal(b)
  211. }
  212. func (m *UserSettingGetTagResp_OfflineTags) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  213. if deterministic {
  214. return xxx_messageInfo_UserSettingGetTagResp_OfflineTags.Marshal(b, m, deterministic)
  215. } else {
  216. b = b[:cap(b)]
  217. n, err := m.MarshalTo(b)
  218. if err != nil {
  219. return nil, err
  220. }
  221. return b[:n], nil
  222. }
  223. }
  224. func (dst *UserSettingGetTagResp_OfflineTags) XXX_Merge(src proto.Message) {
  225. xxx_messageInfo_UserSettingGetTagResp_OfflineTags.Merge(dst, src)
  226. }
  227. func (m *UserSettingGetTagResp_OfflineTags) XXX_Size() int {
  228. return m.Size()
  229. }
  230. func (m *UserSettingGetTagResp_OfflineTags) XXX_DiscardUnknown() {
  231. xxx_messageInfo_UserSettingGetTagResp_OfflineTags.DiscardUnknown(m)
  232. }
  233. var xxx_messageInfo_UserSettingGetTagResp_OfflineTags proto.InternalMessageInfo
  234. func (m *UserSettingGetTagResp_OfflineTags) GetId() int64 {
  235. if m != nil {
  236. return m.Id
  237. }
  238. return 0
  239. }
  240. func (m *UserSettingGetTagResp_OfflineTags) GetName() string {
  241. if m != nil {
  242. return m.Name
  243. }
  244. return ""
  245. }
  246. type UserSettingGetTagResp_Data struct {
  247. // 常用标签列表
  248. Tags []*UserSettingGetTagResp_Tags `protobuf:"bytes,1,rep,name=tags" json:"tags"`
  249. // 下线被删除的标签
  250. Offline []*UserSettingGetTagResp_OfflineTags `protobuf:"bytes,2,rep,name=offline" json:"offline"`
  251. // 用户id
  252. Uid int64 `protobuf:"varint,3,opt,name=uid,proto3" json:"uid"`
  253. // 是否灰度 1代表灰度 0不灰也就是不可见
  254. IsGray int64 `protobuf:"varint,4,opt,name=is_gray,json=isGray,proto3" json:"is_gray"`
  255. }
  256. func (m *UserSettingGetTagResp_Data) Reset() { *m = UserSettingGetTagResp_Data{} }
  257. func (m *UserSettingGetTagResp_Data) String() string { return proto.CompactTextString(m) }
  258. func (*UserSettingGetTagResp_Data) ProtoMessage() {}
  259. func (*UserSettingGetTagResp_Data) Descriptor() ([]byte, []int) {
  260. return fileDescriptor_UserSetting_6ecfe772383476d5, []int{1, 2}
  261. }
  262. func (m *UserSettingGetTagResp_Data) XXX_Unmarshal(b []byte) error {
  263. return m.Unmarshal(b)
  264. }
  265. func (m *UserSettingGetTagResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  266. if deterministic {
  267. return xxx_messageInfo_UserSettingGetTagResp_Data.Marshal(b, m, deterministic)
  268. } else {
  269. b = b[:cap(b)]
  270. n, err := m.MarshalTo(b)
  271. if err != nil {
  272. return nil, err
  273. }
  274. return b[:n], nil
  275. }
  276. }
  277. func (dst *UserSettingGetTagResp_Data) XXX_Merge(src proto.Message) {
  278. xxx_messageInfo_UserSettingGetTagResp_Data.Merge(dst, src)
  279. }
  280. func (m *UserSettingGetTagResp_Data) XXX_Size() int {
  281. return m.Size()
  282. }
  283. func (m *UserSettingGetTagResp_Data) XXX_DiscardUnknown() {
  284. xxx_messageInfo_UserSettingGetTagResp_Data.DiscardUnknown(m)
  285. }
  286. var xxx_messageInfo_UserSettingGetTagResp_Data proto.InternalMessageInfo
  287. func (m *UserSettingGetTagResp_Data) GetTags() []*UserSettingGetTagResp_Tags {
  288. if m != nil {
  289. return m.Tags
  290. }
  291. return nil
  292. }
  293. func (m *UserSettingGetTagResp_Data) GetOffline() []*UserSettingGetTagResp_OfflineTags {
  294. if m != nil {
  295. return m.Offline
  296. }
  297. return nil
  298. }
  299. func (m *UserSettingGetTagResp_Data) GetUid() int64 {
  300. if m != nil {
  301. return m.Uid
  302. }
  303. return 0
  304. }
  305. func (m *UserSettingGetTagResp_Data) GetIsGray() int64 {
  306. if m != nil {
  307. return m.IsGray
  308. }
  309. return 0
  310. }
  311. func init() {
  312. proto.RegisterType((*UserSettingGetTagReq)(nil), "live_user.v1.UserSettingGetTagReq")
  313. proto.RegisterType((*UserSettingGetTagResp)(nil), "live_user.v1.UserSettingGetTagResp")
  314. proto.RegisterType((*UserSettingGetTagResp_Tags)(nil), "live_user.v1.UserSettingGetTagResp.Tags")
  315. proto.RegisterType((*UserSettingGetTagResp_OfflineTags)(nil), "live_user.v1.UserSettingGetTagResp.OfflineTags")
  316. proto.RegisterType((*UserSettingGetTagResp_Data)(nil), "live_user.v1.UserSettingGetTagResp.Data")
  317. }
  318. func (m *UserSettingGetTagReq) Marshal() (dAtA []byte, err error) {
  319. size := m.Size()
  320. dAtA = make([]byte, size)
  321. n, err := m.MarshalTo(dAtA)
  322. if err != nil {
  323. return nil, err
  324. }
  325. return dAtA[:n], nil
  326. }
  327. func (m *UserSettingGetTagReq) MarshalTo(dAtA []byte) (int, error) {
  328. var i int
  329. _ = i
  330. var l int
  331. _ = l
  332. return i, nil
  333. }
  334. func (m *UserSettingGetTagResp) Marshal() (dAtA []byte, err error) {
  335. size := m.Size()
  336. dAtA = make([]byte, size)
  337. n, err := m.MarshalTo(dAtA)
  338. if err != nil {
  339. return nil, err
  340. }
  341. return dAtA[:n], nil
  342. }
  343. func (m *UserSettingGetTagResp) MarshalTo(dAtA []byte) (int, error) {
  344. var i int
  345. _ = i
  346. var l int
  347. _ = l
  348. if m.Code != 0 {
  349. dAtA[i] = 0x8
  350. i++
  351. i = encodeVarintUserSetting(dAtA, i, uint64(m.Code))
  352. }
  353. if len(m.Msg) > 0 {
  354. dAtA[i] = 0x12
  355. i++
  356. i = encodeVarintUserSetting(dAtA, i, uint64(len(m.Msg)))
  357. i += copy(dAtA[i:], m.Msg)
  358. }
  359. if m.Data != nil {
  360. dAtA[i] = 0x1a
  361. i++
  362. i = encodeVarintUserSetting(dAtA, i, uint64(m.Data.Size()))
  363. n1, err := m.Data.MarshalTo(dAtA[i:])
  364. if err != nil {
  365. return 0, err
  366. }
  367. i += n1
  368. }
  369. return i, nil
  370. }
  371. func (m *UserSettingGetTagResp_Tags) Marshal() (dAtA []byte, err error) {
  372. size := m.Size()
  373. dAtA = make([]byte, size)
  374. n, err := m.MarshalTo(dAtA)
  375. if err != nil {
  376. return nil, err
  377. }
  378. return dAtA[:n], nil
  379. }
  380. func (m *UserSettingGetTagResp_Tags) MarshalTo(dAtA []byte) (int, error) {
  381. var i int
  382. _ = i
  383. var l int
  384. _ = l
  385. if m.Id != 0 {
  386. dAtA[i] = 0x8
  387. i++
  388. i = encodeVarintUserSetting(dAtA, i, uint64(m.Id))
  389. }
  390. if len(m.Name) > 0 {
  391. dAtA[i] = 0x12
  392. i++
  393. i = encodeVarintUserSetting(dAtA, i, uint64(len(m.Name)))
  394. i += copy(dAtA[i:], m.Name)
  395. }
  396. if len(m.Pic) > 0 {
  397. dAtA[i] = 0x1a
  398. i++
  399. i = encodeVarintUserSetting(dAtA, i, uint64(len(m.Pic)))
  400. i += copy(dAtA[i:], m.Pic)
  401. }
  402. if m.IsAdvice != 0 {
  403. dAtA[i] = 0x20
  404. i++
  405. i = encodeVarintUserSetting(dAtA, i, uint64(m.IsAdvice))
  406. }
  407. if m.ParentId != 0 {
  408. dAtA[i] = 0x28
  409. i++
  410. i = encodeVarintUserSetting(dAtA, i, uint64(m.ParentId))
  411. }
  412. if len(m.ParentName) > 0 {
  413. dAtA[i] = 0x32
  414. i++
  415. i = encodeVarintUserSetting(dAtA, i, uint64(len(m.ParentName)))
  416. i += copy(dAtA[i:], m.ParentName)
  417. }
  418. if m.ActId != 0 {
  419. dAtA[i] = 0x38
  420. i++
  421. i = encodeVarintUserSetting(dAtA, i, uint64(m.ActId))
  422. }
  423. return i, nil
  424. }
  425. func (m *UserSettingGetTagResp_OfflineTags) Marshal() (dAtA []byte, err error) {
  426. size := m.Size()
  427. dAtA = make([]byte, size)
  428. n, err := m.MarshalTo(dAtA)
  429. if err != nil {
  430. return nil, err
  431. }
  432. return dAtA[:n], nil
  433. }
  434. func (m *UserSettingGetTagResp_OfflineTags) MarshalTo(dAtA []byte) (int, error) {
  435. var i int
  436. _ = i
  437. var l int
  438. _ = l
  439. if m.Id != 0 {
  440. dAtA[i] = 0x8
  441. i++
  442. i = encodeVarintUserSetting(dAtA, i, uint64(m.Id))
  443. }
  444. if len(m.Name) > 0 {
  445. dAtA[i] = 0x12
  446. i++
  447. i = encodeVarintUserSetting(dAtA, i, uint64(len(m.Name)))
  448. i += copy(dAtA[i:], m.Name)
  449. }
  450. return i, nil
  451. }
  452. func (m *UserSettingGetTagResp_Data) Marshal() (dAtA []byte, err error) {
  453. size := m.Size()
  454. dAtA = make([]byte, size)
  455. n, err := m.MarshalTo(dAtA)
  456. if err != nil {
  457. return nil, err
  458. }
  459. return dAtA[:n], nil
  460. }
  461. func (m *UserSettingGetTagResp_Data) MarshalTo(dAtA []byte) (int, error) {
  462. var i int
  463. _ = i
  464. var l int
  465. _ = l
  466. if len(m.Tags) > 0 {
  467. for _, msg := range m.Tags {
  468. dAtA[i] = 0xa
  469. i++
  470. i = encodeVarintUserSetting(dAtA, i, uint64(msg.Size()))
  471. n, err := msg.MarshalTo(dAtA[i:])
  472. if err != nil {
  473. return 0, err
  474. }
  475. i += n
  476. }
  477. }
  478. if len(m.Offline) > 0 {
  479. for _, msg := range m.Offline {
  480. dAtA[i] = 0x12
  481. i++
  482. i = encodeVarintUserSetting(dAtA, i, uint64(msg.Size()))
  483. n, err := msg.MarshalTo(dAtA[i:])
  484. if err != nil {
  485. return 0, err
  486. }
  487. i += n
  488. }
  489. }
  490. if m.Uid != 0 {
  491. dAtA[i] = 0x18
  492. i++
  493. i = encodeVarintUserSetting(dAtA, i, uint64(m.Uid))
  494. }
  495. if m.IsGray != 0 {
  496. dAtA[i] = 0x20
  497. i++
  498. i = encodeVarintUserSetting(dAtA, i, uint64(m.IsGray))
  499. }
  500. return i, nil
  501. }
  502. func encodeVarintUserSetting(dAtA []byte, offset int, v uint64) int {
  503. for v >= 1<<7 {
  504. dAtA[offset] = uint8(v&0x7f | 0x80)
  505. v >>= 7
  506. offset++
  507. }
  508. dAtA[offset] = uint8(v)
  509. return offset + 1
  510. }
  511. func (m *UserSettingGetTagReq) Size() (n int) {
  512. if m == nil {
  513. return 0
  514. }
  515. var l int
  516. _ = l
  517. return n
  518. }
  519. func (m *UserSettingGetTagResp) Size() (n int) {
  520. if m == nil {
  521. return 0
  522. }
  523. var l int
  524. _ = l
  525. if m.Code != 0 {
  526. n += 1 + sovUserSetting(uint64(m.Code))
  527. }
  528. l = len(m.Msg)
  529. if l > 0 {
  530. n += 1 + l + sovUserSetting(uint64(l))
  531. }
  532. if m.Data != nil {
  533. l = m.Data.Size()
  534. n += 1 + l + sovUserSetting(uint64(l))
  535. }
  536. return n
  537. }
  538. func (m *UserSettingGetTagResp_Tags) Size() (n int) {
  539. if m == nil {
  540. return 0
  541. }
  542. var l int
  543. _ = l
  544. if m.Id != 0 {
  545. n += 1 + sovUserSetting(uint64(m.Id))
  546. }
  547. l = len(m.Name)
  548. if l > 0 {
  549. n += 1 + l + sovUserSetting(uint64(l))
  550. }
  551. l = len(m.Pic)
  552. if l > 0 {
  553. n += 1 + l + sovUserSetting(uint64(l))
  554. }
  555. if m.IsAdvice != 0 {
  556. n += 1 + sovUserSetting(uint64(m.IsAdvice))
  557. }
  558. if m.ParentId != 0 {
  559. n += 1 + sovUserSetting(uint64(m.ParentId))
  560. }
  561. l = len(m.ParentName)
  562. if l > 0 {
  563. n += 1 + l + sovUserSetting(uint64(l))
  564. }
  565. if m.ActId != 0 {
  566. n += 1 + sovUserSetting(uint64(m.ActId))
  567. }
  568. return n
  569. }
  570. func (m *UserSettingGetTagResp_OfflineTags) Size() (n int) {
  571. if m == nil {
  572. return 0
  573. }
  574. var l int
  575. _ = l
  576. if m.Id != 0 {
  577. n += 1 + sovUserSetting(uint64(m.Id))
  578. }
  579. l = len(m.Name)
  580. if l > 0 {
  581. n += 1 + l + sovUserSetting(uint64(l))
  582. }
  583. return n
  584. }
  585. func (m *UserSettingGetTagResp_Data) Size() (n int) {
  586. if m == nil {
  587. return 0
  588. }
  589. var l int
  590. _ = l
  591. if len(m.Tags) > 0 {
  592. for _, e := range m.Tags {
  593. l = e.Size()
  594. n += 1 + l + sovUserSetting(uint64(l))
  595. }
  596. }
  597. if len(m.Offline) > 0 {
  598. for _, e := range m.Offline {
  599. l = e.Size()
  600. n += 1 + l + sovUserSetting(uint64(l))
  601. }
  602. }
  603. if m.Uid != 0 {
  604. n += 1 + sovUserSetting(uint64(m.Uid))
  605. }
  606. if m.IsGray != 0 {
  607. n += 1 + sovUserSetting(uint64(m.IsGray))
  608. }
  609. return n
  610. }
  611. func sovUserSetting(x uint64) (n int) {
  612. for {
  613. n++
  614. x >>= 7
  615. if x == 0 {
  616. break
  617. }
  618. }
  619. return n
  620. }
  621. func sozUserSetting(x uint64) (n int) {
  622. return sovUserSetting(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  623. }
  624. func (m *UserSettingGetTagReq) Unmarshal(dAtA []byte) error {
  625. l := len(dAtA)
  626. iNdEx := 0
  627. for iNdEx < l {
  628. preIndex := iNdEx
  629. var wire uint64
  630. for shift := uint(0); ; shift += 7 {
  631. if shift >= 64 {
  632. return ErrIntOverflowUserSetting
  633. }
  634. if iNdEx >= l {
  635. return io.ErrUnexpectedEOF
  636. }
  637. b := dAtA[iNdEx]
  638. iNdEx++
  639. wire |= (uint64(b) & 0x7F) << shift
  640. if b < 0x80 {
  641. break
  642. }
  643. }
  644. fieldNum := int32(wire >> 3)
  645. wireType := int(wire & 0x7)
  646. if wireType == 4 {
  647. return fmt.Errorf("proto: UserSettingGetTagReq: wiretype end group for non-group")
  648. }
  649. if fieldNum <= 0 {
  650. return fmt.Errorf("proto: UserSettingGetTagReq: illegal tag %d (wire type %d)", fieldNum, wire)
  651. }
  652. switch fieldNum {
  653. default:
  654. iNdEx = preIndex
  655. skippy, err := skipUserSetting(dAtA[iNdEx:])
  656. if err != nil {
  657. return err
  658. }
  659. if skippy < 0 {
  660. return ErrInvalidLengthUserSetting
  661. }
  662. if (iNdEx + skippy) > l {
  663. return io.ErrUnexpectedEOF
  664. }
  665. iNdEx += skippy
  666. }
  667. }
  668. if iNdEx > l {
  669. return io.ErrUnexpectedEOF
  670. }
  671. return nil
  672. }
  673. func (m *UserSettingGetTagResp) Unmarshal(dAtA []byte) error {
  674. l := len(dAtA)
  675. iNdEx := 0
  676. for iNdEx < l {
  677. preIndex := iNdEx
  678. var wire uint64
  679. for shift := uint(0); ; shift += 7 {
  680. if shift >= 64 {
  681. return ErrIntOverflowUserSetting
  682. }
  683. if iNdEx >= l {
  684. return io.ErrUnexpectedEOF
  685. }
  686. b := dAtA[iNdEx]
  687. iNdEx++
  688. wire |= (uint64(b) & 0x7F) << shift
  689. if b < 0x80 {
  690. break
  691. }
  692. }
  693. fieldNum := int32(wire >> 3)
  694. wireType := int(wire & 0x7)
  695. if wireType == 4 {
  696. return fmt.Errorf("proto: UserSettingGetTagResp: wiretype end group for non-group")
  697. }
  698. if fieldNum <= 0 {
  699. return fmt.Errorf("proto: UserSettingGetTagResp: illegal tag %d (wire type %d)", fieldNum, wire)
  700. }
  701. switch fieldNum {
  702. case 1:
  703. if wireType != 0 {
  704. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  705. }
  706. m.Code = 0
  707. for shift := uint(0); ; shift += 7 {
  708. if shift >= 64 {
  709. return ErrIntOverflowUserSetting
  710. }
  711. if iNdEx >= l {
  712. return io.ErrUnexpectedEOF
  713. }
  714. b := dAtA[iNdEx]
  715. iNdEx++
  716. m.Code |= (int64(b) & 0x7F) << shift
  717. if b < 0x80 {
  718. break
  719. }
  720. }
  721. case 2:
  722. if wireType != 2 {
  723. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  724. }
  725. var stringLen uint64
  726. for shift := uint(0); ; shift += 7 {
  727. if shift >= 64 {
  728. return ErrIntOverflowUserSetting
  729. }
  730. if iNdEx >= l {
  731. return io.ErrUnexpectedEOF
  732. }
  733. b := dAtA[iNdEx]
  734. iNdEx++
  735. stringLen |= (uint64(b) & 0x7F) << shift
  736. if b < 0x80 {
  737. break
  738. }
  739. }
  740. intStringLen := int(stringLen)
  741. if intStringLen < 0 {
  742. return ErrInvalidLengthUserSetting
  743. }
  744. postIndex := iNdEx + intStringLen
  745. if postIndex > l {
  746. return io.ErrUnexpectedEOF
  747. }
  748. m.Msg = string(dAtA[iNdEx:postIndex])
  749. iNdEx = postIndex
  750. case 3:
  751. if wireType != 2 {
  752. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  753. }
  754. var msglen int
  755. for shift := uint(0); ; shift += 7 {
  756. if shift >= 64 {
  757. return ErrIntOverflowUserSetting
  758. }
  759. if iNdEx >= l {
  760. return io.ErrUnexpectedEOF
  761. }
  762. b := dAtA[iNdEx]
  763. iNdEx++
  764. msglen |= (int(b) & 0x7F) << shift
  765. if b < 0x80 {
  766. break
  767. }
  768. }
  769. if msglen < 0 {
  770. return ErrInvalidLengthUserSetting
  771. }
  772. postIndex := iNdEx + msglen
  773. if postIndex > l {
  774. return io.ErrUnexpectedEOF
  775. }
  776. if m.Data == nil {
  777. m.Data = &UserSettingGetTagResp_Data{}
  778. }
  779. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  780. return err
  781. }
  782. iNdEx = postIndex
  783. default:
  784. iNdEx = preIndex
  785. skippy, err := skipUserSetting(dAtA[iNdEx:])
  786. if err != nil {
  787. return err
  788. }
  789. if skippy < 0 {
  790. return ErrInvalidLengthUserSetting
  791. }
  792. if (iNdEx + skippy) > l {
  793. return io.ErrUnexpectedEOF
  794. }
  795. iNdEx += skippy
  796. }
  797. }
  798. if iNdEx > l {
  799. return io.ErrUnexpectedEOF
  800. }
  801. return nil
  802. }
  803. func (m *UserSettingGetTagResp_Tags) Unmarshal(dAtA []byte) error {
  804. l := len(dAtA)
  805. iNdEx := 0
  806. for iNdEx < l {
  807. preIndex := iNdEx
  808. var wire uint64
  809. for shift := uint(0); ; shift += 7 {
  810. if shift >= 64 {
  811. return ErrIntOverflowUserSetting
  812. }
  813. if iNdEx >= l {
  814. return io.ErrUnexpectedEOF
  815. }
  816. b := dAtA[iNdEx]
  817. iNdEx++
  818. wire |= (uint64(b) & 0x7F) << shift
  819. if b < 0x80 {
  820. break
  821. }
  822. }
  823. fieldNum := int32(wire >> 3)
  824. wireType := int(wire & 0x7)
  825. if wireType == 4 {
  826. return fmt.Errorf("proto: Tags: wiretype end group for non-group")
  827. }
  828. if fieldNum <= 0 {
  829. return fmt.Errorf("proto: Tags: illegal tag %d (wire type %d)", fieldNum, wire)
  830. }
  831. switch fieldNum {
  832. case 1:
  833. if wireType != 0 {
  834. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  835. }
  836. m.Id = 0
  837. for shift := uint(0); ; shift += 7 {
  838. if shift >= 64 {
  839. return ErrIntOverflowUserSetting
  840. }
  841. if iNdEx >= l {
  842. return io.ErrUnexpectedEOF
  843. }
  844. b := dAtA[iNdEx]
  845. iNdEx++
  846. m.Id |= (int64(b) & 0x7F) << shift
  847. if b < 0x80 {
  848. break
  849. }
  850. }
  851. case 2:
  852. if wireType != 2 {
  853. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  854. }
  855. var stringLen uint64
  856. for shift := uint(0); ; shift += 7 {
  857. if shift >= 64 {
  858. return ErrIntOverflowUserSetting
  859. }
  860. if iNdEx >= l {
  861. return io.ErrUnexpectedEOF
  862. }
  863. b := dAtA[iNdEx]
  864. iNdEx++
  865. stringLen |= (uint64(b) & 0x7F) << shift
  866. if b < 0x80 {
  867. break
  868. }
  869. }
  870. intStringLen := int(stringLen)
  871. if intStringLen < 0 {
  872. return ErrInvalidLengthUserSetting
  873. }
  874. postIndex := iNdEx + intStringLen
  875. if postIndex > l {
  876. return io.ErrUnexpectedEOF
  877. }
  878. m.Name = string(dAtA[iNdEx:postIndex])
  879. iNdEx = postIndex
  880. case 3:
  881. if wireType != 2 {
  882. return fmt.Errorf("proto: wrong wireType = %d for field Pic", wireType)
  883. }
  884. var stringLen uint64
  885. for shift := uint(0); ; shift += 7 {
  886. if shift >= 64 {
  887. return ErrIntOverflowUserSetting
  888. }
  889. if iNdEx >= l {
  890. return io.ErrUnexpectedEOF
  891. }
  892. b := dAtA[iNdEx]
  893. iNdEx++
  894. stringLen |= (uint64(b) & 0x7F) << shift
  895. if b < 0x80 {
  896. break
  897. }
  898. }
  899. intStringLen := int(stringLen)
  900. if intStringLen < 0 {
  901. return ErrInvalidLengthUserSetting
  902. }
  903. postIndex := iNdEx + intStringLen
  904. if postIndex > l {
  905. return io.ErrUnexpectedEOF
  906. }
  907. m.Pic = string(dAtA[iNdEx:postIndex])
  908. iNdEx = postIndex
  909. case 4:
  910. if wireType != 0 {
  911. return fmt.Errorf("proto: wrong wireType = %d for field IsAdvice", wireType)
  912. }
  913. m.IsAdvice = 0
  914. for shift := uint(0); ; shift += 7 {
  915. if shift >= 64 {
  916. return ErrIntOverflowUserSetting
  917. }
  918. if iNdEx >= l {
  919. return io.ErrUnexpectedEOF
  920. }
  921. b := dAtA[iNdEx]
  922. iNdEx++
  923. m.IsAdvice |= (int64(b) & 0x7F) << shift
  924. if b < 0x80 {
  925. break
  926. }
  927. }
  928. case 5:
  929. if wireType != 0 {
  930. return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
  931. }
  932. m.ParentId = 0
  933. for shift := uint(0); ; shift += 7 {
  934. if shift >= 64 {
  935. return ErrIntOverflowUserSetting
  936. }
  937. if iNdEx >= l {
  938. return io.ErrUnexpectedEOF
  939. }
  940. b := dAtA[iNdEx]
  941. iNdEx++
  942. m.ParentId |= (int64(b) & 0x7F) << shift
  943. if b < 0x80 {
  944. break
  945. }
  946. }
  947. case 6:
  948. if wireType != 2 {
  949. return fmt.Errorf("proto: wrong wireType = %d for field ParentName", wireType)
  950. }
  951. var stringLen uint64
  952. for shift := uint(0); ; shift += 7 {
  953. if shift >= 64 {
  954. return ErrIntOverflowUserSetting
  955. }
  956. if iNdEx >= l {
  957. return io.ErrUnexpectedEOF
  958. }
  959. b := dAtA[iNdEx]
  960. iNdEx++
  961. stringLen |= (uint64(b) & 0x7F) << shift
  962. if b < 0x80 {
  963. break
  964. }
  965. }
  966. intStringLen := int(stringLen)
  967. if intStringLen < 0 {
  968. return ErrInvalidLengthUserSetting
  969. }
  970. postIndex := iNdEx + intStringLen
  971. if postIndex > l {
  972. return io.ErrUnexpectedEOF
  973. }
  974. m.ParentName = string(dAtA[iNdEx:postIndex])
  975. iNdEx = postIndex
  976. case 7:
  977. if wireType != 0 {
  978. return fmt.Errorf("proto: wrong wireType = %d for field ActId", wireType)
  979. }
  980. m.ActId = 0
  981. for shift := uint(0); ; shift += 7 {
  982. if shift >= 64 {
  983. return ErrIntOverflowUserSetting
  984. }
  985. if iNdEx >= l {
  986. return io.ErrUnexpectedEOF
  987. }
  988. b := dAtA[iNdEx]
  989. iNdEx++
  990. m.ActId |= (int64(b) & 0x7F) << shift
  991. if b < 0x80 {
  992. break
  993. }
  994. }
  995. default:
  996. iNdEx = preIndex
  997. skippy, err := skipUserSetting(dAtA[iNdEx:])
  998. if err != nil {
  999. return err
  1000. }
  1001. if skippy < 0 {
  1002. return ErrInvalidLengthUserSetting
  1003. }
  1004. if (iNdEx + skippy) > l {
  1005. return io.ErrUnexpectedEOF
  1006. }
  1007. iNdEx += skippy
  1008. }
  1009. }
  1010. if iNdEx > l {
  1011. return io.ErrUnexpectedEOF
  1012. }
  1013. return nil
  1014. }
  1015. func (m *UserSettingGetTagResp_OfflineTags) Unmarshal(dAtA []byte) error {
  1016. l := len(dAtA)
  1017. iNdEx := 0
  1018. for iNdEx < l {
  1019. preIndex := iNdEx
  1020. var wire uint64
  1021. for shift := uint(0); ; shift += 7 {
  1022. if shift >= 64 {
  1023. return ErrIntOverflowUserSetting
  1024. }
  1025. if iNdEx >= l {
  1026. return io.ErrUnexpectedEOF
  1027. }
  1028. b := dAtA[iNdEx]
  1029. iNdEx++
  1030. wire |= (uint64(b) & 0x7F) << shift
  1031. if b < 0x80 {
  1032. break
  1033. }
  1034. }
  1035. fieldNum := int32(wire >> 3)
  1036. wireType := int(wire & 0x7)
  1037. if wireType == 4 {
  1038. return fmt.Errorf("proto: OfflineTags: wiretype end group for non-group")
  1039. }
  1040. if fieldNum <= 0 {
  1041. return fmt.Errorf("proto: OfflineTags: illegal tag %d (wire type %d)", fieldNum, wire)
  1042. }
  1043. switch fieldNum {
  1044. case 1:
  1045. if wireType != 0 {
  1046. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  1047. }
  1048. m.Id = 0
  1049. for shift := uint(0); ; shift += 7 {
  1050. if shift >= 64 {
  1051. return ErrIntOverflowUserSetting
  1052. }
  1053. if iNdEx >= l {
  1054. return io.ErrUnexpectedEOF
  1055. }
  1056. b := dAtA[iNdEx]
  1057. iNdEx++
  1058. m.Id |= (int64(b) & 0x7F) << shift
  1059. if b < 0x80 {
  1060. break
  1061. }
  1062. }
  1063. case 2:
  1064. if wireType != 2 {
  1065. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  1066. }
  1067. var stringLen uint64
  1068. for shift := uint(0); ; shift += 7 {
  1069. if shift >= 64 {
  1070. return ErrIntOverflowUserSetting
  1071. }
  1072. if iNdEx >= l {
  1073. return io.ErrUnexpectedEOF
  1074. }
  1075. b := dAtA[iNdEx]
  1076. iNdEx++
  1077. stringLen |= (uint64(b) & 0x7F) << shift
  1078. if b < 0x80 {
  1079. break
  1080. }
  1081. }
  1082. intStringLen := int(stringLen)
  1083. if intStringLen < 0 {
  1084. return ErrInvalidLengthUserSetting
  1085. }
  1086. postIndex := iNdEx + intStringLen
  1087. if postIndex > l {
  1088. return io.ErrUnexpectedEOF
  1089. }
  1090. m.Name = string(dAtA[iNdEx:postIndex])
  1091. iNdEx = postIndex
  1092. default:
  1093. iNdEx = preIndex
  1094. skippy, err := skipUserSetting(dAtA[iNdEx:])
  1095. if err != nil {
  1096. return err
  1097. }
  1098. if skippy < 0 {
  1099. return ErrInvalidLengthUserSetting
  1100. }
  1101. if (iNdEx + skippy) > l {
  1102. return io.ErrUnexpectedEOF
  1103. }
  1104. iNdEx += skippy
  1105. }
  1106. }
  1107. if iNdEx > l {
  1108. return io.ErrUnexpectedEOF
  1109. }
  1110. return nil
  1111. }
  1112. func (m *UserSettingGetTagResp_Data) Unmarshal(dAtA []byte) error {
  1113. l := len(dAtA)
  1114. iNdEx := 0
  1115. for iNdEx < l {
  1116. preIndex := iNdEx
  1117. var wire uint64
  1118. for shift := uint(0); ; shift += 7 {
  1119. if shift >= 64 {
  1120. return ErrIntOverflowUserSetting
  1121. }
  1122. if iNdEx >= l {
  1123. return io.ErrUnexpectedEOF
  1124. }
  1125. b := dAtA[iNdEx]
  1126. iNdEx++
  1127. wire |= (uint64(b) & 0x7F) << shift
  1128. if b < 0x80 {
  1129. break
  1130. }
  1131. }
  1132. fieldNum := int32(wire >> 3)
  1133. wireType := int(wire & 0x7)
  1134. if wireType == 4 {
  1135. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  1136. }
  1137. if fieldNum <= 0 {
  1138. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  1139. }
  1140. switch fieldNum {
  1141. case 1:
  1142. if wireType != 2 {
  1143. return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType)
  1144. }
  1145. var msglen int
  1146. for shift := uint(0); ; shift += 7 {
  1147. if shift >= 64 {
  1148. return ErrIntOverflowUserSetting
  1149. }
  1150. if iNdEx >= l {
  1151. return io.ErrUnexpectedEOF
  1152. }
  1153. b := dAtA[iNdEx]
  1154. iNdEx++
  1155. msglen |= (int(b) & 0x7F) << shift
  1156. if b < 0x80 {
  1157. break
  1158. }
  1159. }
  1160. if msglen < 0 {
  1161. return ErrInvalidLengthUserSetting
  1162. }
  1163. postIndex := iNdEx + msglen
  1164. if postIndex > l {
  1165. return io.ErrUnexpectedEOF
  1166. }
  1167. m.Tags = append(m.Tags, &UserSettingGetTagResp_Tags{})
  1168. if err := m.Tags[len(m.Tags)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1169. return err
  1170. }
  1171. iNdEx = postIndex
  1172. case 2:
  1173. if wireType != 2 {
  1174. return fmt.Errorf("proto: wrong wireType = %d for field Offline", wireType)
  1175. }
  1176. var msglen int
  1177. for shift := uint(0); ; shift += 7 {
  1178. if shift >= 64 {
  1179. return ErrIntOverflowUserSetting
  1180. }
  1181. if iNdEx >= l {
  1182. return io.ErrUnexpectedEOF
  1183. }
  1184. b := dAtA[iNdEx]
  1185. iNdEx++
  1186. msglen |= (int(b) & 0x7F) << shift
  1187. if b < 0x80 {
  1188. break
  1189. }
  1190. }
  1191. if msglen < 0 {
  1192. return ErrInvalidLengthUserSetting
  1193. }
  1194. postIndex := iNdEx + msglen
  1195. if postIndex > l {
  1196. return io.ErrUnexpectedEOF
  1197. }
  1198. m.Offline = append(m.Offline, &UserSettingGetTagResp_OfflineTags{})
  1199. if err := m.Offline[len(m.Offline)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1200. return err
  1201. }
  1202. iNdEx = postIndex
  1203. case 3:
  1204. if wireType != 0 {
  1205. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  1206. }
  1207. m.Uid = 0
  1208. for shift := uint(0); ; shift += 7 {
  1209. if shift >= 64 {
  1210. return ErrIntOverflowUserSetting
  1211. }
  1212. if iNdEx >= l {
  1213. return io.ErrUnexpectedEOF
  1214. }
  1215. b := dAtA[iNdEx]
  1216. iNdEx++
  1217. m.Uid |= (int64(b) & 0x7F) << shift
  1218. if b < 0x80 {
  1219. break
  1220. }
  1221. }
  1222. case 4:
  1223. if wireType != 0 {
  1224. return fmt.Errorf("proto: wrong wireType = %d for field IsGray", wireType)
  1225. }
  1226. m.IsGray = 0
  1227. for shift := uint(0); ; shift += 7 {
  1228. if shift >= 64 {
  1229. return ErrIntOverflowUserSetting
  1230. }
  1231. if iNdEx >= l {
  1232. return io.ErrUnexpectedEOF
  1233. }
  1234. b := dAtA[iNdEx]
  1235. iNdEx++
  1236. m.IsGray |= (int64(b) & 0x7F) << shift
  1237. if b < 0x80 {
  1238. break
  1239. }
  1240. }
  1241. default:
  1242. iNdEx = preIndex
  1243. skippy, err := skipUserSetting(dAtA[iNdEx:])
  1244. if err != nil {
  1245. return err
  1246. }
  1247. if skippy < 0 {
  1248. return ErrInvalidLengthUserSetting
  1249. }
  1250. if (iNdEx + skippy) > l {
  1251. return io.ErrUnexpectedEOF
  1252. }
  1253. iNdEx += skippy
  1254. }
  1255. }
  1256. if iNdEx > l {
  1257. return io.ErrUnexpectedEOF
  1258. }
  1259. return nil
  1260. }
  1261. func skipUserSetting(dAtA []byte) (n int, err error) {
  1262. l := len(dAtA)
  1263. iNdEx := 0
  1264. for iNdEx < l {
  1265. var wire uint64
  1266. for shift := uint(0); ; shift += 7 {
  1267. if shift >= 64 {
  1268. return 0, ErrIntOverflowUserSetting
  1269. }
  1270. if iNdEx >= l {
  1271. return 0, io.ErrUnexpectedEOF
  1272. }
  1273. b := dAtA[iNdEx]
  1274. iNdEx++
  1275. wire |= (uint64(b) & 0x7F) << shift
  1276. if b < 0x80 {
  1277. break
  1278. }
  1279. }
  1280. wireType := int(wire & 0x7)
  1281. switch wireType {
  1282. case 0:
  1283. for shift := uint(0); ; shift += 7 {
  1284. if shift >= 64 {
  1285. return 0, ErrIntOverflowUserSetting
  1286. }
  1287. if iNdEx >= l {
  1288. return 0, io.ErrUnexpectedEOF
  1289. }
  1290. iNdEx++
  1291. if dAtA[iNdEx-1] < 0x80 {
  1292. break
  1293. }
  1294. }
  1295. return iNdEx, nil
  1296. case 1:
  1297. iNdEx += 8
  1298. return iNdEx, nil
  1299. case 2:
  1300. var length int
  1301. for shift := uint(0); ; shift += 7 {
  1302. if shift >= 64 {
  1303. return 0, ErrIntOverflowUserSetting
  1304. }
  1305. if iNdEx >= l {
  1306. return 0, io.ErrUnexpectedEOF
  1307. }
  1308. b := dAtA[iNdEx]
  1309. iNdEx++
  1310. length |= (int(b) & 0x7F) << shift
  1311. if b < 0x80 {
  1312. break
  1313. }
  1314. }
  1315. iNdEx += length
  1316. if length < 0 {
  1317. return 0, ErrInvalidLengthUserSetting
  1318. }
  1319. return iNdEx, nil
  1320. case 3:
  1321. for {
  1322. var innerWire uint64
  1323. var start int = iNdEx
  1324. for shift := uint(0); ; shift += 7 {
  1325. if shift >= 64 {
  1326. return 0, ErrIntOverflowUserSetting
  1327. }
  1328. if iNdEx >= l {
  1329. return 0, io.ErrUnexpectedEOF
  1330. }
  1331. b := dAtA[iNdEx]
  1332. iNdEx++
  1333. innerWire |= (uint64(b) & 0x7F) << shift
  1334. if b < 0x80 {
  1335. break
  1336. }
  1337. }
  1338. innerWireType := int(innerWire & 0x7)
  1339. if innerWireType == 4 {
  1340. break
  1341. }
  1342. next, err := skipUserSetting(dAtA[start:])
  1343. if err != nil {
  1344. return 0, err
  1345. }
  1346. iNdEx = start + next
  1347. }
  1348. return iNdEx, nil
  1349. case 4:
  1350. return iNdEx, nil
  1351. case 5:
  1352. iNdEx += 4
  1353. return iNdEx, nil
  1354. default:
  1355. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1356. }
  1357. }
  1358. panic("unreachable")
  1359. }
  1360. var (
  1361. ErrInvalidLengthUserSetting = fmt.Errorf("proto: negative length found during unmarshaling")
  1362. ErrIntOverflowUserSetting = fmt.Errorf("proto: integer overflow")
  1363. )
  1364. func init() { proto.RegisterFile("v1/UserSetting.proto", fileDescriptor_UserSetting_6ecfe772383476d5) }
  1365. var fileDescriptor_UserSetting_6ecfe772383476d5 = []byte{
  1366. // 498 bytes of a gzipped FileDescriptorProto
  1367. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0xcf, 0x6b, 0xd4, 0x40,
  1368. 0x14, 0xde, 0x64, 0x7f, 0x76, 0xa2, 0x08, 0x43, 0x2d, 0x31, 0x94, 0x64, 0x5d, 0x3d, 0x2c, 0x82,
  1369. 0x59, 0xb7, 0xfe, 0x05, 0xae, 0x62, 0xe9, 0x45, 0x61, 0xac, 0x1e, 0xbc, 0x84, 0xd9, 0xcc, 0xec,
  1370. 0x38, 0xd0, 0xdd, 0xa4, 0x99, 0x49, 0xa0, 0x77, 0xff, 0x00, 0xff, 0x2c, 0x4f, 0xd2, 0xa3, 0xa7,
  1371. 0x20, 0xbb, 0x07, 0x21, 0x7f, 0x85, 0xcc, 0x4b, 0x6a, 0x73, 0x28, 0xb8, 0x78, 0xf9, 0x78, 0xef,
  1372. 0xcb, 0xbc, 0xef, 0x7d, 0x33, 0x1f, 0x41, 0x87, 0xc5, 0x7c, 0xf6, 0x51, 0xf1, 0xec, 0x03, 0xd7,
  1373. 0x5a, 0x6e, 0x44, 0x98, 0x66, 0x89, 0x4e, 0xf0, 0xbd, 0x0b, 0x59, 0xf0, 0x28, 0x57, 0x3c, 0x0b,
  1374. 0x8b, 0xb9, 0xf7, 0x5c, 0x48, 0xfd, 0x25, 0x5f, 0x86, 0x71, 0xb2, 0x9e, 0x89, 0x44, 0x24, 0x33,
  1375. 0x38, 0xb4, 0xcc, 0x57, 0xd0, 0x41, 0x03, 0x55, 0x3d, 0x3c, 0x39, 0x42, 0x87, 0x2d, 0xc5, 0x53,
  1376. 0xae, 0xcf, 0xa9, 0x20, 0xfc, 0x72, 0xf2, 0xa3, 0x8f, 0x1e, 0xde, 0xf1, 0x41, 0xa5, 0xf8, 0x18,
  1377. 0xf5, 0xe2, 0x84, 0x71, 0xd7, 0x1a, 0x5b, 0xd3, 0xee, 0x62, 0x54, 0x95, 0x01, 0xf4, 0x04, 0x10,
  1378. 0x3f, 0x42, 0xdd, 0xb5, 0x12, 0xae, 0x3d, 0xb6, 0xa6, 0x07, 0x8b, 0x61, 0x55, 0x06, 0xa6, 0x25,
  1379. 0x06, 0xf0, 0x5b, 0xd4, 0x63, 0x54, 0x53, 0xb7, 0x3b, 0xb6, 0xa6, 0xce, 0xc9, 0x34, 0x6c, 0xdb,
  1380. 0x0e, 0xef, 0xdc, 0x15, 0xbe, 0xa1, 0x9a, 0xd6, 0x2b, 0xcc, 0x24, 0x01, 0xf4, 0xbe, 0xda, 0xa8,
  1381. 0x77, 0x4e, 0x85, 0xc2, 0x47, 0xc8, 0x96, 0xac, 0xf1, 0x31, 0xa8, 0xca, 0xc0, 0x96, 0x8c, 0xd8,
  1382. 0x92, 0x19, 0x87, 0x1b, 0xba, 0xe6, 0x8d, 0x09, 0x18, 0x37, 0x3d, 0x01, 0x34, 0x0e, 0x53, 0x19,
  1383. 0x83, 0x8b, 0xc6, 0x61, 0x2a, 0x63, 0x62, 0x00, 0x3f, 0x43, 0x07, 0x52, 0x45, 0x94, 0x15, 0x32,
  1384. 0xe6, 0x6e, 0x0f, 0x74, 0xef, 0x57, 0x65, 0x70, 0x4b, 0x92, 0x91, 0x54, 0xaf, 0xa0, 0x32, 0x67,
  1385. 0x53, 0x9a, 0xf1, 0x8d, 0x8e, 0x24, 0x73, 0xfb, 0xb7, 0x67, 0xff, 0x92, 0x64, 0x54, 0x97, 0x67,
  1386. 0x0c, 0xbf, 0x40, 0x4e, 0x43, 0x83, 0xaf, 0x01, 0xac, 0x7e, 0x50, 0x95, 0x41, 0x9b, 0x26, 0xa8,
  1387. 0x6e, 0xde, 0x19, 0x93, 0x8f, 0xd1, 0x80, 0xc6, 0x20, 0x3d, 0x04, 0x69, 0x54, 0x95, 0x41, 0xc3,
  1388. 0x90, 0x3e, 0x8d, 0xf5, 0x19, 0xf3, 0x5e, 0x23, 0xe7, 0xfd, 0x6a, 0x75, 0x21, 0x37, 0xfc, 0xff,
  1389. 0x1f, 0xc3, 0xfb, 0x6d, 0xa1, 0x9e, 0x79, 0x64, 0x13, 0x8e, 0xa6, 0x42, 0xb9, 0xd6, 0xb8, 0xbb,
  1390. 0x6f, 0x38, 0x66, 0x6d, 0x2d, 0x68, 0x26, 0x09, 0x20, 0xfe, 0x84, 0x86, 0x49, 0xed, 0xca, 0xb5,
  1391. 0x41, 0x6a, 0xb6, 0x8f, 0x54, 0xeb, 0x22, 0x0b, 0xa7, 0x2a, 0x83, 0x1b, 0x0d, 0x72, 0x53, 0x98,
  1392. 0xd4, 0x72, 0xc9, 0x20, 0xb5, 0x6e, 0x9d, 0x5a, 0x2e, 0x19, 0x31, 0x80, 0x9f, 0xa2, 0xa1, 0x54,
  1393. 0x91, 0xc8, 0xe8, 0x55, 0x93, 0x19, 0x28, 0x34, 0x14, 0x19, 0x48, 0x75, 0x9a, 0xd1, 0xab, 0x13,
  1394. 0x8a, 0x9c, 0xd6, 0x6e, 0x4c, 0xd0, 0x50, 0x70, 0x1d, 0x69, 0x2a, 0xf0, 0xe4, 0x9f, 0x0e, 0x2f,
  1395. 0xbd, 0x27, 0x7b, 0xdc, 0x62, 0x71, 0xfc, 0x7d, 0xeb, 0x5b, 0xd7, 0x5b, 0xdf, 0xfa, 0xb5, 0xf5,
  1396. 0xad, 0x6f, 0x3b, 0xbf, 0x73, 0xbd, 0xf3, 0x3b, 0x3f, 0x77, 0x7e, 0xe7, 0xb3, 0x5d, 0xcc, 0x97,
  1397. 0x03, 0xf8, 0xe1, 0x5e, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0xb6, 0xa7, 0xd5, 0xa9, 0xc5, 0x03,
  1398. 0x00, 0x00,
  1399. }