12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076 |
- // Code generated by protoc-gen-gogo. DO NOT EDIT.
- // source: app/service/bbq/video/model/grpc/bvc.proto
- /*
- Package grpc is a generated protocol buffer package.
- It is generated from these files:
- app/service/bbq/video/model/grpc/bvc.proto
- It has these top-level messages:
- RequestMsg
- VideoKeyItem
- ResponseMsg
- */
- package grpc
- import proto "github.com/gogo/protobuf/proto"
- import fmt "fmt"
- import math "math"
- import _ "github.com/gogo/protobuf/gogoproto"
- import context "golang.org/x/net/context"
- import grpc1 "google.golang.org/grpc"
- import strings "strings"
- import reflect "reflect"
- import sortkeys "github.com/gogo/protobuf/sortkeys"
- import io "io"
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
- type RequestMsg struct {
- Keys []string `protobuf:"bytes,1,rep,name=keys" json:"keys,omitempty"`
- Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"`
- UIP string `protobuf:"bytes,3,opt,name=uip,proto3" json:"uip,omitempty"`
- Uiplong uint32 `protobuf:"varint,4,opt,name=uiplong,proto3" json:"uiplong,omitempty"`
- Backup uint32 `protobuf:"varint,5,opt,name=backup,proto3" json:"backup,omitempty"`
- UUID string `protobuf:"bytes,6,opt,name=uuid,proto3" json:"uuid,omitempty"`
- }
- func (m *RequestMsg) Reset() { *m = RequestMsg{} }
- func (*RequestMsg) ProtoMessage() {}
- func (*RequestMsg) Descriptor() ([]byte, []int) { return fileDescriptorBvc, []int{0} }
- type VideoKeyItem struct {
- Etime uint32 `protobuf:"varint,1,opt,name=etime,proto3" json:"etime,omitempty"`
- URL []string `protobuf:"bytes,2,rep,name=url" json:"url,omitempty"`
- }
- func (m *VideoKeyItem) Reset() { *m = VideoKeyItem{} }
- func (*VideoKeyItem) ProtoMessage() {}
- func (*VideoKeyItem) Descriptor() ([]byte, []int) { return fileDescriptorBvc, []int{1} }
- type ResponseMsg struct {
- Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
- 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"`
- }
- func (m *ResponseMsg) Reset() { *m = ResponseMsg{} }
- func (*ResponseMsg) ProtoMessage() {}
- func (*ResponseMsg) Descriptor() ([]byte, []int) { return fileDescriptorBvc, []int{2} }
- func init() {
- proto.RegisterType((*RequestMsg)(nil), "video.vod.playurlbbq.RequestMsg")
- proto.RegisterType((*VideoKeyItem)(nil), "video.vod.playurlbbq.VideoKeyItem")
- proto.RegisterType((*ResponseMsg)(nil), "video.vod.playurlbbq.ResponseMsg")
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc1.ClientConn
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc1.SupportPackageIsVersion4
- // Client API for PlayurlService service
- type PlayurlServiceClient interface {
- ProtobufPlayurl(ctx context.Context, in *RequestMsg, opts ...grpc1.CallOption) (*ResponseMsg, error)
- }
- type playurlServiceClient struct {
- cc *grpc1.ClientConn
- }
- func NewPlayurlServiceClient(cc *grpc1.ClientConn) PlayurlServiceClient {
- return &playurlServiceClient{cc}
- }
- func (c *playurlServiceClient) ProtobufPlayurl(ctx context.Context, in *RequestMsg, opts ...grpc1.CallOption) (*ResponseMsg, error) {
- out := new(ResponseMsg)
- err := grpc1.Invoke(ctx, "/video.vod.playurlbbq.PlayurlService/ProtobufPlayurl", in, out, c.cc, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // Server API for PlayurlService service
- type PlayurlServiceServer interface {
- ProtobufPlayurl(context.Context, *RequestMsg) (*ResponseMsg, error)
- }
- func RegisterPlayurlServiceServer(s *grpc1.Server, srv PlayurlServiceServer) {
- s.RegisterService(&_PlayurlService_serviceDesc, srv)
- }
- func _PlayurlService_ProtobufPlayurl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) {
- in := new(RequestMsg)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(PlayurlServiceServer).ProtobufPlayurl(ctx, in)
- }
- info := &grpc1.UnaryServerInfo{
- Server: srv,
- FullMethod: "/video.vod.playurlbbq.PlayurlService/ProtobufPlayurl",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(PlayurlServiceServer).ProtobufPlayurl(ctx, req.(*RequestMsg))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _PlayurlService_serviceDesc = grpc1.ServiceDesc{
- ServiceName: "video.vod.playurlbbq.PlayurlService",
- HandlerType: (*PlayurlServiceServer)(nil),
- Methods: []grpc1.MethodDesc{
- {
- MethodName: "ProtobufPlayurl",
- Handler: _PlayurlService_ProtobufPlayurl_Handler,
- },
- },
- Streams: []grpc1.StreamDesc{},
- Metadata: "app/service/bbq/video/model/grpc/bvc.proto",
- }
- func (m *RequestMsg) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *RequestMsg) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if len(m.Keys) > 0 {
- for _, s := range m.Keys {
- dAtA[i] = 0xa
- i++
- l = len(s)
- for l >= 1<<7 {
- dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
- l >>= 7
- i++
- }
- dAtA[i] = uint8(l)
- i++
- i += copy(dAtA[i:], s)
- }
- }
- if len(m.Platform) > 0 {
- dAtA[i] = 0x12
- i++
- i = encodeVarintBvc(dAtA, i, uint64(len(m.Platform)))
- i += copy(dAtA[i:], m.Platform)
- }
- if len(m.UIP) > 0 {
- dAtA[i] = 0x1a
- i++
- i = encodeVarintBvc(dAtA, i, uint64(len(m.UIP)))
- i += copy(dAtA[i:], m.UIP)
- }
- if m.Uiplong != 0 {
- dAtA[i] = 0x20
- i++
- i = encodeVarintBvc(dAtA, i, uint64(m.Uiplong))
- }
- if m.Backup != 0 {
- dAtA[i] = 0x28
- i++
- i = encodeVarintBvc(dAtA, i, uint64(m.Backup))
- }
- if len(m.UUID) > 0 {
- dAtA[i] = 0x32
- i++
- i = encodeVarintBvc(dAtA, i, uint64(len(m.UUID)))
- i += copy(dAtA[i:], m.UUID)
- }
- return i, nil
- }
- func (m *VideoKeyItem) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *VideoKeyItem) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Etime != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintBvc(dAtA, i, uint64(m.Etime))
- }
- if len(m.URL) > 0 {
- for _, s := range m.URL {
- dAtA[i] = 0x12
- i++
- l = len(s)
- for l >= 1<<7 {
- dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
- l >>= 7
- i++
- }
- dAtA[i] = uint8(l)
- i++
- i += copy(dAtA[i:], s)
- }
- }
- return i, nil
- }
- func (m *ResponseMsg) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *ResponseMsg) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Code != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintBvc(dAtA, i, uint64(m.Code))
- }
- if len(m.Data) > 0 {
- for k, _ := range m.Data {
- dAtA[i] = 0x12
- i++
- v := m.Data[k]
- msgSize := 0
- if v != nil {
- msgSize = v.Size()
- msgSize += 1 + sovBvc(uint64(msgSize))
- }
- mapSize := 1 + len(k) + sovBvc(uint64(len(k))) + msgSize
- i = encodeVarintBvc(dAtA, i, uint64(mapSize))
- dAtA[i] = 0xa
- i++
- i = encodeVarintBvc(dAtA, i, uint64(len(k)))
- i += copy(dAtA[i:], k)
- if v != nil {
- dAtA[i] = 0x12
- i++
- i = encodeVarintBvc(dAtA, i, uint64(v.Size()))
- n1, err := v.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n1
- }
- }
- }
- return i, nil
- }
- func encodeVarintBvc(dAtA []byte, offset int, v uint64) int {
- for v >= 1<<7 {
- dAtA[offset] = uint8(v&0x7f | 0x80)
- v >>= 7
- offset++
- }
- dAtA[offset] = uint8(v)
- return offset + 1
- }
- func (m *RequestMsg) Size() (n int) {
- var l int
- _ = l
- if len(m.Keys) > 0 {
- for _, s := range m.Keys {
- l = len(s)
- n += 1 + l + sovBvc(uint64(l))
- }
- }
- l = len(m.Platform)
- if l > 0 {
- n += 1 + l + sovBvc(uint64(l))
- }
- l = len(m.UIP)
- if l > 0 {
- n += 1 + l + sovBvc(uint64(l))
- }
- if m.Uiplong != 0 {
- n += 1 + sovBvc(uint64(m.Uiplong))
- }
- if m.Backup != 0 {
- n += 1 + sovBvc(uint64(m.Backup))
- }
- l = len(m.UUID)
- if l > 0 {
- n += 1 + l + sovBvc(uint64(l))
- }
- return n
- }
- func (m *VideoKeyItem) Size() (n int) {
- var l int
- _ = l
- if m.Etime != 0 {
- n += 1 + sovBvc(uint64(m.Etime))
- }
- if len(m.URL) > 0 {
- for _, s := range m.URL {
- l = len(s)
- n += 1 + l + sovBvc(uint64(l))
- }
- }
- return n
- }
- func (m *ResponseMsg) Size() (n int) {
- var l int
- _ = l
- if m.Code != 0 {
- n += 1 + sovBvc(uint64(m.Code))
- }
- if len(m.Data) > 0 {
- for k, v := range m.Data {
- _ = k
- _ = v
- l = 0
- if v != nil {
- l = v.Size()
- l += 1 + sovBvc(uint64(l))
- }
- mapEntrySize := 1 + len(k) + sovBvc(uint64(len(k))) + l
- n += mapEntrySize + 1 + sovBvc(uint64(mapEntrySize))
- }
- }
- return n
- }
- func sovBvc(x uint64) (n int) {
- for {
- n++
- x >>= 7
- if x == 0 {
- break
- }
- }
- return n
- }
- func sozBvc(x uint64) (n int) {
- return sovBvc(uint64((x << 1) ^ uint64((int64(x) >> 63))))
- }
- func (this *RequestMsg) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&RequestMsg{`,
- `Keys:` + fmt.Sprintf("%v", this.Keys) + `,`,
- `Platform:` + fmt.Sprintf("%v", this.Platform) + `,`,
- `UIP:` + fmt.Sprintf("%v", this.UIP) + `,`,
- `Uiplong:` + fmt.Sprintf("%v", this.Uiplong) + `,`,
- `Backup:` + fmt.Sprintf("%v", this.Backup) + `,`,
- `UUID:` + fmt.Sprintf("%v", this.UUID) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *VideoKeyItem) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&VideoKeyItem{`,
- `Etime:` + fmt.Sprintf("%v", this.Etime) + `,`,
- `URL:` + fmt.Sprintf("%v", this.URL) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *ResponseMsg) String() string {
- if this == nil {
- return "nil"
- }
- keysForData := make([]string, 0, len(this.Data))
- for k, _ := range this.Data {
- keysForData = append(keysForData, k)
- }
- sortkeys.Strings(keysForData)
- mapStringForData := "map[string]*VideoKeyItem{"
- for _, k := range keysForData {
- mapStringForData += fmt.Sprintf("%v: %v,", k, this.Data[k])
- }
- mapStringForData += "}"
- s := strings.Join([]string{`&ResponseMsg{`,
- `Code:` + fmt.Sprintf("%v", this.Code) + `,`,
- `Data:` + mapStringForData + `,`,
- `}`,
- }, "")
- return s
- }
- func valueToStringBvc(v interface{}) string {
- rv := reflect.ValueOf(v)
- if rv.IsNil() {
- return "nil"
- }
- pv := reflect.Indirect(rv).Interface()
- return fmt.Sprintf("*%v", pv)
- }
- func (m *RequestMsg) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowBvc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: RequestMsg: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: RequestMsg: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowBvc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthBvc
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Keys = append(m.Keys, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowBvc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthBvc
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Platform = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field UIP", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowBvc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthBvc
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.UIP = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Uiplong", wireType)
- }
- m.Uiplong = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowBvc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Uiplong |= (uint32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Backup", wireType)
- }
- m.Backup = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowBvc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Backup |= (uint32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field UUID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowBvc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthBvc
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.UUID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipBvc(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthBvc
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *VideoKeyItem) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowBvc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: VideoKeyItem: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: VideoKeyItem: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Etime", wireType)
- }
- m.Etime = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowBvc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Etime |= (uint32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowBvc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthBvc
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.URL = append(m.URL, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipBvc(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthBvc
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *ResponseMsg) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowBvc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ResponseMsg: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ResponseMsg: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
- }
- m.Code = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowBvc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Code |= (uint32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowBvc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthBvc
- }
- postIndex := iNdEx + msglen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Data == nil {
- m.Data = make(map[string]*VideoKeyItem)
- }
- var mapkey string
- var mapvalue *VideoKeyItem
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowBvc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- if fieldNum == 1 {
- var stringLenmapkey uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowBvc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapkey |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapkey := int(stringLenmapkey)
- if intStringLenmapkey < 0 {
- return ErrInvalidLengthBvc
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey > l {
- return io.ErrUnexpectedEOF
- }
- mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
- iNdEx = postStringIndexmapkey
- } else if fieldNum == 2 {
- var mapmsglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowBvc
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- mapmsglen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if mapmsglen < 0 {
- return ErrInvalidLengthBvc
- }
- postmsgIndex := iNdEx + mapmsglen
- if mapmsglen < 0 {
- return ErrInvalidLengthBvc
- }
- if postmsgIndex > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = &VideoKeyItem{}
- if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
- return err
- }
- iNdEx = postmsgIndex
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipBvc(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthBvc
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.Data[mapkey] = mapvalue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipBvc(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthBvc
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func skipBvc(dAtA []byte) (n int, err error) {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowBvc
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- wireType := int(wire & 0x7)
- switch wireType {
- case 0:
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowBvc
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- iNdEx++
- if dAtA[iNdEx-1] < 0x80 {
- break
- }
- }
- return iNdEx, nil
- case 1:
- iNdEx += 8
- return iNdEx, nil
- case 2:
- var length int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowBvc
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- length |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- iNdEx += length
- if length < 0 {
- return 0, ErrInvalidLengthBvc
- }
- return iNdEx, nil
- case 3:
- for {
- var innerWire uint64
- var start int = iNdEx
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowBvc
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- innerWire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- innerWireType := int(innerWire & 0x7)
- if innerWireType == 4 {
- break
- }
- next, err := skipBvc(dAtA[start:])
- if err != nil {
- return 0, err
- }
- iNdEx = start + next
- }
- return iNdEx, nil
- case 4:
- return iNdEx, nil
- case 5:
- iNdEx += 4
- return iNdEx, nil
- default:
- return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
- }
- }
- panic("unreachable")
- }
- var (
- ErrInvalidLengthBvc = fmt.Errorf("proto: negative length found during unmarshaling")
- ErrIntOverflowBvc = fmt.Errorf("proto: integer overflow")
- )
- func init() { proto.RegisterFile("app/service/bbq/video/model/grpc/bvc.proto", fileDescriptorBvc) }
- var fileDescriptorBvc = []byte{
- // 443 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0x3d, 0x6f, 0xdb, 0x30,
- 0x10, 0x0d, 0x2d, 0xd9, 0x89, 0xcf, 0xfd, 0x02, 0x11, 0x14, 0xac, 0x51, 0x28, 0xae, 0x27, 0xa3,
- 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