quality.pb.go 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/job/bbq/recall/proto/quality/quality.proto
  3. package quality
  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 encoding_binary "encoding/binary"
  9. import strings "strings"
  10. import reflect "reflect"
  11. import io "io"
  12. // Reference imports to suppress errors if they are not otherwise used.
  13. var _ = proto.Marshal
  14. var _ = fmt.Errorf
  15. var _ = math.Inf
  16. // This is a compile-time assertion to ensure that this generated file
  17. // is compatible with the proto package it is being compiled against.
  18. // A compilation error at this line likely means your copy of the
  19. // proto package needs to be updated.
  20. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  21. type VideoQuality struct {
  22. Svid string `protobuf:"bytes,1,opt,name=svid,proto3" json:"svid,omitempty"`
  23. QualityInfoM *Quality `protobuf:"bytes,2,opt,name=quality_info_m,json=qualityInfoM" json:"quality_info_m,omitempty"`
  24. QualityInfoW *Quality `protobuf:"bytes,3,opt,name=quality_info_w,json=qualityInfoW" json:"quality_info_w,omitempty"`
  25. QualityInfoH *Quality `protobuf:"bytes,4,opt,name=quality_info_h,json=qualityInfoH" json:"quality_info_h,omitempty"`
  26. QualityInfoMsM *Quality `protobuf:"bytes,5,opt,name=quality_info_ms_m,json=qualityInfoMsM" json:"quality_info_ms_m,omitempty"`
  27. QualityInfoMsW *Quality `protobuf:"bytes,6,opt,name=quality_info_ms_w,json=qualityInfoMsW" json:"quality_info_ms_w,omitempty"`
  28. QualityInfoMsH *Quality `protobuf:"bytes,7,opt,name=quality_info_ms_h,json=qualityInfoMsH" json:"quality_info_ms_h,omitempty"`
  29. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  30. XXX_unrecognized []byte `json:"-"`
  31. XXX_sizecache int32 `json:"-"`
  32. }
  33. func (m *VideoQuality) Reset() { *m = VideoQuality{} }
  34. func (*VideoQuality) ProtoMessage() {}
  35. func (*VideoQuality) Descriptor() ([]byte, []int) {
  36. return fileDescriptor_quality_e12e2285f710c9e7, []int{0}
  37. }
  38. func (m *VideoQuality) XXX_Unmarshal(b []byte) error {
  39. return m.Unmarshal(b)
  40. }
  41. func (m *VideoQuality) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  42. if deterministic {
  43. return xxx_messageInfo_VideoQuality.Marshal(b, m, deterministic)
  44. } else {
  45. b = b[:cap(b)]
  46. n, err := m.MarshalTo(b)
  47. if err != nil {
  48. return nil, err
  49. }
  50. return b[:n], nil
  51. }
  52. }
  53. func (dst *VideoQuality) XXX_Merge(src proto.Message) {
  54. xxx_messageInfo_VideoQuality.Merge(dst, src)
  55. }
  56. func (m *VideoQuality) XXX_Size() int {
  57. return m.Size()
  58. }
  59. func (m *VideoQuality) XXX_DiscardUnknown() {
  60. xxx_messageInfo_VideoQuality.DiscardUnknown(m)
  61. }
  62. var xxx_messageInfo_VideoQuality proto.InternalMessageInfo
  63. // 质量
  64. type Quality struct {
  65. PubTime uint64 `protobuf:"varint,1,opt,name=pub_time,json=pubTime,proto3" json:"pub_time,omitempty"`
  66. PlayCnt uint32 `protobuf:"varint,2,opt,name=play_cnt,json=playCnt,proto3" json:"play_cnt,omitempty"`
  67. AbsolutePlayCnt uint32 `protobuf:"varint,3,opt,name=absolute_play_cnt,json=absolutePlayCnt,proto3" json:"absolute_play_cnt,omitempty"`
  68. FavCnt uint32 `protobuf:"varint,4,opt,name=fav_cnt,json=favCnt,proto3" json:"fav_cnt,omitempty"`
  69. LikeCnt uint32 `protobuf:"varint,5,opt,name=like_cnt,json=likeCnt,proto3" json:"like_cnt,omitempty"`
  70. CoinCnt uint32 `protobuf:"varint,6,opt,name=coin_cnt,json=coinCnt,proto3" json:"coin_cnt,omitempty"`
  71. ShareCnt uint32 `protobuf:"varint,7,opt,name=share_cnt,json=shareCnt,proto3" json:"share_cnt,omitempty"`
  72. DanmuCnt uint32 `protobuf:"varint,8,opt,name=danmu_cnt,json=danmuCnt,proto3" json:"danmu_cnt,omitempty"`
  73. NegEvalCnt uint32 `protobuf:"varint,9,opt,name=neg_eval_cnt,json=negEvalCnt,proto3" json:"neg_eval_cnt,omitempty"`
  74. CommentAddCnt uint32 `protobuf:"varint,10,opt,name=comment_add_cnt,json=commentAddCnt,proto3" json:"comment_add_cnt,omitempty"`
  75. CommentLikeCnt uint32 `protobuf:"varint,11,opt,name=comment_like_cnt,json=commentLikeCnt,proto3" json:"comment_like_cnt,omitempty"`
  76. CommentReportCnt uint32 `protobuf:"varint,12,opt,name=comment_report_cnt,json=commentReportCnt,proto3" json:"comment_report_cnt,omitempty"`
  77. AbsolutePlayRate float64 `protobuf:"fixed64,13,opt,name=absolute_play_rate,json=absolutePlayRate,proto3" json:"absolute_play_rate,omitempty"`
  78. LikeRate float64 `protobuf:"fixed64,14,opt,name=like_rate,json=likeRate,proto3" json:"like_rate,omitempty"`
  79. ShareRate float64 `protobuf:"fixed64,15,opt,name=share_rate,json=shareRate,proto3" json:"share_rate,omitempty"`
  80. ReplyRate float64 `protobuf:"fixed64,16,opt,name=reply_rate,json=replyRate,proto3" json:"reply_rate,omitempty"`
  81. ImpCnt uint32 `protobuf:"varint,17,opt,name=imp_cnt,json=impCnt,proto3" json:"imp_cnt,omitempty"`
  82. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  83. XXX_unrecognized []byte `json:"-"`
  84. XXX_sizecache int32 `json:"-"`
  85. }
  86. func (m *Quality) Reset() { *m = Quality{} }
  87. func (*Quality) ProtoMessage() {}
  88. func (*Quality) Descriptor() ([]byte, []int) {
  89. return fileDescriptor_quality_e12e2285f710c9e7, []int{1}
  90. }
  91. func (m *Quality) XXX_Unmarshal(b []byte) error {
  92. return m.Unmarshal(b)
  93. }
  94. func (m *Quality) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  95. if deterministic {
  96. return xxx_messageInfo_Quality.Marshal(b, m, deterministic)
  97. } else {
  98. b = b[:cap(b)]
  99. n, err := m.MarshalTo(b)
  100. if err != nil {
  101. return nil, err
  102. }
  103. return b[:n], nil
  104. }
  105. }
  106. func (dst *Quality) XXX_Merge(src proto.Message) {
  107. xxx_messageInfo_Quality.Merge(dst, src)
  108. }
  109. func (m *Quality) XXX_Size() int {
  110. return m.Size()
  111. }
  112. func (m *Quality) XXX_DiscardUnknown() {
  113. xxx_messageInfo_Quality.DiscardUnknown(m)
  114. }
  115. var xxx_messageInfo_Quality proto.InternalMessageInfo
  116. func init() {
  117. proto.RegisterType((*VideoQuality)(nil), "VideoQuality")
  118. proto.RegisterType((*Quality)(nil), "Quality")
  119. }
  120. func (m *VideoQuality) Marshal() (dAtA []byte, err error) {
  121. size := m.Size()
  122. dAtA = make([]byte, size)
  123. n, err := m.MarshalTo(dAtA)
  124. if err != nil {
  125. return nil, err
  126. }
  127. return dAtA[:n], nil
  128. }
  129. func (m *VideoQuality) MarshalTo(dAtA []byte) (int, error) {
  130. var i int
  131. _ = i
  132. var l int
  133. _ = l
  134. if len(m.Svid) > 0 {
  135. dAtA[i] = 0xa
  136. i++
  137. i = encodeVarintQuality(dAtA, i, uint64(len(m.Svid)))
  138. i += copy(dAtA[i:], m.Svid)
  139. }
  140. if m.QualityInfoM != nil {
  141. dAtA[i] = 0x12
  142. i++
  143. i = encodeVarintQuality(dAtA, i, uint64(m.QualityInfoM.Size()))
  144. n1, err := m.QualityInfoM.MarshalTo(dAtA[i:])
  145. if err != nil {
  146. return 0, err
  147. }
  148. i += n1
  149. }
  150. if m.QualityInfoW != nil {
  151. dAtA[i] = 0x1a
  152. i++
  153. i = encodeVarintQuality(dAtA, i, uint64(m.QualityInfoW.Size()))
  154. n2, err := m.QualityInfoW.MarshalTo(dAtA[i:])
  155. if err != nil {
  156. return 0, err
  157. }
  158. i += n2
  159. }
  160. if m.QualityInfoH != nil {
  161. dAtA[i] = 0x22
  162. i++
  163. i = encodeVarintQuality(dAtA, i, uint64(m.QualityInfoH.Size()))
  164. n3, err := m.QualityInfoH.MarshalTo(dAtA[i:])
  165. if err != nil {
  166. return 0, err
  167. }
  168. i += n3
  169. }
  170. if m.QualityInfoMsM != nil {
  171. dAtA[i] = 0x2a
  172. i++
  173. i = encodeVarintQuality(dAtA, i, uint64(m.QualityInfoMsM.Size()))
  174. n4, err := m.QualityInfoMsM.MarshalTo(dAtA[i:])
  175. if err != nil {
  176. return 0, err
  177. }
  178. i += n4
  179. }
  180. if m.QualityInfoMsW != nil {
  181. dAtA[i] = 0x32
  182. i++
  183. i = encodeVarintQuality(dAtA, i, uint64(m.QualityInfoMsW.Size()))
  184. n5, err := m.QualityInfoMsW.MarshalTo(dAtA[i:])
  185. if err != nil {
  186. return 0, err
  187. }
  188. i += n5
  189. }
  190. if m.QualityInfoMsH != nil {
  191. dAtA[i] = 0x3a
  192. i++
  193. i = encodeVarintQuality(dAtA, i, uint64(m.QualityInfoMsH.Size()))
  194. n6, err := m.QualityInfoMsH.MarshalTo(dAtA[i:])
  195. if err != nil {
  196. return 0, err
  197. }
  198. i += n6
  199. }
  200. if m.XXX_unrecognized != nil {
  201. i += copy(dAtA[i:], m.XXX_unrecognized)
  202. }
  203. return i, nil
  204. }
  205. func (m *Quality) Marshal() (dAtA []byte, err error) {
  206. size := m.Size()
  207. dAtA = make([]byte, size)
  208. n, err := m.MarshalTo(dAtA)
  209. if err != nil {
  210. return nil, err
  211. }
  212. return dAtA[:n], nil
  213. }
  214. func (m *Quality) MarshalTo(dAtA []byte) (int, error) {
  215. var i int
  216. _ = i
  217. var l int
  218. _ = l
  219. if m.PubTime != 0 {
  220. dAtA[i] = 0x8
  221. i++
  222. i = encodeVarintQuality(dAtA, i, uint64(m.PubTime))
  223. }
  224. if m.PlayCnt != 0 {
  225. dAtA[i] = 0x10
  226. i++
  227. i = encodeVarintQuality(dAtA, i, uint64(m.PlayCnt))
  228. }
  229. if m.AbsolutePlayCnt != 0 {
  230. dAtA[i] = 0x18
  231. i++
  232. i = encodeVarintQuality(dAtA, i, uint64(m.AbsolutePlayCnt))
  233. }
  234. if m.FavCnt != 0 {
  235. dAtA[i] = 0x20
  236. i++
  237. i = encodeVarintQuality(dAtA, i, uint64(m.FavCnt))
  238. }
  239. if m.LikeCnt != 0 {
  240. dAtA[i] = 0x28
  241. i++
  242. i = encodeVarintQuality(dAtA, i, uint64(m.LikeCnt))
  243. }
  244. if m.CoinCnt != 0 {
  245. dAtA[i] = 0x30
  246. i++
  247. i = encodeVarintQuality(dAtA, i, uint64(m.CoinCnt))
  248. }
  249. if m.ShareCnt != 0 {
  250. dAtA[i] = 0x38
  251. i++
  252. i = encodeVarintQuality(dAtA, i, uint64(m.ShareCnt))
  253. }
  254. if m.DanmuCnt != 0 {
  255. dAtA[i] = 0x40
  256. i++
  257. i = encodeVarintQuality(dAtA, i, uint64(m.DanmuCnt))
  258. }
  259. if m.NegEvalCnt != 0 {
  260. dAtA[i] = 0x48
  261. i++
  262. i = encodeVarintQuality(dAtA, i, uint64(m.NegEvalCnt))
  263. }
  264. if m.CommentAddCnt != 0 {
  265. dAtA[i] = 0x50
  266. i++
  267. i = encodeVarintQuality(dAtA, i, uint64(m.CommentAddCnt))
  268. }
  269. if m.CommentLikeCnt != 0 {
  270. dAtA[i] = 0x58
  271. i++
  272. i = encodeVarintQuality(dAtA, i, uint64(m.CommentLikeCnt))
  273. }
  274. if m.CommentReportCnt != 0 {
  275. dAtA[i] = 0x60
  276. i++
  277. i = encodeVarintQuality(dAtA, i, uint64(m.CommentReportCnt))
  278. }
  279. if m.AbsolutePlayRate != 0 {
  280. dAtA[i] = 0x69
  281. i++
  282. encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.AbsolutePlayRate))))
  283. i += 8
  284. }
  285. if m.LikeRate != 0 {
  286. dAtA[i] = 0x71
  287. i++
  288. encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.LikeRate))))
  289. i += 8
  290. }
  291. if m.ShareRate != 0 {
  292. dAtA[i] = 0x79
  293. i++
  294. encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ShareRate))))
  295. i += 8
  296. }
  297. if m.ReplyRate != 0 {
  298. dAtA[i] = 0x81
  299. i++
  300. dAtA[i] = 0x1
  301. i++
  302. encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ReplyRate))))
  303. i += 8
  304. }
  305. if m.ImpCnt != 0 {
  306. dAtA[i] = 0x88
  307. i++
  308. dAtA[i] = 0x1
  309. i++
  310. i = encodeVarintQuality(dAtA, i, uint64(m.ImpCnt))
  311. }
  312. if m.XXX_unrecognized != nil {
  313. i += copy(dAtA[i:], m.XXX_unrecognized)
  314. }
  315. return i, nil
  316. }
  317. func encodeVarintQuality(dAtA []byte, offset int, v uint64) int {
  318. for v >= 1<<7 {
  319. dAtA[offset] = uint8(v&0x7f | 0x80)
  320. v >>= 7
  321. offset++
  322. }
  323. dAtA[offset] = uint8(v)
  324. return offset + 1
  325. }
  326. func (m *VideoQuality) Size() (n int) {
  327. if m == nil {
  328. return 0
  329. }
  330. var l int
  331. _ = l
  332. l = len(m.Svid)
  333. if l > 0 {
  334. n += 1 + l + sovQuality(uint64(l))
  335. }
  336. if m.QualityInfoM != nil {
  337. l = m.QualityInfoM.Size()
  338. n += 1 + l + sovQuality(uint64(l))
  339. }
  340. if m.QualityInfoW != nil {
  341. l = m.QualityInfoW.Size()
  342. n += 1 + l + sovQuality(uint64(l))
  343. }
  344. if m.QualityInfoH != nil {
  345. l = m.QualityInfoH.Size()
  346. n += 1 + l + sovQuality(uint64(l))
  347. }
  348. if m.QualityInfoMsM != nil {
  349. l = m.QualityInfoMsM.Size()
  350. n += 1 + l + sovQuality(uint64(l))
  351. }
  352. if m.QualityInfoMsW != nil {
  353. l = m.QualityInfoMsW.Size()
  354. n += 1 + l + sovQuality(uint64(l))
  355. }
  356. if m.QualityInfoMsH != nil {
  357. l = m.QualityInfoMsH.Size()
  358. n += 1 + l + sovQuality(uint64(l))
  359. }
  360. if m.XXX_unrecognized != nil {
  361. n += len(m.XXX_unrecognized)
  362. }
  363. return n
  364. }
  365. func (m *Quality) Size() (n int) {
  366. if m == nil {
  367. return 0
  368. }
  369. var l int
  370. _ = l
  371. if m.PubTime != 0 {
  372. n += 1 + sovQuality(uint64(m.PubTime))
  373. }
  374. if m.PlayCnt != 0 {
  375. n += 1 + sovQuality(uint64(m.PlayCnt))
  376. }
  377. if m.AbsolutePlayCnt != 0 {
  378. n += 1 + sovQuality(uint64(m.AbsolutePlayCnt))
  379. }
  380. if m.FavCnt != 0 {
  381. n += 1 + sovQuality(uint64(m.FavCnt))
  382. }
  383. if m.LikeCnt != 0 {
  384. n += 1 + sovQuality(uint64(m.LikeCnt))
  385. }
  386. if m.CoinCnt != 0 {
  387. n += 1 + sovQuality(uint64(m.CoinCnt))
  388. }
  389. if m.ShareCnt != 0 {
  390. n += 1 + sovQuality(uint64(m.ShareCnt))
  391. }
  392. if m.DanmuCnt != 0 {
  393. n += 1 + sovQuality(uint64(m.DanmuCnt))
  394. }
  395. if m.NegEvalCnt != 0 {
  396. n += 1 + sovQuality(uint64(m.NegEvalCnt))
  397. }
  398. if m.CommentAddCnt != 0 {
  399. n += 1 + sovQuality(uint64(m.CommentAddCnt))
  400. }
  401. if m.CommentLikeCnt != 0 {
  402. n += 1 + sovQuality(uint64(m.CommentLikeCnt))
  403. }
  404. if m.CommentReportCnt != 0 {
  405. n += 1 + sovQuality(uint64(m.CommentReportCnt))
  406. }
  407. if m.AbsolutePlayRate != 0 {
  408. n += 9
  409. }
  410. if m.LikeRate != 0 {
  411. n += 9
  412. }
  413. if m.ShareRate != 0 {
  414. n += 9
  415. }
  416. if m.ReplyRate != 0 {
  417. n += 10
  418. }
  419. if m.ImpCnt != 0 {
  420. n += 2 + sovQuality(uint64(m.ImpCnt))
  421. }
  422. if m.XXX_unrecognized != nil {
  423. n += len(m.XXX_unrecognized)
  424. }
  425. return n
  426. }
  427. func sovQuality(x uint64) (n int) {
  428. for {
  429. n++
  430. x >>= 7
  431. if x == 0 {
  432. break
  433. }
  434. }
  435. return n
  436. }
  437. func sozQuality(x uint64) (n int) {
  438. return sovQuality(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  439. }
  440. func (this *VideoQuality) String() string {
  441. if this == nil {
  442. return "nil"
  443. }
  444. s := strings.Join([]string{`&VideoQuality{`,
  445. `Svid:` + fmt.Sprintf("%v", this.Svid) + `,`,
  446. `QualityInfoM:` + strings.Replace(fmt.Sprintf("%v", this.QualityInfoM), "Quality", "Quality", 1) + `,`,
  447. `QualityInfoW:` + strings.Replace(fmt.Sprintf("%v", this.QualityInfoW), "Quality", "Quality", 1) + `,`,
  448. `QualityInfoH:` + strings.Replace(fmt.Sprintf("%v", this.QualityInfoH), "Quality", "Quality", 1) + `,`,
  449. `QualityInfoMsM:` + strings.Replace(fmt.Sprintf("%v", this.QualityInfoMsM), "Quality", "Quality", 1) + `,`,
  450. `QualityInfoMsW:` + strings.Replace(fmt.Sprintf("%v", this.QualityInfoMsW), "Quality", "Quality", 1) + `,`,
  451. `QualityInfoMsH:` + strings.Replace(fmt.Sprintf("%v", this.QualityInfoMsH), "Quality", "Quality", 1) + `,`,
  452. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  453. `}`,
  454. }, "")
  455. return s
  456. }
  457. func (this *Quality) String() string {
  458. if this == nil {
  459. return "nil"
  460. }
  461. s := strings.Join([]string{`&Quality{`,
  462. `PubTime:` + fmt.Sprintf("%v", this.PubTime) + `,`,
  463. `PlayCnt:` + fmt.Sprintf("%v", this.PlayCnt) + `,`,
  464. `AbsolutePlayCnt:` + fmt.Sprintf("%v", this.AbsolutePlayCnt) + `,`,
  465. `FavCnt:` + fmt.Sprintf("%v", this.FavCnt) + `,`,
  466. `LikeCnt:` + fmt.Sprintf("%v", this.LikeCnt) + `,`,
  467. `CoinCnt:` + fmt.Sprintf("%v", this.CoinCnt) + `,`,
  468. `ShareCnt:` + fmt.Sprintf("%v", this.ShareCnt) + `,`,
  469. `DanmuCnt:` + fmt.Sprintf("%v", this.DanmuCnt) + `,`,
  470. `NegEvalCnt:` + fmt.Sprintf("%v", this.NegEvalCnt) + `,`,
  471. `CommentAddCnt:` + fmt.Sprintf("%v", this.CommentAddCnt) + `,`,
  472. `CommentLikeCnt:` + fmt.Sprintf("%v", this.CommentLikeCnt) + `,`,
  473. `CommentReportCnt:` + fmt.Sprintf("%v", this.CommentReportCnt) + `,`,
  474. `AbsolutePlayRate:` + fmt.Sprintf("%v", this.AbsolutePlayRate) + `,`,
  475. `LikeRate:` + fmt.Sprintf("%v", this.LikeRate) + `,`,
  476. `ShareRate:` + fmt.Sprintf("%v", this.ShareRate) + `,`,
  477. `ReplyRate:` + fmt.Sprintf("%v", this.ReplyRate) + `,`,
  478. `ImpCnt:` + fmt.Sprintf("%v", this.ImpCnt) + `,`,
  479. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  480. `}`,
  481. }, "")
  482. return s
  483. }
  484. func valueToStringQuality(v interface{}) string {
  485. rv := reflect.ValueOf(v)
  486. if rv.IsNil() {
  487. return "nil"
  488. }
  489. pv := reflect.Indirect(rv).Interface()
  490. return fmt.Sprintf("*%v", pv)
  491. }
  492. func (m *VideoQuality) Unmarshal(dAtA []byte) error {
  493. l := len(dAtA)
  494. iNdEx := 0
  495. for iNdEx < l {
  496. preIndex := iNdEx
  497. var wire uint64
  498. for shift := uint(0); ; shift += 7 {
  499. if shift >= 64 {
  500. return ErrIntOverflowQuality
  501. }
  502. if iNdEx >= l {
  503. return io.ErrUnexpectedEOF
  504. }
  505. b := dAtA[iNdEx]
  506. iNdEx++
  507. wire |= (uint64(b) & 0x7F) << shift
  508. if b < 0x80 {
  509. break
  510. }
  511. }
  512. fieldNum := int32(wire >> 3)
  513. wireType := int(wire & 0x7)
  514. if wireType == 4 {
  515. return fmt.Errorf("proto: VideoQuality: wiretype end group for non-group")
  516. }
  517. if fieldNum <= 0 {
  518. return fmt.Errorf("proto: VideoQuality: illegal tag %d (wire type %d)", fieldNum, wire)
  519. }
  520. switch fieldNum {
  521. case 1:
  522. if wireType != 2 {
  523. return fmt.Errorf("proto: wrong wireType = %d for field Svid", wireType)
  524. }
  525. var stringLen uint64
  526. for shift := uint(0); ; shift += 7 {
  527. if shift >= 64 {
  528. return ErrIntOverflowQuality
  529. }
  530. if iNdEx >= l {
  531. return io.ErrUnexpectedEOF
  532. }
  533. b := dAtA[iNdEx]
  534. iNdEx++
  535. stringLen |= (uint64(b) & 0x7F) << shift
  536. if b < 0x80 {
  537. break
  538. }
  539. }
  540. intStringLen := int(stringLen)
  541. if intStringLen < 0 {
  542. return ErrInvalidLengthQuality
  543. }
  544. postIndex := iNdEx + intStringLen
  545. if postIndex > l {
  546. return io.ErrUnexpectedEOF
  547. }
  548. m.Svid = string(dAtA[iNdEx:postIndex])
  549. iNdEx = postIndex
  550. case 2:
  551. if wireType != 2 {
  552. return fmt.Errorf("proto: wrong wireType = %d for field QualityInfoM", wireType)
  553. }
  554. var msglen int
  555. for shift := uint(0); ; shift += 7 {
  556. if shift >= 64 {
  557. return ErrIntOverflowQuality
  558. }
  559. if iNdEx >= l {
  560. return io.ErrUnexpectedEOF
  561. }
  562. b := dAtA[iNdEx]
  563. iNdEx++
  564. msglen |= (int(b) & 0x7F) << shift
  565. if b < 0x80 {
  566. break
  567. }
  568. }
  569. if msglen < 0 {
  570. return ErrInvalidLengthQuality
  571. }
  572. postIndex := iNdEx + msglen
  573. if postIndex > l {
  574. return io.ErrUnexpectedEOF
  575. }
  576. if m.QualityInfoM == nil {
  577. m.QualityInfoM = &Quality{}
  578. }
  579. if err := m.QualityInfoM.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  580. return err
  581. }
  582. iNdEx = postIndex
  583. case 3:
  584. if wireType != 2 {
  585. return fmt.Errorf("proto: wrong wireType = %d for field QualityInfoW", wireType)
  586. }
  587. var msglen int
  588. for shift := uint(0); ; shift += 7 {
  589. if shift >= 64 {
  590. return ErrIntOverflowQuality
  591. }
  592. if iNdEx >= l {
  593. return io.ErrUnexpectedEOF
  594. }
  595. b := dAtA[iNdEx]
  596. iNdEx++
  597. msglen |= (int(b) & 0x7F) << shift
  598. if b < 0x80 {
  599. break
  600. }
  601. }
  602. if msglen < 0 {
  603. return ErrInvalidLengthQuality
  604. }
  605. postIndex := iNdEx + msglen
  606. if postIndex > l {
  607. return io.ErrUnexpectedEOF
  608. }
  609. if m.QualityInfoW == nil {
  610. m.QualityInfoW = &Quality{}
  611. }
  612. if err := m.QualityInfoW.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  613. return err
  614. }
  615. iNdEx = postIndex
  616. case 4:
  617. if wireType != 2 {
  618. return fmt.Errorf("proto: wrong wireType = %d for field QualityInfoH", wireType)
  619. }
  620. var msglen int
  621. for shift := uint(0); ; shift += 7 {
  622. if shift >= 64 {
  623. return ErrIntOverflowQuality
  624. }
  625. if iNdEx >= l {
  626. return io.ErrUnexpectedEOF
  627. }
  628. b := dAtA[iNdEx]
  629. iNdEx++
  630. msglen |= (int(b) & 0x7F) << shift
  631. if b < 0x80 {
  632. break
  633. }
  634. }
  635. if msglen < 0 {
  636. return ErrInvalidLengthQuality
  637. }
  638. postIndex := iNdEx + msglen
  639. if postIndex > l {
  640. return io.ErrUnexpectedEOF
  641. }
  642. if m.QualityInfoH == nil {
  643. m.QualityInfoH = &Quality{}
  644. }
  645. if err := m.QualityInfoH.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  646. return err
  647. }
  648. iNdEx = postIndex
  649. case 5:
  650. if wireType != 2 {
  651. return fmt.Errorf("proto: wrong wireType = %d for field QualityInfoMsM", wireType)
  652. }
  653. var msglen int
  654. for shift := uint(0); ; shift += 7 {
  655. if shift >= 64 {
  656. return ErrIntOverflowQuality
  657. }
  658. if iNdEx >= l {
  659. return io.ErrUnexpectedEOF
  660. }
  661. b := dAtA[iNdEx]
  662. iNdEx++
  663. msglen |= (int(b) & 0x7F) << shift
  664. if b < 0x80 {
  665. break
  666. }
  667. }
  668. if msglen < 0 {
  669. return ErrInvalidLengthQuality
  670. }
  671. postIndex := iNdEx + msglen
  672. if postIndex > l {
  673. return io.ErrUnexpectedEOF
  674. }
  675. if m.QualityInfoMsM == nil {
  676. m.QualityInfoMsM = &Quality{}
  677. }
  678. if err := m.QualityInfoMsM.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  679. return err
  680. }
  681. iNdEx = postIndex
  682. case 6:
  683. if wireType != 2 {
  684. return fmt.Errorf("proto: wrong wireType = %d for field QualityInfoMsW", wireType)
  685. }
  686. var msglen int
  687. for shift := uint(0); ; shift += 7 {
  688. if shift >= 64 {
  689. return ErrIntOverflowQuality
  690. }
  691. if iNdEx >= l {
  692. return io.ErrUnexpectedEOF
  693. }
  694. b := dAtA[iNdEx]
  695. iNdEx++
  696. msglen |= (int(b) & 0x7F) << shift
  697. if b < 0x80 {
  698. break
  699. }
  700. }
  701. if msglen < 0 {
  702. return ErrInvalidLengthQuality
  703. }
  704. postIndex := iNdEx + msglen
  705. if postIndex > l {
  706. return io.ErrUnexpectedEOF
  707. }
  708. if m.QualityInfoMsW == nil {
  709. m.QualityInfoMsW = &Quality{}
  710. }
  711. if err := m.QualityInfoMsW.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  712. return err
  713. }
  714. iNdEx = postIndex
  715. case 7:
  716. if wireType != 2 {
  717. return fmt.Errorf("proto: wrong wireType = %d for field QualityInfoMsH", wireType)
  718. }
  719. var msglen int
  720. for shift := uint(0); ; shift += 7 {
  721. if shift >= 64 {
  722. return ErrIntOverflowQuality
  723. }
  724. if iNdEx >= l {
  725. return io.ErrUnexpectedEOF
  726. }
  727. b := dAtA[iNdEx]
  728. iNdEx++
  729. msglen |= (int(b) & 0x7F) << shift
  730. if b < 0x80 {
  731. break
  732. }
  733. }
  734. if msglen < 0 {
  735. return ErrInvalidLengthQuality
  736. }
  737. postIndex := iNdEx + msglen
  738. if postIndex > l {
  739. return io.ErrUnexpectedEOF
  740. }
  741. if m.QualityInfoMsH == nil {
  742. m.QualityInfoMsH = &Quality{}
  743. }
  744. if err := m.QualityInfoMsH.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  745. return err
  746. }
  747. iNdEx = postIndex
  748. default:
  749. iNdEx = preIndex
  750. skippy, err := skipQuality(dAtA[iNdEx:])
  751. if err != nil {
  752. return err
  753. }
  754. if skippy < 0 {
  755. return ErrInvalidLengthQuality
  756. }
  757. if (iNdEx + skippy) > l {
  758. return io.ErrUnexpectedEOF
  759. }
  760. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  761. iNdEx += skippy
  762. }
  763. }
  764. if iNdEx > l {
  765. return io.ErrUnexpectedEOF
  766. }
  767. return nil
  768. }
  769. func (m *Quality) Unmarshal(dAtA []byte) error {
  770. l := len(dAtA)
  771. iNdEx := 0
  772. for iNdEx < l {
  773. preIndex := iNdEx
  774. var wire uint64
  775. for shift := uint(0); ; shift += 7 {
  776. if shift >= 64 {
  777. return ErrIntOverflowQuality
  778. }
  779. if iNdEx >= l {
  780. return io.ErrUnexpectedEOF
  781. }
  782. b := dAtA[iNdEx]
  783. iNdEx++
  784. wire |= (uint64(b) & 0x7F) << shift
  785. if b < 0x80 {
  786. break
  787. }
  788. }
  789. fieldNum := int32(wire >> 3)
  790. wireType := int(wire & 0x7)
  791. if wireType == 4 {
  792. return fmt.Errorf("proto: Quality: wiretype end group for non-group")
  793. }
  794. if fieldNum <= 0 {
  795. return fmt.Errorf("proto: Quality: illegal tag %d (wire type %d)", fieldNum, wire)
  796. }
  797. switch fieldNum {
  798. case 1:
  799. if wireType != 0 {
  800. return fmt.Errorf("proto: wrong wireType = %d for field PubTime", wireType)
  801. }
  802. m.PubTime = 0
  803. for shift := uint(0); ; shift += 7 {
  804. if shift >= 64 {
  805. return ErrIntOverflowQuality
  806. }
  807. if iNdEx >= l {
  808. return io.ErrUnexpectedEOF
  809. }
  810. b := dAtA[iNdEx]
  811. iNdEx++
  812. m.PubTime |= (uint64(b) & 0x7F) << shift
  813. if b < 0x80 {
  814. break
  815. }
  816. }
  817. case 2:
  818. if wireType != 0 {
  819. return fmt.Errorf("proto: wrong wireType = %d for field PlayCnt", wireType)
  820. }
  821. m.PlayCnt = 0
  822. for shift := uint(0); ; shift += 7 {
  823. if shift >= 64 {
  824. return ErrIntOverflowQuality
  825. }
  826. if iNdEx >= l {
  827. return io.ErrUnexpectedEOF
  828. }
  829. b := dAtA[iNdEx]
  830. iNdEx++
  831. m.PlayCnt |= (uint32(b) & 0x7F) << shift
  832. if b < 0x80 {
  833. break
  834. }
  835. }
  836. case 3:
  837. if wireType != 0 {
  838. return fmt.Errorf("proto: wrong wireType = %d for field AbsolutePlayCnt", wireType)
  839. }
  840. m.AbsolutePlayCnt = 0
  841. for shift := uint(0); ; shift += 7 {
  842. if shift >= 64 {
  843. return ErrIntOverflowQuality
  844. }
  845. if iNdEx >= l {
  846. return io.ErrUnexpectedEOF
  847. }
  848. b := dAtA[iNdEx]
  849. iNdEx++
  850. m.AbsolutePlayCnt |= (uint32(b) & 0x7F) << shift
  851. if b < 0x80 {
  852. break
  853. }
  854. }
  855. case 4:
  856. if wireType != 0 {
  857. return fmt.Errorf("proto: wrong wireType = %d for field FavCnt", wireType)
  858. }
  859. m.FavCnt = 0
  860. for shift := uint(0); ; shift += 7 {
  861. if shift >= 64 {
  862. return ErrIntOverflowQuality
  863. }
  864. if iNdEx >= l {
  865. return io.ErrUnexpectedEOF
  866. }
  867. b := dAtA[iNdEx]
  868. iNdEx++
  869. m.FavCnt |= (uint32(b) & 0x7F) << shift
  870. if b < 0x80 {
  871. break
  872. }
  873. }
  874. case 5:
  875. if wireType != 0 {
  876. return fmt.Errorf("proto: wrong wireType = %d for field LikeCnt", wireType)
  877. }
  878. m.LikeCnt = 0
  879. for shift := uint(0); ; shift += 7 {
  880. if shift >= 64 {
  881. return ErrIntOverflowQuality
  882. }
  883. if iNdEx >= l {
  884. return io.ErrUnexpectedEOF
  885. }
  886. b := dAtA[iNdEx]
  887. iNdEx++
  888. m.LikeCnt |= (uint32(b) & 0x7F) << shift
  889. if b < 0x80 {
  890. break
  891. }
  892. }
  893. case 6:
  894. if wireType != 0 {
  895. return fmt.Errorf("proto: wrong wireType = %d for field CoinCnt", wireType)
  896. }
  897. m.CoinCnt = 0
  898. for shift := uint(0); ; shift += 7 {
  899. if shift >= 64 {
  900. return ErrIntOverflowQuality
  901. }
  902. if iNdEx >= l {
  903. return io.ErrUnexpectedEOF
  904. }
  905. b := dAtA[iNdEx]
  906. iNdEx++
  907. m.CoinCnt |= (uint32(b) & 0x7F) << shift
  908. if b < 0x80 {
  909. break
  910. }
  911. }
  912. case 7:
  913. if wireType != 0 {
  914. return fmt.Errorf("proto: wrong wireType = %d for field ShareCnt", wireType)
  915. }
  916. m.ShareCnt = 0
  917. for shift := uint(0); ; shift += 7 {
  918. if shift >= 64 {
  919. return ErrIntOverflowQuality
  920. }
  921. if iNdEx >= l {
  922. return io.ErrUnexpectedEOF
  923. }
  924. b := dAtA[iNdEx]
  925. iNdEx++
  926. m.ShareCnt |= (uint32(b) & 0x7F) << shift
  927. if b < 0x80 {
  928. break
  929. }
  930. }
  931. case 8:
  932. if wireType != 0 {
  933. return fmt.Errorf("proto: wrong wireType = %d for field DanmuCnt", wireType)
  934. }
  935. m.DanmuCnt = 0
  936. for shift := uint(0); ; shift += 7 {
  937. if shift >= 64 {
  938. return ErrIntOverflowQuality
  939. }
  940. if iNdEx >= l {
  941. return io.ErrUnexpectedEOF
  942. }
  943. b := dAtA[iNdEx]
  944. iNdEx++
  945. m.DanmuCnt |= (uint32(b) & 0x7F) << shift
  946. if b < 0x80 {
  947. break
  948. }
  949. }
  950. case 9:
  951. if wireType != 0 {
  952. return fmt.Errorf("proto: wrong wireType = %d for field NegEvalCnt", wireType)
  953. }
  954. m.NegEvalCnt = 0
  955. for shift := uint(0); ; shift += 7 {
  956. if shift >= 64 {
  957. return ErrIntOverflowQuality
  958. }
  959. if iNdEx >= l {
  960. return io.ErrUnexpectedEOF
  961. }
  962. b := dAtA[iNdEx]
  963. iNdEx++
  964. m.NegEvalCnt |= (uint32(b) & 0x7F) << shift
  965. if b < 0x80 {
  966. break
  967. }
  968. }
  969. case 10:
  970. if wireType != 0 {
  971. return fmt.Errorf("proto: wrong wireType = %d for field CommentAddCnt", wireType)
  972. }
  973. m.CommentAddCnt = 0
  974. for shift := uint(0); ; shift += 7 {
  975. if shift >= 64 {
  976. return ErrIntOverflowQuality
  977. }
  978. if iNdEx >= l {
  979. return io.ErrUnexpectedEOF
  980. }
  981. b := dAtA[iNdEx]
  982. iNdEx++
  983. m.CommentAddCnt |= (uint32(b) & 0x7F) << shift
  984. if b < 0x80 {
  985. break
  986. }
  987. }
  988. case 11:
  989. if wireType != 0 {
  990. return fmt.Errorf("proto: wrong wireType = %d for field CommentLikeCnt", wireType)
  991. }
  992. m.CommentLikeCnt = 0
  993. for shift := uint(0); ; shift += 7 {
  994. if shift >= 64 {
  995. return ErrIntOverflowQuality
  996. }
  997. if iNdEx >= l {
  998. return io.ErrUnexpectedEOF
  999. }
  1000. b := dAtA[iNdEx]
  1001. iNdEx++
  1002. m.CommentLikeCnt |= (uint32(b) & 0x7F) << shift
  1003. if b < 0x80 {
  1004. break
  1005. }
  1006. }
  1007. case 12:
  1008. if wireType != 0 {
  1009. return fmt.Errorf("proto: wrong wireType = %d for field CommentReportCnt", wireType)
  1010. }
  1011. m.CommentReportCnt = 0
  1012. for shift := uint(0); ; shift += 7 {
  1013. if shift >= 64 {
  1014. return ErrIntOverflowQuality
  1015. }
  1016. if iNdEx >= l {
  1017. return io.ErrUnexpectedEOF
  1018. }
  1019. b := dAtA[iNdEx]
  1020. iNdEx++
  1021. m.CommentReportCnt |= (uint32(b) & 0x7F) << shift
  1022. if b < 0x80 {
  1023. break
  1024. }
  1025. }
  1026. case 13:
  1027. if wireType != 1 {
  1028. return fmt.Errorf("proto: wrong wireType = %d for field AbsolutePlayRate", wireType)
  1029. }
  1030. var v uint64
  1031. if (iNdEx + 8) > l {
  1032. return io.ErrUnexpectedEOF
  1033. }
  1034. v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  1035. iNdEx += 8
  1036. m.AbsolutePlayRate = float64(math.Float64frombits(v))
  1037. case 14:
  1038. if wireType != 1 {
  1039. return fmt.Errorf("proto: wrong wireType = %d for field LikeRate", wireType)
  1040. }
  1041. var v uint64
  1042. if (iNdEx + 8) > l {
  1043. return io.ErrUnexpectedEOF
  1044. }
  1045. v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  1046. iNdEx += 8
  1047. m.LikeRate = float64(math.Float64frombits(v))
  1048. case 15:
  1049. if wireType != 1 {
  1050. return fmt.Errorf("proto: wrong wireType = %d for field ShareRate", wireType)
  1051. }
  1052. var v uint64
  1053. if (iNdEx + 8) > l {
  1054. return io.ErrUnexpectedEOF
  1055. }
  1056. v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  1057. iNdEx += 8
  1058. m.ShareRate = float64(math.Float64frombits(v))
  1059. case 16:
  1060. if wireType != 1 {
  1061. return fmt.Errorf("proto: wrong wireType = %d for field ReplyRate", wireType)
  1062. }
  1063. var v uint64
  1064. if (iNdEx + 8) > l {
  1065. return io.ErrUnexpectedEOF
  1066. }
  1067. v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  1068. iNdEx += 8
  1069. m.ReplyRate = float64(math.Float64frombits(v))
  1070. case 17:
  1071. if wireType != 0 {
  1072. return fmt.Errorf("proto: wrong wireType = %d for field ImpCnt", wireType)
  1073. }
  1074. m.ImpCnt = 0
  1075. for shift := uint(0); ; shift += 7 {
  1076. if shift >= 64 {
  1077. return ErrIntOverflowQuality
  1078. }
  1079. if iNdEx >= l {
  1080. return io.ErrUnexpectedEOF
  1081. }
  1082. b := dAtA[iNdEx]
  1083. iNdEx++
  1084. m.ImpCnt |= (uint32(b) & 0x7F) << shift
  1085. if b < 0x80 {
  1086. break
  1087. }
  1088. }
  1089. default:
  1090. iNdEx = preIndex
  1091. skippy, err := skipQuality(dAtA[iNdEx:])
  1092. if err != nil {
  1093. return err
  1094. }
  1095. if skippy < 0 {
  1096. return ErrInvalidLengthQuality
  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 skipQuality(dAtA []byte) (n int, err error) {
  1111. l := len(dAtA)
  1112. iNdEx := 0
  1113. for iNdEx < l {
  1114. var wire uint64
  1115. for shift := uint(0); ; shift += 7 {
  1116. if shift >= 64 {
  1117. return 0, ErrIntOverflowQuality
  1118. }
  1119. if iNdEx >= l {
  1120. return 0, io.ErrUnexpectedEOF
  1121. }
  1122. b := dAtA[iNdEx]
  1123. iNdEx++
  1124. wire |= (uint64(b) & 0x7F) << shift
  1125. if b < 0x80 {
  1126. break
  1127. }
  1128. }
  1129. wireType := int(wire & 0x7)
  1130. switch wireType {
  1131. case 0:
  1132. for shift := uint(0); ; shift += 7 {
  1133. if shift >= 64 {
  1134. return 0, ErrIntOverflowQuality
  1135. }
  1136. if iNdEx >= l {
  1137. return 0, io.ErrUnexpectedEOF
  1138. }
  1139. iNdEx++
  1140. if dAtA[iNdEx-1] < 0x80 {
  1141. break
  1142. }
  1143. }
  1144. return iNdEx, nil
  1145. case 1:
  1146. iNdEx += 8
  1147. return iNdEx, nil
  1148. case 2:
  1149. var length int
  1150. for shift := uint(0); ; shift += 7 {
  1151. if shift >= 64 {
  1152. return 0, ErrIntOverflowQuality
  1153. }
  1154. if iNdEx >= l {
  1155. return 0, io.ErrUnexpectedEOF
  1156. }
  1157. b := dAtA[iNdEx]
  1158. iNdEx++
  1159. length |= (int(b) & 0x7F) << shift
  1160. if b < 0x80 {
  1161. break
  1162. }
  1163. }
  1164. iNdEx += length
  1165. if length < 0 {
  1166. return 0, ErrInvalidLengthQuality
  1167. }
  1168. return iNdEx, nil
  1169. case 3:
  1170. for {
  1171. var innerWire uint64
  1172. var start int = iNdEx
  1173. for shift := uint(0); ; shift += 7 {
  1174. if shift >= 64 {
  1175. return 0, ErrIntOverflowQuality
  1176. }
  1177. if iNdEx >= l {
  1178. return 0, io.ErrUnexpectedEOF
  1179. }
  1180. b := dAtA[iNdEx]
  1181. iNdEx++
  1182. innerWire |= (uint64(b) & 0x7F) << shift
  1183. if b < 0x80 {
  1184. break
  1185. }
  1186. }
  1187. innerWireType := int(innerWire & 0x7)
  1188. if innerWireType == 4 {
  1189. break
  1190. }
  1191. next, err := skipQuality(dAtA[start:])
  1192. if err != nil {
  1193. return 0, err
  1194. }
  1195. iNdEx = start + next
  1196. }
  1197. return iNdEx, nil
  1198. case 4:
  1199. return iNdEx, nil
  1200. case 5:
  1201. iNdEx += 4
  1202. return iNdEx, nil
  1203. default:
  1204. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1205. }
  1206. }
  1207. panic("unreachable")
  1208. }
  1209. var (
  1210. ErrInvalidLengthQuality = fmt.Errorf("proto: negative length found during unmarshaling")
  1211. ErrIntOverflowQuality = fmt.Errorf("proto: integer overflow")
  1212. )
  1213. func init() {
  1214. proto.RegisterFile("app/job/bbq/recall/proto/quality/quality.proto", fileDescriptor_quality_e12e2285f710c9e7)
  1215. }
  1216. var fileDescriptor_quality_e12e2285f710c9e7 = []byte{
  1217. // 517 bytes of a gzipped FileDescriptorProto
  1218. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0xcb, 0x6e, 0xd3, 0x40,
  1219. 0x14, 0x86, 0xeb, 0x36, 0x8d, 0x93, 0xd3, 0x5c, 0xbd, 0xa9, 0x0b, 0xc2, 0x0a, 0x5d, 0xa0, 0x08,
  1220. 0x41, 0x2c, 0xd1, 0x27, 0x80, 0x0a, 0xa9, 0x48, 0x54, 0x02, 0x0b, 0x51, 0x89, 0x8d, 0x35, 0x8e,
  1221. 0x27, 0xc9, 0x80, 0x67, 0xc6, 0xb5, 0xc7, 0xae, 0xba, 0xe3, 0xb1, 0x78, 0x84, 0x2e, 0x61, 0xc7,
  1222. 0x92, 0xe6, 0x49, 0xd0, 0x9c, 0x19, 0x57, 0xbd, 0x29, 0xab, 0xcc, 0x39, 0xdf, 0x77, 0xe6, 0xf2,
  1223. 0x27, 0x81, 0x19, 0xc9, 0xf3, 0xf0, 0xbb, 0x4c, 0xc2, 0x24, 0x39, 0x0f, 0x0b, 0x3a, 0x27, 0x59,
  1224. 0x16, 0xe6, 0x85, 0x54, 0x32, 0x3c, 0xaf, 0x48, 0xc6, 0xd4, 0x65, 0xf3, 0x39, 0xc3, 0xee, 0x93,
  1225. 0xd7, 0x4b, 0xa6, 0x56, 0x55, 0x32, 0x9b, 0x4b, 0x1e, 0x2e, 0xe5, 0x52, 0x1a, 0x39, 0xa9, 0x16,
  1226. 0x58, 0x99, 0x49, 0xbd, 0x32, 0xfa, 0xe1, 0x9f, 0x6d, 0xe8, 0x7d, 0x65, 0x29, 0x95, 0x9f, 0xcd,
  1227. 0x2e, 0x9e, 0x07, 0xad, 0xb2, 0x66, 0xa9, 0xef, 0x4c, 0x9c, 0x69, 0x37, 0xc2, 0xb5, 0x37, 0x83,
  1228. 0x81, 0x3d, 0x24, 0x66, 0x62, 0x21, 0x63, 0xee, 0x6f, 0x4f, 0x9c, 0xe9, 0xde, 0x9b, 0xce, 0xcc,
  1229. 0x4e, 0x45, 0x3d, 0xcb, 0x3f, 0x88, 0x85, 0x3c, 0x7d, 0xe0, 0x5f, 0xf8, 0x3b, 0x1b, 0xfc, 0xb3,
  1230. 0x07, 0xfe, 0xca, 0x6f, 0x6d, 0xf0, 0x4f, 0xbc, 0x23, 0x18, 0xdf, 0xbd, 0x4f, 0x19, 0x73, 0x7f,
  1231. 0xf7, 0xde, 0xc8, 0xe0, 0xf6, 0x95, 0xca, 0xd3, 0xc7, 0x86, 0x2e, 0xfc, 0xf6, 0xc6, 0xa1, 0xb3,
  1232. 0xc7, 0x86, 0x56, 0xbe, 0xbb, 0x71, 0xe8, 0xe4, 0xf0, 0x57, 0x0b, 0xdc, 0x26, 0xce, 0x03, 0xe8,
  1233. 0xe4, 0x55, 0x12, 0x2b, 0xc6, 0x29, 0x46, 0xda, 0x8a, 0xdc, 0xbc, 0x4a, 0xbe, 0x30, 0x4e, 0x11,
  1234. 0x65, 0xe4, 0x32, 0x9e, 0x0b, 0x85, 0x79, 0xf6, 0x23, 0x57, 0xd7, 0xc7, 0x42, 0x79, 0x2f, 0x61,
  1235. 0x4c, 0x92, 0x52, 0x66, 0x95, 0xa2, 0xf1, 0x8d, 0xb3, 0x83, 0xce, 0xb0, 0x01, 0x9f, 0xac, 0xbb,
  1236. 0x0f, 0xee, 0x82, 0xd4, 0x68, 0xb4, 0xd0, 0x68, 0x2f, 0x48, 0xad, 0xc1, 0x01, 0x74, 0x32, 0xf6,
  1237. 0x83, 0x22, 0xd9, 0x35, 0xfb, 0xeb, 0xda, 0xa2, 0xb9, 0x64, 0x02, 0x51, 0xdb, 0x20, 0x5d, 0x6b,
  1238. 0xf4, 0x14, 0xba, 0xe5, 0x8a, 0x14, 0x66, 0xcc, 0x45, 0xd6, 0xc1, 0x86, 0x85, 0x29, 0x11, 0xbc,
  1239. 0x42, 0xd8, 0x31, 0x10, 0x1b, 0x1a, 0x4e, 0xa0, 0x27, 0xe8, 0x32, 0xa6, 0x35, 0xc9, 0x90, 0x77,
  1240. 0x91, 0x83, 0xa0, 0xcb, 0xf7, 0x35, 0xc9, 0xb4, 0xf1, 0x02, 0x86, 0x73, 0xc9, 0x39, 0x15, 0x2a,
  1241. 0x26, 0x69, 0x8a, 0x12, 0xa0, 0xd4, 0xb7, 0xed, 0xb7, 0x69, 0xaa, 0xbd, 0x29, 0x8c, 0x1a, 0xef,
  1242. 0xe6, 0x05, 0x7b, 0x28, 0x0e, 0x6c, 0xff, 0xa3, 0x7d, 0xc8, 0x2b, 0xf0, 0x1a, 0xb3, 0xa0, 0xb9,
  1243. 0x2c, 0x14, 0xba, 0x3d, 0x74, 0x9b, 0x3d, 0x22, 0x04, 0xd6, 0xbe, 0x1b, 0x6b, 0x41, 0x14, 0xf5,
  1244. 0xfb, 0x13, 0x67, 0xea, 0x44, 0xa3, 0xdb, 0xb9, 0x46, 0x44, 0x51, 0xfd, 0x58, 0x3c, 0x1d, 0xa5,
  1245. 0x01, 0x4a, 0x18, 0x28, 0xc2, 0x67, 0x00, 0x26, 0x26, 0xa4, 0x43, 0xa4, 0x26, 0xb8, 0x06, 0x17,
  1246. 0x34, 0xcf, 0xec, 0x09, 0x23, 0x83, 0xb1, 0x83, 0x78, 0x1f, 0x5c, 0xc6, 0x73, 0xbc, 0xeb, 0xd8,
  1247. 0x7c, 0x67, 0x8c, 0xe7, 0xc7, 0x42, 0xbd, 0x7b, 0x7e, 0x75, 0x1d, 0x6c, 0xfd, 0xbd, 0x0e, 0xb6,
  1248. 0x7e, 0xae, 0x03, 0xe7, 0x6a, 0x1d, 0x38, 0xbf, 0xd7, 0x81, 0xf3, 0x6f, 0x1d, 0x38, 0xdf, 0x5c,
  1249. 0xfb, 0x23, 0x4b, 0xda, 0xf8, 0xc7, 0x3d, 0xfa, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xa7, 0x72, 0x2f,
  1250. 0x6e, 0x19, 0x04, 0x00, 0x00,
  1251. }