RoomPendant.pb.go 36 KB

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