missiongroup.pb.go 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: missiongroup.proto
  3. package like
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/gogo/protobuf/gogoproto"
  8. import go_common_library_time "go-common/library/time"
  9. import io "io"
  10. // Reference imports to suppress errors if they are not otherwise used.
  11. var _ = proto.Marshal
  12. var _ = fmt.Errorf
  13. var _ = math.Inf
  14. // This is a compile-time assertion to ensure that this generated file
  15. // is compatible with the proto package it is being compiled against.
  16. // A compilation error at this line likely means your copy of the
  17. // proto package needs to be updated.
  18. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  19. type MissionGroup struct {
  20. ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"id"`
  21. Sid int64 `protobuf:"varint,2,opt,name=Sid,proto3" json:"sid"`
  22. Mid int64 `protobuf:"varint,3,opt,name=Mid,proto3" json:"mid"`
  23. State int64 `protobuf:"varint,4,opt,name=State,proto3" json:"state"`
  24. Ctime go_common_library_time.Time `protobuf:"varint,5,opt,name=Ctime,proto3,casttype=go-common/library/time.Time" json:"ctime"`
  25. Mtime go_common_library_time.Time `protobuf:"varint,6,opt,name=Mtime,proto3,casttype=go-common/library/time.Time" json:"mtime"`
  26. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  27. XXX_unrecognized []byte `json:"-"`
  28. XXX_sizecache int32 `json:"-"`
  29. }
  30. func (m *MissionGroup) Reset() { *m = MissionGroup{} }
  31. func (m *MissionGroup) String() string { return proto.CompactTextString(m) }
  32. func (*MissionGroup) ProtoMessage() {}
  33. func (*MissionGroup) Descriptor() ([]byte, []int) {
  34. return fileDescriptor_missiongroup_2ff59dc279cfd0a8, []int{0}
  35. }
  36. func (m *MissionGroup) XXX_Unmarshal(b []byte) error {
  37. return m.Unmarshal(b)
  38. }
  39. func (m *MissionGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  40. if deterministic {
  41. return xxx_messageInfo_MissionGroup.Marshal(b, m, deterministic)
  42. } else {
  43. b = b[:cap(b)]
  44. n, err := m.MarshalTo(b)
  45. if err != nil {
  46. return nil, err
  47. }
  48. return b[:n], nil
  49. }
  50. }
  51. func (dst *MissionGroup) XXX_Merge(src proto.Message) {
  52. xxx_messageInfo_MissionGroup.Merge(dst, src)
  53. }
  54. func (m *MissionGroup) XXX_Size() int {
  55. return m.Size()
  56. }
  57. func (m *MissionGroup) XXX_DiscardUnknown() {
  58. xxx_messageInfo_MissionGroup.DiscardUnknown(m)
  59. }
  60. var xxx_messageInfo_MissionGroup proto.InternalMessageInfo
  61. type ActMissionGroup struct {
  62. ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"id"`
  63. Lid int64 `protobuf:"varint,2,opt,name=Lid,proto3" json:"lid"`
  64. Mid int64 `protobuf:"varint,3,opt,name=Mid,proto3" json:"mid"`
  65. Action int64 `protobuf:"varint,4,opt,name=Action,proto3" json:"action"`
  66. Ctime go_common_library_time.Time `protobuf:"varint,5,opt,name=Ctime,proto3,casttype=go-common/library/time.Time" json:"ctime"`
  67. Mtime go_common_library_time.Time `protobuf:"varint,6,opt,name=Mtime,proto3,casttype=go-common/library/time.Time" json:"mtime"`
  68. Sid int64 `protobuf:"varint,7,opt,name=Sid,proto3" json:"sid"`
  69. IP int64 `protobuf:"varint,8,opt,name=IP,proto3" json:"ip"`
  70. IPv6 []byte `protobuf:"bytes,9,opt,name=IPv6,proto3" json:"ipv6"`
  71. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  72. XXX_unrecognized []byte `json:"-"`
  73. XXX_sizecache int32 `json:"-"`
  74. }
  75. func (m *ActMissionGroup) Reset() { *m = ActMissionGroup{} }
  76. func (m *ActMissionGroup) String() string { return proto.CompactTextString(m) }
  77. func (*ActMissionGroup) ProtoMessage() {}
  78. func (*ActMissionGroup) Descriptor() ([]byte, []int) {
  79. return fileDescriptor_missiongroup_2ff59dc279cfd0a8, []int{1}
  80. }
  81. func (m *ActMissionGroup) XXX_Unmarshal(b []byte) error {
  82. return m.Unmarshal(b)
  83. }
  84. func (m *ActMissionGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  85. if deterministic {
  86. return xxx_messageInfo_ActMissionGroup.Marshal(b, m, deterministic)
  87. } else {
  88. b = b[:cap(b)]
  89. n, err := m.MarshalTo(b)
  90. if err != nil {
  91. return nil, err
  92. }
  93. return b[:n], nil
  94. }
  95. }
  96. func (dst *ActMissionGroup) XXX_Merge(src proto.Message) {
  97. xxx_messageInfo_ActMissionGroup.Merge(dst, src)
  98. }
  99. func (m *ActMissionGroup) XXX_Size() int {
  100. return m.Size()
  101. }
  102. func (m *ActMissionGroup) XXX_DiscardUnknown() {
  103. xxx_messageInfo_ActMissionGroup.DiscardUnknown(m)
  104. }
  105. var xxx_messageInfo_ActMissionGroup proto.InternalMessageInfo
  106. type ActMissionGroups struct {
  107. ActMissionGroups []*ActMissionGroup `protobuf:"bytes,1,rep,name=actMissionGroups" json:"actMissionGroups,omitempty"`
  108. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  109. XXX_unrecognized []byte `json:"-"`
  110. XXX_sizecache int32 `json:"-"`
  111. }
  112. func (m *ActMissionGroups) Reset() { *m = ActMissionGroups{} }
  113. func (m *ActMissionGroups) String() string { return proto.CompactTextString(m) }
  114. func (*ActMissionGroups) ProtoMessage() {}
  115. func (*ActMissionGroups) Descriptor() ([]byte, []int) {
  116. return fileDescriptor_missiongroup_2ff59dc279cfd0a8, []int{2}
  117. }
  118. func (m *ActMissionGroups) XXX_Unmarshal(b []byte) error {
  119. return m.Unmarshal(b)
  120. }
  121. func (m *ActMissionGroups) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  122. if deterministic {
  123. return xxx_messageInfo_ActMissionGroups.Marshal(b, m, deterministic)
  124. } else {
  125. b = b[:cap(b)]
  126. n, err := m.MarshalTo(b)
  127. if err != nil {
  128. return nil, err
  129. }
  130. return b[:n], nil
  131. }
  132. }
  133. func (dst *ActMissionGroups) XXX_Merge(src proto.Message) {
  134. xxx_messageInfo_ActMissionGroups.Merge(dst, src)
  135. }
  136. func (m *ActMissionGroups) XXX_Size() int {
  137. return m.Size()
  138. }
  139. func (m *ActMissionGroups) XXX_DiscardUnknown() {
  140. xxx_messageInfo_ActMissionGroups.DiscardUnknown(m)
  141. }
  142. var xxx_messageInfo_ActMissionGroups proto.InternalMessageInfo
  143. func init() {
  144. proto.RegisterType((*MissionGroup)(nil), "activity.service.MissionGroup")
  145. proto.RegisterType((*ActMissionGroup)(nil), "activity.service.ActMissionGroup")
  146. proto.RegisterType((*ActMissionGroups)(nil), "activity.service.ActMissionGroups")
  147. }
  148. func (m *MissionGroup) Marshal() (dAtA []byte, err error) {
  149. size := m.Size()
  150. dAtA = make([]byte, size)
  151. n, err := m.MarshalTo(dAtA)
  152. if err != nil {
  153. return nil, err
  154. }
  155. return dAtA[:n], nil
  156. }
  157. func (m *MissionGroup) MarshalTo(dAtA []byte) (int, error) {
  158. var i int
  159. _ = i
  160. var l int
  161. _ = l
  162. if m.ID != 0 {
  163. dAtA[i] = 0x8
  164. i++
  165. i = encodeVarintMissiongroup(dAtA, i, uint64(m.ID))
  166. }
  167. if m.Sid != 0 {
  168. dAtA[i] = 0x10
  169. i++
  170. i = encodeVarintMissiongroup(dAtA, i, uint64(m.Sid))
  171. }
  172. if m.Mid != 0 {
  173. dAtA[i] = 0x18
  174. i++
  175. i = encodeVarintMissiongroup(dAtA, i, uint64(m.Mid))
  176. }
  177. if m.State != 0 {
  178. dAtA[i] = 0x20
  179. i++
  180. i = encodeVarintMissiongroup(dAtA, i, uint64(m.State))
  181. }
  182. if m.Ctime != 0 {
  183. dAtA[i] = 0x28
  184. i++
  185. i = encodeVarintMissiongroup(dAtA, i, uint64(m.Ctime))
  186. }
  187. if m.Mtime != 0 {
  188. dAtA[i] = 0x30
  189. i++
  190. i = encodeVarintMissiongroup(dAtA, i, uint64(m.Mtime))
  191. }
  192. if m.XXX_unrecognized != nil {
  193. i += copy(dAtA[i:], m.XXX_unrecognized)
  194. }
  195. return i, nil
  196. }
  197. func (m *ActMissionGroup) Marshal() (dAtA []byte, err error) {
  198. size := m.Size()
  199. dAtA = make([]byte, size)
  200. n, err := m.MarshalTo(dAtA)
  201. if err != nil {
  202. return nil, err
  203. }
  204. return dAtA[:n], nil
  205. }
  206. func (m *ActMissionGroup) MarshalTo(dAtA []byte) (int, error) {
  207. var i int
  208. _ = i
  209. var l int
  210. _ = l
  211. if m.ID != 0 {
  212. dAtA[i] = 0x8
  213. i++
  214. i = encodeVarintMissiongroup(dAtA, i, uint64(m.ID))
  215. }
  216. if m.Lid != 0 {
  217. dAtA[i] = 0x10
  218. i++
  219. i = encodeVarintMissiongroup(dAtA, i, uint64(m.Lid))
  220. }
  221. if m.Mid != 0 {
  222. dAtA[i] = 0x18
  223. i++
  224. i = encodeVarintMissiongroup(dAtA, i, uint64(m.Mid))
  225. }
  226. if m.Action != 0 {
  227. dAtA[i] = 0x20
  228. i++
  229. i = encodeVarintMissiongroup(dAtA, i, uint64(m.Action))
  230. }
  231. if m.Ctime != 0 {
  232. dAtA[i] = 0x28
  233. i++
  234. i = encodeVarintMissiongroup(dAtA, i, uint64(m.Ctime))
  235. }
  236. if m.Mtime != 0 {
  237. dAtA[i] = 0x30
  238. i++
  239. i = encodeVarintMissiongroup(dAtA, i, uint64(m.Mtime))
  240. }
  241. if m.Sid != 0 {
  242. dAtA[i] = 0x38
  243. i++
  244. i = encodeVarintMissiongroup(dAtA, i, uint64(m.Sid))
  245. }
  246. if m.IP != 0 {
  247. dAtA[i] = 0x40
  248. i++
  249. i = encodeVarintMissiongroup(dAtA, i, uint64(m.IP))
  250. }
  251. if len(m.IPv6) > 0 {
  252. dAtA[i] = 0x4a
  253. i++
  254. i = encodeVarintMissiongroup(dAtA, i, uint64(len(m.IPv6)))
  255. i += copy(dAtA[i:], m.IPv6)
  256. }
  257. if m.XXX_unrecognized != nil {
  258. i += copy(dAtA[i:], m.XXX_unrecognized)
  259. }
  260. return i, nil
  261. }
  262. func (m *ActMissionGroups) Marshal() (dAtA []byte, err error) {
  263. size := m.Size()
  264. dAtA = make([]byte, size)
  265. n, err := m.MarshalTo(dAtA)
  266. if err != nil {
  267. return nil, err
  268. }
  269. return dAtA[:n], nil
  270. }
  271. func (m *ActMissionGroups) MarshalTo(dAtA []byte) (int, error) {
  272. var i int
  273. _ = i
  274. var l int
  275. _ = l
  276. if len(m.ActMissionGroups) > 0 {
  277. for _, msg := range m.ActMissionGroups {
  278. dAtA[i] = 0xa
  279. i++
  280. i = encodeVarintMissiongroup(dAtA, i, uint64(msg.Size()))
  281. n, err := msg.MarshalTo(dAtA[i:])
  282. if err != nil {
  283. return 0, err
  284. }
  285. i += n
  286. }
  287. }
  288. if m.XXX_unrecognized != nil {
  289. i += copy(dAtA[i:], m.XXX_unrecognized)
  290. }
  291. return i, nil
  292. }
  293. func encodeVarintMissiongroup(dAtA []byte, offset int, v uint64) int {
  294. for v >= 1<<7 {
  295. dAtA[offset] = uint8(v&0x7f | 0x80)
  296. v >>= 7
  297. offset++
  298. }
  299. dAtA[offset] = uint8(v)
  300. return offset + 1
  301. }
  302. func (m *MissionGroup) Size() (n int) {
  303. if m == nil {
  304. return 0
  305. }
  306. var l int
  307. _ = l
  308. if m.ID != 0 {
  309. n += 1 + sovMissiongroup(uint64(m.ID))
  310. }
  311. if m.Sid != 0 {
  312. n += 1 + sovMissiongroup(uint64(m.Sid))
  313. }
  314. if m.Mid != 0 {
  315. n += 1 + sovMissiongroup(uint64(m.Mid))
  316. }
  317. if m.State != 0 {
  318. n += 1 + sovMissiongroup(uint64(m.State))
  319. }
  320. if m.Ctime != 0 {
  321. n += 1 + sovMissiongroup(uint64(m.Ctime))
  322. }
  323. if m.Mtime != 0 {
  324. n += 1 + sovMissiongroup(uint64(m.Mtime))
  325. }
  326. if m.XXX_unrecognized != nil {
  327. n += len(m.XXX_unrecognized)
  328. }
  329. return n
  330. }
  331. func (m *ActMissionGroup) Size() (n int) {
  332. if m == nil {
  333. return 0
  334. }
  335. var l int
  336. _ = l
  337. if m.ID != 0 {
  338. n += 1 + sovMissiongroup(uint64(m.ID))
  339. }
  340. if m.Lid != 0 {
  341. n += 1 + sovMissiongroup(uint64(m.Lid))
  342. }
  343. if m.Mid != 0 {
  344. n += 1 + sovMissiongroup(uint64(m.Mid))
  345. }
  346. if m.Action != 0 {
  347. n += 1 + sovMissiongroup(uint64(m.Action))
  348. }
  349. if m.Ctime != 0 {
  350. n += 1 + sovMissiongroup(uint64(m.Ctime))
  351. }
  352. if m.Mtime != 0 {
  353. n += 1 + sovMissiongroup(uint64(m.Mtime))
  354. }
  355. if m.Sid != 0 {
  356. n += 1 + sovMissiongroup(uint64(m.Sid))
  357. }
  358. if m.IP != 0 {
  359. n += 1 + sovMissiongroup(uint64(m.IP))
  360. }
  361. l = len(m.IPv6)
  362. if l > 0 {
  363. n += 1 + l + sovMissiongroup(uint64(l))
  364. }
  365. if m.XXX_unrecognized != nil {
  366. n += len(m.XXX_unrecognized)
  367. }
  368. return n
  369. }
  370. func (m *ActMissionGroups) Size() (n int) {
  371. if m == nil {
  372. return 0
  373. }
  374. var l int
  375. _ = l
  376. if len(m.ActMissionGroups) > 0 {
  377. for _, e := range m.ActMissionGroups {
  378. l = e.Size()
  379. n += 1 + l + sovMissiongroup(uint64(l))
  380. }
  381. }
  382. if m.XXX_unrecognized != nil {
  383. n += len(m.XXX_unrecognized)
  384. }
  385. return n
  386. }
  387. func sovMissiongroup(x uint64) (n int) {
  388. for {
  389. n++
  390. x >>= 7
  391. if x == 0 {
  392. break
  393. }
  394. }
  395. return n
  396. }
  397. func sozMissiongroup(x uint64) (n int) {
  398. return sovMissiongroup(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  399. }
  400. func (m *MissionGroup) Unmarshal(dAtA []byte) error {
  401. l := len(dAtA)
  402. iNdEx := 0
  403. for iNdEx < l {
  404. preIndex := iNdEx
  405. var wire uint64
  406. for shift := uint(0); ; shift += 7 {
  407. if shift >= 64 {
  408. return ErrIntOverflowMissiongroup
  409. }
  410. if iNdEx >= l {
  411. return io.ErrUnexpectedEOF
  412. }
  413. b := dAtA[iNdEx]
  414. iNdEx++
  415. wire |= (uint64(b) & 0x7F) << shift
  416. if b < 0x80 {
  417. break
  418. }
  419. }
  420. fieldNum := int32(wire >> 3)
  421. wireType := int(wire & 0x7)
  422. if wireType == 4 {
  423. return fmt.Errorf("proto: MissionGroup: wiretype end group for non-group")
  424. }
  425. if fieldNum <= 0 {
  426. return fmt.Errorf("proto: MissionGroup: illegal tag %d (wire type %d)", fieldNum, wire)
  427. }
  428. switch fieldNum {
  429. case 1:
  430. if wireType != 0 {
  431. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  432. }
  433. m.ID = 0
  434. for shift := uint(0); ; shift += 7 {
  435. if shift >= 64 {
  436. return ErrIntOverflowMissiongroup
  437. }
  438. if iNdEx >= l {
  439. return io.ErrUnexpectedEOF
  440. }
  441. b := dAtA[iNdEx]
  442. iNdEx++
  443. m.ID |= (int64(b) & 0x7F) << shift
  444. if b < 0x80 {
  445. break
  446. }
  447. }
  448. case 2:
  449. if wireType != 0 {
  450. return fmt.Errorf("proto: wrong wireType = %d for field Sid", wireType)
  451. }
  452. m.Sid = 0
  453. for shift := uint(0); ; shift += 7 {
  454. if shift >= 64 {
  455. return ErrIntOverflowMissiongroup
  456. }
  457. if iNdEx >= l {
  458. return io.ErrUnexpectedEOF
  459. }
  460. b := dAtA[iNdEx]
  461. iNdEx++
  462. m.Sid |= (int64(b) & 0x7F) << shift
  463. if b < 0x80 {
  464. break
  465. }
  466. }
  467. case 3:
  468. if wireType != 0 {
  469. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  470. }
  471. m.Mid = 0
  472. for shift := uint(0); ; shift += 7 {
  473. if shift >= 64 {
  474. return ErrIntOverflowMissiongroup
  475. }
  476. if iNdEx >= l {
  477. return io.ErrUnexpectedEOF
  478. }
  479. b := dAtA[iNdEx]
  480. iNdEx++
  481. m.Mid |= (int64(b) & 0x7F) << shift
  482. if b < 0x80 {
  483. break
  484. }
  485. }
  486. case 4:
  487. if wireType != 0 {
  488. return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  489. }
  490. m.State = 0
  491. for shift := uint(0); ; shift += 7 {
  492. if shift >= 64 {
  493. return ErrIntOverflowMissiongroup
  494. }
  495. if iNdEx >= l {
  496. return io.ErrUnexpectedEOF
  497. }
  498. b := dAtA[iNdEx]
  499. iNdEx++
  500. m.State |= (int64(b) & 0x7F) << shift
  501. if b < 0x80 {
  502. break
  503. }
  504. }
  505. case 5:
  506. if wireType != 0 {
  507. return fmt.Errorf("proto: wrong wireType = %d for field Ctime", wireType)
  508. }
  509. m.Ctime = 0
  510. for shift := uint(0); ; shift += 7 {
  511. if shift >= 64 {
  512. return ErrIntOverflowMissiongroup
  513. }
  514. if iNdEx >= l {
  515. return io.ErrUnexpectedEOF
  516. }
  517. b := dAtA[iNdEx]
  518. iNdEx++
  519. m.Ctime |= (go_common_library_time.Time(b) & 0x7F) << shift
  520. if b < 0x80 {
  521. break
  522. }
  523. }
  524. case 6:
  525. if wireType != 0 {
  526. return fmt.Errorf("proto: wrong wireType = %d for field Mtime", wireType)
  527. }
  528. m.Mtime = 0
  529. for shift := uint(0); ; shift += 7 {
  530. if shift >= 64 {
  531. return ErrIntOverflowMissiongroup
  532. }
  533. if iNdEx >= l {
  534. return io.ErrUnexpectedEOF
  535. }
  536. b := dAtA[iNdEx]
  537. iNdEx++
  538. m.Mtime |= (go_common_library_time.Time(b) & 0x7F) << shift
  539. if b < 0x80 {
  540. break
  541. }
  542. }
  543. default:
  544. iNdEx = preIndex
  545. skippy, err := skipMissiongroup(dAtA[iNdEx:])
  546. if err != nil {
  547. return err
  548. }
  549. if skippy < 0 {
  550. return ErrInvalidLengthMissiongroup
  551. }
  552. if (iNdEx + skippy) > l {
  553. return io.ErrUnexpectedEOF
  554. }
  555. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  556. iNdEx += skippy
  557. }
  558. }
  559. if iNdEx > l {
  560. return io.ErrUnexpectedEOF
  561. }
  562. return nil
  563. }
  564. func (m *ActMissionGroup) Unmarshal(dAtA []byte) error {
  565. l := len(dAtA)
  566. iNdEx := 0
  567. for iNdEx < l {
  568. preIndex := iNdEx
  569. var wire uint64
  570. for shift := uint(0); ; shift += 7 {
  571. if shift >= 64 {
  572. return ErrIntOverflowMissiongroup
  573. }
  574. if iNdEx >= l {
  575. return io.ErrUnexpectedEOF
  576. }
  577. b := dAtA[iNdEx]
  578. iNdEx++
  579. wire |= (uint64(b) & 0x7F) << shift
  580. if b < 0x80 {
  581. break
  582. }
  583. }
  584. fieldNum := int32(wire >> 3)
  585. wireType := int(wire & 0x7)
  586. if wireType == 4 {
  587. return fmt.Errorf("proto: ActMissionGroup: wiretype end group for non-group")
  588. }
  589. if fieldNum <= 0 {
  590. return fmt.Errorf("proto: ActMissionGroup: illegal tag %d (wire type %d)", fieldNum, wire)
  591. }
  592. switch fieldNum {
  593. case 1:
  594. if wireType != 0 {
  595. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  596. }
  597. m.ID = 0
  598. for shift := uint(0); ; shift += 7 {
  599. if shift >= 64 {
  600. return ErrIntOverflowMissiongroup
  601. }
  602. if iNdEx >= l {
  603. return io.ErrUnexpectedEOF
  604. }
  605. b := dAtA[iNdEx]
  606. iNdEx++
  607. m.ID |= (int64(b) & 0x7F) << shift
  608. if b < 0x80 {
  609. break
  610. }
  611. }
  612. case 2:
  613. if wireType != 0 {
  614. return fmt.Errorf("proto: wrong wireType = %d for field Lid", wireType)
  615. }
  616. m.Lid = 0
  617. for shift := uint(0); ; shift += 7 {
  618. if shift >= 64 {
  619. return ErrIntOverflowMissiongroup
  620. }
  621. if iNdEx >= l {
  622. return io.ErrUnexpectedEOF
  623. }
  624. b := dAtA[iNdEx]
  625. iNdEx++
  626. m.Lid |= (int64(b) & 0x7F) << shift
  627. if b < 0x80 {
  628. break
  629. }
  630. }
  631. case 3:
  632. if wireType != 0 {
  633. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  634. }
  635. m.Mid = 0
  636. for shift := uint(0); ; shift += 7 {
  637. if shift >= 64 {
  638. return ErrIntOverflowMissiongroup
  639. }
  640. if iNdEx >= l {
  641. return io.ErrUnexpectedEOF
  642. }
  643. b := dAtA[iNdEx]
  644. iNdEx++
  645. m.Mid |= (int64(b) & 0x7F) << shift
  646. if b < 0x80 {
  647. break
  648. }
  649. }
  650. case 4:
  651. if wireType != 0 {
  652. return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType)
  653. }
  654. m.Action = 0
  655. for shift := uint(0); ; shift += 7 {
  656. if shift >= 64 {
  657. return ErrIntOverflowMissiongroup
  658. }
  659. if iNdEx >= l {
  660. return io.ErrUnexpectedEOF
  661. }
  662. b := dAtA[iNdEx]
  663. iNdEx++
  664. m.Action |= (int64(b) & 0x7F) << shift
  665. if b < 0x80 {
  666. break
  667. }
  668. }
  669. case 5:
  670. if wireType != 0 {
  671. return fmt.Errorf("proto: wrong wireType = %d for field Ctime", wireType)
  672. }
  673. m.Ctime = 0
  674. for shift := uint(0); ; shift += 7 {
  675. if shift >= 64 {
  676. return ErrIntOverflowMissiongroup
  677. }
  678. if iNdEx >= l {
  679. return io.ErrUnexpectedEOF
  680. }
  681. b := dAtA[iNdEx]
  682. iNdEx++
  683. m.Ctime |= (go_common_library_time.Time(b) & 0x7F) << shift
  684. if b < 0x80 {
  685. break
  686. }
  687. }
  688. case 6:
  689. if wireType != 0 {
  690. return fmt.Errorf("proto: wrong wireType = %d for field Mtime", wireType)
  691. }
  692. m.Mtime = 0
  693. for shift := uint(0); ; shift += 7 {
  694. if shift >= 64 {
  695. return ErrIntOverflowMissiongroup
  696. }
  697. if iNdEx >= l {
  698. return io.ErrUnexpectedEOF
  699. }
  700. b := dAtA[iNdEx]
  701. iNdEx++
  702. m.Mtime |= (go_common_library_time.Time(b) & 0x7F) << shift
  703. if b < 0x80 {
  704. break
  705. }
  706. }
  707. case 7:
  708. if wireType != 0 {
  709. return fmt.Errorf("proto: wrong wireType = %d for field Sid", wireType)
  710. }
  711. m.Sid = 0
  712. for shift := uint(0); ; shift += 7 {
  713. if shift >= 64 {
  714. return ErrIntOverflowMissiongroup
  715. }
  716. if iNdEx >= l {
  717. return io.ErrUnexpectedEOF
  718. }
  719. b := dAtA[iNdEx]
  720. iNdEx++
  721. m.Sid |= (int64(b) & 0x7F) << shift
  722. if b < 0x80 {
  723. break
  724. }
  725. }
  726. case 8:
  727. if wireType != 0 {
  728. return fmt.Errorf("proto: wrong wireType = %d for field IP", wireType)
  729. }
  730. m.IP = 0
  731. for shift := uint(0); ; shift += 7 {
  732. if shift >= 64 {
  733. return ErrIntOverflowMissiongroup
  734. }
  735. if iNdEx >= l {
  736. return io.ErrUnexpectedEOF
  737. }
  738. b := dAtA[iNdEx]
  739. iNdEx++
  740. m.IP |= (int64(b) & 0x7F) << shift
  741. if b < 0x80 {
  742. break
  743. }
  744. }
  745. case 9:
  746. if wireType != 2 {
  747. return fmt.Errorf("proto: wrong wireType = %d for field IPv6", wireType)
  748. }
  749. var byteLen int
  750. for shift := uint(0); ; shift += 7 {
  751. if shift >= 64 {
  752. return ErrIntOverflowMissiongroup
  753. }
  754. if iNdEx >= l {
  755. return io.ErrUnexpectedEOF
  756. }
  757. b := dAtA[iNdEx]
  758. iNdEx++
  759. byteLen |= (int(b) & 0x7F) << shift
  760. if b < 0x80 {
  761. break
  762. }
  763. }
  764. if byteLen < 0 {
  765. return ErrInvalidLengthMissiongroup
  766. }
  767. postIndex := iNdEx + byteLen
  768. if postIndex > l {
  769. return io.ErrUnexpectedEOF
  770. }
  771. m.IPv6 = append(m.IPv6[:0], dAtA[iNdEx:postIndex]...)
  772. if m.IPv6 == nil {
  773. m.IPv6 = []byte{}
  774. }
  775. iNdEx = postIndex
  776. default:
  777. iNdEx = preIndex
  778. skippy, err := skipMissiongroup(dAtA[iNdEx:])
  779. if err != nil {
  780. return err
  781. }
  782. if skippy < 0 {
  783. return ErrInvalidLengthMissiongroup
  784. }
  785. if (iNdEx + skippy) > l {
  786. return io.ErrUnexpectedEOF
  787. }
  788. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  789. iNdEx += skippy
  790. }
  791. }
  792. if iNdEx > l {
  793. return io.ErrUnexpectedEOF
  794. }
  795. return nil
  796. }
  797. func (m *ActMissionGroups) Unmarshal(dAtA []byte) error {
  798. l := len(dAtA)
  799. iNdEx := 0
  800. for iNdEx < l {
  801. preIndex := iNdEx
  802. var wire uint64
  803. for shift := uint(0); ; shift += 7 {
  804. if shift >= 64 {
  805. return ErrIntOverflowMissiongroup
  806. }
  807. if iNdEx >= l {
  808. return io.ErrUnexpectedEOF
  809. }
  810. b := dAtA[iNdEx]
  811. iNdEx++
  812. wire |= (uint64(b) & 0x7F) << shift
  813. if b < 0x80 {
  814. break
  815. }
  816. }
  817. fieldNum := int32(wire >> 3)
  818. wireType := int(wire & 0x7)
  819. if wireType == 4 {
  820. return fmt.Errorf("proto: ActMissionGroups: wiretype end group for non-group")
  821. }
  822. if fieldNum <= 0 {
  823. return fmt.Errorf("proto: ActMissionGroups: illegal tag %d (wire type %d)", fieldNum, wire)
  824. }
  825. switch fieldNum {
  826. case 1:
  827. if wireType != 2 {
  828. return fmt.Errorf("proto: wrong wireType = %d for field ActMissionGroups", wireType)
  829. }
  830. var msglen int
  831. for shift := uint(0); ; shift += 7 {
  832. if shift >= 64 {
  833. return ErrIntOverflowMissiongroup
  834. }
  835. if iNdEx >= l {
  836. return io.ErrUnexpectedEOF
  837. }
  838. b := dAtA[iNdEx]
  839. iNdEx++
  840. msglen |= (int(b) & 0x7F) << shift
  841. if b < 0x80 {
  842. break
  843. }
  844. }
  845. if msglen < 0 {
  846. return ErrInvalidLengthMissiongroup
  847. }
  848. postIndex := iNdEx + msglen
  849. if postIndex > l {
  850. return io.ErrUnexpectedEOF
  851. }
  852. m.ActMissionGroups = append(m.ActMissionGroups, &ActMissionGroup{})
  853. if err := m.ActMissionGroups[len(m.ActMissionGroups)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  854. return err
  855. }
  856. iNdEx = postIndex
  857. default:
  858. iNdEx = preIndex
  859. skippy, err := skipMissiongroup(dAtA[iNdEx:])
  860. if err != nil {
  861. return err
  862. }
  863. if skippy < 0 {
  864. return ErrInvalidLengthMissiongroup
  865. }
  866. if (iNdEx + skippy) > l {
  867. return io.ErrUnexpectedEOF
  868. }
  869. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  870. iNdEx += skippy
  871. }
  872. }
  873. if iNdEx > l {
  874. return io.ErrUnexpectedEOF
  875. }
  876. return nil
  877. }
  878. func skipMissiongroup(dAtA []byte) (n int, err error) {
  879. l := len(dAtA)
  880. iNdEx := 0
  881. for iNdEx < l {
  882. var wire uint64
  883. for shift := uint(0); ; shift += 7 {
  884. if shift >= 64 {
  885. return 0, ErrIntOverflowMissiongroup
  886. }
  887. if iNdEx >= l {
  888. return 0, io.ErrUnexpectedEOF
  889. }
  890. b := dAtA[iNdEx]
  891. iNdEx++
  892. wire |= (uint64(b) & 0x7F) << shift
  893. if b < 0x80 {
  894. break
  895. }
  896. }
  897. wireType := int(wire & 0x7)
  898. switch wireType {
  899. case 0:
  900. for shift := uint(0); ; shift += 7 {
  901. if shift >= 64 {
  902. return 0, ErrIntOverflowMissiongroup
  903. }
  904. if iNdEx >= l {
  905. return 0, io.ErrUnexpectedEOF
  906. }
  907. iNdEx++
  908. if dAtA[iNdEx-1] < 0x80 {
  909. break
  910. }
  911. }
  912. return iNdEx, nil
  913. case 1:
  914. iNdEx += 8
  915. return iNdEx, nil
  916. case 2:
  917. var length int
  918. for shift := uint(0); ; shift += 7 {
  919. if shift >= 64 {
  920. return 0, ErrIntOverflowMissiongroup
  921. }
  922. if iNdEx >= l {
  923. return 0, io.ErrUnexpectedEOF
  924. }
  925. b := dAtA[iNdEx]
  926. iNdEx++
  927. length |= (int(b) & 0x7F) << shift
  928. if b < 0x80 {
  929. break
  930. }
  931. }
  932. iNdEx += length
  933. if length < 0 {
  934. return 0, ErrInvalidLengthMissiongroup
  935. }
  936. return iNdEx, nil
  937. case 3:
  938. for {
  939. var innerWire uint64
  940. var start int = iNdEx
  941. for shift := uint(0); ; shift += 7 {
  942. if shift >= 64 {
  943. return 0, ErrIntOverflowMissiongroup
  944. }
  945. if iNdEx >= l {
  946. return 0, io.ErrUnexpectedEOF
  947. }
  948. b := dAtA[iNdEx]
  949. iNdEx++
  950. innerWire |= (uint64(b) & 0x7F) << shift
  951. if b < 0x80 {
  952. break
  953. }
  954. }
  955. innerWireType := int(innerWire & 0x7)
  956. if innerWireType == 4 {
  957. break
  958. }
  959. next, err := skipMissiongroup(dAtA[start:])
  960. if err != nil {
  961. return 0, err
  962. }
  963. iNdEx = start + next
  964. }
  965. return iNdEx, nil
  966. case 4:
  967. return iNdEx, nil
  968. case 5:
  969. iNdEx += 4
  970. return iNdEx, nil
  971. default:
  972. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  973. }
  974. }
  975. panic("unreachable")
  976. }
  977. var (
  978. ErrInvalidLengthMissiongroup = fmt.Errorf("proto: negative length found during unmarshaling")
  979. ErrIntOverflowMissiongroup = fmt.Errorf("proto: integer overflow")
  980. )
  981. func init() { proto.RegisterFile("missiongroup.proto", fileDescriptor_missiongroup_2ff59dc279cfd0a8) }
  982. var fileDescriptor_missiongroup_2ff59dc279cfd0a8 = []byte{
  983. // 406 bytes of a gzipped FileDescriptorProto
  984. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x92, 0x3d, 0x6b, 0xdc, 0x40,
  985. 0x10, 0x86, 0x6f, 0xf5, 0x65, 0x7b, 0x63, 0x88, 0xd9, 0x22, 0x6c, 0x3e, 0x90, 0x2e, 0xaa, 0xd4,
  986. 0x58, 0x82, 0x04, 0x5c, 0x06, 0x7c, 0x31, 0x04, 0x81, 0x05, 0xc7, 0x3a, 0x55, 0x3a, 0x7d, 0x45,
  987. 0x19, 0x72, 0x7b, 0x2b, 0xa4, 0x3d, 0x81, 0xff, 0x49, 0x7e, 0x92, 0x4b, 0x17, 0xa9, 0x45, 0x7c,
  988. 0xe9, 0xf4, 0x13, 0x02, 0x81, 0xb0, 0x2b, 0x87, 0xcb, 0x5d, 0x42, 0xb8, 0xce, 0xdd, 0xce, 0xfb,
  989. 0xce, 0x3b, 0xb0, 0xcf, 0x0c, 0x26, 0x1c, 0xda, 0x16, 0xc4, 0xb2, 0x6a, 0xc4, 0xaa, 0x0e, 0xeb,
  990. 0x46, 0x48, 0x41, 0x4e, 0xd2, 0x5c, 0x42, 0x07, 0xf2, 0x3a, 0x6c, 0xcb, 0xa6, 0x83, 0xbc, 0x7c,
  991. 0x76, 0x5a, 0x81, 0xfc, 0xb4, 0xca, 0xc2, 0x5c, 0xf0, 0xa8, 0x12, 0x95, 0x88, 0x74, 0x63, 0xb6,
  992. 0xfa, 0xa8, 0x2b, 0x5d, 0xe8, 0xd7, 0x38, 0xc0, 0xff, 0x89, 0xf0, 0x71, 0x32, 0xce, 0x7d, 0xa7,
  993. 0xe6, 0x92, 0x27, 0xd8, 0x88, 0x2f, 0x28, 0x9a, 0xa2, 0xc0, 0x9c, 0x39, 0x43, 0xef, 0x19, 0x50,
  994. 0x30, 0x23, 0xbe, 0x20, 0x4f, 0xb1, 0x79, 0x05, 0x05, 0x35, 0xb4, 0x71, 0x30, 0xf4, 0x9e, 0xd9,
  995. 0x42, 0xc1, 0x94, 0xa6, 0xac, 0x04, 0x0a, 0x6a, 0x6e, 0x2c, 0xae, 0xac, 0x04, 0x0a, 0xe2, 0x61,
  996. 0xfb, 0x4a, 0xa6, 0xb2, 0xa4, 0x96, 0x36, 0x8f, 0x86, 0xde, 0xb3, 0x5b, 0x25, 0xb0, 0x51, 0x27,
  997. 0x6f, 0xb0, 0xfd, 0x56, 0x02, 0x2f, 0xa9, 0xad, 0x1b, 0x02, 0xd5, 0x90, 0x2b, 0xe1, 0x47, 0xef,
  998. 0x3d, 0xaf, 0xc4, 0x69, 0x2e, 0x38, 0x17, 0xcb, 0x68, 0x01, 0x59, 0x93, 0x36, 0xd7, 0x91, 0x72,
  999. 0xc2, 0xf7, 0xc0, 0x4b, 0x36, 0xc6, 0x54, 0x3e, 0xd1, 0x79, 0x67, 0x93, 0xe7, 0x7b, 0xe5, 0x75,
  1000. 0xcc, 0xff, 0x6a, 0xe0, 0xc7, 0xe7, 0xb9, 0xdc, 0x17, 0xc1, 0xe5, 0x36, 0x82, 0x85, 0xfa, 0xe7,
  1001. 0xe5, 0xff, 0x11, 0xf8, 0xd8, 0x39, 0xcf, 0x25, 0x88, 0xe5, 0x3d, 0x03, 0x3c, 0xf4, 0x9e, 0x93,
  1002. 0x6a, 0x85, 0xdd, 0x3b, 0x0f, 0x4d, 0xe1, 0xf7, 0x72, 0x0f, 0xfe, 0xb1, 0x5c, 0x05, 0x63, 0x4e,
  1003. 0x0f, 0xff, 0x80, 0x51, 0x33, 0x23, 0x9e, 0x93, 0x17, 0xd8, 0x8a, 0xe7, 0xdd, 0x19, 0x3d, 0x9a,
  1004. 0xa2, 0xe0, 0x78, 0x76, 0x38, 0xf4, 0x9e, 0x05, 0x75, 0x77, 0xc6, 0xb4, 0xea, 0xa7, 0xf8, 0x64,
  1005. 0x87, 0x6a, 0x4b, 0x12, 0xac, 0xae, 0x75, 0x4b, 0xa3, 0x68, 0x6a, 0x06, 0x8f, 0x5e, 0xbd, 0x0c,
  1006. 0x77, 0xcf, 0x38, 0xdc, 0x49, 0xb3, 0xbf, 0xa2, 0x33, 0xf7, 0xe6, 0xce, 0x9d, 0xdc, 0xde, 0xb9,
  1007. 0x93, 0x9b, 0xb5, 0x8b, 0x6e, 0xd7, 0x2e, 0xfa, 0xb6, 0x76, 0xd1, 0x97, 0xef, 0xee, 0xe4, 0x83,
  1008. 0xb5, 0x80, 0xcf, 0x65, 0xe6, 0xe8, 0x03, 0x7f, 0xfd, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x17, 0x1e,
  1009. 0x9e, 0xd1, 0x37, 0x03, 0x00, 0x00,
  1010. }