Pk.pb.go 60 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: v1/Pk.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 PkGetInfoByIdReq struct {
  19. // 会返回主播数据
  20. IsAnchor int64 `protobuf:"varint,1,opt,name=is_anchor,json=isAnchor,proto3" json:"is_anchor"`
  21. // 直播场次id
  22. PkId int64 `protobuf:"varint,2,opt,name=pk_id,json=pkId,proto3" json:"pk_id"`
  23. // 房间id 房间id (pk_id与room_id必传一个)
  24. RoomId int64 `protobuf:"varint,3,opt,name=room_id,json=roomId,proto3" json:"room_id"`
  25. // 来源:pc:表示PC端;pc_link:表示PC直播姬;ios:表示ios端;ios_link:表示ios_link端;android:安卓端;android_link:安卓link端;ipad:ipad;android_pad:安卓pad端;live_mng:表示live后台;vc_mng:表示vc后台;"
  26. Platform string `protobuf:"bytes,4,opt,name=platform,proto3" json:"platform"`
  27. }
  28. func (m *PkGetInfoByIdReq) Reset() { *m = PkGetInfoByIdReq{} }
  29. func (m *PkGetInfoByIdReq) String() string { return proto.CompactTextString(m) }
  30. func (*PkGetInfoByIdReq) ProtoMessage() {}
  31. func (*PkGetInfoByIdReq) Descriptor() ([]byte, []int) {
  32. return fileDescriptor_Pk_73bf1d6a8022969f, []int{0}
  33. }
  34. func (m *PkGetInfoByIdReq) XXX_Unmarshal(b []byte) error {
  35. return m.Unmarshal(b)
  36. }
  37. func (m *PkGetInfoByIdReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  38. if deterministic {
  39. return xxx_messageInfo_PkGetInfoByIdReq.Marshal(b, m, deterministic)
  40. } else {
  41. b = b[:cap(b)]
  42. n, err := m.MarshalTo(b)
  43. if err != nil {
  44. return nil, err
  45. }
  46. return b[:n], nil
  47. }
  48. }
  49. func (dst *PkGetInfoByIdReq) XXX_Merge(src proto.Message) {
  50. xxx_messageInfo_PkGetInfoByIdReq.Merge(dst, src)
  51. }
  52. func (m *PkGetInfoByIdReq) XXX_Size() int {
  53. return m.Size()
  54. }
  55. func (m *PkGetInfoByIdReq) XXX_DiscardUnknown() {
  56. xxx_messageInfo_PkGetInfoByIdReq.DiscardUnknown(m)
  57. }
  58. var xxx_messageInfo_PkGetInfoByIdReq proto.InternalMessageInfo
  59. func (m *PkGetInfoByIdReq) GetIsAnchor() int64 {
  60. if m != nil {
  61. return m.IsAnchor
  62. }
  63. return 0
  64. }
  65. func (m *PkGetInfoByIdReq) GetPkId() int64 {
  66. if m != nil {
  67. return m.PkId
  68. }
  69. return 0
  70. }
  71. func (m *PkGetInfoByIdReq) GetRoomId() int64 {
  72. if m != nil {
  73. return m.RoomId
  74. }
  75. return 0
  76. }
  77. func (m *PkGetInfoByIdReq) GetPlatform() string {
  78. if m != nil {
  79. return m.Platform
  80. }
  81. return ""
  82. }
  83. type PkGetInfoByIdResp struct {
  84. //
  85. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  86. //
  87. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  88. //
  89. Data *PkGetInfoByIdResp_Data `protobuf:"bytes,3,opt,name=data" json:"data"`
  90. }
  91. func (m *PkGetInfoByIdResp) Reset() { *m = PkGetInfoByIdResp{} }
  92. func (m *PkGetInfoByIdResp) String() string { return proto.CompactTextString(m) }
  93. func (*PkGetInfoByIdResp) ProtoMessage() {}
  94. func (*PkGetInfoByIdResp) Descriptor() ([]byte, []int) {
  95. return fileDescriptor_Pk_73bf1d6a8022969f, []int{1}
  96. }
  97. func (m *PkGetInfoByIdResp) XXX_Unmarshal(b []byte) error {
  98. return m.Unmarshal(b)
  99. }
  100. func (m *PkGetInfoByIdResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  101. if deterministic {
  102. return xxx_messageInfo_PkGetInfoByIdResp.Marshal(b, m, deterministic)
  103. } else {
  104. b = b[:cap(b)]
  105. n, err := m.MarshalTo(b)
  106. if err != nil {
  107. return nil, err
  108. }
  109. return b[:n], nil
  110. }
  111. }
  112. func (dst *PkGetInfoByIdResp) XXX_Merge(src proto.Message) {
  113. xxx_messageInfo_PkGetInfoByIdResp.Merge(dst, src)
  114. }
  115. func (m *PkGetInfoByIdResp) XXX_Size() int {
  116. return m.Size()
  117. }
  118. func (m *PkGetInfoByIdResp) XXX_DiscardUnknown() {
  119. xxx_messageInfo_PkGetInfoByIdResp.DiscardUnknown(m)
  120. }
  121. var xxx_messageInfo_PkGetInfoByIdResp proto.InternalMessageInfo
  122. func (m *PkGetInfoByIdResp) GetCode() int64 {
  123. if m != nil {
  124. return m.Code
  125. }
  126. return 0
  127. }
  128. func (m *PkGetInfoByIdResp) GetMsg() string {
  129. if m != nil {
  130. return m.Msg
  131. }
  132. return ""
  133. }
  134. func (m *PkGetInfoByIdResp) GetData() *PkGetInfoByIdResp_Data {
  135. if m != nil {
  136. return m.Data
  137. }
  138. return nil
  139. }
  140. type PkGetInfoByIdResp_Data struct {
  141. // 本场直播pk_id
  142. PkId int64 `protobuf:"varint,1,opt,name=pk_id,json=pkId,proto3" json:"pk_id"`
  143. // 发起方房间id
  144. InitId int64 `protobuf:"varint,2,opt,name=init_id,json=initId,proto3" json:"init_id"`
  145. // 匹配方房间id
  146. MatchId int64 `protobuf:"varint,3,opt,name=match_id,json=matchId,proto3" json:"match_id"`
  147. // pk预备发起时间
  148. PreTime int64 `protobuf:"varint,4,opt,name=pre_time,json=preTime,proto3" json:"pre_time"`
  149. // pk状态 0 匹配成功;1.pk准备中; 2.pk进行中; 3.惩罚中; 10.连麦正常结束; 11.pk中断,连麦结束, 12 连麦异常,连麦结束
  150. Status int64 `protobuf:"varint,5,opt,name=status,proto3" json:"status"`
  151. // pk话题
  152. PkTopic string `protobuf:"bytes,6,opt,name=pk_topic,json=pkTopic,proto3" json:"pk_topic"`
  153. // 惩罚话题
  154. PunishTopic string `protobuf:"bytes,7,opt,name=punish_topic,json=punishTopic,proto3" json:"punish_topic"`
  155. }
  156. func (m *PkGetInfoByIdResp_Data) Reset() { *m = PkGetInfoByIdResp_Data{} }
  157. func (m *PkGetInfoByIdResp_Data) String() string { return proto.CompactTextString(m) }
  158. func (*PkGetInfoByIdResp_Data) ProtoMessage() {}
  159. func (*PkGetInfoByIdResp_Data) Descriptor() ([]byte, []int) {
  160. return fileDescriptor_Pk_73bf1d6a8022969f, []int{1, 0}
  161. }
  162. func (m *PkGetInfoByIdResp_Data) XXX_Unmarshal(b []byte) error {
  163. return m.Unmarshal(b)
  164. }
  165. func (m *PkGetInfoByIdResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  166. if deterministic {
  167. return xxx_messageInfo_PkGetInfoByIdResp_Data.Marshal(b, m, deterministic)
  168. } else {
  169. b = b[:cap(b)]
  170. n, err := m.MarshalTo(b)
  171. if err != nil {
  172. return nil, err
  173. }
  174. return b[:n], nil
  175. }
  176. }
  177. func (dst *PkGetInfoByIdResp_Data) XXX_Merge(src proto.Message) {
  178. xxx_messageInfo_PkGetInfoByIdResp_Data.Merge(dst, src)
  179. }
  180. func (m *PkGetInfoByIdResp_Data) XXX_Size() int {
  181. return m.Size()
  182. }
  183. func (m *PkGetInfoByIdResp_Data) XXX_DiscardUnknown() {
  184. xxx_messageInfo_PkGetInfoByIdResp_Data.DiscardUnknown(m)
  185. }
  186. var xxx_messageInfo_PkGetInfoByIdResp_Data proto.InternalMessageInfo
  187. func (m *PkGetInfoByIdResp_Data) GetPkId() int64 {
  188. if m != nil {
  189. return m.PkId
  190. }
  191. return 0
  192. }
  193. func (m *PkGetInfoByIdResp_Data) GetInitId() int64 {
  194. if m != nil {
  195. return m.InitId
  196. }
  197. return 0
  198. }
  199. func (m *PkGetInfoByIdResp_Data) GetMatchId() int64 {
  200. if m != nil {
  201. return m.MatchId
  202. }
  203. return 0
  204. }
  205. func (m *PkGetInfoByIdResp_Data) GetPreTime() int64 {
  206. if m != nil {
  207. return m.PreTime
  208. }
  209. return 0
  210. }
  211. func (m *PkGetInfoByIdResp_Data) GetStatus() int64 {
  212. if m != nil {
  213. return m.Status
  214. }
  215. return 0
  216. }
  217. func (m *PkGetInfoByIdResp_Data) GetPkTopic() string {
  218. if m != nil {
  219. return m.PkTopic
  220. }
  221. return ""
  222. }
  223. func (m *PkGetInfoByIdResp_Data) GetPunishTopic() string {
  224. if m != nil {
  225. return m.PunishTopic
  226. }
  227. return ""
  228. }
  229. type PkGetPkStatusReq struct {
  230. // 会返回主播数据
  231. IsAnchor int64 `protobuf:"varint,1,opt,name=is_anchor,json=isAnchor,proto3" json:"is_anchor"`
  232. // 直播场次id
  233. PkId int64 `protobuf:"varint,2,opt,name=pk_id,json=pkId,proto3" json:"pk_id"`
  234. // 房间id 房间id (pk_id与room_id必传一个)
  235. RoomId int64 `protobuf:"varint,3,opt,name=room_id,json=roomId,proto3" json:"room_id"`
  236. // 邀请id
  237. InviteId int64 `protobuf:"varint,4,opt,name=invite_id,json=inviteId,proto3" json:"invite_id"`
  238. // 来源:pc:表示PC端;pc_link:表示PC直播姬;ios:表示ios端;ios_link:表示ios_link端;android:安卓端;android_link:安卓link端;ipad:ipad;android_pad:安卓pad端;live_mng:表示live后台;vc_mng:表示vc后台;"
  239. Platform string `protobuf:"bytes,5,opt,name=platform,proto3" json:"platform"`
  240. }
  241. func (m *PkGetPkStatusReq) Reset() { *m = PkGetPkStatusReq{} }
  242. func (m *PkGetPkStatusReq) String() string { return proto.CompactTextString(m) }
  243. func (*PkGetPkStatusReq) ProtoMessage() {}
  244. func (*PkGetPkStatusReq) Descriptor() ([]byte, []int) {
  245. return fileDescriptor_Pk_73bf1d6a8022969f, []int{2}
  246. }
  247. func (m *PkGetPkStatusReq) XXX_Unmarshal(b []byte) error {
  248. return m.Unmarshal(b)
  249. }
  250. func (m *PkGetPkStatusReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  251. if deterministic {
  252. return xxx_messageInfo_PkGetPkStatusReq.Marshal(b, m, deterministic)
  253. } else {
  254. b = b[:cap(b)]
  255. n, err := m.MarshalTo(b)
  256. if err != nil {
  257. return nil, err
  258. }
  259. return b[:n], nil
  260. }
  261. }
  262. func (dst *PkGetPkStatusReq) XXX_Merge(src proto.Message) {
  263. xxx_messageInfo_PkGetPkStatusReq.Merge(dst, src)
  264. }
  265. func (m *PkGetPkStatusReq) XXX_Size() int {
  266. return m.Size()
  267. }
  268. func (m *PkGetPkStatusReq) XXX_DiscardUnknown() {
  269. xxx_messageInfo_PkGetPkStatusReq.DiscardUnknown(m)
  270. }
  271. var xxx_messageInfo_PkGetPkStatusReq proto.InternalMessageInfo
  272. func (m *PkGetPkStatusReq) GetIsAnchor() int64 {
  273. if m != nil {
  274. return m.IsAnchor
  275. }
  276. return 0
  277. }
  278. func (m *PkGetPkStatusReq) GetPkId() int64 {
  279. if m != nil {
  280. return m.PkId
  281. }
  282. return 0
  283. }
  284. func (m *PkGetPkStatusReq) GetRoomId() int64 {
  285. if m != nil {
  286. return m.RoomId
  287. }
  288. return 0
  289. }
  290. func (m *PkGetPkStatusReq) GetInviteId() int64 {
  291. if m != nil {
  292. return m.InviteId
  293. }
  294. return 0
  295. }
  296. func (m *PkGetPkStatusReq) GetPlatform() string {
  297. if m != nil {
  298. return m.Platform
  299. }
  300. return ""
  301. }
  302. type PkGetPkStatusResp struct {
  303. //
  304. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  305. //
  306. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  307. //
  308. Data *PkGetPkStatusResp_Data `protobuf:"bytes,3,opt,name=data" json:"data"`
  309. }
  310. func (m *PkGetPkStatusResp) Reset() { *m = PkGetPkStatusResp{} }
  311. func (m *PkGetPkStatusResp) String() string { return proto.CompactTextString(m) }
  312. func (*PkGetPkStatusResp) ProtoMessage() {}
  313. func (*PkGetPkStatusResp) Descriptor() ([]byte, []int) {
  314. return fileDescriptor_Pk_73bf1d6a8022969f, []int{3}
  315. }
  316. func (m *PkGetPkStatusResp) XXX_Unmarshal(b []byte) error {
  317. return m.Unmarshal(b)
  318. }
  319. func (m *PkGetPkStatusResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  320. if deterministic {
  321. return xxx_messageInfo_PkGetPkStatusResp.Marshal(b, m, deterministic)
  322. } else {
  323. b = b[:cap(b)]
  324. n, err := m.MarshalTo(b)
  325. if err != nil {
  326. return nil, err
  327. }
  328. return b[:n], nil
  329. }
  330. }
  331. func (dst *PkGetPkStatusResp) XXX_Merge(src proto.Message) {
  332. xxx_messageInfo_PkGetPkStatusResp.Merge(dst, src)
  333. }
  334. func (m *PkGetPkStatusResp) XXX_Size() int {
  335. return m.Size()
  336. }
  337. func (m *PkGetPkStatusResp) XXX_DiscardUnknown() {
  338. xxx_messageInfo_PkGetPkStatusResp.DiscardUnknown(m)
  339. }
  340. var xxx_messageInfo_PkGetPkStatusResp proto.InternalMessageInfo
  341. func (m *PkGetPkStatusResp) GetCode() int64 {
  342. if m != nil {
  343. return m.Code
  344. }
  345. return 0
  346. }
  347. func (m *PkGetPkStatusResp) GetMsg() string {
  348. if m != nil {
  349. return m.Msg
  350. }
  351. return ""
  352. }
  353. func (m *PkGetPkStatusResp) GetData() *PkGetPkStatusResp_Data {
  354. if m != nil {
  355. return m.Data
  356. }
  357. return nil
  358. }
  359. type PkGetPkStatusResp_Data struct {
  360. // 当前时间
  361. Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp"`
  362. // 本场直播pk_id
  363. PkId int64 `protobuf:"varint,2,opt,name=pk_id,json=pkId,proto3" json:"pk_id"`
  364. // pk状态 100 匹配成功;200.pk准备中; 300.pk进行中; 400惩罚中; 1000.连麦正常结束; 1100.pk中断,连麦结束, 1200,逃跑 1300 连麦异常,连麦结束
  365. PkStatus int64 `protobuf:"varint,3,opt,name=pk_status,json=pkStatus,proto3" json:"pk_status"`
  366. // 邀请id
  367. InviteId int64 `protobuf:"varint,4,opt,name=invite_id,json=inviteId,proto3" json:"invite_id"`
  368. // 100 排队中 200 邀请中 1000 同意邀请 1100 拒绝邀请 1200 取消邀请,1300 邀请异常(主播信息)
  369. InviteStatus int64 `protobuf:"varint,5,opt,name=invite_status,json=inviteStatus,proto3" json:"invite_status"`
  370. }
  371. func (m *PkGetPkStatusResp_Data) Reset() { *m = PkGetPkStatusResp_Data{} }
  372. func (m *PkGetPkStatusResp_Data) String() string { return proto.CompactTextString(m) }
  373. func (*PkGetPkStatusResp_Data) ProtoMessage() {}
  374. func (*PkGetPkStatusResp_Data) Descriptor() ([]byte, []int) {
  375. return fileDescriptor_Pk_73bf1d6a8022969f, []int{3, 0}
  376. }
  377. func (m *PkGetPkStatusResp_Data) XXX_Unmarshal(b []byte) error {
  378. return m.Unmarshal(b)
  379. }
  380. func (m *PkGetPkStatusResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  381. if deterministic {
  382. return xxx_messageInfo_PkGetPkStatusResp_Data.Marshal(b, m, deterministic)
  383. } else {
  384. b = b[:cap(b)]
  385. n, err := m.MarshalTo(b)
  386. if err != nil {
  387. return nil, err
  388. }
  389. return b[:n], nil
  390. }
  391. }
  392. func (dst *PkGetPkStatusResp_Data) XXX_Merge(src proto.Message) {
  393. xxx_messageInfo_PkGetPkStatusResp_Data.Merge(dst, src)
  394. }
  395. func (m *PkGetPkStatusResp_Data) XXX_Size() int {
  396. return m.Size()
  397. }
  398. func (m *PkGetPkStatusResp_Data) XXX_DiscardUnknown() {
  399. xxx_messageInfo_PkGetPkStatusResp_Data.DiscardUnknown(m)
  400. }
  401. var xxx_messageInfo_PkGetPkStatusResp_Data proto.InternalMessageInfo
  402. func (m *PkGetPkStatusResp_Data) GetTimestamp() int64 {
  403. if m != nil {
  404. return m.Timestamp
  405. }
  406. return 0
  407. }
  408. func (m *PkGetPkStatusResp_Data) GetPkId() int64 {
  409. if m != nil {
  410. return m.PkId
  411. }
  412. return 0
  413. }
  414. func (m *PkGetPkStatusResp_Data) GetPkStatus() int64 {
  415. if m != nil {
  416. return m.PkStatus
  417. }
  418. return 0
  419. }
  420. func (m *PkGetPkStatusResp_Data) GetInviteId() int64 {
  421. if m != nil {
  422. return m.InviteId
  423. }
  424. return 0
  425. }
  426. func (m *PkGetPkStatusResp_Data) GetInviteStatus() int64 {
  427. if m != nil {
  428. return m.InviteStatus
  429. }
  430. return 0
  431. }
  432. type PkGetPkIdsByRoomIdsReq struct {
  433. // 房间ids
  434. RoomIds []int64 `protobuf:"varint,1,rep,packed,name=room_ids,json=roomIds" json:"room_ids"`
  435. // 来源:pc:表示PC端;pc_link:表示PC直播姬;ios:表示ios端;ios_link:表示ios_link端;android:安卓端;android_link:安卓link端;ipad:ipad;android_pad:安卓pad端;live_mng:表示live后台;vc_mng:表示vc后台;"
  436. Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform"`
  437. }
  438. func (m *PkGetPkIdsByRoomIdsReq) Reset() { *m = PkGetPkIdsByRoomIdsReq{} }
  439. func (m *PkGetPkIdsByRoomIdsReq) String() string { return proto.CompactTextString(m) }
  440. func (*PkGetPkIdsByRoomIdsReq) ProtoMessage() {}
  441. func (*PkGetPkIdsByRoomIdsReq) Descriptor() ([]byte, []int) {
  442. return fileDescriptor_Pk_73bf1d6a8022969f, []int{4}
  443. }
  444. func (m *PkGetPkIdsByRoomIdsReq) XXX_Unmarshal(b []byte) error {
  445. return m.Unmarshal(b)
  446. }
  447. func (m *PkGetPkIdsByRoomIdsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  448. if deterministic {
  449. return xxx_messageInfo_PkGetPkIdsByRoomIdsReq.Marshal(b, m, deterministic)
  450. } else {
  451. b = b[:cap(b)]
  452. n, err := m.MarshalTo(b)
  453. if err != nil {
  454. return nil, err
  455. }
  456. return b[:n], nil
  457. }
  458. }
  459. func (dst *PkGetPkIdsByRoomIdsReq) XXX_Merge(src proto.Message) {
  460. xxx_messageInfo_PkGetPkIdsByRoomIdsReq.Merge(dst, src)
  461. }
  462. func (m *PkGetPkIdsByRoomIdsReq) XXX_Size() int {
  463. return m.Size()
  464. }
  465. func (m *PkGetPkIdsByRoomIdsReq) XXX_DiscardUnknown() {
  466. xxx_messageInfo_PkGetPkIdsByRoomIdsReq.DiscardUnknown(m)
  467. }
  468. var xxx_messageInfo_PkGetPkIdsByRoomIdsReq proto.InternalMessageInfo
  469. func (m *PkGetPkIdsByRoomIdsReq) GetRoomIds() []int64 {
  470. if m != nil {
  471. return m.RoomIds
  472. }
  473. return nil
  474. }
  475. func (m *PkGetPkIdsByRoomIdsReq) GetPlatform() string {
  476. if m != nil {
  477. return m.Platform
  478. }
  479. return ""
  480. }
  481. type PkGetPkIdsByRoomIdsResp struct {
  482. //
  483. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  484. //
  485. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  486. //
  487. Data map[string]int64 `protobuf:"bytes,3,rep,name=data" json:"data" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
  488. }
  489. func (m *PkGetPkIdsByRoomIdsResp) Reset() { *m = PkGetPkIdsByRoomIdsResp{} }
  490. func (m *PkGetPkIdsByRoomIdsResp) String() string { return proto.CompactTextString(m) }
  491. func (*PkGetPkIdsByRoomIdsResp) ProtoMessage() {}
  492. func (*PkGetPkIdsByRoomIdsResp) Descriptor() ([]byte, []int) {
  493. return fileDescriptor_Pk_73bf1d6a8022969f, []int{5}
  494. }
  495. func (m *PkGetPkIdsByRoomIdsResp) XXX_Unmarshal(b []byte) error {
  496. return m.Unmarshal(b)
  497. }
  498. func (m *PkGetPkIdsByRoomIdsResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  499. if deterministic {
  500. return xxx_messageInfo_PkGetPkIdsByRoomIdsResp.Marshal(b, m, deterministic)
  501. } else {
  502. b = b[:cap(b)]
  503. n, err := m.MarshalTo(b)
  504. if err != nil {
  505. return nil, err
  506. }
  507. return b[:n], nil
  508. }
  509. }
  510. func (dst *PkGetPkIdsByRoomIdsResp) XXX_Merge(src proto.Message) {
  511. xxx_messageInfo_PkGetPkIdsByRoomIdsResp.Merge(dst, src)
  512. }
  513. func (m *PkGetPkIdsByRoomIdsResp) XXX_Size() int {
  514. return m.Size()
  515. }
  516. func (m *PkGetPkIdsByRoomIdsResp) XXX_DiscardUnknown() {
  517. xxx_messageInfo_PkGetPkIdsByRoomIdsResp.DiscardUnknown(m)
  518. }
  519. var xxx_messageInfo_PkGetPkIdsByRoomIdsResp proto.InternalMessageInfo
  520. func (m *PkGetPkIdsByRoomIdsResp) GetCode() int64 {
  521. if m != nil {
  522. return m.Code
  523. }
  524. return 0
  525. }
  526. func (m *PkGetPkIdsByRoomIdsResp) GetMsg() string {
  527. if m != nil {
  528. return m.Msg
  529. }
  530. return ""
  531. }
  532. func (m *PkGetPkIdsByRoomIdsResp) GetData() map[string]int64 {
  533. if m != nil {
  534. return m.Data
  535. }
  536. return nil
  537. }
  538. func init() {
  539. proto.RegisterType((*PkGetInfoByIdReq)(nil), "av.v1.PkGetInfoByIdReq")
  540. proto.RegisterType((*PkGetInfoByIdResp)(nil), "av.v1.PkGetInfoByIdResp")
  541. proto.RegisterType((*PkGetInfoByIdResp_Data)(nil), "av.v1.PkGetInfoByIdResp.Data")
  542. proto.RegisterType((*PkGetPkStatusReq)(nil), "av.v1.PkGetPkStatusReq")
  543. proto.RegisterType((*PkGetPkStatusResp)(nil), "av.v1.PkGetPkStatusResp")
  544. proto.RegisterType((*PkGetPkStatusResp_Data)(nil), "av.v1.PkGetPkStatusResp.Data")
  545. proto.RegisterType((*PkGetPkIdsByRoomIdsReq)(nil), "av.v1.PkGetPkIdsByRoomIdsReq")
  546. proto.RegisterType((*PkGetPkIdsByRoomIdsResp)(nil), "av.v1.PkGetPkIdsByRoomIdsResp")
  547. proto.RegisterMapType((map[string]int64)(nil), "av.v1.PkGetPkIdsByRoomIdsResp.DataEntry")
  548. }
  549. func (m *PkGetInfoByIdReq) Marshal() (dAtA []byte, err error) {
  550. size := m.Size()
  551. dAtA = make([]byte, size)
  552. n, err := m.MarshalTo(dAtA)
  553. if err != nil {
  554. return nil, err
  555. }
  556. return dAtA[:n], nil
  557. }
  558. func (m *PkGetInfoByIdReq) MarshalTo(dAtA []byte) (int, error) {
  559. var i int
  560. _ = i
  561. var l int
  562. _ = l
  563. if m.IsAnchor != 0 {
  564. dAtA[i] = 0x8
  565. i++
  566. i = encodeVarintPk(dAtA, i, uint64(m.IsAnchor))
  567. }
  568. if m.PkId != 0 {
  569. dAtA[i] = 0x10
  570. i++
  571. i = encodeVarintPk(dAtA, i, uint64(m.PkId))
  572. }
  573. if m.RoomId != 0 {
  574. dAtA[i] = 0x18
  575. i++
  576. i = encodeVarintPk(dAtA, i, uint64(m.RoomId))
  577. }
  578. if len(m.Platform) > 0 {
  579. dAtA[i] = 0x22
  580. i++
  581. i = encodeVarintPk(dAtA, i, uint64(len(m.Platform)))
  582. i += copy(dAtA[i:], m.Platform)
  583. }
  584. return i, nil
  585. }
  586. func (m *PkGetInfoByIdResp) Marshal() (dAtA []byte, err error) {
  587. size := m.Size()
  588. dAtA = make([]byte, size)
  589. n, err := m.MarshalTo(dAtA)
  590. if err != nil {
  591. return nil, err
  592. }
  593. return dAtA[:n], nil
  594. }
  595. func (m *PkGetInfoByIdResp) MarshalTo(dAtA []byte) (int, error) {
  596. var i int
  597. _ = i
  598. var l int
  599. _ = l
  600. if m.Code != 0 {
  601. dAtA[i] = 0x8
  602. i++
  603. i = encodeVarintPk(dAtA, i, uint64(m.Code))
  604. }
  605. if len(m.Msg) > 0 {
  606. dAtA[i] = 0x12
  607. i++
  608. i = encodeVarintPk(dAtA, i, uint64(len(m.Msg)))
  609. i += copy(dAtA[i:], m.Msg)
  610. }
  611. if m.Data != nil {
  612. dAtA[i] = 0x1a
  613. i++
  614. i = encodeVarintPk(dAtA, i, uint64(m.Data.Size()))
  615. n1, err := m.Data.MarshalTo(dAtA[i:])
  616. if err != nil {
  617. return 0, err
  618. }
  619. i += n1
  620. }
  621. return i, nil
  622. }
  623. func (m *PkGetInfoByIdResp_Data) Marshal() (dAtA []byte, err error) {
  624. size := m.Size()
  625. dAtA = make([]byte, size)
  626. n, err := m.MarshalTo(dAtA)
  627. if err != nil {
  628. return nil, err
  629. }
  630. return dAtA[:n], nil
  631. }
  632. func (m *PkGetInfoByIdResp_Data) MarshalTo(dAtA []byte) (int, error) {
  633. var i int
  634. _ = i
  635. var l int
  636. _ = l
  637. if m.PkId != 0 {
  638. dAtA[i] = 0x8
  639. i++
  640. i = encodeVarintPk(dAtA, i, uint64(m.PkId))
  641. }
  642. if m.InitId != 0 {
  643. dAtA[i] = 0x10
  644. i++
  645. i = encodeVarintPk(dAtA, i, uint64(m.InitId))
  646. }
  647. if m.MatchId != 0 {
  648. dAtA[i] = 0x18
  649. i++
  650. i = encodeVarintPk(dAtA, i, uint64(m.MatchId))
  651. }
  652. if m.PreTime != 0 {
  653. dAtA[i] = 0x20
  654. i++
  655. i = encodeVarintPk(dAtA, i, uint64(m.PreTime))
  656. }
  657. if m.Status != 0 {
  658. dAtA[i] = 0x28
  659. i++
  660. i = encodeVarintPk(dAtA, i, uint64(m.Status))
  661. }
  662. if len(m.PkTopic) > 0 {
  663. dAtA[i] = 0x32
  664. i++
  665. i = encodeVarintPk(dAtA, i, uint64(len(m.PkTopic)))
  666. i += copy(dAtA[i:], m.PkTopic)
  667. }
  668. if len(m.PunishTopic) > 0 {
  669. dAtA[i] = 0x3a
  670. i++
  671. i = encodeVarintPk(dAtA, i, uint64(len(m.PunishTopic)))
  672. i += copy(dAtA[i:], m.PunishTopic)
  673. }
  674. return i, nil
  675. }
  676. func (m *PkGetPkStatusReq) Marshal() (dAtA []byte, err error) {
  677. size := m.Size()
  678. dAtA = make([]byte, size)
  679. n, err := m.MarshalTo(dAtA)
  680. if err != nil {
  681. return nil, err
  682. }
  683. return dAtA[:n], nil
  684. }
  685. func (m *PkGetPkStatusReq) MarshalTo(dAtA []byte) (int, error) {
  686. var i int
  687. _ = i
  688. var l int
  689. _ = l
  690. if m.IsAnchor != 0 {
  691. dAtA[i] = 0x8
  692. i++
  693. i = encodeVarintPk(dAtA, i, uint64(m.IsAnchor))
  694. }
  695. if m.PkId != 0 {
  696. dAtA[i] = 0x10
  697. i++
  698. i = encodeVarintPk(dAtA, i, uint64(m.PkId))
  699. }
  700. if m.RoomId != 0 {
  701. dAtA[i] = 0x18
  702. i++
  703. i = encodeVarintPk(dAtA, i, uint64(m.RoomId))
  704. }
  705. if m.InviteId != 0 {
  706. dAtA[i] = 0x20
  707. i++
  708. i = encodeVarintPk(dAtA, i, uint64(m.InviteId))
  709. }
  710. if len(m.Platform) > 0 {
  711. dAtA[i] = 0x2a
  712. i++
  713. i = encodeVarintPk(dAtA, i, uint64(len(m.Platform)))
  714. i += copy(dAtA[i:], m.Platform)
  715. }
  716. return i, nil
  717. }
  718. func (m *PkGetPkStatusResp) Marshal() (dAtA []byte, err error) {
  719. size := m.Size()
  720. dAtA = make([]byte, size)
  721. n, err := m.MarshalTo(dAtA)
  722. if err != nil {
  723. return nil, err
  724. }
  725. return dAtA[:n], nil
  726. }
  727. func (m *PkGetPkStatusResp) MarshalTo(dAtA []byte) (int, error) {
  728. var i int
  729. _ = i
  730. var l int
  731. _ = l
  732. if m.Code != 0 {
  733. dAtA[i] = 0x8
  734. i++
  735. i = encodeVarintPk(dAtA, i, uint64(m.Code))
  736. }
  737. if len(m.Msg) > 0 {
  738. dAtA[i] = 0x12
  739. i++
  740. i = encodeVarintPk(dAtA, i, uint64(len(m.Msg)))
  741. i += copy(dAtA[i:], m.Msg)
  742. }
  743. if m.Data != nil {
  744. dAtA[i] = 0x1a
  745. i++
  746. i = encodeVarintPk(dAtA, i, uint64(m.Data.Size()))
  747. n2, err := m.Data.MarshalTo(dAtA[i:])
  748. if err != nil {
  749. return 0, err
  750. }
  751. i += n2
  752. }
  753. return i, nil
  754. }
  755. func (m *PkGetPkStatusResp_Data) Marshal() (dAtA []byte, err error) {
  756. size := m.Size()
  757. dAtA = make([]byte, size)
  758. n, err := m.MarshalTo(dAtA)
  759. if err != nil {
  760. return nil, err
  761. }
  762. return dAtA[:n], nil
  763. }
  764. func (m *PkGetPkStatusResp_Data) MarshalTo(dAtA []byte) (int, error) {
  765. var i int
  766. _ = i
  767. var l int
  768. _ = l
  769. if m.Timestamp != 0 {
  770. dAtA[i] = 0x8
  771. i++
  772. i = encodeVarintPk(dAtA, i, uint64(m.Timestamp))
  773. }
  774. if m.PkId != 0 {
  775. dAtA[i] = 0x10
  776. i++
  777. i = encodeVarintPk(dAtA, i, uint64(m.PkId))
  778. }
  779. if m.PkStatus != 0 {
  780. dAtA[i] = 0x18
  781. i++
  782. i = encodeVarintPk(dAtA, i, uint64(m.PkStatus))
  783. }
  784. if m.InviteId != 0 {
  785. dAtA[i] = 0x20
  786. i++
  787. i = encodeVarintPk(dAtA, i, uint64(m.InviteId))
  788. }
  789. if m.InviteStatus != 0 {
  790. dAtA[i] = 0x28
  791. i++
  792. i = encodeVarintPk(dAtA, i, uint64(m.InviteStatus))
  793. }
  794. return i, nil
  795. }
  796. func (m *PkGetPkIdsByRoomIdsReq) Marshal() (dAtA []byte, err error) {
  797. size := m.Size()
  798. dAtA = make([]byte, size)
  799. n, err := m.MarshalTo(dAtA)
  800. if err != nil {
  801. return nil, err
  802. }
  803. return dAtA[:n], nil
  804. }
  805. func (m *PkGetPkIdsByRoomIdsReq) MarshalTo(dAtA []byte) (int, error) {
  806. var i int
  807. _ = i
  808. var l int
  809. _ = l
  810. if len(m.RoomIds) > 0 {
  811. dAtA4 := make([]byte, len(m.RoomIds)*10)
  812. var j3 int
  813. for _, num1 := range m.RoomIds {
  814. num := uint64(num1)
  815. for num >= 1<<7 {
  816. dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80)
  817. num >>= 7
  818. j3++
  819. }
  820. dAtA4[j3] = uint8(num)
  821. j3++
  822. }
  823. dAtA[i] = 0xa
  824. i++
  825. i = encodeVarintPk(dAtA, i, uint64(j3))
  826. i += copy(dAtA[i:], dAtA4[:j3])
  827. }
  828. if len(m.Platform) > 0 {
  829. dAtA[i] = 0x12
  830. i++
  831. i = encodeVarintPk(dAtA, i, uint64(len(m.Platform)))
  832. i += copy(dAtA[i:], m.Platform)
  833. }
  834. return i, nil
  835. }
  836. func (m *PkGetPkIdsByRoomIdsResp) Marshal() (dAtA []byte, err error) {
  837. size := m.Size()
  838. dAtA = make([]byte, size)
  839. n, err := m.MarshalTo(dAtA)
  840. if err != nil {
  841. return nil, err
  842. }
  843. return dAtA[:n], nil
  844. }
  845. func (m *PkGetPkIdsByRoomIdsResp) MarshalTo(dAtA []byte) (int, error) {
  846. var i int
  847. _ = i
  848. var l int
  849. _ = l
  850. if m.Code != 0 {
  851. dAtA[i] = 0x8
  852. i++
  853. i = encodeVarintPk(dAtA, i, uint64(m.Code))
  854. }
  855. if len(m.Msg) > 0 {
  856. dAtA[i] = 0x12
  857. i++
  858. i = encodeVarintPk(dAtA, i, uint64(len(m.Msg)))
  859. i += copy(dAtA[i:], m.Msg)
  860. }
  861. if len(m.Data) > 0 {
  862. for k, _ := range m.Data {
  863. dAtA[i] = 0x1a
  864. i++
  865. v := m.Data[k]
  866. mapSize := 1 + len(k) + sovPk(uint64(len(k))) + 1 + sovPk(uint64(v))
  867. i = encodeVarintPk(dAtA, i, uint64(mapSize))
  868. dAtA[i] = 0xa
  869. i++
  870. i = encodeVarintPk(dAtA, i, uint64(len(k)))
  871. i += copy(dAtA[i:], k)
  872. dAtA[i] = 0x10
  873. i++
  874. i = encodeVarintPk(dAtA, i, uint64(v))
  875. }
  876. }
  877. return i, nil
  878. }
  879. func encodeVarintPk(dAtA []byte, offset int, v uint64) int {
  880. for v >= 1<<7 {
  881. dAtA[offset] = uint8(v&0x7f | 0x80)
  882. v >>= 7
  883. offset++
  884. }
  885. dAtA[offset] = uint8(v)
  886. return offset + 1
  887. }
  888. func (m *PkGetInfoByIdReq) Size() (n int) {
  889. if m == nil {
  890. return 0
  891. }
  892. var l int
  893. _ = l
  894. if m.IsAnchor != 0 {
  895. n += 1 + sovPk(uint64(m.IsAnchor))
  896. }
  897. if m.PkId != 0 {
  898. n += 1 + sovPk(uint64(m.PkId))
  899. }
  900. if m.RoomId != 0 {
  901. n += 1 + sovPk(uint64(m.RoomId))
  902. }
  903. l = len(m.Platform)
  904. if l > 0 {
  905. n += 1 + l + sovPk(uint64(l))
  906. }
  907. return n
  908. }
  909. func (m *PkGetInfoByIdResp) Size() (n int) {
  910. if m == nil {
  911. return 0
  912. }
  913. var l int
  914. _ = l
  915. if m.Code != 0 {
  916. n += 1 + sovPk(uint64(m.Code))
  917. }
  918. l = len(m.Msg)
  919. if l > 0 {
  920. n += 1 + l + sovPk(uint64(l))
  921. }
  922. if m.Data != nil {
  923. l = m.Data.Size()
  924. n += 1 + l + sovPk(uint64(l))
  925. }
  926. return n
  927. }
  928. func (m *PkGetInfoByIdResp_Data) Size() (n int) {
  929. if m == nil {
  930. return 0
  931. }
  932. var l int
  933. _ = l
  934. if m.PkId != 0 {
  935. n += 1 + sovPk(uint64(m.PkId))
  936. }
  937. if m.InitId != 0 {
  938. n += 1 + sovPk(uint64(m.InitId))
  939. }
  940. if m.MatchId != 0 {
  941. n += 1 + sovPk(uint64(m.MatchId))
  942. }
  943. if m.PreTime != 0 {
  944. n += 1 + sovPk(uint64(m.PreTime))
  945. }
  946. if m.Status != 0 {
  947. n += 1 + sovPk(uint64(m.Status))
  948. }
  949. l = len(m.PkTopic)
  950. if l > 0 {
  951. n += 1 + l + sovPk(uint64(l))
  952. }
  953. l = len(m.PunishTopic)
  954. if l > 0 {
  955. n += 1 + l + sovPk(uint64(l))
  956. }
  957. return n
  958. }
  959. func (m *PkGetPkStatusReq) Size() (n int) {
  960. if m == nil {
  961. return 0
  962. }
  963. var l int
  964. _ = l
  965. if m.IsAnchor != 0 {
  966. n += 1 + sovPk(uint64(m.IsAnchor))
  967. }
  968. if m.PkId != 0 {
  969. n += 1 + sovPk(uint64(m.PkId))
  970. }
  971. if m.RoomId != 0 {
  972. n += 1 + sovPk(uint64(m.RoomId))
  973. }
  974. if m.InviteId != 0 {
  975. n += 1 + sovPk(uint64(m.InviteId))
  976. }
  977. l = len(m.Platform)
  978. if l > 0 {
  979. n += 1 + l + sovPk(uint64(l))
  980. }
  981. return n
  982. }
  983. func (m *PkGetPkStatusResp) Size() (n int) {
  984. if m == nil {
  985. return 0
  986. }
  987. var l int
  988. _ = l
  989. if m.Code != 0 {
  990. n += 1 + sovPk(uint64(m.Code))
  991. }
  992. l = len(m.Msg)
  993. if l > 0 {
  994. n += 1 + l + sovPk(uint64(l))
  995. }
  996. if m.Data != nil {
  997. l = m.Data.Size()
  998. n += 1 + l + sovPk(uint64(l))
  999. }
  1000. return n
  1001. }
  1002. func (m *PkGetPkStatusResp_Data) Size() (n int) {
  1003. if m == nil {
  1004. return 0
  1005. }
  1006. var l int
  1007. _ = l
  1008. if m.Timestamp != 0 {
  1009. n += 1 + sovPk(uint64(m.Timestamp))
  1010. }
  1011. if m.PkId != 0 {
  1012. n += 1 + sovPk(uint64(m.PkId))
  1013. }
  1014. if m.PkStatus != 0 {
  1015. n += 1 + sovPk(uint64(m.PkStatus))
  1016. }
  1017. if m.InviteId != 0 {
  1018. n += 1 + sovPk(uint64(m.InviteId))
  1019. }
  1020. if m.InviteStatus != 0 {
  1021. n += 1 + sovPk(uint64(m.InviteStatus))
  1022. }
  1023. return n
  1024. }
  1025. func (m *PkGetPkIdsByRoomIdsReq) Size() (n int) {
  1026. if m == nil {
  1027. return 0
  1028. }
  1029. var l int
  1030. _ = l
  1031. if len(m.RoomIds) > 0 {
  1032. l = 0
  1033. for _, e := range m.RoomIds {
  1034. l += sovPk(uint64(e))
  1035. }
  1036. n += 1 + sovPk(uint64(l)) + l
  1037. }
  1038. l = len(m.Platform)
  1039. if l > 0 {
  1040. n += 1 + l + sovPk(uint64(l))
  1041. }
  1042. return n
  1043. }
  1044. func (m *PkGetPkIdsByRoomIdsResp) Size() (n int) {
  1045. if m == nil {
  1046. return 0
  1047. }
  1048. var l int
  1049. _ = l
  1050. if m.Code != 0 {
  1051. n += 1 + sovPk(uint64(m.Code))
  1052. }
  1053. l = len(m.Msg)
  1054. if l > 0 {
  1055. n += 1 + l + sovPk(uint64(l))
  1056. }
  1057. if len(m.Data) > 0 {
  1058. for k, v := range m.Data {
  1059. _ = k
  1060. _ = v
  1061. mapEntrySize := 1 + len(k) + sovPk(uint64(len(k))) + 1 + sovPk(uint64(v))
  1062. n += mapEntrySize + 1 + sovPk(uint64(mapEntrySize))
  1063. }
  1064. }
  1065. return n
  1066. }
  1067. func sovPk(x uint64) (n int) {
  1068. for {
  1069. n++
  1070. x >>= 7
  1071. if x == 0 {
  1072. break
  1073. }
  1074. }
  1075. return n
  1076. }
  1077. func sozPk(x uint64) (n int) {
  1078. return sovPk(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1079. }
  1080. func (m *PkGetInfoByIdReq) Unmarshal(dAtA []byte) error {
  1081. l := len(dAtA)
  1082. iNdEx := 0
  1083. for iNdEx < l {
  1084. preIndex := iNdEx
  1085. var wire uint64
  1086. for shift := uint(0); ; shift += 7 {
  1087. if shift >= 64 {
  1088. return ErrIntOverflowPk
  1089. }
  1090. if iNdEx >= l {
  1091. return io.ErrUnexpectedEOF
  1092. }
  1093. b := dAtA[iNdEx]
  1094. iNdEx++
  1095. wire |= (uint64(b) & 0x7F) << shift
  1096. if b < 0x80 {
  1097. break
  1098. }
  1099. }
  1100. fieldNum := int32(wire >> 3)
  1101. wireType := int(wire & 0x7)
  1102. if wireType == 4 {
  1103. return fmt.Errorf("proto: PkGetInfoByIdReq: wiretype end group for non-group")
  1104. }
  1105. if fieldNum <= 0 {
  1106. return fmt.Errorf("proto: PkGetInfoByIdReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1107. }
  1108. switch fieldNum {
  1109. case 1:
  1110. if wireType != 0 {
  1111. return fmt.Errorf("proto: wrong wireType = %d for field IsAnchor", wireType)
  1112. }
  1113. m.IsAnchor = 0
  1114. for shift := uint(0); ; shift += 7 {
  1115. if shift >= 64 {
  1116. return ErrIntOverflowPk
  1117. }
  1118. if iNdEx >= l {
  1119. return io.ErrUnexpectedEOF
  1120. }
  1121. b := dAtA[iNdEx]
  1122. iNdEx++
  1123. m.IsAnchor |= (int64(b) & 0x7F) << shift
  1124. if b < 0x80 {
  1125. break
  1126. }
  1127. }
  1128. case 2:
  1129. if wireType != 0 {
  1130. return fmt.Errorf("proto: wrong wireType = %d for field PkId", wireType)
  1131. }
  1132. m.PkId = 0
  1133. for shift := uint(0); ; shift += 7 {
  1134. if shift >= 64 {
  1135. return ErrIntOverflowPk
  1136. }
  1137. if iNdEx >= l {
  1138. return io.ErrUnexpectedEOF
  1139. }
  1140. b := dAtA[iNdEx]
  1141. iNdEx++
  1142. m.PkId |= (int64(b) & 0x7F) << shift
  1143. if b < 0x80 {
  1144. break
  1145. }
  1146. }
  1147. case 3:
  1148. if wireType != 0 {
  1149. return fmt.Errorf("proto: wrong wireType = %d for field RoomId", wireType)
  1150. }
  1151. m.RoomId = 0
  1152. for shift := uint(0); ; shift += 7 {
  1153. if shift >= 64 {
  1154. return ErrIntOverflowPk
  1155. }
  1156. if iNdEx >= l {
  1157. return io.ErrUnexpectedEOF
  1158. }
  1159. b := dAtA[iNdEx]
  1160. iNdEx++
  1161. m.RoomId |= (int64(b) & 0x7F) << shift
  1162. if b < 0x80 {
  1163. break
  1164. }
  1165. }
  1166. case 4:
  1167. if wireType != 2 {
  1168. return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
  1169. }
  1170. var stringLen uint64
  1171. for shift := uint(0); ; shift += 7 {
  1172. if shift >= 64 {
  1173. return ErrIntOverflowPk
  1174. }
  1175. if iNdEx >= l {
  1176. return io.ErrUnexpectedEOF
  1177. }
  1178. b := dAtA[iNdEx]
  1179. iNdEx++
  1180. stringLen |= (uint64(b) & 0x7F) << shift
  1181. if b < 0x80 {
  1182. break
  1183. }
  1184. }
  1185. intStringLen := int(stringLen)
  1186. if intStringLen < 0 {
  1187. return ErrInvalidLengthPk
  1188. }
  1189. postIndex := iNdEx + intStringLen
  1190. if postIndex > l {
  1191. return io.ErrUnexpectedEOF
  1192. }
  1193. m.Platform = string(dAtA[iNdEx:postIndex])
  1194. iNdEx = postIndex
  1195. default:
  1196. iNdEx = preIndex
  1197. skippy, err := skipPk(dAtA[iNdEx:])
  1198. if err != nil {
  1199. return err
  1200. }
  1201. if skippy < 0 {
  1202. return ErrInvalidLengthPk
  1203. }
  1204. if (iNdEx + skippy) > l {
  1205. return io.ErrUnexpectedEOF
  1206. }
  1207. iNdEx += skippy
  1208. }
  1209. }
  1210. if iNdEx > l {
  1211. return io.ErrUnexpectedEOF
  1212. }
  1213. return nil
  1214. }
  1215. func (m *PkGetInfoByIdResp) Unmarshal(dAtA []byte) error {
  1216. l := len(dAtA)
  1217. iNdEx := 0
  1218. for iNdEx < l {
  1219. preIndex := iNdEx
  1220. var wire uint64
  1221. for shift := uint(0); ; shift += 7 {
  1222. if shift >= 64 {
  1223. return ErrIntOverflowPk
  1224. }
  1225. if iNdEx >= l {
  1226. return io.ErrUnexpectedEOF
  1227. }
  1228. b := dAtA[iNdEx]
  1229. iNdEx++
  1230. wire |= (uint64(b) & 0x7F) << shift
  1231. if b < 0x80 {
  1232. break
  1233. }
  1234. }
  1235. fieldNum := int32(wire >> 3)
  1236. wireType := int(wire & 0x7)
  1237. if wireType == 4 {
  1238. return fmt.Errorf("proto: PkGetInfoByIdResp: wiretype end group for non-group")
  1239. }
  1240. if fieldNum <= 0 {
  1241. return fmt.Errorf("proto: PkGetInfoByIdResp: illegal tag %d (wire type %d)", fieldNum, wire)
  1242. }
  1243. switch fieldNum {
  1244. case 1:
  1245. if wireType != 0 {
  1246. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  1247. }
  1248. m.Code = 0
  1249. for shift := uint(0); ; shift += 7 {
  1250. if shift >= 64 {
  1251. return ErrIntOverflowPk
  1252. }
  1253. if iNdEx >= l {
  1254. return io.ErrUnexpectedEOF
  1255. }
  1256. b := dAtA[iNdEx]
  1257. iNdEx++
  1258. m.Code |= (int64(b) & 0x7F) << shift
  1259. if b < 0x80 {
  1260. break
  1261. }
  1262. }
  1263. case 2:
  1264. if wireType != 2 {
  1265. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  1266. }
  1267. var stringLen uint64
  1268. for shift := uint(0); ; shift += 7 {
  1269. if shift >= 64 {
  1270. return ErrIntOverflowPk
  1271. }
  1272. if iNdEx >= l {
  1273. return io.ErrUnexpectedEOF
  1274. }
  1275. b := dAtA[iNdEx]
  1276. iNdEx++
  1277. stringLen |= (uint64(b) & 0x7F) << shift
  1278. if b < 0x80 {
  1279. break
  1280. }
  1281. }
  1282. intStringLen := int(stringLen)
  1283. if intStringLen < 0 {
  1284. return ErrInvalidLengthPk
  1285. }
  1286. postIndex := iNdEx + intStringLen
  1287. if postIndex > l {
  1288. return io.ErrUnexpectedEOF
  1289. }
  1290. m.Msg = string(dAtA[iNdEx:postIndex])
  1291. iNdEx = postIndex
  1292. case 3:
  1293. if wireType != 2 {
  1294. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  1295. }
  1296. var msglen int
  1297. for shift := uint(0); ; shift += 7 {
  1298. if shift >= 64 {
  1299. return ErrIntOverflowPk
  1300. }
  1301. if iNdEx >= l {
  1302. return io.ErrUnexpectedEOF
  1303. }
  1304. b := dAtA[iNdEx]
  1305. iNdEx++
  1306. msglen |= (int(b) & 0x7F) << shift
  1307. if b < 0x80 {
  1308. break
  1309. }
  1310. }
  1311. if msglen < 0 {
  1312. return ErrInvalidLengthPk
  1313. }
  1314. postIndex := iNdEx + msglen
  1315. if postIndex > l {
  1316. return io.ErrUnexpectedEOF
  1317. }
  1318. if m.Data == nil {
  1319. m.Data = &PkGetInfoByIdResp_Data{}
  1320. }
  1321. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1322. return err
  1323. }
  1324. iNdEx = postIndex
  1325. default:
  1326. iNdEx = preIndex
  1327. skippy, err := skipPk(dAtA[iNdEx:])
  1328. if err != nil {
  1329. return err
  1330. }
  1331. if skippy < 0 {
  1332. return ErrInvalidLengthPk
  1333. }
  1334. if (iNdEx + skippy) > l {
  1335. return io.ErrUnexpectedEOF
  1336. }
  1337. iNdEx += skippy
  1338. }
  1339. }
  1340. if iNdEx > l {
  1341. return io.ErrUnexpectedEOF
  1342. }
  1343. return nil
  1344. }
  1345. func (m *PkGetInfoByIdResp_Data) Unmarshal(dAtA []byte) error {
  1346. l := len(dAtA)
  1347. iNdEx := 0
  1348. for iNdEx < l {
  1349. preIndex := iNdEx
  1350. var wire uint64
  1351. for shift := uint(0); ; shift += 7 {
  1352. if shift >= 64 {
  1353. return ErrIntOverflowPk
  1354. }
  1355. if iNdEx >= l {
  1356. return io.ErrUnexpectedEOF
  1357. }
  1358. b := dAtA[iNdEx]
  1359. iNdEx++
  1360. wire |= (uint64(b) & 0x7F) << shift
  1361. if b < 0x80 {
  1362. break
  1363. }
  1364. }
  1365. fieldNum := int32(wire >> 3)
  1366. wireType := int(wire & 0x7)
  1367. if wireType == 4 {
  1368. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  1369. }
  1370. if fieldNum <= 0 {
  1371. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  1372. }
  1373. switch fieldNum {
  1374. case 1:
  1375. if wireType != 0 {
  1376. return fmt.Errorf("proto: wrong wireType = %d for field PkId", wireType)
  1377. }
  1378. m.PkId = 0
  1379. for shift := uint(0); ; shift += 7 {
  1380. if shift >= 64 {
  1381. return ErrIntOverflowPk
  1382. }
  1383. if iNdEx >= l {
  1384. return io.ErrUnexpectedEOF
  1385. }
  1386. b := dAtA[iNdEx]
  1387. iNdEx++
  1388. m.PkId |= (int64(b) & 0x7F) << shift
  1389. if b < 0x80 {
  1390. break
  1391. }
  1392. }
  1393. case 2:
  1394. if wireType != 0 {
  1395. return fmt.Errorf("proto: wrong wireType = %d for field InitId", wireType)
  1396. }
  1397. m.InitId = 0
  1398. for shift := uint(0); ; shift += 7 {
  1399. if shift >= 64 {
  1400. return ErrIntOverflowPk
  1401. }
  1402. if iNdEx >= l {
  1403. return io.ErrUnexpectedEOF
  1404. }
  1405. b := dAtA[iNdEx]
  1406. iNdEx++
  1407. m.InitId |= (int64(b) & 0x7F) << shift
  1408. if b < 0x80 {
  1409. break
  1410. }
  1411. }
  1412. case 3:
  1413. if wireType != 0 {
  1414. return fmt.Errorf("proto: wrong wireType = %d for field MatchId", wireType)
  1415. }
  1416. m.MatchId = 0
  1417. for shift := uint(0); ; shift += 7 {
  1418. if shift >= 64 {
  1419. return ErrIntOverflowPk
  1420. }
  1421. if iNdEx >= l {
  1422. return io.ErrUnexpectedEOF
  1423. }
  1424. b := dAtA[iNdEx]
  1425. iNdEx++
  1426. m.MatchId |= (int64(b) & 0x7F) << shift
  1427. if b < 0x80 {
  1428. break
  1429. }
  1430. }
  1431. case 4:
  1432. if wireType != 0 {
  1433. return fmt.Errorf("proto: wrong wireType = %d for field PreTime", wireType)
  1434. }
  1435. m.PreTime = 0
  1436. for shift := uint(0); ; shift += 7 {
  1437. if shift >= 64 {
  1438. return ErrIntOverflowPk
  1439. }
  1440. if iNdEx >= l {
  1441. return io.ErrUnexpectedEOF
  1442. }
  1443. b := dAtA[iNdEx]
  1444. iNdEx++
  1445. m.PreTime |= (int64(b) & 0x7F) << shift
  1446. if b < 0x80 {
  1447. break
  1448. }
  1449. }
  1450. case 5:
  1451. if wireType != 0 {
  1452. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  1453. }
  1454. m.Status = 0
  1455. for shift := uint(0); ; shift += 7 {
  1456. if shift >= 64 {
  1457. return ErrIntOverflowPk
  1458. }
  1459. if iNdEx >= l {
  1460. return io.ErrUnexpectedEOF
  1461. }
  1462. b := dAtA[iNdEx]
  1463. iNdEx++
  1464. m.Status |= (int64(b) & 0x7F) << shift
  1465. if b < 0x80 {
  1466. break
  1467. }
  1468. }
  1469. case 6:
  1470. if wireType != 2 {
  1471. return fmt.Errorf("proto: wrong wireType = %d for field PkTopic", wireType)
  1472. }
  1473. var stringLen uint64
  1474. for shift := uint(0); ; shift += 7 {
  1475. if shift >= 64 {
  1476. return ErrIntOverflowPk
  1477. }
  1478. if iNdEx >= l {
  1479. return io.ErrUnexpectedEOF
  1480. }
  1481. b := dAtA[iNdEx]
  1482. iNdEx++
  1483. stringLen |= (uint64(b) & 0x7F) << shift
  1484. if b < 0x80 {
  1485. break
  1486. }
  1487. }
  1488. intStringLen := int(stringLen)
  1489. if intStringLen < 0 {
  1490. return ErrInvalidLengthPk
  1491. }
  1492. postIndex := iNdEx + intStringLen
  1493. if postIndex > l {
  1494. return io.ErrUnexpectedEOF
  1495. }
  1496. m.PkTopic = string(dAtA[iNdEx:postIndex])
  1497. iNdEx = postIndex
  1498. case 7:
  1499. if wireType != 2 {
  1500. return fmt.Errorf("proto: wrong wireType = %d for field PunishTopic", wireType)
  1501. }
  1502. var stringLen uint64
  1503. for shift := uint(0); ; shift += 7 {
  1504. if shift >= 64 {
  1505. return ErrIntOverflowPk
  1506. }
  1507. if iNdEx >= l {
  1508. return io.ErrUnexpectedEOF
  1509. }
  1510. b := dAtA[iNdEx]
  1511. iNdEx++
  1512. stringLen |= (uint64(b) & 0x7F) << shift
  1513. if b < 0x80 {
  1514. break
  1515. }
  1516. }
  1517. intStringLen := int(stringLen)
  1518. if intStringLen < 0 {
  1519. return ErrInvalidLengthPk
  1520. }
  1521. postIndex := iNdEx + intStringLen
  1522. if postIndex > l {
  1523. return io.ErrUnexpectedEOF
  1524. }
  1525. m.PunishTopic = string(dAtA[iNdEx:postIndex])
  1526. iNdEx = postIndex
  1527. default:
  1528. iNdEx = preIndex
  1529. skippy, err := skipPk(dAtA[iNdEx:])
  1530. if err != nil {
  1531. return err
  1532. }
  1533. if skippy < 0 {
  1534. return ErrInvalidLengthPk
  1535. }
  1536. if (iNdEx + skippy) > l {
  1537. return io.ErrUnexpectedEOF
  1538. }
  1539. iNdEx += skippy
  1540. }
  1541. }
  1542. if iNdEx > l {
  1543. return io.ErrUnexpectedEOF
  1544. }
  1545. return nil
  1546. }
  1547. func (m *PkGetPkStatusReq) Unmarshal(dAtA []byte) error {
  1548. l := len(dAtA)
  1549. iNdEx := 0
  1550. for iNdEx < l {
  1551. preIndex := iNdEx
  1552. var wire uint64
  1553. for shift := uint(0); ; shift += 7 {
  1554. if shift >= 64 {
  1555. return ErrIntOverflowPk
  1556. }
  1557. if iNdEx >= l {
  1558. return io.ErrUnexpectedEOF
  1559. }
  1560. b := dAtA[iNdEx]
  1561. iNdEx++
  1562. wire |= (uint64(b) & 0x7F) << shift
  1563. if b < 0x80 {
  1564. break
  1565. }
  1566. }
  1567. fieldNum := int32(wire >> 3)
  1568. wireType := int(wire & 0x7)
  1569. if wireType == 4 {
  1570. return fmt.Errorf("proto: PkGetPkStatusReq: wiretype end group for non-group")
  1571. }
  1572. if fieldNum <= 0 {
  1573. return fmt.Errorf("proto: PkGetPkStatusReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1574. }
  1575. switch fieldNum {
  1576. case 1:
  1577. if wireType != 0 {
  1578. return fmt.Errorf("proto: wrong wireType = %d for field IsAnchor", wireType)
  1579. }
  1580. m.IsAnchor = 0
  1581. for shift := uint(0); ; shift += 7 {
  1582. if shift >= 64 {
  1583. return ErrIntOverflowPk
  1584. }
  1585. if iNdEx >= l {
  1586. return io.ErrUnexpectedEOF
  1587. }
  1588. b := dAtA[iNdEx]
  1589. iNdEx++
  1590. m.IsAnchor |= (int64(b) & 0x7F) << shift
  1591. if b < 0x80 {
  1592. break
  1593. }
  1594. }
  1595. case 2:
  1596. if wireType != 0 {
  1597. return fmt.Errorf("proto: wrong wireType = %d for field PkId", wireType)
  1598. }
  1599. m.PkId = 0
  1600. for shift := uint(0); ; shift += 7 {
  1601. if shift >= 64 {
  1602. return ErrIntOverflowPk
  1603. }
  1604. if iNdEx >= l {
  1605. return io.ErrUnexpectedEOF
  1606. }
  1607. b := dAtA[iNdEx]
  1608. iNdEx++
  1609. m.PkId |= (int64(b) & 0x7F) << shift
  1610. if b < 0x80 {
  1611. break
  1612. }
  1613. }
  1614. case 3:
  1615. if wireType != 0 {
  1616. return fmt.Errorf("proto: wrong wireType = %d for field RoomId", wireType)
  1617. }
  1618. m.RoomId = 0
  1619. for shift := uint(0); ; shift += 7 {
  1620. if shift >= 64 {
  1621. return ErrIntOverflowPk
  1622. }
  1623. if iNdEx >= l {
  1624. return io.ErrUnexpectedEOF
  1625. }
  1626. b := dAtA[iNdEx]
  1627. iNdEx++
  1628. m.RoomId |= (int64(b) & 0x7F) << shift
  1629. if b < 0x80 {
  1630. break
  1631. }
  1632. }
  1633. case 4:
  1634. if wireType != 0 {
  1635. return fmt.Errorf("proto: wrong wireType = %d for field InviteId", wireType)
  1636. }
  1637. m.InviteId = 0
  1638. for shift := uint(0); ; shift += 7 {
  1639. if shift >= 64 {
  1640. return ErrIntOverflowPk
  1641. }
  1642. if iNdEx >= l {
  1643. return io.ErrUnexpectedEOF
  1644. }
  1645. b := dAtA[iNdEx]
  1646. iNdEx++
  1647. m.InviteId |= (int64(b) & 0x7F) << shift
  1648. if b < 0x80 {
  1649. break
  1650. }
  1651. }
  1652. case 5:
  1653. if wireType != 2 {
  1654. return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
  1655. }
  1656. var stringLen uint64
  1657. for shift := uint(0); ; shift += 7 {
  1658. if shift >= 64 {
  1659. return ErrIntOverflowPk
  1660. }
  1661. if iNdEx >= l {
  1662. return io.ErrUnexpectedEOF
  1663. }
  1664. b := dAtA[iNdEx]
  1665. iNdEx++
  1666. stringLen |= (uint64(b) & 0x7F) << shift
  1667. if b < 0x80 {
  1668. break
  1669. }
  1670. }
  1671. intStringLen := int(stringLen)
  1672. if intStringLen < 0 {
  1673. return ErrInvalidLengthPk
  1674. }
  1675. postIndex := iNdEx + intStringLen
  1676. if postIndex > l {
  1677. return io.ErrUnexpectedEOF
  1678. }
  1679. m.Platform = string(dAtA[iNdEx:postIndex])
  1680. iNdEx = postIndex
  1681. default:
  1682. iNdEx = preIndex
  1683. skippy, err := skipPk(dAtA[iNdEx:])
  1684. if err != nil {
  1685. return err
  1686. }
  1687. if skippy < 0 {
  1688. return ErrInvalidLengthPk
  1689. }
  1690. if (iNdEx + skippy) > l {
  1691. return io.ErrUnexpectedEOF
  1692. }
  1693. iNdEx += skippy
  1694. }
  1695. }
  1696. if iNdEx > l {
  1697. return io.ErrUnexpectedEOF
  1698. }
  1699. return nil
  1700. }
  1701. func (m *PkGetPkStatusResp) Unmarshal(dAtA []byte) error {
  1702. l := len(dAtA)
  1703. iNdEx := 0
  1704. for iNdEx < l {
  1705. preIndex := iNdEx
  1706. var wire uint64
  1707. for shift := uint(0); ; shift += 7 {
  1708. if shift >= 64 {
  1709. return ErrIntOverflowPk
  1710. }
  1711. if iNdEx >= l {
  1712. return io.ErrUnexpectedEOF
  1713. }
  1714. b := dAtA[iNdEx]
  1715. iNdEx++
  1716. wire |= (uint64(b) & 0x7F) << shift
  1717. if b < 0x80 {
  1718. break
  1719. }
  1720. }
  1721. fieldNum := int32(wire >> 3)
  1722. wireType := int(wire & 0x7)
  1723. if wireType == 4 {
  1724. return fmt.Errorf("proto: PkGetPkStatusResp: wiretype end group for non-group")
  1725. }
  1726. if fieldNum <= 0 {
  1727. return fmt.Errorf("proto: PkGetPkStatusResp: illegal tag %d (wire type %d)", fieldNum, wire)
  1728. }
  1729. switch fieldNum {
  1730. case 1:
  1731. if wireType != 0 {
  1732. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  1733. }
  1734. m.Code = 0
  1735. for shift := uint(0); ; shift += 7 {
  1736. if shift >= 64 {
  1737. return ErrIntOverflowPk
  1738. }
  1739. if iNdEx >= l {
  1740. return io.ErrUnexpectedEOF
  1741. }
  1742. b := dAtA[iNdEx]
  1743. iNdEx++
  1744. m.Code |= (int64(b) & 0x7F) << shift
  1745. if b < 0x80 {
  1746. break
  1747. }
  1748. }
  1749. case 2:
  1750. if wireType != 2 {
  1751. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  1752. }
  1753. var stringLen uint64
  1754. for shift := uint(0); ; shift += 7 {
  1755. if shift >= 64 {
  1756. return ErrIntOverflowPk
  1757. }
  1758. if iNdEx >= l {
  1759. return io.ErrUnexpectedEOF
  1760. }
  1761. b := dAtA[iNdEx]
  1762. iNdEx++
  1763. stringLen |= (uint64(b) & 0x7F) << shift
  1764. if b < 0x80 {
  1765. break
  1766. }
  1767. }
  1768. intStringLen := int(stringLen)
  1769. if intStringLen < 0 {
  1770. return ErrInvalidLengthPk
  1771. }
  1772. postIndex := iNdEx + intStringLen
  1773. if postIndex > l {
  1774. return io.ErrUnexpectedEOF
  1775. }
  1776. m.Msg = string(dAtA[iNdEx:postIndex])
  1777. iNdEx = postIndex
  1778. case 3:
  1779. if wireType != 2 {
  1780. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  1781. }
  1782. var msglen int
  1783. for shift := uint(0); ; shift += 7 {
  1784. if shift >= 64 {
  1785. return ErrIntOverflowPk
  1786. }
  1787. if iNdEx >= l {
  1788. return io.ErrUnexpectedEOF
  1789. }
  1790. b := dAtA[iNdEx]
  1791. iNdEx++
  1792. msglen |= (int(b) & 0x7F) << shift
  1793. if b < 0x80 {
  1794. break
  1795. }
  1796. }
  1797. if msglen < 0 {
  1798. return ErrInvalidLengthPk
  1799. }
  1800. postIndex := iNdEx + msglen
  1801. if postIndex > l {
  1802. return io.ErrUnexpectedEOF
  1803. }
  1804. if m.Data == nil {
  1805. m.Data = &PkGetPkStatusResp_Data{}
  1806. }
  1807. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1808. return err
  1809. }
  1810. iNdEx = postIndex
  1811. default:
  1812. iNdEx = preIndex
  1813. skippy, err := skipPk(dAtA[iNdEx:])
  1814. if err != nil {
  1815. return err
  1816. }
  1817. if skippy < 0 {
  1818. return ErrInvalidLengthPk
  1819. }
  1820. if (iNdEx + skippy) > l {
  1821. return io.ErrUnexpectedEOF
  1822. }
  1823. iNdEx += skippy
  1824. }
  1825. }
  1826. if iNdEx > l {
  1827. return io.ErrUnexpectedEOF
  1828. }
  1829. return nil
  1830. }
  1831. func (m *PkGetPkStatusResp_Data) Unmarshal(dAtA []byte) error {
  1832. l := len(dAtA)
  1833. iNdEx := 0
  1834. for iNdEx < l {
  1835. preIndex := iNdEx
  1836. var wire uint64
  1837. for shift := uint(0); ; shift += 7 {
  1838. if shift >= 64 {
  1839. return ErrIntOverflowPk
  1840. }
  1841. if iNdEx >= l {
  1842. return io.ErrUnexpectedEOF
  1843. }
  1844. b := dAtA[iNdEx]
  1845. iNdEx++
  1846. wire |= (uint64(b) & 0x7F) << shift
  1847. if b < 0x80 {
  1848. break
  1849. }
  1850. }
  1851. fieldNum := int32(wire >> 3)
  1852. wireType := int(wire & 0x7)
  1853. if wireType == 4 {
  1854. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  1855. }
  1856. if fieldNum <= 0 {
  1857. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  1858. }
  1859. switch fieldNum {
  1860. case 1:
  1861. if wireType != 0 {
  1862. return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  1863. }
  1864. m.Timestamp = 0
  1865. for shift := uint(0); ; shift += 7 {
  1866. if shift >= 64 {
  1867. return ErrIntOverflowPk
  1868. }
  1869. if iNdEx >= l {
  1870. return io.ErrUnexpectedEOF
  1871. }
  1872. b := dAtA[iNdEx]
  1873. iNdEx++
  1874. m.Timestamp |= (int64(b) & 0x7F) << shift
  1875. if b < 0x80 {
  1876. break
  1877. }
  1878. }
  1879. case 2:
  1880. if wireType != 0 {
  1881. return fmt.Errorf("proto: wrong wireType = %d for field PkId", wireType)
  1882. }
  1883. m.PkId = 0
  1884. for shift := uint(0); ; shift += 7 {
  1885. if shift >= 64 {
  1886. return ErrIntOverflowPk
  1887. }
  1888. if iNdEx >= l {
  1889. return io.ErrUnexpectedEOF
  1890. }
  1891. b := dAtA[iNdEx]
  1892. iNdEx++
  1893. m.PkId |= (int64(b) & 0x7F) << shift
  1894. if b < 0x80 {
  1895. break
  1896. }
  1897. }
  1898. case 3:
  1899. if wireType != 0 {
  1900. return fmt.Errorf("proto: wrong wireType = %d for field PkStatus", wireType)
  1901. }
  1902. m.PkStatus = 0
  1903. for shift := uint(0); ; shift += 7 {
  1904. if shift >= 64 {
  1905. return ErrIntOverflowPk
  1906. }
  1907. if iNdEx >= l {
  1908. return io.ErrUnexpectedEOF
  1909. }
  1910. b := dAtA[iNdEx]
  1911. iNdEx++
  1912. m.PkStatus |= (int64(b) & 0x7F) << shift
  1913. if b < 0x80 {
  1914. break
  1915. }
  1916. }
  1917. case 4:
  1918. if wireType != 0 {
  1919. return fmt.Errorf("proto: wrong wireType = %d for field InviteId", wireType)
  1920. }
  1921. m.InviteId = 0
  1922. for shift := uint(0); ; shift += 7 {
  1923. if shift >= 64 {
  1924. return ErrIntOverflowPk
  1925. }
  1926. if iNdEx >= l {
  1927. return io.ErrUnexpectedEOF
  1928. }
  1929. b := dAtA[iNdEx]
  1930. iNdEx++
  1931. m.InviteId |= (int64(b) & 0x7F) << shift
  1932. if b < 0x80 {
  1933. break
  1934. }
  1935. }
  1936. case 5:
  1937. if wireType != 0 {
  1938. return fmt.Errorf("proto: wrong wireType = %d for field InviteStatus", wireType)
  1939. }
  1940. m.InviteStatus = 0
  1941. for shift := uint(0); ; shift += 7 {
  1942. if shift >= 64 {
  1943. return ErrIntOverflowPk
  1944. }
  1945. if iNdEx >= l {
  1946. return io.ErrUnexpectedEOF
  1947. }
  1948. b := dAtA[iNdEx]
  1949. iNdEx++
  1950. m.InviteStatus |= (int64(b) & 0x7F) << shift
  1951. if b < 0x80 {
  1952. break
  1953. }
  1954. }
  1955. default:
  1956. iNdEx = preIndex
  1957. skippy, err := skipPk(dAtA[iNdEx:])
  1958. if err != nil {
  1959. return err
  1960. }
  1961. if skippy < 0 {
  1962. return ErrInvalidLengthPk
  1963. }
  1964. if (iNdEx + skippy) > l {
  1965. return io.ErrUnexpectedEOF
  1966. }
  1967. iNdEx += skippy
  1968. }
  1969. }
  1970. if iNdEx > l {
  1971. return io.ErrUnexpectedEOF
  1972. }
  1973. return nil
  1974. }
  1975. func (m *PkGetPkIdsByRoomIdsReq) Unmarshal(dAtA []byte) error {
  1976. l := len(dAtA)
  1977. iNdEx := 0
  1978. for iNdEx < l {
  1979. preIndex := iNdEx
  1980. var wire uint64
  1981. for shift := uint(0); ; shift += 7 {
  1982. if shift >= 64 {
  1983. return ErrIntOverflowPk
  1984. }
  1985. if iNdEx >= l {
  1986. return io.ErrUnexpectedEOF
  1987. }
  1988. b := dAtA[iNdEx]
  1989. iNdEx++
  1990. wire |= (uint64(b) & 0x7F) << shift
  1991. if b < 0x80 {
  1992. break
  1993. }
  1994. }
  1995. fieldNum := int32(wire >> 3)
  1996. wireType := int(wire & 0x7)
  1997. if wireType == 4 {
  1998. return fmt.Errorf("proto: PkGetPkIdsByRoomIdsReq: wiretype end group for non-group")
  1999. }
  2000. if fieldNum <= 0 {
  2001. return fmt.Errorf("proto: PkGetPkIdsByRoomIdsReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2002. }
  2003. switch fieldNum {
  2004. case 1:
  2005. if wireType == 0 {
  2006. var v int64
  2007. for shift := uint(0); ; shift += 7 {
  2008. if shift >= 64 {
  2009. return ErrIntOverflowPk
  2010. }
  2011. if iNdEx >= l {
  2012. return io.ErrUnexpectedEOF
  2013. }
  2014. b := dAtA[iNdEx]
  2015. iNdEx++
  2016. v |= (int64(b) & 0x7F) << shift
  2017. if b < 0x80 {
  2018. break
  2019. }
  2020. }
  2021. m.RoomIds = append(m.RoomIds, v)
  2022. } else if wireType == 2 {
  2023. var packedLen int
  2024. for shift := uint(0); ; shift += 7 {
  2025. if shift >= 64 {
  2026. return ErrIntOverflowPk
  2027. }
  2028. if iNdEx >= l {
  2029. return io.ErrUnexpectedEOF
  2030. }
  2031. b := dAtA[iNdEx]
  2032. iNdEx++
  2033. packedLen |= (int(b) & 0x7F) << shift
  2034. if b < 0x80 {
  2035. break
  2036. }
  2037. }
  2038. if packedLen < 0 {
  2039. return ErrInvalidLengthPk
  2040. }
  2041. postIndex := iNdEx + packedLen
  2042. if postIndex > l {
  2043. return io.ErrUnexpectedEOF
  2044. }
  2045. var elementCount int
  2046. var count int
  2047. for _, integer := range dAtA {
  2048. if integer < 128 {
  2049. count++
  2050. }
  2051. }
  2052. elementCount = count
  2053. if elementCount != 0 && len(m.RoomIds) == 0 {
  2054. m.RoomIds = make([]int64, 0, elementCount)
  2055. }
  2056. for iNdEx < postIndex {
  2057. var v int64
  2058. for shift := uint(0); ; shift += 7 {
  2059. if shift >= 64 {
  2060. return ErrIntOverflowPk
  2061. }
  2062. if iNdEx >= l {
  2063. return io.ErrUnexpectedEOF
  2064. }
  2065. b := dAtA[iNdEx]
  2066. iNdEx++
  2067. v |= (int64(b) & 0x7F) << shift
  2068. if b < 0x80 {
  2069. break
  2070. }
  2071. }
  2072. m.RoomIds = append(m.RoomIds, v)
  2073. }
  2074. } else {
  2075. return fmt.Errorf("proto: wrong wireType = %d for field RoomIds", wireType)
  2076. }
  2077. case 2:
  2078. if wireType != 2 {
  2079. return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
  2080. }
  2081. var stringLen uint64
  2082. for shift := uint(0); ; shift += 7 {
  2083. if shift >= 64 {
  2084. return ErrIntOverflowPk
  2085. }
  2086. if iNdEx >= l {
  2087. return io.ErrUnexpectedEOF
  2088. }
  2089. b := dAtA[iNdEx]
  2090. iNdEx++
  2091. stringLen |= (uint64(b) & 0x7F) << shift
  2092. if b < 0x80 {
  2093. break
  2094. }
  2095. }
  2096. intStringLen := int(stringLen)
  2097. if intStringLen < 0 {
  2098. return ErrInvalidLengthPk
  2099. }
  2100. postIndex := iNdEx + intStringLen
  2101. if postIndex > l {
  2102. return io.ErrUnexpectedEOF
  2103. }
  2104. m.Platform = string(dAtA[iNdEx:postIndex])
  2105. iNdEx = postIndex
  2106. default:
  2107. iNdEx = preIndex
  2108. skippy, err := skipPk(dAtA[iNdEx:])
  2109. if err != nil {
  2110. return err
  2111. }
  2112. if skippy < 0 {
  2113. return ErrInvalidLengthPk
  2114. }
  2115. if (iNdEx + skippy) > l {
  2116. return io.ErrUnexpectedEOF
  2117. }
  2118. iNdEx += skippy
  2119. }
  2120. }
  2121. if iNdEx > l {
  2122. return io.ErrUnexpectedEOF
  2123. }
  2124. return nil
  2125. }
  2126. func (m *PkGetPkIdsByRoomIdsResp) Unmarshal(dAtA []byte) error {
  2127. l := len(dAtA)
  2128. iNdEx := 0
  2129. for iNdEx < l {
  2130. preIndex := iNdEx
  2131. var wire uint64
  2132. for shift := uint(0); ; shift += 7 {
  2133. if shift >= 64 {
  2134. return ErrIntOverflowPk
  2135. }
  2136. if iNdEx >= l {
  2137. return io.ErrUnexpectedEOF
  2138. }
  2139. b := dAtA[iNdEx]
  2140. iNdEx++
  2141. wire |= (uint64(b) & 0x7F) << shift
  2142. if b < 0x80 {
  2143. break
  2144. }
  2145. }
  2146. fieldNum := int32(wire >> 3)
  2147. wireType := int(wire & 0x7)
  2148. if wireType == 4 {
  2149. return fmt.Errorf("proto: PkGetPkIdsByRoomIdsResp: wiretype end group for non-group")
  2150. }
  2151. if fieldNum <= 0 {
  2152. return fmt.Errorf("proto: PkGetPkIdsByRoomIdsResp: illegal tag %d (wire type %d)", fieldNum, wire)
  2153. }
  2154. switch fieldNum {
  2155. case 1:
  2156. if wireType != 0 {
  2157. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  2158. }
  2159. m.Code = 0
  2160. for shift := uint(0); ; shift += 7 {
  2161. if shift >= 64 {
  2162. return ErrIntOverflowPk
  2163. }
  2164. if iNdEx >= l {
  2165. return io.ErrUnexpectedEOF
  2166. }
  2167. b := dAtA[iNdEx]
  2168. iNdEx++
  2169. m.Code |= (int64(b) & 0x7F) << shift
  2170. if b < 0x80 {
  2171. break
  2172. }
  2173. }
  2174. case 2:
  2175. if wireType != 2 {
  2176. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  2177. }
  2178. var stringLen uint64
  2179. for shift := uint(0); ; shift += 7 {
  2180. if shift >= 64 {
  2181. return ErrIntOverflowPk
  2182. }
  2183. if iNdEx >= l {
  2184. return io.ErrUnexpectedEOF
  2185. }
  2186. b := dAtA[iNdEx]
  2187. iNdEx++
  2188. stringLen |= (uint64(b) & 0x7F) << shift
  2189. if b < 0x80 {
  2190. break
  2191. }
  2192. }
  2193. intStringLen := int(stringLen)
  2194. if intStringLen < 0 {
  2195. return ErrInvalidLengthPk
  2196. }
  2197. postIndex := iNdEx + intStringLen
  2198. if postIndex > l {
  2199. return io.ErrUnexpectedEOF
  2200. }
  2201. m.Msg = string(dAtA[iNdEx:postIndex])
  2202. iNdEx = postIndex
  2203. case 3:
  2204. if wireType != 2 {
  2205. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  2206. }
  2207. var msglen int
  2208. for shift := uint(0); ; shift += 7 {
  2209. if shift >= 64 {
  2210. return ErrIntOverflowPk
  2211. }
  2212. if iNdEx >= l {
  2213. return io.ErrUnexpectedEOF
  2214. }
  2215. b := dAtA[iNdEx]
  2216. iNdEx++
  2217. msglen |= (int(b) & 0x7F) << shift
  2218. if b < 0x80 {
  2219. break
  2220. }
  2221. }
  2222. if msglen < 0 {
  2223. return ErrInvalidLengthPk
  2224. }
  2225. postIndex := iNdEx + msglen
  2226. if postIndex > l {
  2227. return io.ErrUnexpectedEOF
  2228. }
  2229. if m.Data == nil {
  2230. m.Data = make(map[string]int64)
  2231. }
  2232. var mapkey string
  2233. var mapvalue int64
  2234. for iNdEx < postIndex {
  2235. entryPreIndex := iNdEx
  2236. var wire uint64
  2237. for shift := uint(0); ; shift += 7 {
  2238. if shift >= 64 {
  2239. return ErrIntOverflowPk
  2240. }
  2241. if iNdEx >= l {
  2242. return io.ErrUnexpectedEOF
  2243. }
  2244. b := dAtA[iNdEx]
  2245. iNdEx++
  2246. wire |= (uint64(b) & 0x7F) << shift
  2247. if b < 0x80 {
  2248. break
  2249. }
  2250. }
  2251. fieldNum := int32(wire >> 3)
  2252. if fieldNum == 1 {
  2253. var stringLenmapkey uint64
  2254. for shift := uint(0); ; shift += 7 {
  2255. if shift >= 64 {
  2256. return ErrIntOverflowPk
  2257. }
  2258. if iNdEx >= l {
  2259. return io.ErrUnexpectedEOF
  2260. }
  2261. b := dAtA[iNdEx]
  2262. iNdEx++
  2263. stringLenmapkey |= (uint64(b) & 0x7F) << shift
  2264. if b < 0x80 {
  2265. break
  2266. }
  2267. }
  2268. intStringLenmapkey := int(stringLenmapkey)
  2269. if intStringLenmapkey < 0 {
  2270. return ErrInvalidLengthPk
  2271. }
  2272. postStringIndexmapkey := iNdEx + intStringLenmapkey
  2273. if postStringIndexmapkey > l {
  2274. return io.ErrUnexpectedEOF
  2275. }
  2276. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  2277. iNdEx = postStringIndexmapkey
  2278. } else if fieldNum == 2 {
  2279. for shift := uint(0); ; shift += 7 {
  2280. if shift >= 64 {
  2281. return ErrIntOverflowPk
  2282. }
  2283. if iNdEx >= l {
  2284. return io.ErrUnexpectedEOF
  2285. }
  2286. b := dAtA[iNdEx]
  2287. iNdEx++
  2288. mapvalue |= (int64(b) & 0x7F) << shift
  2289. if b < 0x80 {
  2290. break
  2291. }
  2292. }
  2293. } else {
  2294. iNdEx = entryPreIndex
  2295. skippy, err := skipPk(dAtA[iNdEx:])
  2296. if err != nil {
  2297. return err
  2298. }
  2299. if skippy < 0 {
  2300. return ErrInvalidLengthPk
  2301. }
  2302. if (iNdEx + skippy) > postIndex {
  2303. return io.ErrUnexpectedEOF
  2304. }
  2305. iNdEx += skippy
  2306. }
  2307. }
  2308. m.Data[mapkey] = mapvalue
  2309. iNdEx = postIndex
  2310. default:
  2311. iNdEx = preIndex
  2312. skippy, err := skipPk(dAtA[iNdEx:])
  2313. if err != nil {
  2314. return err
  2315. }
  2316. if skippy < 0 {
  2317. return ErrInvalidLengthPk
  2318. }
  2319. if (iNdEx + skippy) > l {
  2320. return io.ErrUnexpectedEOF
  2321. }
  2322. iNdEx += skippy
  2323. }
  2324. }
  2325. if iNdEx > l {
  2326. return io.ErrUnexpectedEOF
  2327. }
  2328. return nil
  2329. }
  2330. func skipPk(dAtA []byte) (n int, err error) {
  2331. l := len(dAtA)
  2332. iNdEx := 0
  2333. for iNdEx < l {
  2334. var wire uint64
  2335. for shift := uint(0); ; shift += 7 {
  2336. if shift >= 64 {
  2337. return 0, ErrIntOverflowPk
  2338. }
  2339. if iNdEx >= l {
  2340. return 0, io.ErrUnexpectedEOF
  2341. }
  2342. b := dAtA[iNdEx]
  2343. iNdEx++
  2344. wire |= (uint64(b) & 0x7F) << shift
  2345. if b < 0x80 {
  2346. break
  2347. }
  2348. }
  2349. wireType := int(wire & 0x7)
  2350. switch wireType {
  2351. case 0:
  2352. for shift := uint(0); ; shift += 7 {
  2353. if shift >= 64 {
  2354. return 0, ErrIntOverflowPk
  2355. }
  2356. if iNdEx >= l {
  2357. return 0, io.ErrUnexpectedEOF
  2358. }
  2359. iNdEx++
  2360. if dAtA[iNdEx-1] < 0x80 {
  2361. break
  2362. }
  2363. }
  2364. return iNdEx, nil
  2365. case 1:
  2366. iNdEx += 8
  2367. return iNdEx, nil
  2368. case 2:
  2369. var length int
  2370. for shift := uint(0); ; shift += 7 {
  2371. if shift >= 64 {
  2372. return 0, ErrIntOverflowPk
  2373. }
  2374. if iNdEx >= l {
  2375. return 0, io.ErrUnexpectedEOF
  2376. }
  2377. b := dAtA[iNdEx]
  2378. iNdEx++
  2379. length |= (int(b) & 0x7F) << shift
  2380. if b < 0x80 {
  2381. break
  2382. }
  2383. }
  2384. iNdEx += length
  2385. if length < 0 {
  2386. return 0, ErrInvalidLengthPk
  2387. }
  2388. return iNdEx, nil
  2389. case 3:
  2390. for {
  2391. var innerWire uint64
  2392. var start int = iNdEx
  2393. for shift := uint(0); ; shift += 7 {
  2394. if shift >= 64 {
  2395. return 0, ErrIntOverflowPk
  2396. }
  2397. if iNdEx >= l {
  2398. return 0, io.ErrUnexpectedEOF
  2399. }
  2400. b := dAtA[iNdEx]
  2401. iNdEx++
  2402. innerWire |= (uint64(b) & 0x7F) << shift
  2403. if b < 0x80 {
  2404. break
  2405. }
  2406. }
  2407. innerWireType := int(innerWire & 0x7)
  2408. if innerWireType == 4 {
  2409. break
  2410. }
  2411. next, err := skipPk(dAtA[start:])
  2412. if err != nil {
  2413. return 0, err
  2414. }
  2415. iNdEx = start + next
  2416. }
  2417. return iNdEx, nil
  2418. case 4:
  2419. return iNdEx, nil
  2420. case 5:
  2421. iNdEx += 4
  2422. return iNdEx, nil
  2423. default:
  2424. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2425. }
  2426. }
  2427. panic("unreachable")
  2428. }
  2429. var (
  2430. ErrInvalidLengthPk = fmt.Errorf("proto: negative length found during unmarshaling")
  2431. ErrIntOverflowPk = fmt.Errorf("proto: integer overflow")
  2432. )
  2433. func init() { proto.RegisterFile("v1/Pk.proto", fileDescriptor_Pk_73bf1d6a8022969f) }
  2434. var fileDescriptor_Pk_73bf1d6a8022969f = []byte{
  2435. // 711 bytes of a gzipped FileDescriptorProto
  2436. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x55, 0xcd, 0x6a, 0xdb, 0x40,
  2437. 0x10, 0x8e, 0x24, 0xdb, 0x92, 0xc6, 0x09, 0x24, 0x4b, 0x69, 0x54, 0x93, 0x48, 0xc1, 0x14, 0x62,
  2438. 0x52, 0xea, 0x90, 0x04, 0xda, 0xd2, 0x5e, 0x5a, 0xd3, 0x1f, 0x7c, 0x33, 0xdb, 0x9c, 0x7a, 0x31,
  2439. 0x8a, 0xa5, 0xd8, 0x42, 0x91, 0xb5, 0x91, 0xd6, 0x06, 0xbf, 0x45, 0x1f, 0xa1, 0x0f, 0x50, 0xfa,
  2440. 0x1c, 0x3d, 0x06, 0x7a, 0x29, 0xa5, 0x88, 0x12, 0xdf, 0x74, 0xe9, 0x2b, 0x14, 0xad, 0x56, 0x96,
  2441. 0xe5, 0x38, 0x2e, 0xa5, 0x94, 0x5e, 0xd6, 0x33, 0xdf, 0x8e, 0x66, 0x66, 0xbf, 0xf9, 0x76, 0x0d,
  2442. 0xd5, 0xf1, 0xd1, 0x61, 0xc7, 0x6d, 0x92, 0xc0, 0xa7, 0x3e, 0x2a, 0x9b, 0xe3, 0xe6, 0xf8, 0xa8,
  2443. 0xf6, 0xb0, 0xef, 0xd0, 0xc1, 0xe8, 0xac, 0xd9, 0xf3, 0xbd, 0xc3, 0xbe, 0xdf, 0xf7, 0x0f, 0xd9,
  2444. 0xee, 0xd9, 0xe8, 0x9c, 0x79, 0xcc, 0x61, 0x56, 0xfa, 0x55, 0xfd, 0x93, 0x00, 0x9b, 0x1d, 0xf7,
  2445. 0x8d, 0x4d, 0xdb, 0xc3, 0x73, 0xbf, 0x35, 0x69, 0x5b, 0xd8, 0xbe, 0x44, 0x07, 0xa0, 0x3a, 0x61,
  2446. 0xd7, 0x1c, 0xf6, 0x06, 0x7e, 0xa0, 0x09, 0x7b, 0x42, 0x43, 0x6a, 0x6d, 0xc4, 0x91, 0x91, 0x83,
  2447. 0x58, 0x71, 0xc2, 0x17, 0xcc, 0x42, 0x3a, 0x94, 0x89, 0xdb, 0x75, 0x2c, 0x4d, 0x64, 0x71, 0x6a,
  2448. 0x1c, 0x19, 0x29, 0x80, 0x4b, 0xc4, 0x6d, 0x5b, 0xe8, 0x3e, 0xc8, 0x81, 0xef, 0x7b, 0x49, 0x84,
  2449. 0xc4, 0x22, 0xaa, 0x71, 0x64, 0x64, 0x10, 0xae, 0x24, 0x46, 0xdb, 0x42, 0x0d, 0x50, 0xc8, 0x85,
  2450. 0x49, 0xcf, 0xfd, 0xc0, 0xd3, 0x4a, 0x7b, 0x42, 0x43, 0x6d, 0xad, 0xc7, 0x91, 0x31, 0xc3, 0xf0,
  2451. 0xcc, 0xaa, 0x7f, 0x94, 0x60, 0x6b, 0xa1, 0xe1, 0x90, 0xa0, 0x1d, 0x28, 0xf5, 0x7c, 0xcb, 0xe6,
  2452. 0xcd, 0x2a, 0x71, 0x64, 0x30, 0x1f, 0xb3, 0x15, 0xdd, 0x03, 0xc9, 0x0b, 0xfb, 0xac, 0x43, 0xb5,
  2453. 0x25, 0xc7, 0x91, 0x91, 0xb8, 0x38, 0x59, 0xd0, 0x33, 0x28, 0x59, 0x26, 0x35, 0x59, 0x6f, 0xd5,
  2454. 0xe3, 0xdd, 0x26, 0x23, 0xb1, 0x79, 0xa3, 0x40, 0xf3, 0xa5, 0x49, 0xcd, 0x34, 0x6f, 0x12, 0x8e,
  2455. 0xd9, 0x5a, 0xfb, 0x20, 0x42, 0x29, 0xd9, 0xc8, 0x49, 0x10, 0x6e, 0x25, 0xc1, 0x19, 0x3a, 0x34,
  2456. 0xa7, 0x89, 0x91, 0xc0, 0x21, 0x5c, 0x49, 0x8c, 0xb6, 0x85, 0xf6, 0x41, 0xf1, 0x4c, 0xda, 0x1b,
  2457. 0xe4, 0x5c, 0x31, 0x12, 0x32, 0x0c, 0xcb, 0xcc, 0x4a, 0x03, 0x49, 0x60, 0x77, 0xa9, 0xe3, 0xd9,
  2458. 0x8c, 0x2d, 0x1e, 0x98, 0x61, 0x58, 0x26, 0x81, 0x7d, 0xea, 0x78, 0x36, 0xaa, 0x43, 0x25, 0xa4,
  2459. 0x26, 0x1d, 0x85, 0x5a, 0x99, 0x85, 0x41, 0x1c, 0x19, 0x1c, 0xc1, 0xfc, 0x97, 0x25, 0x73, 0xbb,
  2460. 0xd4, 0x27, 0x4e, 0x4f, 0xab, 0xcc, 0x51, 0xcf, 0x31, 0x2c, 0x13, 0xf7, 0x34, 0x31, 0xd0, 0x09,
  2461. 0xac, 0x93, 0xd1, 0xd0, 0x09, 0x07, 0x3c, 0x58, 0x66, 0xc1, 0x9b, 0x71, 0x64, 0x14, 0x70, 0x5c,
  2462. 0x4d, 0x3d, 0xf6, 0x51, 0xfd, 0x5b, 0xa6, 0xaf, 0x8e, 0xfb, 0x36, 0xad, 0xfb, 0x5f, 0xf4, 0x95,
  2463. 0x54, 0x1c, 0x8e, 0x1d, 0x6a, 0x27, 0x71, 0xa5, 0xb9, 0x8a, 0x19, 0x88, 0x95, 0xd4, 0x5c, 0xd0,
  2464. 0x62, 0x79, 0xa5, 0x16, 0x7f, 0x8a, 0x5c, 0x8b, 0xf9, 0xe1, 0xfe, 0x91, 0x16, 0xe7, 0x0b, 0x2c,
  2465. 0xd7, 0xe2, 0x54, 0xe0, 0x5a, 0x7c, 0x00, 0x6a, 0x22, 0x82, 0x90, 0x9a, 0x1e, 0x99, 0x27, 0x77,
  2466. 0x06, 0xe2, 0xdc, 0xfc, 0x2d, 0xbb, 0x07, 0xa0, 0x12, 0xb7, 0xcb, 0x35, 0x24, 0xe5, 0xc9, 0x66,
  2467. 0x20, 0x56, 0x08, 0x6f, 0xed, 0x8f, 0x38, 0x7e, 0x04, 0x1b, 0x1c, 0x2e, 0xe8, 0x73, 0x2b, 0x8e,
  2468. 0x8c, 0xe2, 0x06, 0x5e, 0x4f, 0xdd, 0xb4, 0x46, 0xdd, 0x85, 0xbb, 0x9c, 0x8f, 0xb6, 0x15, 0xb6,
  2469. 0x26, 0x98, 0x4d, 0x97, 0x69, 0x6a, 0x1f, 0x14, 0x3e, 0xf4, 0x50, 0x13, 0xf6, 0xa4, 0xec, 0x4e,
  2470. 0x64, 0x18, 0x96, 0x53, 0x25, 0x84, 0x85, 0xf1, 0x8a, 0x2b, 0xc7, 0xfb, 0x45, 0x80, 0xed, 0xa5,
  2471. 0xd5, 0xfe, 0x66, 0xc8, 0xaf, 0x67, 0x43, 0x96, 0x1a, 0xd5, 0xe3, 0x46, 0x71, 0xc8, 0x8b, 0x65,
  2472. 0xd8, 0xa8, 0x5f, 0x0d, 0x69, 0x30, 0xb9, 0x31, 0xef, 0xc7, 0xa0, 0xce, 0x36, 0xd1, 0x26, 0x48,
  2473. 0xae, 0x3d, 0x61, 0xcd, 0xa8, 0x38, 0x31, 0xd1, 0x1d, 0x28, 0x8f, 0xcd, 0x8b, 0x91, 0x9d, 0x0e,
  2474. 0x16, 0xa7, 0xce, 0x53, 0xf1, 0x89, 0x70, 0xfc, 0x5d, 0x00, 0xb1, 0xe3, 0xa2, 0xe7, 0x50, 0xed,
  2475. 0xe7, 0x6f, 0x1c, 0xda, 0x5e, 0xfe, 0xf2, 0x5d, 0xd6, 0xb4, 0xdb, 0x9e, 0x44, 0x9e, 0x21, 0x53,
  2476. 0x66, 0x31, 0xc3, 0xdc, 0x6d, 0x2f, 0x66, 0x28, 0xdc, 0x14, 0x0c, 0x5b, 0xfd, 0xc5, 0x63, 0xa3,
  2477. 0xdd, 0x55, 0x94, 0x5c, 0xd6, 0xf4, 0xd5, 0x8c, 0xb5, 0x76, 0x3e, 0x5f, 0xeb, 0xc2, 0xd5, 0xb5,
  2478. 0x2e, 0xfc, 0xb8, 0xd6, 0x85, 0xf7, 0x53, 0x7d, 0xed, 0x6a, 0xaa, 0xaf, 0x7d, 0x9d, 0xea, 0x6b,
  2479. 0xef, 0xc4, 0xf1, 0xd1, 0x59, 0x85, 0xfd, 0xeb, 0x9d, 0xfc, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x16,
  2480. 0xca, 0x77, 0x00, 0x3a, 0x07, 0x00, 0x00,
  2481. }