roomNotice.pb.go 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/live/xuserex/api/grpc/v1/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 (
  9. context "golang.org/x/net/context"
  10. grpc "google.golang.org/grpc"
  11. )
  12. import io "io"
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  17. // This is a compile-time assertion to ensure that this generated file
  18. // is compatible with the proto package it is being compiled against.
  19. // A compilation error at this line likely means your copy of the
  20. // proto package needs to be updated.
  21. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  22. type RoomNoticeBuyGuardReq struct {
  23. // UID
  24. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty" form:"uid" validate:"required"`
  25. // 主播UID
  26. TargetId int64 `protobuf:"varint,2,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" form:"target_id" validate:"required"`
  27. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  28. XXX_unrecognized []byte `json:"-"`
  29. XXX_sizecache int32 `json:"-"`
  30. }
  31. func (m *RoomNoticeBuyGuardReq) Reset() { *m = RoomNoticeBuyGuardReq{} }
  32. func (m *RoomNoticeBuyGuardReq) String() string { return proto.CompactTextString(m) }
  33. func (*RoomNoticeBuyGuardReq) ProtoMessage() {}
  34. func (*RoomNoticeBuyGuardReq) Descriptor() ([]byte, []int) {
  35. return fileDescriptor_roomNotice_24b9e57bdfdfad1b, []int{0}
  36. }
  37. func (m *RoomNoticeBuyGuardReq) XXX_Unmarshal(b []byte) error {
  38. return m.Unmarshal(b)
  39. }
  40. func (m *RoomNoticeBuyGuardReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  41. if deterministic {
  42. return xxx_messageInfo_RoomNoticeBuyGuardReq.Marshal(b, m, deterministic)
  43. } else {
  44. b = b[:cap(b)]
  45. n, err := m.MarshalTo(b)
  46. if err != nil {
  47. return nil, err
  48. }
  49. return b[:n], nil
  50. }
  51. }
  52. func (dst *RoomNoticeBuyGuardReq) XXX_Merge(src proto.Message) {
  53. xxx_messageInfo_RoomNoticeBuyGuardReq.Merge(dst, src)
  54. }
  55. func (m *RoomNoticeBuyGuardReq) XXX_Size() int {
  56. return m.Size()
  57. }
  58. func (m *RoomNoticeBuyGuardReq) XXX_DiscardUnknown() {
  59. xxx_messageInfo_RoomNoticeBuyGuardReq.DiscardUnknown(m)
  60. }
  61. var xxx_messageInfo_RoomNoticeBuyGuardReq proto.InternalMessageInfo
  62. func (m *RoomNoticeBuyGuardReq) GetUid() int64 {
  63. if m != nil {
  64. return m.Uid
  65. }
  66. return 0
  67. }
  68. func (m *RoomNoticeBuyGuardReq) GetTargetId() int64 {
  69. if m != nil {
  70. return m.TargetId
  71. }
  72. return 0
  73. }
  74. type RoomNoticeIsTaskFinishReq struct {
  75. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  76. XXX_unrecognized []byte `json:"-"`
  77. XXX_sizecache int32 `json:"-"`
  78. }
  79. func (m *RoomNoticeIsTaskFinishReq) Reset() { *m = RoomNoticeIsTaskFinishReq{} }
  80. func (m *RoomNoticeIsTaskFinishReq) String() string { return proto.CompactTextString(m) }
  81. func (*RoomNoticeIsTaskFinishReq) ProtoMessage() {}
  82. func (*RoomNoticeIsTaskFinishReq) Descriptor() ([]byte, []int) {
  83. return fileDescriptor_roomNotice_24b9e57bdfdfad1b, []int{1}
  84. }
  85. func (m *RoomNoticeIsTaskFinishReq) XXX_Unmarshal(b []byte) error {
  86. return m.Unmarshal(b)
  87. }
  88. func (m *RoomNoticeIsTaskFinishReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  89. if deterministic {
  90. return xxx_messageInfo_RoomNoticeIsTaskFinishReq.Marshal(b, m, deterministic)
  91. } else {
  92. b = b[:cap(b)]
  93. n, err := m.MarshalTo(b)
  94. if err != nil {
  95. return nil, err
  96. }
  97. return b[:n], nil
  98. }
  99. }
  100. func (dst *RoomNoticeIsTaskFinishReq) XXX_Merge(src proto.Message) {
  101. xxx_messageInfo_RoomNoticeIsTaskFinishReq.Merge(dst, src)
  102. }
  103. func (m *RoomNoticeIsTaskFinishReq) XXX_Size() int {
  104. return m.Size()
  105. }
  106. func (m *RoomNoticeIsTaskFinishReq) XXX_DiscardUnknown() {
  107. xxx_messageInfo_RoomNoticeIsTaskFinishReq.DiscardUnknown(m)
  108. }
  109. var xxx_messageInfo_RoomNoticeIsTaskFinishReq proto.InternalMessageInfo
  110. type RoomNoticeSetTaskFinishReq struct {
  111. // 是否完成
  112. Result int64 `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty" form:"result"`
  113. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  114. XXX_unrecognized []byte `json:"-"`
  115. XXX_sizecache int32 `json:"-"`
  116. }
  117. func (m *RoomNoticeSetTaskFinishReq) Reset() { *m = RoomNoticeSetTaskFinishReq{} }
  118. func (m *RoomNoticeSetTaskFinishReq) String() string { return proto.CompactTextString(m) }
  119. func (*RoomNoticeSetTaskFinishReq) ProtoMessage() {}
  120. func (*RoomNoticeSetTaskFinishReq) Descriptor() ([]byte, []int) {
  121. return fileDescriptor_roomNotice_24b9e57bdfdfad1b, []int{2}
  122. }
  123. func (m *RoomNoticeSetTaskFinishReq) XXX_Unmarshal(b []byte) error {
  124. return m.Unmarshal(b)
  125. }
  126. func (m *RoomNoticeSetTaskFinishReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  127. if deterministic {
  128. return xxx_messageInfo_RoomNoticeSetTaskFinishReq.Marshal(b, m, deterministic)
  129. } else {
  130. b = b[:cap(b)]
  131. n, err := m.MarshalTo(b)
  132. if err != nil {
  133. return nil, err
  134. }
  135. return b[:n], nil
  136. }
  137. }
  138. func (dst *RoomNoticeSetTaskFinishReq) XXX_Merge(src proto.Message) {
  139. xxx_messageInfo_RoomNoticeSetTaskFinishReq.Merge(dst, src)
  140. }
  141. func (m *RoomNoticeSetTaskFinishReq) XXX_Size() int {
  142. return m.Size()
  143. }
  144. func (m *RoomNoticeSetTaskFinishReq) XXX_DiscardUnknown() {
  145. xxx_messageInfo_RoomNoticeSetTaskFinishReq.DiscardUnknown(m)
  146. }
  147. var xxx_messageInfo_RoomNoticeSetTaskFinishReq proto.InternalMessageInfo
  148. func (m *RoomNoticeSetTaskFinishReq) GetResult() int64 {
  149. if m != nil {
  150. return m.Result
  151. }
  152. return 0
  153. }
  154. type RoomNoticeBuyGuardResp struct {
  155. // 是否提示 1:弹出提示,0:不弹出
  156. ShouldNotice int64 `protobuf:"varint,1,opt,name=should_notice,json=shouldNotice,proto3" json:"should_notice,omitempty"`
  157. // 状态有效开始时间
  158. Begin int64 `protobuf:"varint,2,opt,name=begin,proto3" json:"begin,omitempty"`
  159. // 状态有效结束时间
  160. End int64 `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"`
  161. // 当前的时间戳
  162. Now int64 `protobuf:"varint,7,opt,name=now,proto3" json:"now,omitempty"`
  163. // 标题
  164. Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
  165. // 内容
  166. Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
  167. // 按钮
  168. Button string `protobuf:"bytes,6,opt,name=button,proto3" json:"button,omitempty"`
  169. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  170. XXX_unrecognized []byte `json:"-"`
  171. XXX_sizecache int32 `json:"-"`
  172. }
  173. func (m *RoomNoticeBuyGuardResp) Reset() { *m = RoomNoticeBuyGuardResp{} }
  174. func (m *RoomNoticeBuyGuardResp) String() string { return proto.CompactTextString(m) }
  175. func (*RoomNoticeBuyGuardResp) ProtoMessage() {}
  176. func (*RoomNoticeBuyGuardResp) Descriptor() ([]byte, []int) {
  177. return fileDescriptor_roomNotice_24b9e57bdfdfad1b, []int{3}
  178. }
  179. func (m *RoomNoticeBuyGuardResp) XXX_Unmarshal(b []byte) error {
  180. return m.Unmarshal(b)
  181. }
  182. func (m *RoomNoticeBuyGuardResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  183. if deterministic {
  184. return xxx_messageInfo_RoomNoticeBuyGuardResp.Marshal(b, m, deterministic)
  185. } else {
  186. b = b[:cap(b)]
  187. n, err := m.MarshalTo(b)
  188. if err != nil {
  189. return nil, err
  190. }
  191. return b[:n], nil
  192. }
  193. }
  194. func (dst *RoomNoticeBuyGuardResp) XXX_Merge(src proto.Message) {
  195. xxx_messageInfo_RoomNoticeBuyGuardResp.Merge(dst, src)
  196. }
  197. func (m *RoomNoticeBuyGuardResp) XXX_Size() int {
  198. return m.Size()
  199. }
  200. func (m *RoomNoticeBuyGuardResp) XXX_DiscardUnknown() {
  201. xxx_messageInfo_RoomNoticeBuyGuardResp.DiscardUnknown(m)
  202. }
  203. var xxx_messageInfo_RoomNoticeBuyGuardResp proto.InternalMessageInfo
  204. func (m *RoomNoticeBuyGuardResp) GetShouldNotice() int64 {
  205. if m != nil {
  206. return m.ShouldNotice
  207. }
  208. return 0
  209. }
  210. func (m *RoomNoticeBuyGuardResp) GetBegin() int64 {
  211. if m != nil {
  212. return m.Begin
  213. }
  214. return 0
  215. }
  216. func (m *RoomNoticeBuyGuardResp) GetEnd() int64 {
  217. if m != nil {
  218. return m.End
  219. }
  220. return 0
  221. }
  222. func (m *RoomNoticeBuyGuardResp) GetNow() int64 {
  223. if m != nil {
  224. return m.Now
  225. }
  226. return 0
  227. }
  228. func (m *RoomNoticeBuyGuardResp) GetTitle() string {
  229. if m != nil {
  230. return m.Title
  231. }
  232. return ""
  233. }
  234. func (m *RoomNoticeBuyGuardResp) GetContent() string {
  235. if m != nil {
  236. return m.Content
  237. }
  238. return ""
  239. }
  240. func (m *RoomNoticeBuyGuardResp) GetButton() string {
  241. if m != nil {
  242. return m.Button
  243. }
  244. return ""
  245. }
  246. type RoomNoticeIsTaskFinishResp struct {
  247. // 是否完成
  248. Result int64 `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
  249. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  250. XXX_unrecognized []byte `json:"-"`
  251. XXX_sizecache int32 `json:"-"`
  252. }
  253. func (m *RoomNoticeIsTaskFinishResp) Reset() { *m = RoomNoticeIsTaskFinishResp{} }
  254. func (m *RoomNoticeIsTaskFinishResp) String() string { return proto.CompactTextString(m) }
  255. func (*RoomNoticeIsTaskFinishResp) ProtoMessage() {}
  256. func (*RoomNoticeIsTaskFinishResp) Descriptor() ([]byte, []int) {
  257. return fileDescriptor_roomNotice_24b9e57bdfdfad1b, []int{4}
  258. }
  259. func (m *RoomNoticeIsTaskFinishResp) XXX_Unmarshal(b []byte) error {
  260. return m.Unmarshal(b)
  261. }
  262. func (m *RoomNoticeIsTaskFinishResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  263. if deterministic {
  264. return xxx_messageInfo_RoomNoticeIsTaskFinishResp.Marshal(b, m, deterministic)
  265. } else {
  266. b = b[:cap(b)]
  267. n, err := m.MarshalTo(b)
  268. if err != nil {
  269. return nil, err
  270. }
  271. return b[:n], nil
  272. }
  273. }
  274. func (dst *RoomNoticeIsTaskFinishResp) XXX_Merge(src proto.Message) {
  275. xxx_messageInfo_RoomNoticeIsTaskFinishResp.Merge(dst, src)
  276. }
  277. func (m *RoomNoticeIsTaskFinishResp) XXX_Size() int {
  278. return m.Size()
  279. }
  280. func (m *RoomNoticeIsTaskFinishResp) XXX_DiscardUnknown() {
  281. xxx_messageInfo_RoomNoticeIsTaskFinishResp.DiscardUnknown(m)
  282. }
  283. var xxx_messageInfo_RoomNoticeIsTaskFinishResp proto.InternalMessageInfo
  284. func (m *RoomNoticeIsTaskFinishResp) GetResult() int64 {
  285. if m != nil {
  286. return m.Result
  287. }
  288. return 0
  289. }
  290. type RoomNoticeSetTaskFinishResp struct {
  291. // 是否完成
  292. Result int64 `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
  293. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  294. XXX_unrecognized []byte `json:"-"`
  295. XXX_sizecache int32 `json:"-"`
  296. }
  297. func (m *RoomNoticeSetTaskFinishResp) Reset() { *m = RoomNoticeSetTaskFinishResp{} }
  298. func (m *RoomNoticeSetTaskFinishResp) String() string { return proto.CompactTextString(m) }
  299. func (*RoomNoticeSetTaskFinishResp) ProtoMessage() {}
  300. func (*RoomNoticeSetTaskFinishResp) Descriptor() ([]byte, []int) {
  301. return fileDescriptor_roomNotice_24b9e57bdfdfad1b, []int{5}
  302. }
  303. func (m *RoomNoticeSetTaskFinishResp) XXX_Unmarshal(b []byte) error {
  304. return m.Unmarshal(b)
  305. }
  306. func (m *RoomNoticeSetTaskFinishResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  307. if deterministic {
  308. return xxx_messageInfo_RoomNoticeSetTaskFinishResp.Marshal(b, m, deterministic)
  309. } else {
  310. b = b[:cap(b)]
  311. n, err := m.MarshalTo(b)
  312. if err != nil {
  313. return nil, err
  314. }
  315. return b[:n], nil
  316. }
  317. }
  318. func (dst *RoomNoticeSetTaskFinishResp) XXX_Merge(src proto.Message) {
  319. xxx_messageInfo_RoomNoticeSetTaskFinishResp.Merge(dst, src)
  320. }
  321. func (m *RoomNoticeSetTaskFinishResp) XXX_Size() int {
  322. return m.Size()
  323. }
  324. func (m *RoomNoticeSetTaskFinishResp) XXX_DiscardUnknown() {
  325. xxx_messageInfo_RoomNoticeSetTaskFinishResp.DiscardUnknown(m)
  326. }
  327. var xxx_messageInfo_RoomNoticeSetTaskFinishResp proto.InternalMessageInfo
  328. func (m *RoomNoticeSetTaskFinishResp) GetResult() int64 {
  329. if m != nil {
  330. return m.Result
  331. }
  332. return 0
  333. }
  334. func init() {
  335. proto.RegisterType((*RoomNoticeBuyGuardReq)(nil), "live.xuserex.v1.RoomNoticeBuyGuardReq")
  336. proto.RegisterType((*RoomNoticeIsTaskFinishReq)(nil), "live.xuserex.v1.RoomNoticeIsTaskFinishReq")
  337. proto.RegisterType((*RoomNoticeSetTaskFinishReq)(nil), "live.xuserex.v1.RoomNoticeSetTaskFinishReq")
  338. proto.RegisterType((*RoomNoticeBuyGuardResp)(nil), "live.xuserex.v1.RoomNoticeBuyGuardResp")
  339. proto.RegisterType((*RoomNoticeIsTaskFinishResp)(nil), "live.xuserex.v1.RoomNoticeIsTaskFinishResp")
  340. proto.RegisterType((*RoomNoticeSetTaskFinishResp)(nil), "live.xuserex.v1.RoomNoticeSetTaskFinishResp")
  341. }
  342. // Reference imports to suppress errors if they are not otherwise used.
  343. var _ context.Context
  344. var _ grpc.ClientConn
  345. // This is a compile-time assertion to ensure that this generated file
  346. // is compatible with the grpc package it is being compiled against.
  347. const _ = grpc.SupportPackageIsVersion4
  348. // RoomNoticeClient is the client API for RoomNotice service.
  349. //
  350. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  351. type RoomNoticeClient interface {
  352. // 是否弹出大航海购买提示
  353. BuyGuard(ctx context.Context, in *RoomNoticeBuyGuardReq, opts ...grpc.CallOption) (*RoomNoticeBuyGuardResp, error)
  354. // habse 任务是否结束
  355. IsTaskFinish(ctx context.Context, in *RoomNoticeIsTaskFinishReq, opts ...grpc.CallOption) (*RoomNoticeIsTaskFinishResp, error)
  356. // 手动设置base 任务结束
  357. SetTaskFinish(ctx context.Context, in *RoomNoticeSetTaskFinishReq, opts ...grpc.CallOption) (*RoomNoticeSetTaskFinishResp, error)
  358. }
  359. type roomNoticeClient struct {
  360. cc *grpc.ClientConn
  361. }
  362. func NewRoomNoticeClient(cc *grpc.ClientConn) RoomNoticeClient {
  363. return &roomNoticeClient{cc}
  364. }
  365. func (c *roomNoticeClient) BuyGuard(ctx context.Context, in *RoomNoticeBuyGuardReq, opts ...grpc.CallOption) (*RoomNoticeBuyGuardResp, error) {
  366. out := new(RoomNoticeBuyGuardResp)
  367. err := c.cc.Invoke(ctx, "/live.xuserex.v1.RoomNotice/buy_guard", in, out, opts...)
  368. if err != nil {
  369. return nil, err
  370. }
  371. return out, nil
  372. }
  373. func (c *roomNoticeClient) IsTaskFinish(ctx context.Context, in *RoomNoticeIsTaskFinishReq, opts ...grpc.CallOption) (*RoomNoticeIsTaskFinishResp, error) {
  374. out := new(RoomNoticeIsTaskFinishResp)
  375. err := c.cc.Invoke(ctx, "/live.xuserex.v1.RoomNotice/is_task_finish", in, out, opts...)
  376. if err != nil {
  377. return nil, err
  378. }
  379. return out, nil
  380. }
  381. func (c *roomNoticeClient) SetTaskFinish(ctx context.Context, in *RoomNoticeSetTaskFinishReq, opts ...grpc.CallOption) (*RoomNoticeSetTaskFinishResp, error) {
  382. out := new(RoomNoticeSetTaskFinishResp)
  383. err := c.cc.Invoke(ctx, "/live.xuserex.v1.RoomNotice/set_task_finish", in, out, opts...)
  384. if err != nil {
  385. return nil, err
  386. }
  387. return out, nil
  388. }
  389. // RoomNoticeServer is the server API for RoomNotice service.
  390. type RoomNoticeServer interface {
  391. // 是否弹出大航海购买提示
  392. BuyGuard(context.Context, *RoomNoticeBuyGuardReq) (*RoomNoticeBuyGuardResp, error)
  393. // habse 任务是否结束
  394. IsTaskFinish(context.Context, *RoomNoticeIsTaskFinishReq) (*RoomNoticeIsTaskFinishResp, error)
  395. // 手动设置base 任务结束
  396. SetTaskFinish(context.Context, *RoomNoticeSetTaskFinishReq) (*RoomNoticeSetTaskFinishResp, error)
  397. }
  398. func RegisterRoomNoticeServer(s *grpc.Server, srv RoomNoticeServer) {
  399. s.RegisterService(&_RoomNotice_serviceDesc, srv)
  400. }
  401. func _RoomNotice_BuyGuard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  402. in := new(RoomNoticeBuyGuardReq)
  403. if err := dec(in); err != nil {
  404. return nil, err
  405. }
  406. if interceptor == nil {
  407. return srv.(RoomNoticeServer).BuyGuard(ctx, in)
  408. }
  409. info := &grpc.UnaryServerInfo{
  410. Server: srv,
  411. FullMethod: "/live.xuserex.v1.RoomNotice/BuyGuard",
  412. }
  413. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  414. return srv.(RoomNoticeServer).BuyGuard(ctx, req.(*RoomNoticeBuyGuardReq))
  415. }
  416. return interceptor(ctx, in, info, handler)
  417. }
  418. func _RoomNotice_IsTaskFinish_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  419. in := new(RoomNoticeIsTaskFinishReq)
  420. if err := dec(in); err != nil {
  421. return nil, err
  422. }
  423. if interceptor == nil {
  424. return srv.(RoomNoticeServer).IsTaskFinish(ctx, in)
  425. }
  426. info := &grpc.UnaryServerInfo{
  427. Server: srv,
  428. FullMethod: "/live.xuserex.v1.RoomNotice/IsTaskFinish",
  429. }
  430. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  431. return srv.(RoomNoticeServer).IsTaskFinish(ctx, req.(*RoomNoticeIsTaskFinishReq))
  432. }
  433. return interceptor(ctx, in, info, handler)
  434. }
  435. func _RoomNotice_SetTaskFinish_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  436. in := new(RoomNoticeSetTaskFinishReq)
  437. if err := dec(in); err != nil {
  438. return nil, err
  439. }
  440. if interceptor == nil {
  441. return srv.(RoomNoticeServer).SetTaskFinish(ctx, in)
  442. }
  443. info := &grpc.UnaryServerInfo{
  444. Server: srv,
  445. FullMethod: "/live.xuserex.v1.RoomNotice/SetTaskFinish",
  446. }
  447. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  448. return srv.(RoomNoticeServer).SetTaskFinish(ctx, req.(*RoomNoticeSetTaskFinishReq))
  449. }
  450. return interceptor(ctx, in, info, handler)
  451. }
  452. var _RoomNotice_serviceDesc = grpc.ServiceDesc{
  453. ServiceName: "live.xuserex.v1.RoomNotice",
  454. HandlerType: (*RoomNoticeServer)(nil),
  455. Methods: []grpc.MethodDesc{
  456. {
  457. MethodName: "buy_guard",
  458. Handler: _RoomNotice_BuyGuard_Handler,
  459. },
  460. {
  461. MethodName: "is_task_finish",
  462. Handler: _RoomNotice_IsTaskFinish_Handler,
  463. },
  464. {
  465. MethodName: "set_task_finish",
  466. Handler: _RoomNotice_SetTaskFinish_Handler,
  467. },
  468. },
  469. Streams: []grpc.StreamDesc{},
  470. Metadata: "app/service/live/xuserex/api/grpc/v1/roomNotice.proto",
  471. }
  472. func (m *RoomNoticeBuyGuardReq) Marshal() (dAtA []byte, err error) {
  473. size := m.Size()
  474. dAtA = make([]byte, size)
  475. n, err := m.MarshalTo(dAtA)
  476. if err != nil {
  477. return nil, err
  478. }
  479. return dAtA[:n], nil
  480. }
  481. func (m *RoomNoticeBuyGuardReq) MarshalTo(dAtA []byte) (int, error) {
  482. var i int
  483. _ = i
  484. var l int
  485. _ = l
  486. if m.Uid != 0 {
  487. dAtA[i] = 0x8
  488. i++
  489. i = encodeVarintRoomNotice(dAtA, i, uint64(m.Uid))
  490. }
  491. if m.TargetId != 0 {
  492. dAtA[i] = 0x10
  493. i++
  494. i = encodeVarintRoomNotice(dAtA, i, uint64(m.TargetId))
  495. }
  496. if m.XXX_unrecognized != nil {
  497. i += copy(dAtA[i:], m.XXX_unrecognized)
  498. }
  499. return i, nil
  500. }
  501. func (m *RoomNoticeIsTaskFinishReq) Marshal() (dAtA []byte, err error) {
  502. size := m.Size()
  503. dAtA = make([]byte, size)
  504. n, err := m.MarshalTo(dAtA)
  505. if err != nil {
  506. return nil, err
  507. }
  508. return dAtA[:n], nil
  509. }
  510. func (m *RoomNoticeIsTaskFinishReq) MarshalTo(dAtA []byte) (int, error) {
  511. var i int
  512. _ = i
  513. var l int
  514. _ = l
  515. if m.XXX_unrecognized != nil {
  516. i += copy(dAtA[i:], m.XXX_unrecognized)
  517. }
  518. return i, nil
  519. }
  520. func (m *RoomNoticeSetTaskFinishReq) Marshal() (dAtA []byte, err error) {
  521. size := m.Size()
  522. dAtA = make([]byte, size)
  523. n, err := m.MarshalTo(dAtA)
  524. if err != nil {
  525. return nil, err
  526. }
  527. return dAtA[:n], nil
  528. }
  529. func (m *RoomNoticeSetTaskFinishReq) MarshalTo(dAtA []byte) (int, error) {
  530. var i int
  531. _ = i
  532. var l int
  533. _ = l
  534. if m.Result != 0 {
  535. dAtA[i] = 0x8
  536. i++
  537. i = encodeVarintRoomNotice(dAtA, i, uint64(m.Result))
  538. }
  539. if m.XXX_unrecognized != nil {
  540. i += copy(dAtA[i:], m.XXX_unrecognized)
  541. }
  542. return i, nil
  543. }
  544. func (m *RoomNoticeBuyGuardResp) Marshal() (dAtA []byte, err error) {
  545. size := m.Size()
  546. dAtA = make([]byte, size)
  547. n, err := m.MarshalTo(dAtA)
  548. if err != nil {
  549. return nil, err
  550. }
  551. return dAtA[:n], nil
  552. }
  553. func (m *RoomNoticeBuyGuardResp) MarshalTo(dAtA []byte) (int, error) {
  554. var i int
  555. _ = i
  556. var l int
  557. _ = l
  558. if m.ShouldNotice != 0 {
  559. dAtA[i] = 0x8
  560. i++
  561. i = encodeVarintRoomNotice(dAtA, i, uint64(m.ShouldNotice))
  562. }
  563. if m.Begin != 0 {
  564. dAtA[i] = 0x10
  565. i++
  566. i = encodeVarintRoomNotice(dAtA, i, uint64(m.Begin))
  567. }
  568. if m.End != 0 {
  569. dAtA[i] = 0x18
  570. i++
  571. i = encodeVarintRoomNotice(dAtA, i, uint64(m.End))
  572. }
  573. if len(m.Title) > 0 {
  574. dAtA[i] = 0x22
  575. i++
  576. i = encodeVarintRoomNotice(dAtA, i, uint64(len(m.Title)))
  577. i += copy(dAtA[i:], m.Title)
  578. }
  579. if len(m.Content) > 0 {
  580. dAtA[i] = 0x2a
  581. i++
  582. i = encodeVarintRoomNotice(dAtA, i, uint64(len(m.Content)))
  583. i += copy(dAtA[i:], m.Content)
  584. }
  585. if len(m.Button) > 0 {
  586. dAtA[i] = 0x32
  587. i++
  588. i = encodeVarintRoomNotice(dAtA, i, uint64(len(m.Button)))
  589. i += copy(dAtA[i:], m.Button)
  590. }
  591. if m.Now != 0 {
  592. dAtA[i] = 0x38
  593. i++
  594. i = encodeVarintRoomNotice(dAtA, i, uint64(m.Now))
  595. }
  596. if m.XXX_unrecognized != nil {
  597. i += copy(dAtA[i:], m.XXX_unrecognized)
  598. }
  599. return i, nil
  600. }
  601. func (m *RoomNoticeIsTaskFinishResp) Marshal() (dAtA []byte, err error) {
  602. size := m.Size()
  603. dAtA = make([]byte, size)
  604. n, err := m.MarshalTo(dAtA)
  605. if err != nil {
  606. return nil, err
  607. }
  608. return dAtA[:n], nil
  609. }
  610. func (m *RoomNoticeIsTaskFinishResp) MarshalTo(dAtA []byte) (int, error) {
  611. var i int
  612. _ = i
  613. var l int
  614. _ = l
  615. if m.Result != 0 {
  616. dAtA[i] = 0x8
  617. i++
  618. i = encodeVarintRoomNotice(dAtA, i, uint64(m.Result))
  619. }
  620. if m.XXX_unrecognized != nil {
  621. i += copy(dAtA[i:], m.XXX_unrecognized)
  622. }
  623. return i, nil
  624. }
  625. func (m *RoomNoticeSetTaskFinishResp) Marshal() (dAtA []byte, err error) {
  626. size := m.Size()
  627. dAtA = make([]byte, size)
  628. n, err := m.MarshalTo(dAtA)
  629. if err != nil {
  630. return nil, err
  631. }
  632. return dAtA[:n], nil
  633. }
  634. func (m *RoomNoticeSetTaskFinishResp) MarshalTo(dAtA []byte) (int, error) {
  635. var i int
  636. _ = i
  637. var l int
  638. _ = l
  639. if m.Result != 0 {
  640. dAtA[i] = 0x8
  641. i++
  642. i = encodeVarintRoomNotice(dAtA, i, uint64(m.Result))
  643. }
  644. if m.XXX_unrecognized != nil {
  645. i += copy(dAtA[i:], m.XXX_unrecognized)
  646. }
  647. return i, nil
  648. }
  649. func encodeVarintRoomNotice(dAtA []byte, offset int, v uint64) int {
  650. for v >= 1<<7 {
  651. dAtA[offset] = uint8(v&0x7f | 0x80)
  652. v >>= 7
  653. offset++
  654. }
  655. dAtA[offset] = uint8(v)
  656. return offset + 1
  657. }
  658. func (m *RoomNoticeBuyGuardReq) Size() (n int) {
  659. if m == nil {
  660. return 0
  661. }
  662. var l int
  663. _ = l
  664. if m.Uid != 0 {
  665. n += 1 + sovRoomNotice(uint64(m.Uid))
  666. }
  667. if m.TargetId != 0 {
  668. n += 1 + sovRoomNotice(uint64(m.TargetId))
  669. }
  670. if m.XXX_unrecognized != nil {
  671. n += len(m.XXX_unrecognized)
  672. }
  673. return n
  674. }
  675. func (m *RoomNoticeIsTaskFinishReq) Size() (n int) {
  676. if m == nil {
  677. return 0
  678. }
  679. var l int
  680. _ = l
  681. if m.XXX_unrecognized != nil {
  682. n += len(m.XXX_unrecognized)
  683. }
  684. return n
  685. }
  686. func (m *RoomNoticeSetTaskFinishReq) Size() (n int) {
  687. if m == nil {
  688. return 0
  689. }
  690. var l int
  691. _ = l
  692. if m.Result != 0 {
  693. n += 1 + sovRoomNotice(uint64(m.Result))
  694. }
  695. if m.XXX_unrecognized != nil {
  696. n += len(m.XXX_unrecognized)
  697. }
  698. return n
  699. }
  700. func (m *RoomNoticeBuyGuardResp) Size() (n int) {
  701. if m == nil {
  702. return 0
  703. }
  704. var l int
  705. _ = l
  706. if m.ShouldNotice != 0 {
  707. n += 1 + sovRoomNotice(uint64(m.ShouldNotice))
  708. }
  709. if m.Begin != 0 {
  710. n += 1 + sovRoomNotice(uint64(m.Begin))
  711. }
  712. if m.End != 0 {
  713. n += 1 + sovRoomNotice(uint64(m.End))
  714. }
  715. l = len(m.Title)
  716. if l > 0 {
  717. n += 1 + l + sovRoomNotice(uint64(l))
  718. }
  719. l = len(m.Content)
  720. if l > 0 {
  721. n += 1 + l + sovRoomNotice(uint64(l))
  722. }
  723. l = len(m.Button)
  724. if l > 0 {
  725. n += 1 + l + sovRoomNotice(uint64(l))
  726. }
  727. if m.Now != 0 {
  728. n += 1 + sovRoomNotice(uint64(m.Now))
  729. }
  730. if m.XXX_unrecognized != nil {
  731. n += len(m.XXX_unrecognized)
  732. }
  733. return n
  734. }
  735. func (m *RoomNoticeIsTaskFinishResp) Size() (n int) {
  736. if m == nil {
  737. return 0
  738. }
  739. var l int
  740. _ = l
  741. if m.Result != 0 {
  742. n += 1 + sovRoomNotice(uint64(m.Result))
  743. }
  744. if m.XXX_unrecognized != nil {
  745. n += len(m.XXX_unrecognized)
  746. }
  747. return n
  748. }
  749. func (m *RoomNoticeSetTaskFinishResp) Size() (n int) {
  750. if m == nil {
  751. return 0
  752. }
  753. var l int
  754. _ = l
  755. if m.Result != 0 {
  756. n += 1 + sovRoomNotice(uint64(m.Result))
  757. }
  758. if m.XXX_unrecognized != nil {
  759. n += len(m.XXX_unrecognized)
  760. }
  761. return n
  762. }
  763. func sovRoomNotice(x uint64) (n int) {
  764. for {
  765. n++
  766. x >>= 7
  767. if x == 0 {
  768. break
  769. }
  770. }
  771. return n
  772. }
  773. func sozRoomNotice(x uint64) (n int) {
  774. return sovRoomNotice(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  775. }
  776. func (m *RoomNoticeBuyGuardReq) Unmarshal(dAtA []byte) error {
  777. l := len(dAtA)
  778. iNdEx := 0
  779. for iNdEx < l {
  780. preIndex := iNdEx
  781. var wire uint64
  782. for shift := uint(0); ; shift += 7 {
  783. if shift >= 64 {
  784. return ErrIntOverflowRoomNotice
  785. }
  786. if iNdEx >= l {
  787. return io.ErrUnexpectedEOF
  788. }
  789. b := dAtA[iNdEx]
  790. iNdEx++
  791. wire |= (uint64(b) & 0x7F) << shift
  792. if b < 0x80 {
  793. break
  794. }
  795. }
  796. fieldNum := int32(wire >> 3)
  797. wireType := int(wire & 0x7)
  798. if wireType == 4 {
  799. return fmt.Errorf("proto: RoomNoticeBuyGuardReq: wiretype end group for non-group")
  800. }
  801. if fieldNum <= 0 {
  802. return fmt.Errorf("proto: RoomNoticeBuyGuardReq: illegal tag %d (wire type %d)", fieldNum, wire)
  803. }
  804. switch fieldNum {
  805. case 1:
  806. if wireType != 0 {
  807. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  808. }
  809. m.Uid = 0
  810. for shift := uint(0); ; shift += 7 {
  811. if shift >= 64 {
  812. return ErrIntOverflowRoomNotice
  813. }
  814. if iNdEx >= l {
  815. return io.ErrUnexpectedEOF
  816. }
  817. b := dAtA[iNdEx]
  818. iNdEx++
  819. m.Uid |= (int64(b) & 0x7F) << shift
  820. if b < 0x80 {
  821. break
  822. }
  823. }
  824. case 2:
  825. if wireType != 0 {
  826. return fmt.Errorf("proto: wrong wireType = %d for field TargetId", wireType)
  827. }
  828. m.TargetId = 0
  829. for shift := uint(0); ; shift += 7 {
  830. if shift >= 64 {
  831. return ErrIntOverflowRoomNotice
  832. }
  833. if iNdEx >= l {
  834. return io.ErrUnexpectedEOF
  835. }
  836. b := dAtA[iNdEx]
  837. iNdEx++
  838. m.TargetId |= (int64(b) & 0x7F) << shift
  839. if b < 0x80 {
  840. break
  841. }
  842. }
  843. default:
  844. iNdEx = preIndex
  845. skippy, err := skipRoomNotice(dAtA[iNdEx:])
  846. if err != nil {
  847. return err
  848. }
  849. if skippy < 0 {
  850. return ErrInvalidLengthRoomNotice
  851. }
  852. if (iNdEx + skippy) > l {
  853. return io.ErrUnexpectedEOF
  854. }
  855. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  856. iNdEx += skippy
  857. }
  858. }
  859. if iNdEx > l {
  860. return io.ErrUnexpectedEOF
  861. }
  862. return nil
  863. }
  864. func (m *RoomNoticeIsTaskFinishReq) Unmarshal(dAtA []byte) error {
  865. l := len(dAtA)
  866. iNdEx := 0
  867. for iNdEx < l {
  868. preIndex := iNdEx
  869. var wire uint64
  870. for shift := uint(0); ; shift += 7 {
  871. if shift >= 64 {
  872. return ErrIntOverflowRoomNotice
  873. }
  874. if iNdEx >= l {
  875. return io.ErrUnexpectedEOF
  876. }
  877. b := dAtA[iNdEx]
  878. iNdEx++
  879. wire |= (uint64(b) & 0x7F) << shift
  880. if b < 0x80 {
  881. break
  882. }
  883. }
  884. fieldNum := int32(wire >> 3)
  885. wireType := int(wire & 0x7)
  886. if wireType == 4 {
  887. return fmt.Errorf("proto: RoomNoticeIsTaskFinishReq: wiretype end group for non-group")
  888. }
  889. if fieldNum <= 0 {
  890. return fmt.Errorf("proto: RoomNoticeIsTaskFinishReq: illegal tag %d (wire type %d)", fieldNum, wire)
  891. }
  892. switch fieldNum {
  893. default:
  894. iNdEx = preIndex
  895. skippy, err := skipRoomNotice(dAtA[iNdEx:])
  896. if err != nil {
  897. return err
  898. }
  899. if skippy < 0 {
  900. return ErrInvalidLengthRoomNotice
  901. }
  902. if (iNdEx + skippy) > l {
  903. return io.ErrUnexpectedEOF
  904. }
  905. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  906. iNdEx += skippy
  907. }
  908. }
  909. if iNdEx > l {
  910. return io.ErrUnexpectedEOF
  911. }
  912. return nil
  913. }
  914. func (m *RoomNoticeSetTaskFinishReq) Unmarshal(dAtA []byte) error {
  915. l := len(dAtA)
  916. iNdEx := 0
  917. for iNdEx < l {
  918. preIndex := iNdEx
  919. var wire uint64
  920. for shift := uint(0); ; shift += 7 {
  921. if shift >= 64 {
  922. return ErrIntOverflowRoomNotice
  923. }
  924. if iNdEx >= l {
  925. return io.ErrUnexpectedEOF
  926. }
  927. b := dAtA[iNdEx]
  928. iNdEx++
  929. wire |= (uint64(b) & 0x7F) << shift
  930. if b < 0x80 {
  931. break
  932. }
  933. }
  934. fieldNum := int32(wire >> 3)
  935. wireType := int(wire & 0x7)
  936. if wireType == 4 {
  937. return fmt.Errorf("proto: RoomNoticeSetTaskFinishReq: wiretype end group for non-group")
  938. }
  939. if fieldNum <= 0 {
  940. return fmt.Errorf("proto: RoomNoticeSetTaskFinishReq: illegal tag %d (wire type %d)", fieldNum, wire)
  941. }
  942. switch fieldNum {
  943. case 1:
  944. if wireType != 0 {
  945. return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
  946. }
  947. m.Result = 0
  948. for shift := uint(0); ; shift += 7 {
  949. if shift >= 64 {
  950. return ErrIntOverflowRoomNotice
  951. }
  952. if iNdEx >= l {
  953. return io.ErrUnexpectedEOF
  954. }
  955. b := dAtA[iNdEx]
  956. iNdEx++
  957. m.Result |= (int64(b) & 0x7F) << shift
  958. if b < 0x80 {
  959. break
  960. }
  961. }
  962. default:
  963. iNdEx = preIndex
  964. skippy, err := skipRoomNotice(dAtA[iNdEx:])
  965. if err != nil {
  966. return err
  967. }
  968. if skippy < 0 {
  969. return ErrInvalidLengthRoomNotice
  970. }
  971. if (iNdEx + skippy) > l {
  972. return io.ErrUnexpectedEOF
  973. }
  974. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  975. iNdEx += skippy
  976. }
  977. }
  978. if iNdEx > l {
  979. return io.ErrUnexpectedEOF
  980. }
  981. return nil
  982. }
  983. func (m *RoomNoticeBuyGuardResp) Unmarshal(dAtA []byte) error {
  984. l := len(dAtA)
  985. iNdEx := 0
  986. for iNdEx < l {
  987. preIndex := iNdEx
  988. var wire uint64
  989. for shift := uint(0); ; shift += 7 {
  990. if shift >= 64 {
  991. return ErrIntOverflowRoomNotice
  992. }
  993. if iNdEx >= l {
  994. return io.ErrUnexpectedEOF
  995. }
  996. b := dAtA[iNdEx]
  997. iNdEx++
  998. wire |= (uint64(b) & 0x7F) << shift
  999. if b < 0x80 {
  1000. break
  1001. }
  1002. }
  1003. fieldNum := int32(wire >> 3)
  1004. wireType := int(wire & 0x7)
  1005. if wireType == 4 {
  1006. return fmt.Errorf("proto: RoomNoticeBuyGuardResp: wiretype end group for non-group")
  1007. }
  1008. if fieldNum <= 0 {
  1009. return fmt.Errorf("proto: RoomNoticeBuyGuardResp: illegal tag %d (wire type %d)", fieldNum, wire)
  1010. }
  1011. switch fieldNum {
  1012. case 1:
  1013. if wireType != 0 {
  1014. return fmt.Errorf("proto: wrong wireType = %d for field ShouldNotice", wireType)
  1015. }
  1016. m.ShouldNotice = 0
  1017. for shift := uint(0); ; shift += 7 {
  1018. if shift >= 64 {
  1019. return ErrIntOverflowRoomNotice
  1020. }
  1021. if iNdEx >= l {
  1022. return io.ErrUnexpectedEOF
  1023. }
  1024. b := dAtA[iNdEx]
  1025. iNdEx++
  1026. m.ShouldNotice |= (int64(b) & 0x7F) << shift
  1027. if b < 0x80 {
  1028. break
  1029. }
  1030. }
  1031. case 2:
  1032. if wireType != 0 {
  1033. return fmt.Errorf("proto: wrong wireType = %d for field Begin", wireType)
  1034. }
  1035. m.Begin = 0
  1036. for shift := uint(0); ; shift += 7 {
  1037. if shift >= 64 {
  1038. return ErrIntOverflowRoomNotice
  1039. }
  1040. if iNdEx >= l {
  1041. return io.ErrUnexpectedEOF
  1042. }
  1043. b := dAtA[iNdEx]
  1044. iNdEx++
  1045. m.Begin |= (int64(b) & 0x7F) << shift
  1046. if b < 0x80 {
  1047. break
  1048. }
  1049. }
  1050. case 3:
  1051. if wireType != 0 {
  1052. return fmt.Errorf("proto: wrong wireType = %d for field End", wireType)
  1053. }
  1054. m.End = 0
  1055. for shift := uint(0); ; shift += 7 {
  1056. if shift >= 64 {
  1057. return ErrIntOverflowRoomNotice
  1058. }
  1059. if iNdEx >= l {
  1060. return io.ErrUnexpectedEOF
  1061. }
  1062. b := dAtA[iNdEx]
  1063. iNdEx++
  1064. m.End |= (int64(b) & 0x7F) << shift
  1065. if b < 0x80 {
  1066. break
  1067. }
  1068. }
  1069. case 4:
  1070. if wireType != 2 {
  1071. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  1072. }
  1073. var stringLen uint64
  1074. for shift := uint(0); ; shift += 7 {
  1075. if shift >= 64 {
  1076. return ErrIntOverflowRoomNotice
  1077. }
  1078. if iNdEx >= l {
  1079. return io.ErrUnexpectedEOF
  1080. }
  1081. b := dAtA[iNdEx]
  1082. iNdEx++
  1083. stringLen |= (uint64(b) & 0x7F) << shift
  1084. if b < 0x80 {
  1085. break
  1086. }
  1087. }
  1088. intStringLen := int(stringLen)
  1089. if intStringLen < 0 {
  1090. return ErrInvalidLengthRoomNotice
  1091. }
  1092. postIndex := iNdEx + intStringLen
  1093. if postIndex > l {
  1094. return io.ErrUnexpectedEOF
  1095. }
  1096. m.Title = string(dAtA[iNdEx:postIndex])
  1097. iNdEx = postIndex
  1098. case 5:
  1099. if wireType != 2 {
  1100. return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType)
  1101. }
  1102. var stringLen uint64
  1103. for shift := uint(0); ; shift += 7 {
  1104. if shift >= 64 {
  1105. return ErrIntOverflowRoomNotice
  1106. }
  1107. if iNdEx >= l {
  1108. return io.ErrUnexpectedEOF
  1109. }
  1110. b := dAtA[iNdEx]
  1111. iNdEx++
  1112. stringLen |= (uint64(b) & 0x7F) << shift
  1113. if b < 0x80 {
  1114. break
  1115. }
  1116. }
  1117. intStringLen := int(stringLen)
  1118. if intStringLen < 0 {
  1119. return ErrInvalidLengthRoomNotice
  1120. }
  1121. postIndex := iNdEx + intStringLen
  1122. if postIndex > l {
  1123. return io.ErrUnexpectedEOF
  1124. }
  1125. m.Content = string(dAtA[iNdEx:postIndex])
  1126. iNdEx = postIndex
  1127. case 6:
  1128. if wireType != 2 {
  1129. return fmt.Errorf("proto: wrong wireType = %d for field Button", wireType)
  1130. }
  1131. var stringLen uint64
  1132. for shift := uint(0); ; shift += 7 {
  1133. if shift >= 64 {
  1134. return ErrIntOverflowRoomNotice
  1135. }
  1136. if iNdEx >= l {
  1137. return io.ErrUnexpectedEOF
  1138. }
  1139. b := dAtA[iNdEx]
  1140. iNdEx++
  1141. stringLen |= (uint64(b) & 0x7F) << shift
  1142. if b < 0x80 {
  1143. break
  1144. }
  1145. }
  1146. intStringLen := int(stringLen)
  1147. if intStringLen < 0 {
  1148. return ErrInvalidLengthRoomNotice
  1149. }
  1150. postIndex := iNdEx + intStringLen
  1151. if postIndex > l {
  1152. return io.ErrUnexpectedEOF
  1153. }
  1154. m.Button = string(dAtA[iNdEx:postIndex])
  1155. iNdEx = postIndex
  1156. case 7:
  1157. if wireType != 0 {
  1158. return fmt.Errorf("proto: wrong wireType = %d for field Now", wireType)
  1159. }
  1160. m.Now = 0
  1161. for shift := uint(0); ; shift += 7 {
  1162. if shift >= 64 {
  1163. return ErrIntOverflowRoomNotice
  1164. }
  1165. if iNdEx >= l {
  1166. return io.ErrUnexpectedEOF
  1167. }
  1168. b := dAtA[iNdEx]
  1169. iNdEx++
  1170. m.Now |= (int64(b) & 0x7F) << shift
  1171. if b < 0x80 {
  1172. break
  1173. }
  1174. }
  1175. default:
  1176. iNdEx = preIndex
  1177. skippy, err := skipRoomNotice(dAtA[iNdEx:])
  1178. if err != nil {
  1179. return err
  1180. }
  1181. if skippy < 0 {
  1182. return ErrInvalidLengthRoomNotice
  1183. }
  1184. if (iNdEx + skippy) > l {
  1185. return io.ErrUnexpectedEOF
  1186. }
  1187. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1188. iNdEx += skippy
  1189. }
  1190. }
  1191. if iNdEx > l {
  1192. return io.ErrUnexpectedEOF
  1193. }
  1194. return nil
  1195. }
  1196. func (m *RoomNoticeIsTaskFinishResp) Unmarshal(dAtA []byte) error {
  1197. l := len(dAtA)
  1198. iNdEx := 0
  1199. for iNdEx < l {
  1200. preIndex := iNdEx
  1201. var wire uint64
  1202. for shift := uint(0); ; shift += 7 {
  1203. if shift >= 64 {
  1204. return ErrIntOverflowRoomNotice
  1205. }
  1206. if iNdEx >= l {
  1207. return io.ErrUnexpectedEOF
  1208. }
  1209. b := dAtA[iNdEx]
  1210. iNdEx++
  1211. wire |= (uint64(b) & 0x7F) << shift
  1212. if b < 0x80 {
  1213. break
  1214. }
  1215. }
  1216. fieldNum := int32(wire >> 3)
  1217. wireType := int(wire & 0x7)
  1218. if wireType == 4 {
  1219. return fmt.Errorf("proto: RoomNoticeIsTaskFinishResp: wiretype end group for non-group")
  1220. }
  1221. if fieldNum <= 0 {
  1222. return fmt.Errorf("proto: RoomNoticeIsTaskFinishResp: illegal tag %d (wire type %d)", fieldNum, wire)
  1223. }
  1224. switch fieldNum {
  1225. case 1:
  1226. if wireType != 0 {
  1227. return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
  1228. }
  1229. m.Result = 0
  1230. for shift := uint(0); ; shift += 7 {
  1231. if shift >= 64 {
  1232. return ErrIntOverflowRoomNotice
  1233. }
  1234. if iNdEx >= l {
  1235. return io.ErrUnexpectedEOF
  1236. }
  1237. b := dAtA[iNdEx]
  1238. iNdEx++
  1239. m.Result |= (int64(b) & 0x7F) << shift
  1240. if b < 0x80 {
  1241. break
  1242. }
  1243. }
  1244. default:
  1245. iNdEx = preIndex
  1246. skippy, err := skipRoomNotice(dAtA[iNdEx:])
  1247. if err != nil {
  1248. return err
  1249. }
  1250. if skippy < 0 {
  1251. return ErrInvalidLengthRoomNotice
  1252. }
  1253. if (iNdEx + skippy) > l {
  1254. return io.ErrUnexpectedEOF
  1255. }
  1256. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1257. iNdEx += skippy
  1258. }
  1259. }
  1260. if iNdEx > l {
  1261. return io.ErrUnexpectedEOF
  1262. }
  1263. return nil
  1264. }
  1265. func (m *RoomNoticeSetTaskFinishResp) Unmarshal(dAtA []byte) error {
  1266. l := len(dAtA)
  1267. iNdEx := 0
  1268. for iNdEx < l {
  1269. preIndex := iNdEx
  1270. var wire uint64
  1271. for shift := uint(0); ; shift += 7 {
  1272. if shift >= 64 {
  1273. return ErrIntOverflowRoomNotice
  1274. }
  1275. if iNdEx >= l {
  1276. return io.ErrUnexpectedEOF
  1277. }
  1278. b := dAtA[iNdEx]
  1279. iNdEx++
  1280. wire |= (uint64(b) & 0x7F) << shift
  1281. if b < 0x80 {
  1282. break
  1283. }
  1284. }
  1285. fieldNum := int32(wire >> 3)
  1286. wireType := int(wire & 0x7)
  1287. if wireType == 4 {
  1288. return fmt.Errorf("proto: RoomNoticeSetTaskFinishResp: wiretype end group for non-group")
  1289. }
  1290. if fieldNum <= 0 {
  1291. return fmt.Errorf("proto: RoomNoticeSetTaskFinishResp: illegal tag %d (wire type %d)", fieldNum, wire)
  1292. }
  1293. switch fieldNum {
  1294. case 1:
  1295. if wireType != 0 {
  1296. return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
  1297. }
  1298. m.Result = 0
  1299. for shift := uint(0); ; shift += 7 {
  1300. if shift >= 64 {
  1301. return ErrIntOverflowRoomNotice
  1302. }
  1303. if iNdEx >= l {
  1304. return io.ErrUnexpectedEOF
  1305. }
  1306. b := dAtA[iNdEx]
  1307. iNdEx++
  1308. m.Result |= (int64(b) & 0x7F) << shift
  1309. if b < 0x80 {
  1310. break
  1311. }
  1312. }
  1313. default:
  1314. iNdEx = preIndex
  1315. skippy, err := skipRoomNotice(dAtA[iNdEx:])
  1316. if err != nil {
  1317. return err
  1318. }
  1319. if skippy < 0 {
  1320. return ErrInvalidLengthRoomNotice
  1321. }
  1322. if (iNdEx + skippy) > l {
  1323. return io.ErrUnexpectedEOF
  1324. }
  1325. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1326. iNdEx += skippy
  1327. }
  1328. }
  1329. if iNdEx > l {
  1330. return io.ErrUnexpectedEOF
  1331. }
  1332. return nil
  1333. }
  1334. func skipRoomNotice(dAtA []byte) (n int, err error) {
  1335. l := len(dAtA)
  1336. iNdEx := 0
  1337. for iNdEx < l {
  1338. var wire uint64
  1339. for shift := uint(0); ; shift += 7 {
  1340. if shift >= 64 {
  1341. return 0, ErrIntOverflowRoomNotice
  1342. }
  1343. if iNdEx >= l {
  1344. return 0, io.ErrUnexpectedEOF
  1345. }
  1346. b := dAtA[iNdEx]
  1347. iNdEx++
  1348. wire |= (uint64(b) & 0x7F) << shift
  1349. if b < 0x80 {
  1350. break
  1351. }
  1352. }
  1353. wireType := int(wire & 0x7)
  1354. switch wireType {
  1355. case 0:
  1356. for shift := uint(0); ; shift += 7 {
  1357. if shift >= 64 {
  1358. return 0, ErrIntOverflowRoomNotice
  1359. }
  1360. if iNdEx >= l {
  1361. return 0, io.ErrUnexpectedEOF
  1362. }
  1363. iNdEx++
  1364. if dAtA[iNdEx-1] < 0x80 {
  1365. break
  1366. }
  1367. }
  1368. return iNdEx, nil
  1369. case 1:
  1370. iNdEx += 8
  1371. return iNdEx, nil
  1372. case 2:
  1373. var length int
  1374. for shift := uint(0); ; shift += 7 {
  1375. if shift >= 64 {
  1376. return 0, ErrIntOverflowRoomNotice
  1377. }
  1378. if iNdEx >= l {
  1379. return 0, io.ErrUnexpectedEOF
  1380. }
  1381. b := dAtA[iNdEx]
  1382. iNdEx++
  1383. length |= (int(b) & 0x7F) << shift
  1384. if b < 0x80 {
  1385. break
  1386. }
  1387. }
  1388. iNdEx += length
  1389. if length < 0 {
  1390. return 0, ErrInvalidLengthRoomNotice
  1391. }
  1392. return iNdEx, nil
  1393. case 3:
  1394. for {
  1395. var innerWire uint64
  1396. var start int = iNdEx
  1397. for shift := uint(0); ; shift += 7 {
  1398. if shift >= 64 {
  1399. return 0, ErrIntOverflowRoomNotice
  1400. }
  1401. if iNdEx >= l {
  1402. return 0, io.ErrUnexpectedEOF
  1403. }
  1404. b := dAtA[iNdEx]
  1405. iNdEx++
  1406. innerWire |= (uint64(b) & 0x7F) << shift
  1407. if b < 0x80 {
  1408. break
  1409. }
  1410. }
  1411. innerWireType := int(innerWire & 0x7)
  1412. if innerWireType == 4 {
  1413. break
  1414. }
  1415. next, err := skipRoomNotice(dAtA[start:])
  1416. if err != nil {
  1417. return 0, err
  1418. }
  1419. iNdEx = start + next
  1420. }
  1421. return iNdEx, nil
  1422. case 4:
  1423. return iNdEx, nil
  1424. case 5:
  1425. iNdEx += 4
  1426. return iNdEx, nil
  1427. default:
  1428. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1429. }
  1430. }
  1431. panic("unreachable")
  1432. }
  1433. var (
  1434. ErrInvalidLengthRoomNotice = fmt.Errorf("proto: negative length found during unmarshaling")
  1435. ErrIntOverflowRoomNotice = fmt.Errorf("proto: integer overflow")
  1436. )
  1437. func init() {
  1438. proto.RegisterFile("app/service/live/xuserex/api/grpc/v1/roomNotice.proto", fileDescriptor_roomNotice_24b9e57bdfdfad1b)
  1439. }
  1440. var fileDescriptor_roomNotice_24b9e57bdfdfad1b = []byte{
  1441. // 498 bytes of a gzipped FileDescriptorProto
  1442. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xcd, 0x6e, 0xd3, 0x40,
  1443. 0x10, 0x96, 0x13, 0x9a, 0x92, 0x15, 0xa5, 0x65, 0x05, 0x95, 0x49, 0xa5, 0x24, 0x5a, 0x10, 0x84,
  1444. 0x3f, 0x5b, 0x81, 0xf6, 0xd2, 0x63, 0x24, 0xa8, 0x7a, 0xe1, 0x60, 0x38, 0x21, 0xa4, 0xc8, 0x3f,
  1445. 0x13, 0x67, 0x55, 0xc7, 0xbb, 0xd9, 0x1f, 0xb7, 0x7d, 0x0f, 0xde, 0x87, 0x03, 0x17, 0x8e, 0x3c,
  1446. 0x41, 0x84, 0xf2, 0x08, 0x79, 0x02, 0xe4, 0xdd, 0x90, 0x34, 0x51, 0x5a, 0xe5, 0xe6, 0x6f, 0xbe,
  1447. 0x9f, 0x9d, 0x19, 0x8d, 0xd1, 0x49, 0xc8, 0xb9, 0x2f, 0x41, 0x14, 0x34, 0x06, 0x3f, 0xa3, 0x05,
  1448. 0xf8, 0x57, 0x5a, 0x82, 0x80, 0x2b, 0x3f, 0xe4, 0xd4, 0x4f, 0x05, 0x8f, 0xfd, 0xa2, 0xeb, 0x0b,
  1449. 0xc6, 0x46, 0x9f, 0x99, 0xa2, 0x31, 0x78, 0x5c, 0x30, 0xc5, 0xf0, 0x7e, 0x29, 0xf5, 0xe6, 0x52,
  1450. 0xaf, 0xe8, 0x36, 0xde, 0xa5, 0x54, 0x0d, 0x75, 0xe4, 0xc5, 0x6c, 0xe4, 0xa7, 0x2c, 0x65, 0xbe,
  1451. 0xd1, 0x45, 0x7a, 0x60, 0x90, 0x01, 0xe6, 0xcb, 0xfa, 0xc9, 0x0f, 0x07, 0x3d, 0x09, 0x16, 0xa1,
  1452. 0x3d, 0x7d, 0x7d, 0xa6, 0x43, 0x91, 0x04, 0x30, 0xc6, 0xc7, 0xa8, 0xaa, 0x69, 0xe2, 0x3a, 0x6d,
  1453. 0xa7, 0x53, 0xed, 0x91, 0xd9, 0xa4, 0xd5, 0x1c, 0x30, 0x31, 0x3a, 0x25, 0x9a, 0x26, 0xa4, 0x5d,
  1454. 0x84, 0x19, 0x4d, 0x42, 0x05, 0xa7, 0x44, 0xc0, 0x58, 0x53, 0x01, 0x09, 0x09, 0x4a, 0x39, 0xfe,
  1455. 0x88, 0xea, 0x2a, 0x14, 0x29, 0xa8, 0x3e, 0x4d, 0xdc, 0x8a, 0xf1, 0x76, 0x66, 0x93, 0xd6, 0x73,
  1456. 0xeb, 0x5d, 0x50, 0x9b, 0x13, 0xee, 0x5b, 0xfe, 0x3c, 0x21, 0x47, 0xe8, 0xe9, 0xb2, 0xab, 0x73,
  1457. 0xf9, 0x35, 0x94, 0x17, 0x9f, 0x68, 0x4e, 0xe5, 0x30, 0x80, 0x31, 0x39, 0x43, 0x8d, 0x25, 0xf9,
  1458. 0x05, 0xd4, 0x0a, 0x8b, 0x5f, 0xa1, 0x9a, 0x00, 0xa9, 0x33, 0x35, 0x6f, 0xfd, 0xd1, 0x6c, 0xd2,
  1459. 0xda, 0xb3, 0xcf, 0xdb, 0x3a, 0x09, 0xe6, 0x02, 0xf2, 0xd3, 0x41, 0x87, 0x9b, 0x86, 0x97, 0x1c,
  1460. 0x3f, 0x43, 0x7b, 0x72, 0xc8, 0x74, 0x96, 0xf4, 0x73, 0x43, 0xda, 0xb0, 0xe0, 0x81, 0x2d, 0x5a,
  1461. 0x03, 0x7e, 0x8c, 0x76, 0x22, 0x48, 0x69, 0x6e, 0x07, 0x0d, 0x2c, 0xc0, 0x07, 0xa8, 0x0a, 0x79,
  1462. 0xe2, 0x56, 0x4d, 0xad, 0xfc, 0x2c, 0x75, 0x8a, 0xaa, 0x0c, 0xdc, 0x7b, 0x6d, 0xa7, 0x53, 0x0f,
  1463. 0x2c, 0xc0, 0x2e, 0xda, 0x8d, 0x59, 0xae, 0x20, 0x57, 0xee, 0x8e, 0xa9, 0xff, 0x87, 0xf8, 0x10,
  1464. 0xd5, 0x22, 0xad, 0x14, 0xcb, 0xdd, 0x9a, 0x21, 0xe6, 0xa8, 0x4c, 0xce, 0xd9, 0xa5, 0xbb, 0x6b,
  1465. 0x93, 0x73, 0x76, 0x49, 0x8e, 0x6f, 0xae, 0x62, 0x75, 0x4f, 0x92, 0x97, 0x39, 0x37, 0x57, 0xb1,
  1466. 0x98, 0xfb, 0x04, 0x1d, 0xdd, 0xba, 0xc0, 0xdb, 0x6d, 0xef, 0x7f, 0x55, 0x10, 0x5a, 0xfa, 0xf0,
  1467. 0x77, 0x54, 0x8f, 0xf4, 0x75, 0x3f, 0x2d, 0x77, 0x86, 0x5f, 0x78, 0x6b, 0x87, 0xe8, 0x6d, 0xbc,
  1468. 0xaa, 0xc6, 0xcb, 0xad, 0x74, 0x92, 0x63, 0x8a, 0x1e, 0x52, 0xd9, 0x57, 0xa1, 0xbc, 0xe8, 0x0f,
  1469. 0x4c, 0x6b, 0xf8, 0xf5, 0x1d, 0xd6, 0xb5, 0x13, 0x69, 0xbc, 0xd9, 0x5a, 0x2b, 0x39, 0xce, 0xd0,
  1470. 0xbe, 0x04, 0xb5, 0xf2, 0xd6, 0x5d, 0xfe, 0xf5, 0x8b, 0x6b, 0xbc, 0xdd, 0x5e, 0x2c, 0x79, 0xef,
  1471. 0xe0, 0xf7, 0xb4, 0xe9, 0xfc, 0x99, 0x36, 0x9d, 0xbf, 0xd3, 0xa6, 0xf3, 0xad, 0x52, 0x74, 0xa3,
  1472. 0x9a, 0xf9, 0x15, 0x3f, 0xfc, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xba, 0x29, 0x52, 0xd7, 0x03, 0x04,
  1473. 0x00, 0x00,
  1474. }