api.pb.go 86 KB

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