api.pb.go 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/main/resource/api/v1/api.proto
  3. package v1
  4. /*
  5. use {app_id}.{version} as package name
  6. */
  7. import proto "github.com/gogo/protobuf/proto"
  8. import fmt "fmt"
  9. import math "math"
  10. import (
  11. context "golang.org/x/net/context"
  12. grpc "google.golang.org/grpc"
  13. )
  14. import io "io"
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  24. // 相关推荐请求参数
  25. type RelateRequest struct {
  26. // pgc seasonID
  27. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  28. MobiApp string `protobuf:"bytes,2,opt,name=mobi_app,json=mobiApp,proto3" json:"mobi_app,omitempty"`
  29. Device string `protobuf:"bytes,3,opt,name=device,proto3" json:"device,omitempty"`
  30. Build int32 `protobuf:"varint,4,opt,name=build,proto3" json:"build,omitempty"`
  31. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  32. XXX_unrecognized []byte `json:"-"`
  33. XXX_sizecache int32 `json:"-"`
  34. }
  35. func (m *RelateRequest) Reset() { *m = RelateRequest{} }
  36. func (m *RelateRequest) String() string { return proto.CompactTextString(m) }
  37. func (*RelateRequest) ProtoMessage() {}
  38. func (*RelateRequest) Descriptor() ([]byte, []int) {
  39. return fileDescriptor_api_7649870860128c69, []int{0}
  40. }
  41. func (m *RelateRequest) XXX_Unmarshal(b []byte) error {
  42. return m.Unmarshal(b)
  43. }
  44. func (m *RelateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  45. if deterministic {
  46. return xxx_messageInfo_RelateRequest.Marshal(b, m, deterministic)
  47. } else {
  48. b = b[:cap(b)]
  49. n, err := m.MarshalTo(b)
  50. if err != nil {
  51. return nil, err
  52. }
  53. return b[:n], nil
  54. }
  55. }
  56. func (dst *RelateRequest) XXX_Merge(src proto.Message) {
  57. xxx_messageInfo_RelateRequest.Merge(dst, src)
  58. }
  59. func (m *RelateRequest) XXX_Size() int {
  60. return m.Size()
  61. }
  62. func (m *RelateRequest) XXX_DiscardUnknown() {
  63. xxx_messageInfo_RelateRequest.DiscardUnknown(m)
  64. }
  65. var xxx_messageInfo_RelateRequest proto.InternalMessageInfo
  66. func (m *RelateRequest) GetId() int64 {
  67. if m != nil {
  68. return m.Id
  69. }
  70. return 0
  71. }
  72. func (m *RelateRequest) GetMobiApp() string {
  73. if m != nil {
  74. return m.MobiApp
  75. }
  76. return ""
  77. }
  78. func (m *RelateRequest) GetDevice() string {
  79. if m != nil {
  80. return m.Device
  81. }
  82. return ""
  83. }
  84. func (m *RelateRequest) GetBuild() int32 {
  85. if m != nil {
  86. return m.Build
  87. }
  88. return 0
  89. }
  90. type SpecialReply struct {
  91. // 主键id
  92. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  93. // 特殊卡片标题
  94. Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
  95. // 特殊卡片描述
  96. Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"`
  97. // 特殊卡片单列封面
  98. Cover string `protobuf:"bytes,4,opt,name=cover,proto3" json:"cover,omitempty"`
  99. // 特殊卡片双列封面
  100. Scover string `protobuf:"bytes,5,opt,name=scover,proto3" json:"scover,omitempty"`
  101. // 跳转类型 URL:0 游戏小卡:1 稿件:2 番剧:3 直播:4 专栏:6 每日精选:7 歌单:8 歌曲:9 相簿:10 小视频:11
  102. ReType int32 `protobuf:"varint,6,opt,name=re_type,json=reType,proto3" json:"re_type,omitempty"`
  103. // 跳转参数
  104. ReValue string `protobuf:"bytes,7,opt,name=re_value,json=reValue,proto3" json:"re_value,omitempty"`
  105. // 角标文字
  106. Corner string `protobuf:"bytes,8,opt,name=corner,proto3" json:"corner,omitempty"`
  107. // 卡片类型 1特殊小卡 2特殊大卡 3置顶卡片
  108. Card int32 `protobuf:"varint,9,opt,name=card,proto3" json:"card,omitempty"`
  109. // 特殊大卡参数 如果是1020*300则封面比例为34 如果是1020*378则封面比例为27
  110. Siz string `protobuf:"bytes,10,opt,name=siz,proto3" json:"siz,omitempty"`
  111. // 位置
  112. Position int32 `protobuf:"varint,11,opt,name=position,proto3" json:"position,omitempty"`
  113. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  114. XXX_unrecognized []byte `json:"-"`
  115. XXX_sizecache int32 `json:"-"`
  116. }
  117. func (m *SpecialReply) Reset() { *m = SpecialReply{} }
  118. func (m *SpecialReply) String() string { return proto.CompactTextString(m) }
  119. func (*SpecialReply) ProtoMessage() {}
  120. func (*SpecialReply) Descriptor() ([]byte, []int) {
  121. return fileDescriptor_api_7649870860128c69, []int{1}
  122. }
  123. func (m *SpecialReply) XXX_Unmarshal(b []byte) error {
  124. return m.Unmarshal(b)
  125. }
  126. func (m *SpecialReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  127. if deterministic {
  128. return xxx_messageInfo_SpecialReply.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 *SpecialReply) XXX_Merge(src proto.Message) {
  139. xxx_messageInfo_SpecialReply.Merge(dst, src)
  140. }
  141. func (m *SpecialReply) XXX_Size() int {
  142. return m.Size()
  143. }
  144. func (m *SpecialReply) XXX_DiscardUnknown() {
  145. xxx_messageInfo_SpecialReply.DiscardUnknown(m)
  146. }
  147. var xxx_messageInfo_SpecialReply proto.InternalMessageInfo
  148. func (m *SpecialReply) GetId() int64 {
  149. if m != nil {
  150. return m.Id
  151. }
  152. return 0
  153. }
  154. func (m *SpecialReply) GetTitle() string {
  155. if m != nil {
  156. return m.Title
  157. }
  158. return ""
  159. }
  160. func (m *SpecialReply) GetDesc() string {
  161. if m != nil {
  162. return m.Desc
  163. }
  164. return ""
  165. }
  166. func (m *SpecialReply) GetCover() string {
  167. if m != nil {
  168. return m.Cover
  169. }
  170. return ""
  171. }
  172. func (m *SpecialReply) GetScover() string {
  173. if m != nil {
  174. return m.Scover
  175. }
  176. return ""
  177. }
  178. func (m *SpecialReply) GetReType() int32 {
  179. if m != nil {
  180. return m.ReType
  181. }
  182. return 0
  183. }
  184. func (m *SpecialReply) GetReValue() string {
  185. if m != nil {
  186. return m.ReValue
  187. }
  188. return ""
  189. }
  190. func (m *SpecialReply) GetCorner() string {
  191. if m != nil {
  192. return m.Corner
  193. }
  194. return ""
  195. }
  196. func (m *SpecialReply) GetCard() int32 {
  197. if m != nil {
  198. return m.Card
  199. }
  200. return 0
  201. }
  202. func (m *SpecialReply) GetSiz() string {
  203. if m != nil {
  204. return m.Siz
  205. }
  206. return ""
  207. }
  208. func (m *SpecialReply) GetPosition() int32 {
  209. if m != nil {
  210. return m.Position
  211. }
  212. return 0
  213. }
  214. func init() {
  215. proto.RegisterType((*RelateRequest)(nil), "resource.service.v1.RelateRequest")
  216. proto.RegisterType((*SpecialReply)(nil), "resource.service.v1.SpecialReply")
  217. }
  218. // Reference imports to suppress errors if they are not otherwise used.
  219. var _ context.Context
  220. var _ grpc.ClientConn
  221. // This is a compile-time assertion to ensure that this generated file
  222. // is compatible with the grpc package it is being compiled against.
  223. const _ = grpc.SupportPackageIsVersion4
  224. // ResourceClient is the client API for Resource service.
  225. //
  226. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  227. type ResourceClient interface {
  228. // 相关推荐列表
  229. // -400:RequestErr -404:NothingFound
  230. Relate(ctx context.Context, in *RelateRequest, opts ...grpc.CallOption) (*SpecialReply, error)
  231. }
  232. type resourceClient struct {
  233. cc *grpc.ClientConn
  234. }
  235. func NewResourceClient(cc *grpc.ClientConn) ResourceClient {
  236. return &resourceClient{cc}
  237. }
  238. func (c *resourceClient) Relate(ctx context.Context, in *RelateRequest, opts ...grpc.CallOption) (*SpecialReply, error) {
  239. out := new(SpecialReply)
  240. err := c.cc.Invoke(ctx, "/resource.service.v1.Resource/Relate", in, out, opts...)
  241. if err != nil {
  242. return nil, err
  243. }
  244. return out, nil
  245. }
  246. // ResourceServer is the server API for Resource service.
  247. type ResourceServer interface {
  248. // 相关推荐列表
  249. // -400:RequestErr -404:NothingFound
  250. Relate(context.Context, *RelateRequest) (*SpecialReply, error)
  251. }
  252. func RegisterResourceServer(s *grpc.Server, srv ResourceServer) {
  253. s.RegisterService(&_Resource_serviceDesc, srv)
  254. }
  255. func _Resource_Relate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  256. in := new(RelateRequest)
  257. if err := dec(in); err != nil {
  258. return nil, err
  259. }
  260. if interceptor == nil {
  261. return srv.(ResourceServer).Relate(ctx, in)
  262. }
  263. info := &grpc.UnaryServerInfo{
  264. Server: srv,
  265. FullMethod: "/resource.service.v1.Resource/Relate",
  266. }
  267. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  268. return srv.(ResourceServer).Relate(ctx, req.(*RelateRequest))
  269. }
  270. return interceptor(ctx, in, info, handler)
  271. }
  272. var _Resource_serviceDesc = grpc.ServiceDesc{
  273. ServiceName: "resource.service.v1.Resource",
  274. HandlerType: (*ResourceServer)(nil),
  275. Methods: []grpc.MethodDesc{
  276. {
  277. MethodName: "Relate",
  278. Handler: _Resource_Relate_Handler,
  279. },
  280. },
  281. Streams: []grpc.StreamDesc{},
  282. Metadata: "app/service/main/resource/api/v1/api.proto",
  283. }
  284. func (m *RelateRequest) Marshal() (dAtA []byte, err error) {
  285. size := m.Size()
  286. dAtA = make([]byte, size)
  287. n, err := m.MarshalTo(dAtA)
  288. if err != nil {
  289. return nil, err
  290. }
  291. return dAtA[:n], nil
  292. }
  293. func (m *RelateRequest) MarshalTo(dAtA []byte) (int, error) {
  294. var i int
  295. _ = i
  296. var l int
  297. _ = l
  298. if m.Id != 0 {
  299. dAtA[i] = 0x8
  300. i++
  301. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  302. }
  303. if len(m.MobiApp) > 0 {
  304. dAtA[i] = 0x12
  305. i++
  306. i = encodeVarintApi(dAtA, i, uint64(len(m.MobiApp)))
  307. i += copy(dAtA[i:], m.MobiApp)
  308. }
  309. if len(m.Device) > 0 {
  310. dAtA[i] = 0x1a
  311. i++
  312. i = encodeVarintApi(dAtA, i, uint64(len(m.Device)))
  313. i += copy(dAtA[i:], m.Device)
  314. }
  315. if m.Build != 0 {
  316. dAtA[i] = 0x20
  317. i++
  318. i = encodeVarintApi(dAtA, i, uint64(m.Build))
  319. }
  320. if m.XXX_unrecognized != nil {
  321. i += copy(dAtA[i:], m.XXX_unrecognized)
  322. }
  323. return i, nil
  324. }
  325. func (m *SpecialReply) Marshal() (dAtA []byte, err error) {
  326. size := m.Size()
  327. dAtA = make([]byte, size)
  328. n, err := m.MarshalTo(dAtA)
  329. if err != nil {
  330. return nil, err
  331. }
  332. return dAtA[:n], nil
  333. }
  334. func (m *SpecialReply) MarshalTo(dAtA []byte) (int, error) {
  335. var i int
  336. _ = i
  337. var l int
  338. _ = l
  339. if m.Id != 0 {
  340. dAtA[i] = 0x8
  341. i++
  342. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  343. }
  344. if len(m.Title) > 0 {
  345. dAtA[i] = 0x12
  346. i++
  347. i = encodeVarintApi(dAtA, i, uint64(len(m.Title)))
  348. i += copy(dAtA[i:], m.Title)
  349. }
  350. if len(m.Desc) > 0 {
  351. dAtA[i] = 0x1a
  352. i++
  353. i = encodeVarintApi(dAtA, i, uint64(len(m.Desc)))
  354. i += copy(dAtA[i:], m.Desc)
  355. }
  356. if len(m.Cover) > 0 {
  357. dAtA[i] = 0x22
  358. i++
  359. i = encodeVarintApi(dAtA, i, uint64(len(m.Cover)))
  360. i += copy(dAtA[i:], m.Cover)
  361. }
  362. if len(m.Scover) > 0 {
  363. dAtA[i] = 0x2a
  364. i++
  365. i = encodeVarintApi(dAtA, i, uint64(len(m.Scover)))
  366. i += copy(dAtA[i:], m.Scover)
  367. }
  368. if m.ReType != 0 {
  369. dAtA[i] = 0x30
  370. i++
  371. i = encodeVarintApi(dAtA, i, uint64(m.ReType))
  372. }
  373. if len(m.ReValue) > 0 {
  374. dAtA[i] = 0x3a
  375. i++
  376. i = encodeVarintApi(dAtA, i, uint64(len(m.ReValue)))
  377. i += copy(dAtA[i:], m.ReValue)
  378. }
  379. if len(m.Corner) > 0 {
  380. dAtA[i] = 0x42
  381. i++
  382. i = encodeVarintApi(dAtA, i, uint64(len(m.Corner)))
  383. i += copy(dAtA[i:], m.Corner)
  384. }
  385. if m.Card != 0 {
  386. dAtA[i] = 0x48
  387. i++
  388. i = encodeVarintApi(dAtA, i, uint64(m.Card))
  389. }
  390. if len(m.Siz) > 0 {
  391. dAtA[i] = 0x52
  392. i++
  393. i = encodeVarintApi(dAtA, i, uint64(len(m.Siz)))
  394. i += copy(dAtA[i:], m.Siz)
  395. }
  396. if m.Position != 0 {
  397. dAtA[i] = 0x58
  398. i++
  399. i = encodeVarintApi(dAtA, i, uint64(m.Position))
  400. }
  401. if m.XXX_unrecognized != nil {
  402. i += copy(dAtA[i:], m.XXX_unrecognized)
  403. }
  404. return i, nil
  405. }
  406. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  407. for v >= 1<<7 {
  408. dAtA[offset] = uint8(v&0x7f | 0x80)
  409. v >>= 7
  410. offset++
  411. }
  412. dAtA[offset] = uint8(v)
  413. return offset + 1
  414. }
  415. func (m *RelateRequest) Size() (n int) {
  416. if m == nil {
  417. return 0
  418. }
  419. var l int
  420. _ = l
  421. if m.Id != 0 {
  422. n += 1 + sovApi(uint64(m.Id))
  423. }
  424. l = len(m.MobiApp)
  425. if l > 0 {
  426. n += 1 + l + sovApi(uint64(l))
  427. }
  428. l = len(m.Device)
  429. if l > 0 {
  430. n += 1 + l + sovApi(uint64(l))
  431. }
  432. if m.Build != 0 {
  433. n += 1 + sovApi(uint64(m.Build))
  434. }
  435. if m.XXX_unrecognized != nil {
  436. n += len(m.XXX_unrecognized)
  437. }
  438. return n
  439. }
  440. func (m *SpecialReply) Size() (n int) {
  441. if m == nil {
  442. return 0
  443. }
  444. var l int
  445. _ = l
  446. if m.Id != 0 {
  447. n += 1 + sovApi(uint64(m.Id))
  448. }
  449. l = len(m.Title)
  450. if l > 0 {
  451. n += 1 + l + sovApi(uint64(l))
  452. }
  453. l = len(m.Desc)
  454. if l > 0 {
  455. n += 1 + l + sovApi(uint64(l))
  456. }
  457. l = len(m.Cover)
  458. if l > 0 {
  459. n += 1 + l + sovApi(uint64(l))
  460. }
  461. l = len(m.Scover)
  462. if l > 0 {
  463. n += 1 + l + sovApi(uint64(l))
  464. }
  465. if m.ReType != 0 {
  466. n += 1 + sovApi(uint64(m.ReType))
  467. }
  468. l = len(m.ReValue)
  469. if l > 0 {
  470. n += 1 + l + sovApi(uint64(l))
  471. }
  472. l = len(m.Corner)
  473. if l > 0 {
  474. n += 1 + l + sovApi(uint64(l))
  475. }
  476. if m.Card != 0 {
  477. n += 1 + sovApi(uint64(m.Card))
  478. }
  479. l = len(m.Siz)
  480. if l > 0 {
  481. n += 1 + l + sovApi(uint64(l))
  482. }
  483. if m.Position != 0 {
  484. n += 1 + sovApi(uint64(m.Position))
  485. }
  486. if m.XXX_unrecognized != nil {
  487. n += len(m.XXX_unrecognized)
  488. }
  489. return n
  490. }
  491. func sovApi(x uint64) (n int) {
  492. for {
  493. n++
  494. x >>= 7
  495. if x == 0 {
  496. break
  497. }
  498. }
  499. return n
  500. }
  501. func sozApi(x uint64) (n int) {
  502. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  503. }
  504. func (m *RelateRequest) Unmarshal(dAtA []byte) error {
  505. l := len(dAtA)
  506. iNdEx := 0
  507. for iNdEx < l {
  508. preIndex := iNdEx
  509. var wire uint64
  510. for shift := uint(0); ; shift += 7 {
  511. if shift >= 64 {
  512. return ErrIntOverflowApi
  513. }
  514. if iNdEx >= l {
  515. return io.ErrUnexpectedEOF
  516. }
  517. b := dAtA[iNdEx]
  518. iNdEx++
  519. wire |= (uint64(b) & 0x7F) << shift
  520. if b < 0x80 {
  521. break
  522. }
  523. }
  524. fieldNum := int32(wire >> 3)
  525. wireType := int(wire & 0x7)
  526. if wireType == 4 {
  527. return fmt.Errorf("proto: RelateRequest: wiretype end group for non-group")
  528. }
  529. if fieldNum <= 0 {
  530. return fmt.Errorf("proto: RelateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  531. }
  532. switch fieldNum {
  533. case 1:
  534. if wireType != 0 {
  535. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  536. }
  537. m.Id = 0
  538. for shift := uint(0); ; shift += 7 {
  539. if shift >= 64 {
  540. return ErrIntOverflowApi
  541. }
  542. if iNdEx >= l {
  543. return io.ErrUnexpectedEOF
  544. }
  545. b := dAtA[iNdEx]
  546. iNdEx++
  547. m.Id |= (int64(b) & 0x7F) << shift
  548. if b < 0x80 {
  549. break
  550. }
  551. }
  552. case 2:
  553. if wireType != 2 {
  554. return fmt.Errorf("proto: wrong wireType = %d for field MobiApp", wireType)
  555. }
  556. var stringLen uint64
  557. for shift := uint(0); ; shift += 7 {
  558. if shift >= 64 {
  559. return ErrIntOverflowApi
  560. }
  561. if iNdEx >= l {
  562. return io.ErrUnexpectedEOF
  563. }
  564. b := dAtA[iNdEx]
  565. iNdEx++
  566. stringLen |= (uint64(b) & 0x7F) << shift
  567. if b < 0x80 {
  568. break
  569. }
  570. }
  571. intStringLen := int(stringLen)
  572. if intStringLen < 0 {
  573. return ErrInvalidLengthApi
  574. }
  575. postIndex := iNdEx + intStringLen
  576. if postIndex > l {
  577. return io.ErrUnexpectedEOF
  578. }
  579. m.MobiApp = string(dAtA[iNdEx:postIndex])
  580. iNdEx = postIndex
  581. case 3:
  582. if wireType != 2 {
  583. return fmt.Errorf("proto: wrong wireType = %d for field Device", wireType)
  584. }
  585. var stringLen uint64
  586. for shift := uint(0); ; shift += 7 {
  587. if shift >= 64 {
  588. return ErrIntOverflowApi
  589. }
  590. if iNdEx >= l {
  591. return io.ErrUnexpectedEOF
  592. }
  593. b := dAtA[iNdEx]
  594. iNdEx++
  595. stringLen |= (uint64(b) & 0x7F) << shift
  596. if b < 0x80 {
  597. break
  598. }
  599. }
  600. intStringLen := int(stringLen)
  601. if intStringLen < 0 {
  602. return ErrInvalidLengthApi
  603. }
  604. postIndex := iNdEx + intStringLen
  605. if postIndex > l {
  606. return io.ErrUnexpectedEOF
  607. }
  608. m.Device = string(dAtA[iNdEx:postIndex])
  609. iNdEx = postIndex
  610. case 4:
  611. if wireType != 0 {
  612. return fmt.Errorf("proto: wrong wireType = %d for field Build", wireType)
  613. }
  614. m.Build = 0
  615. for shift := uint(0); ; shift += 7 {
  616. if shift >= 64 {
  617. return ErrIntOverflowApi
  618. }
  619. if iNdEx >= l {
  620. return io.ErrUnexpectedEOF
  621. }
  622. b := dAtA[iNdEx]
  623. iNdEx++
  624. m.Build |= (int32(b) & 0x7F) << shift
  625. if b < 0x80 {
  626. break
  627. }
  628. }
  629. default:
  630. iNdEx = preIndex
  631. skippy, err := skipApi(dAtA[iNdEx:])
  632. if err != nil {
  633. return err
  634. }
  635. if skippy < 0 {
  636. return ErrInvalidLengthApi
  637. }
  638. if (iNdEx + skippy) > l {
  639. return io.ErrUnexpectedEOF
  640. }
  641. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  642. iNdEx += skippy
  643. }
  644. }
  645. if iNdEx > l {
  646. return io.ErrUnexpectedEOF
  647. }
  648. return nil
  649. }
  650. func (m *SpecialReply) Unmarshal(dAtA []byte) error {
  651. l := len(dAtA)
  652. iNdEx := 0
  653. for iNdEx < l {
  654. preIndex := iNdEx
  655. var wire uint64
  656. for shift := uint(0); ; shift += 7 {
  657. if shift >= 64 {
  658. return ErrIntOverflowApi
  659. }
  660. if iNdEx >= l {
  661. return io.ErrUnexpectedEOF
  662. }
  663. b := dAtA[iNdEx]
  664. iNdEx++
  665. wire |= (uint64(b) & 0x7F) << shift
  666. if b < 0x80 {
  667. break
  668. }
  669. }
  670. fieldNum := int32(wire >> 3)
  671. wireType := int(wire & 0x7)
  672. if wireType == 4 {
  673. return fmt.Errorf("proto: SpecialReply: wiretype end group for non-group")
  674. }
  675. if fieldNum <= 0 {
  676. return fmt.Errorf("proto: SpecialReply: illegal tag %d (wire type %d)", fieldNum, wire)
  677. }
  678. switch fieldNum {
  679. case 1:
  680. if wireType != 0 {
  681. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  682. }
  683. m.Id = 0
  684. for shift := uint(0); ; shift += 7 {
  685. if shift >= 64 {
  686. return ErrIntOverflowApi
  687. }
  688. if iNdEx >= l {
  689. return io.ErrUnexpectedEOF
  690. }
  691. b := dAtA[iNdEx]
  692. iNdEx++
  693. m.Id |= (int64(b) & 0x7F) << shift
  694. if b < 0x80 {
  695. break
  696. }
  697. }
  698. case 2:
  699. if wireType != 2 {
  700. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  701. }
  702. var stringLen uint64
  703. for shift := uint(0); ; shift += 7 {
  704. if shift >= 64 {
  705. return ErrIntOverflowApi
  706. }
  707. if iNdEx >= l {
  708. return io.ErrUnexpectedEOF
  709. }
  710. b := dAtA[iNdEx]
  711. iNdEx++
  712. stringLen |= (uint64(b) & 0x7F) << shift
  713. if b < 0x80 {
  714. break
  715. }
  716. }
  717. intStringLen := int(stringLen)
  718. if intStringLen < 0 {
  719. return ErrInvalidLengthApi
  720. }
  721. postIndex := iNdEx + intStringLen
  722. if postIndex > l {
  723. return io.ErrUnexpectedEOF
  724. }
  725. m.Title = string(dAtA[iNdEx:postIndex])
  726. iNdEx = postIndex
  727. case 3:
  728. if wireType != 2 {
  729. return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType)
  730. }
  731. var stringLen uint64
  732. for shift := uint(0); ; shift += 7 {
  733. if shift >= 64 {
  734. return ErrIntOverflowApi
  735. }
  736. if iNdEx >= l {
  737. return io.ErrUnexpectedEOF
  738. }
  739. b := dAtA[iNdEx]
  740. iNdEx++
  741. stringLen |= (uint64(b) & 0x7F) << shift
  742. if b < 0x80 {
  743. break
  744. }
  745. }
  746. intStringLen := int(stringLen)
  747. if intStringLen < 0 {
  748. return ErrInvalidLengthApi
  749. }
  750. postIndex := iNdEx + intStringLen
  751. if postIndex > l {
  752. return io.ErrUnexpectedEOF
  753. }
  754. m.Desc = string(dAtA[iNdEx:postIndex])
  755. iNdEx = postIndex
  756. case 4:
  757. if wireType != 2 {
  758. return fmt.Errorf("proto: wrong wireType = %d for field Cover", wireType)
  759. }
  760. var stringLen uint64
  761. for shift := uint(0); ; shift += 7 {
  762. if shift >= 64 {
  763. return ErrIntOverflowApi
  764. }
  765. if iNdEx >= l {
  766. return io.ErrUnexpectedEOF
  767. }
  768. b := dAtA[iNdEx]
  769. iNdEx++
  770. stringLen |= (uint64(b) & 0x7F) << shift
  771. if b < 0x80 {
  772. break
  773. }
  774. }
  775. intStringLen := int(stringLen)
  776. if intStringLen < 0 {
  777. return ErrInvalidLengthApi
  778. }
  779. postIndex := iNdEx + intStringLen
  780. if postIndex > l {
  781. return io.ErrUnexpectedEOF
  782. }
  783. m.Cover = string(dAtA[iNdEx:postIndex])
  784. iNdEx = postIndex
  785. case 5:
  786. if wireType != 2 {
  787. return fmt.Errorf("proto: wrong wireType = %d for field Scover", wireType)
  788. }
  789. var stringLen uint64
  790. for shift := uint(0); ; shift += 7 {
  791. if shift >= 64 {
  792. return ErrIntOverflowApi
  793. }
  794. if iNdEx >= l {
  795. return io.ErrUnexpectedEOF
  796. }
  797. b := dAtA[iNdEx]
  798. iNdEx++
  799. stringLen |= (uint64(b) & 0x7F) << shift
  800. if b < 0x80 {
  801. break
  802. }
  803. }
  804. intStringLen := int(stringLen)
  805. if intStringLen < 0 {
  806. return ErrInvalidLengthApi
  807. }
  808. postIndex := iNdEx + intStringLen
  809. if postIndex > l {
  810. return io.ErrUnexpectedEOF
  811. }
  812. m.Scover = string(dAtA[iNdEx:postIndex])
  813. iNdEx = postIndex
  814. case 6:
  815. if wireType != 0 {
  816. return fmt.Errorf("proto: wrong wireType = %d for field ReType", wireType)
  817. }
  818. m.ReType = 0
  819. for shift := uint(0); ; shift += 7 {
  820. if shift >= 64 {
  821. return ErrIntOverflowApi
  822. }
  823. if iNdEx >= l {
  824. return io.ErrUnexpectedEOF
  825. }
  826. b := dAtA[iNdEx]
  827. iNdEx++
  828. m.ReType |= (int32(b) & 0x7F) << shift
  829. if b < 0x80 {
  830. break
  831. }
  832. }
  833. case 7:
  834. if wireType != 2 {
  835. return fmt.Errorf("proto: wrong wireType = %d for field ReValue", wireType)
  836. }
  837. var stringLen uint64
  838. for shift := uint(0); ; shift += 7 {
  839. if shift >= 64 {
  840. return ErrIntOverflowApi
  841. }
  842. if iNdEx >= l {
  843. return io.ErrUnexpectedEOF
  844. }
  845. b := dAtA[iNdEx]
  846. iNdEx++
  847. stringLen |= (uint64(b) & 0x7F) << shift
  848. if b < 0x80 {
  849. break
  850. }
  851. }
  852. intStringLen := int(stringLen)
  853. if intStringLen < 0 {
  854. return ErrInvalidLengthApi
  855. }
  856. postIndex := iNdEx + intStringLen
  857. if postIndex > l {
  858. return io.ErrUnexpectedEOF
  859. }
  860. m.ReValue = string(dAtA[iNdEx:postIndex])
  861. iNdEx = postIndex
  862. case 8:
  863. if wireType != 2 {
  864. return fmt.Errorf("proto: wrong wireType = %d for field Corner", wireType)
  865. }
  866. var stringLen uint64
  867. for shift := uint(0); ; shift += 7 {
  868. if shift >= 64 {
  869. return ErrIntOverflowApi
  870. }
  871. if iNdEx >= l {
  872. return io.ErrUnexpectedEOF
  873. }
  874. b := dAtA[iNdEx]
  875. iNdEx++
  876. stringLen |= (uint64(b) & 0x7F) << shift
  877. if b < 0x80 {
  878. break
  879. }
  880. }
  881. intStringLen := int(stringLen)
  882. if intStringLen < 0 {
  883. return ErrInvalidLengthApi
  884. }
  885. postIndex := iNdEx + intStringLen
  886. if postIndex > l {
  887. return io.ErrUnexpectedEOF
  888. }
  889. m.Corner = string(dAtA[iNdEx:postIndex])
  890. iNdEx = postIndex
  891. case 9:
  892. if wireType != 0 {
  893. return fmt.Errorf("proto: wrong wireType = %d for field Card", wireType)
  894. }
  895. m.Card = 0
  896. for shift := uint(0); ; shift += 7 {
  897. if shift >= 64 {
  898. return ErrIntOverflowApi
  899. }
  900. if iNdEx >= l {
  901. return io.ErrUnexpectedEOF
  902. }
  903. b := dAtA[iNdEx]
  904. iNdEx++
  905. m.Card |= (int32(b) & 0x7F) << shift
  906. if b < 0x80 {
  907. break
  908. }
  909. }
  910. case 10:
  911. if wireType != 2 {
  912. return fmt.Errorf("proto: wrong wireType = %d for field Siz", wireType)
  913. }
  914. var stringLen uint64
  915. for shift := uint(0); ; shift += 7 {
  916. if shift >= 64 {
  917. return ErrIntOverflowApi
  918. }
  919. if iNdEx >= l {
  920. return io.ErrUnexpectedEOF
  921. }
  922. b := dAtA[iNdEx]
  923. iNdEx++
  924. stringLen |= (uint64(b) & 0x7F) << shift
  925. if b < 0x80 {
  926. break
  927. }
  928. }
  929. intStringLen := int(stringLen)
  930. if intStringLen < 0 {
  931. return ErrInvalidLengthApi
  932. }
  933. postIndex := iNdEx + intStringLen
  934. if postIndex > l {
  935. return io.ErrUnexpectedEOF
  936. }
  937. m.Siz = string(dAtA[iNdEx:postIndex])
  938. iNdEx = postIndex
  939. case 11:
  940. if wireType != 0 {
  941. return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType)
  942. }
  943. m.Position = 0
  944. for shift := uint(0); ; shift += 7 {
  945. if shift >= 64 {
  946. return ErrIntOverflowApi
  947. }
  948. if iNdEx >= l {
  949. return io.ErrUnexpectedEOF
  950. }
  951. b := dAtA[iNdEx]
  952. iNdEx++
  953. m.Position |= (int32(b) & 0x7F) << shift
  954. if b < 0x80 {
  955. break
  956. }
  957. }
  958. default:
  959. iNdEx = preIndex
  960. skippy, err := skipApi(dAtA[iNdEx:])
  961. if err != nil {
  962. return err
  963. }
  964. if skippy < 0 {
  965. return ErrInvalidLengthApi
  966. }
  967. if (iNdEx + skippy) > l {
  968. return io.ErrUnexpectedEOF
  969. }
  970. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  971. iNdEx += skippy
  972. }
  973. }
  974. if iNdEx > l {
  975. return io.ErrUnexpectedEOF
  976. }
  977. return nil
  978. }
  979. func skipApi(dAtA []byte) (n int, err error) {
  980. l := len(dAtA)
  981. iNdEx := 0
  982. for iNdEx < l {
  983. var wire uint64
  984. for shift := uint(0); ; shift += 7 {
  985. if shift >= 64 {
  986. return 0, ErrIntOverflowApi
  987. }
  988. if iNdEx >= l {
  989. return 0, io.ErrUnexpectedEOF
  990. }
  991. b := dAtA[iNdEx]
  992. iNdEx++
  993. wire |= (uint64(b) & 0x7F) << shift
  994. if b < 0x80 {
  995. break
  996. }
  997. }
  998. wireType := int(wire & 0x7)
  999. switch wireType {
  1000. case 0:
  1001. for shift := uint(0); ; shift += 7 {
  1002. if shift >= 64 {
  1003. return 0, ErrIntOverflowApi
  1004. }
  1005. if iNdEx >= l {
  1006. return 0, io.ErrUnexpectedEOF
  1007. }
  1008. iNdEx++
  1009. if dAtA[iNdEx-1] < 0x80 {
  1010. break
  1011. }
  1012. }
  1013. return iNdEx, nil
  1014. case 1:
  1015. iNdEx += 8
  1016. return iNdEx, nil
  1017. case 2:
  1018. var length int
  1019. for shift := uint(0); ; shift += 7 {
  1020. if shift >= 64 {
  1021. return 0, ErrIntOverflowApi
  1022. }
  1023. if iNdEx >= l {
  1024. return 0, io.ErrUnexpectedEOF
  1025. }
  1026. b := dAtA[iNdEx]
  1027. iNdEx++
  1028. length |= (int(b) & 0x7F) << shift
  1029. if b < 0x80 {
  1030. break
  1031. }
  1032. }
  1033. iNdEx += length
  1034. if length < 0 {
  1035. return 0, ErrInvalidLengthApi
  1036. }
  1037. return iNdEx, nil
  1038. case 3:
  1039. for {
  1040. var innerWire uint64
  1041. var start int = iNdEx
  1042. for shift := uint(0); ; shift += 7 {
  1043. if shift >= 64 {
  1044. return 0, ErrIntOverflowApi
  1045. }
  1046. if iNdEx >= l {
  1047. return 0, io.ErrUnexpectedEOF
  1048. }
  1049. b := dAtA[iNdEx]
  1050. iNdEx++
  1051. innerWire |= (uint64(b) & 0x7F) << shift
  1052. if b < 0x80 {
  1053. break
  1054. }
  1055. }
  1056. innerWireType := int(innerWire & 0x7)
  1057. if innerWireType == 4 {
  1058. break
  1059. }
  1060. next, err := skipApi(dAtA[start:])
  1061. if err != nil {
  1062. return 0, err
  1063. }
  1064. iNdEx = start + next
  1065. }
  1066. return iNdEx, nil
  1067. case 4:
  1068. return iNdEx, nil
  1069. case 5:
  1070. iNdEx += 4
  1071. return iNdEx, nil
  1072. default:
  1073. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1074. }
  1075. }
  1076. panic("unreachable")
  1077. }
  1078. var (
  1079. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  1080. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  1081. )
  1082. func init() {
  1083. proto.RegisterFile("app/service/main/resource/api/v1/api.proto", fileDescriptor_api_7649870860128c69)
  1084. }
  1085. var fileDescriptor_api_7649870860128c69 = []byte{
  1086. // 358 bytes of a gzipped FileDescriptorProto
  1087. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0x4d, 0x4e, 0xeb, 0x30,
  1088. 0x14, 0x85, 0x5f, 0xd2, 0x26, 0x4d, 0xef, 0x7b, 0x0f, 0x55, 0xa6, 0x02, 0xd3, 0x41, 0x55, 0x32,
  1089. 0xea, 0x28, 0x51, 0x61, 0x05, 0xb0, 0x03, 0x0c, 0x62, 0x80, 0x84, 0x2a, 0xd7, 0xb9, 0x02, 0x4b,
  1090. 0x69, 0x6d, 0x9c, 0x1f, 0xa9, 0x8c, 0x59, 0x1c, 0x43, 0x96, 0x80, 0xba, 0x12, 0x64, 0x3b, 0x20,
  1091. 0x10, 0x9d, 0xdd, 0x2f, 0xbe, 0x39, 0xe7, 0xd8, 0x07, 0x72, 0xae, 0x75, 0x5e, 0xa1, 0x69, 0xa5,
  1092. 0xc0, 0x7c, 0xcd, 0xe5, 0x26, 0x37, 0x58, 0xa9, 0xc6, 0x08, 0xcc, 0xb9, 0x96, 0xf9, 0x83, 0xd1,
  1093. 0x22, 0x6f, 0x17, 0x76, 0xce, 0xb4, 0x51, 0xb5, 0x22, 0x87, 0x9f, 0xe7, 0x59, 0xf7, 0x57, 0xd6,
  1094. 0x2e, 0xd2, 0x47, 0xf8, 0xcf, 0xb0, 0xe4, 0x35, 0x32, 0x7c, 0x6a, 0xb0, 0xaa, 0xc9, 0x01, 0x84,
  1095. 0xb2, 0xa0, 0xc1, 0x2c, 0x98, 0xf7, 0x58, 0x28, 0x0b, 0x72, 0x02, 0xc9, 0x5a, 0xad, 0xe4, 0x92,
  1096. 0x6b, 0x4d, 0xc3, 0x59, 0x30, 0x1f, 0xb2, 0x81, 0xe5, 0x0b, 0xad, 0xc9, 0x11, 0xc4, 0x05, 0x5a,
  1097. 0x21, 0xda, 0x73, 0x07, 0x1d, 0x91, 0x31, 0x44, 0xab, 0x46, 0x96, 0x05, 0xed, 0xcf, 0x82, 0x79,
  1098. 0xc4, 0x3c, 0xa4, 0x2f, 0x21, 0xfc, 0xbb, 0xd6, 0x28, 0x24, 0x2f, 0x19, 0xea, 0x72, 0xfb, 0xcb,
  1099. 0x69, 0x0c, 0x51, 0x2d, 0xeb, 0x12, 0x3b, 0x1b, 0x0f, 0x84, 0x40, 0xbf, 0xc0, 0x4a, 0x74, 0x16,
  1100. 0x6e, 0xb6, 0x9b, 0x42, 0xb5, 0x68, 0x9c, 0xc1, 0x90, 0x79, 0xb0, 0x71, 0x2a, 0xff, 0x39, 0xf2,
  1101. 0x71, 0x3c, 0x91, 0x63, 0x18, 0x18, 0x5c, 0xd6, 0x5b, 0x8d, 0x34, 0x76, 0x81, 0x62, 0x83, 0x37,
  1102. 0x5b, 0x8d, 0xf6, 0x6a, 0x06, 0x97, 0x2d, 0x2f, 0x1b, 0xa4, 0x03, 0x7f, 0x35, 0x83, 0xb7, 0x16,
  1103. 0xad, 0x96, 0x50, 0x66, 0x83, 0x86, 0x26, 0x5e, 0xcb, 0x93, 0x4d, 0x23, 0xb8, 0x29, 0xe8, 0xd0,
  1104. 0x09, 0xb9, 0x99, 0x8c, 0xa0, 0x57, 0xc9, 0x67, 0x0a, 0x6e, 0xd1, 0x8e, 0x64, 0x02, 0x89, 0x56,
  1105. 0x95, 0xac, 0xa5, 0xda, 0xd0, 0xbf, 0x6e, 0xf3, 0x8b, 0xcf, 0xee, 0x21, 0x61, 0x5d, 0x0f, 0xe4,
  1106. 0x0a, 0x62, 0xff, 0xf8, 0x24, 0xcd, 0xf6, 0x94, 0x93, 0xfd, 0x68, 0x66, 0x72, 0xba, 0x77, 0xe7,
  1107. 0xfb, 0x93, 0xa6, 0x7f, 0x2e, 0x47, 0xaf, 0xbb, 0x69, 0xf0, 0xb6, 0x9b, 0x06, 0xef, 0xbb, 0x69,
  1108. 0x70, 0x17, 0xb6, 0x8b, 0x55, 0xec, 0xda, 0x3f, 0xff, 0x08, 0x00, 0x00, 0xff, 0xff, 0x7a, 0x10,
  1109. 0x80, 0x31, 0x30, 0x02, 0x00, 0x00,
  1110. }