GrayRule.pb.go 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: v1/GrayRule.proto
  3. package v1
  4. import proto "github.com/gogo/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/gogo/protobuf/gogoproto"
  8. import io "io"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  18. type GrayRuleGetByMarkReq struct {
  19. //
  20. Mark string `protobuf:"bytes,1,opt,name=mark,proto3" json:"mark"`
  21. }
  22. func (m *GrayRuleGetByMarkReq) Reset() { *m = GrayRuleGetByMarkReq{} }
  23. func (m *GrayRuleGetByMarkReq) String() string { return proto.CompactTextString(m) }
  24. func (*GrayRuleGetByMarkReq) ProtoMessage() {}
  25. func (*GrayRuleGetByMarkReq) Descriptor() ([]byte, []int) {
  26. return fileDescriptor_GrayRule_7e8c31590802899d, []int{0}
  27. }
  28. func (m *GrayRuleGetByMarkReq) XXX_Unmarshal(b []byte) error {
  29. return m.Unmarshal(b)
  30. }
  31. func (m *GrayRuleGetByMarkReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  32. if deterministic {
  33. return xxx_messageInfo_GrayRuleGetByMarkReq.Marshal(b, m, deterministic)
  34. } else {
  35. b = b[:cap(b)]
  36. n, err := m.MarshalTo(b)
  37. if err != nil {
  38. return nil, err
  39. }
  40. return b[:n], nil
  41. }
  42. }
  43. func (dst *GrayRuleGetByMarkReq) XXX_Merge(src proto.Message) {
  44. xxx_messageInfo_GrayRuleGetByMarkReq.Merge(dst, src)
  45. }
  46. func (m *GrayRuleGetByMarkReq) XXX_Size() int {
  47. return m.Size()
  48. }
  49. func (m *GrayRuleGetByMarkReq) XXX_DiscardUnknown() {
  50. xxx_messageInfo_GrayRuleGetByMarkReq.DiscardUnknown(m)
  51. }
  52. var xxx_messageInfo_GrayRuleGetByMarkReq proto.InternalMessageInfo
  53. func (m *GrayRuleGetByMarkReq) GetMark() string {
  54. if m != nil {
  55. return m.Mark
  56. }
  57. return ""
  58. }
  59. type GrayRuleGetByMarkResp struct {
  60. // 返回code
  61. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  62. // 返回msg
  63. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  64. //
  65. Data *GrayRuleGetByMarkResp_Data `protobuf:"bytes,3,opt,name=data" json:"data"`
  66. }
  67. func (m *GrayRuleGetByMarkResp) Reset() { *m = GrayRuleGetByMarkResp{} }
  68. func (m *GrayRuleGetByMarkResp) String() string { return proto.CompactTextString(m) }
  69. func (*GrayRuleGetByMarkResp) ProtoMessage() {}
  70. func (*GrayRuleGetByMarkResp) Descriptor() ([]byte, []int) {
  71. return fileDescriptor_GrayRule_7e8c31590802899d, []int{1}
  72. }
  73. func (m *GrayRuleGetByMarkResp) XXX_Unmarshal(b []byte) error {
  74. return m.Unmarshal(b)
  75. }
  76. func (m *GrayRuleGetByMarkResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  77. if deterministic {
  78. return xxx_messageInfo_GrayRuleGetByMarkResp.Marshal(b, m, deterministic)
  79. } else {
  80. b = b[:cap(b)]
  81. n, err := m.MarshalTo(b)
  82. if err != nil {
  83. return nil, err
  84. }
  85. return b[:n], nil
  86. }
  87. }
  88. func (dst *GrayRuleGetByMarkResp) XXX_Merge(src proto.Message) {
  89. xxx_messageInfo_GrayRuleGetByMarkResp.Merge(dst, src)
  90. }
  91. func (m *GrayRuleGetByMarkResp) XXX_Size() int {
  92. return m.Size()
  93. }
  94. func (m *GrayRuleGetByMarkResp) XXX_DiscardUnknown() {
  95. xxx_messageInfo_GrayRuleGetByMarkResp.DiscardUnknown(m)
  96. }
  97. var xxx_messageInfo_GrayRuleGetByMarkResp proto.InternalMessageInfo
  98. func (m *GrayRuleGetByMarkResp) GetCode() int64 {
  99. if m != nil {
  100. return m.Code
  101. }
  102. return 0
  103. }
  104. func (m *GrayRuleGetByMarkResp) GetMsg() string {
  105. if m != nil {
  106. return m.Msg
  107. }
  108. return ""
  109. }
  110. func (m *GrayRuleGetByMarkResp) GetData() *GrayRuleGetByMarkResp_Data {
  111. if m != nil {
  112. return m.Data
  113. }
  114. return nil
  115. }
  116. type GrayRuleGetByMarkResp_Data struct {
  117. //
  118. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  119. //
  120. Mark string `protobuf:"bytes,2,opt,name=mark,proto3" json:"mark"`
  121. //
  122. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name"`
  123. //
  124. Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content"`
  125. }
  126. func (m *GrayRuleGetByMarkResp_Data) Reset() { *m = GrayRuleGetByMarkResp_Data{} }
  127. func (m *GrayRuleGetByMarkResp_Data) String() string { return proto.CompactTextString(m) }
  128. func (*GrayRuleGetByMarkResp_Data) ProtoMessage() {}
  129. func (*GrayRuleGetByMarkResp_Data) Descriptor() ([]byte, []int) {
  130. return fileDescriptor_GrayRule_7e8c31590802899d, []int{1, 0}
  131. }
  132. func (m *GrayRuleGetByMarkResp_Data) XXX_Unmarshal(b []byte) error {
  133. return m.Unmarshal(b)
  134. }
  135. func (m *GrayRuleGetByMarkResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  136. if deterministic {
  137. return xxx_messageInfo_GrayRuleGetByMarkResp_Data.Marshal(b, m, deterministic)
  138. } else {
  139. b = b[:cap(b)]
  140. n, err := m.MarshalTo(b)
  141. if err != nil {
  142. return nil, err
  143. }
  144. return b[:n], nil
  145. }
  146. }
  147. func (dst *GrayRuleGetByMarkResp_Data) XXX_Merge(src proto.Message) {
  148. xxx_messageInfo_GrayRuleGetByMarkResp_Data.Merge(dst, src)
  149. }
  150. func (m *GrayRuleGetByMarkResp_Data) XXX_Size() int {
  151. return m.Size()
  152. }
  153. func (m *GrayRuleGetByMarkResp_Data) XXX_DiscardUnknown() {
  154. xxx_messageInfo_GrayRuleGetByMarkResp_Data.DiscardUnknown(m)
  155. }
  156. var xxx_messageInfo_GrayRuleGetByMarkResp_Data proto.InternalMessageInfo
  157. func (m *GrayRuleGetByMarkResp_Data) GetId() int64 {
  158. if m != nil {
  159. return m.Id
  160. }
  161. return 0
  162. }
  163. func (m *GrayRuleGetByMarkResp_Data) GetMark() string {
  164. if m != nil {
  165. return m.Mark
  166. }
  167. return ""
  168. }
  169. func (m *GrayRuleGetByMarkResp_Data) GetName() string {
  170. if m != nil {
  171. return m.Name
  172. }
  173. return ""
  174. }
  175. func (m *GrayRuleGetByMarkResp_Data) GetContent() string {
  176. if m != nil {
  177. return m.Content
  178. }
  179. return ""
  180. }
  181. func init() {
  182. proto.RegisterType((*GrayRuleGetByMarkReq)(nil), "userext.v1.GrayRuleGetByMarkReq")
  183. proto.RegisterType((*GrayRuleGetByMarkResp)(nil), "userext.v1.GrayRuleGetByMarkResp")
  184. proto.RegisterType((*GrayRuleGetByMarkResp_Data)(nil), "userext.v1.GrayRuleGetByMarkResp.Data")
  185. }
  186. func (m *GrayRuleGetByMarkReq) Marshal() (dAtA []byte, err error) {
  187. size := m.Size()
  188. dAtA = make([]byte, size)
  189. n, err := m.MarshalTo(dAtA)
  190. if err != nil {
  191. return nil, err
  192. }
  193. return dAtA[:n], nil
  194. }
  195. func (m *GrayRuleGetByMarkReq) MarshalTo(dAtA []byte) (int, error) {
  196. var i int
  197. _ = i
  198. var l int
  199. _ = l
  200. if len(m.Mark) > 0 {
  201. dAtA[i] = 0xa
  202. i++
  203. i = encodeVarintGrayRule(dAtA, i, uint64(len(m.Mark)))
  204. i += copy(dAtA[i:], m.Mark)
  205. }
  206. return i, nil
  207. }
  208. func (m *GrayRuleGetByMarkResp) Marshal() (dAtA []byte, err error) {
  209. size := m.Size()
  210. dAtA = make([]byte, size)
  211. n, err := m.MarshalTo(dAtA)
  212. if err != nil {
  213. return nil, err
  214. }
  215. return dAtA[:n], nil
  216. }
  217. func (m *GrayRuleGetByMarkResp) MarshalTo(dAtA []byte) (int, error) {
  218. var i int
  219. _ = i
  220. var l int
  221. _ = l
  222. if m.Code != 0 {
  223. dAtA[i] = 0x8
  224. i++
  225. i = encodeVarintGrayRule(dAtA, i, uint64(m.Code))
  226. }
  227. if len(m.Msg) > 0 {
  228. dAtA[i] = 0x12
  229. i++
  230. i = encodeVarintGrayRule(dAtA, i, uint64(len(m.Msg)))
  231. i += copy(dAtA[i:], m.Msg)
  232. }
  233. if m.Data != nil {
  234. dAtA[i] = 0x1a
  235. i++
  236. i = encodeVarintGrayRule(dAtA, i, uint64(m.Data.Size()))
  237. n1, err := m.Data.MarshalTo(dAtA[i:])
  238. if err != nil {
  239. return 0, err
  240. }
  241. i += n1
  242. }
  243. return i, nil
  244. }
  245. func (m *GrayRuleGetByMarkResp_Data) Marshal() (dAtA []byte, err error) {
  246. size := m.Size()
  247. dAtA = make([]byte, size)
  248. n, err := m.MarshalTo(dAtA)
  249. if err != nil {
  250. return nil, err
  251. }
  252. return dAtA[:n], nil
  253. }
  254. func (m *GrayRuleGetByMarkResp_Data) MarshalTo(dAtA []byte) (int, error) {
  255. var i int
  256. _ = i
  257. var l int
  258. _ = l
  259. if m.Id != 0 {
  260. dAtA[i] = 0x8
  261. i++
  262. i = encodeVarintGrayRule(dAtA, i, uint64(m.Id))
  263. }
  264. if len(m.Mark) > 0 {
  265. dAtA[i] = 0x12
  266. i++
  267. i = encodeVarintGrayRule(dAtA, i, uint64(len(m.Mark)))
  268. i += copy(dAtA[i:], m.Mark)
  269. }
  270. if len(m.Name) > 0 {
  271. dAtA[i] = 0x1a
  272. i++
  273. i = encodeVarintGrayRule(dAtA, i, uint64(len(m.Name)))
  274. i += copy(dAtA[i:], m.Name)
  275. }
  276. if len(m.Content) > 0 {
  277. dAtA[i] = 0x22
  278. i++
  279. i = encodeVarintGrayRule(dAtA, i, uint64(len(m.Content)))
  280. i += copy(dAtA[i:], m.Content)
  281. }
  282. return i, nil
  283. }
  284. func encodeVarintGrayRule(dAtA []byte, offset int, v uint64) int {
  285. for v >= 1<<7 {
  286. dAtA[offset] = uint8(v&0x7f | 0x80)
  287. v >>= 7
  288. offset++
  289. }
  290. dAtA[offset] = uint8(v)
  291. return offset + 1
  292. }
  293. func (m *GrayRuleGetByMarkReq) Size() (n int) {
  294. if m == nil {
  295. return 0
  296. }
  297. var l int
  298. _ = l
  299. l = len(m.Mark)
  300. if l > 0 {
  301. n += 1 + l + sovGrayRule(uint64(l))
  302. }
  303. return n
  304. }
  305. func (m *GrayRuleGetByMarkResp) Size() (n int) {
  306. if m == nil {
  307. return 0
  308. }
  309. var l int
  310. _ = l
  311. if m.Code != 0 {
  312. n += 1 + sovGrayRule(uint64(m.Code))
  313. }
  314. l = len(m.Msg)
  315. if l > 0 {
  316. n += 1 + l + sovGrayRule(uint64(l))
  317. }
  318. if m.Data != nil {
  319. l = m.Data.Size()
  320. n += 1 + l + sovGrayRule(uint64(l))
  321. }
  322. return n
  323. }
  324. func (m *GrayRuleGetByMarkResp_Data) Size() (n int) {
  325. if m == nil {
  326. return 0
  327. }
  328. var l int
  329. _ = l
  330. if m.Id != 0 {
  331. n += 1 + sovGrayRule(uint64(m.Id))
  332. }
  333. l = len(m.Mark)
  334. if l > 0 {
  335. n += 1 + l + sovGrayRule(uint64(l))
  336. }
  337. l = len(m.Name)
  338. if l > 0 {
  339. n += 1 + l + sovGrayRule(uint64(l))
  340. }
  341. l = len(m.Content)
  342. if l > 0 {
  343. n += 1 + l + sovGrayRule(uint64(l))
  344. }
  345. return n
  346. }
  347. func sovGrayRule(x uint64) (n int) {
  348. for {
  349. n++
  350. x >>= 7
  351. if x == 0 {
  352. break
  353. }
  354. }
  355. return n
  356. }
  357. func sozGrayRule(x uint64) (n int) {
  358. return sovGrayRule(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  359. }
  360. func (m *GrayRuleGetByMarkReq) Unmarshal(dAtA []byte) error {
  361. l := len(dAtA)
  362. iNdEx := 0
  363. for iNdEx < l {
  364. preIndex := iNdEx
  365. var wire uint64
  366. for shift := uint(0); ; shift += 7 {
  367. if shift >= 64 {
  368. return ErrIntOverflowGrayRule
  369. }
  370. if iNdEx >= l {
  371. return io.ErrUnexpectedEOF
  372. }
  373. b := dAtA[iNdEx]
  374. iNdEx++
  375. wire |= (uint64(b) & 0x7F) << shift
  376. if b < 0x80 {
  377. break
  378. }
  379. }
  380. fieldNum := int32(wire >> 3)
  381. wireType := int(wire & 0x7)
  382. if wireType == 4 {
  383. return fmt.Errorf("proto: GrayRuleGetByMarkReq: wiretype end group for non-group")
  384. }
  385. if fieldNum <= 0 {
  386. return fmt.Errorf("proto: GrayRuleGetByMarkReq: illegal tag %d (wire type %d)", fieldNum, wire)
  387. }
  388. switch fieldNum {
  389. case 1:
  390. if wireType != 2 {
  391. return fmt.Errorf("proto: wrong wireType = %d for field Mark", wireType)
  392. }
  393. var stringLen uint64
  394. for shift := uint(0); ; shift += 7 {
  395. if shift >= 64 {
  396. return ErrIntOverflowGrayRule
  397. }
  398. if iNdEx >= l {
  399. return io.ErrUnexpectedEOF
  400. }
  401. b := dAtA[iNdEx]
  402. iNdEx++
  403. stringLen |= (uint64(b) & 0x7F) << shift
  404. if b < 0x80 {
  405. break
  406. }
  407. }
  408. intStringLen := int(stringLen)
  409. if intStringLen < 0 {
  410. return ErrInvalidLengthGrayRule
  411. }
  412. postIndex := iNdEx + intStringLen
  413. if postIndex > l {
  414. return io.ErrUnexpectedEOF
  415. }
  416. m.Mark = string(dAtA[iNdEx:postIndex])
  417. iNdEx = postIndex
  418. default:
  419. iNdEx = preIndex
  420. skippy, err := skipGrayRule(dAtA[iNdEx:])
  421. if err != nil {
  422. return err
  423. }
  424. if skippy < 0 {
  425. return ErrInvalidLengthGrayRule
  426. }
  427. if (iNdEx + skippy) > l {
  428. return io.ErrUnexpectedEOF
  429. }
  430. iNdEx += skippy
  431. }
  432. }
  433. if iNdEx > l {
  434. return io.ErrUnexpectedEOF
  435. }
  436. return nil
  437. }
  438. func (m *GrayRuleGetByMarkResp) Unmarshal(dAtA []byte) error {
  439. l := len(dAtA)
  440. iNdEx := 0
  441. for iNdEx < l {
  442. preIndex := iNdEx
  443. var wire uint64
  444. for shift := uint(0); ; shift += 7 {
  445. if shift >= 64 {
  446. return ErrIntOverflowGrayRule
  447. }
  448. if iNdEx >= l {
  449. return io.ErrUnexpectedEOF
  450. }
  451. b := dAtA[iNdEx]
  452. iNdEx++
  453. wire |= (uint64(b) & 0x7F) << shift
  454. if b < 0x80 {
  455. break
  456. }
  457. }
  458. fieldNum := int32(wire >> 3)
  459. wireType := int(wire & 0x7)
  460. if wireType == 4 {
  461. return fmt.Errorf("proto: GrayRuleGetByMarkResp: wiretype end group for non-group")
  462. }
  463. if fieldNum <= 0 {
  464. return fmt.Errorf("proto: GrayRuleGetByMarkResp: illegal tag %d (wire type %d)", fieldNum, wire)
  465. }
  466. switch fieldNum {
  467. case 1:
  468. if wireType != 0 {
  469. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  470. }
  471. m.Code = 0
  472. for shift := uint(0); ; shift += 7 {
  473. if shift >= 64 {
  474. return ErrIntOverflowGrayRule
  475. }
  476. if iNdEx >= l {
  477. return io.ErrUnexpectedEOF
  478. }
  479. b := dAtA[iNdEx]
  480. iNdEx++
  481. m.Code |= (int64(b) & 0x7F) << shift
  482. if b < 0x80 {
  483. break
  484. }
  485. }
  486. case 2:
  487. if wireType != 2 {
  488. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  489. }
  490. var stringLen uint64
  491. for shift := uint(0); ; shift += 7 {
  492. if shift >= 64 {
  493. return ErrIntOverflowGrayRule
  494. }
  495. if iNdEx >= l {
  496. return io.ErrUnexpectedEOF
  497. }
  498. b := dAtA[iNdEx]
  499. iNdEx++
  500. stringLen |= (uint64(b) & 0x7F) << shift
  501. if b < 0x80 {
  502. break
  503. }
  504. }
  505. intStringLen := int(stringLen)
  506. if intStringLen < 0 {
  507. return ErrInvalidLengthGrayRule
  508. }
  509. postIndex := iNdEx + intStringLen
  510. if postIndex > l {
  511. return io.ErrUnexpectedEOF
  512. }
  513. m.Msg = string(dAtA[iNdEx:postIndex])
  514. iNdEx = postIndex
  515. case 3:
  516. if wireType != 2 {
  517. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  518. }
  519. var msglen int
  520. for shift := uint(0); ; shift += 7 {
  521. if shift >= 64 {
  522. return ErrIntOverflowGrayRule
  523. }
  524. if iNdEx >= l {
  525. return io.ErrUnexpectedEOF
  526. }
  527. b := dAtA[iNdEx]
  528. iNdEx++
  529. msglen |= (int(b) & 0x7F) << shift
  530. if b < 0x80 {
  531. break
  532. }
  533. }
  534. if msglen < 0 {
  535. return ErrInvalidLengthGrayRule
  536. }
  537. postIndex := iNdEx + msglen
  538. if postIndex > l {
  539. return io.ErrUnexpectedEOF
  540. }
  541. if m.Data == nil {
  542. m.Data = &GrayRuleGetByMarkResp_Data{}
  543. }
  544. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  545. return err
  546. }
  547. iNdEx = postIndex
  548. default:
  549. iNdEx = preIndex
  550. skippy, err := skipGrayRule(dAtA[iNdEx:])
  551. if err != nil {
  552. return err
  553. }
  554. if skippy < 0 {
  555. return ErrInvalidLengthGrayRule
  556. }
  557. if (iNdEx + skippy) > l {
  558. return io.ErrUnexpectedEOF
  559. }
  560. iNdEx += skippy
  561. }
  562. }
  563. if iNdEx > l {
  564. return io.ErrUnexpectedEOF
  565. }
  566. return nil
  567. }
  568. func (m *GrayRuleGetByMarkResp_Data) Unmarshal(dAtA []byte) error {
  569. l := len(dAtA)
  570. iNdEx := 0
  571. for iNdEx < l {
  572. preIndex := iNdEx
  573. var wire uint64
  574. for shift := uint(0); ; shift += 7 {
  575. if shift >= 64 {
  576. return ErrIntOverflowGrayRule
  577. }
  578. if iNdEx >= l {
  579. return io.ErrUnexpectedEOF
  580. }
  581. b := dAtA[iNdEx]
  582. iNdEx++
  583. wire |= (uint64(b) & 0x7F) << shift
  584. if b < 0x80 {
  585. break
  586. }
  587. }
  588. fieldNum := int32(wire >> 3)
  589. wireType := int(wire & 0x7)
  590. if wireType == 4 {
  591. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  592. }
  593. if fieldNum <= 0 {
  594. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  595. }
  596. switch fieldNum {
  597. case 1:
  598. if wireType != 0 {
  599. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  600. }
  601. m.Id = 0
  602. for shift := uint(0); ; shift += 7 {
  603. if shift >= 64 {
  604. return ErrIntOverflowGrayRule
  605. }
  606. if iNdEx >= l {
  607. return io.ErrUnexpectedEOF
  608. }
  609. b := dAtA[iNdEx]
  610. iNdEx++
  611. m.Id |= (int64(b) & 0x7F) << shift
  612. if b < 0x80 {
  613. break
  614. }
  615. }
  616. case 2:
  617. if wireType != 2 {
  618. return fmt.Errorf("proto: wrong wireType = %d for field Mark", wireType)
  619. }
  620. var stringLen uint64
  621. for shift := uint(0); ; shift += 7 {
  622. if shift >= 64 {
  623. return ErrIntOverflowGrayRule
  624. }
  625. if iNdEx >= l {
  626. return io.ErrUnexpectedEOF
  627. }
  628. b := dAtA[iNdEx]
  629. iNdEx++
  630. stringLen |= (uint64(b) & 0x7F) << shift
  631. if b < 0x80 {
  632. break
  633. }
  634. }
  635. intStringLen := int(stringLen)
  636. if intStringLen < 0 {
  637. return ErrInvalidLengthGrayRule
  638. }
  639. postIndex := iNdEx + intStringLen
  640. if postIndex > l {
  641. return io.ErrUnexpectedEOF
  642. }
  643. m.Mark = string(dAtA[iNdEx:postIndex])
  644. iNdEx = postIndex
  645. case 3:
  646. if wireType != 2 {
  647. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  648. }
  649. var stringLen uint64
  650. for shift := uint(0); ; shift += 7 {
  651. if shift >= 64 {
  652. return ErrIntOverflowGrayRule
  653. }
  654. if iNdEx >= l {
  655. return io.ErrUnexpectedEOF
  656. }
  657. b := dAtA[iNdEx]
  658. iNdEx++
  659. stringLen |= (uint64(b) & 0x7F) << shift
  660. if b < 0x80 {
  661. break
  662. }
  663. }
  664. intStringLen := int(stringLen)
  665. if intStringLen < 0 {
  666. return ErrInvalidLengthGrayRule
  667. }
  668. postIndex := iNdEx + intStringLen
  669. if postIndex > l {
  670. return io.ErrUnexpectedEOF
  671. }
  672. m.Name = string(dAtA[iNdEx:postIndex])
  673. iNdEx = postIndex
  674. case 4:
  675. if wireType != 2 {
  676. return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType)
  677. }
  678. var stringLen uint64
  679. for shift := uint(0); ; shift += 7 {
  680. if shift >= 64 {
  681. return ErrIntOverflowGrayRule
  682. }
  683. if iNdEx >= l {
  684. return io.ErrUnexpectedEOF
  685. }
  686. b := dAtA[iNdEx]
  687. iNdEx++
  688. stringLen |= (uint64(b) & 0x7F) << shift
  689. if b < 0x80 {
  690. break
  691. }
  692. }
  693. intStringLen := int(stringLen)
  694. if intStringLen < 0 {
  695. return ErrInvalidLengthGrayRule
  696. }
  697. postIndex := iNdEx + intStringLen
  698. if postIndex > l {
  699. return io.ErrUnexpectedEOF
  700. }
  701. m.Content = string(dAtA[iNdEx:postIndex])
  702. iNdEx = postIndex
  703. default:
  704. iNdEx = preIndex
  705. skippy, err := skipGrayRule(dAtA[iNdEx:])
  706. if err != nil {
  707. return err
  708. }
  709. if skippy < 0 {
  710. return ErrInvalidLengthGrayRule
  711. }
  712. if (iNdEx + skippy) > l {
  713. return io.ErrUnexpectedEOF
  714. }
  715. iNdEx += skippy
  716. }
  717. }
  718. if iNdEx > l {
  719. return io.ErrUnexpectedEOF
  720. }
  721. return nil
  722. }
  723. func skipGrayRule(dAtA []byte) (n int, err error) {
  724. l := len(dAtA)
  725. iNdEx := 0
  726. for iNdEx < l {
  727. var wire uint64
  728. for shift := uint(0); ; shift += 7 {
  729. if shift >= 64 {
  730. return 0, ErrIntOverflowGrayRule
  731. }
  732. if iNdEx >= l {
  733. return 0, io.ErrUnexpectedEOF
  734. }
  735. b := dAtA[iNdEx]
  736. iNdEx++
  737. wire |= (uint64(b) & 0x7F) << shift
  738. if b < 0x80 {
  739. break
  740. }
  741. }
  742. wireType := int(wire & 0x7)
  743. switch wireType {
  744. case 0:
  745. for shift := uint(0); ; shift += 7 {
  746. if shift >= 64 {
  747. return 0, ErrIntOverflowGrayRule
  748. }
  749. if iNdEx >= l {
  750. return 0, io.ErrUnexpectedEOF
  751. }
  752. iNdEx++
  753. if dAtA[iNdEx-1] < 0x80 {
  754. break
  755. }
  756. }
  757. return iNdEx, nil
  758. case 1:
  759. iNdEx += 8
  760. return iNdEx, nil
  761. case 2:
  762. var length int
  763. for shift := uint(0); ; shift += 7 {
  764. if shift >= 64 {
  765. return 0, ErrIntOverflowGrayRule
  766. }
  767. if iNdEx >= l {
  768. return 0, io.ErrUnexpectedEOF
  769. }
  770. b := dAtA[iNdEx]
  771. iNdEx++
  772. length |= (int(b) & 0x7F) << shift
  773. if b < 0x80 {
  774. break
  775. }
  776. }
  777. iNdEx += length
  778. if length < 0 {
  779. return 0, ErrInvalidLengthGrayRule
  780. }
  781. return iNdEx, nil
  782. case 3:
  783. for {
  784. var innerWire uint64
  785. var start int = iNdEx
  786. for shift := uint(0); ; shift += 7 {
  787. if shift >= 64 {
  788. return 0, ErrIntOverflowGrayRule
  789. }
  790. if iNdEx >= l {
  791. return 0, io.ErrUnexpectedEOF
  792. }
  793. b := dAtA[iNdEx]
  794. iNdEx++
  795. innerWire |= (uint64(b) & 0x7F) << shift
  796. if b < 0x80 {
  797. break
  798. }
  799. }
  800. innerWireType := int(innerWire & 0x7)
  801. if innerWireType == 4 {
  802. break
  803. }
  804. next, err := skipGrayRule(dAtA[start:])
  805. if err != nil {
  806. return 0, err
  807. }
  808. iNdEx = start + next
  809. }
  810. return iNdEx, nil
  811. case 4:
  812. return iNdEx, nil
  813. case 5:
  814. iNdEx += 4
  815. return iNdEx, nil
  816. default:
  817. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  818. }
  819. }
  820. panic("unreachable")
  821. }
  822. var (
  823. ErrInvalidLengthGrayRule = fmt.Errorf("proto: negative length found during unmarshaling")
  824. ErrIntOverflowGrayRule = fmt.Errorf("proto: integer overflow")
  825. )
  826. func init() { proto.RegisterFile("v1/GrayRule.proto", fileDescriptor_GrayRule_7e8c31590802899d) }
  827. var fileDescriptor_GrayRule_7e8c31590802899d = []byte{
  828. // 333 bytes of a gzipped FileDescriptorProto
  829. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x51, 0x4d, 0x4f, 0xc2, 0x40,
  830. 0x10, 0x65, 0x97, 0x86, 0x8f, 0xe1, 0xe4, 0x46, 0x4d, 0x25, 0xa4, 0x45, 0x12, 0x0d, 0x17, 0x4b,
  831. 0x40, 0x7f, 0x01, 0x21, 0xe1, 0x64, 0x62, 0xf6, 0x68, 0xbc, 0x2c, 0x74, 0xad, 0x0d, 0x96, 0x85,
  832. 0xb2, 0x25, 0x72, 0xf4, 0x1f, 0x78, 0xf6, 0x17, 0x79, 0xe4, 0xe8, 0xa9, 0x31, 0x70, 0xeb, 0xaf,
  833. 0x30, 0x3b, 0x50, 0xbd, 0x90, 0x70, 0x79, 0x99, 0xb7, 0x33, 0x6f, 0xe6, 0xbd, 0x2c, 0x9c, 0x2c,
  834. 0xbb, 0x9d, 0x61, 0x2c, 0x56, 0x3c, 0x79, 0x95, 0xde, 0x2c, 0x56, 0x5a, 0x31, 0x48, 0x16, 0x32,
  835. 0x96, 0x6f, 0xda, 0x5b, 0x76, 0xeb, 0x37, 0x41, 0xa8, 0x5f, 0x92, 0x91, 0x37, 0x56, 0x51, 0x27,
  836. 0x50, 0x81, 0xea, 0xe0, 0xc8, 0x28, 0x79, 0x46, 0x86, 0x04, 0xab, 0x9d, 0xb4, 0x75, 0x07, 0xa7,
  837. 0xf9, 0xb2, 0xa1, 0xd4, 0xfd, 0xd5, 0xbd, 0x88, 0x27, 0x5c, 0xce, 0x59, 0x03, 0xac, 0x48, 0xc4,
  838. 0x13, 0x9b, 0x34, 0x49, 0xbb, 0xda, 0xaf, 0x64, 0xa9, 0x8b, 0x9c, 0x23, 0xb6, 0x3e, 0x29, 0x9c,
  839. 0x1d, 0x90, 0x2d, 0x66, 0x46, 0x37, 0x56, 0xbe, 0x44, 0x5d, 0x71, 0xa7, 0x33, 0x9c, 0x23, 0xb2,
  840. 0x0b, 0x28, 0x46, 0x8b, 0xc0, 0xa6, 0xb8, 0xb4, 0x9c, 0xa5, 0xae, 0xa1, 0xdc, 0x00, 0x1b, 0x80,
  841. 0xe5, 0x0b, 0x2d, 0xec, 0x62, 0x93, 0xb4, 0x6b, 0xbd, 0x6b, 0xef, 0x3f, 0x92, 0x77, 0xf0, 0x92,
  842. 0x37, 0x10, 0x5a, 0xec, 0x0e, 0x18, 0x1d, 0x47, 0xac, 0xbf, 0x13, 0xb0, 0x4c, 0x83, 0x9d, 0x03,
  843. 0x0d, 0xfd, 0xbd, 0x8b, 0x52, 0x96, 0xba, 0x34, 0xf4, 0x39, 0x0d, 0xfd, 0xbf, 0x5c, 0xf4, 0x50,
  844. 0x2e, 0xd3, 0x9d, 0x8a, 0x48, 0xa2, 0x89, 0x7d, 0xd7, 0x70, 0x8e, 0xc8, 0xae, 0xa0, 0x3c, 0x56,
  845. 0x53, 0x2d, 0xa7, 0xda, 0xb6, 0x70, 0xa0, 0x96, 0xa5, 0x6e, 0xfe, 0xc4, 0xf3, 0xa2, 0xf7, 0x04,
  846. 0x95, 0xdc, 0x31, 0x7b, 0x80, 0x6a, 0x90, 0xbb, 0x66, 0xcd, 0x23, 0xa1, 0xe6, 0xf5, 0xcb, 0xa3,
  847. 0xb1, 0xfb, 0x8d, 0xaf, 0x8d, 0x43, 0xd6, 0x1b, 0x87, 0xfc, 0x6c, 0x1c, 0xf2, 0xb1, 0x75, 0x0a,
  848. 0xeb, 0xad, 0x53, 0xf8, 0xde, 0x3a, 0x85, 0x47, 0xba, 0xec, 0x8e, 0x4a, 0xf8, 0xab, 0xb7, 0xbf,
  849. 0x01, 0x00, 0x00, 0xff, 0xff, 0x96, 0xcb, 0x53, 0xa2, 0x25, 0x02, 0x00, 0x00,
  850. }