roomNotice.pb.go 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: roomNotice.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 RoomNoticeBuyGuardReq struct {
  19. // UID
  20. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty" form:"uid" validate:"required"`
  21. // 主播UID
  22. TargetId int64 `protobuf:"varint,2,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" form:"target_id" validate:"required"`
  23. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  24. XXX_unrecognized []byte `json:"-"`
  25. XXX_sizecache int32 `json:"-"`
  26. }
  27. func (m *RoomNoticeBuyGuardReq) Reset() { *m = RoomNoticeBuyGuardReq{} }
  28. func (m *RoomNoticeBuyGuardReq) String() string { return proto.CompactTextString(m) }
  29. func (*RoomNoticeBuyGuardReq) ProtoMessage() {}
  30. func (*RoomNoticeBuyGuardReq) Descriptor() ([]byte, []int) {
  31. return fileDescriptor_roomNotice_bb87aa9995daa825, []int{0}
  32. }
  33. func (m *RoomNoticeBuyGuardReq) XXX_Unmarshal(b []byte) error {
  34. return m.Unmarshal(b)
  35. }
  36. func (m *RoomNoticeBuyGuardReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  37. if deterministic {
  38. return xxx_messageInfo_RoomNoticeBuyGuardReq.Marshal(b, m, deterministic)
  39. } else {
  40. b = b[:cap(b)]
  41. n, err := m.MarshalTo(b)
  42. if err != nil {
  43. return nil, err
  44. }
  45. return b[:n], nil
  46. }
  47. }
  48. func (dst *RoomNoticeBuyGuardReq) XXX_Merge(src proto.Message) {
  49. xxx_messageInfo_RoomNoticeBuyGuardReq.Merge(dst, src)
  50. }
  51. func (m *RoomNoticeBuyGuardReq) XXX_Size() int {
  52. return m.Size()
  53. }
  54. func (m *RoomNoticeBuyGuardReq) XXX_DiscardUnknown() {
  55. xxx_messageInfo_RoomNoticeBuyGuardReq.DiscardUnknown(m)
  56. }
  57. var xxx_messageInfo_RoomNoticeBuyGuardReq proto.InternalMessageInfo
  58. func (m *RoomNoticeBuyGuardReq) GetUid() int64 {
  59. if m != nil {
  60. return m.Uid
  61. }
  62. return 0
  63. }
  64. func (m *RoomNoticeBuyGuardReq) GetTargetId() int64 {
  65. if m != nil {
  66. return m.TargetId
  67. }
  68. return 0
  69. }
  70. type RoomNoticeBuyGuardResp struct {
  71. // 是否提示 1:弹出提示,0:不弹出
  72. ShouldNotice int64 `protobuf:"varint,1,opt,name=should_notice,json=shouldNotice,proto3" json:"should_notice,omitempty"`
  73. // 状态有效开始时间
  74. Begin int64 `protobuf:"varint,2,opt,name=begin,proto3" json:"begin,omitempty"`
  75. // 状态有效结束时间
  76. End int64 `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"`
  77. // 当前的时间戳
  78. Now int64 `protobuf:"varint,7,opt,name=now,proto3" json:"now,omitempty"`
  79. // 标题
  80. Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
  81. // 内容
  82. Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
  83. // 按钮
  84. Button string `protobuf:"bytes,6,opt,name=button,proto3" json:"button,omitempty"`
  85. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  86. XXX_unrecognized []byte `json:"-"`
  87. XXX_sizecache int32 `json:"-"`
  88. }
  89. func (m *RoomNoticeBuyGuardResp) Reset() { *m = RoomNoticeBuyGuardResp{} }
  90. func (m *RoomNoticeBuyGuardResp) String() string { return proto.CompactTextString(m) }
  91. func (*RoomNoticeBuyGuardResp) ProtoMessage() {}
  92. func (*RoomNoticeBuyGuardResp) Descriptor() ([]byte, []int) {
  93. return fileDescriptor_roomNotice_bb87aa9995daa825, []int{1}
  94. }
  95. func (m *RoomNoticeBuyGuardResp) XXX_Unmarshal(b []byte) error {
  96. return m.Unmarshal(b)
  97. }
  98. func (m *RoomNoticeBuyGuardResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  99. if deterministic {
  100. return xxx_messageInfo_RoomNoticeBuyGuardResp.Marshal(b, m, deterministic)
  101. } else {
  102. b = b[:cap(b)]
  103. n, err := m.MarshalTo(b)
  104. if err != nil {
  105. return nil, err
  106. }
  107. return b[:n], nil
  108. }
  109. }
  110. func (dst *RoomNoticeBuyGuardResp) XXX_Merge(src proto.Message) {
  111. xxx_messageInfo_RoomNoticeBuyGuardResp.Merge(dst, src)
  112. }
  113. func (m *RoomNoticeBuyGuardResp) XXX_Size() int {
  114. return m.Size()
  115. }
  116. func (m *RoomNoticeBuyGuardResp) XXX_DiscardUnknown() {
  117. xxx_messageInfo_RoomNoticeBuyGuardResp.DiscardUnknown(m)
  118. }
  119. var xxx_messageInfo_RoomNoticeBuyGuardResp proto.InternalMessageInfo
  120. func (m *RoomNoticeBuyGuardResp) GetShouldNotice() int64 {
  121. if m != nil {
  122. return m.ShouldNotice
  123. }
  124. return 0
  125. }
  126. func (m *RoomNoticeBuyGuardResp) GetBegin() int64 {
  127. if m != nil {
  128. return m.Begin
  129. }
  130. return 0
  131. }
  132. func (m *RoomNoticeBuyGuardResp) GetEnd() int64 {
  133. if m != nil {
  134. return m.End
  135. }
  136. return 0
  137. }
  138. func (m *RoomNoticeBuyGuardResp) GetNow() int64 {
  139. if m != nil {
  140. return m.Now
  141. }
  142. return 0
  143. }
  144. func (m *RoomNoticeBuyGuardResp) GetTitle() string {
  145. if m != nil {
  146. return m.Title
  147. }
  148. return ""
  149. }
  150. func (m *RoomNoticeBuyGuardResp) GetContent() string {
  151. if m != nil {
  152. return m.Content
  153. }
  154. return ""
  155. }
  156. func (m *RoomNoticeBuyGuardResp) GetButton() string {
  157. if m != nil {
  158. return m.Button
  159. }
  160. return ""
  161. }
  162. func init() {
  163. proto.RegisterType((*RoomNoticeBuyGuardReq)(nil), "live.approom.v1.RoomNoticeBuyGuardReq")
  164. proto.RegisterType((*RoomNoticeBuyGuardResp)(nil), "live.approom.v1.RoomNoticeBuyGuardResp")
  165. }
  166. func (m *RoomNoticeBuyGuardReq) Marshal() (dAtA []byte, err error) {
  167. size := m.Size()
  168. dAtA = make([]byte, size)
  169. n, err := m.MarshalTo(dAtA)
  170. if err != nil {
  171. return nil, err
  172. }
  173. return dAtA[:n], nil
  174. }
  175. func (m *RoomNoticeBuyGuardReq) MarshalTo(dAtA []byte) (int, error) {
  176. var i int
  177. _ = i
  178. var l int
  179. _ = l
  180. if m.Uid != 0 {
  181. dAtA[i] = 0x8
  182. i++
  183. i = encodeVarintRoomNotice(dAtA, i, uint64(m.Uid))
  184. }
  185. if m.TargetId != 0 {
  186. dAtA[i] = 0x10
  187. i++
  188. i = encodeVarintRoomNotice(dAtA, i, uint64(m.TargetId))
  189. }
  190. if m.XXX_unrecognized != nil {
  191. i += copy(dAtA[i:], m.XXX_unrecognized)
  192. }
  193. return i, nil
  194. }
  195. func (m *RoomNoticeBuyGuardResp) Marshal() (dAtA []byte, err error) {
  196. size := m.Size()
  197. dAtA = make([]byte, size)
  198. n, err := m.MarshalTo(dAtA)
  199. if err != nil {
  200. return nil, err
  201. }
  202. return dAtA[:n], nil
  203. }
  204. func (m *RoomNoticeBuyGuardResp) MarshalTo(dAtA []byte) (int, error) {
  205. var i int
  206. _ = i
  207. var l int
  208. _ = l
  209. if m.ShouldNotice != 0 {
  210. dAtA[i] = 0x8
  211. i++
  212. i = encodeVarintRoomNotice(dAtA, i, uint64(m.ShouldNotice))
  213. }
  214. if m.Begin != 0 {
  215. dAtA[i] = 0x10
  216. i++
  217. i = encodeVarintRoomNotice(dAtA, i, uint64(m.Begin))
  218. }
  219. if m.End != 0 {
  220. dAtA[i] = 0x18
  221. i++
  222. i = encodeVarintRoomNotice(dAtA, i, uint64(m.End))
  223. }
  224. if len(m.Title) > 0 {
  225. dAtA[i] = 0x22
  226. i++
  227. i = encodeVarintRoomNotice(dAtA, i, uint64(len(m.Title)))
  228. i += copy(dAtA[i:], m.Title)
  229. }
  230. if len(m.Content) > 0 {
  231. dAtA[i] = 0x2a
  232. i++
  233. i = encodeVarintRoomNotice(dAtA, i, uint64(len(m.Content)))
  234. i += copy(dAtA[i:], m.Content)
  235. }
  236. if len(m.Button) > 0 {
  237. dAtA[i] = 0x32
  238. i++
  239. i = encodeVarintRoomNotice(dAtA, i, uint64(len(m.Button)))
  240. i += copy(dAtA[i:], m.Button)
  241. }
  242. if m.Now != 0 {
  243. dAtA[i] = 0x38
  244. i++
  245. i = encodeVarintRoomNotice(dAtA, i, uint64(m.Now))
  246. }
  247. if m.XXX_unrecognized != nil {
  248. i += copy(dAtA[i:], m.XXX_unrecognized)
  249. }
  250. return i, nil
  251. }
  252. func encodeVarintRoomNotice(dAtA []byte, offset int, v uint64) int {
  253. for v >= 1<<7 {
  254. dAtA[offset] = uint8(v&0x7f | 0x80)
  255. v >>= 7
  256. offset++
  257. }
  258. dAtA[offset] = uint8(v)
  259. return offset + 1
  260. }
  261. func (m *RoomNoticeBuyGuardReq) Size() (n int) {
  262. if m == nil {
  263. return 0
  264. }
  265. var l int
  266. _ = l
  267. if m.Uid != 0 {
  268. n += 1 + sovRoomNotice(uint64(m.Uid))
  269. }
  270. if m.TargetId != 0 {
  271. n += 1 + sovRoomNotice(uint64(m.TargetId))
  272. }
  273. if m.XXX_unrecognized != nil {
  274. n += len(m.XXX_unrecognized)
  275. }
  276. return n
  277. }
  278. func (m *RoomNoticeBuyGuardResp) Size() (n int) {
  279. if m == nil {
  280. return 0
  281. }
  282. var l int
  283. _ = l
  284. if m.ShouldNotice != 0 {
  285. n += 1 + sovRoomNotice(uint64(m.ShouldNotice))
  286. }
  287. if m.Begin != 0 {
  288. n += 1 + sovRoomNotice(uint64(m.Begin))
  289. }
  290. if m.End != 0 {
  291. n += 1 + sovRoomNotice(uint64(m.End))
  292. }
  293. l = len(m.Title)
  294. if l > 0 {
  295. n += 1 + l + sovRoomNotice(uint64(l))
  296. }
  297. l = len(m.Content)
  298. if l > 0 {
  299. n += 1 + l + sovRoomNotice(uint64(l))
  300. }
  301. l = len(m.Button)
  302. if l > 0 {
  303. n += 1 + l + sovRoomNotice(uint64(l))
  304. }
  305. if m.Now != 0 {
  306. n += 1 + sovRoomNotice(uint64(m.Now))
  307. }
  308. if m.XXX_unrecognized != nil {
  309. n += len(m.XXX_unrecognized)
  310. }
  311. return n
  312. }
  313. func sovRoomNotice(x uint64) (n int) {
  314. for {
  315. n++
  316. x >>= 7
  317. if x == 0 {
  318. break
  319. }
  320. }
  321. return n
  322. }
  323. func sozRoomNotice(x uint64) (n int) {
  324. return sovRoomNotice(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  325. }
  326. func (m *RoomNoticeBuyGuardReq) Unmarshal(dAtA []byte) error {
  327. l := len(dAtA)
  328. iNdEx := 0
  329. for iNdEx < l {
  330. preIndex := iNdEx
  331. var wire uint64
  332. for shift := uint(0); ; shift += 7 {
  333. if shift >= 64 {
  334. return ErrIntOverflowRoomNotice
  335. }
  336. if iNdEx >= l {
  337. return io.ErrUnexpectedEOF
  338. }
  339. b := dAtA[iNdEx]
  340. iNdEx++
  341. wire |= (uint64(b) & 0x7F) << shift
  342. if b < 0x80 {
  343. break
  344. }
  345. }
  346. fieldNum := int32(wire >> 3)
  347. wireType := int(wire & 0x7)
  348. if wireType == 4 {
  349. return fmt.Errorf("proto: RoomNoticeBuyGuardReq: wiretype end group for non-group")
  350. }
  351. if fieldNum <= 0 {
  352. return fmt.Errorf("proto: RoomNoticeBuyGuardReq: illegal tag %d (wire type %d)", fieldNum, wire)
  353. }
  354. switch fieldNum {
  355. case 1:
  356. if wireType != 0 {
  357. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  358. }
  359. m.Uid = 0
  360. for shift := uint(0); ; shift += 7 {
  361. if shift >= 64 {
  362. return ErrIntOverflowRoomNotice
  363. }
  364. if iNdEx >= l {
  365. return io.ErrUnexpectedEOF
  366. }
  367. b := dAtA[iNdEx]
  368. iNdEx++
  369. m.Uid |= (int64(b) & 0x7F) << shift
  370. if b < 0x80 {
  371. break
  372. }
  373. }
  374. case 2:
  375. if wireType != 0 {
  376. return fmt.Errorf("proto: wrong wireType = %d for field TargetId", wireType)
  377. }
  378. m.TargetId = 0
  379. for shift := uint(0); ; shift += 7 {
  380. if shift >= 64 {
  381. return ErrIntOverflowRoomNotice
  382. }
  383. if iNdEx >= l {
  384. return io.ErrUnexpectedEOF
  385. }
  386. b := dAtA[iNdEx]
  387. iNdEx++
  388. m.TargetId |= (int64(b) & 0x7F) << shift
  389. if b < 0x80 {
  390. break
  391. }
  392. }
  393. default:
  394. iNdEx = preIndex
  395. skippy, err := skipRoomNotice(dAtA[iNdEx:])
  396. if err != nil {
  397. return err
  398. }
  399. if skippy < 0 {
  400. return ErrInvalidLengthRoomNotice
  401. }
  402. if (iNdEx + skippy) > l {
  403. return io.ErrUnexpectedEOF
  404. }
  405. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  406. iNdEx += skippy
  407. }
  408. }
  409. if iNdEx > l {
  410. return io.ErrUnexpectedEOF
  411. }
  412. return nil
  413. }
  414. func (m *RoomNoticeBuyGuardResp) Unmarshal(dAtA []byte) error {
  415. l := len(dAtA)
  416. iNdEx := 0
  417. for iNdEx < l {
  418. preIndex := iNdEx
  419. var wire uint64
  420. for shift := uint(0); ; shift += 7 {
  421. if shift >= 64 {
  422. return ErrIntOverflowRoomNotice
  423. }
  424. if iNdEx >= l {
  425. return io.ErrUnexpectedEOF
  426. }
  427. b := dAtA[iNdEx]
  428. iNdEx++
  429. wire |= (uint64(b) & 0x7F) << shift
  430. if b < 0x80 {
  431. break
  432. }
  433. }
  434. fieldNum := int32(wire >> 3)
  435. wireType := int(wire & 0x7)
  436. if wireType == 4 {
  437. return fmt.Errorf("proto: RoomNoticeBuyGuardResp: wiretype end group for non-group")
  438. }
  439. if fieldNum <= 0 {
  440. return fmt.Errorf("proto: RoomNoticeBuyGuardResp: illegal tag %d (wire type %d)", fieldNum, wire)
  441. }
  442. switch fieldNum {
  443. case 1:
  444. if wireType != 0 {
  445. return fmt.Errorf("proto: wrong wireType = %d for field ShouldNotice", wireType)
  446. }
  447. m.ShouldNotice = 0
  448. for shift := uint(0); ; shift += 7 {
  449. if shift >= 64 {
  450. return ErrIntOverflowRoomNotice
  451. }
  452. if iNdEx >= l {
  453. return io.ErrUnexpectedEOF
  454. }
  455. b := dAtA[iNdEx]
  456. iNdEx++
  457. m.ShouldNotice |= (int64(b) & 0x7F) << shift
  458. if b < 0x80 {
  459. break
  460. }
  461. }
  462. case 2:
  463. if wireType != 0 {
  464. return fmt.Errorf("proto: wrong wireType = %d for field Begin", wireType)
  465. }
  466. m.Begin = 0
  467. for shift := uint(0); ; shift += 7 {
  468. if shift >= 64 {
  469. return ErrIntOverflowRoomNotice
  470. }
  471. if iNdEx >= l {
  472. return io.ErrUnexpectedEOF
  473. }
  474. b := dAtA[iNdEx]
  475. iNdEx++
  476. m.Begin |= (int64(b) & 0x7F) << shift
  477. if b < 0x80 {
  478. break
  479. }
  480. }
  481. case 3:
  482. if wireType != 0 {
  483. return fmt.Errorf("proto: wrong wireType = %d for field End", wireType)
  484. }
  485. m.End = 0
  486. for shift := uint(0); ; shift += 7 {
  487. if shift >= 64 {
  488. return ErrIntOverflowRoomNotice
  489. }
  490. if iNdEx >= l {
  491. return io.ErrUnexpectedEOF
  492. }
  493. b := dAtA[iNdEx]
  494. iNdEx++
  495. m.End |= (int64(b) & 0x7F) << shift
  496. if b < 0x80 {
  497. break
  498. }
  499. }
  500. case 4:
  501. if wireType != 2 {
  502. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  503. }
  504. var stringLen uint64
  505. for shift := uint(0); ; shift += 7 {
  506. if shift >= 64 {
  507. return ErrIntOverflowRoomNotice
  508. }
  509. if iNdEx >= l {
  510. return io.ErrUnexpectedEOF
  511. }
  512. b := dAtA[iNdEx]
  513. iNdEx++
  514. stringLen |= (uint64(b) & 0x7F) << shift
  515. if b < 0x80 {
  516. break
  517. }
  518. }
  519. intStringLen := int(stringLen)
  520. if intStringLen < 0 {
  521. return ErrInvalidLengthRoomNotice
  522. }
  523. postIndex := iNdEx + intStringLen
  524. if postIndex > l {
  525. return io.ErrUnexpectedEOF
  526. }
  527. m.Title = string(dAtA[iNdEx:postIndex])
  528. iNdEx = postIndex
  529. case 5:
  530. if wireType != 2 {
  531. return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType)
  532. }
  533. var stringLen uint64
  534. for shift := uint(0); ; shift += 7 {
  535. if shift >= 64 {
  536. return ErrIntOverflowRoomNotice
  537. }
  538. if iNdEx >= l {
  539. return io.ErrUnexpectedEOF
  540. }
  541. b := dAtA[iNdEx]
  542. iNdEx++
  543. stringLen |= (uint64(b) & 0x7F) << shift
  544. if b < 0x80 {
  545. break
  546. }
  547. }
  548. intStringLen := int(stringLen)
  549. if intStringLen < 0 {
  550. return ErrInvalidLengthRoomNotice
  551. }
  552. postIndex := iNdEx + intStringLen
  553. if postIndex > l {
  554. return io.ErrUnexpectedEOF
  555. }
  556. m.Content = string(dAtA[iNdEx:postIndex])
  557. iNdEx = postIndex
  558. case 6:
  559. if wireType != 2 {
  560. return fmt.Errorf("proto: wrong wireType = %d for field Button", wireType)
  561. }
  562. var stringLen uint64
  563. for shift := uint(0); ; shift += 7 {
  564. if shift >= 64 {
  565. return ErrIntOverflowRoomNotice
  566. }
  567. if iNdEx >= l {
  568. return io.ErrUnexpectedEOF
  569. }
  570. b := dAtA[iNdEx]
  571. iNdEx++
  572. stringLen |= (uint64(b) & 0x7F) << shift
  573. if b < 0x80 {
  574. break
  575. }
  576. }
  577. intStringLen := int(stringLen)
  578. if intStringLen < 0 {
  579. return ErrInvalidLengthRoomNotice
  580. }
  581. postIndex := iNdEx + intStringLen
  582. if postIndex > l {
  583. return io.ErrUnexpectedEOF
  584. }
  585. m.Button = string(dAtA[iNdEx:postIndex])
  586. iNdEx = postIndex
  587. case 7:
  588. if wireType != 0 {
  589. return fmt.Errorf("proto: wrong wireType = %d for field Now", wireType)
  590. }
  591. m.Now = 0
  592. for shift := uint(0); ; shift += 7 {
  593. if shift >= 64 {
  594. return ErrIntOverflowRoomNotice
  595. }
  596. if iNdEx >= l {
  597. return io.ErrUnexpectedEOF
  598. }
  599. b := dAtA[iNdEx]
  600. iNdEx++
  601. m.Now |= (int64(b) & 0x7F) << shift
  602. if b < 0x80 {
  603. break
  604. }
  605. }
  606. default:
  607. iNdEx = preIndex
  608. skippy, err := skipRoomNotice(dAtA[iNdEx:])
  609. if err != nil {
  610. return err
  611. }
  612. if skippy < 0 {
  613. return ErrInvalidLengthRoomNotice
  614. }
  615. if (iNdEx + skippy) > l {
  616. return io.ErrUnexpectedEOF
  617. }
  618. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  619. iNdEx += skippy
  620. }
  621. }
  622. if iNdEx > l {
  623. return io.ErrUnexpectedEOF
  624. }
  625. return nil
  626. }
  627. func skipRoomNotice(dAtA []byte) (n int, err error) {
  628. l := len(dAtA)
  629. iNdEx := 0
  630. for iNdEx < l {
  631. var wire uint64
  632. for shift := uint(0); ; shift += 7 {
  633. if shift >= 64 {
  634. return 0, ErrIntOverflowRoomNotice
  635. }
  636. if iNdEx >= l {
  637. return 0, io.ErrUnexpectedEOF
  638. }
  639. b := dAtA[iNdEx]
  640. iNdEx++
  641. wire |= (uint64(b) & 0x7F) << shift
  642. if b < 0x80 {
  643. break
  644. }
  645. }
  646. wireType := int(wire & 0x7)
  647. switch wireType {
  648. case 0:
  649. for shift := uint(0); ; shift += 7 {
  650. if shift >= 64 {
  651. return 0, ErrIntOverflowRoomNotice
  652. }
  653. if iNdEx >= l {
  654. return 0, io.ErrUnexpectedEOF
  655. }
  656. iNdEx++
  657. if dAtA[iNdEx-1] < 0x80 {
  658. break
  659. }
  660. }
  661. return iNdEx, nil
  662. case 1:
  663. iNdEx += 8
  664. return iNdEx, nil
  665. case 2:
  666. var length int
  667. for shift := uint(0); ; shift += 7 {
  668. if shift >= 64 {
  669. return 0, ErrIntOverflowRoomNotice
  670. }
  671. if iNdEx >= l {
  672. return 0, io.ErrUnexpectedEOF
  673. }
  674. b := dAtA[iNdEx]
  675. iNdEx++
  676. length |= (int(b) & 0x7F) << shift
  677. if b < 0x80 {
  678. break
  679. }
  680. }
  681. iNdEx += length
  682. if length < 0 {
  683. return 0, ErrInvalidLengthRoomNotice
  684. }
  685. return iNdEx, nil
  686. case 3:
  687. for {
  688. var innerWire uint64
  689. var start int = iNdEx
  690. for shift := uint(0); ; shift += 7 {
  691. if shift >= 64 {
  692. return 0, ErrIntOverflowRoomNotice
  693. }
  694. if iNdEx >= l {
  695. return 0, io.ErrUnexpectedEOF
  696. }
  697. b := dAtA[iNdEx]
  698. iNdEx++
  699. innerWire |= (uint64(b) & 0x7F) << shift
  700. if b < 0x80 {
  701. break
  702. }
  703. }
  704. innerWireType := int(innerWire & 0x7)
  705. if innerWireType == 4 {
  706. break
  707. }
  708. next, err := skipRoomNotice(dAtA[start:])
  709. if err != nil {
  710. return 0, err
  711. }
  712. iNdEx = start + next
  713. }
  714. return iNdEx, nil
  715. case 4:
  716. return iNdEx, nil
  717. case 5:
  718. iNdEx += 4
  719. return iNdEx, nil
  720. default:
  721. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  722. }
  723. }
  724. panic("unreachable")
  725. }
  726. var (
  727. ErrInvalidLengthRoomNotice = fmt.Errorf("proto: negative length found during unmarshaling")
  728. ErrIntOverflowRoomNotice = fmt.Errorf("proto: integer overflow")
  729. )
  730. func init() { proto.RegisterFile("roomNotice.proto", fileDescriptor_roomNotice_bb87aa9995daa825) }
  731. var fileDescriptor_roomNotice_bb87aa9995daa825 = []byte{
  732. // 355 bytes of a gzipped FileDescriptorProto
  733. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x51, 0xcd, 0x6a, 0x2a, 0x31,
  734. 0x14, 0x26, 0xce, 0x55, 0xaf, 0xe1, 0x5e, 0xae, 0x84, 0x5b, 0x09, 0x2e, 0x46, 0x99, 0x96, 0xd6,
  735. 0x4d, 0x47, 0x6c, 0xbb, 0x72, 0x29, 0x94, 0xd2, 0x4d, 0x17, 0xb3, 0x2c, 0x05, 0x99, 0x31, 0x71,
  736. 0x4c, 0x19, 0x73, 0xc6, 0x98, 0x8c, 0xf8, 0x1e, 0x7d, 0x9f, 0x6e, 0xbb, 0xec, 0x13, 0x48, 0xf1,
  737. 0x11, 0x7c, 0x82, 0x32, 0x49, 0x6b, 0xa1, 0xb8, 0xe8, 0xee, 0x7c, 0xe7, 0xfb, 0xe1, 0x1c, 0x3e,
  738. 0xdc, 0x54, 0x00, 0xf3, 0x3b, 0xd0, 0x62, 0xc2, 0xc3, 0x5c, 0x81, 0x06, 0xf2, 0x2f, 0x13, 0x05,
  739. 0x0f, 0xe3, 0x3c, 0x2f, 0x99, 0xb0, 0x18, 0xb4, 0xcf, 0x53, 0xa1, 0x67, 0x26, 0x09, 0x27, 0x30,
  740. 0xef, 0xa7, 0x90, 0x42, 0xdf, 0xea, 0x12, 0x33, 0xb5, 0xc8, 0x02, 0x3b, 0x39, 0x7f, 0xf0, 0x84,
  741. 0xf0, 0x51, 0xb4, 0x0f, 0x1d, 0x99, 0xf5, 0x8d, 0x89, 0x15, 0x8b, 0xf8, 0x82, 0x5c, 0x61, 0xcf,
  742. 0x08, 0x46, 0x51, 0x17, 0xf5, 0xbc, 0x51, 0xb0, 0xdb, 0x74, 0xfc, 0x29, 0xa8, 0xf9, 0x30, 0x30,
  743. 0x82, 0x05, 0xdd, 0x22, 0xce, 0x04, 0x8b, 0x35, 0x1f, 0x06, 0x8a, 0x2f, 0x8c, 0x50, 0x9c, 0x05,
  744. 0x51, 0x29, 0x27, 0xd7, 0xb8, 0xa1, 0x63, 0x95, 0x72, 0x3d, 0x16, 0x8c, 0x56, 0xac, 0xb7, 0xb7,
  745. 0xdb, 0x74, 0x4e, 0x9c, 0x77, 0x4f, 0x1d, 0x4e, 0xf8, 0xed, 0xf8, 0x5b, 0x16, 0x3c, 0x23, 0xdc,
  746. 0x3a, 0x74, 0xd6, 0x32, 0x27, 0xc7, 0xf8, 0xef, 0x72, 0x06, 0x26, 0x63, 0x63, 0x69, 0x49, 0x77,
  747. 0x61, 0xf4, 0xc7, 0x2d, 0x9d, 0x81, 0xfc, 0xc7, 0xd5, 0x84, 0xa7, 0x42, 0xba, 0x13, 0x22, 0x07,
  748. 0x48, 0x13, 0x7b, 0x5c, 0x32, 0xea, 0xd9, 0x5d, 0x39, 0x96, 0x3a, 0x2d, 0x74, 0xc6, 0xe9, 0xaf,
  749. 0x2e, 0xea, 0x35, 0x22, 0x07, 0x08, 0xc5, 0xf5, 0x09, 0x48, 0xcd, 0xa5, 0xa6, 0x55, 0xbb, 0xff,
  750. 0x84, 0xa4, 0x85, 0x6b, 0x89, 0xd1, 0x1a, 0x24, 0xad, 0x59, 0xe2, 0x03, 0x95, 0xc9, 0x12, 0x56,
  751. 0xb4, 0xee, 0x92, 0x25, 0xac, 0x2e, 0x1e, 0x31, 0xfe, 0x7a, 0x80, 0x3c, 0xe0, 0x46, 0x62, 0xd6,
  752. 0xe3, 0xb4, 0xfc, 0x82, 0x9c, 0x86, 0xdf, 0x4a, 0x0b, 0x0f, 0x36, 0xd0, 0x3e, 0xfb, 0x91, 0x6e,
  753. 0x99, 0x8f, 0x9a, 0x2f, 0x5b, 0x1f, 0xbd, 0x6e, 0x7d, 0xf4, 0xb6, 0xf5, 0xd1, 0x7d, 0xa5, 0x18,
  754. 0x24, 0x35, 0xdb, 0xee, 0xe5, 0x7b, 0x00, 0x00, 0x00, 0xff, 0xff, 0x45, 0x0f, 0x10, 0xb8, 0x31,
  755. 0x02, 0x00, 0x00,
  756. }