api.pb.go 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/bbq/video-image/api/grpc/v1/api.proto
  3. package v1
  4. import proto "github.com/gogo/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/gogo/protobuf/gogoproto"
  8. import (
  9. context "golang.org/x/net/context"
  10. grpc "google.golang.org/grpc"
  11. )
  12. import strings "strings"
  13. import reflect "reflect"
  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. type ImgUploadRequest struct {
  25. Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename" form:"filename"`
  26. Dir string `protobuf:"bytes,2,opt,name=dir,proto3" json:"dir" form:"dir"`
  27. File []byte `protobuf:"bytes,3,opt,name=file,proto3" json:"file" form:"file"`
  28. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  29. XXX_unrecognized []byte `json:"-"`
  30. XXX_sizecache int32 `json:"-"`
  31. }
  32. func (m *ImgUploadRequest) Reset() { *m = ImgUploadRequest{} }
  33. func (*ImgUploadRequest) ProtoMessage() {}
  34. func (*ImgUploadRequest) Descriptor() ([]byte, []int) {
  35. return fileDescriptor_api_5b020de07edc31b8, []int{0}
  36. }
  37. func (m *ImgUploadRequest) XXX_Unmarshal(b []byte) error {
  38. return m.Unmarshal(b)
  39. }
  40. func (m *ImgUploadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  41. if deterministic {
  42. return xxx_messageInfo_ImgUploadRequest.Marshal(b, m, deterministic)
  43. } else {
  44. b = b[:cap(b)]
  45. n, err := m.MarshalTo(b)
  46. if err != nil {
  47. return nil, err
  48. }
  49. return b[:n], nil
  50. }
  51. }
  52. func (dst *ImgUploadRequest) XXX_Merge(src proto.Message) {
  53. xxx_messageInfo_ImgUploadRequest.Merge(dst, src)
  54. }
  55. func (m *ImgUploadRequest) XXX_Size() int {
  56. return m.Size()
  57. }
  58. func (m *ImgUploadRequest) XXX_DiscardUnknown() {
  59. xxx_messageInfo_ImgUploadRequest.DiscardUnknown(m)
  60. }
  61. var xxx_messageInfo_ImgUploadRequest proto.InternalMessageInfo
  62. type ImgUploadResponse struct {
  63. Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location" form:"location"`
  64. Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag" form:"etag"`
  65. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  66. XXX_unrecognized []byte `json:"-"`
  67. XXX_sizecache int32 `json:"-"`
  68. }
  69. func (m *ImgUploadResponse) Reset() { *m = ImgUploadResponse{} }
  70. func (*ImgUploadResponse) ProtoMessage() {}
  71. func (*ImgUploadResponse) Descriptor() ([]byte, []int) {
  72. return fileDescriptor_api_5b020de07edc31b8, []int{1}
  73. }
  74. func (m *ImgUploadResponse) XXX_Unmarshal(b []byte) error {
  75. return m.Unmarshal(b)
  76. }
  77. func (m *ImgUploadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  78. if deterministic {
  79. return xxx_messageInfo_ImgUploadResponse.Marshal(b, m, deterministic)
  80. } else {
  81. b = b[:cap(b)]
  82. n, err := m.MarshalTo(b)
  83. if err != nil {
  84. return nil, err
  85. }
  86. return b[:n], nil
  87. }
  88. }
  89. func (dst *ImgUploadResponse) XXX_Merge(src proto.Message) {
  90. xxx_messageInfo_ImgUploadResponse.Merge(dst, src)
  91. }
  92. func (m *ImgUploadResponse) XXX_Size() int {
  93. return m.Size()
  94. }
  95. func (m *ImgUploadResponse) XXX_DiscardUnknown() {
  96. xxx_messageInfo_ImgUploadResponse.DiscardUnknown(m)
  97. }
  98. var xxx_messageInfo_ImgUploadResponse proto.InternalMessageInfo
  99. func init() {
  100. proto.RegisterType((*ImgUploadRequest)(nil), "bbq.service.image.v1.ImgUploadRequest")
  101. proto.RegisterType((*ImgUploadResponse)(nil), "bbq.service.image.v1.ImgUploadResponse")
  102. }
  103. // Reference imports to suppress errors if they are not otherwise used.
  104. var _ context.Context
  105. var _ grpc.ClientConn
  106. // This is a compile-time assertion to ensure that this generated file
  107. // is compatible with the grpc package it is being compiled against.
  108. const _ = grpc.SupportPackageIsVersion4
  109. // VideoImageClient is the client API for VideoImage service.
  110. //
  111. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  112. type VideoImageClient interface {
  113. ImgUpload(ctx context.Context, in *ImgUploadRequest, opts ...grpc.CallOption) (*ImgUploadResponse, error)
  114. }
  115. type videoImageClient struct {
  116. cc *grpc.ClientConn
  117. }
  118. func NewVideoImageClient(cc *grpc.ClientConn) VideoImageClient {
  119. return &videoImageClient{cc}
  120. }
  121. func (c *videoImageClient) ImgUpload(ctx context.Context, in *ImgUploadRequest, opts ...grpc.CallOption) (*ImgUploadResponse, error) {
  122. out := new(ImgUploadResponse)
  123. err := c.cc.Invoke(ctx, "/bbq.service.image.v1.VideoImage/ImgUpload", in, out, opts...)
  124. if err != nil {
  125. return nil, err
  126. }
  127. return out, nil
  128. }
  129. // VideoImageServer is the server API for VideoImage service.
  130. type VideoImageServer interface {
  131. ImgUpload(context.Context, *ImgUploadRequest) (*ImgUploadResponse, error)
  132. }
  133. func RegisterVideoImageServer(s *grpc.Server, srv VideoImageServer) {
  134. s.RegisterService(&_VideoImage_serviceDesc, srv)
  135. }
  136. func _VideoImage_ImgUpload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  137. in := new(ImgUploadRequest)
  138. if err := dec(in); err != nil {
  139. return nil, err
  140. }
  141. if interceptor == nil {
  142. return srv.(VideoImageServer).ImgUpload(ctx, in)
  143. }
  144. info := &grpc.UnaryServerInfo{
  145. Server: srv,
  146. FullMethod: "/bbq.service.image.v1.VideoImage/ImgUpload",
  147. }
  148. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  149. return srv.(VideoImageServer).ImgUpload(ctx, req.(*ImgUploadRequest))
  150. }
  151. return interceptor(ctx, in, info, handler)
  152. }
  153. var _VideoImage_serviceDesc = grpc.ServiceDesc{
  154. ServiceName: "bbq.service.image.v1.VideoImage",
  155. HandlerType: (*VideoImageServer)(nil),
  156. Methods: []grpc.MethodDesc{
  157. {
  158. MethodName: "ImgUpload",
  159. Handler: _VideoImage_ImgUpload_Handler,
  160. },
  161. },
  162. Streams: []grpc.StreamDesc{},
  163. Metadata: "app/service/bbq/video-image/api/grpc/v1/api.proto",
  164. }
  165. func (m *ImgUploadRequest) Marshal() (dAtA []byte, err error) {
  166. size := m.Size()
  167. dAtA = make([]byte, size)
  168. n, err := m.MarshalTo(dAtA)
  169. if err != nil {
  170. return nil, err
  171. }
  172. return dAtA[:n], nil
  173. }
  174. func (m *ImgUploadRequest) MarshalTo(dAtA []byte) (int, error) {
  175. var i int
  176. _ = i
  177. var l int
  178. _ = l
  179. if len(m.Filename) > 0 {
  180. dAtA[i] = 0xa
  181. i++
  182. i = encodeVarintApi(dAtA, i, uint64(len(m.Filename)))
  183. i += copy(dAtA[i:], m.Filename)
  184. }
  185. if len(m.Dir) > 0 {
  186. dAtA[i] = 0x12
  187. i++
  188. i = encodeVarintApi(dAtA, i, uint64(len(m.Dir)))
  189. i += copy(dAtA[i:], m.Dir)
  190. }
  191. if len(m.File) > 0 {
  192. dAtA[i] = 0x1a
  193. i++
  194. i = encodeVarintApi(dAtA, i, uint64(len(m.File)))
  195. i += copy(dAtA[i:], m.File)
  196. }
  197. if m.XXX_unrecognized != nil {
  198. i += copy(dAtA[i:], m.XXX_unrecognized)
  199. }
  200. return i, nil
  201. }
  202. func (m *ImgUploadResponse) Marshal() (dAtA []byte, err error) {
  203. size := m.Size()
  204. dAtA = make([]byte, size)
  205. n, err := m.MarshalTo(dAtA)
  206. if err != nil {
  207. return nil, err
  208. }
  209. return dAtA[:n], nil
  210. }
  211. func (m *ImgUploadResponse) MarshalTo(dAtA []byte) (int, error) {
  212. var i int
  213. _ = i
  214. var l int
  215. _ = l
  216. if len(m.Location) > 0 {
  217. dAtA[i] = 0xa
  218. i++
  219. i = encodeVarintApi(dAtA, i, uint64(len(m.Location)))
  220. i += copy(dAtA[i:], m.Location)
  221. }
  222. if len(m.Etag) > 0 {
  223. dAtA[i] = 0x12
  224. i++
  225. i = encodeVarintApi(dAtA, i, uint64(len(m.Etag)))
  226. i += copy(dAtA[i:], m.Etag)
  227. }
  228. if m.XXX_unrecognized != nil {
  229. i += copy(dAtA[i:], m.XXX_unrecognized)
  230. }
  231. return i, nil
  232. }
  233. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  234. for v >= 1<<7 {
  235. dAtA[offset] = uint8(v&0x7f | 0x80)
  236. v >>= 7
  237. offset++
  238. }
  239. dAtA[offset] = uint8(v)
  240. return offset + 1
  241. }
  242. func (m *ImgUploadRequest) Size() (n int) {
  243. if m == nil {
  244. return 0
  245. }
  246. var l int
  247. _ = l
  248. l = len(m.Filename)
  249. if l > 0 {
  250. n += 1 + l + sovApi(uint64(l))
  251. }
  252. l = len(m.Dir)
  253. if l > 0 {
  254. n += 1 + l + sovApi(uint64(l))
  255. }
  256. l = len(m.File)
  257. if l > 0 {
  258. n += 1 + l + sovApi(uint64(l))
  259. }
  260. if m.XXX_unrecognized != nil {
  261. n += len(m.XXX_unrecognized)
  262. }
  263. return n
  264. }
  265. func (m *ImgUploadResponse) Size() (n int) {
  266. if m == nil {
  267. return 0
  268. }
  269. var l int
  270. _ = l
  271. l = len(m.Location)
  272. if l > 0 {
  273. n += 1 + l + sovApi(uint64(l))
  274. }
  275. l = len(m.Etag)
  276. if l > 0 {
  277. n += 1 + l + sovApi(uint64(l))
  278. }
  279. if m.XXX_unrecognized != nil {
  280. n += len(m.XXX_unrecognized)
  281. }
  282. return n
  283. }
  284. func sovApi(x uint64) (n int) {
  285. for {
  286. n++
  287. x >>= 7
  288. if x == 0 {
  289. break
  290. }
  291. }
  292. return n
  293. }
  294. func sozApi(x uint64) (n int) {
  295. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  296. }
  297. func (this *ImgUploadRequest) String() string {
  298. if this == nil {
  299. return "nil"
  300. }
  301. s := strings.Join([]string{`&ImgUploadRequest{`,
  302. `Filename:` + fmt.Sprintf("%v", this.Filename) + `,`,
  303. `Dir:` + fmt.Sprintf("%v", this.Dir) + `,`,
  304. `File:` + fmt.Sprintf("%v", this.File) + `,`,
  305. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  306. `}`,
  307. }, "")
  308. return s
  309. }
  310. func (this *ImgUploadResponse) String() string {
  311. if this == nil {
  312. return "nil"
  313. }
  314. s := strings.Join([]string{`&ImgUploadResponse{`,
  315. `Location:` + fmt.Sprintf("%v", this.Location) + `,`,
  316. `Etag:` + fmt.Sprintf("%v", this.Etag) + `,`,
  317. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  318. `}`,
  319. }, "")
  320. return s
  321. }
  322. func valueToStringApi(v interface{}) string {
  323. rv := reflect.ValueOf(v)
  324. if rv.IsNil() {
  325. return "nil"
  326. }
  327. pv := reflect.Indirect(rv).Interface()
  328. return fmt.Sprintf("*%v", pv)
  329. }
  330. func (m *ImgUploadRequest) Unmarshal(dAtA []byte) error {
  331. l := len(dAtA)
  332. iNdEx := 0
  333. for iNdEx < l {
  334. preIndex := iNdEx
  335. var wire uint64
  336. for shift := uint(0); ; shift += 7 {
  337. if shift >= 64 {
  338. return ErrIntOverflowApi
  339. }
  340. if iNdEx >= l {
  341. return io.ErrUnexpectedEOF
  342. }
  343. b := dAtA[iNdEx]
  344. iNdEx++
  345. wire |= (uint64(b) & 0x7F) << shift
  346. if b < 0x80 {
  347. break
  348. }
  349. }
  350. fieldNum := int32(wire >> 3)
  351. wireType := int(wire & 0x7)
  352. if wireType == 4 {
  353. return fmt.Errorf("proto: ImgUploadRequest: wiretype end group for non-group")
  354. }
  355. if fieldNum <= 0 {
  356. return fmt.Errorf("proto: ImgUploadRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  357. }
  358. switch fieldNum {
  359. case 1:
  360. if wireType != 2 {
  361. return fmt.Errorf("proto: wrong wireType = %d for field Filename", wireType)
  362. }
  363. var stringLen uint64
  364. for shift := uint(0); ; shift += 7 {
  365. if shift >= 64 {
  366. return ErrIntOverflowApi
  367. }
  368. if iNdEx >= l {
  369. return io.ErrUnexpectedEOF
  370. }
  371. b := dAtA[iNdEx]
  372. iNdEx++
  373. stringLen |= (uint64(b) & 0x7F) << shift
  374. if b < 0x80 {
  375. break
  376. }
  377. }
  378. intStringLen := int(stringLen)
  379. if intStringLen < 0 {
  380. return ErrInvalidLengthApi
  381. }
  382. postIndex := iNdEx + intStringLen
  383. if postIndex > l {
  384. return io.ErrUnexpectedEOF
  385. }
  386. m.Filename = string(dAtA[iNdEx:postIndex])
  387. iNdEx = postIndex
  388. case 2:
  389. if wireType != 2 {
  390. return fmt.Errorf("proto: wrong wireType = %d for field Dir", wireType)
  391. }
  392. var stringLen uint64
  393. for shift := uint(0); ; shift += 7 {
  394. if shift >= 64 {
  395. return ErrIntOverflowApi
  396. }
  397. if iNdEx >= l {
  398. return io.ErrUnexpectedEOF
  399. }
  400. b := dAtA[iNdEx]
  401. iNdEx++
  402. stringLen |= (uint64(b) & 0x7F) << shift
  403. if b < 0x80 {
  404. break
  405. }
  406. }
  407. intStringLen := int(stringLen)
  408. if intStringLen < 0 {
  409. return ErrInvalidLengthApi
  410. }
  411. postIndex := iNdEx + intStringLen
  412. if postIndex > l {
  413. return io.ErrUnexpectedEOF
  414. }
  415. m.Dir = string(dAtA[iNdEx:postIndex])
  416. iNdEx = postIndex
  417. case 3:
  418. if wireType != 2 {
  419. return fmt.Errorf("proto: wrong wireType = %d for field File", wireType)
  420. }
  421. var byteLen int
  422. for shift := uint(0); ; shift += 7 {
  423. if shift >= 64 {
  424. return ErrIntOverflowApi
  425. }
  426. if iNdEx >= l {
  427. return io.ErrUnexpectedEOF
  428. }
  429. b := dAtA[iNdEx]
  430. iNdEx++
  431. byteLen |= (int(b) & 0x7F) << shift
  432. if b < 0x80 {
  433. break
  434. }
  435. }
  436. if byteLen < 0 {
  437. return ErrInvalidLengthApi
  438. }
  439. postIndex := iNdEx + byteLen
  440. if postIndex > l {
  441. return io.ErrUnexpectedEOF
  442. }
  443. m.File = append(m.File[:0], dAtA[iNdEx:postIndex]...)
  444. if m.File == nil {
  445. m.File = []byte{}
  446. }
  447. iNdEx = postIndex
  448. default:
  449. iNdEx = preIndex
  450. skippy, err := skipApi(dAtA[iNdEx:])
  451. if err != nil {
  452. return err
  453. }
  454. if skippy < 0 {
  455. return ErrInvalidLengthApi
  456. }
  457. if (iNdEx + skippy) > l {
  458. return io.ErrUnexpectedEOF
  459. }
  460. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  461. iNdEx += skippy
  462. }
  463. }
  464. if iNdEx > l {
  465. return io.ErrUnexpectedEOF
  466. }
  467. return nil
  468. }
  469. func (m *ImgUploadResponse) Unmarshal(dAtA []byte) error {
  470. l := len(dAtA)
  471. iNdEx := 0
  472. for iNdEx < l {
  473. preIndex := iNdEx
  474. var wire uint64
  475. for shift := uint(0); ; shift += 7 {
  476. if shift >= 64 {
  477. return ErrIntOverflowApi
  478. }
  479. if iNdEx >= l {
  480. return io.ErrUnexpectedEOF
  481. }
  482. b := dAtA[iNdEx]
  483. iNdEx++
  484. wire |= (uint64(b) & 0x7F) << shift
  485. if b < 0x80 {
  486. break
  487. }
  488. }
  489. fieldNum := int32(wire >> 3)
  490. wireType := int(wire & 0x7)
  491. if wireType == 4 {
  492. return fmt.Errorf("proto: ImgUploadResponse: wiretype end group for non-group")
  493. }
  494. if fieldNum <= 0 {
  495. return fmt.Errorf("proto: ImgUploadResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  496. }
  497. switch fieldNum {
  498. case 1:
  499. if wireType != 2 {
  500. return fmt.Errorf("proto: wrong wireType = %d for field Location", wireType)
  501. }
  502. var stringLen uint64
  503. for shift := uint(0); ; shift += 7 {
  504. if shift >= 64 {
  505. return ErrIntOverflowApi
  506. }
  507. if iNdEx >= l {
  508. return io.ErrUnexpectedEOF
  509. }
  510. b := dAtA[iNdEx]
  511. iNdEx++
  512. stringLen |= (uint64(b) & 0x7F) << shift
  513. if b < 0x80 {
  514. break
  515. }
  516. }
  517. intStringLen := int(stringLen)
  518. if intStringLen < 0 {
  519. return ErrInvalidLengthApi
  520. }
  521. postIndex := iNdEx + intStringLen
  522. if postIndex > l {
  523. return io.ErrUnexpectedEOF
  524. }
  525. m.Location = string(dAtA[iNdEx:postIndex])
  526. iNdEx = postIndex
  527. case 2:
  528. if wireType != 2 {
  529. return fmt.Errorf("proto: wrong wireType = %d for field Etag", wireType)
  530. }
  531. var stringLen uint64
  532. for shift := uint(0); ; shift += 7 {
  533. if shift >= 64 {
  534. return ErrIntOverflowApi
  535. }
  536. if iNdEx >= l {
  537. return io.ErrUnexpectedEOF
  538. }
  539. b := dAtA[iNdEx]
  540. iNdEx++
  541. stringLen |= (uint64(b) & 0x7F) << shift
  542. if b < 0x80 {
  543. break
  544. }
  545. }
  546. intStringLen := int(stringLen)
  547. if intStringLen < 0 {
  548. return ErrInvalidLengthApi
  549. }
  550. postIndex := iNdEx + intStringLen
  551. if postIndex > l {
  552. return io.ErrUnexpectedEOF
  553. }
  554. m.Etag = string(dAtA[iNdEx:postIndex])
  555. iNdEx = postIndex
  556. default:
  557. iNdEx = preIndex
  558. skippy, err := skipApi(dAtA[iNdEx:])
  559. if err != nil {
  560. return err
  561. }
  562. if skippy < 0 {
  563. return ErrInvalidLengthApi
  564. }
  565. if (iNdEx + skippy) > l {
  566. return io.ErrUnexpectedEOF
  567. }
  568. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  569. iNdEx += skippy
  570. }
  571. }
  572. if iNdEx > l {
  573. return io.ErrUnexpectedEOF
  574. }
  575. return nil
  576. }
  577. func skipApi(dAtA []byte) (n int, err error) {
  578. l := len(dAtA)
  579. iNdEx := 0
  580. for iNdEx < l {
  581. var wire uint64
  582. for shift := uint(0); ; shift += 7 {
  583. if shift >= 64 {
  584. return 0, ErrIntOverflowApi
  585. }
  586. if iNdEx >= l {
  587. return 0, io.ErrUnexpectedEOF
  588. }
  589. b := dAtA[iNdEx]
  590. iNdEx++
  591. wire |= (uint64(b) & 0x7F) << shift
  592. if b < 0x80 {
  593. break
  594. }
  595. }
  596. wireType := int(wire & 0x7)
  597. switch wireType {
  598. case 0:
  599. for shift := uint(0); ; shift += 7 {
  600. if shift >= 64 {
  601. return 0, ErrIntOverflowApi
  602. }
  603. if iNdEx >= l {
  604. return 0, io.ErrUnexpectedEOF
  605. }
  606. iNdEx++
  607. if dAtA[iNdEx-1] < 0x80 {
  608. break
  609. }
  610. }
  611. return iNdEx, nil
  612. case 1:
  613. iNdEx += 8
  614. return iNdEx, nil
  615. case 2:
  616. var length int
  617. for shift := uint(0); ; shift += 7 {
  618. if shift >= 64 {
  619. return 0, ErrIntOverflowApi
  620. }
  621. if iNdEx >= l {
  622. return 0, io.ErrUnexpectedEOF
  623. }
  624. b := dAtA[iNdEx]
  625. iNdEx++
  626. length |= (int(b) & 0x7F) << shift
  627. if b < 0x80 {
  628. break
  629. }
  630. }
  631. iNdEx += length
  632. if length < 0 {
  633. return 0, ErrInvalidLengthApi
  634. }
  635. return iNdEx, nil
  636. case 3:
  637. for {
  638. var innerWire uint64
  639. var start int = iNdEx
  640. for shift := uint(0); ; shift += 7 {
  641. if shift >= 64 {
  642. return 0, ErrIntOverflowApi
  643. }
  644. if iNdEx >= l {
  645. return 0, io.ErrUnexpectedEOF
  646. }
  647. b := dAtA[iNdEx]
  648. iNdEx++
  649. innerWire |= (uint64(b) & 0x7F) << shift
  650. if b < 0x80 {
  651. break
  652. }
  653. }
  654. innerWireType := int(innerWire & 0x7)
  655. if innerWireType == 4 {
  656. break
  657. }
  658. next, err := skipApi(dAtA[start:])
  659. if err != nil {
  660. return 0, err
  661. }
  662. iNdEx = start + next
  663. }
  664. return iNdEx, nil
  665. case 4:
  666. return iNdEx, nil
  667. case 5:
  668. iNdEx += 4
  669. return iNdEx, nil
  670. default:
  671. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  672. }
  673. }
  674. panic("unreachable")
  675. }
  676. var (
  677. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  678. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  679. )
  680. func init() {
  681. proto.RegisterFile("app/service/bbq/video-image/api/grpc/v1/api.proto", fileDescriptor_api_5b020de07edc31b8)
  682. }
  683. var fileDescriptor_api_5b020de07edc31b8 = []byte{
  684. // 386 bytes of a gzipped FileDescriptorProto
  685. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0x3f, 0x8f, 0xda, 0x30,
  686. 0x18, 0xc6, 0x31, 0xa0, 0x0a, 0xdc, 0x4a, 0x6d, 0xa3, 0x0e, 0x08, 0xa1, 0x18, 0x79, 0x68, 0x91,
  687. 0x2a, 0x6c, 0xa5, 0x6c, 0x1d, 0x51, 0xff, 0x08, 0xa9, 0x53, 0xa4, 0xde, 0x70, 0xba, 0xc5, 0x49,
  688. 0x8c, 0xcf, 0x27, 0x82, 0x43, 0x12, 0x32, 0xdf, 0x57, 0xb8, 0x6f, 0x74, 0x23, 0xe3, 0x8d, 0x37,
  689. 0x59, 0x47, 0x46, 0x46, 0x3e, 0xc1, 0xc9, 0x26, 0x04, 0x74, 0x3a, 0xe9, 0x36, 0xbf, 0xbf, 0xf7,
  690. 0x7d, 0xfd, 0x3e, 0x8f, 0x1e, 0xe8, 0xb1, 0x24, 0xa1, 0x19, 0x4f, 0x0b, 0x19, 0x72, 0x1a, 0x04,
  691. 0x2b, 0x5a, 0xc8, 0x88, 0xab, 0xb1, 0x8c, 0x99, 0xe0, 0x94, 0x25, 0x92, 0x8a, 0x34, 0x09, 0x69,
  692. 0xe1, 0x99, 0x37, 0x49, 0x52, 0x95, 0x2b, 0xe7, 0x4b, 0x10, 0xac, 0x48, 0xb5, 0x42, 0xec, 0x20,
  693. 0x29, 0xbc, 0xfe, 0x58, 0xc8, 0xfc, 0x7a, 0x1d, 0x90, 0x50, 0xc5, 0x54, 0x28, 0xa1, 0xa8, 0x1d,
  694. 0x0e, 0xd6, 0x73, 0x5b, 0xd9, 0xc2, 0xbe, 0x0e, 0x9f, 0xe0, 0x7b, 0x00, 0x3f, 0xcd, 0x62, 0xf1,
  695. 0x3f, 0x59, 0x28, 0x16, 0xf9, 0x7c, 0xb5, 0xe6, 0x59, 0xee, 0xfc, 0x85, 0x9d, 0xb9, 0x5c, 0xf0,
  696. 0x25, 0x8b, 0x79, 0x0f, 0x0c, 0xc1, 0xa8, 0x3b, 0xfd, 0x5e, 0x6a, 0xd4, 0xf9, 0x53, 0xb1, 0x9d,
  697. 0x46, 0x75, 0x7f, 0xaf, 0xd1, 0xc7, 0xb9, 0x4a, 0xe3, 0x9f, 0xf8, 0x48, 0xb0, 0x5f, 0x37, 0x1d,
  698. 0x02, 0x5b, 0x91, 0x4c, 0x7b, 0x4d, 0xfb, 0xc7, 0xa0, 0xd4, 0xa8, 0xf5, 0x4b, 0xa6, 0x3b, 0x8d,
  699. 0x0c, 0xdd, 0x6b, 0x04, 0x0f, 0x9b, 0x91, 0x4c, 0xb1, 0x6f, 0x90, 0x33, 0x81, 0x6d, 0xb3, 0xdb,
  700. 0x6b, 0x0d, 0xc1, 0xe8, 0xc3, 0x14, 0x95, 0x1a, 0xb5, 0xcd, 0xd1, 0x9d, 0x46, 0x96, 0xef, 0x35,
  701. 0x7a, 0x7f, 0x3a, 0x86, 0x7d, 0x0b, 0xf1, 0x1d, 0x80, 0x9f, 0xcf, 0x2c, 0x64, 0x89, 0x5a, 0x66,
  702. 0xdc, 0x78, 0x58, 0xa8, 0x90, 0xe5, 0x52, 0x2d, 0xcf, 0x3d, 0xfc, 0xab, 0x98, 0xf1, 0x70, 0xec,
  703. 0x9f, 0x3c, 0x1c, 0x09, 0xf6, 0xeb, 0xa6, 0xd1, 0xc4, 0x73, 0x26, 0x2a, 0x13, 0x56, 0xd3, 0xef,
  704. 0x9c, 0x09, 0xa3, 0xc9, 0xf0, 0x93, 0x26, 0x53, 0x61, 0xdf, 0xc2, 0x1f, 0x37, 0x10, 0x5e, 0x98,
  705. 0x00, 0x67, 0x26, 0x16, 0xe7, 0x0a, 0x76, 0x6b, 0x81, 0xce, 0x57, 0xf2, 0x5a, 0x6e, 0xe4, 0x65,
  706. 0x08, 0xfd, 0x6f, 0x6f, 0xce, 0x1d, 0x9c, 0x4e, 0x07, 0x9b, 0xad, 0xdb, 0x78, 0xdc, 0xba, 0x8d,
  707. 0xdb, 0xd2, 0x05, 0x9b, 0xd2, 0x05, 0x0f, 0xa5, 0x0b, 0x9e, 0x4a, 0x17, 0x5c, 0x36, 0x0b, 0x2f,
  708. 0x78, 0x67, 0x73, 0x9e, 0x3c, 0x07, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x44, 0xc0, 0x1b, 0x61, 0x02,
  709. 0x00, 0x00,
  710. }