// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: model.proto /* Package model is a generated protocol buffer package. v0.1.0 收藏夹信息 It is generated from these files: model.proto It has these top-level messages: Field Fields */ package model import proto "github.com/golang/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.ProtoPackageIsVersion2 // please upgrade the proto package type Field struct { Flag bool `protobuf:"varint,1,opt,name=Flag,proto3" json:"flag"` Oid int64 `protobuf:"varint,2,opt,name=Oid,proto3" json:"oid"` Pid int16 `protobuf:"varint,3,opt,name=Pid,proto3,casttype=int16" json:"pid"` Click int `protobuf:"varint,4,opt,name=Click,proto3,casttype=int" json:"click"` Pubtime go_common_library_time.Time `protobuf:"varint,5,opt,name=Pubtime,proto3,casttype=go-common/library/time.Time" json:"pubtime"` Result int8 `protobuf:"varint,6,opt,name=Result,proto3,casttype=int8" json:"result"` Deleted int8 `protobuf:"varint,7,opt,name=Deleted,proto3,casttype=int8" json:"deleted"` Valid int8 `protobuf:"varint,8,opt,name=Valid,proto3,casttype=int8" json:"valid"` } func (m *Field) Reset() { *m = Field{} } func (*Field) ProtoMessage() {} func (*Field) Descriptor() ([]byte, []int) { return fileDescriptorModel, []int{0} } type Fields struct { Fields []*Field `protobuf:"bytes,1,rep,name=Fields" json:"Fields,omitempty"` } func (m *Fields) Reset() { *m = Fields{} } func (*Fields) ProtoMessage() {} func (*Fields) Descriptor() ([]byte, []int) { return fileDescriptorModel, []int{1} } func init() { proto.RegisterType((*Field)(nil), "model.Field") proto.RegisterType((*Fields)(nil), "model.Fields") } func (m *Field) 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 *Field) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Flag { dAtA[i] = 0x8 i++ if m.Flag { dAtA[i] = 1 } else { dAtA[i] = 0 } i++ } if m.Oid != 0 { dAtA[i] = 0x10 i++ i = encodeVarintModel(dAtA, i, uint64(m.Oid)) } if m.Pid != 0 { dAtA[i] = 0x18 i++ i = encodeVarintModel(dAtA, i, uint64(m.Pid)) } if m.Click != 0 { dAtA[i] = 0x20 i++ i = encodeVarintModel(dAtA, i, uint64(m.Click)) } if m.Pubtime != 0 { dAtA[i] = 0x28 i++ i = encodeVarintModel(dAtA, i, uint64(m.Pubtime)) } if m.Result != 0 { dAtA[i] = 0x30 i++ i = encodeVarintModel(dAtA, i, uint64(m.Result)) } if m.Deleted != 0 { dAtA[i] = 0x38 i++ i = encodeVarintModel(dAtA, i, uint64(m.Deleted)) } if m.Valid != 0 { dAtA[i] = 0x40 i++ i = encodeVarintModel(dAtA, i, uint64(m.Valid)) } return i, nil } func (m *Fields) 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 *Fields) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Fields) > 0 { for _, msg := range m.Fields { dAtA[i] = 0xa i++ i = encodeVarintModel(dAtA, i, uint64(msg.Size())) n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } return i, nil } func encodeVarintModel(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 *Field) Size() (n int) { var l int _ = l if m.Flag { n += 2 } if m.Oid != 0 { n += 1 + sovModel(uint64(m.Oid)) } if m.Pid != 0 { n += 1 + sovModel(uint64(m.Pid)) } if m.Click != 0 { n += 1 + sovModel(uint64(m.Click)) } if m.Pubtime != 0 { n += 1 + sovModel(uint64(m.Pubtime)) } if m.Result != 0 { n += 1 + sovModel(uint64(m.Result)) } if m.Deleted != 0 { n += 1 + sovModel(uint64(m.Deleted)) } if m.Valid != 0 { n += 1 + sovModel(uint64(m.Valid)) } return n } func (m *Fields) Size() (n int) { var l int _ = l if len(m.Fields) > 0 { for _, e := range m.Fields { l = e.Size() n += 1 + l + sovModel(uint64(l)) } } return n } func sovModel(x uint64) (n int) { for { n++ x >>= 7 if x == 0 { break } } return n } func sozModel(x uint64) (n int) { return sovModel(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (this *Field) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&Field{`, `Flag:` + fmt.Sprintf("%v", this.Flag) + `,`, `Oid:` + fmt.Sprintf("%v", this.Oid) + `,`, `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, `Click:` + fmt.Sprintf("%v", this.Click) + `,`, `Pubtime:` + fmt.Sprintf("%v", this.Pubtime) + `,`, `Result:` + fmt.Sprintf("%v", this.Result) + `,`, `Deleted:` + fmt.Sprintf("%v", this.Deleted) + `,`, `Valid:` + fmt.Sprintf("%v", this.Valid) + `,`, `}`, }, "") return s } func (this *Fields) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&Fields{`, `Fields:` + strings.Replace(fmt.Sprintf("%v", this.Fields), "Field", "Field", 1) + `,`, `}`, }, "") return s } func valueToStringModel(v interface{}) string { rv := reflect.ValueOf(v) if rv.IsNil() { return "nil" } pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("*%v", pv) } func (m *Field) 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 ErrIntOverflowModel } 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: Field: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Field: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Flag", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowModel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { break } } m.Flag = bool(v != 0) case 2: 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 ErrIntOverflowModel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Oid |= (int64(b) & 0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) } m.Pid = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowModel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Pid |= (int16(b) & 0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Click", wireType) } m.Click = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowModel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Click |= (int(b) & 0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Pubtime", wireType) } m.Pubtime = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowModel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Pubtime |= (go_common_library_time.Time(b) & 0x7F) << shift if b < 0x80 { break } } case 6: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) } m.Result = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowModel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Result |= (int8(b) & 0x7F) << shift if b < 0x80 { break } } case 7: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Deleted", wireType) } m.Deleted = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowModel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Deleted |= (int8(b) & 0x7F) << shift if b < 0x80 { break } } case 8: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Valid", wireType) } m.Valid = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowModel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Valid |= (int8(b) & 0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipModel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthModel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Fields) 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 ErrIntOverflowModel } 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: Fields: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Fields: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowModel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthModel } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } m.Fields = append(m.Fields, &Field{}) if err := m.Fields[len(m.Fields)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipModel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthModel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipModel(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, ErrIntOverflowModel } 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, ErrIntOverflowModel } 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, ErrIntOverflowModel } 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, ErrInvalidLengthModel } return iNdEx, nil case 3: for { var innerWire uint64 var start int = iNdEx for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowModel } 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 := skipModel(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 ( ErrInvalidLengthModel = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowModel = fmt.Errorf("proto: integer overflow") ) func init() { proto.RegisterFile("model.proto", fileDescriptorModel) } var fileDescriptorModel = []byte{ // 376 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x3c, 0x91, 0xcf, 0x8e, 0xd3, 0x30, 0x10, 0x87, 0xeb, 0x4d, 0x9d, 0x54, 0x5e, 0x0e, 0x60, 0x2e, 0xe6, 0x8f, 0xec, 0xa8, 0x42, 0x50, 0xad, 0xd4, 0x54, 0x80, 0x84, 0x38, 0x97, 0xd5, 0x5e, 0x59, 0x59, 0x88, 0x7b, 0x12, 0x7b, 0x83, 0x85, 0x13, 0x57, 0x59, 0x07, 0x89, 0x1b, 0x8f, 0xc1, 0x23, 0xed, 0x71, 0x4f, 0x88, 0x93, 0x45, 0xc3, 0x2d, 0x8f, 0x90, 0xd3, 0xca, 0x4e, 0xdb, 0xdb, 0xcc, 0xf7, 0xfb, 0x46, 0x23, 0x7b, 0xd0, 0x79, 0x6d, 0x84, 0xd4, 0xd9, 0xae, 0x35, 0xd6, 0x60, 0x18, 0x9a, 0xe7, 0xeb, 0x4a, 0xd9, 0x6f, 0x5d, 0x91, 0x95, 0xa6, 0xde, 0x54, 0xa6, 0x32, 0x9b, 0x90, 0x16, 0xdd, 0x4d, 0xe8, 0x42, 0x13, 0xaa, 0x69, 0x6a, 0xf9, 0xe7, 0x0c, 0xc1, 0x2b, 0x25, 0xb5, 0xc0, 0x2f, 0xd1, 0xfc, 0x4a, 0xe7, 0x15, 0x01,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