12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211 |
- // Code generated by protoc-gen-gogo. DO NOT EDIT.
- // source: app/service/main/favorite/model/fav.proto
- package model
- /*
- v0.1.0
- 收藏夹信息
- */
- 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 strings "strings"
- import reflect "reflect"
- 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 Folder struct {
- ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"id"`
- Mid int64 `protobuf:"varint,2,opt,name=Mid,proto3" json:"mid"`
- Count int `protobuf:"varint,3,opt,name=Count,proto3,casttype=int" json:"count"`
- Name string `protobuf:"bytes,4,opt,name=Name,proto3" json:"name"`
- Cover string `protobuf:"bytes,5,opt,name=Cover,proto3" json:"cover"`
- Description string `protobuf:"bytes,6,opt,name=Description,proto3" json:"description"`
- Type int8 `protobuf:"varint,7,opt,name=Type,proto3,casttype=int8" json:"type"`
- Attr int32 `protobuf:"varint,8,opt,name=Attr,proto3" json:"attr"`
- State int8 `protobuf:"varint,9,opt,name=State,proto3,casttype=int8" json:"state"`
- Favored int8 `protobuf:"varint,10,opt,name=Favored,proto3,casttype=int8" json:"favored"`
- CTime go_common_library_time.Time `protobuf:"varint,11,opt,name=CTime,proto3,casttype=go-common/library/time.Time" json:"ctime"`
- MTime go_common_library_time.Time `protobuf:"varint,12,opt,name=MTime,proto3,casttype=go-common/library/time.Time" json:"mtime"`
- RecentOids []int64 `protobuf:"varint,13,rep,packed,name=RecentOids" json:"recent_oids"`
- FavedCount int32 `protobuf:"varint,14,opt,name=FavedCount,proto3" json:"faved_count"`
- PlayCount int32 `protobuf:"varint,15,opt,name=PlayCount,proto3" json:"play_count"`
- ShareCount int32 `protobuf:"varint,16,opt,name=ShareCount,proto3" json:"share_count"`
- LikeCount int32 `protobuf:"varint,17,opt,name=LikeCount,proto3" json:"like_count"`
- ReplyCount int32 `protobuf:"varint,18,opt,name=ReplyCount,proto3" json:"reply_count"`
- RecentRes []*Resource `protobuf:"bytes,19,rep,name=RecentRes" json:"recent_res"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *Folder) Reset() { *m = Folder{} }
- func (*Folder) ProtoMessage() {}
- func (*Folder) Descriptor() ([]byte, []int) {
- return fileDescriptor_fav_0a9cbc27b44f3533, []int{0}
- }
- func (m *Folder) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *Folder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_Folder.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (dst *Folder) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Folder.Merge(dst, src)
- }
- func (m *Folder) XXX_Size() int {
- return m.Size()
- }
- func (m *Folder) XXX_DiscardUnknown() {
- xxx_messageInfo_Folder.DiscardUnknown(m)
- }
- var xxx_messageInfo_Folder proto.InternalMessageInfo
- type Resource struct {
- Oid int64 `protobuf:"varint,1,opt,name=Oid,proto3" json:"oid"`
- Typ int32 `protobuf:"varint,2,opt,name=Typ,proto3" json:"typ"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *Resource) Reset() { *m = Resource{} }
- func (*Resource) ProtoMessage() {}
- func (*Resource) Descriptor() ([]byte, []int) {
- return fileDescriptor_fav_0a9cbc27b44f3533, []int{1}
- }
- func (m *Resource) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_Resource.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (dst *Resource) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Resource.Merge(dst, src)
- }
- func (m *Resource) XXX_Size() int {
- return m.Size()
- }
- func (m *Resource) XXX_DiscardUnknown() {
- xxx_messageInfo_Resource.DiscardUnknown(m)
- }
- var xxx_messageInfo_Resource proto.InternalMessageInfo
- func init() {
- proto.RegisterType((*Folder)(nil), "model.Folder")
- proto.RegisterType((*Resource)(nil), "model.Resource")
- }
- func (m *Folder) 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 *Folder) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.ID != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintFav(dAtA, i, uint64(m.ID))
- }
- if m.Mid != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintFav(dAtA, i, uint64(m.Mid))
- }
- if m.Count != 0 {
- dAtA[i] = 0x18
- i++
- i = encodeVarintFav(dAtA, i, uint64(m.Count))
- }
- if len(m.Name) > 0 {
- dAtA[i] = 0x22
- i++
- i = encodeVarintFav(dAtA, i, uint64(len(m.Name)))
- i += copy(dAtA[i:], m.Name)
- }
- if len(m.Cover) > 0 {
- dAtA[i] = 0x2a
- i++
- i = encodeVarintFav(dAtA, i, uint64(len(m.Cover)))
- i += copy(dAtA[i:], m.Cover)
- }
- if len(m.Description) > 0 {
- dAtA[i] = 0x32
- i++
- i = encodeVarintFav(dAtA, i, uint64(len(m.Description)))
- i += copy(dAtA[i:], m.Description)
- }
- if m.Type != 0 {
- dAtA[i] = 0x38
- i++
- i = encodeVarintFav(dAtA, i, uint64(m.Type))
- }
- if m.Attr != 0 {
- dAtA[i] = 0x40
- i++
- i = encodeVarintFav(dAtA, i, uint64(m.Attr))
- }
- if m.State != 0 {
- dAtA[i] = 0x48
- i++
- i = encodeVarintFav(dAtA, i, uint64(m.State))
- }
- if m.Favored != 0 {
- dAtA[i] = 0x50
- i++
- i = encodeVarintFav(dAtA, i, uint64(m.Favored))
- }
- if m.CTime != 0 {
- dAtA[i] = 0x58
- i++
- i = encodeVarintFav(dAtA, i, uint64(m.CTime))
- }
- if m.MTime != 0 {
- dAtA[i] = 0x60
- i++
- i = encodeVarintFav(dAtA, i, uint64(m.MTime))
- }
- if len(m.RecentOids) > 0 {
- dAtA2 := make([]byte, len(m.RecentOids)*10)
- var j1 int
- for _, num1 := range m.RecentOids {
- num := uint64(num1)
- for num >= 1<<7 {
- dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80)
- num >>= 7
- j1++
- }
- dAtA2[j1] = uint8(num)
- j1++
- }
- dAtA[i] = 0x6a
- i++
- i = encodeVarintFav(dAtA, i, uint64(j1))
- i += copy(dAtA[i:], dAtA2[:j1])
- }
- if m.FavedCount != 0 {
- dAtA[i] = 0x70
- i++
- i = encodeVarintFav(dAtA, i, uint64(m.FavedCount))
- }
- if m.PlayCount != 0 {
- dAtA[i] = 0x78
- i++
- i = encodeVarintFav(dAtA, i, uint64(m.PlayCount))
- }
- if m.ShareCount != 0 {
- dAtA[i] = 0x80
- i++
- dAtA[i] = 0x1
- i++
- i = encodeVarintFav(dAtA, i, uint64(m.ShareCount))
- }
- if m.LikeCount != 0 {
- dAtA[i] = 0x88
- i++
- dAtA[i] = 0x1
- i++
- i = encodeVarintFav(dAtA, i, uint64(m.LikeCount))
- }
- if m.ReplyCount != 0 {
- dAtA[i] = 0x90
- i++
- dAtA[i] = 0x1
- i++
- i = encodeVarintFav(dAtA, i, uint64(m.ReplyCount))
- }
- if len(m.RecentRes) > 0 {
- for _, msg := range m.RecentRes {
- dAtA[i] = 0x9a
- i++
- dAtA[i] = 0x1
- i++
- i = encodeVarintFav(dAtA, i, uint64(msg.Size()))
- n, err := msg.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n
- }
- }
- if m.XXX_unrecognized != nil {
- i += copy(dAtA[i:], m.XXX_unrecognized)
- }
- return i, nil
- }
- func (m *Resource) 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 *Resource) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Oid != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintFav(dAtA, i, uint64(m.Oid))
- }
- if m.Typ != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintFav(dAtA, i, uint64(m.Typ))
- }
- if m.XXX_unrecognized != nil {
- i += copy(dAtA[i:], m.XXX_unrecognized)
- }
- return i, nil
- }
- func encodeVarintFav(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 *Folder) Size() (n int) {
- var l int
- _ = l
- if m.ID != 0 {
- n += 1 + sovFav(uint64(m.ID))
- }
- if m.Mid != 0 {
- n += 1 + sovFav(uint64(m.Mid))
- }
- if m.Count != 0 {
- n += 1 + sovFav(uint64(m.Count))
- }
- l = len(m.Name)
- if l > 0 {
- n += 1 + l + sovFav(uint64(l))
- }
- l = len(m.Cover)
- if l > 0 {
- n += 1 + l + sovFav(uint64(l))
- }
- l = len(m.Description)
- if l > 0 {
- n += 1 + l + sovFav(uint64(l))
- }
- if m.Type != 0 {
- n += 1 + sovFav(uint64(m.Type))
- }
- if m.Attr != 0 {
- n += 1 + sovFav(uint64(m.Attr))
- }
- if m.State != 0 {
- n += 1 + sovFav(uint64(m.State))
- }
- if m.Favored != 0 {
- n += 1 + sovFav(uint64(m.Favored))
- }
- if m.CTime != 0 {
- n += 1 + sovFav(uint64(m.CTime))
- }
- if m.MTime != 0 {
- n += 1 + sovFav(uint64(m.MTime))
- }
- if len(m.RecentOids) > 0 {
- l = 0
- for _, e := range m.RecentOids {
- l += sovFav(uint64(e))
- }
- n += 1 + sovFav(uint64(l)) + l
- }
- if m.FavedCount != 0 {
- n += 1 + sovFav(uint64(m.FavedCount))
- }
- if m.PlayCount != 0 {
- n += 1 + sovFav(uint64(m.PlayCount))
- }
- if m.ShareCount != 0 {
- n += 2 + sovFav(uint64(m.ShareCount))
- }
- if m.LikeCount != 0 {
- n += 2 + sovFav(uint64(m.LikeCount))
- }
- if m.ReplyCount != 0 {
- n += 2 + sovFav(uint64(m.ReplyCount))
- }
- if len(m.RecentRes) > 0 {
- for _, e := range m.RecentRes {
- l = e.Size()
- n += 2 + l + sovFav(uint64(l))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
- }
- func (m *Resource) Size() (n int) {
- var l int
- _ = l
- if m.Oid != 0 {
- n += 1 + sovFav(uint64(m.Oid))
- }
- if m.Typ != 0 {
- n += 1 + sovFav(uint64(m.Typ))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
- }
- func sovFav(x uint64) (n int) {
- for {
- n++
- x >>= 7
- if x == 0 {
- break
- }
- }
- return n
- }
- func sozFav(x uint64) (n int) {
- return sovFav(uint64((x << 1) ^ uint64((int64(x) >> 63))))
- }
- func (this *Folder) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&Folder{`,
- `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
- `Mid:` + fmt.Sprintf("%v", this.Mid) + `,`,
- `Count:` + fmt.Sprintf("%v", this.Count) + `,`,
- `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
- `Cover:` + fmt.Sprintf("%v", this.Cover) + `,`,
- `Description:` + fmt.Sprintf("%v", this.Description) + `,`,
- `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
- `Attr:` + fmt.Sprintf("%v", this.Attr) + `,`,
- `State:` + fmt.Sprintf("%v", this.State) + `,`,
- `Favored:` + fmt.Sprintf("%v", this.Favored) + `,`,
- `CTime:` + fmt.Sprintf("%v", this.CTime) + `,`,
- `MTime:` + fmt.Sprintf("%v", this.MTime) + `,`,
- `RecentOids:` + fmt.Sprintf("%v", this.RecentOids) + `,`,
- `FavedCount:` + fmt.Sprintf("%v", this.FavedCount) + `,`,
- `PlayCount:` + fmt.Sprintf("%v", this.PlayCount) + `,`,
- `ShareCount:` + fmt.Sprintf("%v", this.ShareCount) + `,`,
- `LikeCount:` + fmt.Sprintf("%v", this.LikeCount) + `,`,
- `ReplyCount:` + fmt.Sprintf("%v", this.ReplyCount) + `,`,
- `RecentRes:` + strings.Replace(fmt.Sprintf("%v", this.RecentRes), "Resource", "Resource", 1) + `,`,
- `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *Resource) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&Resource{`,
- `Oid:` + fmt.Sprintf("%v", this.Oid) + `,`,
- `Typ:` + fmt.Sprintf("%v", this.Typ) + `,`,
- `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
- `}`,
- }, "")
- return s
- }
- func valueToStringFav(v interface{}) string {
- rv := reflect.ValueOf(v)
- if rv.IsNil() {
- return "nil"
- }
- pv := reflect.Indirect(rv).Interface()
- return fmt.Sprintf("*%v", pv)
- }
- func (m *Folder) 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 ErrIntOverflowFav
- }
- 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: Folder: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Folder: 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 ErrIntOverflowFav
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ID |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- 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 ErrIntOverflowFav
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Mid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType)
- }
- m.Count = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowFav
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Count |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- 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 ErrIntOverflowFav
- }
- 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 ErrInvalidLengthFav
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Name = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Cover", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowFav
- }
- 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 ErrInvalidLengthFav
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Cover = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowFav
- }
- 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 ErrInvalidLengthFav
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Description = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
- }
- m.Type = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowFav
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Type |= (int8(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Attr", wireType)
- }
- m.Attr = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowFav
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Attr |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
- }
- m.State = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowFav
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.State |= (int8(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 10:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Favored", wireType)
- }
- m.Favored = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowFav
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Favored |= (int8(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 11:
- 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 ErrIntOverflowFav
- }
- 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 12:
- 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 ErrIntOverflowFav
- }
- 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 13:
- if wireType == 0 {
- var v int64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowFav
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.RecentOids = append(m.RecentOids, v)
- } else if wireType == 2 {
- var packedLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowFav
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- packedLen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if packedLen < 0 {
- return ErrInvalidLengthFav
- }
- postIndex := iNdEx + packedLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- for iNdEx < postIndex {
- var v int64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowFav
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.RecentOids = append(m.RecentOids, v)
- }
- } else {
- return fmt.Errorf("proto: wrong wireType = %d for field RecentOids", wireType)
- }
- case 14:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field FavedCount", wireType)
- }
- m.FavedCount = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowFav
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.FavedCount |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 15:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field PlayCount", wireType)
- }
- m.PlayCount = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowFav
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.PlayCount |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 16:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ShareCount", wireType)
- }
- m.ShareCount = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowFav
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ShareCount |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 17:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field LikeCount", wireType)
- }
- m.LikeCount = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowFav
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.LikeCount |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 18:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ReplyCount", wireType)
- }
- m.ReplyCount = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowFav
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ReplyCount |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 19:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RecentRes", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowFav
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthFav
- }
- postIndex := iNdEx + msglen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.RecentRes = append(m.RecentRes, &Resource{})
- if err := m.RecentRes[len(m.RecentRes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipFav(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthFav
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *Resource) 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 ErrIntOverflowFav
- }
- 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: Resource: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Resource: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Oid", wireType)
- }
- m.Oid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowFav
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Oid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Typ", wireType)
- }
- m.Typ = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowFav
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Typ |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipFav(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthFav
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func skipFav(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, ErrIntOverflowFav
- }
- 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, ErrIntOverflowFav
- }
- 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, ErrIntOverflowFav
- }
- 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, ErrInvalidLengthFav
- }
- return iNdEx, nil
- case 3:
- for {
- var innerWire uint64
- var start int = iNdEx
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowFav
- }
- 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 := skipFav(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 (
- ErrInvalidLengthFav = fmt.Errorf("proto: negative length found during unmarshaling")
- ErrIntOverflowFav = fmt.Errorf("proto: integer overflow")
- )
- func init() {
- proto.RegisterFile("app/service/main/favorite/model/fav.proto", fileDescriptor_fav_0a9cbc27b44f3533)
- }
- var fileDescriptor_fav_0a9cbc27b44f3533 = []byte{
- // 608 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcf, 0x6f, 0xd3, 0x3e,
- 0x18, 0xc6, 0x97, 0xa6, 0x69, 0x57, 0xf7, 0xfb, 0xdd, 0x0f, 0x4f, 0x42, 0x06, 0xa6, 0xa4, 0x9a,
- 0x10, 0x14, 0x89, 0x35, 0x02, 0x2e, 0x5c, 0x40,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