dm.pb.go 37 KB

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