api.pb.go 40 KB

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