api.pb.go 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/main/location/api/v1/api.proto
  3. /*
  4. Package v1 is a generated protocol buffer package.
  5. It is generated from these files:
  6. app/service/main/location/api/v1/api.proto
  7. It has these top-level messages:
  8. InfoReply
  9. InfoReq
  10. */
  11. package api
  12. import proto "github.com/golang/protobuf/proto"
  13. import fmt "fmt"
  14. import math "math"
  15. import context "golang.org/x/net/context"
  16. import grpc "google.golang.org/grpc"
  17. import binary "encoding/binary"
  18. import io "io"
  19. // Reference imports to suppress errors if they are not otherwise used.
  20. var _ = proto.Marshal
  21. var _ = fmt.Errorf
  22. var _ = math.Inf
  23. // This is a compile-time assertion to ensure that this generated file
  24. // is compatible with the proto package it is being compiled against.
  25. // A compilation error at this line likely means your copy of the
  26. // proto package needs to be updated.
  27. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  28. type InfoReply struct {
  29. Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
  30. Country string `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"`
  31. Province string `protobuf:"bytes,3,opt,name=province,proto3" json:"province,omitempty"`
  32. City string `protobuf:"bytes,4,opt,name=city,proto3" json:"city,omitempty"`
  33. Isp string `protobuf:"bytes,5,opt,name=isp,proto3" json:"isp,omitempty"`
  34. Latitude float64 `protobuf:"fixed64,6,opt,name=latitude,proto3" json:"latitude,omitempty"`
  35. Longitude float64 `protobuf:"fixed64,7,opt,name=longitude,proto3" json:"longitude,omitempty"`
  36. ZoneId int64 `protobuf:"varint,8,opt,name=zone_id,json=zoneId,proto3" json:"zoneId,omitempty"`
  37. }
  38. func (m *InfoReply) Reset() { *m = InfoReply{} }
  39. func (m *InfoReply) String() string { return proto.CompactTextString(m) }
  40. func (*InfoReply) ProtoMessage() {}
  41. func (*InfoReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{0} }
  42. func (m *InfoReply) GetAddr() string {
  43. if m != nil {
  44. return m.Addr
  45. }
  46. return ""
  47. }
  48. func (m *InfoReply) GetCountry() string {
  49. if m != nil {
  50. return m.Country
  51. }
  52. return ""
  53. }
  54. func (m *InfoReply) GetProvince() string {
  55. if m != nil {
  56. return m.Province
  57. }
  58. return ""
  59. }
  60. func (m *InfoReply) GetCity() string {
  61. if m != nil {
  62. return m.City
  63. }
  64. return ""
  65. }
  66. func (m *InfoReply) GetIsp() string {
  67. if m != nil {
  68. return m.Isp
  69. }
  70. return ""
  71. }
  72. func (m *InfoReply) GetLatitude() float64 {
  73. if m != nil {
  74. return m.Latitude
  75. }
  76. return 0
  77. }
  78. func (m *InfoReply) GetLongitude() float64 {
  79. if m != nil {
  80. return m.Longitude
  81. }
  82. return 0
  83. }
  84. func (m *InfoReply) GetZoneId() int64 {
  85. if m != nil {
  86. return m.ZoneId
  87. }
  88. return 0
  89. }
  90. type InfoReq struct {
  91. Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
  92. }
  93. func (m *InfoReq) Reset() { *m = InfoReq{} }
  94. func (m *InfoReq) String() string { return proto.CompactTextString(m) }
  95. func (*InfoReq) ProtoMessage() {}
  96. func (*InfoReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{1} }
  97. func (m *InfoReq) GetAddr() string {
  98. if m != nil {
  99. return m.Addr
  100. }
  101. return ""
  102. }
  103. func init() {
  104. proto.RegisterType((*InfoReply)(nil), "location.service.InfoReply")
  105. proto.RegisterType((*InfoReq)(nil), "location.service.InfoReq")
  106. }
  107. // Reference imports to suppress errors if they are not otherwise used.
  108. var _ context.Context
  109. var _ grpc.ClientConn
  110. // This is a compile-time assertion to ensure that this generated file
  111. // is compatible with the grpc package it is being compiled against.
  112. const _ = grpc.SupportPackageIsVersion4
  113. // Client API for Location service
  114. type LocationClient interface {
  115. // Info get ip info.
  116. Info(ctx context.Context, in *InfoReq, opts ...grpc.CallOption) (*InfoReply, error)
  117. }
  118. type locationClient struct {
  119. cc *grpc.ClientConn
  120. }
  121. func NewLocationClient(cc *grpc.ClientConn) LocationClient {
  122. return &locationClient{cc}
  123. }
  124. func (c *locationClient) Info(ctx context.Context, in *InfoReq, opts ...grpc.CallOption) (*InfoReply, error) {
  125. out := new(InfoReply)
  126. err := grpc.Invoke(ctx, "/location.service.Location/Info", in, out, c.cc, opts...)
  127. if err != nil {
  128. return nil, err
  129. }
  130. return out, nil
  131. }
  132. // Server API for Location service
  133. type LocationServer interface {
  134. // Info get ip info.
  135. Info(context.Context, *InfoReq) (*InfoReply, error)
  136. }
  137. func RegisterLocationServer(s *grpc.Server, srv LocationServer) {
  138. s.RegisterService(&_Location_serviceDesc, srv)
  139. }
  140. func _Location_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  141. in := new(InfoReq)
  142. if err := dec(in); err != nil {
  143. return nil, err
  144. }
  145. if interceptor == nil {
  146. return srv.(LocationServer).Info(ctx, in)
  147. }
  148. info := &grpc.UnaryServerInfo{
  149. Server: srv,
  150. FullMethod: "/location.service.Location/Info",
  151. }
  152. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  153. return srv.(LocationServer).Info(ctx, req.(*InfoReq))
  154. }
  155. return interceptor(ctx, in, info, handler)
  156. }
  157. var _Location_serviceDesc = grpc.ServiceDesc{
  158. ServiceName: "location.service.Location",
  159. HandlerType: (*LocationServer)(nil),
  160. Methods: []grpc.MethodDesc{
  161. {
  162. MethodName: "Info",
  163. Handler: _Location_Info_Handler,
  164. },
  165. },
  166. Streams: []grpc.StreamDesc{},
  167. Metadata: "app/service/main/location/api/v1/api.proto",
  168. }
  169. func (m *InfoReply) Marshal() (dAtA []byte, err error) {
  170. size := m.Size()
  171. dAtA = make([]byte, size)
  172. n, err := m.MarshalTo(dAtA)
  173. if err != nil {
  174. return nil, err
  175. }
  176. return dAtA[:n], nil
  177. }
  178. func (m *InfoReply) MarshalTo(dAtA []byte) (int, error) {
  179. var i int
  180. _ = i
  181. var l int
  182. _ = l
  183. if len(m.Addr) > 0 {
  184. dAtA[i] = 0xa
  185. i++
  186. i = encodeVarintApi(dAtA, i, uint64(len(m.Addr)))
  187. i += copy(dAtA[i:], m.Addr)
  188. }
  189. if len(m.Country) > 0 {
  190. dAtA[i] = 0x12
  191. i++
  192. i = encodeVarintApi(dAtA, i, uint64(len(m.Country)))
  193. i += copy(dAtA[i:], m.Country)
  194. }
  195. if len(m.Province) > 0 {
  196. dAtA[i] = 0x1a
  197. i++
  198. i = encodeVarintApi(dAtA, i, uint64(len(m.Province)))
  199. i += copy(dAtA[i:], m.Province)
  200. }
  201. if len(m.City) > 0 {
  202. dAtA[i] = 0x22
  203. i++
  204. i = encodeVarintApi(dAtA, i, uint64(len(m.City)))
  205. i += copy(dAtA[i:], m.City)
  206. }
  207. if len(m.Isp) > 0 {
  208. dAtA[i] = 0x2a
  209. i++
  210. i = encodeVarintApi(dAtA, i, uint64(len(m.Isp)))
  211. i += copy(dAtA[i:], m.Isp)
  212. }
  213. if m.Latitude != 0 {
  214. dAtA[i] = 0x31
  215. i++
  216. binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Latitude))))
  217. i += 8
  218. }
  219. if m.Longitude != 0 {
  220. dAtA[i] = 0x39
  221. i++
  222. binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Longitude))))
  223. i += 8
  224. }
  225. if m.ZoneId != 0 {
  226. dAtA[i] = 0x40
  227. i++
  228. i = encodeVarintApi(dAtA, i, uint64(m.ZoneId))
  229. }
  230. return i, nil
  231. }
  232. func (m *InfoReq) Marshal() (dAtA []byte, err error) {
  233. size := m.Size()
  234. dAtA = make([]byte, size)
  235. n, err := m.MarshalTo(dAtA)
  236. if err != nil {
  237. return nil, err
  238. }
  239. return dAtA[:n], nil
  240. }
  241. func (m *InfoReq) MarshalTo(dAtA []byte) (int, error) {
  242. var i int
  243. _ = i
  244. var l int
  245. _ = l
  246. if len(m.Addr) > 0 {
  247. dAtA[i] = 0x12
  248. i++
  249. i = encodeVarintApi(dAtA, i, uint64(len(m.Addr)))
  250. i += copy(dAtA[i:], m.Addr)
  251. }
  252. return i, nil
  253. }
  254. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  255. for v >= 1<<7 {
  256. dAtA[offset] = uint8(v&0x7f | 0x80)
  257. v >>= 7
  258. offset++
  259. }
  260. dAtA[offset] = uint8(v)
  261. return offset + 1
  262. }
  263. func (m *InfoReply) Size() (n int) {
  264. var l int
  265. _ = l
  266. l = len(m.Addr)
  267. if l > 0 {
  268. n += 1 + l + sovApi(uint64(l))
  269. }
  270. l = len(m.Country)
  271. if l > 0 {
  272. n += 1 + l + sovApi(uint64(l))
  273. }
  274. l = len(m.Province)
  275. if l > 0 {
  276. n += 1 + l + sovApi(uint64(l))
  277. }
  278. l = len(m.City)
  279. if l > 0 {
  280. n += 1 + l + sovApi(uint64(l))
  281. }
  282. l = len(m.Isp)
  283. if l > 0 {
  284. n += 1 + l + sovApi(uint64(l))
  285. }
  286. if m.Latitude != 0 {
  287. n += 9
  288. }
  289. if m.Longitude != 0 {
  290. n += 9
  291. }
  292. if m.ZoneId != 0 {
  293. n += 1 + sovApi(uint64(m.ZoneId))
  294. }
  295. return n
  296. }
  297. func (m *InfoReq) Size() (n int) {
  298. var l int
  299. _ = l
  300. l = len(m.Addr)
  301. if l > 0 {
  302. n += 1 + l + sovApi(uint64(l))
  303. }
  304. return n
  305. }
  306. func sovApi(x uint64) (n int) {
  307. for {
  308. n++
  309. x >>= 7
  310. if x == 0 {
  311. break
  312. }
  313. }
  314. return n
  315. }
  316. func sozApi(x uint64) (n int) {
  317. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  318. }
  319. func (m *InfoReply) Unmarshal(dAtA []byte) error {
  320. l := len(dAtA)
  321. iNdEx := 0
  322. for iNdEx < l {
  323. preIndex := iNdEx
  324. var wire uint64
  325. for shift := uint(0); ; shift += 7 {
  326. if shift >= 64 {
  327. return ErrIntOverflowApi
  328. }
  329. if iNdEx >= l {
  330. return io.ErrUnexpectedEOF
  331. }
  332. b := dAtA[iNdEx]
  333. iNdEx++
  334. wire |= (uint64(b) & 0x7F) << shift
  335. if b < 0x80 {
  336. break
  337. }
  338. }
  339. fieldNum := int32(wire >> 3)
  340. wireType := int(wire & 0x7)
  341. if wireType == 4 {
  342. return fmt.Errorf("proto: InfoReply: wiretype end group for non-group")
  343. }
  344. if fieldNum <= 0 {
  345. return fmt.Errorf("proto: InfoReply: illegal tag %d (wire type %d)", fieldNum, wire)
  346. }
  347. switch fieldNum {
  348. case 1:
  349. if wireType != 2 {
  350. return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType)
  351. }
  352. var stringLen uint64
  353. for shift := uint(0); ; shift += 7 {
  354. if shift >= 64 {
  355. return ErrIntOverflowApi
  356. }
  357. if iNdEx >= l {
  358. return io.ErrUnexpectedEOF
  359. }
  360. b := dAtA[iNdEx]
  361. iNdEx++
  362. stringLen |= (uint64(b) & 0x7F) << shift
  363. if b < 0x80 {
  364. break
  365. }
  366. }
  367. intStringLen := int(stringLen)
  368. if intStringLen < 0 {
  369. return ErrInvalidLengthApi
  370. }
  371. postIndex := iNdEx + intStringLen
  372. if postIndex > l {
  373. return io.ErrUnexpectedEOF
  374. }
  375. m.Addr = string(dAtA[iNdEx:postIndex])
  376. iNdEx = postIndex
  377. case 2:
  378. if wireType != 2 {
  379. return fmt.Errorf("proto: wrong wireType = %d for field Country", wireType)
  380. }
  381. var stringLen uint64
  382. for shift := uint(0); ; shift += 7 {
  383. if shift >= 64 {
  384. return ErrIntOverflowApi
  385. }
  386. if iNdEx >= l {
  387. return io.ErrUnexpectedEOF
  388. }
  389. b := dAtA[iNdEx]
  390. iNdEx++
  391. stringLen |= (uint64(b) & 0x7F) << shift
  392. if b < 0x80 {
  393. break
  394. }
  395. }
  396. intStringLen := int(stringLen)
  397. if intStringLen < 0 {
  398. return ErrInvalidLengthApi
  399. }
  400. postIndex := iNdEx + intStringLen
  401. if postIndex > l {
  402. return io.ErrUnexpectedEOF
  403. }
  404. m.Country = string(dAtA[iNdEx:postIndex])
  405. iNdEx = postIndex
  406. case 3:
  407. if wireType != 2 {
  408. return fmt.Errorf("proto: wrong wireType = %d for field Province", wireType)
  409. }
  410. var stringLen uint64
  411. for shift := uint(0); ; shift += 7 {
  412. if shift >= 64 {
  413. return ErrIntOverflowApi
  414. }
  415. if iNdEx >= l {
  416. return io.ErrUnexpectedEOF
  417. }
  418. b := dAtA[iNdEx]
  419. iNdEx++
  420. stringLen |= (uint64(b) & 0x7F) << shift
  421. if b < 0x80 {
  422. break
  423. }
  424. }
  425. intStringLen := int(stringLen)
  426. if intStringLen < 0 {
  427. return ErrInvalidLengthApi
  428. }
  429. postIndex := iNdEx + intStringLen
  430. if postIndex > l {
  431. return io.ErrUnexpectedEOF
  432. }
  433. m.Province = string(dAtA[iNdEx:postIndex])
  434. iNdEx = postIndex
  435. case 4:
  436. if wireType != 2 {
  437. return fmt.Errorf("proto: wrong wireType = %d for field City", wireType)
  438. }
  439. var stringLen uint64
  440. for shift := uint(0); ; shift += 7 {
  441. if shift >= 64 {
  442. return ErrIntOverflowApi
  443. }
  444. if iNdEx >= l {
  445. return io.ErrUnexpectedEOF
  446. }
  447. b := dAtA[iNdEx]
  448. iNdEx++
  449. stringLen |= (uint64(b) & 0x7F) << shift
  450. if b < 0x80 {
  451. break
  452. }
  453. }
  454. intStringLen := int(stringLen)
  455. if intStringLen < 0 {
  456. return ErrInvalidLengthApi
  457. }
  458. postIndex := iNdEx + intStringLen
  459. if postIndex > l {
  460. return io.ErrUnexpectedEOF
  461. }
  462. m.City = string(dAtA[iNdEx:postIndex])
  463. iNdEx = postIndex
  464. case 5:
  465. if wireType != 2 {
  466. return fmt.Errorf("proto: wrong wireType = %d for field Isp", wireType)
  467. }
  468. var stringLen uint64
  469. for shift := uint(0); ; shift += 7 {
  470. if shift >= 64 {
  471. return ErrIntOverflowApi
  472. }
  473. if iNdEx >= l {
  474. return io.ErrUnexpectedEOF
  475. }
  476. b := dAtA[iNdEx]
  477. iNdEx++
  478. stringLen |= (uint64(b) & 0x7F) << shift
  479. if b < 0x80 {
  480. break
  481. }
  482. }
  483. intStringLen := int(stringLen)
  484. if intStringLen < 0 {
  485. return ErrInvalidLengthApi
  486. }
  487. postIndex := iNdEx + intStringLen
  488. if postIndex > l {
  489. return io.ErrUnexpectedEOF
  490. }
  491. m.Isp = string(dAtA[iNdEx:postIndex])
  492. iNdEx = postIndex
  493. case 6:
  494. if wireType != 1 {
  495. return fmt.Errorf("proto: wrong wireType = %d for field Latitude", wireType)
  496. }
  497. var v uint64
  498. if (iNdEx + 8) > l {
  499. return io.ErrUnexpectedEOF
  500. }
  501. v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  502. iNdEx += 8
  503. m.Latitude = float64(math.Float64frombits(v))
  504. case 7:
  505. if wireType != 1 {
  506. return fmt.Errorf("proto: wrong wireType = %d for field Longitude", wireType)
  507. }
  508. var v uint64
  509. if (iNdEx + 8) > l {
  510. return io.ErrUnexpectedEOF
  511. }
  512. v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  513. iNdEx += 8
  514. m.Longitude = float64(math.Float64frombits(v))
  515. case 8:
  516. if wireType != 0 {
  517. return fmt.Errorf("proto: wrong wireType = %d for field ZoneId", wireType)
  518. }
  519. m.ZoneId = 0
  520. for shift := uint(0); ; shift += 7 {
  521. if shift >= 64 {
  522. return ErrIntOverflowApi
  523. }
  524. if iNdEx >= l {
  525. return io.ErrUnexpectedEOF
  526. }
  527. b := dAtA[iNdEx]
  528. iNdEx++
  529. m.ZoneId |= (int64(b) & 0x7F) << shift
  530. if b < 0x80 {
  531. break
  532. }
  533. }
  534. default:
  535. iNdEx = preIndex
  536. skippy, err := skipApi(dAtA[iNdEx:])
  537. if err != nil {
  538. return err
  539. }
  540. if skippy < 0 {
  541. return ErrInvalidLengthApi
  542. }
  543. if (iNdEx + skippy) > l {
  544. return io.ErrUnexpectedEOF
  545. }
  546. iNdEx += skippy
  547. }
  548. }
  549. if iNdEx > l {
  550. return io.ErrUnexpectedEOF
  551. }
  552. return nil
  553. }
  554. func (m *InfoReq) Unmarshal(dAtA []byte) error {
  555. l := len(dAtA)
  556. iNdEx := 0
  557. for iNdEx < l {
  558. preIndex := iNdEx
  559. var wire uint64
  560. for shift := uint(0); ; shift += 7 {
  561. if shift >= 64 {
  562. return ErrIntOverflowApi
  563. }
  564. if iNdEx >= l {
  565. return io.ErrUnexpectedEOF
  566. }
  567. b := dAtA[iNdEx]
  568. iNdEx++
  569. wire |= (uint64(b) & 0x7F) << shift
  570. if b < 0x80 {
  571. break
  572. }
  573. }
  574. fieldNum := int32(wire >> 3)
  575. wireType := int(wire & 0x7)
  576. if wireType == 4 {
  577. return fmt.Errorf("proto: InfoReq: wiretype end group for non-group")
  578. }
  579. if fieldNum <= 0 {
  580. return fmt.Errorf("proto: InfoReq: illegal tag %d (wire type %d)", fieldNum, wire)
  581. }
  582. switch fieldNum {
  583. case 2:
  584. if wireType != 2 {
  585. return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType)
  586. }
  587. var stringLen uint64
  588. for shift := uint(0); ; shift += 7 {
  589. if shift >= 64 {
  590. return ErrIntOverflowApi
  591. }
  592. if iNdEx >= l {
  593. return io.ErrUnexpectedEOF
  594. }
  595. b := dAtA[iNdEx]
  596. iNdEx++
  597. stringLen |= (uint64(b) & 0x7F) << shift
  598. if b < 0x80 {
  599. break
  600. }
  601. }
  602. intStringLen := int(stringLen)
  603. if intStringLen < 0 {
  604. return ErrInvalidLengthApi
  605. }
  606. postIndex := iNdEx + intStringLen
  607. if postIndex > l {
  608. return io.ErrUnexpectedEOF
  609. }
  610. m.Addr = string(dAtA[iNdEx:postIndex])
  611. iNdEx = postIndex
  612. default:
  613. iNdEx = preIndex
  614. skippy, err := skipApi(dAtA[iNdEx:])
  615. if err != nil {
  616. return err
  617. }
  618. if skippy < 0 {
  619. return ErrInvalidLengthApi
  620. }
  621. if (iNdEx + skippy) > l {
  622. return io.ErrUnexpectedEOF
  623. }
  624. iNdEx += skippy
  625. }
  626. }
  627. if iNdEx > l {
  628. return io.ErrUnexpectedEOF
  629. }
  630. return nil
  631. }
  632. func skipApi(dAtA []byte) (n int, err error) {
  633. l := len(dAtA)
  634. iNdEx := 0
  635. for iNdEx < l {
  636. var wire uint64
  637. for shift := uint(0); ; shift += 7 {
  638. if shift >= 64 {
  639. return 0, ErrIntOverflowApi
  640. }
  641. if iNdEx >= l {
  642. return 0, io.ErrUnexpectedEOF
  643. }
  644. b := dAtA[iNdEx]
  645. iNdEx++
  646. wire |= (uint64(b) & 0x7F) << shift
  647. if b < 0x80 {
  648. break
  649. }
  650. }
  651. wireType := int(wire & 0x7)
  652. switch wireType {
  653. case 0:
  654. for shift := uint(0); ; shift += 7 {
  655. if shift >= 64 {
  656. return 0, ErrIntOverflowApi
  657. }
  658. if iNdEx >= l {
  659. return 0, io.ErrUnexpectedEOF
  660. }
  661. iNdEx++
  662. if dAtA[iNdEx-1] < 0x80 {
  663. break
  664. }
  665. }
  666. return iNdEx, nil
  667. case 1:
  668. iNdEx += 8
  669. return iNdEx, nil
  670. case 2:
  671. var length int
  672. for shift := uint(0); ; shift += 7 {
  673. if shift >= 64 {
  674. return 0, ErrIntOverflowApi
  675. }
  676. if iNdEx >= l {
  677. return 0, io.ErrUnexpectedEOF
  678. }
  679. b := dAtA[iNdEx]
  680. iNdEx++
  681. length |= (int(b) & 0x7F) << shift
  682. if b < 0x80 {
  683. break
  684. }
  685. }
  686. iNdEx += length
  687. if length < 0 {
  688. return 0, ErrInvalidLengthApi
  689. }
  690. return iNdEx, nil
  691. case 3:
  692. for {
  693. var innerWire uint64
  694. var start int = iNdEx
  695. for shift := uint(0); ; shift += 7 {
  696. if shift >= 64 {
  697. return 0, ErrIntOverflowApi
  698. }
  699. if iNdEx >= l {
  700. return 0, io.ErrUnexpectedEOF
  701. }
  702. b := dAtA[iNdEx]
  703. iNdEx++
  704. innerWire |= (uint64(b) & 0x7F) << shift
  705. if b < 0x80 {
  706. break
  707. }
  708. }
  709. innerWireType := int(innerWire & 0x7)
  710. if innerWireType == 4 {
  711. break
  712. }
  713. next, err := skipApi(dAtA[start:])
  714. if err != nil {
  715. return 0, err
  716. }
  717. iNdEx = start + next
  718. }
  719. return iNdEx, nil
  720. case 4:
  721. return iNdEx, nil
  722. case 5:
  723. iNdEx += 4
  724. return iNdEx, nil
  725. default:
  726. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  727. }
  728. }
  729. panic("unreachable")
  730. }
  731. var (
  732. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  733. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  734. )
  735. func init() { proto.RegisterFile("app/service/main/location/api/v1/api.proto", fileDescriptorApi) }
  736. var fileDescriptorApi = []byte{
  737. // 281 bytes of a gzipped FileDescriptorProto
  738. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x50, 0x4d, 0x4a, 0xc4, 0x30,
  739. 0x18, 0x35, 0xd3, 0xda, 0x9f, 0x6f, 0x35, 0x04, 0xc1, 0x38, 0x6a, 0x29, 0xb3, 0x2a, 0x2e, 0x5a,
  740. 0x46, 0xf7, 0x2e, 0xdc, 0x8d, 0xb8, 0xea, 0xd2, 0x8d, 0xc4, 0x36, 0x4a, 0xa0, 0x26, 0x31, 0x93,
  741. 0x29, 0xd4, 0x93, 0x78, 0x24, 0x57, 0xe2, 0x11, 0xa4, 0x5e, 0x44, 0x92, 0x76, 0x3a, 0x20, 0xb8,
  742. 0xca, 0xfb, 0xc9, 0xf7, 0xe0, 0x3d, 0xb8, 0xa0, 0x4a, 0x15, 0x1b, 0xa6, 0x5b, 0x5e, 0xb1, 0xe2,
  743. 0x85, 0x72, 0x51, 0x34, 0xb2, 0xa2, 0x86, 0x4b, 0x51, 0x50, 0xc5, 0x8b, 0x76, 0x65, 0x9f, 0x5c,
  744. 0x69, 0x69, 0x24, 0x9e, 0xef, 0xac, 0x7c, 0x3c, 0x58, 0x7e, 0x22, 0x88, 0xd7, 0xe2, 0x49, 0x96,
  745. 0x4c, 0x35, 0x1d, 0xc6, 0xe0, 0xd3, 0xba, 0xd6, 0x04, 0xa5, 0x28, 0x8b, 0x4b, 0x87, 0x31, 0x81,
  746. 0xb0, 0x92, 0x5b, 0x61, 0x74, 0x47, 0x66, 0x4e, 0xde, 0x51, 0xbc, 0x80, 0x48, 0x69, 0xd9, 0x72,
  747. 0x51, 0x31, 0xe2, 0x39, 0x6b, 0xe2, 0x36, 0xa9, 0xe2, 0xa6, 0x23, 0xfe, 0x90, 0x64, 0x31, 0x9e,
  748. 0x83, 0xc7, 0x37, 0x8a, 0x1c, 0x3a, 0xc9, 0x42, 0x9b, 0xd0, 0x50, 0xc3, 0xcd, 0xb6, 0x66, 0x24,
  749. 0x48, 0x51, 0x86, 0xca, 0x89, 0xe3, 0x33, 0x88, 0x1b, 0x29, 0x9e, 0x07, 0x33, 0x74, 0xe6, 0x5e,
  750. 0xc0, 0xc7, 0x10, 0xbe, 0x49, 0xc1, 0x1e, 0x78, 0x4d, 0xa2, 0x14, 0x65, 0x5e, 0x19, 0x58, 0xba,
  751. 0xae, 0x97, 0xe7, 0x10, 0x0e, 0x7d, 0x5e, 0xa7, 0x36, 0xb3, 0x7d, 0x9b, 0xcb, 0x5b, 0x88, 0xee,
  752. 0xc6, 0x0d, 0xf0, 0x35, 0xf8, 0xf6, 0x2b, 0x3e, 0xc9, 0xff, 0xce, 0x92, 0x8f, 0x11, 0x8b, 0xd3,
  753. 0xff, 0x2c, 0xd5, 0x74, 0x37, 0x47, 0x1f, 0x7d, 0x82, 0xbe, 0xfa, 0x04, 0x7d, 0xf7, 0x09, 0x7a,
  754. 0xff, 0x49, 0x0e, 0xee, 0x67, 0xed, 0xea, 0x31, 0x70, 0x53, 0x5f, 0xfd, 0x06, 0x00, 0x00, 0xff,
  755. 0xff, 0x51, 0x4f, 0x85, 0x70, 0x98, 0x01, 0x00, 0x00,
  756. }