place.pb.go 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/openplatform/ticket-item/api/grpc/v1/place.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 context "golang.org/x/net/context"
  9. import grpc "google.golang.org/grpc"
  10. import io "io"
  11. // Reference imports to suppress errors if they are not otherwise used.
  12. var _ = proto.Marshal
  13. var _ = fmt.Errorf
  14. var _ = math.Inf
  15. // The response message containing the Place info
  16. type PlaceInfo struct {
  17. // 状态
  18. ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  19. // 场地名
  20. Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status"`
  21. // 场地底图
  22. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name"`
  23. // 场馆ID
  24. BasePic string `protobuf:"bytes,4,opt,name=base_pic,json=basePic,proto3" json:"base_pic"`
  25. // mis画框宽度
  26. DWidth int32 `protobuf:"varint,5,opt,name=d_width,json=dWidth,proto3" json:"d_width"`
  27. // mis画框高度
  28. DHeight int32 `protobuf:"varint,6,opt,name=d_height,json=dHeight,proto3" json:"d_height"`
  29. }
  30. func (m *PlaceInfo) Reset() { *m = PlaceInfo{} }
  31. func (m *PlaceInfo) String() string { return proto.CompactTextString(m) }
  32. func (*PlaceInfo) ProtoMessage() {}
  33. func (*PlaceInfo) Descriptor() ([]byte, []int) { return fileDescriptorPlace, []int{0} }
  34. // placeInfo接口请求
  35. type PlaceInfoRequest struct {
  36. // 待修改场地的ID(为0表示创建)
  37. ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"id" validate:"min=0"`
  38. // 状态
  39. Status int32 `protobuf:"varint,2,opt,name=Status,proto3" json:"status" validate:"min=0,max=1"`
  40. // 场地名
  41. Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"name" validate:"max=16"`
  42. // 场地底图
  43. BasePic string `protobuf:"bytes,4,opt,name=BasePic,proto3" json:"base_pic" validate:"max=128"`
  44. // 场馆ID
  45. Venue int64 `protobuf:"varint,5,opt,name=Venue,proto3" json:"venue" validate:"min=1"`
  46. // mis画框宽度
  47. DWidth int32 `protobuf:"varint,6,opt,name=DWidth,proto3" json:"d_width" validate:"min=0"`
  48. // mis画框高度
  49. DHeight int32 `protobuf:"varint,7,opt,name=DHeight,proto3" json:"d_height" validate:"min=0"`
  50. }
  51. func (m *PlaceInfoRequest) Reset() { *m = PlaceInfoRequest{} }
  52. func (m *PlaceInfoRequest) String() string { return proto.CompactTextString(m) }
  53. func (*PlaceInfoRequest) ProtoMessage() {}
  54. func (*PlaceInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptorPlace, []int{1} }
  55. // placeInfo接口返回
  56. type PlaceInfoReply struct {
  57. // 操作结果
  58. Success bool `protobuf:"varint,1,opt,name=Success,proto3" json:"success"`
  59. // 操作场地ID
  60. ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"id"`
  61. }
  62. func (m *PlaceInfoReply) Reset() { *m = PlaceInfoReply{} }
  63. func (m *PlaceInfoReply) String() string { return proto.CompactTextString(m) }
  64. func (*PlaceInfoReply) ProtoMessage() {}
  65. func (*PlaceInfoReply) Descriptor() ([]byte, []int) { return fileDescriptorPlace, []int{2} }
  66. func init() {
  67. proto.RegisterType((*PlaceInfo)(nil), "ticket.service.item.v1.PlaceInfo")
  68. proto.RegisterType((*PlaceInfoRequest)(nil), "ticket.service.item.v1.PlaceInfoRequest")
  69. proto.RegisterType((*PlaceInfoReply)(nil), "ticket.service.item.v1.PlaceInfoReply")
  70. }
  71. // Reference imports to suppress errors if they are not otherwise used.
  72. var _ context.Context
  73. var _ grpc.ClientConn
  74. // This is a compile-time assertion to ensure that this generated file
  75. // is compatible with the grpc package it is being compiled against.
  76. const _ = grpc.SupportPackageIsVersion4
  77. // Client API for Place service
  78. type PlaceClient interface {
  79. PlaceInfo(ctx context.Context, in *PlaceInfoRequest, opts ...grpc.CallOption) (*PlaceInfoReply, error)
  80. }
  81. type placeClient struct {
  82. cc *grpc.ClientConn
  83. }
  84. func NewPlaceClient(cc *grpc.ClientConn) PlaceClient {
  85. return &placeClient{cc}
  86. }
  87. func (c *placeClient) PlaceInfo(ctx context.Context, in *PlaceInfoRequest, opts ...grpc.CallOption) (*PlaceInfoReply, error) {
  88. out := new(PlaceInfoReply)
  89. err := grpc.Invoke(ctx, "/ticket.service.item.v1.Place/PlaceInfo", in, out, c.cc, opts...)
  90. if err != nil {
  91. return nil, err
  92. }
  93. return out, nil
  94. }
  95. // Server API for Place service
  96. type PlaceServer interface {
  97. PlaceInfo(context.Context, *PlaceInfoRequest) (*PlaceInfoReply, error)
  98. }
  99. func RegisterPlaceServer(s *grpc.Server, srv PlaceServer) {
  100. s.RegisterService(&_Place_serviceDesc, srv)
  101. }
  102. func _Place_PlaceInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  103. in := new(PlaceInfoRequest)
  104. if err := dec(in); err != nil {
  105. return nil, err
  106. }
  107. if interceptor == nil {
  108. return srv.(PlaceServer).PlaceInfo(ctx, in)
  109. }
  110. info := &grpc.UnaryServerInfo{
  111. Server: srv,
  112. FullMethod: "/ticket.service.item.v1.Place/PlaceInfo",
  113. }
  114. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  115. return srv.(PlaceServer).PlaceInfo(ctx, req.(*PlaceInfoRequest))
  116. }
  117. return interceptor(ctx, in, info, handler)
  118. }
  119. var _Place_serviceDesc = grpc.ServiceDesc{
  120. ServiceName: "ticket.service.item.v1.Place",
  121. HandlerType: (*PlaceServer)(nil),
  122. Methods: []grpc.MethodDesc{
  123. {
  124. MethodName: "PlaceInfo",
  125. Handler: _Place_PlaceInfo_Handler,
  126. },
  127. },
  128. Streams: []grpc.StreamDesc{},
  129. Metadata: "app/service/openplatform/ticket-item/api/grpc/v1/place.proto",
  130. }
  131. func (m *PlaceInfo) Marshal() (dAtA []byte, err error) {
  132. size := m.Size()
  133. dAtA = make([]byte, size)
  134. n, err := m.MarshalTo(dAtA)
  135. if err != nil {
  136. return nil, err
  137. }
  138. return dAtA[:n], nil
  139. }
  140. func (m *PlaceInfo) MarshalTo(dAtA []byte) (int, error) {
  141. var i int
  142. _ = i
  143. var l int
  144. _ = l
  145. if m.ID != 0 {
  146. dAtA[i] = 0x8
  147. i++
  148. i = encodeVarintPlace(dAtA, i, uint64(m.ID))
  149. }
  150. if m.Status != 0 {
  151. dAtA[i] = 0x10
  152. i++
  153. i = encodeVarintPlace(dAtA, i, uint64(m.Status))
  154. }
  155. if len(m.Name) > 0 {
  156. dAtA[i] = 0x1a
  157. i++
  158. i = encodeVarintPlace(dAtA, i, uint64(len(m.Name)))
  159. i += copy(dAtA[i:], m.Name)
  160. }
  161. if len(m.BasePic) > 0 {
  162. dAtA[i] = 0x22
  163. i++
  164. i = encodeVarintPlace(dAtA, i, uint64(len(m.BasePic)))
  165. i += copy(dAtA[i:], m.BasePic)
  166. }
  167. if m.DWidth != 0 {
  168. dAtA[i] = 0x28
  169. i++
  170. i = encodeVarintPlace(dAtA, i, uint64(m.DWidth))
  171. }
  172. if m.DHeight != 0 {
  173. dAtA[i] = 0x30
  174. i++
  175. i = encodeVarintPlace(dAtA, i, uint64(m.DHeight))
  176. }
  177. return i, nil
  178. }
  179. func (m *PlaceInfoRequest) Marshal() (dAtA []byte, err error) {
  180. size := m.Size()
  181. dAtA = make([]byte, size)
  182. n, err := m.MarshalTo(dAtA)
  183. if err != nil {
  184. return nil, err
  185. }
  186. return dAtA[:n], nil
  187. }
  188. func (m *PlaceInfoRequest) MarshalTo(dAtA []byte) (int, error) {
  189. var i int
  190. _ = i
  191. var l int
  192. _ = l
  193. if m.ID != 0 {
  194. dAtA[i] = 0x8
  195. i++
  196. i = encodeVarintPlace(dAtA, i, uint64(m.ID))
  197. }
  198. if m.Status != 0 {
  199. dAtA[i] = 0x10
  200. i++
  201. i = encodeVarintPlace(dAtA, i, uint64(m.Status))
  202. }
  203. if len(m.Name) > 0 {
  204. dAtA[i] = 0x1a
  205. i++
  206. i = encodeVarintPlace(dAtA, i, uint64(len(m.Name)))
  207. i += copy(dAtA[i:], m.Name)
  208. }
  209. if len(m.BasePic) > 0 {
  210. dAtA[i] = 0x22
  211. i++
  212. i = encodeVarintPlace(dAtA, i, uint64(len(m.BasePic)))
  213. i += copy(dAtA[i:], m.BasePic)
  214. }
  215. if m.Venue != 0 {
  216. dAtA[i] = 0x28
  217. i++
  218. i = encodeVarintPlace(dAtA, i, uint64(m.Venue))
  219. }
  220. if m.DWidth != 0 {
  221. dAtA[i] = 0x30
  222. i++
  223. i = encodeVarintPlace(dAtA, i, uint64(m.DWidth))
  224. }
  225. if m.DHeight != 0 {
  226. dAtA[i] = 0x38
  227. i++
  228. i = encodeVarintPlace(dAtA, i, uint64(m.DHeight))
  229. }
  230. return i, nil
  231. }
  232. func (m *PlaceInfoReply) 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 *PlaceInfoReply) MarshalTo(dAtA []byte) (int, error) {
  242. var i int
  243. _ = i
  244. var l int
  245. _ = l
  246. if m.Success {
  247. dAtA[i] = 0x8
  248. i++
  249. if m.Success {
  250. dAtA[i] = 1
  251. } else {
  252. dAtA[i] = 0
  253. }
  254. i++
  255. }
  256. if m.ID != 0 {
  257. dAtA[i] = 0x10
  258. i++
  259. i = encodeVarintPlace(dAtA, i, uint64(m.ID))
  260. }
  261. return i, nil
  262. }
  263. func encodeVarintPlace(dAtA []byte, offset int, v uint64) int {
  264. for v >= 1<<7 {
  265. dAtA[offset] = uint8(v&0x7f | 0x80)
  266. v >>= 7
  267. offset++
  268. }
  269. dAtA[offset] = uint8(v)
  270. return offset + 1
  271. }
  272. func (m *PlaceInfo) Size() (n int) {
  273. var l int
  274. _ = l
  275. if m.ID != 0 {
  276. n += 1 + sovPlace(uint64(m.ID))
  277. }
  278. if m.Status != 0 {
  279. n += 1 + sovPlace(uint64(m.Status))
  280. }
  281. l = len(m.Name)
  282. if l > 0 {
  283. n += 1 + l + sovPlace(uint64(l))
  284. }
  285. l = len(m.BasePic)
  286. if l > 0 {
  287. n += 1 + l + sovPlace(uint64(l))
  288. }
  289. if m.DWidth != 0 {
  290. n += 1 + sovPlace(uint64(m.DWidth))
  291. }
  292. if m.DHeight != 0 {
  293. n += 1 + sovPlace(uint64(m.DHeight))
  294. }
  295. return n
  296. }
  297. func (m *PlaceInfoRequest) Size() (n int) {
  298. var l int
  299. _ = l
  300. if m.ID != 0 {
  301. n += 1 + sovPlace(uint64(m.ID))
  302. }
  303. if m.Status != 0 {
  304. n += 1 + sovPlace(uint64(m.Status))
  305. }
  306. l = len(m.Name)
  307. if l > 0 {
  308. n += 1 + l + sovPlace(uint64(l))
  309. }
  310. l = len(m.BasePic)
  311. if l > 0 {
  312. n += 1 + l + sovPlace(uint64(l))
  313. }
  314. if m.Venue != 0 {
  315. n += 1 + sovPlace(uint64(m.Venue))
  316. }
  317. if m.DWidth != 0 {
  318. n += 1 + sovPlace(uint64(m.DWidth))
  319. }
  320. if m.DHeight != 0 {
  321. n += 1 + sovPlace(uint64(m.DHeight))
  322. }
  323. return n
  324. }
  325. func (m *PlaceInfoReply) Size() (n int) {
  326. var l int
  327. _ = l
  328. if m.Success {
  329. n += 2
  330. }
  331. if m.ID != 0 {
  332. n += 1 + sovPlace(uint64(m.ID))
  333. }
  334. return n
  335. }
  336. func sovPlace(x uint64) (n int) {
  337. for {
  338. n++
  339. x >>= 7
  340. if x == 0 {
  341. break
  342. }
  343. }
  344. return n
  345. }
  346. func sozPlace(x uint64) (n int) {
  347. return sovPlace(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  348. }
  349. func (m *PlaceInfo) Unmarshal(dAtA []byte) error {
  350. l := len(dAtA)
  351. iNdEx := 0
  352. for iNdEx < l {
  353. preIndex := iNdEx
  354. var wire uint64
  355. for shift := uint(0); ; shift += 7 {
  356. if shift >= 64 {
  357. return ErrIntOverflowPlace
  358. }
  359. if iNdEx >= l {
  360. return io.ErrUnexpectedEOF
  361. }
  362. b := dAtA[iNdEx]
  363. iNdEx++
  364. wire |= (uint64(b) & 0x7F) << shift
  365. if b < 0x80 {
  366. break
  367. }
  368. }
  369. fieldNum := int32(wire >> 3)
  370. wireType := int(wire & 0x7)
  371. if wireType == 4 {
  372. return fmt.Errorf("proto: PlaceInfo: wiretype end group for non-group")
  373. }
  374. if fieldNum <= 0 {
  375. return fmt.Errorf("proto: PlaceInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  376. }
  377. switch fieldNum {
  378. case 1:
  379. if wireType != 0 {
  380. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  381. }
  382. m.ID = 0
  383. for shift := uint(0); ; shift += 7 {
  384. if shift >= 64 {
  385. return ErrIntOverflowPlace
  386. }
  387. if iNdEx >= l {
  388. return io.ErrUnexpectedEOF
  389. }
  390. b := dAtA[iNdEx]
  391. iNdEx++
  392. m.ID |= (int64(b) & 0x7F) << shift
  393. if b < 0x80 {
  394. break
  395. }
  396. }
  397. case 2:
  398. if wireType != 0 {
  399. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  400. }
  401. m.Status = 0
  402. for shift := uint(0); ; shift += 7 {
  403. if shift >= 64 {
  404. return ErrIntOverflowPlace
  405. }
  406. if iNdEx >= l {
  407. return io.ErrUnexpectedEOF
  408. }
  409. b := dAtA[iNdEx]
  410. iNdEx++
  411. m.Status |= (int32(b) & 0x7F) << shift
  412. if b < 0x80 {
  413. break
  414. }
  415. }
  416. case 3:
  417. if wireType != 2 {
  418. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  419. }
  420. var stringLen uint64
  421. for shift := uint(0); ; shift += 7 {
  422. if shift >= 64 {
  423. return ErrIntOverflowPlace
  424. }
  425. if iNdEx >= l {
  426. return io.ErrUnexpectedEOF
  427. }
  428. b := dAtA[iNdEx]
  429. iNdEx++
  430. stringLen |= (uint64(b) & 0x7F) << shift
  431. if b < 0x80 {
  432. break
  433. }
  434. }
  435. intStringLen := int(stringLen)
  436. if intStringLen < 0 {
  437. return ErrInvalidLengthPlace
  438. }
  439. postIndex := iNdEx + intStringLen
  440. if postIndex > l {
  441. return io.ErrUnexpectedEOF
  442. }
  443. m.Name = string(dAtA[iNdEx:postIndex])
  444. iNdEx = postIndex
  445. case 4:
  446. if wireType != 2 {
  447. return fmt.Errorf("proto: wrong wireType = %d for field BasePic", wireType)
  448. }
  449. var stringLen uint64
  450. for shift := uint(0); ; shift += 7 {
  451. if shift >= 64 {
  452. return ErrIntOverflowPlace
  453. }
  454. if iNdEx >= l {
  455. return io.ErrUnexpectedEOF
  456. }
  457. b := dAtA[iNdEx]
  458. iNdEx++
  459. stringLen |= (uint64(b) & 0x7F) << shift
  460. if b < 0x80 {
  461. break
  462. }
  463. }
  464. intStringLen := int(stringLen)
  465. if intStringLen < 0 {
  466. return ErrInvalidLengthPlace
  467. }
  468. postIndex := iNdEx + intStringLen
  469. if postIndex > l {
  470. return io.ErrUnexpectedEOF
  471. }
  472. m.BasePic = string(dAtA[iNdEx:postIndex])
  473. iNdEx = postIndex
  474. case 5:
  475. if wireType != 0 {
  476. return fmt.Errorf("proto: wrong wireType = %d for field DWidth", wireType)
  477. }
  478. m.DWidth = 0
  479. for shift := uint(0); ; shift += 7 {
  480. if shift >= 64 {
  481. return ErrIntOverflowPlace
  482. }
  483. if iNdEx >= l {
  484. return io.ErrUnexpectedEOF
  485. }
  486. b := dAtA[iNdEx]
  487. iNdEx++
  488. m.DWidth |= (int32(b) & 0x7F) << shift
  489. if b < 0x80 {
  490. break
  491. }
  492. }
  493. case 6:
  494. if wireType != 0 {
  495. return fmt.Errorf("proto: wrong wireType = %d for field DHeight", wireType)
  496. }
  497. m.DHeight = 0
  498. for shift := uint(0); ; shift += 7 {
  499. if shift >= 64 {
  500. return ErrIntOverflowPlace
  501. }
  502. if iNdEx >= l {
  503. return io.ErrUnexpectedEOF
  504. }
  505. b := dAtA[iNdEx]
  506. iNdEx++
  507. m.DHeight |= (int32(b) & 0x7F) << shift
  508. if b < 0x80 {
  509. break
  510. }
  511. }
  512. default:
  513. iNdEx = preIndex
  514. skippy, err := skipPlace(dAtA[iNdEx:])
  515. if err != nil {
  516. return err
  517. }
  518. if skippy < 0 {
  519. return ErrInvalidLengthPlace
  520. }
  521. if (iNdEx + skippy) > l {
  522. return io.ErrUnexpectedEOF
  523. }
  524. iNdEx += skippy
  525. }
  526. }
  527. if iNdEx > l {
  528. return io.ErrUnexpectedEOF
  529. }
  530. return nil
  531. }
  532. func (m *PlaceInfoRequest) Unmarshal(dAtA []byte) error {
  533. l := len(dAtA)
  534. iNdEx := 0
  535. for iNdEx < l {
  536. preIndex := iNdEx
  537. var wire uint64
  538. for shift := uint(0); ; shift += 7 {
  539. if shift >= 64 {
  540. return ErrIntOverflowPlace
  541. }
  542. if iNdEx >= l {
  543. return io.ErrUnexpectedEOF
  544. }
  545. b := dAtA[iNdEx]
  546. iNdEx++
  547. wire |= (uint64(b) & 0x7F) << shift
  548. if b < 0x80 {
  549. break
  550. }
  551. }
  552. fieldNum := int32(wire >> 3)
  553. wireType := int(wire & 0x7)
  554. if wireType == 4 {
  555. return fmt.Errorf("proto: PlaceInfoRequest: wiretype end group for non-group")
  556. }
  557. if fieldNum <= 0 {
  558. return fmt.Errorf("proto: PlaceInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  559. }
  560. switch fieldNum {
  561. case 1:
  562. if wireType != 0 {
  563. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  564. }
  565. m.ID = 0
  566. for shift := uint(0); ; shift += 7 {
  567. if shift >= 64 {
  568. return ErrIntOverflowPlace
  569. }
  570. if iNdEx >= l {
  571. return io.ErrUnexpectedEOF
  572. }
  573. b := dAtA[iNdEx]
  574. iNdEx++
  575. m.ID |= (int64(b) & 0x7F) << shift
  576. if b < 0x80 {
  577. break
  578. }
  579. }
  580. case 2:
  581. if wireType != 0 {
  582. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  583. }
  584. m.Status = 0
  585. for shift := uint(0); ; shift += 7 {
  586. if shift >= 64 {
  587. return ErrIntOverflowPlace
  588. }
  589. if iNdEx >= l {
  590. return io.ErrUnexpectedEOF
  591. }
  592. b := dAtA[iNdEx]
  593. iNdEx++
  594. m.Status |= (int32(b) & 0x7F) << shift
  595. if b < 0x80 {
  596. break
  597. }
  598. }
  599. case 3:
  600. if wireType != 2 {
  601. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  602. }
  603. var stringLen uint64
  604. for shift := uint(0); ; shift += 7 {
  605. if shift >= 64 {
  606. return ErrIntOverflowPlace
  607. }
  608. if iNdEx >= l {
  609. return io.ErrUnexpectedEOF
  610. }
  611. b := dAtA[iNdEx]
  612. iNdEx++
  613. stringLen |= (uint64(b) & 0x7F) << shift
  614. if b < 0x80 {
  615. break
  616. }
  617. }
  618. intStringLen := int(stringLen)
  619. if intStringLen < 0 {
  620. return ErrInvalidLengthPlace
  621. }
  622. postIndex := iNdEx + intStringLen
  623. if postIndex > l {
  624. return io.ErrUnexpectedEOF
  625. }
  626. m.Name = string(dAtA[iNdEx:postIndex])
  627. iNdEx = postIndex
  628. case 4:
  629. if wireType != 2 {
  630. return fmt.Errorf("proto: wrong wireType = %d for field BasePic", wireType)
  631. }
  632. var stringLen uint64
  633. for shift := uint(0); ; shift += 7 {
  634. if shift >= 64 {
  635. return ErrIntOverflowPlace
  636. }
  637. if iNdEx >= l {
  638. return io.ErrUnexpectedEOF
  639. }
  640. b := dAtA[iNdEx]
  641. iNdEx++
  642. stringLen |= (uint64(b) & 0x7F) << shift
  643. if b < 0x80 {
  644. break
  645. }
  646. }
  647. intStringLen := int(stringLen)
  648. if intStringLen < 0 {
  649. return ErrInvalidLengthPlace
  650. }
  651. postIndex := iNdEx + intStringLen
  652. if postIndex > l {
  653. return io.ErrUnexpectedEOF
  654. }
  655. m.BasePic = string(dAtA[iNdEx:postIndex])
  656. iNdEx = postIndex
  657. case 5:
  658. if wireType != 0 {
  659. return fmt.Errorf("proto: wrong wireType = %d for field Venue", wireType)
  660. }
  661. m.Venue = 0
  662. for shift := uint(0); ; shift += 7 {
  663. if shift >= 64 {
  664. return ErrIntOverflowPlace
  665. }
  666. if iNdEx >= l {
  667. return io.ErrUnexpectedEOF
  668. }
  669. b := dAtA[iNdEx]
  670. iNdEx++
  671. m.Venue |= (int64(b) & 0x7F) << shift
  672. if b < 0x80 {
  673. break
  674. }
  675. }
  676. case 6:
  677. if wireType != 0 {
  678. return fmt.Errorf("proto: wrong wireType = %d for field DWidth", wireType)
  679. }
  680. m.DWidth = 0
  681. for shift := uint(0); ; shift += 7 {
  682. if shift >= 64 {
  683. return ErrIntOverflowPlace
  684. }
  685. if iNdEx >= l {
  686. return io.ErrUnexpectedEOF
  687. }
  688. b := dAtA[iNdEx]
  689. iNdEx++
  690. m.DWidth |= (int32(b) & 0x7F) << shift
  691. if b < 0x80 {
  692. break
  693. }
  694. }
  695. case 7:
  696. if wireType != 0 {
  697. return fmt.Errorf("proto: wrong wireType = %d for field DHeight", wireType)
  698. }
  699. m.DHeight = 0
  700. for shift := uint(0); ; shift += 7 {
  701. if shift >= 64 {
  702. return ErrIntOverflowPlace
  703. }
  704. if iNdEx >= l {
  705. return io.ErrUnexpectedEOF
  706. }
  707. b := dAtA[iNdEx]
  708. iNdEx++
  709. m.DHeight |= (int32(b) & 0x7F) << shift
  710. if b < 0x80 {
  711. break
  712. }
  713. }
  714. default:
  715. iNdEx = preIndex
  716. skippy, err := skipPlace(dAtA[iNdEx:])
  717. if err != nil {
  718. return err
  719. }
  720. if skippy < 0 {
  721. return ErrInvalidLengthPlace
  722. }
  723. if (iNdEx + skippy) > l {
  724. return io.ErrUnexpectedEOF
  725. }
  726. iNdEx += skippy
  727. }
  728. }
  729. if iNdEx > l {
  730. return io.ErrUnexpectedEOF
  731. }
  732. return nil
  733. }
  734. func (m *PlaceInfoReply) Unmarshal(dAtA []byte) error {
  735. l := len(dAtA)
  736. iNdEx := 0
  737. for iNdEx < l {
  738. preIndex := iNdEx
  739. var wire uint64
  740. for shift := uint(0); ; shift += 7 {
  741. if shift >= 64 {
  742. return ErrIntOverflowPlace
  743. }
  744. if iNdEx >= l {
  745. return io.ErrUnexpectedEOF
  746. }
  747. b := dAtA[iNdEx]
  748. iNdEx++
  749. wire |= (uint64(b) & 0x7F) << shift
  750. if b < 0x80 {
  751. break
  752. }
  753. }
  754. fieldNum := int32(wire >> 3)
  755. wireType := int(wire & 0x7)
  756. if wireType == 4 {
  757. return fmt.Errorf("proto: PlaceInfoReply: wiretype end group for non-group")
  758. }
  759. if fieldNum <= 0 {
  760. return fmt.Errorf("proto: PlaceInfoReply: illegal tag %d (wire type %d)", fieldNum, wire)
  761. }
  762. switch fieldNum {
  763. case 1:
  764. if wireType != 0 {
  765. return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
  766. }
  767. var v int
  768. for shift := uint(0); ; shift += 7 {
  769. if shift >= 64 {
  770. return ErrIntOverflowPlace
  771. }
  772. if iNdEx >= l {
  773. return io.ErrUnexpectedEOF
  774. }
  775. b := dAtA[iNdEx]
  776. iNdEx++
  777. v |= (int(b) & 0x7F) << shift
  778. if b < 0x80 {
  779. break
  780. }
  781. }
  782. m.Success = bool(v != 0)
  783. case 2:
  784. if wireType != 0 {
  785. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  786. }
  787. m.ID = 0
  788. for shift := uint(0); ; shift += 7 {
  789. if shift >= 64 {
  790. return ErrIntOverflowPlace
  791. }
  792. if iNdEx >= l {
  793. return io.ErrUnexpectedEOF
  794. }
  795. b := dAtA[iNdEx]
  796. iNdEx++
  797. m.ID |= (int64(b) & 0x7F) << shift
  798. if b < 0x80 {
  799. break
  800. }
  801. }
  802. default:
  803. iNdEx = preIndex
  804. skippy, err := skipPlace(dAtA[iNdEx:])
  805. if err != nil {
  806. return err
  807. }
  808. if skippy < 0 {
  809. return ErrInvalidLengthPlace
  810. }
  811. if (iNdEx + skippy) > l {
  812. return io.ErrUnexpectedEOF
  813. }
  814. iNdEx += skippy
  815. }
  816. }
  817. if iNdEx > l {
  818. return io.ErrUnexpectedEOF
  819. }
  820. return nil
  821. }
  822. func skipPlace(dAtA []byte) (n int, err error) {
  823. l := len(dAtA)
  824. iNdEx := 0
  825. for iNdEx < l {
  826. var wire uint64
  827. for shift := uint(0); ; shift += 7 {
  828. if shift >= 64 {
  829. return 0, ErrIntOverflowPlace
  830. }
  831. if iNdEx >= l {
  832. return 0, io.ErrUnexpectedEOF
  833. }
  834. b := dAtA[iNdEx]
  835. iNdEx++
  836. wire |= (uint64(b) & 0x7F) << shift
  837. if b < 0x80 {
  838. break
  839. }
  840. }
  841. wireType := int(wire & 0x7)
  842. switch wireType {
  843. case 0:
  844. for shift := uint(0); ; shift += 7 {
  845. if shift >= 64 {
  846. return 0, ErrIntOverflowPlace
  847. }
  848. if iNdEx >= l {
  849. return 0, io.ErrUnexpectedEOF
  850. }
  851. iNdEx++
  852. if dAtA[iNdEx-1] < 0x80 {
  853. break
  854. }
  855. }
  856. return iNdEx, nil
  857. case 1:
  858. iNdEx += 8
  859. return iNdEx, nil
  860. case 2:
  861. var length int
  862. for shift := uint(0); ; shift += 7 {
  863. if shift >= 64 {
  864. return 0, ErrIntOverflowPlace
  865. }
  866. if iNdEx >= l {
  867. return 0, io.ErrUnexpectedEOF
  868. }
  869. b := dAtA[iNdEx]
  870. iNdEx++
  871. length |= (int(b) & 0x7F) << shift
  872. if b < 0x80 {
  873. break
  874. }
  875. }
  876. iNdEx += length
  877. if length < 0 {
  878. return 0, ErrInvalidLengthPlace
  879. }
  880. return iNdEx, nil
  881. case 3:
  882. for {
  883. var innerWire uint64
  884. var start int = iNdEx
  885. for shift := uint(0); ; shift += 7 {
  886. if shift >= 64 {
  887. return 0, ErrIntOverflowPlace
  888. }
  889. if iNdEx >= l {
  890. return 0, io.ErrUnexpectedEOF
  891. }
  892. b := dAtA[iNdEx]
  893. iNdEx++
  894. innerWire |= (uint64(b) & 0x7F) << shift
  895. if b < 0x80 {
  896. break
  897. }
  898. }
  899. innerWireType := int(innerWire & 0x7)
  900. if innerWireType == 4 {
  901. break
  902. }
  903. next, err := skipPlace(dAtA[start:])
  904. if err != nil {
  905. return 0, err
  906. }
  907. iNdEx = start + next
  908. }
  909. return iNdEx, nil
  910. case 4:
  911. return iNdEx, nil
  912. case 5:
  913. iNdEx += 4
  914. return iNdEx, nil
  915. default:
  916. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  917. }
  918. }
  919. panic("unreachable")
  920. }
  921. var (
  922. ErrInvalidLengthPlace = fmt.Errorf("proto: negative length found during unmarshaling")
  923. ErrIntOverflowPlace = fmt.Errorf("proto: integer overflow")
  924. )
  925. func init() {
  926. proto.RegisterFile("app/service/openplatform/ticket-item/api/grpc/v1/place.proto", fileDescriptorPlace)
  927. }
  928. var fileDescriptorPlace = []byte{
  929. // 560 bytes of a gzipped FileDescriptorProto
  930. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x41, 0x6f, 0xd3, 0x3e,
  931. 0x1c, 0x6d, 0xd2, 0x36, 0xe9, 0xfc, 0x9f, 0xfe, 0x1a, 0x3e, 0x54, 0x51, 0x35, 0xea, 0xca, 0x1a,
  932. 0x50, 0x21, 0x96, 0x90, 0x4d, 0x02, 0x34, 0x75, 0x97, 0x2a, 0x07, 0x7a, 0x81, 0xc9, 0x93, 0x40,
  933. 0xe2, 0x52, 0xa5, 0x89, 0xdb, 0x5a, 0x34, 0x8d, 0x69, 0x9c, 0xc0, 0x3e, 0x09, 0x5f, 0x69, 0xc7,
  934. 0x7d, 0x82, 0x88, 0x95, 0x5b, 0x8f, 0xfd, 0x04, 0x28, 0x4e, 0xb2, 0x45, 0xa5, 0x07, 0x2e, 0xb1,
  935. 0xfd, 0xcb, 0x7b, 0xcf, 0x7a, 0xef, 0xf7, 0x33, 0x18, 0xb8, 0x9c, 0x5b, 0x11, 0x5d, 0x25, 0xcc,
  936. 0xa3, 0x56, 0xc8, 0xe9, 0x92, 0x2f, 0x5c, 0x31, 0x0d, 0x57, 0x81, 0x25, 0x98, 0xf7, 0x95, 0x8a,
  937. 0x53, 0x26, 0x68, 0x60, 0xb9, 0x9c, 0x59, 0xb3, 0x15, 0xf7, 0xac, 0xc4, 0xb6, 0xf8, 0xc2, 0xf5,
  938. 0xa8, 0xc9, 0x57, 0xa1, 0x08, 0x61, 0x3b, 0x07, 0x99, 0x85, 0x80, 0x99, 0x81, 0xcd, 0xc4, 0xee,
  939. 0x9c, 0xce, 0x98, 0x98, 0xc7, 0x13, 0xd3, 0x0b, 0x03, 0x6b, 0x16, 0xce, 0x42, 0x4b, 0xc2, 0x27,
  940. 0xf1, 0x54, 0x9e, 0xe4, 0x41, 0xee, 0x72, 0x19, 0xfc, 0x5b, 0x01, 0x07, 0x57, 0x99, 0xec, 0x68,
  941. 0x39, 0x0d, 0xe1, 0x31, 0x50, 0x99, 0x6f, 0x28, 0x3d, 0xa5, 0x5f, 0x1f, 0x1e, 0xae, 0x53, 0xa4,
  942. 0x8e, 0x9c, 0x4d, 0x8a, 0x54, 0xe6, 0x13, 0x95, 0xf9, 0x10, 0x03, 0x2d, 0x12, 0xae, 0x88, 0x23,
  943. 0x43, 0xed, 0x29, 0xfd, 0xe6, 0x10, 0x6c, 0x52, 0x54, 0x54, 0x48, 0xb1, 0xc2, 0x63, 0xd0, 0x58,
  944. 0xba, 0x01, 0x35, 0xea, 0x3d, 0xa5, 0x7f, 0x30, 0x6c, 0x6d, 0x52, 0x24, 0xcf, 0x44, 0x7e, 0xe1,
  945. 0x0b, 0xd0, 0x9a, 0xb8, 0x11, 0x1d, 0x73, 0xe6, 0x19, 0x0d, 0x89, 0x38, 0xdc, 0xa4, 0xe8, 0xa1,
  946. 0x46, 0xf4, 0x6c, 0x77, 0xc5, 0x3c, 0x78, 0x02, 0x74, 0x7f, 0xfc, 0x9d, 0xf9, 0x62, 0x6e, 0x34,
  947. 0xe5, 0x5d, 0xff, 0x6d, 0x52, 0x54, 0x96, 0x88, 0xe6, 0x7f, 0xce, 0xd6, 0x4c, 0xce, 0x1f, 0xcf,
  948. 0x29, 0x9b, 0xcd, 0x85, 0xa1, 0x49, 0x98, 0x94, 0x2b, 0x6b, 0x44, 0xf7, 0xdf, 0xcb, 0x0d, 0xfe,
  949. 0x59, 0x07, 0x47, 0x0f, 0x2e, 0x09, 0xfd, 0x16, 0xd3, 0x48, 0xc0, 0x97, 0x40, 0x1d, 0x39, 0x85,
  950. 0xd9, 0x4e, 0x6e, 0x73, 0x9b, 0xa2, 0xa3, 0xc4, 0x5d, 0x30, 0xdf, 0x15, 0xf4, 0x02, 0x07, 0x6c,
  951. 0x79, 0xf9, 0x1a, 0x13, 0x75, 0xe4, 0xc0, 0x01, 0xd0, 0xae, 0xab, 0xd6, 0x4f, 0x1e, 0xad, 0x6f,
  952. 0x53, 0xd4, 0xde, 0xe1, 0xbc, 0x0a, 0xdc, 0x1f, 0x97, 0x36, 0x26, 0x05, 0x07, 0xda, 0xa0, 0xf1,
  953. 0xe1, 0x31, 0x94, 0xa7, 0x65, 0x28, 0xdb, 0x14, 0x3d, 0xa9, 0x30, 0x33, 0xce, 0x1b, 0x4c, 0x24,
  954. 0x14, 0x0e, 0x80, 0x3e, 0xcc, 0xb3, 0x28, 0x82, 0xc2, 0xd5, 0xa0, 0xb6, 0x29, 0x82, 0x3b, 0xcc,
  955. 0xb3, 0x77, 0x98, 0x94, 0x14, 0x78, 0x0e, 0x9a, 0x9f, 0xe8, 0x32, 0xa6, 0x32, 0xbc, 0xba, 0xbc,
  956. 0xb1, 0x99, 0x64, 0x85, 0xbf, 0x0d, 0xda, 0x98, 0xe4, 0x58, 0xf8, 0x16, 0x68, 0x8e, 0xcc, 0xb5,
  957. 0xc8, 0x12, 0x55, 0x22, 0xdf, 0x1b, 0x4c, 0x01, 0x87, 0x17, 0x40, 0x77, 0xf2, 0xa0, 0x0d, 0x5d,
  958. 0x32, 0x7b, 0xd5, 0x2e, 0xec, 0xa5, 0x96, 0x04, 0xfc, 0x11, 0xfc, 0x5f, 0x69, 0x0c, 0x5f, 0xdc,
  959. 0xc0, 0x67, 0x40, 0xbf, 0x8e, 0x3d, 0x8f, 0x46, 0x91, 0xec, 0x4d, 0x2b, 0x6f, 0x7d, 0x94, 0x97,
  960. 0x48, 0xf9, 0x0f, 0xb6, 0x65, 0xf7, 0x54, 0xe9, 0x4f, 0x2b, 0x87, 0x74, 0xe4, 0x9c, 0xcd, 0x41,
  961. 0x53, 0x0a, 0xc2, 0x71, 0x75, 0xb0, 0xfb, 0xe6, 0xfe, 0xe7, 0x62, 0xee, 0x4e, 0x45, 0xe7, 0xf9,
  962. 0x3f, 0x20, 0xf9, 0xe2, 0x06, 0xd7, 0x86, 0xc6, 0xed, 0x7d, 0xb7, 0x76, 0x77, 0xdf, 0xad, 0xdd,
  963. 0xae, 0xbb, 0xca, 0xdd, 0xba, 0xab, 0xfc, 0x5a, 0x77, 0x95, 0x2f, 0x6a, 0x62, 0x4f, 0x34, 0xf9,
  964. 0xb6, 0xce, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x92, 0x2d, 0x3c, 0x4a, 0xe2, 0x03, 0x00, 0x00,
  965. }