Silent.pb.go 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: v1/Silent.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 SilentGetRoomSilentReq struct {
  19. //
  20. RoomId int64 `protobuf:"varint,1,opt,name=room_id,json=roomId,proto3" json:"room_id"`
  21. }
  22. func (m *SilentGetRoomSilentReq) Reset() { *m = SilentGetRoomSilentReq{} }
  23. func (m *SilentGetRoomSilentReq) String() string { return proto.CompactTextString(m) }
  24. func (*SilentGetRoomSilentReq) ProtoMessage() {}
  25. func (*SilentGetRoomSilentReq) Descriptor() ([]byte, []int) {
  26. return fileDescriptor_Silent_de6616e052635452, []int{0}
  27. }
  28. func (m *SilentGetRoomSilentReq) XXX_Unmarshal(b []byte) error {
  29. return m.Unmarshal(b)
  30. }
  31. func (m *SilentGetRoomSilentReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  32. if deterministic {
  33. return xxx_messageInfo_SilentGetRoomSilentReq.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 *SilentGetRoomSilentReq) XXX_Merge(src proto.Message) {
  44. xxx_messageInfo_SilentGetRoomSilentReq.Merge(dst, src)
  45. }
  46. func (m *SilentGetRoomSilentReq) XXX_Size() int {
  47. return m.Size()
  48. }
  49. func (m *SilentGetRoomSilentReq) XXX_DiscardUnknown() {
  50. xxx_messageInfo_SilentGetRoomSilentReq.DiscardUnknown(m)
  51. }
  52. var xxx_messageInfo_SilentGetRoomSilentReq proto.InternalMessageInfo
  53. func (m *SilentGetRoomSilentReq) GetRoomId() int64 {
  54. if m != nil {
  55. return m.RoomId
  56. }
  57. return 0
  58. }
  59. type SilentGetRoomSilentResp 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 *SilentGetRoomSilentResp_Data `protobuf:"bytes,3,opt,name=data" json:"data"`
  66. }
  67. func (m *SilentGetRoomSilentResp) Reset() { *m = SilentGetRoomSilentResp{} }
  68. func (m *SilentGetRoomSilentResp) String() string { return proto.CompactTextString(m) }
  69. func (*SilentGetRoomSilentResp) ProtoMessage() {}
  70. func (*SilentGetRoomSilentResp) Descriptor() ([]byte, []int) {
  71. return fileDescriptor_Silent_de6616e052635452, []int{1}
  72. }
  73. func (m *SilentGetRoomSilentResp) XXX_Unmarshal(b []byte) error {
  74. return m.Unmarshal(b)
  75. }
  76. func (m *SilentGetRoomSilentResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  77. if deterministic {
  78. return xxx_messageInfo_SilentGetRoomSilentResp.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 *SilentGetRoomSilentResp) XXX_Merge(src proto.Message) {
  89. xxx_messageInfo_SilentGetRoomSilentResp.Merge(dst, src)
  90. }
  91. func (m *SilentGetRoomSilentResp) XXX_Size() int {
  92. return m.Size()
  93. }
  94. func (m *SilentGetRoomSilentResp) XXX_DiscardUnknown() {
  95. xxx_messageInfo_SilentGetRoomSilentResp.DiscardUnknown(m)
  96. }
  97. var xxx_messageInfo_SilentGetRoomSilentResp proto.InternalMessageInfo
  98. func (m *SilentGetRoomSilentResp) GetCode() int64 {
  99. if m != nil {
  100. return m.Code
  101. }
  102. return 0
  103. }
  104. func (m *SilentGetRoomSilentResp) GetMsg() string {
  105. if m != nil {
  106. return m.Msg
  107. }
  108. return ""
  109. }
  110. func (m *SilentGetRoomSilentResp) GetData() *SilentGetRoomSilentResp_Data {
  111. if m != nil {
  112. return m.Data
  113. }
  114. return nil
  115. }
  116. type SilentGetRoomSilentResp_Data struct {
  117. // level等级 medal粉丝勋章等级 member全部
  118. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type"`
  119. // 等级type=level时为用户等级要求 type为medal为粉丝勋章等级要求 type为member时1表示开启,0表示未开启
  120. Level int64 `protobuf:"varint,2,opt,name=level,proto3" json:"level"`
  121. // 还剩多少秒时间到期, -1表示直到直播结束都不过期
  122. Second int64 `protobuf:"varint,3,opt,name=second,proto3" json:"second"`
  123. }
  124. func (m *SilentGetRoomSilentResp_Data) Reset() { *m = SilentGetRoomSilentResp_Data{} }
  125. func (m *SilentGetRoomSilentResp_Data) String() string { return proto.CompactTextString(m) }
  126. func (*SilentGetRoomSilentResp_Data) ProtoMessage() {}
  127. func (*SilentGetRoomSilentResp_Data) Descriptor() ([]byte, []int) {
  128. return fileDescriptor_Silent_de6616e052635452, []int{1, 0}
  129. }
  130. func (m *SilentGetRoomSilentResp_Data) XXX_Unmarshal(b []byte) error {
  131. return m.Unmarshal(b)
  132. }
  133. func (m *SilentGetRoomSilentResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  134. if deterministic {
  135. return xxx_messageInfo_SilentGetRoomSilentResp_Data.Marshal(b, m, deterministic)
  136. } else {
  137. b = b[:cap(b)]
  138. n, err := m.MarshalTo(b)
  139. if err != nil {
  140. return nil, err
  141. }
  142. return b[:n], nil
  143. }
  144. }
  145. func (dst *SilentGetRoomSilentResp_Data) XXX_Merge(src proto.Message) {
  146. xxx_messageInfo_SilentGetRoomSilentResp_Data.Merge(dst, src)
  147. }
  148. func (m *SilentGetRoomSilentResp_Data) XXX_Size() int {
  149. return m.Size()
  150. }
  151. func (m *SilentGetRoomSilentResp_Data) XXX_DiscardUnknown() {
  152. xxx_messageInfo_SilentGetRoomSilentResp_Data.DiscardUnknown(m)
  153. }
  154. var xxx_messageInfo_SilentGetRoomSilentResp_Data proto.InternalMessageInfo
  155. func (m *SilentGetRoomSilentResp_Data) GetType() string {
  156. if m != nil {
  157. return m.Type
  158. }
  159. return ""
  160. }
  161. func (m *SilentGetRoomSilentResp_Data) GetLevel() int64 {
  162. if m != nil {
  163. return m.Level
  164. }
  165. return 0
  166. }
  167. func (m *SilentGetRoomSilentResp_Data) GetSecond() int64 {
  168. if m != nil {
  169. return m.Second
  170. }
  171. return 0
  172. }
  173. func init() {
  174. proto.RegisterType((*SilentGetRoomSilentReq)(nil), "banned_service.v1.SilentGetRoomSilentReq")
  175. proto.RegisterType((*SilentGetRoomSilentResp)(nil), "banned_service.v1.SilentGetRoomSilentResp")
  176. proto.RegisterType((*SilentGetRoomSilentResp_Data)(nil), "banned_service.v1.SilentGetRoomSilentResp.Data")
  177. }
  178. func (m *SilentGetRoomSilentReq) Marshal() (dAtA []byte, err error) {
  179. size := m.Size()
  180. dAtA = make([]byte, size)
  181. n, err := m.MarshalTo(dAtA)
  182. if err != nil {
  183. return nil, err
  184. }
  185. return dAtA[:n], nil
  186. }
  187. func (m *SilentGetRoomSilentReq) MarshalTo(dAtA []byte) (int, error) {
  188. var i int
  189. _ = i
  190. var l int
  191. _ = l
  192. if m.RoomId != 0 {
  193. dAtA[i] = 0x8
  194. i++
  195. i = encodeVarintSilent(dAtA, i, uint64(m.RoomId))
  196. }
  197. return i, nil
  198. }
  199. func (m *SilentGetRoomSilentResp) Marshal() (dAtA []byte, err error) {
  200. size := m.Size()
  201. dAtA = make([]byte, size)
  202. n, err := m.MarshalTo(dAtA)
  203. if err != nil {
  204. return nil, err
  205. }
  206. return dAtA[:n], nil
  207. }
  208. func (m *SilentGetRoomSilentResp) MarshalTo(dAtA []byte) (int, error) {
  209. var i int
  210. _ = i
  211. var l int
  212. _ = l
  213. if m.Code != 0 {
  214. dAtA[i] = 0x8
  215. i++
  216. i = encodeVarintSilent(dAtA, i, uint64(m.Code))
  217. }
  218. if len(m.Msg) > 0 {
  219. dAtA[i] = 0x12
  220. i++
  221. i = encodeVarintSilent(dAtA, i, uint64(len(m.Msg)))
  222. i += copy(dAtA[i:], m.Msg)
  223. }
  224. if m.Data != nil {
  225. dAtA[i] = 0x1a
  226. i++
  227. i = encodeVarintSilent(dAtA, i, uint64(m.Data.Size()))
  228. n1, err := m.Data.MarshalTo(dAtA[i:])
  229. if err != nil {
  230. return 0, err
  231. }
  232. i += n1
  233. }
  234. return i, nil
  235. }
  236. func (m *SilentGetRoomSilentResp_Data) Marshal() (dAtA []byte, err error) {
  237. size := m.Size()
  238. dAtA = make([]byte, size)
  239. n, err := m.MarshalTo(dAtA)
  240. if err != nil {
  241. return nil, err
  242. }
  243. return dAtA[:n], nil
  244. }
  245. func (m *SilentGetRoomSilentResp_Data) MarshalTo(dAtA []byte) (int, error) {
  246. var i int
  247. _ = i
  248. var l int
  249. _ = l
  250. if len(m.Type) > 0 {
  251. dAtA[i] = 0xa
  252. i++
  253. i = encodeVarintSilent(dAtA, i, uint64(len(m.Type)))
  254. i += copy(dAtA[i:], m.Type)
  255. }
  256. if m.Level != 0 {
  257. dAtA[i] = 0x10
  258. i++
  259. i = encodeVarintSilent(dAtA, i, uint64(m.Level))
  260. }
  261. if m.Second != 0 {
  262. dAtA[i] = 0x18
  263. i++
  264. i = encodeVarintSilent(dAtA, i, uint64(m.Second))
  265. }
  266. return i, nil
  267. }
  268. func encodeVarintSilent(dAtA []byte, offset int, v uint64) int {
  269. for v >= 1<<7 {
  270. dAtA[offset] = uint8(v&0x7f | 0x80)
  271. v >>= 7
  272. offset++
  273. }
  274. dAtA[offset] = uint8(v)
  275. return offset + 1
  276. }
  277. func (m *SilentGetRoomSilentReq) Size() (n int) {
  278. if m == nil {
  279. return 0
  280. }
  281. var l int
  282. _ = l
  283. if m.RoomId != 0 {
  284. n += 1 + sovSilent(uint64(m.RoomId))
  285. }
  286. return n
  287. }
  288. func (m *SilentGetRoomSilentResp) Size() (n int) {
  289. if m == nil {
  290. return 0
  291. }
  292. var l int
  293. _ = l
  294. if m.Code != 0 {
  295. n += 1 + sovSilent(uint64(m.Code))
  296. }
  297. l = len(m.Msg)
  298. if l > 0 {
  299. n += 1 + l + sovSilent(uint64(l))
  300. }
  301. if m.Data != nil {
  302. l = m.Data.Size()
  303. n += 1 + l + sovSilent(uint64(l))
  304. }
  305. return n
  306. }
  307. func (m *SilentGetRoomSilentResp_Data) Size() (n int) {
  308. if m == nil {
  309. return 0
  310. }
  311. var l int
  312. _ = l
  313. l = len(m.Type)
  314. if l > 0 {
  315. n += 1 + l + sovSilent(uint64(l))
  316. }
  317. if m.Level != 0 {
  318. n += 1 + sovSilent(uint64(m.Level))
  319. }
  320. if m.Second != 0 {
  321. n += 1 + sovSilent(uint64(m.Second))
  322. }
  323. return n
  324. }
  325. func sovSilent(x uint64) (n int) {
  326. for {
  327. n++
  328. x >>= 7
  329. if x == 0 {
  330. break
  331. }
  332. }
  333. return n
  334. }
  335. func sozSilent(x uint64) (n int) {
  336. return sovSilent(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  337. }
  338. func (m *SilentGetRoomSilentReq) Unmarshal(dAtA []byte) error {
  339. l := len(dAtA)
  340. iNdEx := 0
  341. for iNdEx < l {
  342. preIndex := iNdEx
  343. var wire uint64
  344. for shift := uint(0); ; shift += 7 {
  345. if shift >= 64 {
  346. return ErrIntOverflowSilent
  347. }
  348. if iNdEx >= l {
  349. return io.ErrUnexpectedEOF
  350. }
  351. b := dAtA[iNdEx]
  352. iNdEx++
  353. wire |= (uint64(b) & 0x7F) << shift
  354. if b < 0x80 {
  355. break
  356. }
  357. }
  358. fieldNum := int32(wire >> 3)
  359. wireType := int(wire & 0x7)
  360. if wireType == 4 {
  361. return fmt.Errorf("proto: SilentGetRoomSilentReq: wiretype end group for non-group")
  362. }
  363. if fieldNum <= 0 {
  364. return fmt.Errorf("proto: SilentGetRoomSilentReq: illegal tag %d (wire type %d)", fieldNum, wire)
  365. }
  366. switch fieldNum {
  367. case 1:
  368. if wireType != 0 {
  369. return fmt.Errorf("proto: wrong wireType = %d for field RoomId", wireType)
  370. }
  371. m.RoomId = 0
  372. for shift := uint(0); ; shift += 7 {
  373. if shift >= 64 {
  374. return ErrIntOverflowSilent
  375. }
  376. if iNdEx >= l {
  377. return io.ErrUnexpectedEOF
  378. }
  379. b := dAtA[iNdEx]
  380. iNdEx++
  381. m.RoomId |= (int64(b) & 0x7F) << shift
  382. if b < 0x80 {
  383. break
  384. }
  385. }
  386. default:
  387. iNdEx = preIndex
  388. skippy, err := skipSilent(dAtA[iNdEx:])
  389. if err != nil {
  390. return err
  391. }
  392. if skippy < 0 {
  393. return ErrInvalidLengthSilent
  394. }
  395. if (iNdEx + skippy) > l {
  396. return io.ErrUnexpectedEOF
  397. }
  398. iNdEx += skippy
  399. }
  400. }
  401. if iNdEx > l {
  402. return io.ErrUnexpectedEOF
  403. }
  404. return nil
  405. }
  406. func (m *SilentGetRoomSilentResp) Unmarshal(dAtA []byte) error {
  407. l := len(dAtA)
  408. iNdEx := 0
  409. for iNdEx < l {
  410. preIndex := iNdEx
  411. var wire uint64
  412. for shift := uint(0); ; shift += 7 {
  413. if shift >= 64 {
  414. return ErrIntOverflowSilent
  415. }
  416. if iNdEx >= l {
  417. return io.ErrUnexpectedEOF
  418. }
  419. b := dAtA[iNdEx]
  420. iNdEx++
  421. wire |= (uint64(b) & 0x7F) << shift
  422. if b < 0x80 {
  423. break
  424. }
  425. }
  426. fieldNum := int32(wire >> 3)
  427. wireType := int(wire & 0x7)
  428. if wireType == 4 {
  429. return fmt.Errorf("proto: SilentGetRoomSilentResp: wiretype end group for non-group")
  430. }
  431. if fieldNum <= 0 {
  432. return fmt.Errorf("proto: SilentGetRoomSilentResp: illegal tag %d (wire type %d)", fieldNum, wire)
  433. }
  434. switch fieldNum {
  435. case 1:
  436. if wireType != 0 {
  437. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  438. }
  439. m.Code = 0
  440. for shift := uint(0); ; shift += 7 {
  441. if shift >= 64 {
  442. return ErrIntOverflowSilent
  443. }
  444. if iNdEx >= l {
  445. return io.ErrUnexpectedEOF
  446. }
  447. b := dAtA[iNdEx]
  448. iNdEx++
  449. m.Code |= (int64(b) & 0x7F) << shift
  450. if b < 0x80 {
  451. break
  452. }
  453. }
  454. case 2:
  455. if wireType != 2 {
  456. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  457. }
  458. var stringLen uint64
  459. for shift := uint(0); ; shift += 7 {
  460. if shift >= 64 {
  461. return ErrIntOverflowSilent
  462. }
  463. if iNdEx >= l {
  464. return io.ErrUnexpectedEOF
  465. }
  466. b := dAtA[iNdEx]
  467. iNdEx++
  468. stringLen |= (uint64(b) & 0x7F) << shift
  469. if b < 0x80 {
  470. break
  471. }
  472. }
  473. intStringLen := int(stringLen)
  474. if intStringLen < 0 {
  475. return ErrInvalidLengthSilent
  476. }
  477. postIndex := iNdEx + intStringLen
  478. if postIndex > l {
  479. return io.ErrUnexpectedEOF
  480. }
  481. m.Msg = string(dAtA[iNdEx:postIndex])
  482. iNdEx = postIndex
  483. case 3:
  484. if wireType != 2 {
  485. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  486. }
  487. var msglen int
  488. for shift := uint(0); ; shift += 7 {
  489. if shift >= 64 {
  490. return ErrIntOverflowSilent
  491. }
  492. if iNdEx >= l {
  493. return io.ErrUnexpectedEOF
  494. }
  495. b := dAtA[iNdEx]
  496. iNdEx++
  497. msglen |= (int(b) & 0x7F) << shift
  498. if b < 0x80 {
  499. break
  500. }
  501. }
  502. if msglen < 0 {
  503. return ErrInvalidLengthSilent
  504. }
  505. postIndex := iNdEx + msglen
  506. if postIndex > l {
  507. return io.ErrUnexpectedEOF
  508. }
  509. if m.Data == nil {
  510. m.Data = &SilentGetRoomSilentResp_Data{}
  511. }
  512. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  513. return err
  514. }
  515. iNdEx = postIndex
  516. default:
  517. iNdEx = preIndex
  518. skippy, err := skipSilent(dAtA[iNdEx:])
  519. if err != nil {
  520. return err
  521. }
  522. if skippy < 0 {
  523. return ErrInvalidLengthSilent
  524. }
  525. if (iNdEx + skippy) > l {
  526. return io.ErrUnexpectedEOF
  527. }
  528. iNdEx += skippy
  529. }
  530. }
  531. if iNdEx > l {
  532. return io.ErrUnexpectedEOF
  533. }
  534. return nil
  535. }
  536. func (m *SilentGetRoomSilentResp_Data) Unmarshal(dAtA []byte) error {
  537. l := len(dAtA)
  538. iNdEx := 0
  539. for iNdEx < l {
  540. preIndex := iNdEx
  541. var wire uint64
  542. for shift := uint(0); ; shift += 7 {
  543. if shift >= 64 {
  544. return ErrIntOverflowSilent
  545. }
  546. if iNdEx >= l {
  547. return io.ErrUnexpectedEOF
  548. }
  549. b := dAtA[iNdEx]
  550. iNdEx++
  551. wire |= (uint64(b) & 0x7F) << shift
  552. if b < 0x80 {
  553. break
  554. }
  555. }
  556. fieldNum := int32(wire >> 3)
  557. wireType := int(wire & 0x7)
  558. if wireType == 4 {
  559. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  560. }
  561. if fieldNum <= 0 {
  562. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  563. }
  564. switch fieldNum {
  565. case 1:
  566. if wireType != 2 {
  567. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  568. }
  569. var stringLen uint64
  570. for shift := uint(0); ; shift += 7 {
  571. if shift >= 64 {
  572. return ErrIntOverflowSilent
  573. }
  574. if iNdEx >= l {
  575. return io.ErrUnexpectedEOF
  576. }
  577. b := dAtA[iNdEx]
  578. iNdEx++
  579. stringLen |= (uint64(b) & 0x7F) << shift
  580. if b < 0x80 {
  581. break
  582. }
  583. }
  584. intStringLen := int(stringLen)
  585. if intStringLen < 0 {
  586. return ErrInvalidLengthSilent
  587. }
  588. postIndex := iNdEx + intStringLen
  589. if postIndex > l {
  590. return io.ErrUnexpectedEOF
  591. }
  592. m.Type = string(dAtA[iNdEx:postIndex])
  593. iNdEx = postIndex
  594. case 2:
  595. if wireType != 0 {
  596. return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType)
  597. }
  598. m.Level = 0
  599. for shift := uint(0); ; shift += 7 {
  600. if shift >= 64 {
  601. return ErrIntOverflowSilent
  602. }
  603. if iNdEx >= l {
  604. return io.ErrUnexpectedEOF
  605. }
  606. b := dAtA[iNdEx]
  607. iNdEx++
  608. m.Level |= (int64(b) & 0x7F) << shift
  609. if b < 0x80 {
  610. break
  611. }
  612. }
  613. case 3:
  614. if wireType != 0 {
  615. return fmt.Errorf("proto: wrong wireType = %d for field Second", wireType)
  616. }
  617. m.Second = 0
  618. for shift := uint(0); ; shift += 7 {
  619. if shift >= 64 {
  620. return ErrIntOverflowSilent
  621. }
  622. if iNdEx >= l {
  623. return io.ErrUnexpectedEOF
  624. }
  625. b := dAtA[iNdEx]
  626. iNdEx++
  627. m.Second |= (int64(b) & 0x7F) << shift
  628. if b < 0x80 {
  629. break
  630. }
  631. }
  632. default:
  633. iNdEx = preIndex
  634. skippy, err := skipSilent(dAtA[iNdEx:])
  635. if err != nil {
  636. return err
  637. }
  638. if skippy < 0 {
  639. return ErrInvalidLengthSilent
  640. }
  641. if (iNdEx + skippy) > l {
  642. return io.ErrUnexpectedEOF
  643. }
  644. iNdEx += skippy
  645. }
  646. }
  647. if iNdEx > l {
  648. return io.ErrUnexpectedEOF
  649. }
  650. return nil
  651. }
  652. func skipSilent(dAtA []byte) (n int, err error) {
  653. l := len(dAtA)
  654. iNdEx := 0
  655. for iNdEx < l {
  656. var wire uint64
  657. for shift := uint(0); ; shift += 7 {
  658. if shift >= 64 {
  659. return 0, ErrIntOverflowSilent
  660. }
  661. if iNdEx >= l {
  662. return 0, io.ErrUnexpectedEOF
  663. }
  664. b := dAtA[iNdEx]
  665. iNdEx++
  666. wire |= (uint64(b) & 0x7F) << shift
  667. if b < 0x80 {
  668. break
  669. }
  670. }
  671. wireType := int(wire & 0x7)
  672. switch wireType {
  673. case 0:
  674. for shift := uint(0); ; shift += 7 {
  675. if shift >= 64 {
  676. return 0, ErrIntOverflowSilent
  677. }
  678. if iNdEx >= l {
  679. return 0, io.ErrUnexpectedEOF
  680. }
  681. iNdEx++
  682. if dAtA[iNdEx-1] < 0x80 {
  683. break
  684. }
  685. }
  686. return iNdEx, nil
  687. case 1:
  688. iNdEx += 8
  689. return iNdEx, nil
  690. case 2:
  691. var length int
  692. for shift := uint(0); ; shift += 7 {
  693. if shift >= 64 {
  694. return 0, ErrIntOverflowSilent
  695. }
  696. if iNdEx >= l {
  697. return 0, io.ErrUnexpectedEOF
  698. }
  699. b := dAtA[iNdEx]
  700. iNdEx++
  701. length |= (int(b) & 0x7F) << shift
  702. if b < 0x80 {
  703. break
  704. }
  705. }
  706. iNdEx += length
  707. if length < 0 {
  708. return 0, ErrInvalidLengthSilent
  709. }
  710. return iNdEx, nil
  711. case 3:
  712. for {
  713. var innerWire uint64
  714. var start int = iNdEx
  715. for shift := uint(0); ; shift += 7 {
  716. if shift >= 64 {
  717. return 0, ErrIntOverflowSilent
  718. }
  719. if iNdEx >= l {
  720. return 0, io.ErrUnexpectedEOF
  721. }
  722. b := dAtA[iNdEx]
  723. iNdEx++
  724. innerWire |= (uint64(b) & 0x7F) << shift
  725. if b < 0x80 {
  726. break
  727. }
  728. }
  729. innerWireType := int(innerWire & 0x7)
  730. if innerWireType == 4 {
  731. break
  732. }
  733. next, err := skipSilent(dAtA[start:])
  734. if err != nil {
  735. return 0, err
  736. }
  737. iNdEx = start + next
  738. }
  739. return iNdEx, nil
  740. case 4:
  741. return iNdEx, nil
  742. case 5:
  743. iNdEx += 4
  744. return iNdEx, nil
  745. default:
  746. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  747. }
  748. }
  749. panic("unreachable")
  750. }
  751. var (
  752. ErrInvalidLengthSilent = fmt.Errorf("proto: negative length found during unmarshaling")
  753. ErrIntOverflowSilent = fmt.Errorf("proto: integer overflow")
  754. )
  755. func init() { proto.RegisterFile("v1/Silent.proto", fileDescriptor_Silent_de6616e052635452) }
  756. var fileDescriptor_Silent_de6616e052635452 = []byte{
  757. // 346 bytes of a gzipped FileDescriptorProto
  758. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x51, 0x31, 0x4f, 0xc2, 0x40,
  759. 0x14, 0xe6, 0x28, 0x16, 0x79, 0x0c, 0xc4, 0x1b, 0x14, 0x09, 0x69, 0x09, 0x71, 0x40, 0x13, 0xdb,
  760. 0x80, 0xbb, 0x43, 0x63, 0x62, 0x1c, 0x5c, 0xce, 0xcd, 0x85, 0xb4, 0xbd, 0xb3, 0x34, 0xa1, 0x3d,
  761. 0x68, 0x8f, 0x26, 0xfe, 0x07, 0x07, 0x7f, 0x96, 0x23, 0xa3, 0x53, 0x63, 0x60, 0xeb, 0xaf, 0x30,
  762. 0x77, 0x57, 0x27, 0x35, 0x61, 0xf9, 0xde, 0xfb, 0xbe, 0xbc, 0x7e, 0xef, 0x7b, 0x3d, 0xe8, 0x15,
  763. 0x53, 0xf7, 0x29, 0x5e, 0xb2, 0x54, 0x38, 0xab, 0x8c, 0x0b, 0x8e, 0x4f, 0x02, 0x3f, 0x4d, 0x19,
  764. 0x9d, 0xe7, 0x2c, 0x2b, 0xe2, 0x90, 0x39, 0xc5, 0x74, 0x70, 0x1d, 0xc5, 0x62, 0xb1, 0x09, 0x9c,
  765. 0x90, 0x27, 0x6e, 0xc4, 0x23, 0xee, 0xaa, 0xc9, 0x60, 0xf3, 0xa2, 0x98, 0x22, 0xaa, 0xd3, 0x0e,
  766. 0xe3, 0x5b, 0x38, 0xd5, 0x8e, 0xf7, 0x4c, 0x10, 0xce, 0x13, 0x4d, 0x08, 0x5b, 0xe3, 0x0b, 0x68,
  767. 0x67, 0x9c, 0x27, 0xf3, 0x98, 0xf6, 0xd1, 0x08, 0x4d, 0x0c, 0xaf, 0x5b, 0x95, 0xf6, 0x8f, 0x44,
  768. 0x4c, 0xd9, 0x3c, 0xd0, 0xf1, 0x5b, 0x13, 0xce, 0xfe, 0x34, 0xc8, 0x57, 0x78, 0x08, 0xad, 0x90,
  769. 0x53, 0x56, 0x7f, 0x7e, 0x5c, 0x95, 0xb6, 0xe2, 0x44, 0x21, 0x3e, 0x07, 0x23, 0xc9, 0xa3, 0x7e,
  770. 0x73, 0x84, 0x26, 0x1d, 0xaf, 0x5d, 0x95, 0xb6, 0xa4, 0x44, 0x02, 0x7e, 0x84, 0x16, 0xf5, 0x85,
  771. 0xdf, 0x37, 0x46, 0x68, 0xd2, 0x9d, 0xb9, 0xce, 0xaf, 0x2b, 0x9d, 0x7f, 0x56, 0x3a, 0x77, 0xbe,
  772. 0xf0, 0xf5, 0x26, 0x69, 0x40, 0x14, 0x0e, 0x62, 0x68, 0x49, 0x5d, 0xe6, 0x11, 0xaf, 0x2b, 0x9d,
  773. 0xa7, 0xa3, 0xa7, 0x24, 0x27, 0x0a, 0xb1, 0x0d, 0x47, 0x4b, 0x56, 0xb0, 0xa5, 0x4a, 0x64, 0x78,
  774. 0x9d, 0xaa, 0xb4, 0xb5, 0x40, 0x74, 0xc1, 0x63, 0x30, 0x73, 0x16, 0xf2, 0x94, 0xaa, 0x5c, 0x86,
  775. 0x07, 0x55, 0x69, 0xd7, 0x0a, 0xa9, 0xeb, 0x2c, 0x03, 0x53, 0xa7, 0xc1, 0x0b, 0xe8, 0x45, 0x4c,
  776. 0xcc, 0xd5, 0xff, 0xca, 0xb5, 0x74, 0x79, 0xe8, 0x21, 0xeb, 0xc1, 0xd5, 0xe1, 0x37, 0x7b, 0xc3,
  777. 0x8f, 0x9d, 0x85, 0xb6, 0x3b, 0x0b, 0x7d, 0xed, 0x2c, 0xf4, 0xbe, 0xb7, 0x1a, 0xdb, 0xbd, 0xd5,
  778. 0xf8, 0xdc, 0x5b, 0x8d, 0xe7, 0x66, 0x31, 0x0d, 0x4c, 0xf5, 0xce, 0x37, 0xdf, 0x01, 0x00, 0x00,
  779. 0xff, 0xff, 0xab, 0xb0, 0xfb, 0x98, 0x3c, 0x02, 0x00, 0x00,
  780. }