1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291 |
- // Code generated by protoc-gen-gogo. DO NOT EDIT.
- // source: app/service/main/history/model/history.proto
- /*
- Package model is a generated protocol buffer package.
- It is generated from these files:
- app/service/main/history/model/history.proto
- It has these top-level messages:
- History
- Business
- Merge
- */
- package model
- import proto "github.com/gogo/protobuf/proto"
- import fmt "fmt"
- import math "math"
- import _ "github.com/gogo/protobuf/gogoproto"
- import go_common_library_time "go-common/library/time"
- 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
- // History model
- type History struct {
- // ctime
- Ctime go_common_library_time.Time `protobuf:"varint,1,opt,name=ctime,proto3,casttype=go-common/library/time.Time" json:"ctime"`
- // mtime
- Mtime go_common_library_time.Time `protobuf:"varint,2,opt,name=mtime,proto3,casttype=go-common/library/time.Time" json:"mtime"`
- // mid
- Mid int64 `protobuf:"varint,3,opt,name=mid,proto3" json:"mid" form:"mid" validate:"required,min=1"`
- // business_id
- BusinessID int64 `protobuf:"varint,4,opt,name=business_id,json=businessId,proto3" json:"business_id"`
- // business 业务
- Business string `protobuf:"bytes,5,opt,name=business,proto3" json:"business" form:"business" validate:"required"`
- // kid 业务中唯一id
- Kid int64 `protobuf:"varint,6,opt,name=kid,proto3" json:"kid" form:"kid"`
- // aid
- Aid int64 `protobuf:"varint,7,opt,name=aid,proto3" json:"aid,omitempty" form:"aid"`
- // sid
- Sid int64 `protobuf:"varint,8,opt,name=sid,proto3" json:"sid,omitempty" form:"sid"`
- // epid
- Epid int64 `protobuf:"varint,9,opt,name=epid,proto3" json:"epid,omitempty" form:"epid"`
- // cid
- Cid int64 `protobuf:"varint,10,opt,name=cid,proto3" json:"cid,omitempty" form:"cid"`
- // sub_type 子类型
- SubType int32 `protobuf:"varint,11,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty" form:"sub_type"`
- // device 设备类型
- Device int32 `protobuf:"varint,12,opt,name=device,proto3" json:"device" form:"device"`
- // progress 进度
- Progress int32 `protobuf:"varint,13,opt,name=progress,proto3" json:"progress" form:"progress"`
- // 观看时间
- ViewAt int64 `protobuf:"varint,14,opt,name=view_at,json=viewAt,proto3" json:"view_at" form:"view_at"`
- }
- func (m *History) Reset() { *m = History{} }
- func (m *History) String() string { return proto.CompactTextString(m) }
- func (*History) ProtoMessage() {}
- func (*History) Descriptor() ([]byte, []int) { return fileDescriptorHistory, []int{0} }
- func (m *History) GetCtime() go_common_library_time.Time {
- if m != nil {
- return m.Ctime
- }
- return 0
- }
- func (m *History) GetMtime() go_common_library_time.Time {
- if m != nil {
- return m.Mtime
- }
- return 0
- }
- func (m *History) GetMid() int64 {
- if m != nil {
- return m.Mid
- }
- return 0
- }
- func (m *History) GetBusinessID() int64 {
- if m != nil {
- return m.BusinessID
- }
- return 0
- }
- func (m *History) GetBusiness() string {
- if m != nil {
- return m.Business
- }
- return ""
- }
- func (m *History) GetKid() int64 {
- if m != nil {
- return m.Kid
- }
- return 0
- }
- func (m *History) GetAid() int64 {
- if m != nil {
- return m.Aid
- }
- return 0
- }
- func (m *History) GetSid() int64 {
- if m != nil {
- return m.Sid
- }
- return 0
- }
- func (m *History) GetEpid() int64 {
- if m != nil {
- return m.Epid
- }
- return 0
- }
- func (m *History) GetCid() int64 {
- if m != nil {
- return m.Cid
- }
- return 0
- }
- func (m *History) GetSubType() int32 {
- if m != nil {
- return m.SubType
- }
- return 0
- }
- func (m *History) GetDevice() int32 {
- if m != nil {
- return m.Device
- }
- return 0
- }
- func (m *History) GetProgress() int32 {
- if m != nil {
- return m.Progress
- }
- return 0
- }
- func (m *History) GetViewAt() int64 {
- if m != nil {
- return m.ViewAt
- }
- return 0
- }
- // Business model
- type Business struct {
- // id
- ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
- // name
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
- // ttl
- TTL int64 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"`
- }
- func (m *Business) Reset() { *m = Business{} }
- func (m *Business) String() string { return proto.CompactTextString(m) }
- func (*Business) ProtoMessage() {}
- func (*Business) Descriptor() ([]byte, []int) { return fileDescriptorHistory, []int{1} }
- func (m *Business) GetID() int64 {
- if m != nil {
- return m.ID
- }
- return 0
- }
- func (m *Business) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
- }
- func (m *Business) GetTTL() int64 {
- if m != nil {
- return m.TTL
- }
- return 0
- }
- // Merge model
- type Merge struct {
- // mid
- Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" validate:"required"`
- // bid
- Bid int64 `protobuf:"varint,2,opt,name=bid,proto3" json:"bid" validate:"required"`
- // business 业务
- Business string `protobuf:"bytes,3,opt,name=business,proto3" json:"-"`
- // time
- Time int64 `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty" validate:"required"`
- // kid
- Kid int64 `protobuf:"varint,5,opt,name=kid,proto3" json:"kid,omitempty" validate:"required"`
- }
- func (m *Merge) Reset() { *m = Merge{} }
- func (m *Merge) String() string { return proto.CompactTextString(m) }
- func (*Merge) ProtoMessage() {}
- func (*Merge) Descriptor() ([]byte, []int) { return fileDescriptorHistory, []int{2} }
- func (m *Merge) GetMid() int64 {
- if m != nil {
- return m.Mid
- }
- return 0
- }
- func (m *Merge) GetBid() int64 {
- if m != nil {
- return m.Bid
- }
- return 0
- }
- func (m *Merge) GetBusiness() string {
- if m != nil {
- return m.Business
- }
- return ""
- }
- func (m *Merge) GetTime() int64 {
- if m != nil {
- return m.Time
- }
- return 0
- }
- func (m *Merge) GetKid() int64 {
- if m != nil {
- return m.Kid
- }
- return 0
- }
- func init() {
- proto.RegisterType((*History)(nil), "History")
- proto.RegisterType((*Business)(nil), "Business")
- proto.RegisterType((*Merge)(nil), "Merge")
- }
- func (m *History) 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 *History) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Ctime != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintHistory(dAtA, i, uint64(m.Ctime))
- }
- if m.Mtime != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintHistory(dAtA, i, uint64(m.Mtime))
- }
- if m.Mid != 0 {
- dAtA[i] = 0x18
- i++
- i = encodeVarintHistory(dAtA, i, uint64(m.Mid))
- }
- if m.BusinessID != 0 {
- dAtA[i] = 0x20
- i++
- i = encodeVarintHistory(dAtA, i, uint64(m.BusinessID))
- }
- if len(m.Business) > 0 {
- dAtA[i] = 0x2a
- i++
- i = encodeVarintHistory(dAtA, i, uint64(len(m.Business)))
- i += copy(dAtA[i:], m.Business)
- }
- if m.Kid != 0 {
- dAtA[i] = 0x30
- i++
- i = encodeVarintHistory(dAtA, i, uint64(m.Kid))
- }
- if m.Aid != 0 {
- dAtA[i] = 0x38
- i++
- i = encodeVarintHistory(dAtA, i, uint64(m.Aid))
- }
- if m.Sid != 0 {
- dAtA[i] = 0x40
- i++
- i = encodeVarintHistory(dAtA, i, uint64(m.Sid))
- }
- if m.Epid != 0 {
- dAtA[i] = 0x48
- i++
- i = encodeVarintHistory(dAtA, i, uint64(m.Epid))
- }
- if m.Cid != 0 {
- dAtA[i] = 0x50
- i++
- i = encodeVarintHistory(dAtA, i, uint64(m.Cid))
- }
- if m.SubType != 0 {
- dAtA[i] = 0x58
- i++
- i = encodeVarintHistory(dAtA, i, uint64(m.SubType))
- }
- if m.Device != 0 {
- dAtA[i] = 0x60
- i++
- i = encodeVarintHistory(dAtA, i, uint64(m.Device))
- }
- if m.Progress != 0 {
- dAtA[i] = 0x68
- i++
- i = encodeVarintHistory(dAtA, i, uint64(m.Progress))
- }
- if m.ViewAt != 0 {
- dAtA[i] = 0x70
- i++
- i = encodeVarintHistory(dAtA, i, uint64(m.ViewAt))
- }
- return i, nil
- }
- func (m *Business) 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 *Business) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.ID != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintHistory(dAtA, i, uint64(m.ID))
- }
- if len(m.Name) > 0 {
- dAtA[i] = 0x12
- i++
- i = encodeVarintHistory(dAtA, i, uint64(len(m.Name)))
- i += copy(dAtA[i:], m.Name)
- }
- if m.TTL != 0 {
- dAtA[i] = 0x18
- i++
- i = encodeVarintHistory(dAtA, i, uint64(m.TTL))
- }
- return i, nil
- }
- func (m *Merge) 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 *Merge) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Mid != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintHistory(dAtA, i, uint64(m.Mid))
- }
- if m.Bid != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintHistory(dAtA, i, uint64(m.Bid))
- }
- if len(m.Business) > 0 {
- dAtA[i] = 0x1a
- i++
- i = encodeVarintHistory(dAtA, i, uint64(len(m.Business)))
- i += copy(dAtA[i:], m.Business)
- }
- if m.Time != 0 {
- dAtA[i] = 0x20
- i++
- i = encodeVarintHistory(dAtA, i, uint64(m.Time))
- }
- if m.Kid != 0 {
- dAtA[i] = 0x28
- i++
- i = encodeVarintHistory(dAtA, i, uint64(m.Kid))
- }
- return i, nil
- }
- func encodeVarintHistory(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 *History) Size() (n int) {
- var l int
- _ = l
- if m.Ctime != 0 {
- n += 1 + sovHistory(uint64(m.Ctime))
- }
- if m.Mtime != 0 {
- n += 1 + sovHistory(uint64(m.Mtime))
- }
- if m.Mid != 0 {
- n += 1 + sovHistory(uint64(m.Mid))
- }
- if m.BusinessID != 0 {
- n += 1 + sovHistory(uint64(m.BusinessID))
- }
- l = len(m.Business)
- if l > 0 {
- n += 1 + l + sovHistory(uint64(l))
- }
- if m.Kid != 0 {
- n += 1 + sovHistory(uint64(m.Kid))
- }
- if m.Aid != 0 {
- n += 1 + sovHistory(uint64(m.Aid))
- }
- if m.Sid != 0 {
- n += 1 + sovHistory(uint64(m.Sid))
- }
- if m.Epid != 0 {
- n += 1 + sovHistory(uint64(m.Epid))
- }
- if m.Cid != 0 {
- n += 1 + sovHistory(uint64(m.Cid))
- }
- if m.SubType != 0 {
- n += 1 + sovHistory(uint64(m.SubType))
- }
- if m.Device != 0 {
- n += 1 + sovHistory(uint64(m.Device))
- }
- if m.Progress != 0 {
- n += 1 + sovHistory(uint64(m.Progress))
- }
- if m.ViewAt != 0 {
- n += 1 + sovHistory(uint64(m.ViewAt))
- }
- return n
- }
- func (m *Business) Size() (n int) {
- var l int
- _ = l
- if m.ID != 0 {
- n += 1 + sovHistory(uint64(m.ID))
- }
- l = len(m.Name)
- if l > 0 {
- n += 1 + l + sovHistory(uint64(l))
- }
- if m.TTL != 0 {
- n += 1 + sovHistory(uint64(m.TTL))
- }
- return n
- }
- func (m *Merge) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovHistory(uint64(m.Mid))
- }
- if m.Bid != 0 {
- n += 1 + sovHistory(uint64(m.Bid))
- }
- l = len(m.Business)
- if l > 0 {
- n += 1 + l + sovHistory(uint64(l))
- }
- if m.Time != 0 {
- n += 1 + sovHistory(uint64(m.Time))
- }
- if m.Kid != 0 {
- n += 1 + sovHistory(uint64(m.Kid))
- }
- return n
- }
- func sovHistory(x uint64) (n int) {
- for {
- n++
- x >>= 7
- if x == 0 {
- break
- }
- }
- return n
- }
- func sozHistory(x uint64) (n int) {
- return sovHistory(uint64((x << 1) ^ uint64((int64(x) >> 63))))
- }
- func (m *History) 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 ErrIntOverflowHistory
- }
- 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: History: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: History: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ctime", wireType)
- }
- m.Ctime = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Ctime |= (go_common_library_time.Time(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Mtime", wireType)
- }
- m.Mtime = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Mtime |= (go_common_library_time.Time(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
- }
- m.Mid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Mid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BusinessID", wireType)
- }
- m.BusinessID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BusinessID |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Business", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- 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 ErrInvalidLengthHistory
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Business = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Kid", wireType)
- }
- m.Kid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Kid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
- }
- m.Aid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Aid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Sid", wireType)
- }
- m.Sid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Sid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Epid", wireType)
- }
- m.Epid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Epid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 10:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType)
- }
- m.Cid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Cid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 11:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SubType", wireType)
- }
- m.SubType = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SubType |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 12:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Device", wireType)
- }
- m.Device = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Device |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 13:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Progress", wireType)
- }
- m.Progress = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Progress |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 14:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ViewAt", wireType)
- }
- m.ViewAt = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ViewAt |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipHistory(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHistory
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *Business) 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 ErrIntOverflowHistory
- }
- 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: Business: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Business: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
- }
- m.ID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ID |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- 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 ErrInvalidLengthHistory
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Name = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType)
- }
- m.TTL = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.TTL |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipHistory(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHistory
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *Merge) 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 ErrIntOverflowHistory
- }
- 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: Merge: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Merge: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
- }
- m.Mid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Mid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Bid", wireType)
- }
- m.Bid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Bid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Business", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- 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 ErrInvalidLengthHistory
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Business = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
- }
- m.Time = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Time |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Kid", wireType)
- }
- m.Kid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHistory
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Kid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipHistory(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHistory
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func skipHistory(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, ErrIntOverflowHistory
- }
- 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, ErrIntOverflowHistory
- }
- 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, ErrIntOverflowHistory
- }
- 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, ErrInvalidLengthHistory
- }
- return iNdEx, nil
- case 3:
- for {
- var innerWire uint64
- var start int = iNdEx
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowHistory
- }
- 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 := skipHistory(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 (
- ErrInvalidLengthHistory = fmt.Errorf("proto: negative length found during unmarshaling")
- ErrIntOverflowHistory = fmt.Errorf("proto: integer overflow")
- )
- func init() { proto.RegisterFile("app/service/main/history/model/history.proto", fileDescriptorHistory) }
- var fileDescriptorHistory = []byte{
- // 648 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcf, 0x6b, 0x13, 0x41,
- 0x14, 0x66, 0xb3, 0xd9, 0x24, 0x9d, 0xfe, 0x82, 0x29, 0xe2, 0x6a, 0x6b, 0x27, 0x4e, 0x15, 0x23,
- 0xb6, 0x59, 0xa4, 0xa0, 0x50, 0xb1, 0xd0, 0xe0, 0xc1, 0x82, 0x22, 0x2c, 0x39, 0x79, 0x29, 0xbb,
- 0x99, 0x69, 0xfa, 0x48, 0x36, 0xbb, 0xee, 0x6e, 0x2a, 0xf9, 0x0f, 0x3d, 0xfa, 0x17, 0x0c, 0x92,
- 0x83, 0x87, 0xf5, 0xb6, 0x47, 0x4f, 0x32, 0x6f, 0x76, 0xdb, 0x52, 0x8a, 0x7a, 0x09, 0xfb, 0x7d,
- 0xef, 0xfb, 0xde, 0xbc, 0x99, 0x7c, 0x33, 0x64, 0x3f, 0x48, 0x12, 0x2f, 0x93, 0xe9, 0x25, 0x8c,
- 0xa4, 0x17, 0x05, 0x30, 0xf3, 0x2e, 0x20, 0xcb, 0xe3, 0x74, 0xe1, 0x45, 0xb1, 0x90, 0xd3, 0x1a,
- 0xf5, 0x93, 0x34, 0xce, 0xe3, 0x87, 0x07, 0x63, 0xc8, 0x2f, 0xe6, 0x61, 0x7f, 0x14, 0x47, 0xde,
- 0x38, 0x1e, 0xc7, 0x1e, 0xd2, 0xe1, 0xfc, 0x1c, 0x11, 0x02, 0xfc, 0x32,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