AdminSilent.pb.go 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: v1/AdminSilent.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 AdminSilentGetShieldRuleReq struct {
  19. //
  20. Roomid int64 `protobuf:"varint,1,opt,name=roomid,proto3" json:"roomid"`
  21. }
  22. func (m *AdminSilentGetShieldRuleReq) Reset() { *m = AdminSilentGetShieldRuleReq{} }
  23. func (m *AdminSilentGetShieldRuleReq) String() string { return proto.CompactTextString(m) }
  24. func (*AdminSilentGetShieldRuleReq) ProtoMessage() {}
  25. func (*AdminSilentGetShieldRuleReq) Descriptor() ([]byte, []int) {
  26. return fileDescriptor_AdminSilent_417b426140a13835, []int{0}
  27. }
  28. func (m *AdminSilentGetShieldRuleReq) XXX_Unmarshal(b []byte) error {
  29. return m.Unmarshal(b)
  30. }
  31. func (m *AdminSilentGetShieldRuleReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  32. if deterministic {
  33. return xxx_messageInfo_AdminSilentGetShieldRuleReq.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 *AdminSilentGetShieldRuleReq) XXX_Merge(src proto.Message) {
  44. xxx_messageInfo_AdminSilentGetShieldRuleReq.Merge(dst, src)
  45. }
  46. func (m *AdminSilentGetShieldRuleReq) XXX_Size() int {
  47. return m.Size()
  48. }
  49. func (m *AdminSilentGetShieldRuleReq) XXX_DiscardUnknown() {
  50. xxx_messageInfo_AdminSilentGetShieldRuleReq.DiscardUnknown(m)
  51. }
  52. var xxx_messageInfo_AdminSilentGetShieldRuleReq proto.InternalMessageInfo
  53. func (m *AdminSilentGetShieldRuleReq) GetRoomid() int64 {
  54. if m != nil {
  55. return m.Roomid
  56. }
  57. return 0
  58. }
  59. type AdminSilentGetShieldRuleResp struct {
  60. //
  61. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  62. //
  63. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  64. //
  65. Data *AdminSilentGetShieldRuleResp_Data `protobuf:"bytes,3,opt,name=data" json:"data"`
  66. }
  67. func (m *AdminSilentGetShieldRuleResp) Reset() { *m = AdminSilentGetShieldRuleResp{} }
  68. func (m *AdminSilentGetShieldRuleResp) String() string { return proto.CompactTextString(m) }
  69. func (*AdminSilentGetShieldRuleResp) ProtoMessage() {}
  70. func (*AdminSilentGetShieldRuleResp) Descriptor() ([]byte, []int) {
  71. return fileDescriptor_AdminSilent_417b426140a13835, []int{1}
  72. }
  73. func (m *AdminSilentGetShieldRuleResp) XXX_Unmarshal(b []byte) error {
  74. return m.Unmarshal(b)
  75. }
  76. func (m *AdminSilentGetShieldRuleResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  77. if deterministic {
  78. return xxx_messageInfo_AdminSilentGetShieldRuleResp.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 *AdminSilentGetShieldRuleResp) XXX_Merge(src proto.Message) {
  89. xxx_messageInfo_AdminSilentGetShieldRuleResp.Merge(dst, src)
  90. }
  91. func (m *AdminSilentGetShieldRuleResp) XXX_Size() int {
  92. return m.Size()
  93. }
  94. func (m *AdminSilentGetShieldRuleResp) XXX_DiscardUnknown() {
  95. xxx_messageInfo_AdminSilentGetShieldRuleResp.DiscardUnknown(m)
  96. }
  97. var xxx_messageInfo_AdminSilentGetShieldRuleResp proto.InternalMessageInfo
  98. func (m *AdminSilentGetShieldRuleResp) GetCode() int64 {
  99. if m != nil {
  100. return m.Code
  101. }
  102. return 0
  103. }
  104. func (m *AdminSilentGetShieldRuleResp) GetMsg() string {
  105. if m != nil {
  106. return m.Msg
  107. }
  108. return ""
  109. }
  110. func (m *AdminSilentGetShieldRuleResp) GetData() *AdminSilentGetShieldRuleResp_Data {
  111. if m != nil {
  112. return m.Data
  113. }
  114. return nil
  115. }
  116. type AdminSilentGetShieldRuleResp_Data struct {
  117. //
  118. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  119. // 为0表示全局规则
  120. Roomid int64 `protobuf:"varint,2,opt,name=roomid,proto3" json:"roomid"`
  121. // 房间真实分要求
  122. RealScore int64 `protobuf:"varint,3,opt,name=real_score,json=realScore,proto3" json:"real_score"`
  123. // 范围0~10, 乘以了10
  124. AiScore int64 `protobuf:"varint,4,opt,name=ai_score,json=aiScore,proto3" json:"ai_score"`
  125. }
  126. func (m *AdminSilentGetShieldRuleResp_Data) Reset() { *m = AdminSilentGetShieldRuleResp_Data{} }
  127. func (m *AdminSilentGetShieldRuleResp_Data) String() string { return proto.CompactTextString(m) }
  128. func (*AdminSilentGetShieldRuleResp_Data) ProtoMessage() {}
  129. func (*AdminSilentGetShieldRuleResp_Data) Descriptor() ([]byte, []int) {
  130. return fileDescriptor_AdminSilent_417b426140a13835, []int{1, 0}
  131. }
  132. func (m *AdminSilentGetShieldRuleResp_Data) XXX_Unmarshal(b []byte) error {
  133. return m.Unmarshal(b)
  134. }
  135. func (m *AdminSilentGetShieldRuleResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  136. if deterministic {
  137. return xxx_messageInfo_AdminSilentGetShieldRuleResp_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 *AdminSilentGetShieldRuleResp_Data) XXX_Merge(src proto.Message) {
  148. xxx_messageInfo_AdminSilentGetShieldRuleResp_Data.Merge(dst, src)
  149. }
  150. func (m *AdminSilentGetShieldRuleResp_Data) XXX_Size() int {
  151. return m.Size()
  152. }
  153. func (m *AdminSilentGetShieldRuleResp_Data) XXX_DiscardUnknown() {
  154. xxx_messageInfo_AdminSilentGetShieldRuleResp_Data.DiscardUnknown(m)
  155. }
  156. var xxx_messageInfo_AdminSilentGetShieldRuleResp_Data proto.InternalMessageInfo
  157. func (m *AdminSilentGetShieldRuleResp_Data) GetId() int64 {
  158. if m != nil {
  159. return m.Id
  160. }
  161. return 0
  162. }
  163. func (m *AdminSilentGetShieldRuleResp_Data) GetRoomid() int64 {
  164. if m != nil {
  165. return m.Roomid
  166. }
  167. return 0
  168. }
  169. func (m *AdminSilentGetShieldRuleResp_Data) GetRealScore() int64 {
  170. if m != nil {
  171. return m.RealScore
  172. }
  173. return 0
  174. }
  175. func (m *AdminSilentGetShieldRuleResp_Data) GetAiScore() int64 {
  176. if m != nil {
  177. return m.AiScore
  178. }
  179. return 0
  180. }
  181. func init() {
  182. proto.RegisterType((*AdminSilentGetShieldRuleReq)(nil), "banned_service.v1.AdminSilentGetShieldRuleReq")
  183. proto.RegisterType((*AdminSilentGetShieldRuleResp)(nil), "banned_service.v1.AdminSilentGetShieldRuleResp")
  184. proto.RegisterType((*AdminSilentGetShieldRuleResp_Data)(nil), "banned_service.v1.AdminSilentGetShieldRuleResp.Data")
  185. }
  186. func (m *AdminSilentGetShieldRuleReq) 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 *AdminSilentGetShieldRuleReq) MarshalTo(dAtA []byte) (int, error) {
  196. var i int
  197. _ = i
  198. var l int
  199. _ = l
  200. if m.Roomid != 0 {
  201. dAtA[i] = 0x8
  202. i++
  203. i = encodeVarintAdminSilent(dAtA, i, uint64(m.Roomid))
  204. }
  205. return i, nil
  206. }
  207. func (m *AdminSilentGetShieldRuleResp) Marshal() (dAtA []byte, err error) {
  208. size := m.Size()
  209. dAtA = make([]byte, size)
  210. n, err := m.MarshalTo(dAtA)
  211. if err != nil {
  212. return nil, err
  213. }
  214. return dAtA[:n], nil
  215. }
  216. func (m *AdminSilentGetShieldRuleResp) MarshalTo(dAtA []byte) (int, error) {
  217. var i int
  218. _ = i
  219. var l int
  220. _ = l
  221. if m.Code != 0 {
  222. dAtA[i] = 0x8
  223. i++
  224. i = encodeVarintAdminSilent(dAtA, i, uint64(m.Code))
  225. }
  226. if len(m.Msg) > 0 {
  227. dAtA[i] = 0x12
  228. i++
  229. i = encodeVarintAdminSilent(dAtA, i, uint64(len(m.Msg)))
  230. i += copy(dAtA[i:], m.Msg)
  231. }
  232. if m.Data != nil {
  233. dAtA[i] = 0x1a
  234. i++
  235. i = encodeVarintAdminSilent(dAtA, i, uint64(m.Data.Size()))
  236. n1, err := m.Data.MarshalTo(dAtA[i:])
  237. if err != nil {
  238. return 0, err
  239. }
  240. i += n1
  241. }
  242. return i, nil
  243. }
  244. func (m *AdminSilentGetShieldRuleResp_Data) 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 *AdminSilentGetShieldRuleResp_Data) 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 = encodeVarintAdminSilent(dAtA, i, uint64(m.Id))
  262. }
  263. if m.Roomid != 0 {
  264. dAtA[i] = 0x10
  265. i++
  266. i = encodeVarintAdminSilent(dAtA, i, uint64(m.Roomid))
  267. }
  268. if m.RealScore != 0 {
  269. dAtA[i] = 0x18
  270. i++
  271. i = encodeVarintAdminSilent(dAtA, i, uint64(m.RealScore))
  272. }
  273. if m.AiScore != 0 {
  274. dAtA[i] = 0x20
  275. i++
  276. i = encodeVarintAdminSilent(dAtA, i, uint64(m.AiScore))
  277. }
  278. return i, nil
  279. }
  280. func encodeVarintAdminSilent(dAtA []byte, offset int, v uint64) int {
  281. for v >= 1<<7 {
  282. dAtA[offset] = uint8(v&0x7f | 0x80)
  283. v >>= 7
  284. offset++
  285. }
  286. dAtA[offset] = uint8(v)
  287. return offset + 1
  288. }
  289. func (m *AdminSilentGetShieldRuleReq) Size() (n int) {
  290. if m == nil {
  291. return 0
  292. }
  293. var l int
  294. _ = l
  295. if m.Roomid != 0 {
  296. n += 1 + sovAdminSilent(uint64(m.Roomid))
  297. }
  298. return n
  299. }
  300. func (m *AdminSilentGetShieldRuleResp) Size() (n int) {
  301. if m == nil {
  302. return 0
  303. }
  304. var l int
  305. _ = l
  306. if m.Code != 0 {
  307. n += 1 + sovAdminSilent(uint64(m.Code))
  308. }
  309. l = len(m.Msg)
  310. if l > 0 {
  311. n += 1 + l + sovAdminSilent(uint64(l))
  312. }
  313. if m.Data != nil {
  314. l = m.Data.Size()
  315. n += 1 + l + sovAdminSilent(uint64(l))
  316. }
  317. return n
  318. }
  319. func (m *AdminSilentGetShieldRuleResp_Data) Size() (n int) {
  320. if m == nil {
  321. return 0
  322. }
  323. var l int
  324. _ = l
  325. if m.Id != 0 {
  326. n += 1 + sovAdminSilent(uint64(m.Id))
  327. }
  328. if m.Roomid != 0 {
  329. n += 1 + sovAdminSilent(uint64(m.Roomid))
  330. }
  331. if m.RealScore != 0 {
  332. n += 1 + sovAdminSilent(uint64(m.RealScore))
  333. }
  334. if m.AiScore != 0 {
  335. n += 1 + sovAdminSilent(uint64(m.AiScore))
  336. }
  337. return n
  338. }
  339. func sovAdminSilent(x uint64) (n int) {
  340. for {
  341. n++
  342. x >>= 7
  343. if x == 0 {
  344. break
  345. }
  346. }
  347. return n
  348. }
  349. func sozAdminSilent(x uint64) (n int) {
  350. return sovAdminSilent(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  351. }
  352. func (m *AdminSilentGetShieldRuleReq) Unmarshal(dAtA []byte) error {
  353. l := len(dAtA)
  354. iNdEx := 0
  355. for iNdEx < l {
  356. preIndex := iNdEx
  357. var wire uint64
  358. for shift := uint(0); ; shift += 7 {
  359. if shift >= 64 {
  360. return ErrIntOverflowAdminSilent
  361. }
  362. if iNdEx >= l {
  363. return io.ErrUnexpectedEOF
  364. }
  365. b := dAtA[iNdEx]
  366. iNdEx++
  367. wire |= (uint64(b) & 0x7F) << shift
  368. if b < 0x80 {
  369. break
  370. }
  371. }
  372. fieldNum := int32(wire >> 3)
  373. wireType := int(wire & 0x7)
  374. if wireType == 4 {
  375. return fmt.Errorf("proto: AdminSilentGetShieldRuleReq: wiretype end group for non-group")
  376. }
  377. if fieldNum <= 0 {
  378. return fmt.Errorf("proto: AdminSilentGetShieldRuleReq: illegal tag %d (wire type %d)", fieldNum, wire)
  379. }
  380. switch fieldNum {
  381. case 1:
  382. if wireType != 0 {
  383. return fmt.Errorf("proto: wrong wireType = %d for field Roomid", wireType)
  384. }
  385. m.Roomid = 0
  386. for shift := uint(0); ; shift += 7 {
  387. if shift >= 64 {
  388. return ErrIntOverflowAdminSilent
  389. }
  390. if iNdEx >= l {
  391. return io.ErrUnexpectedEOF
  392. }
  393. b := dAtA[iNdEx]
  394. iNdEx++
  395. m.Roomid |= (int64(b) & 0x7F) << shift
  396. if b < 0x80 {
  397. break
  398. }
  399. }
  400. default:
  401. iNdEx = preIndex
  402. skippy, err := skipAdminSilent(dAtA[iNdEx:])
  403. if err != nil {
  404. return err
  405. }
  406. if skippy < 0 {
  407. return ErrInvalidLengthAdminSilent
  408. }
  409. if (iNdEx + skippy) > l {
  410. return io.ErrUnexpectedEOF
  411. }
  412. iNdEx += skippy
  413. }
  414. }
  415. if iNdEx > l {
  416. return io.ErrUnexpectedEOF
  417. }
  418. return nil
  419. }
  420. func (m *AdminSilentGetShieldRuleResp) Unmarshal(dAtA []byte) error {
  421. l := len(dAtA)
  422. iNdEx := 0
  423. for iNdEx < l {
  424. preIndex := iNdEx
  425. var wire uint64
  426. for shift := uint(0); ; shift += 7 {
  427. if shift >= 64 {
  428. return ErrIntOverflowAdminSilent
  429. }
  430. if iNdEx >= l {
  431. return io.ErrUnexpectedEOF
  432. }
  433. b := dAtA[iNdEx]
  434. iNdEx++
  435. wire |= (uint64(b) & 0x7F) << shift
  436. if b < 0x80 {
  437. break
  438. }
  439. }
  440. fieldNum := int32(wire >> 3)
  441. wireType := int(wire & 0x7)
  442. if wireType == 4 {
  443. return fmt.Errorf("proto: AdminSilentGetShieldRuleResp: wiretype end group for non-group")
  444. }
  445. if fieldNum <= 0 {
  446. return fmt.Errorf("proto: AdminSilentGetShieldRuleResp: illegal tag %d (wire type %d)", fieldNum, wire)
  447. }
  448. switch fieldNum {
  449. case 1:
  450. if wireType != 0 {
  451. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  452. }
  453. m.Code = 0
  454. for shift := uint(0); ; shift += 7 {
  455. if shift >= 64 {
  456. return ErrIntOverflowAdminSilent
  457. }
  458. if iNdEx >= l {
  459. return io.ErrUnexpectedEOF
  460. }
  461. b := dAtA[iNdEx]
  462. iNdEx++
  463. m.Code |= (int64(b) & 0x7F) << shift
  464. if b < 0x80 {
  465. break
  466. }
  467. }
  468. case 2:
  469. if wireType != 2 {
  470. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  471. }
  472. var stringLen uint64
  473. for shift := uint(0); ; shift += 7 {
  474. if shift >= 64 {
  475. return ErrIntOverflowAdminSilent
  476. }
  477. if iNdEx >= l {
  478. return io.ErrUnexpectedEOF
  479. }
  480. b := dAtA[iNdEx]
  481. iNdEx++
  482. stringLen |= (uint64(b) & 0x7F) << shift
  483. if b < 0x80 {
  484. break
  485. }
  486. }
  487. intStringLen := int(stringLen)
  488. if intStringLen < 0 {
  489. return ErrInvalidLengthAdminSilent
  490. }
  491. postIndex := iNdEx + intStringLen
  492. if postIndex > l {
  493. return io.ErrUnexpectedEOF
  494. }
  495. m.Msg = string(dAtA[iNdEx:postIndex])
  496. iNdEx = postIndex
  497. case 3:
  498. if wireType != 2 {
  499. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  500. }
  501. var msglen int
  502. for shift := uint(0); ; shift += 7 {
  503. if shift >= 64 {
  504. return ErrIntOverflowAdminSilent
  505. }
  506. if iNdEx >= l {
  507. return io.ErrUnexpectedEOF
  508. }
  509. b := dAtA[iNdEx]
  510. iNdEx++
  511. msglen |= (int(b) & 0x7F) << shift
  512. if b < 0x80 {
  513. break
  514. }
  515. }
  516. if msglen < 0 {
  517. return ErrInvalidLengthAdminSilent
  518. }
  519. postIndex := iNdEx + msglen
  520. if postIndex > l {
  521. return io.ErrUnexpectedEOF
  522. }
  523. if m.Data == nil {
  524. m.Data = &AdminSilentGetShieldRuleResp_Data{}
  525. }
  526. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  527. return err
  528. }
  529. iNdEx = postIndex
  530. default:
  531. iNdEx = preIndex
  532. skippy, err := skipAdminSilent(dAtA[iNdEx:])
  533. if err != nil {
  534. return err
  535. }
  536. if skippy < 0 {
  537. return ErrInvalidLengthAdminSilent
  538. }
  539. if (iNdEx + skippy) > l {
  540. return io.ErrUnexpectedEOF
  541. }
  542. iNdEx += skippy
  543. }
  544. }
  545. if iNdEx > l {
  546. return io.ErrUnexpectedEOF
  547. }
  548. return nil
  549. }
  550. func (m *AdminSilentGetShieldRuleResp_Data) Unmarshal(dAtA []byte) error {
  551. l := len(dAtA)
  552. iNdEx := 0
  553. for iNdEx < l {
  554. preIndex := iNdEx
  555. var wire uint64
  556. for shift := uint(0); ; shift += 7 {
  557. if shift >= 64 {
  558. return ErrIntOverflowAdminSilent
  559. }
  560. if iNdEx >= l {
  561. return io.ErrUnexpectedEOF
  562. }
  563. b := dAtA[iNdEx]
  564. iNdEx++
  565. wire |= (uint64(b) & 0x7F) << shift
  566. if b < 0x80 {
  567. break
  568. }
  569. }
  570. fieldNum := int32(wire >> 3)
  571. wireType := int(wire & 0x7)
  572. if wireType == 4 {
  573. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  574. }
  575. if fieldNum <= 0 {
  576. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  577. }
  578. switch fieldNum {
  579. case 1:
  580. if wireType != 0 {
  581. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  582. }
  583. m.Id = 0
  584. for shift := uint(0); ; shift += 7 {
  585. if shift >= 64 {
  586. return ErrIntOverflowAdminSilent
  587. }
  588. if iNdEx >= l {
  589. return io.ErrUnexpectedEOF
  590. }
  591. b := dAtA[iNdEx]
  592. iNdEx++
  593. m.Id |= (int64(b) & 0x7F) << shift
  594. if b < 0x80 {
  595. break
  596. }
  597. }
  598. case 2:
  599. if wireType != 0 {
  600. return fmt.Errorf("proto: wrong wireType = %d for field Roomid", wireType)
  601. }
  602. m.Roomid = 0
  603. for shift := uint(0); ; shift += 7 {
  604. if shift >= 64 {
  605. return ErrIntOverflowAdminSilent
  606. }
  607. if iNdEx >= l {
  608. return io.ErrUnexpectedEOF
  609. }
  610. b := dAtA[iNdEx]
  611. iNdEx++
  612. m.Roomid |= (int64(b) & 0x7F) << shift
  613. if b < 0x80 {
  614. break
  615. }
  616. }
  617. case 3:
  618. if wireType != 0 {
  619. return fmt.Errorf("proto: wrong wireType = %d for field RealScore", wireType)
  620. }
  621. m.RealScore = 0
  622. for shift := uint(0); ; shift += 7 {
  623. if shift >= 64 {
  624. return ErrIntOverflowAdminSilent
  625. }
  626. if iNdEx >= l {
  627. return io.ErrUnexpectedEOF
  628. }
  629. b := dAtA[iNdEx]
  630. iNdEx++
  631. m.RealScore |= (int64(b) & 0x7F) << shift
  632. if b < 0x80 {
  633. break
  634. }
  635. }
  636. case 4:
  637. if wireType != 0 {
  638. return fmt.Errorf("proto: wrong wireType = %d for field AiScore", wireType)
  639. }
  640. m.AiScore = 0
  641. for shift := uint(0); ; shift += 7 {
  642. if shift >= 64 {
  643. return ErrIntOverflowAdminSilent
  644. }
  645. if iNdEx >= l {
  646. return io.ErrUnexpectedEOF
  647. }
  648. b := dAtA[iNdEx]
  649. iNdEx++
  650. m.AiScore |= (int64(b) & 0x7F) << shift
  651. if b < 0x80 {
  652. break
  653. }
  654. }
  655. default:
  656. iNdEx = preIndex
  657. skippy, err := skipAdminSilent(dAtA[iNdEx:])
  658. if err != nil {
  659. return err
  660. }
  661. if skippy < 0 {
  662. return ErrInvalidLengthAdminSilent
  663. }
  664. if (iNdEx + skippy) > l {
  665. return io.ErrUnexpectedEOF
  666. }
  667. iNdEx += skippy
  668. }
  669. }
  670. if iNdEx > l {
  671. return io.ErrUnexpectedEOF
  672. }
  673. return nil
  674. }
  675. func skipAdminSilent(dAtA []byte) (n int, err error) {
  676. l := len(dAtA)
  677. iNdEx := 0
  678. for iNdEx < l {
  679. var wire uint64
  680. for shift := uint(0); ; shift += 7 {
  681. if shift >= 64 {
  682. return 0, ErrIntOverflowAdminSilent
  683. }
  684. if iNdEx >= l {
  685. return 0, io.ErrUnexpectedEOF
  686. }
  687. b := dAtA[iNdEx]
  688. iNdEx++
  689. wire |= (uint64(b) & 0x7F) << shift
  690. if b < 0x80 {
  691. break
  692. }
  693. }
  694. wireType := int(wire & 0x7)
  695. switch wireType {
  696. case 0:
  697. for shift := uint(0); ; shift += 7 {
  698. if shift >= 64 {
  699. return 0, ErrIntOverflowAdminSilent
  700. }
  701. if iNdEx >= l {
  702. return 0, io.ErrUnexpectedEOF
  703. }
  704. iNdEx++
  705. if dAtA[iNdEx-1] < 0x80 {
  706. break
  707. }
  708. }
  709. return iNdEx, nil
  710. case 1:
  711. iNdEx += 8
  712. return iNdEx, nil
  713. case 2:
  714. var length int
  715. for shift := uint(0); ; shift += 7 {
  716. if shift >= 64 {
  717. return 0, ErrIntOverflowAdminSilent
  718. }
  719. if iNdEx >= l {
  720. return 0, io.ErrUnexpectedEOF
  721. }
  722. b := dAtA[iNdEx]
  723. iNdEx++
  724. length |= (int(b) & 0x7F) << shift
  725. if b < 0x80 {
  726. break
  727. }
  728. }
  729. iNdEx += length
  730. if length < 0 {
  731. return 0, ErrInvalidLengthAdminSilent
  732. }
  733. return iNdEx, nil
  734. case 3:
  735. for {
  736. var innerWire uint64
  737. var start int = iNdEx
  738. for shift := uint(0); ; shift += 7 {
  739. if shift >= 64 {
  740. return 0, ErrIntOverflowAdminSilent
  741. }
  742. if iNdEx >= l {
  743. return 0, io.ErrUnexpectedEOF
  744. }
  745. b := dAtA[iNdEx]
  746. iNdEx++
  747. innerWire |= (uint64(b) & 0x7F) << shift
  748. if b < 0x80 {
  749. break
  750. }
  751. }
  752. innerWireType := int(innerWire & 0x7)
  753. if innerWireType == 4 {
  754. break
  755. }
  756. next, err := skipAdminSilent(dAtA[start:])
  757. if err != nil {
  758. return 0, err
  759. }
  760. iNdEx = start + next
  761. }
  762. return iNdEx, nil
  763. case 4:
  764. return iNdEx, nil
  765. case 5:
  766. iNdEx += 4
  767. return iNdEx, nil
  768. default:
  769. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  770. }
  771. }
  772. panic("unreachable")
  773. }
  774. var (
  775. ErrInvalidLengthAdminSilent = fmt.Errorf("proto: negative length found during unmarshaling")
  776. ErrIntOverflowAdminSilent = fmt.Errorf("proto: integer overflow")
  777. )
  778. func init() { proto.RegisterFile("v1/AdminSilent.proto", fileDescriptor_AdminSilent_417b426140a13835) }
  779. var fileDescriptor_AdminSilent_417b426140a13835 = []byte{
  780. // 371 bytes of a gzipped FileDescriptorProto
  781. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xbd, 0x6a, 0xeb, 0x30,
  782. 0x18, 0x8d, 0x6c, 0x93, 0x1f, 0xe5, 0x72, 0x2f, 0x57, 0x5c, 0x2e, 0x69, 0x1a, 0xec, 0x90, 0xa5,
  783. 0x59, 0x62, 0x93, 0xb4, 0x2f, 0x10, 0x53, 0xe8, 0xae, 0x6c, 0x5d, 0x8c, 0x6c, 0xa9, 0x8e, 0xc0,
  784. 0xb6, 0x12, 0xff, 0xed, 0x7d, 0x83, 0xce, 0x7d, 0xa2, 0x8c, 0x19, 0x3b, 0x99, 0x92, 0x6c, 0x7e,
  785. 0x8a, 0x62, 0xc5, 0x04, 0x43, 0x49, 0x21, 0xcb, 0xa7, 0xef, 0x1c, 0x1d, 0xce, 0xa7, 0xf3, 0x21,
  786. 0xf8, 0x2f, 0x9f, 0x5b, 0x4b, 0x1a, 0xf2, 0x68, 0xc5, 0x03, 0x16, 0xa5, 0xe6, 0x26, 0x16, 0xa9,
  787. 0x40, 0x7f, 0x5d, 0x12, 0x45, 0x8c, 0x3a, 0x09, 0x8b, 0x73, 0xee, 0x31, 0x33, 0x9f, 0x0f, 0x67,
  788. 0x3e, 0x4f, 0xd7, 0x99, 0x6b, 0x7a, 0x22, 0xb4, 0x7c, 0xe1, 0x0b, 0x4b, 0x2a, 0xdd, 0xec, 0x45,
  789. 0x22, 0x09, 0x64, 0x77, 0x72, 0x98, 0x2c, 0xe1, 0x6d, 0xc3, 0xf6, 0x89, 0xa5, 0xab, 0x35, 0x67,
  790. 0x01, 0xc5, 0x59, 0xc0, 0x30, 0xdb, 0xa2, 0x09, 0x6c, 0xc7, 0x42, 0x84, 0x9c, 0x0e, 0xc0, 0x18,
  791. 0x4c, 0x55, 0x1b, 0x96, 0x85, 0x51, 0x33, 0xb8, 0x3e, 0x27, 0x3b, 0x05, 0x8e, 0x2e, 0x7b, 0x24,
  792. 0x1b, 0x34, 0x82, 0x9a, 0x27, 0x28, 0xab, 0x2d, 0xba, 0x65, 0x61, 0x48, 0x8c, 0x65, 0x45, 0x37,
  793. 0x50, 0x0d, 0x13, 0x7f, 0xa0, 0x8c, 0xc1, 0xb4, 0x67, 0x77, 0xca, 0xc2, 0xa8, 0x20, 0xae, 0x0a,
  794. 0xc2, 0x50, 0xa3, 0x24, 0x25, 0x03, 0x75, 0x0c, 0xa6, 0xfd, 0xc5, 0x83, 0xf9, 0x2d, 0xad, 0xf9,
  795. 0xd3, 0x5c, 0xf3, 0x91, 0xa4, 0xe4, 0x34, 0xae, 0x72, 0xc1, 0xb2, 0x0e, 0xdf, 0x01, 0xd4, 0xaa,
  796. 0x0b, 0xf4, 0x1f, 0x2a, 0xe7, 0x58, 0xed, 0xb2, 0x30, 0x14, 0x4e, 0xb1, 0xc2, 0x69, 0x23, 0xb2,
  797. 0x72, 0x29, 0x32, 0x9a, 0x41, 0x18, 0x33, 0x12, 0x38, 0x89, 0x27, 0x62, 0x26, 0x9f, 0xa7, 0xda,
  798. 0xbf, 0xcb, 0xc2, 0x68, 0xb0, 0xb8, 0x57, 0xf5, 0xab, 0xaa, 0x45, 0x77, 0xb0, 0x4b, 0x78, 0x2d,
  799. 0xd6, 0xa4, 0xf8, 0x57, 0x59, 0x18, 0x67, 0x0e, 0x77, 0x08, 0x97, 0xc2, 0xc5, 0x2b, 0x80, 0xfd,
  800. 0x46, 0x24, 0x14, 0xc3, 0x3f, 0x3e, 0x4b, 0x9d, 0x44, 0xe6, 0x72, 0xe2, 0x2c, 0x60, 0xc8, 0xbc,
  801. 0x6a, 0x0b, 0xdb, 0xa1, 0x75, 0xe5, 0xd6, 0xec, 0xd1, 0xee, 0xa0, 0x83, 0xfd, 0x41, 0x07, 0x9f,
  802. 0x07, 0x1d, 0xbc, 0x1d, 0xf5, 0xd6, 0xfe, 0xa8, 0xb7, 0x3e, 0x8e, 0x7a, 0xeb, 0x59, 0xc9, 0xe7,
  803. 0x6e, 0x5b, 0x7e, 0x9b, 0xfb, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x64, 0x72, 0xc0, 0x5a, 0x90,
  804. 0x02, 0x00, 0x00,
  805. }