api.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: api.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. // 获取banner配置(客户端)
  19. type GetBannerResp struct {
  20. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  21. Img string `protobuf:"bytes,2,opt,name=img,proto3" json:"img"`
  22. Link string `protobuf:"bytes,3,opt,name=link,proto3" json:"link"`
  23. Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title"`
  24. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  25. XXX_unrecognized []byte `json:"-"`
  26. XXX_sizecache int32 `json:"-"`
  27. }
  28. func (m *GetBannerResp) Reset() { *m = GetBannerResp{} }
  29. func (m *GetBannerResp) String() string { return proto.CompactTextString(m) }
  30. func (*GetBannerResp) ProtoMessage() {}
  31. func (*GetBannerResp) Descriptor() ([]byte, []int) {
  32. return fileDescriptor_api_4b14556a41d2f2e2, []int{0}
  33. }
  34. func (m *GetBannerResp) XXX_Unmarshal(b []byte) error {
  35. return m.Unmarshal(b)
  36. }
  37. func (m *GetBannerResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  38. if deterministic {
  39. return xxx_messageInfo_GetBannerResp.Marshal(b, m, deterministic)
  40. } else {
  41. b = b[:cap(b)]
  42. n, err := m.MarshalTo(b)
  43. if err != nil {
  44. return nil, err
  45. }
  46. return b[:n], nil
  47. }
  48. }
  49. func (dst *GetBannerResp) XXX_Merge(src proto.Message) {
  50. xxx_messageInfo_GetBannerResp.Merge(dst, src)
  51. }
  52. func (m *GetBannerResp) XXX_Size() int {
  53. return m.Size()
  54. }
  55. func (m *GetBannerResp) XXX_DiscardUnknown() {
  56. xxx_messageInfo_GetBannerResp.DiscardUnknown(m)
  57. }
  58. var xxx_messageInfo_GetBannerResp proto.InternalMessageInfo
  59. func (m *GetBannerResp) GetId() int64 {
  60. if m != nil {
  61. return m.Id
  62. }
  63. return 0
  64. }
  65. func (m *GetBannerResp) GetImg() string {
  66. if m != nil {
  67. return m.Img
  68. }
  69. return ""
  70. }
  71. func (m *GetBannerResp) GetLink() string {
  72. if m != nil {
  73. return m.Link
  74. }
  75. return ""
  76. }
  77. func (m *GetBannerResp) GetTitle() string {
  78. if m != nil {
  79. return m.Title
  80. }
  81. return ""
  82. }
  83. func init() {
  84. proto.RegisterType((*GetBannerResp)(nil), "live.approom.v1.GetBannerResp")
  85. }
  86. func (m *GetBannerResp) Marshal() (dAtA []byte, err error) {
  87. size := m.Size()
  88. dAtA = make([]byte, size)
  89. n, err := m.MarshalTo(dAtA)
  90. if err != nil {
  91. return nil, err
  92. }
  93. return dAtA[:n], nil
  94. }
  95. func (m *GetBannerResp) MarshalTo(dAtA []byte) (int, error) {
  96. var i int
  97. _ = i
  98. var l int
  99. _ = l
  100. if m.Id != 0 {
  101. dAtA[i] = 0x8
  102. i++
  103. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  104. }
  105. if len(m.Img) > 0 {
  106. dAtA[i] = 0x12
  107. i++
  108. i = encodeVarintApi(dAtA, i, uint64(len(m.Img)))
  109. i += copy(dAtA[i:], m.Img)
  110. }
  111. if len(m.Link) > 0 {
  112. dAtA[i] = 0x1a
  113. i++
  114. i = encodeVarintApi(dAtA, i, uint64(len(m.Link)))
  115. i += copy(dAtA[i:], m.Link)
  116. }
  117. if len(m.Title) > 0 {
  118. dAtA[i] = 0x22
  119. i++
  120. i = encodeVarintApi(dAtA, i, uint64(len(m.Title)))
  121. i += copy(dAtA[i:], m.Title)
  122. }
  123. if m.XXX_unrecognized != nil {
  124. i += copy(dAtA[i:], m.XXX_unrecognized)
  125. }
  126. return i, nil
  127. }
  128. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  129. for v >= 1<<7 {
  130. dAtA[offset] = uint8(v&0x7f | 0x80)
  131. v >>= 7
  132. offset++
  133. }
  134. dAtA[offset] = uint8(v)
  135. return offset + 1
  136. }
  137. func (m *GetBannerResp) Size() (n int) {
  138. if m == nil {
  139. return 0
  140. }
  141. var l int
  142. _ = l
  143. if m.Id != 0 {
  144. n += 1 + sovApi(uint64(m.Id))
  145. }
  146. l = len(m.Img)
  147. if l > 0 {
  148. n += 1 + l + sovApi(uint64(l))
  149. }
  150. l = len(m.Link)
  151. if l > 0 {
  152. n += 1 + l + sovApi(uint64(l))
  153. }
  154. l = len(m.Title)
  155. if l > 0 {
  156. n += 1 + l + sovApi(uint64(l))
  157. }
  158. if m.XXX_unrecognized != nil {
  159. n += len(m.XXX_unrecognized)
  160. }
  161. return n
  162. }
  163. func sovApi(x uint64) (n int) {
  164. for {
  165. n++
  166. x >>= 7
  167. if x == 0 {
  168. break
  169. }
  170. }
  171. return n
  172. }
  173. func sozApi(x uint64) (n int) {
  174. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  175. }
  176. func (m *GetBannerResp) Unmarshal(dAtA []byte) error {
  177. l := len(dAtA)
  178. iNdEx := 0
  179. for iNdEx < l {
  180. preIndex := iNdEx
  181. var wire uint64
  182. for shift := uint(0); ; shift += 7 {
  183. if shift >= 64 {
  184. return ErrIntOverflowApi
  185. }
  186. if iNdEx >= l {
  187. return io.ErrUnexpectedEOF
  188. }
  189. b := dAtA[iNdEx]
  190. iNdEx++
  191. wire |= (uint64(b) & 0x7F) << shift
  192. if b < 0x80 {
  193. break
  194. }
  195. }
  196. fieldNum := int32(wire >> 3)
  197. wireType := int(wire & 0x7)
  198. if wireType == 4 {
  199. return fmt.Errorf("proto: GetBannerResp: wiretype end group for non-group")
  200. }
  201. if fieldNum <= 0 {
  202. return fmt.Errorf("proto: GetBannerResp: illegal tag %d (wire type %d)", fieldNum, wire)
  203. }
  204. switch fieldNum {
  205. case 1:
  206. if wireType != 0 {
  207. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  208. }
  209. m.Id = 0
  210. for shift := uint(0); ; shift += 7 {
  211. if shift >= 64 {
  212. return ErrIntOverflowApi
  213. }
  214. if iNdEx >= l {
  215. return io.ErrUnexpectedEOF
  216. }
  217. b := dAtA[iNdEx]
  218. iNdEx++
  219. m.Id |= (int64(b) & 0x7F) << shift
  220. if b < 0x80 {
  221. break
  222. }
  223. }
  224. case 2:
  225. if wireType != 2 {
  226. return fmt.Errorf("proto: wrong wireType = %d for field Img", wireType)
  227. }
  228. var stringLen uint64
  229. for shift := uint(0); ; shift += 7 {
  230. if shift >= 64 {
  231. return ErrIntOverflowApi
  232. }
  233. if iNdEx >= l {
  234. return io.ErrUnexpectedEOF
  235. }
  236. b := dAtA[iNdEx]
  237. iNdEx++
  238. stringLen |= (uint64(b) & 0x7F) << shift
  239. if b < 0x80 {
  240. break
  241. }
  242. }
  243. intStringLen := int(stringLen)
  244. if intStringLen < 0 {
  245. return ErrInvalidLengthApi
  246. }
  247. postIndex := iNdEx + intStringLen
  248. if postIndex > l {
  249. return io.ErrUnexpectedEOF
  250. }
  251. m.Img = string(dAtA[iNdEx:postIndex])
  252. iNdEx = postIndex
  253. case 3:
  254. if wireType != 2 {
  255. return fmt.Errorf("proto: wrong wireType = %d for field Link", wireType)
  256. }
  257. var stringLen uint64
  258. for shift := uint(0); ; shift += 7 {
  259. if shift >= 64 {
  260. return ErrIntOverflowApi
  261. }
  262. if iNdEx >= l {
  263. return io.ErrUnexpectedEOF
  264. }
  265. b := dAtA[iNdEx]
  266. iNdEx++
  267. stringLen |= (uint64(b) & 0x7F) << shift
  268. if b < 0x80 {
  269. break
  270. }
  271. }
  272. intStringLen := int(stringLen)
  273. if intStringLen < 0 {
  274. return ErrInvalidLengthApi
  275. }
  276. postIndex := iNdEx + intStringLen
  277. if postIndex > l {
  278. return io.ErrUnexpectedEOF
  279. }
  280. m.Link = string(dAtA[iNdEx:postIndex])
  281. iNdEx = postIndex
  282. case 4:
  283. if wireType != 2 {
  284. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  285. }
  286. var stringLen uint64
  287. for shift := uint(0); ; shift += 7 {
  288. if shift >= 64 {
  289. return ErrIntOverflowApi
  290. }
  291. if iNdEx >= l {
  292. return io.ErrUnexpectedEOF
  293. }
  294. b := dAtA[iNdEx]
  295. iNdEx++
  296. stringLen |= (uint64(b) & 0x7F) << shift
  297. if b < 0x80 {
  298. break
  299. }
  300. }
  301. intStringLen := int(stringLen)
  302. if intStringLen < 0 {
  303. return ErrInvalidLengthApi
  304. }
  305. postIndex := iNdEx + intStringLen
  306. if postIndex > l {
  307. return io.ErrUnexpectedEOF
  308. }
  309. m.Title = string(dAtA[iNdEx:postIndex])
  310. iNdEx = postIndex
  311. default:
  312. iNdEx = preIndex
  313. skippy, err := skipApi(dAtA[iNdEx:])
  314. if err != nil {
  315. return err
  316. }
  317. if skippy < 0 {
  318. return ErrInvalidLengthApi
  319. }
  320. if (iNdEx + skippy) > l {
  321. return io.ErrUnexpectedEOF
  322. }
  323. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  324. iNdEx += skippy
  325. }
  326. }
  327. if iNdEx > l {
  328. return io.ErrUnexpectedEOF
  329. }
  330. return nil
  331. }
  332. func skipApi(dAtA []byte) (n int, err error) {
  333. l := len(dAtA)
  334. iNdEx := 0
  335. for iNdEx < l {
  336. var wire uint64
  337. for shift := uint(0); ; shift += 7 {
  338. if shift >= 64 {
  339. return 0, ErrIntOverflowApi
  340. }
  341. if iNdEx >= l {
  342. return 0, io.ErrUnexpectedEOF
  343. }
  344. b := dAtA[iNdEx]
  345. iNdEx++
  346. wire |= (uint64(b) & 0x7F) << shift
  347. if b < 0x80 {
  348. break
  349. }
  350. }
  351. wireType := int(wire & 0x7)
  352. switch wireType {
  353. case 0:
  354. for shift := uint(0); ; shift += 7 {
  355. if shift >= 64 {
  356. return 0, ErrIntOverflowApi
  357. }
  358. if iNdEx >= l {
  359. return 0, io.ErrUnexpectedEOF
  360. }
  361. iNdEx++
  362. if dAtA[iNdEx-1] < 0x80 {
  363. break
  364. }
  365. }
  366. return iNdEx, nil
  367. case 1:
  368. iNdEx += 8
  369. return iNdEx, nil
  370. case 2:
  371. var length int
  372. for shift := uint(0); ; shift += 7 {
  373. if shift >= 64 {
  374. return 0, ErrIntOverflowApi
  375. }
  376. if iNdEx >= l {
  377. return 0, io.ErrUnexpectedEOF
  378. }
  379. b := dAtA[iNdEx]
  380. iNdEx++
  381. length |= (int(b) & 0x7F) << shift
  382. if b < 0x80 {
  383. break
  384. }
  385. }
  386. iNdEx += length
  387. if length < 0 {
  388. return 0, ErrInvalidLengthApi
  389. }
  390. return iNdEx, nil
  391. case 3:
  392. for {
  393. var innerWire uint64
  394. var start int = iNdEx
  395. for shift := uint(0); ; shift += 7 {
  396. if shift >= 64 {
  397. return 0, ErrIntOverflowApi
  398. }
  399. if iNdEx >= l {
  400. return 0, io.ErrUnexpectedEOF
  401. }
  402. b := dAtA[iNdEx]
  403. iNdEx++
  404. innerWire |= (uint64(b) & 0x7F) << shift
  405. if b < 0x80 {
  406. break
  407. }
  408. }
  409. innerWireType := int(innerWire & 0x7)
  410. if innerWireType == 4 {
  411. break
  412. }
  413. next, err := skipApi(dAtA[start:])
  414. if err != nil {
  415. return 0, err
  416. }
  417. iNdEx = start + next
  418. }
  419. return iNdEx, nil
  420. case 4:
  421. return iNdEx, nil
  422. case 5:
  423. iNdEx += 4
  424. return iNdEx, nil
  425. default:
  426. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  427. }
  428. }
  429. panic("unreachable")
  430. }
  431. var (
  432. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  433. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  434. )
  435. func init() { proto.RegisterFile("api.proto", fileDescriptor_api_4b14556a41d2f2e2) }
  436. var fileDescriptor_api_4b14556a41d2f2e2 = []byte{
  437. // 213 bytes of a gzipped FileDescriptorProto
  438. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4c, 0x2c, 0xc8, 0xd4,
  439. 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0xcf, 0xc9, 0x2c, 0x4b, 0xd5, 0x4b, 0x2c, 0x28, 0x28,
  440. 0xca, 0xcf, 0xcf, 0xd5, 0x2b, 0x33, 0x94, 0xd2, 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b,
  441. 0xce, 0xcf, 0xd5, 0x4f, 0xcf, 0x4f, 0xcf, 0xd7, 0x07, 0xab, 0x4b, 0x2a, 0x4d, 0x03, 0xf3, 0xc0,
  442. 0x1c, 0x30, 0x0b, 0xa2, 0x5f, 0xa9, 0x91, 0x91, 0x8b, 0xd7, 0x3d, 0xb5, 0xc4, 0x29, 0x31, 0x2f,
  443. 0x2f, 0xb5, 0x28, 0x28, 0xb5, 0xb8, 0x40, 0x48, 0x8c, 0x8b, 0x29, 0x33, 0x45, 0x82, 0x51, 0x81,
  444. 0x51, 0x83, 0xd9, 0x89, 0xed, 0xd5, 0x3d, 0x79, 0xa6, 0xcc, 0x94, 0x20, 0xa6, 0xcc, 0x14, 0x21,
  445. 0x49, 0x2e, 0xe6, 0xcc, 0xdc, 0x74, 0x09, 0x26, 0x05, 0x46, 0x0d, 0x4e, 0x27, 0xf6, 0x57, 0xf7,
  446. 0xe4, 0x41, 0xdc, 0x20, 0x10, 0x21, 0x24, 0xc3, 0xc5, 0x92, 0x93, 0x99, 0x97, 0x2d, 0xc1, 0x0c,
  447. 0x96, 0xe3, 0x78, 0x75, 0x4f, 0x1e, 0xcc, 0x0f, 0x02, 0x93, 0x42, 0xf2, 0x5c, 0xac, 0x25, 0x99,
  448. 0x25, 0x39, 0xa9, 0x12, 0x2c, 0x60, 0x69, 0xce, 0x57, 0xf7, 0xe4, 0x21, 0x02, 0x41, 0x10, 0xca,
  449. 0x49, 0xe0, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x8c, 0x62,
  450. 0x2a, 0x33, 0x4c, 0x62, 0x03, 0x3b, 0xce, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x1f, 0x57, 0x53,
  451. 0x50, 0xe9, 0x00, 0x00, 0x00,
  452. }