bvc.pb.go 26 KB

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