model.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/main/broadcast/model/model.proto
  3. /*
  4. Package model is a generated protocol buffer package.
  5. It is generated from these files:
  6. app/service/main/broadcast/model/model.proto
  7. It has these top-level messages:
  8. Proto
  9. */
  10. package model
  11. import proto "github.com/gogo/protobuf/proto"
  12. import fmt "fmt"
  13. import math "math"
  14. import io "io"
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  24. type Proto struct {
  25. Ver int32 `protobuf:"varint,1,opt,name=ver,proto3" json:"ver,omitempty"`
  26. Operation int32 `protobuf:"varint,2,opt,name=operation,proto3" json:"operation,omitempty"`
  27. SeqId int32 `protobuf:"varint,3,opt,name=seqId,proto3" json:"seqId,omitempty"`
  28. Compress int32 `protobuf:"varint,4,opt,name=compress,proto3" json:"compress,omitempty"`
  29. ContentType int32 `protobuf:"varint,5,opt,name=contentType,proto3" json:"contentType,omitempty"`
  30. Body []byte `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"`
  31. }
  32. func (m *Proto) Reset() { *m = Proto{} }
  33. func (m *Proto) String() string { return proto.CompactTextString(m) }
  34. func (*Proto) ProtoMessage() {}
  35. func (*Proto) Descriptor() ([]byte, []int) { return fileDescriptorModel, []int{0} }
  36. func (m *Proto) GetVer() int32 {
  37. if m != nil {
  38. return m.Ver
  39. }
  40. return 0
  41. }
  42. func (m *Proto) GetOperation() int32 {
  43. if m != nil {
  44. return m.Operation
  45. }
  46. return 0
  47. }
  48. func (m *Proto) GetSeqId() int32 {
  49. if m != nil {
  50. return m.SeqId
  51. }
  52. return 0
  53. }
  54. func (m *Proto) GetCompress() int32 {
  55. if m != nil {
  56. return m.Compress
  57. }
  58. return 0
  59. }
  60. func (m *Proto) GetContentType() int32 {
  61. if m != nil {
  62. return m.ContentType
  63. }
  64. return 0
  65. }
  66. func (m *Proto) GetBody() []byte {
  67. if m != nil {
  68. return m.Body
  69. }
  70. return nil
  71. }
  72. func init() {
  73. proto.RegisterType((*Proto)(nil), "push.service.broadcast.model.Proto")
  74. }
  75. func (m *Proto) Marshal() (dAtA []byte, err error) {
  76. size := m.Size()
  77. dAtA = make([]byte, size)
  78. n, err := m.MarshalTo(dAtA)
  79. if err != nil {
  80. return nil, err
  81. }
  82. return dAtA[:n], nil
  83. }
  84. func (m *Proto) MarshalTo(dAtA []byte) (int, error) {
  85. var i int
  86. _ = i
  87. var l int
  88. _ = l
  89. if m.Ver != 0 {
  90. dAtA[i] = 0x8
  91. i++
  92. i = encodeVarintModel(dAtA, i, uint64(m.Ver))
  93. }
  94. if m.Operation != 0 {
  95. dAtA[i] = 0x10
  96. i++
  97. i = encodeVarintModel(dAtA, i, uint64(m.Operation))
  98. }
  99. if m.SeqId != 0 {
  100. dAtA[i] = 0x18
  101. i++
  102. i = encodeVarintModel(dAtA, i, uint64(m.SeqId))
  103. }
  104. if m.Compress != 0 {
  105. dAtA[i] = 0x20
  106. i++
  107. i = encodeVarintModel(dAtA, i, uint64(m.Compress))
  108. }
  109. if m.ContentType != 0 {
  110. dAtA[i] = 0x28
  111. i++
  112. i = encodeVarintModel(dAtA, i, uint64(m.ContentType))
  113. }
  114. if len(m.Body) > 0 {
  115. dAtA[i] = 0x32
  116. i++
  117. i = encodeVarintModel(dAtA, i, uint64(len(m.Body)))
  118. i += copy(dAtA[i:], m.Body)
  119. }
  120. return i, nil
  121. }
  122. func encodeVarintModel(dAtA []byte, offset int, v uint64) int {
  123. for v >= 1<<7 {
  124. dAtA[offset] = uint8(v&0x7f | 0x80)
  125. v >>= 7
  126. offset++
  127. }
  128. dAtA[offset] = uint8(v)
  129. return offset + 1
  130. }
  131. func (m *Proto) Size() (n int) {
  132. var l int
  133. _ = l
  134. if m.Ver != 0 {
  135. n += 1 + sovModel(uint64(m.Ver))
  136. }
  137. if m.Operation != 0 {
  138. n += 1 + sovModel(uint64(m.Operation))
  139. }
  140. if m.SeqId != 0 {
  141. n += 1 + sovModel(uint64(m.SeqId))
  142. }
  143. if m.Compress != 0 {
  144. n += 1 + sovModel(uint64(m.Compress))
  145. }
  146. if m.ContentType != 0 {
  147. n += 1 + sovModel(uint64(m.ContentType))
  148. }
  149. l = len(m.Body)
  150. if l > 0 {
  151. n += 1 + l + sovModel(uint64(l))
  152. }
  153. return n
  154. }
  155. func sovModel(x uint64) (n int) {
  156. for {
  157. n++
  158. x >>= 7
  159. if x == 0 {
  160. break
  161. }
  162. }
  163. return n
  164. }
  165. func sozModel(x uint64) (n int) {
  166. return sovModel(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  167. }
  168. func (m *Proto) Unmarshal(dAtA []byte) error {
  169. l := len(dAtA)
  170. iNdEx := 0
  171. for iNdEx < l {
  172. preIndex := iNdEx
  173. var wire uint64
  174. for shift := uint(0); ; shift += 7 {
  175. if shift >= 64 {
  176. return ErrIntOverflowModel
  177. }
  178. if iNdEx >= l {
  179. return io.ErrUnexpectedEOF
  180. }
  181. b := dAtA[iNdEx]
  182. iNdEx++
  183. wire |= (uint64(b) & 0x7F) << shift
  184. if b < 0x80 {
  185. break
  186. }
  187. }
  188. fieldNum := int32(wire >> 3)
  189. wireType := int(wire & 0x7)
  190. if wireType == 4 {
  191. return fmt.Errorf("proto: Proto: wiretype end group for non-group")
  192. }
  193. if fieldNum <= 0 {
  194. return fmt.Errorf("proto: Proto: illegal tag %d (wire type %d)", fieldNum, wire)
  195. }
  196. switch fieldNum {
  197. case 1:
  198. if wireType != 0 {
  199. return fmt.Errorf("proto: wrong wireType = %d for field Ver", wireType)
  200. }
  201. m.Ver = 0
  202. for shift := uint(0); ; shift += 7 {
  203. if shift >= 64 {
  204. return ErrIntOverflowModel
  205. }
  206. if iNdEx >= l {
  207. return io.ErrUnexpectedEOF
  208. }
  209. b := dAtA[iNdEx]
  210. iNdEx++
  211. m.Ver |= (int32(b) & 0x7F) << shift
  212. if b < 0x80 {
  213. break
  214. }
  215. }
  216. case 2:
  217. if wireType != 0 {
  218. return fmt.Errorf("proto: wrong wireType = %d for field Operation", wireType)
  219. }
  220. m.Operation = 0
  221. for shift := uint(0); ; shift += 7 {
  222. if shift >= 64 {
  223. return ErrIntOverflowModel
  224. }
  225. if iNdEx >= l {
  226. return io.ErrUnexpectedEOF
  227. }
  228. b := dAtA[iNdEx]
  229. iNdEx++
  230. m.Operation |= (int32(b) & 0x7F) << shift
  231. if b < 0x80 {
  232. break
  233. }
  234. }
  235. case 3:
  236. if wireType != 0 {
  237. return fmt.Errorf("proto: wrong wireType = %d for field SeqId", wireType)
  238. }
  239. m.SeqId = 0
  240. for shift := uint(0); ; shift += 7 {
  241. if shift >= 64 {
  242. return ErrIntOverflowModel
  243. }
  244. if iNdEx >= l {
  245. return io.ErrUnexpectedEOF
  246. }
  247. b := dAtA[iNdEx]
  248. iNdEx++
  249. m.SeqId |= (int32(b) & 0x7F) << shift
  250. if b < 0x80 {
  251. break
  252. }
  253. }
  254. case 4:
  255. if wireType != 0 {
  256. return fmt.Errorf("proto: wrong wireType = %d for field Compress", wireType)
  257. }
  258. m.Compress = 0
  259. for shift := uint(0); ; shift += 7 {
  260. if shift >= 64 {
  261. return ErrIntOverflowModel
  262. }
  263. if iNdEx >= l {
  264. return io.ErrUnexpectedEOF
  265. }
  266. b := dAtA[iNdEx]
  267. iNdEx++
  268. m.Compress |= (int32(b) & 0x7F) << shift
  269. if b < 0x80 {
  270. break
  271. }
  272. }
  273. case 5:
  274. if wireType != 0 {
  275. return fmt.Errorf("proto: wrong wireType = %d for field ContentType", wireType)
  276. }
  277. m.ContentType = 0
  278. for shift := uint(0); ; shift += 7 {
  279. if shift >= 64 {
  280. return ErrIntOverflowModel
  281. }
  282. if iNdEx >= l {
  283. return io.ErrUnexpectedEOF
  284. }
  285. b := dAtA[iNdEx]
  286. iNdEx++
  287. m.ContentType |= (int32(b) & 0x7F) << shift
  288. if b < 0x80 {
  289. break
  290. }
  291. }
  292. case 6:
  293. if wireType != 2 {
  294. return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType)
  295. }
  296. var byteLen int
  297. for shift := uint(0); ; shift += 7 {
  298. if shift >= 64 {
  299. return ErrIntOverflowModel
  300. }
  301. if iNdEx >= l {
  302. return io.ErrUnexpectedEOF
  303. }
  304. b := dAtA[iNdEx]
  305. iNdEx++
  306. byteLen |= (int(b) & 0x7F) << shift
  307. if b < 0x80 {
  308. break
  309. }
  310. }
  311. if byteLen < 0 {
  312. return ErrInvalidLengthModel
  313. }
  314. postIndex := iNdEx + byteLen
  315. if postIndex > l {
  316. return io.ErrUnexpectedEOF
  317. }
  318. m.Body = append(m.Body[:0], dAtA[iNdEx:postIndex]...)
  319. if m.Body == nil {
  320. m.Body = []byte{}
  321. }
  322. iNdEx = postIndex
  323. default:
  324. iNdEx = preIndex
  325. skippy, err := skipModel(dAtA[iNdEx:])
  326. if err != nil {
  327. return err
  328. }
  329. if skippy < 0 {
  330. return ErrInvalidLengthModel
  331. }
  332. if (iNdEx + skippy) > l {
  333. return io.ErrUnexpectedEOF
  334. }
  335. iNdEx += skippy
  336. }
  337. }
  338. if iNdEx > l {
  339. return io.ErrUnexpectedEOF
  340. }
  341. return nil
  342. }
  343. func skipModel(dAtA []byte) (n int, err error) {
  344. l := len(dAtA)
  345. iNdEx := 0
  346. for iNdEx < l {
  347. var wire uint64
  348. for shift := uint(0); ; shift += 7 {
  349. if shift >= 64 {
  350. return 0, ErrIntOverflowModel
  351. }
  352. if iNdEx >= l {
  353. return 0, io.ErrUnexpectedEOF
  354. }
  355. b := dAtA[iNdEx]
  356. iNdEx++
  357. wire |= (uint64(b) & 0x7F) << shift
  358. if b < 0x80 {
  359. break
  360. }
  361. }
  362. wireType := int(wire & 0x7)
  363. switch wireType {
  364. case 0:
  365. for shift := uint(0); ; shift += 7 {
  366. if shift >= 64 {
  367. return 0, ErrIntOverflowModel
  368. }
  369. if iNdEx >= l {
  370. return 0, io.ErrUnexpectedEOF
  371. }
  372. iNdEx++
  373. if dAtA[iNdEx-1] < 0x80 {
  374. break
  375. }
  376. }
  377. return iNdEx, nil
  378. case 1:
  379. iNdEx += 8
  380. return iNdEx, nil
  381. case 2:
  382. var length int
  383. for shift := uint(0); ; shift += 7 {
  384. if shift >= 64 {
  385. return 0, ErrIntOverflowModel
  386. }
  387. if iNdEx >= l {
  388. return 0, io.ErrUnexpectedEOF
  389. }
  390. b := dAtA[iNdEx]
  391. iNdEx++
  392. length |= (int(b) & 0x7F) << shift
  393. if b < 0x80 {
  394. break
  395. }
  396. }
  397. iNdEx += length
  398. if length < 0 {
  399. return 0, ErrInvalidLengthModel
  400. }
  401. return iNdEx, nil
  402. case 3:
  403. for {
  404. var innerWire uint64
  405. var start int = iNdEx
  406. for shift := uint(0); ; shift += 7 {
  407. if shift >= 64 {
  408. return 0, ErrIntOverflowModel
  409. }
  410. if iNdEx >= l {
  411. return 0, io.ErrUnexpectedEOF
  412. }
  413. b := dAtA[iNdEx]
  414. iNdEx++
  415. innerWire |= (uint64(b) & 0x7F) << shift
  416. if b < 0x80 {
  417. break
  418. }
  419. }
  420. innerWireType := int(innerWire & 0x7)
  421. if innerWireType == 4 {
  422. break
  423. }
  424. next, err := skipModel(dAtA[start:])
  425. if err != nil {
  426. return 0, err
  427. }
  428. iNdEx = start + next
  429. }
  430. return iNdEx, nil
  431. case 4:
  432. return iNdEx, nil
  433. case 5:
  434. iNdEx += 4
  435. return iNdEx, nil
  436. default:
  437. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  438. }
  439. }
  440. panic("unreachable")
  441. }
  442. var (
  443. ErrInvalidLengthModel = fmt.Errorf("proto: negative length found during unmarshaling")
  444. ErrIntOverflowModel = fmt.Errorf("proto: integer overflow")
  445. )
  446. func init() { proto.RegisterFile("app/service/main/broadcast/model/model.proto", fileDescriptorModel) }
  447. var fileDescriptorModel = []byte{
  448. // 216 bytes of a gzipped FileDescriptorProto
  449. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x49, 0x2c, 0x28, 0xd0,
  450. 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0xcf, 0x4d, 0xcc, 0xcc, 0xd3, 0x4f, 0x2a, 0xca,
  451. 0x4f, 0x4c, 0x49, 0x4e, 0x2c, 0x2e, 0xd1, 0xcf, 0xcd, 0x4f, 0x49, 0xcd, 0x81, 0x90, 0x7a, 0x05,
  452. 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x32, 0x05, 0xa5, 0xc5, 0x19, 0x7a, 0x50, 0xe5, 0x7a, 0x70, 0x95,
  453. 0x7a, 0x60, 0x35, 0x4a, 0xf3, 0x19, 0xb9, 0x58, 0x03, 0xc0, 0xea, 0x04, 0xb8, 0x98, 0xcb, 0x52,
  454. 0x8b, 0x24, 0x18, 0x15, 0x18, 0x35, 0x58, 0x83, 0x40, 0x4c, 0x21, 0x19, 0x2e, 0xce, 0xfc, 0x82,
  455. 0xd4, 0xa2, 0xc4, 0x92, 0xcc, 0xfc, 0x3c, 0x09, 0x26, 0xb0, 0x38, 0x42, 0x40, 0x48, 0x84, 0x8b,
  456. 0xb5, 0x38, 0xb5, 0xd0, 0x33, 0x45, 0x82, 0x19, 0x2c, 0x03, 0xe1, 0x08, 0x49, 0x71, 0x71, 0x24,
  457. 0xe7, 0xe7, 0x16, 0x14, 0xa5, 0x16, 0x17, 0x4b, 0xb0, 0x80, 0x25, 0xe0, 0x7c, 0x21, 0x05, 0x2e,
  458. 0xee, 0xe4, 0xfc, 0xbc, 0x92, 0xd4, 0xbc, 0x92, 0x90, 0xca, 0x82, 0x54, 0x09, 0x56, 0xb0, 0x34,
  459. 0xb2, 0x90, 0x90, 0x10, 0x17, 0x4b, 0x52, 0x7e, 0x4a, 0xa5, 0x04, 0x9b, 0x02, 0xa3, 0x06, 0x4f,
  460. 0x10, 0x98, 0xed, 0x24, 0x7c, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9,
  461. 0x31, 0x46, 0xb1, 0x82, 0x9d, 0x9d, 0xc4, 0x06, 0xf6, 0x9b, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff,
  462. 0x43, 0x45, 0x1f, 0x62, 0x0b, 0x01, 0x00, 0x00,
  463. }