Skin.pb.go 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: v1/Skin.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 SkinCurrentReq struct {
  19. // 平台web、ios、android、ipad
  20. SkinPlatform string `protobuf:"bytes,1,opt,name=skin_platform,json=skinPlatform,proto3" json:"skin_platform"`
  21. // 客户端支持的皮肤版本,如“1.0”
  22. SkinVersion string `protobuf:"bytes,2,opt,name=skin_version,json=skinVersion,proto3" json:"skin_version"`
  23. // 房间id,支持长短号
  24. Roomid int64 `protobuf:"varint,3,opt,name=roomid,proto3" json:"roomid"`
  25. // 一级分区id
  26. AreaV2ParentId int64 `protobuf:"varint,4,opt,name=area_v2_parent_id,json=areaV2ParentId,proto3" json:"area_v2_parent_id"`
  27. // 二级分区id
  28. AreaV2Id int64 `protobuf:"varint,5,opt,name=area_v2_id,json=areaV2Id,proto3" json:"area_v2_id"`
  29. }
  30. func (m *SkinCurrentReq) Reset() { *m = SkinCurrentReq{} }
  31. func (m *SkinCurrentReq) String() string { return proto.CompactTextString(m) }
  32. func (*SkinCurrentReq) ProtoMessage() {}
  33. func (*SkinCurrentReq) Descriptor() ([]byte, []int) {
  34. return fileDescriptor_Skin_a39e5d086ea153eb, []int{0}
  35. }
  36. func (m *SkinCurrentReq) XXX_Unmarshal(b []byte) error {
  37. return m.Unmarshal(b)
  38. }
  39. func (m *SkinCurrentReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  40. if deterministic {
  41. return xxx_messageInfo_SkinCurrentReq.Marshal(b, m, deterministic)
  42. } else {
  43. b = b[:cap(b)]
  44. n, err := m.MarshalTo(b)
  45. if err != nil {
  46. return nil, err
  47. }
  48. return b[:n], nil
  49. }
  50. }
  51. func (dst *SkinCurrentReq) XXX_Merge(src proto.Message) {
  52. xxx_messageInfo_SkinCurrentReq.Merge(dst, src)
  53. }
  54. func (m *SkinCurrentReq) XXX_Size() int {
  55. return m.Size()
  56. }
  57. func (m *SkinCurrentReq) XXX_DiscardUnknown() {
  58. xxx_messageInfo_SkinCurrentReq.DiscardUnknown(m)
  59. }
  60. var xxx_messageInfo_SkinCurrentReq proto.InternalMessageInfo
  61. func (m *SkinCurrentReq) GetSkinPlatform() string {
  62. if m != nil {
  63. return m.SkinPlatform
  64. }
  65. return ""
  66. }
  67. func (m *SkinCurrentReq) GetSkinVersion() string {
  68. if m != nil {
  69. return m.SkinVersion
  70. }
  71. return ""
  72. }
  73. func (m *SkinCurrentReq) GetRoomid() int64 {
  74. if m != nil {
  75. return m.Roomid
  76. }
  77. return 0
  78. }
  79. func (m *SkinCurrentReq) GetAreaV2ParentId() int64 {
  80. if m != nil {
  81. return m.AreaV2ParentId
  82. }
  83. return 0
  84. }
  85. func (m *SkinCurrentReq) GetAreaV2Id() int64 {
  86. if m != nil {
  87. return m.AreaV2Id
  88. }
  89. return 0
  90. }
  91. type SkinCurrentResp struct {
  92. //
  93. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  94. //
  95. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  96. //
  97. Data *SkinCurrentResp_Data `protobuf:"bytes,3,opt,name=data" json:"data"`
  98. }
  99. func (m *SkinCurrentResp) Reset() { *m = SkinCurrentResp{} }
  100. func (m *SkinCurrentResp) String() string { return proto.CompactTextString(m) }
  101. func (*SkinCurrentResp) ProtoMessage() {}
  102. func (*SkinCurrentResp) Descriptor() ([]byte, []int) {
  103. return fileDescriptor_Skin_a39e5d086ea153eb, []int{1}
  104. }
  105. func (m *SkinCurrentResp) XXX_Unmarshal(b []byte) error {
  106. return m.Unmarshal(b)
  107. }
  108. func (m *SkinCurrentResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  109. if deterministic {
  110. return xxx_messageInfo_SkinCurrentResp.Marshal(b, m, deterministic)
  111. } else {
  112. b = b[:cap(b)]
  113. n, err := m.MarshalTo(b)
  114. if err != nil {
  115. return nil, err
  116. }
  117. return b[:n], nil
  118. }
  119. }
  120. func (dst *SkinCurrentResp) XXX_Merge(src proto.Message) {
  121. xxx_messageInfo_SkinCurrentResp.Merge(dst, src)
  122. }
  123. func (m *SkinCurrentResp) XXX_Size() int {
  124. return m.Size()
  125. }
  126. func (m *SkinCurrentResp) XXX_DiscardUnknown() {
  127. xxx_messageInfo_SkinCurrentResp.DiscardUnknown(m)
  128. }
  129. var xxx_messageInfo_SkinCurrentResp proto.InternalMessageInfo
  130. func (m *SkinCurrentResp) GetCode() int64 {
  131. if m != nil {
  132. return m.Code
  133. }
  134. return 0
  135. }
  136. func (m *SkinCurrentResp) GetMsg() string {
  137. if m != nil {
  138. return m.Msg
  139. }
  140. return ""
  141. }
  142. func (m *SkinCurrentResp) GetData() *SkinCurrentResp_Data {
  143. if m != nil {
  144. return m.Data
  145. }
  146. return nil
  147. }
  148. type SkinCurrentResp_Data struct {
  149. // 皮肤id
  150. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  151. // 皮肤配置,字符串类型
  152. SkinConfig string `protobuf:"bytes,2,opt,name=skin_config,json=skinConfig,proto3" json:"skin_config"`
  153. // 失效时间
  154. EndTime int64 `protobuf:"varint,3,opt,name=end_time,json=endTime,proto3" json:"end_time"`
  155. // 当前时间
  156. CurrentTime int64 `protobuf:"varint,4,opt,name=current_time,json=currentTime,proto3" json:"current_time"`
  157. }
  158. func (m *SkinCurrentResp_Data) Reset() { *m = SkinCurrentResp_Data{} }
  159. func (m *SkinCurrentResp_Data) String() string { return proto.CompactTextString(m) }
  160. func (*SkinCurrentResp_Data) ProtoMessage() {}
  161. func (*SkinCurrentResp_Data) Descriptor() ([]byte, []int) {
  162. return fileDescriptor_Skin_a39e5d086ea153eb, []int{1, 0}
  163. }
  164. func (m *SkinCurrentResp_Data) XXX_Unmarshal(b []byte) error {
  165. return m.Unmarshal(b)
  166. }
  167. func (m *SkinCurrentResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  168. if deterministic {
  169. return xxx_messageInfo_SkinCurrentResp_Data.Marshal(b, m, deterministic)
  170. } else {
  171. b = b[:cap(b)]
  172. n, err := m.MarshalTo(b)
  173. if err != nil {
  174. return nil, err
  175. }
  176. return b[:n], nil
  177. }
  178. }
  179. func (dst *SkinCurrentResp_Data) XXX_Merge(src proto.Message) {
  180. xxx_messageInfo_SkinCurrentResp_Data.Merge(dst, src)
  181. }
  182. func (m *SkinCurrentResp_Data) XXX_Size() int {
  183. return m.Size()
  184. }
  185. func (m *SkinCurrentResp_Data) XXX_DiscardUnknown() {
  186. xxx_messageInfo_SkinCurrentResp_Data.DiscardUnknown(m)
  187. }
  188. var xxx_messageInfo_SkinCurrentResp_Data proto.InternalMessageInfo
  189. func (m *SkinCurrentResp_Data) GetId() int64 {
  190. if m != nil {
  191. return m.Id
  192. }
  193. return 0
  194. }
  195. func (m *SkinCurrentResp_Data) GetSkinConfig() string {
  196. if m != nil {
  197. return m.SkinConfig
  198. }
  199. return ""
  200. }
  201. func (m *SkinCurrentResp_Data) GetEndTime() int64 {
  202. if m != nil {
  203. return m.EndTime
  204. }
  205. return 0
  206. }
  207. func (m *SkinCurrentResp_Data) GetCurrentTime() int64 {
  208. if m != nil {
  209. return m.CurrentTime
  210. }
  211. return 0
  212. }
  213. func init() {
  214. proto.RegisterType((*SkinCurrentReq)(nil), "room.v1.SkinCurrentReq")
  215. proto.RegisterType((*SkinCurrentResp)(nil), "room.v1.SkinCurrentResp")
  216. proto.RegisterType((*SkinCurrentResp_Data)(nil), "room.v1.SkinCurrentResp.Data")
  217. }
  218. func (m *SkinCurrentReq) Marshal() (dAtA []byte, err error) {
  219. size := m.Size()
  220. dAtA = make([]byte, size)
  221. n, err := m.MarshalTo(dAtA)
  222. if err != nil {
  223. return nil, err
  224. }
  225. return dAtA[:n], nil
  226. }
  227. func (m *SkinCurrentReq) MarshalTo(dAtA []byte) (int, error) {
  228. var i int
  229. _ = i
  230. var l int
  231. _ = l
  232. if len(m.SkinPlatform) > 0 {
  233. dAtA[i] = 0xa
  234. i++
  235. i = encodeVarintSkin(dAtA, i, uint64(len(m.SkinPlatform)))
  236. i += copy(dAtA[i:], m.SkinPlatform)
  237. }
  238. if len(m.SkinVersion) > 0 {
  239. dAtA[i] = 0x12
  240. i++
  241. i = encodeVarintSkin(dAtA, i, uint64(len(m.SkinVersion)))
  242. i += copy(dAtA[i:], m.SkinVersion)
  243. }
  244. if m.Roomid != 0 {
  245. dAtA[i] = 0x18
  246. i++
  247. i = encodeVarintSkin(dAtA, i, uint64(m.Roomid))
  248. }
  249. if m.AreaV2ParentId != 0 {
  250. dAtA[i] = 0x20
  251. i++
  252. i = encodeVarintSkin(dAtA, i, uint64(m.AreaV2ParentId))
  253. }
  254. if m.AreaV2Id != 0 {
  255. dAtA[i] = 0x28
  256. i++
  257. i = encodeVarintSkin(dAtA, i, uint64(m.AreaV2Id))
  258. }
  259. return i, nil
  260. }
  261. func (m *SkinCurrentResp) Marshal() (dAtA []byte, err error) {
  262. size := m.Size()
  263. dAtA = make([]byte, size)
  264. n, err := m.MarshalTo(dAtA)
  265. if err != nil {
  266. return nil, err
  267. }
  268. return dAtA[:n], nil
  269. }
  270. func (m *SkinCurrentResp) MarshalTo(dAtA []byte) (int, error) {
  271. var i int
  272. _ = i
  273. var l int
  274. _ = l
  275. if m.Code != 0 {
  276. dAtA[i] = 0x8
  277. i++
  278. i = encodeVarintSkin(dAtA, i, uint64(m.Code))
  279. }
  280. if len(m.Msg) > 0 {
  281. dAtA[i] = 0x12
  282. i++
  283. i = encodeVarintSkin(dAtA, i, uint64(len(m.Msg)))
  284. i += copy(dAtA[i:], m.Msg)
  285. }
  286. if m.Data != nil {
  287. dAtA[i] = 0x1a
  288. i++
  289. i = encodeVarintSkin(dAtA, i, uint64(m.Data.Size()))
  290. n1, err := m.Data.MarshalTo(dAtA[i:])
  291. if err != nil {
  292. return 0, err
  293. }
  294. i += n1
  295. }
  296. return i, nil
  297. }
  298. func (m *SkinCurrentResp_Data) Marshal() (dAtA []byte, err error) {
  299. size := m.Size()
  300. dAtA = make([]byte, size)
  301. n, err := m.MarshalTo(dAtA)
  302. if err != nil {
  303. return nil, err
  304. }
  305. return dAtA[:n], nil
  306. }
  307. func (m *SkinCurrentResp_Data) MarshalTo(dAtA []byte) (int, error) {
  308. var i int
  309. _ = i
  310. var l int
  311. _ = l
  312. if m.Id != 0 {
  313. dAtA[i] = 0x8
  314. i++
  315. i = encodeVarintSkin(dAtA, i, uint64(m.Id))
  316. }
  317. if len(m.SkinConfig) > 0 {
  318. dAtA[i] = 0x12
  319. i++
  320. i = encodeVarintSkin(dAtA, i, uint64(len(m.SkinConfig)))
  321. i += copy(dAtA[i:], m.SkinConfig)
  322. }
  323. if m.EndTime != 0 {
  324. dAtA[i] = 0x18
  325. i++
  326. i = encodeVarintSkin(dAtA, i, uint64(m.EndTime))
  327. }
  328. if m.CurrentTime != 0 {
  329. dAtA[i] = 0x20
  330. i++
  331. i = encodeVarintSkin(dAtA, i, uint64(m.CurrentTime))
  332. }
  333. return i, nil
  334. }
  335. func encodeVarintSkin(dAtA []byte, offset int, v uint64) int {
  336. for v >= 1<<7 {
  337. dAtA[offset] = uint8(v&0x7f | 0x80)
  338. v >>= 7
  339. offset++
  340. }
  341. dAtA[offset] = uint8(v)
  342. return offset + 1
  343. }
  344. func (m *SkinCurrentReq) Size() (n int) {
  345. if m == nil {
  346. return 0
  347. }
  348. var l int
  349. _ = l
  350. l = len(m.SkinPlatform)
  351. if l > 0 {
  352. n += 1 + l + sovSkin(uint64(l))
  353. }
  354. l = len(m.SkinVersion)
  355. if l > 0 {
  356. n += 1 + l + sovSkin(uint64(l))
  357. }
  358. if m.Roomid != 0 {
  359. n += 1 + sovSkin(uint64(m.Roomid))
  360. }
  361. if m.AreaV2ParentId != 0 {
  362. n += 1 + sovSkin(uint64(m.AreaV2ParentId))
  363. }
  364. if m.AreaV2Id != 0 {
  365. n += 1 + sovSkin(uint64(m.AreaV2Id))
  366. }
  367. return n
  368. }
  369. func (m *SkinCurrentResp) Size() (n int) {
  370. if m == nil {
  371. return 0
  372. }
  373. var l int
  374. _ = l
  375. if m.Code != 0 {
  376. n += 1 + sovSkin(uint64(m.Code))
  377. }
  378. l = len(m.Msg)
  379. if l > 0 {
  380. n += 1 + l + sovSkin(uint64(l))
  381. }
  382. if m.Data != nil {
  383. l = m.Data.Size()
  384. n += 1 + l + sovSkin(uint64(l))
  385. }
  386. return n
  387. }
  388. func (m *SkinCurrentResp_Data) Size() (n int) {
  389. if m == nil {
  390. return 0
  391. }
  392. var l int
  393. _ = l
  394. if m.Id != 0 {
  395. n += 1 + sovSkin(uint64(m.Id))
  396. }
  397. l = len(m.SkinConfig)
  398. if l > 0 {
  399. n += 1 + l + sovSkin(uint64(l))
  400. }
  401. if m.EndTime != 0 {
  402. n += 1 + sovSkin(uint64(m.EndTime))
  403. }
  404. if m.CurrentTime != 0 {
  405. n += 1 + sovSkin(uint64(m.CurrentTime))
  406. }
  407. return n
  408. }
  409. func sovSkin(x uint64) (n int) {
  410. for {
  411. n++
  412. x >>= 7
  413. if x == 0 {
  414. break
  415. }
  416. }
  417. return n
  418. }
  419. func sozSkin(x uint64) (n int) {
  420. return sovSkin(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  421. }
  422. func (m *SkinCurrentReq) Unmarshal(dAtA []byte) error {
  423. l := len(dAtA)
  424. iNdEx := 0
  425. for iNdEx < l {
  426. preIndex := iNdEx
  427. var wire uint64
  428. for shift := uint(0); ; shift += 7 {
  429. if shift >= 64 {
  430. return ErrIntOverflowSkin
  431. }
  432. if iNdEx >= l {
  433. return io.ErrUnexpectedEOF
  434. }
  435. b := dAtA[iNdEx]
  436. iNdEx++
  437. wire |= (uint64(b) & 0x7F) << shift
  438. if b < 0x80 {
  439. break
  440. }
  441. }
  442. fieldNum := int32(wire >> 3)
  443. wireType := int(wire & 0x7)
  444. if wireType == 4 {
  445. return fmt.Errorf("proto: SkinCurrentReq: wiretype end group for non-group")
  446. }
  447. if fieldNum <= 0 {
  448. return fmt.Errorf("proto: SkinCurrentReq: illegal tag %d (wire type %d)", fieldNum, wire)
  449. }
  450. switch fieldNum {
  451. case 1:
  452. if wireType != 2 {
  453. return fmt.Errorf("proto: wrong wireType = %d for field SkinPlatform", wireType)
  454. }
  455. var stringLen uint64
  456. for shift := uint(0); ; shift += 7 {
  457. if shift >= 64 {
  458. return ErrIntOverflowSkin
  459. }
  460. if iNdEx >= l {
  461. return io.ErrUnexpectedEOF
  462. }
  463. b := dAtA[iNdEx]
  464. iNdEx++
  465. stringLen |= (uint64(b) & 0x7F) << shift
  466. if b < 0x80 {
  467. break
  468. }
  469. }
  470. intStringLen := int(stringLen)
  471. if intStringLen < 0 {
  472. return ErrInvalidLengthSkin
  473. }
  474. postIndex := iNdEx + intStringLen
  475. if postIndex > l {
  476. return io.ErrUnexpectedEOF
  477. }
  478. m.SkinPlatform = string(dAtA[iNdEx:postIndex])
  479. iNdEx = postIndex
  480. case 2:
  481. if wireType != 2 {
  482. return fmt.Errorf("proto: wrong wireType = %d for field SkinVersion", wireType)
  483. }
  484. var stringLen uint64
  485. for shift := uint(0); ; shift += 7 {
  486. if shift >= 64 {
  487. return ErrIntOverflowSkin
  488. }
  489. if iNdEx >= l {
  490. return io.ErrUnexpectedEOF
  491. }
  492. b := dAtA[iNdEx]
  493. iNdEx++
  494. stringLen |= (uint64(b) & 0x7F) << shift
  495. if b < 0x80 {
  496. break
  497. }
  498. }
  499. intStringLen := int(stringLen)
  500. if intStringLen < 0 {
  501. return ErrInvalidLengthSkin
  502. }
  503. postIndex := iNdEx + intStringLen
  504. if postIndex > l {
  505. return io.ErrUnexpectedEOF
  506. }
  507. m.SkinVersion = string(dAtA[iNdEx:postIndex])
  508. iNdEx = postIndex
  509. case 3:
  510. if wireType != 0 {
  511. return fmt.Errorf("proto: wrong wireType = %d for field Roomid", wireType)
  512. }
  513. m.Roomid = 0
  514. for shift := uint(0); ; shift += 7 {
  515. if shift >= 64 {
  516. return ErrIntOverflowSkin
  517. }
  518. if iNdEx >= l {
  519. return io.ErrUnexpectedEOF
  520. }
  521. b := dAtA[iNdEx]
  522. iNdEx++
  523. m.Roomid |= (int64(b) & 0x7F) << shift
  524. if b < 0x80 {
  525. break
  526. }
  527. }
  528. case 4:
  529. if wireType != 0 {
  530. return fmt.Errorf("proto: wrong wireType = %d for field AreaV2ParentId", wireType)
  531. }
  532. m.AreaV2ParentId = 0
  533. for shift := uint(0); ; shift += 7 {
  534. if shift >= 64 {
  535. return ErrIntOverflowSkin
  536. }
  537. if iNdEx >= l {
  538. return io.ErrUnexpectedEOF
  539. }
  540. b := dAtA[iNdEx]
  541. iNdEx++
  542. m.AreaV2ParentId |= (int64(b) & 0x7F) << shift
  543. if b < 0x80 {
  544. break
  545. }
  546. }
  547. case 5:
  548. if wireType != 0 {
  549. return fmt.Errorf("proto: wrong wireType = %d for field AreaV2Id", wireType)
  550. }
  551. m.AreaV2Id = 0
  552. for shift := uint(0); ; shift += 7 {
  553. if shift >= 64 {
  554. return ErrIntOverflowSkin
  555. }
  556. if iNdEx >= l {
  557. return io.ErrUnexpectedEOF
  558. }
  559. b := dAtA[iNdEx]
  560. iNdEx++
  561. m.AreaV2Id |= (int64(b) & 0x7F) << shift
  562. if b < 0x80 {
  563. break
  564. }
  565. }
  566. default:
  567. iNdEx = preIndex
  568. skippy, err := skipSkin(dAtA[iNdEx:])
  569. if err != nil {
  570. return err
  571. }
  572. if skippy < 0 {
  573. return ErrInvalidLengthSkin
  574. }
  575. if (iNdEx + skippy) > l {
  576. return io.ErrUnexpectedEOF
  577. }
  578. iNdEx += skippy
  579. }
  580. }
  581. if iNdEx > l {
  582. return io.ErrUnexpectedEOF
  583. }
  584. return nil
  585. }
  586. func (m *SkinCurrentResp) Unmarshal(dAtA []byte) error {
  587. l := len(dAtA)
  588. iNdEx := 0
  589. for iNdEx < l {
  590. preIndex := iNdEx
  591. var wire uint64
  592. for shift := uint(0); ; shift += 7 {
  593. if shift >= 64 {
  594. return ErrIntOverflowSkin
  595. }
  596. if iNdEx >= l {
  597. return io.ErrUnexpectedEOF
  598. }
  599. b := dAtA[iNdEx]
  600. iNdEx++
  601. wire |= (uint64(b) & 0x7F) << shift
  602. if b < 0x80 {
  603. break
  604. }
  605. }
  606. fieldNum := int32(wire >> 3)
  607. wireType := int(wire & 0x7)
  608. if wireType == 4 {
  609. return fmt.Errorf("proto: SkinCurrentResp: wiretype end group for non-group")
  610. }
  611. if fieldNum <= 0 {
  612. return fmt.Errorf("proto: SkinCurrentResp: illegal tag %d (wire type %d)", fieldNum, wire)
  613. }
  614. switch fieldNum {
  615. case 1:
  616. if wireType != 0 {
  617. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  618. }
  619. m.Code = 0
  620. for shift := uint(0); ; shift += 7 {
  621. if shift >= 64 {
  622. return ErrIntOverflowSkin
  623. }
  624. if iNdEx >= l {
  625. return io.ErrUnexpectedEOF
  626. }
  627. b := dAtA[iNdEx]
  628. iNdEx++
  629. m.Code |= (int64(b) & 0x7F) << shift
  630. if b < 0x80 {
  631. break
  632. }
  633. }
  634. case 2:
  635. if wireType != 2 {
  636. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  637. }
  638. var stringLen uint64
  639. for shift := uint(0); ; shift += 7 {
  640. if shift >= 64 {
  641. return ErrIntOverflowSkin
  642. }
  643. if iNdEx >= l {
  644. return io.ErrUnexpectedEOF
  645. }
  646. b := dAtA[iNdEx]
  647. iNdEx++
  648. stringLen |= (uint64(b) & 0x7F) << shift
  649. if b < 0x80 {
  650. break
  651. }
  652. }
  653. intStringLen := int(stringLen)
  654. if intStringLen < 0 {
  655. return ErrInvalidLengthSkin
  656. }
  657. postIndex := iNdEx + intStringLen
  658. if postIndex > l {
  659. return io.ErrUnexpectedEOF
  660. }
  661. m.Msg = string(dAtA[iNdEx:postIndex])
  662. iNdEx = postIndex
  663. case 3:
  664. if wireType != 2 {
  665. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  666. }
  667. var msglen int
  668. for shift := uint(0); ; shift += 7 {
  669. if shift >= 64 {
  670. return ErrIntOverflowSkin
  671. }
  672. if iNdEx >= l {
  673. return io.ErrUnexpectedEOF
  674. }
  675. b := dAtA[iNdEx]
  676. iNdEx++
  677. msglen |= (int(b) & 0x7F) << shift
  678. if b < 0x80 {
  679. break
  680. }
  681. }
  682. if msglen < 0 {
  683. return ErrInvalidLengthSkin
  684. }
  685. postIndex := iNdEx + msglen
  686. if postIndex > l {
  687. return io.ErrUnexpectedEOF
  688. }
  689. if m.Data == nil {
  690. m.Data = &SkinCurrentResp_Data{}
  691. }
  692. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  693. return err
  694. }
  695. iNdEx = postIndex
  696. default:
  697. iNdEx = preIndex
  698. skippy, err := skipSkin(dAtA[iNdEx:])
  699. if err != nil {
  700. return err
  701. }
  702. if skippy < 0 {
  703. return ErrInvalidLengthSkin
  704. }
  705. if (iNdEx + skippy) > l {
  706. return io.ErrUnexpectedEOF
  707. }
  708. iNdEx += skippy
  709. }
  710. }
  711. if iNdEx > l {
  712. return io.ErrUnexpectedEOF
  713. }
  714. return nil
  715. }
  716. func (m *SkinCurrentResp_Data) Unmarshal(dAtA []byte) error {
  717. l := len(dAtA)
  718. iNdEx := 0
  719. for iNdEx < l {
  720. preIndex := iNdEx
  721. var wire uint64
  722. for shift := uint(0); ; shift += 7 {
  723. if shift >= 64 {
  724. return ErrIntOverflowSkin
  725. }
  726. if iNdEx >= l {
  727. return io.ErrUnexpectedEOF
  728. }
  729. b := dAtA[iNdEx]
  730. iNdEx++
  731. wire |= (uint64(b) & 0x7F) << shift
  732. if b < 0x80 {
  733. break
  734. }
  735. }
  736. fieldNum := int32(wire >> 3)
  737. wireType := int(wire & 0x7)
  738. if wireType == 4 {
  739. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  740. }
  741. if fieldNum <= 0 {
  742. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  743. }
  744. switch fieldNum {
  745. case 1:
  746. if wireType != 0 {
  747. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  748. }
  749. m.Id = 0
  750. for shift := uint(0); ; shift += 7 {
  751. if shift >= 64 {
  752. return ErrIntOverflowSkin
  753. }
  754. if iNdEx >= l {
  755. return io.ErrUnexpectedEOF
  756. }
  757. b := dAtA[iNdEx]
  758. iNdEx++
  759. m.Id |= (int64(b) & 0x7F) << shift
  760. if b < 0x80 {
  761. break
  762. }
  763. }
  764. case 2:
  765. if wireType != 2 {
  766. return fmt.Errorf("proto: wrong wireType = %d for field SkinConfig", wireType)
  767. }
  768. var stringLen uint64
  769. for shift := uint(0); ; shift += 7 {
  770. if shift >= 64 {
  771. return ErrIntOverflowSkin
  772. }
  773. if iNdEx >= l {
  774. return io.ErrUnexpectedEOF
  775. }
  776. b := dAtA[iNdEx]
  777. iNdEx++
  778. stringLen |= (uint64(b) & 0x7F) << shift
  779. if b < 0x80 {
  780. break
  781. }
  782. }
  783. intStringLen := int(stringLen)
  784. if intStringLen < 0 {
  785. return ErrInvalidLengthSkin
  786. }
  787. postIndex := iNdEx + intStringLen
  788. if postIndex > l {
  789. return io.ErrUnexpectedEOF
  790. }
  791. m.SkinConfig = string(dAtA[iNdEx:postIndex])
  792. iNdEx = postIndex
  793. case 3:
  794. if wireType != 0 {
  795. return fmt.Errorf("proto: wrong wireType = %d for field EndTime", wireType)
  796. }
  797. m.EndTime = 0
  798. for shift := uint(0); ; shift += 7 {
  799. if shift >= 64 {
  800. return ErrIntOverflowSkin
  801. }
  802. if iNdEx >= l {
  803. return io.ErrUnexpectedEOF
  804. }
  805. b := dAtA[iNdEx]
  806. iNdEx++
  807. m.EndTime |= (int64(b) & 0x7F) << shift
  808. if b < 0x80 {
  809. break
  810. }
  811. }
  812. case 4:
  813. if wireType != 0 {
  814. return fmt.Errorf("proto: wrong wireType = %d for field CurrentTime", wireType)
  815. }
  816. m.CurrentTime = 0
  817. for shift := uint(0); ; shift += 7 {
  818. if shift >= 64 {
  819. return ErrIntOverflowSkin
  820. }
  821. if iNdEx >= l {
  822. return io.ErrUnexpectedEOF
  823. }
  824. b := dAtA[iNdEx]
  825. iNdEx++
  826. m.CurrentTime |= (int64(b) & 0x7F) << shift
  827. if b < 0x80 {
  828. break
  829. }
  830. }
  831. default:
  832. iNdEx = preIndex
  833. skippy, err := skipSkin(dAtA[iNdEx:])
  834. if err != nil {
  835. return err
  836. }
  837. if skippy < 0 {
  838. return ErrInvalidLengthSkin
  839. }
  840. if (iNdEx + skippy) > l {
  841. return io.ErrUnexpectedEOF
  842. }
  843. iNdEx += skippy
  844. }
  845. }
  846. if iNdEx > l {
  847. return io.ErrUnexpectedEOF
  848. }
  849. return nil
  850. }
  851. func skipSkin(dAtA []byte) (n int, err error) {
  852. l := len(dAtA)
  853. iNdEx := 0
  854. for iNdEx < l {
  855. var wire uint64
  856. for shift := uint(0); ; shift += 7 {
  857. if shift >= 64 {
  858. return 0, ErrIntOverflowSkin
  859. }
  860. if iNdEx >= l {
  861. return 0, io.ErrUnexpectedEOF
  862. }
  863. b := dAtA[iNdEx]
  864. iNdEx++
  865. wire |= (uint64(b) & 0x7F) << shift
  866. if b < 0x80 {
  867. break
  868. }
  869. }
  870. wireType := int(wire & 0x7)
  871. switch wireType {
  872. case 0:
  873. for shift := uint(0); ; shift += 7 {
  874. if shift >= 64 {
  875. return 0, ErrIntOverflowSkin
  876. }
  877. if iNdEx >= l {
  878. return 0, io.ErrUnexpectedEOF
  879. }
  880. iNdEx++
  881. if dAtA[iNdEx-1] < 0x80 {
  882. break
  883. }
  884. }
  885. return iNdEx, nil
  886. case 1:
  887. iNdEx += 8
  888. return iNdEx, nil
  889. case 2:
  890. var length int
  891. for shift := uint(0); ; shift += 7 {
  892. if shift >= 64 {
  893. return 0, ErrIntOverflowSkin
  894. }
  895. if iNdEx >= l {
  896. return 0, io.ErrUnexpectedEOF
  897. }
  898. b := dAtA[iNdEx]
  899. iNdEx++
  900. length |= (int(b) & 0x7F) << shift
  901. if b < 0x80 {
  902. break
  903. }
  904. }
  905. iNdEx += length
  906. if length < 0 {
  907. return 0, ErrInvalidLengthSkin
  908. }
  909. return iNdEx, nil
  910. case 3:
  911. for {
  912. var innerWire uint64
  913. var start int = iNdEx
  914. for shift := uint(0); ; shift += 7 {
  915. if shift >= 64 {
  916. return 0, ErrIntOverflowSkin
  917. }
  918. if iNdEx >= l {
  919. return 0, io.ErrUnexpectedEOF
  920. }
  921. b := dAtA[iNdEx]
  922. iNdEx++
  923. innerWire |= (uint64(b) & 0x7F) << shift
  924. if b < 0x80 {
  925. break
  926. }
  927. }
  928. innerWireType := int(innerWire & 0x7)
  929. if innerWireType == 4 {
  930. break
  931. }
  932. next, err := skipSkin(dAtA[start:])
  933. if err != nil {
  934. return 0, err
  935. }
  936. iNdEx = start + next
  937. }
  938. return iNdEx, nil
  939. case 4:
  940. return iNdEx, nil
  941. case 5:
  942. iNdEx += 4
  943. return iNdEx, nil
  944. default:
  945. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  946. }
  947. }
  948. panic("unreachable")
  949. }
  950. var (
  951. ErrInvalidLengthSkin = fmt.Errorf("proto: negative length found during unmarshaling")
  952. ErrIntOverflowSkin = fmt.Errorf("proto: integer overflow")
  953. )
  954. func init() { proto.RegisterFile("v1/Skin.proto", fileDescriptor_Skin_a39e5d086ea153eb) }
  955. var fileDescriptor_Skin_a39e5d086ea153eb = []byte{
  956. // 467 bytes of a gzipped FileDescriptorProto
  957. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xcf, 0x72, 0xd3, 0x30,
  958. 0x10, 0xc6, 0x63, 0x27, 0x24, 0x61, 0xd3, 0xa6, 0x54, 0x33, 0x80, 0xc9, 0x14, 0xab, 0x93, 0x0b,
  959. 0x3d, 0x80, 0x43, 0xd2, 0x19, 0x2e, 0x70, 0x60, 0xd2, 0x5e, 0x7a, 0xeb, 0x08, 0xa6, 0x07, 0x2e,
  960. 0x1e, 0x27, 0x52, 0x82, 0xa6, 0xd8, 0x4a, 0x1d, 0xc7, 0xcf, 0x01, 0x2f, 0xc2, 0x99, 0x47, 0xe0,
  961. 0xd8, 0x23, 0x27, 0x0d, 0x93, 0xdc, 0xf4, 0x14, 0x8c, 0xd6, 0x2a, 0x93, 0xf0, 0xe7, 0x22, 0xeb,
  962. 0xf7, 0xed, 0xae, 0xb4, 0xfb, 0xc9, 0xb0, 0x5f, 0x0e, 0x07, 0xef, 0xae, 0x65, 0x16, 0x2d, 0x72,
  963. 0x55, 0x28, 0xd2, 0xca, 0x95, 0x4a, 0xa3, 0x72, 0xd8, 0x7b, 0x31, 0x97, 0xc5, 0xc7, 0xd5, 0x24,
  964. 0x9a, 0xaa, 0x74, 0x30, 0x57, 0x73, 0x35, 0xc0, 0xf8, 0x64, 0x35, 0x43, 0x42, 0xc0, 0x5d, 0x55,
  965. 0xd7, 0xff, 0xe2, 0x43, 0xd7, 0x1e, 0x73, 0xb6, 0xca, 0x73, 0x91, 0x15, 0x4c, 0xdc, 0x90, 0x57,
  966. 0xb0, 0xbf, 0xbc, 0x96, 0x59, 0xbc, 0xf8, 0x94, 0x14, 0x33, 0x95, 0xa7, 0x81, 0x77, 0xec, 0x9d,
  967. 0xdc, 0x1f, 0x1f, 0x1a, 0x4d, 0x77, 0x03, 0x6c, 0xcf, 0xe2, 0xa5, 0x23, 0x72, 0x0a, 0xc8, 0x71,
  968. 0x29, 0xf2, 0xa5, 0x54, 0x59, 0xe0, 0x63, 0xd9, 0x03, 0xa3, 0xe9, 0x8e, 0xce, 0x3a, 0x96, 0xae,
  969. 0x2a, 0x20, 0x7d, 0x68, 0xda, 0xce, 0x25, 0x0f, 0xea, 0xc7, 0xde, 0x49, 0x7d, 0x0c, 0x46, 0x53,
  970. 0xa7, 0x30, 0xf7, 0x25, 0x6f, 0xe1, 0x30, 0xc9, 0x45, 0x12, 0x97, 0xa3, 0x78, 0x91, 0xd8, 0x2e,
  971. 0x63, 0xc9, 0x83, 0x06, 0xa6, 0x3f, 0x34, 0x9a, 0xfe, 0x1d, 0x64, 0x5d, 0x2b, 0x5d, 0x8d, 0x2e,
  972. 0x51, 0xb8, 0xe0, 0xe4, 0x39, 0xc0, 0x5d, 0x92, 0xe4, 0xc1, 0x3d, 0x2c, 0xed, 0x1a, 0x4d, 0xb7,
  973. 0x54, 0xd6, 0xae, 0x6a, 0x2e, 0x78, 0xff, 0x9b, 0x0f, 0x07, 0x3b, 0x9e, 0x2c, 0x17, 0xe4, 0x08,
  974. 0x1a, 0x53, 0xc5, 0x05, 0x7a, 0x51, 0x1f, 0xb7, 0x8d, 0xa6, 0xc8, 0x0c, 0x57, 0xf2, 0x04, 0xea,
  975. 0xe9, 0x72, 0xee, 0x26, 0x6e, 0x19, 0x4d, 0x2d, 0x32, 0xbb, 0x90, 0xd7, 0xd0, 0xe0, 0x49, 0x91,
  976. 0xe0, 0x78, 0x9d, 0xd1, 0xd3, 0xc8, 0xbd, 0x53, 0xf4, 0xc7, 0x05, 0xd1, 0x79, 0x52, 0x24, 0xd5,
  977. 0xb9, 0x36, 0x9d, 0xe1, 0xda, 0xfb, 0xea, 0x41, 0xc3, 0x06, 0xc8, 0x23, 0xf0, 0x25, 0x77, 0x97,
  978. 0x37, 0x8d, 0xa6, 0xbe, 0xe4, 0xcc, 0x97, 0x9c, 0xbc, 0x04, 0x74, 0x33, 0x9e, 0xaa, 0x6c, 0x26,
  979. 0xef, 0x1a, 0x38, 0x30, 0x9a, 0x6e, 0xcb, 0x0c, 0x2c, 0x9c, 0xe1, 0x9e, 0x3c, 0x83, 0xb6, 0xc8,
  980. 0x78, 0x5c, 0xc8, 0x54, 0x38, 0xcb, 0xf7, 0x8c, 0xa6, 0xbf, 0x35, 0xd6, 0x12, 0x19, 0x7f, 0x2f,
  981. 0x53, 0x61, 0x9f, 0x73, 0x5a, 0xf5, 0x57, 0x25, 0x57, 0x86, 0xe3, 0x73, 0x6e, 0xeb, 0xac, 0xe3,
  982. 0xc8, 0x16, 0x8d, 0xce, 0xa1, 0x61, 0x07, 0x23, 0x6f, 0xa0, 0xe5, 0x64, 0xf2, 0xf8, 0xdf, 0x23,
  983. 0xdf, 0xf4, 0x82, 0xff, 0x79, 0x31, 0x3e, 0xfa, 0xbe, 0x0e, 0xbd, 0xdb, 0x75, 0xe8, 0xfd, 0x5c,
  984. 0x87, 0xde, 0xe7, 0x4d, 0x58, 0xbb, 0xdd, 0x84, 0xb5, 0x1f, 0x9b, 0xb0, 0xf6, 0xc1, 0x2f, 0x87,
  985. 0x93, 0x26, 0xfe, 0xb9, 0xa7, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0xdb, 0x2a, 0xa2, 0xe7, 0x02,
  986. 0x03, 0x00, 0x00,
  987. }