api.pb.go 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/live/zeus/api/v1/api.proto
  3. package v1
  4. /*
  5. package 命名使用 {discovery_id}.{version} 的方式, version 形如 v1, v2, v1beta ..
  6. NOTE: 不知道的 discovery_id 请询问大佬, 新项目找大佬申请 discovery_id,先到先得抢注
  7. e.g. account.service.v1
  8. */
  9. import proto "github.com/gogo/protobuf/proto"
  10. import fmt "fmt"
  11. import math "math"
  12. import _ "github.com/gogo/protobuf/gogoproto"
  13. import (
  14. context "golang.org/x/net/context"
  15. grpc "google.golang.org/grpc"
  16. )
  17. import io "io"
  18. // Reference imports to suppress errors if they are not otherwise used.
  19. var _ = proto.Marshal
  20. var _ = fmt.Errorf
  21. var _ = math.Inf
  22. // This is a compile-time assertion to ensure that this generated file
  23. // is compatible with the proto package it is being compiled against.
  24. // A compilation error at this line likely means your copy of the
  25. // proto package needs to be updated.
  26. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  27. type MatchRequest struct {
  28. Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group"`
  29. Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform"`
  30. Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version"`
  31. Build uint64 `protobuf:"varint,4,opt,name=build,proto3" json:"build"`
  32. Buvid string `protobuf:"bytes,5,opt,name=buvid,proto3" json:"buvid"`
  33. Uid uint64 `protobuf:"varint,6,opt,name=uid,proto3" json:"uid"`
  34. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  35. XXX_unrecognized []byte `json:"-"`
  36. XXX_sizecache int32 `json:"-"`
  37. }
  38. func (m *MatchRequest) Reset() { *m = MatchRequest{} }
  39. func (m *MatchRequest) String() string { return proto.CompactTextString(m) }
  40. func (*MatchRequest) ProtoMessage() {}
  41. func (*MatchRequest) Descriptor() ([]byte, []int) {
  42. return fileDescriptor_api_c648a0d3cea95155, []int{0}
  43. }
  44. func (m *MatchRequest) XXX_Unmarshal(b []byte) error {
  45. return m.Unmarshal(b)
  46. }
  47. func (m *MatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  48. if deterministic {
  49. return xxx_messageInfo_MatchRequest.Marshal(b, m, deterministic)
  50. } else {
  51. b = b[:cap(b)]
  52. n, err := m.MarshalTo(b)
  53. if err != nil {
  54. return nil, err
  55. }
  56. return b[:n], nil
  57. }
  58. }
  59. func (dst *MatchRequest) XXX_Merge(src proto.Message) {
  60. xxx_messageInfo_MatchRequest.Merge(dst, src)
  61. }
  62. func (m *MatchRequest) XXX_Size() int {
  63. return m.Size()
  64. }
  65. func (m *MatchRequest) XXX_DiscardUnknown() {
  66. xxx_messageInfo_MatchRequest.DiscardUnknown(m)
  67. }
  68. var xxx_messageInfo_MatchRequest proto.InternalMessageInfo
  69. func (m *MatchRequest) GetGroup() string {
  70. if m != nil {
  71. return m.Group
  72. }
  73. return ""
  74. }
  75. func (m *MatchRequest) GetPlatform() string {
  76. if m != nil {
  77. return m.Platform
  78. }
  79. return ""
  80. }
  81. func (m *MatchRequest) GetVersion() string {
  82. if m != nil {
  83. return m.Version
  84. }
  85. return ""
  86. }
  87. func (m *MatchRequest) GetBuild() uint64 {
  88. if m != nil {
  89. return m.Build
  90. }
  91. return 0
  92. }
  93. func (m *MatchRequest) GetBuvid() string {
  94. if m != nil {
  95. return m.Buvid
  96. }
  97. return ""
  98. }
  99. func (m *MatchRequest) GetUid() uint64 {
  100. if m != nil {
  101. return m.Uid
  102. }
  103. return 0
  104. }
  105. type MatchResponse struct {
  106. IsMatch bool `protobuf:"varint,1,opt,name=is_match,json=isMatch,proto3" json:"is_match"`
  107. Extend string `protobuf:"bytes,2,opt,name=extend,proto3" json:"extend"`
  108. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  109. XXX_unrecognized []byte `json:"-"`
  110. XXX_sizecache int32 `json:"-"`
  111. }
  112. func (m *MatchResponse) Reset() { *m = MatchResponse{} }
  113. func (m *MatchResponse) String() string { return proto.CompactTextString(m) }
  114. func (*MatchResponse) ProtoMessage() {}
  115. func (*MatchResponse) Descriptor() ([]byte, []int) {
  116. return fileDescriptor_api_c648a0d3cea95155, []int{1}
  117. }
  118. func (m *MatchResponse) XXX_Unmarshal(b []byte) error {
  119. return m.Unmarshal(b)
  120. }
  121. func (m *MatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  122. if deterministic {
  123. return xxx_messageInfo_MatchResponse.Marshal(b, m, deterministic)
  124. } else {
  125. b = b[:cap(b)]
  126. n, err := m.MarshalTo(b)
  127. if err != nil {
  128. return nil, err
  129. }
  130. return b[:n], nil
  131. }
  132. }
  133. func (dst *MatchResponse) XXX_Merge(src proto.Message) {
  134. xxx_messageInfo_MatchResponse.Merge(dst, src)
  135. }
  136. func (m *MatchResponse) XXX_Size() int {
  137. return m.Size()
  138. }
  139. func (m *MatchResponse) XXX_DiscardUnknown() {
  140. xxx_messageInfo_MatchResponse.DiscardUnknown(m)
  141. }
  142. var xxx_messageInfo_MatchResponse proto.InternalMessageInfo
  143. func (m *MatchResponse) GetIsMatch() bool {
  144. if m != nil {
  145. return m.IsMatch
  146. }
  147. return false
  148. }
  149. func (m *MatchResponse) GetExtend() string {
  150. if m != nil {
  151. return m.Extend
  152. }
  153. return ""
  154. }
  155. func init() {
  156. proto.RegisterType((*MatchRequest)(nil), "live.zeus.v1.MatchRequest")
  157. proto.RegisterType((*MatchResponse)(nil), "live.zeus.v1.MatchResponse")
  158. }
  159. // Reference imports to suppress errors if they are not otherwise used.
  160. var _ context.Context
  161. var _ grpc.ClientConn
  162. // This is a compile-time assertion to ensure that this generated file
  163. // is compatible with the grpc package it is being compiled against.
  164. const _ = grpc.SupportPackageIsVersion4
  165. // ZeusClient is the client API for Zeus service.
  166. //
  167. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  168. type ZeusClient interface {
  169. // `method:"POST"`
  170. Match(ctx context.Context, in *MatchRequest, opts ...grpc.CallOption) (*MatchResponse, error)
  171. }
  172. type zeusClient struct {
  173. cc *grpc.ClientConn
  174. }
  175. func NewZeusClient(cc *grpc.ClientConn) ZeusClient {
  176. return &zeusClient{cc}
  177. }
  178. func (c *zeusClient) Match(ctx context.Context, in *MatchRequest, opts ...grpc.CallOption) (*MatchResponse, error) {
  179. out := new(MatchResponse)
  180. err := c.cc.Invoke(ctx, "/live.zeus.v1.Zeus/Match", in, out, opts...)
  181. if err != nil {
  182. return nil, err
  183. }
  184. return out, nil
  185. }
  186. // ZeusServer is the server API for Zeus service.
  187. type ZeusServer interface {
  188. // `method:"POST"`
  189. Match(context.Context, *MatchRequest) (*MatchResponse, error)
  190. }
  191. func RegisterZeusServer(s *grpc.Server, srv ZeusServer) {
  192. s.RegisterService(&_Zeus_serviceDesc, srv)
  193. }
  194. func _Zeus_Match_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  195. in := new(MatchRequest)
  196. if err := dec(in); err != nil {
  197. return nil, err
  198. }
  199. if interceptor == nil {
  200. return srv.(ZeusServer).Match(ctx, in)
  201. }
  202. info := &grpc.UnaryServerInfo{
  203. Server: srv,
  204. FullMethod: "/live.zeus.v1.Zeus/Match",
  205. }
  206. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  207. return srv.(ZeusServer).Match(ctx, req.(*MatchRequest))
  208. }
  209. return interceptor(ctx, in, info, handler)
  210. }
  211. var _Zeus_serviceDesc = grpc.ServiceDesc{
  212. ServiceName: "live.zeus.v1.Zeus",
  213. HandlerType: (*ZeusServer)(nil),
  214. Methods: []grpc.MethodDesc{
  215. {
  216. MethodName: "Match",
  217. Handler: _Zeus_Match_Handler,
  218. },
  219. },
  220. Streams: []grpc.StreamDesc{},
  221. Metadata: "app/service/live/zeus/api/v1/api.proto",
  222. }
  223. func (m *MatchRequest) Marshal() (dAtA []byte, err error) {
  224. size := m.Size()
  225. dAtA = make([]byte, size)
  226. n, err := m.MarshalTo(dAtA)
  227. if err != nil {
  228. return nil, err
  229. }
  230. return dAtA[:n], nil
  231. }
  232. func (m *MatchRequest) MarshalTo(dAtA []byte) (int, error) {
  233. var i int
  234. _ = i
  235. var l int
  236. _ = l
  237. if len(m.Group) > 0 {
  238. dAtA[i] = 0xa
  239. i++
  240. i = encodeVarintApi(dAtA, i, uint64(len(m.Group)))
  241. i += copy(dAtA[i:], m.Group)
  242. }
  243. if len(m.Platform) > 0 {
  244. dAtA[i] = 0x12
  245. i++
  246. i = encodeVarintApi(dAtA, i, uint64(len(m.Platform)))
  247. i += copy(dAtA[i:], m.Platform)
  248. }
  249. if len(m.Version) > 0 {
  250. dAtA[i] = 0x1a
  251. i++
  252. i = encodeVarintApi(dAtA, i, uint64(len(m.Version)))
  253. i += copy(dAtA[i:], m.Version)
  254. }
  255. if m.Build != 0 {
  256. dAtA[i] = 0x20
  257. i++
  258. i = encodeVarintApi(dAtA, i, uint64(m.Build))
  259. }
  260. if len(m.Buvid) > 0 {
  261. dAtA[i] = 0x2a
  262. i++
  263. i = encodeVarintApi(dAtA, i, uint64(len(m.Buvid)))
  264. i += copy(dAtA[i:], m.Buvid)
  265. }
  266. if m.Uid != 0 {
  267. dAtA[i] = 0x30
  268. i++
  269. i = encodeVarintApi(dAtA, i, uint64(m.Uid))
  270. }
  271. if m.XXX_unrecognized != nil {
  272. i += copy(dAtA[i:], m.XXX_unrecognized)
  273. }
  274. return i, nil
  275. }
  276. func (m *MatchResponse) Marshal() (dAtA []byte, err error) {
  277. size := m.Size()
  278. dAtA = make([]byte, size)
  279. n, err := m.MarshalTo(dAtA)
  280. if err != nil {
  281. return nil, err
  282. }
  283. return dAtA[:n], nil
  284. }
  285. func (m *MatchResponse) MarshalTo(dAtA []byte) (int, error) {
  286. var i int
  287. _ = i
  288. var l int
  289. _ = l
  290. if m.IsMatch {
  291. dAtA[i] = 0x8
  292. i++
  293. if m.IsMatch {
  294. dAtA[i] = 1
  295. } else {
  296. dAtA[i] = 0
  297. }
  298. i++
  299. }
  300. if len(m.Extend) > 0 {
  301. dAtA[i] = 0x12
  302. i++
  303. i = encodeVarintApi(dAtA, i, uint64(len(m.Extend)))
  304. i += copy(dAtA[i:], m.Extend)
  305. }
  306. if m.XXX_unrecognized != nil {
  307. i += copy(dAtA[i:], m.XXX_unrecognized)
  308. }
  309. return i, nil
  310. }
  311. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  312. for v >= 1<<7 {
  313. dAtA[offset] = uint8(v&0x7f | 0x80)
  314. v >>= 7
  315. offset++
  316. }
  317. dAtA[offset] = uint8(v)
  318. return offset + 1
  319. }
  320. func (m *MatchRequest) Size() (n int) {
  321. if m == nil {
  322. return 0
  323. }
  324. var l int
  325. _ = l
  326. l = len(m.Group)
  327. if l > 0 {
  328. n += 1 + l + sovApi(uint64(l))
  329. }
  330. l = len(m.Platform)
  331. if l > 0 {
  332. n += 1 + l + sovApi(uint64(l))
  333. }
  334. l = len(m.Version)
  335. if l > 0 {
  336. n += 1 + l + sovApi(uint64(l))
  337. }
  338. if m.Build != 0 {
  339. n += 1 + sovApi(uint64(m.Build))
  340. }
  341. l = len(m.Buvid)
  342. if l > 0 {
  343. n += 1 + l + sovApi(uint64(l))
  344. }
  345. if m.Uid != 0 {
  346. n += 1 + sovApi(uint64(m.Uid))
  347. }
  348. if m.XXX_unrecognized != nil {
  349. n += len(m.XXX_unrecognized)
  350. }
  351. return n
  352. }
  353. func (m *MatchResponse) Size() (n int) {
  354. if m == nil {
  355. return 0
  356. }
  357. var l int
  358. _ = l
  359. if m.IsMatch {
  360. n += 2
  361. }
  362. l = len(m.Extend)
  363. if l > 0 {
  364. n += 1 + l + sovApi(uint64(l))
  365. }
  366. if m.XXX_unrecognized != nil {
  367. n += len(m.XXX_unrecognized)
  368. }
  369. return n
  370. }
  371. func sovApi(x uint64) (n int) {
  372. for {
  373. n++
  374. x >>= 7
  375. if x == 0 {
  376. break
  377. }
  378. }
  379. return n
  380. }
  381. func sozApi(x uint64) (n int) {
  382. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  383. }
  384. func (m *MatchRequest) Unmarshal(dAtA []byte) error {
  385. l := len(dAtA)
  386. iNdEx := 0
  387. for iNdEx < l {
  388. preIndex := iNdEx
  389. var wire uint64
  390. for shift := uint(0); ; shift += 7 {
  391. if shift >= 64 {
  392. return ErrIntOverflowApi
  393. }
  394. if iNdEx >= l {
  395. return io.ErrUnexpectedEOF
  396. }
  397. b := dAtA[iNdEx]
  398. iNdEx++
  399. wire |= (uint64(b) & 0x7F) << shift
  400. if b < 0x80 {
  401. break
  402. }
  403. }
  404. fieldNum := int32(wire >> 3)
  405. wireType := int(wire & 0x7)
  406. if wireType == 4 {
  407. return fmt.Errorf("proto: MatchRequest: wiretype end group for non-group")
  408. }
  409. if fieldNum <= 0 {
  410. return fmt.Errorf("proto: MatchRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  411. }
  412. switch fieldNum {
  413. case 1:
  414. if wireType != 2 {
  415. return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType)
  416. }
  417. var stringLen uint64
  418. for shift := uint(0); ; shift += 7 {
  419. if shift >= 64 {
  420. return ErrIntOverflowApi
  421. }
  422. if iNdEx >= l {
  423. return io.ErrUnexpectedEOF
  424. }
  425. b := dAtA[iNdEx]
  426. iNdEx++
  427. stringLen |= (uint64(b) & 0x7F) << shift
  428. if b < 0x80 {
  429. break
  430. }
  431. }
  432. intStringLen := int(stringLen)
  433. if intStringLen < 0 {
  434. return ErrInvalidLengthApi
  435. }
  436. postIndex := iNdEx + intStringLen
  437. if postIndex > l {
  438. return io.ErrUnexpectedEOF
  439. }
  440. m.Group = string(dAtA[iNdEx:postIndex])
  441. iNdEx = postIndex
  442. case 2:
  443. if wireType != 2 {
  444. return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
  445. }
  446. var stringLen uint64
  447. for shift := uint(0); ; shift += 7 {
  448. if shift >= 64 {
  449. return ErrIntOverflowApi
  450. }
  451. if iNdEx >= l {
  452. return io.ErrUnexpectedEOF
  453. }
  454. b := dAtA[iNdEx]
  455. iNdEx++
  456. stringLen |= (uint64(b) & 0x7F) << shift
  457. if b < 0x80 {
  458. break
  459. }
  460. }
  461. intStringLen := int(stringLen)
  462. if intStringLen < 0 {
  463. return ErrInvalidLengthApi
  464. }
  465. postIndex := iNdEx + intStringLen
  466. if postIndex > l {
  467. return io.ErrUnexpectedEOF
  468. }
  469. m.Platform = string(dAtA[iNdEx:postIndex])
  470. iNdEx = postIndex
  471. case 3:
  472. if wireType != 2 {
  473. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  474. }
  475. var stringLen uint64
  476. for shift := uint(0); ; shift += 7 {
  477. if shift >= 64 {
  478. return ErrIntOverflowApi
  479. }
  480. if iNdEx >= l {
  481. return io.ErrUnexpectedEOF
  482. }
  483. b := dAtA[iNdEx]
  484. iNdEx++
  485. stringLen |= (uint64(b) & 0x7F) << shift
  486. if b < 0x80 {
  487. break
  488. }
  489. }
  490. intStringLen := int(stringLen)
  491. if intStringLen < 0 {
  492. return ErrInvalidLengthApi
  493. }
  494. postIndex := iNdEx + intStringLen
  495. if postIndex > l {
  496. return io.ErrUnexpectedEOF
  497. }
  498. m.Version = string(dAtA[iNdEx:postIndex])
  499. iNdEx = postIndex
  500. case 4:
  501. if wireType != 0 {
  502. return fmt.Errorf("proto: wrong wireType = %d for field Build", wireType)
  503. }
  504. m.Build = 0
  505. for shift := uint(0); ; shift += 7 {
  506. if shift >= 64 {
  507. return ErrIntOverflowApi
  508. }
  509. if iNdEx >= l {
  510. return io.ErrUnexpectedEOF
  511. }
  512. b := dAtA[iNdEx]
  513. iNdEx++
  514. m.Build |= (uint64(b) & 0x7F) << shift
  515. if b < 0x80 {
  516. break
  517. }
  518. }
  519. case 5:
  520. if wireType != 2 {
  521. return fmt.Errorf("proto: wrong wireType = %d for field Buvid", wireType)
  522. }
  523. var stringLen uint64
  524. for shift := uint(0); ; shift += 7 {
  525. if shift >= 64 {
  526. return ErrIntOverflowApi
  527. }
  528. if iNdEx >= l {
  529. return io.ErrUnexpectedEOF
  530. }
  531. b := dAtA[iNdEx]
  532. iNdEx++
  533. stringLen |= (uint64(b) & 0x7F) << shift
  534. if b < 0x80 {
  535. break
  536. }
  537. }
  538. intStringLen := int(stringLen)
  539. if intStringLen < 0 {
  540. return ErrInvalidLengthApi
  541. }
  542. postIndex := iNdEx + intStringLen
  543. if postIndex > l {
  544. return io.ErrUnexpectedEOF
  545. }
  546. m.Buvid = string(dAtA[iNdEx:postIndex])
  547. iNdEx = postIndex
  548. case 6:
  549. if wireType != 0 {
  550. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  551. }
  552. m.Uid = 0
  553. for shift := uint(0); ; shift += 7 {
  554. if shift >= 64 {
  555. return ErrIntOverflowApi
  556. }
  557. if iNdEx >= l {
  558. return io.ErrUnexpectedEOF
  559. }
  560. b := dAtA[iNdEx]
  561. iNdEx++
  562. m.Uid |= (uint64(b) & 0x7F) << shift
  563. if b < 0x80 {
  564. break
  565. }
  566. }
  567. default:
  568. iNdEx = preIndex
  569. skippy, err := skipApi(dAtA[iNdEx:])
  570. if err != nil {
  571. return err
  572. }
  573. if skippy < 0 {
  574. return ErrInvalidLengthApi
  575. }
  576. if (iNdEx + skippy) > l {
  577. return io.ErrUnexpectedEOF
  578. }
  579. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  580. iNdEx += skippy
  581. }
  582. }
  583. if iNdEx > l {
  584. return io.ErrUnexpectedEOF
  585. }
  586. return nil
  587. }
  588. func (m *MatchResponse) Unmarshal(dAtA []byte) error {
  589. l := len(dAtA)
  590. iNdEx := 0
  591. for iNdEx < l {
  592. preIndex := iNdEx
  593. var wire uint64
  594. for shift := uint(0); ; shift += 7 {
  595. if shift >= 64 {
  596. return ErrIntOverflowApi
  597. }
  598. if iNdEx >= l {
  599. return io.ErrUnexpectedEOF
  600. }
  601. b := dAtA[iNdEx]
  602. iNdEx++
  603. wire |= (uint64(b) & 0x7F) << shift
  604. if b < 0x80 {
  605. break
  606. }
  607. }
  608. fieldNum := int32(wire >> 3)
  609. wireType := int(wire & 0x7)
  610. if wireType == 4 {
  611. return fmt.Errorf("proto: MatchResponse: wiretype end group for non-group")
  612. }
  613. if fieldNum <= 0 {
  614. return fmt.Errorf("proto: MatchResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  615. }
  616. switch fieldNum {
  617. case 1:
  618. if wireType != 0 {
  619. return fmt.Errorf("proto: wrong wireType = %d for field IsMatch", wireType)
  620. }
  621. var v int
  622. for shift := uint(0); ; shift += 7 {
  623. if shift >= 64 {
  624. return ErrIntOverflowApi
  625. }
  626. if iNdEx >= l {
  627. return io.ErrUnexpectedEOF
  628. }
  629. b := dAtA[iNdEx]
  630. iNdEx++
  631. v |= (int(b) & 0x7F) << shift
  632. if b < 0x80 {
  633. break
  634. }
  635. }
  636. m.IsMatch = bool(v != 0)
  637. case 2:
  638. if wireType != 2 {
  639. return fmt.Errorf("proto: wrong wireType = %d for field Extend", wireType)
  640. }
  641. var stringLen uint64
  642. for shift := uint(0); ; shift += 7 {
  643. if shift >= 64 {
  644. return ErrIntOverflowApi
  645. }
  646. if iNdEx >= l {
  647. return io.ErrUnexpectedEOF
  648. }
  649. b := dAtA[iNdEx]
  650. iNdEx++
  651. stringLen |= (uint64(b) & 0x7F) << shift
  652. if b < 0x80 {
  653. break
  654. }
  655. }
  656. intStringLen := int(stringLen)
  657. if intStringLen < 0 {
  658. return ErrInvalidLengthApi
  659. }
  660. postIndex := iNdEx + intStringLen
  661. if postIndex > l {
  662. return io.ErrUnexpectedEOF
  663. }
  664. m.Extend = string(dAtA[iNdEx:postIndex])
  665. iNdEx = postIndex
  666. default:
  667. iNdEx = preIndex
  668. skippy, err := skipApi(dAtA[iNdEx:])
  669. if err != nil {
  670. return err
  671. }
  672. if skippy < 0 {
  673. return ErrInvalidLengthApi
  674. }
  675. if (iNdEx + skippy) > l {
  676. return io.ErrUnexpectedEOF
  677. }
  678. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  679. iNdEx += skippy
  680. }
  681. }
  682. if iNdEx > l {
  683. return io.ErrUnexpectedEOF
  684. }
  685. return nil
  686. }
  687. func skipApi(dAtA []byte) (n int, err error) {
  688. l := len(dAtA)
  689. iNdEx := 0
  690. for iNdEx < l {
  691. var wire uint64
  692. for shift := uint(0); ; shift += 7 {
  693. if shift >= 64 {
  694. return 0, ErrIntOverflowApi
  695. }
  696. if iNdEx >= l {
  697. return 0, io.ErrUnexpectedEOF
  698. }
  699. b := dAtA[iNdEx]
  700. iNdEx++
  701. wire |= (uint64(b) & 0x7F) << shift
  702. if b < 0x80 {
  703. break
  704. }
  705. }
  706. wireType := int(wire & 0x7)
  707. switch wireType {
  708. case 0:
  709. for shift := uint(0); ; shift += 7 {
  710. if shift >= 64 {
  711. return 0, ErrIntOverflowApi
  712. }
  713. if iNdEx >= l {
  714. return 0, io.ErrUnexpectedEOF
  715. }
  716. iNdEx++
  717. if dAtA[iNdEx-1] < 0x80 {
  718. break
  719. }
  720. }
  721. return iNdEx, nil
  722. case 1:
  723. iNdEx += 8
  724. return iNdEx, nil
  725. case 2:
  726. var length int
  727. for shift := uint(0); ; shift += 7 {
  728. if shift >= 64 {
  729. return 0, ErrIntOverflowApi
  730. }
  731. if iNdEx >= l {
  732. return 0, io.ErrUnexpectedEOF
  733. }
  734. b := dAtA[iNdEx]
  735. iNdEx++
  736. length |= (int(b) & 0x7F) << shift
  737. if b < 0x80 {
  738. break
  739. }
  740. }
  741. iNdEx += length
  742. if length < 0 {
  743. return 0, ErrInvalidLengthApi
  744. }
  745. return iNdEx, nil
  746. case 3:
  747. for {
  748. var innerWire uint64
  749. var start int = iNdEx
  750. for shift := uint(0); ; shift += 7 {
  751. if shift >= 64 {
  752. return 0, ErrIntOverflowApi
  753. }
  754. if iNdEx >= l {
  755. return 0, io.ErrUnexpectedEOF
  756. }
  757. b := dAtA[iNdEx]
  758. iNdEx++
  759. innerWire |= (uint64(b) & 0x7F) << shift
  760. if b < 0x80 {
  761. break
  762. }
  763. }
  764. innerWireType := int(innerWire & 0x7)
  765. if innerWireType == 4 {
  766. break
  767. }
  768. next, err := skipApi(dAtA[start:])
  769. if err != nil {
  770. return 0, err
  771. }
  772. iNdEx = start + next
  773. }
  774. return iNdEx, nil
  775. case 4:
  776. return iNdEx, nil
  777. case 5:
  778. iNdEx += 4
  779. return iNdEx, nil
  780. default:
  781. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  782. }
  783. }
  784. panic("unreachable")
  785. }
  786. var (
  787. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  788. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  789. )
  790. func init() {
  791. proto.RegisterFile("app/service/live/zeus/api/v1/api.proto", fileDescriptor_api_c648a0d3cea95155)
  792. }
  793. var fileDescriptor_api_c648a0d3cea95155 = []byte{
  794. // 338 bytes of a gzipped FileDescriptorProto
  795. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xbf, 0x4e, 0xc3, 0x30,
  796. 0x10, 0xc6, 0xe5, 0xfe, 0xaf, 0x29, 0x12, 0xf2, 0x14, 0x8a, 0xd4, 0x54, 0x95, 0x80, 0x2e, 0xc4,
  797. 0x2a, 0xbc, 0x00, 0xea, 0xc4, 0xc2, 0xe2, 0xb1, 0x42, 0x42, 0x49, 0xe3, 0xa6, 0x96, 0xda, 0xda,
  798. 0xc4, 0xb1, 0x85, 0x78, 0x42, 0x46, 0x5e, 0x80, 0x08, 0x75, 0xcc, 0x53, 0x20, 0x9f, 0xd3, 0xd2,
  799. 0x81, 0x25, 0xdf, 0xdd, 0xef, 0xee, 0x93, 0xef, 0x72, 0xf8, 0x26, 0x56, 0x8a, 0x6a, 0x9e, 0x5b,
  800. 0xb1, 0xe4, 0x74, 0x23, 0x2c, 0xa7, 0x1f, 0xdc, 0x68, 0x1a, 0x2b, 0x41, 0xed, 0xcc, 0x49, 0xa4,
  801. 0x72, 0x59, 0x48, 0x32, 0x70, 0xb5, 0xc8, 0xd5, 0x22, 0x3b, 0x1b, 0xde, 0x65, 0xa2, 0x58, 0x9b,
  802. 0x24, 0x5a, 0xca, 0x2d, 0xcd, 0x64, 0x26, 0x29, 0x34, 0x25, 0x66, 0x05, 0x19, 0x24, 0x10, 0x79,
  803. 0xf3, 0xe4, 0x1b, 0xe1, 0xc1, 0x73, 0x5c, 0x2c, 0xd7, 0x8c, 0xbf, 0x19, 0xae, 0x0b, 0x12, 0xe2,
  804. 0x76, 0x96, 0x4b, 0xa3, 0x02, 0x34, 0x46, 0xd3, 0xfe, 0xbc, 0x5f, 0x95, 0xa1, 0x07, 0xcc, 0x0b,
  805. 0x99, 0xe2, 0x9e, 0xda, 0xc4, 0xc5, 0x4a, 0xe6, 0xdb, 0xa0, 0x01, 0x3d, 0x83, 0xaa, 0x0c, 0x8f,
  806. 0x8c, 0x1d, 0x23, 0x72, 0x8d, 0xbb, 0x96, 0xe7, 0x5a, 0xc8, 0x5d, 0xd0, 0x84, 0xc6, 0xb3, 0xaa,
  807. 0x0c, 0x0f, 0x88, 0x1d, 0x02, 0xf7, 0x62, 0x62, 0xc4, 0x26, 0x0d, 0x5a, 0x63, 0x34, 0x6d, 0xf9,
  808. 0x17, 0x01, 0x30, 0x2f, 0xbe, 0xc1, 0x8a, 0x34, 0x68, 0xff, 0x8d, 0x04, 0x80, 0x79, 0x21, 0x97,
  809. 0xb8, 0x69, 0x44, 0x1a, 0x74, 0xc0, 0xdf, 0xad, 0xca, 0xd0, 0xa5, 0xcc, 0x7d, 0x26, 0x2f, 0xf8,
  810. 0xbc, 0x5e, 0x4f, 0x2b, 0xb9, 0xd3, 0x9c, 0xdc, 0xe2, 0x9e, 0xd0, 0xaf, 0x5b, 0xc7, 0x60, 0xc5,
  811. 0x9e, 0x1f, 0xff, 0xc0, 0x58, 0x57, 0x68, 0x30, 0x90, 0x09, 0xee, 0xf0, 0xf7, 0x82, 0xef, 0xd2,
  812. 0x7a, 0x4b, 0x5c, 0x95, 0x61, 0x4d, 0x58, 0xad, 0xf7, 0x4f, 0xb8, 0xb5, 0xe0, 0x46, 0x93, 0x47,
  813. 0xdc, 0xf6, 0xa6, 0x61, 0x74, 0x7a, 0x8c, 0xe8, 0xf4, 0xcf, 0x0e, 0xaf, 0xfe, 0xad, 0xf9, 0xb1,
  814. 0xe6, 0x17, 0x9f, 0xfb, 0x11, 0xfa, 0xda, 0x8f, 0xd0, 0xcf, 0x7e, 0x84, 0x16, 0x0d, 0x3b, 0x4b,
  815. 0x3a, 0x70, 0xa0, 0x87, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8c, 0x92, 0x06, 0x64, 0x07, 0x02,
  816. 0x00, 0x00,
  817. }