12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073 |
- // Code generated by protoc-gen-gogo. DO NOT EDIT.
- // source: v2/Anchor.proto
- package v2
- import proto "github.com/gogo/protobuf/proto"
- import fmt "fmt"
- import math "math"
- import _ "github.com/gogo/protobuf/gogoproto"
- 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 AnchorQueryLiveWearingReq struct {
- // 房管 uid
- UidList []int64 `protobuf:"varint,1,rep,packed,name=uid_list,json=uidList" json:"uid_list"`
- }
- func (m *AnchorQueryLiveWearingReq) Reset() { *m = AnchorQueryLiveWearingReq{} }
- func (m *AnchorQueryLiveWearingReq) String() string { return proto.CompactTextString(m) }
- func (*AnchorQueryLiveWearingReq) ProtoMessage() {}
- func (*AnchorQueryLiveWearingReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_Anchor_9efdd09a9d362c87, []int{0}
- }
- func (m *AnchorQueryLiveWearingReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *AnchorQueryLiveWearingReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_AnchorQueryLiveWearingReq.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 *AnchorQueryLiveWearingReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_AnchorQueryLiveWearingReq.Merge(dst, src)
- }
- func (m *AnchorQueryLiveWearingReq) XXX_Size() int {
- return m.Size()
- }
- func (m *AnchorQueryLiveWearingReq) XXX_DiscardUnknown() {
- xxx_messageInfo_AnchorQueryLiveWearingReq.DiscardUnknown(m)
- }
- var xxx_messageInfo_AnchorQueryLiveWearingReq proto.InternalMessageInfo
- func (m *AnchorQueryLiveWearingReq) GetUidList() []int64 {
- if m != nil {
- return m.UidList
- }
- return nil
- }
- type AnchorQueryLiveWearingResp struct {
- // code
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
- // msg
- Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
- // 勋章信息 map
- Data map[int64]*AnchorQueryLiveWearingResp_Medal `protobuf:"bytes,3,rep,name=data" json:"data" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
- }
- func (m *AnchorQueryLiveWearingResp) Reset() { *m = AnchorQueryLiveWearingResp{} }
- func (m *AnchorQueryLiveWearingResp) String() string { return proto.CompactTextString(m) }
- func (*AnchorQueryLiveWearingResp) ProtoMessage() {}
- func (*AnchorQueryLiveWearingResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_Anchor_9efdd09a9d362c87, []int{1}
- }
- func (m *AnchorQueryLiveWearingResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *AnchorQueryLiveWearingResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_AnchorQueryLiveWearingResp.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 *AnchorQueryLiveWearingResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_AnchorQueryLiveWearingResp.Merge(dst, src)
- }
- func (m *AnchorQueryLiveWearingResp) XXX_Size() int {
- return m.Size()
- }
- func (m *AnchorQueryLiveWearingResp) XXX_DiscardUnknown() {
- xxx_messageInfo_AnchorQueryLiveWearingResp.DiscardUnknown(m)
- }
- var xxx_messageInfo_AnchorQueryLiveWearingResp proto.InternalMessageInfo
- func (m *AnchorQueryLiveWearingResp) GetCode() int64 {
- if m != nil {
- return m.Code
- }
- return 0
- }
- func (m *AnchorQueryLiveWearingResp) GetMsg() string {
- if m != nil {
- return m.Msg
- }
- return ""
- }
- func (m *AnchorQueryLiveWearingResp) GetData() map[int64]*AnchorQueryLiveWearingResp_Medal {
- if m != nil {
- return m.Data
- }
- return nil
- }
- type AnchorQueryLiveWearingResp_Medal struct {
- //
- Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
- //
- TargetId int64 `protobuf:"varint,2,opt,name=target_id,json=targetId,proto3" json:"target_id"`
- //
- MedalId int64 `protobuf:"varint,3,opt,name=medal_id,json=medalId,proto3" json:"medal_id"`
- //
- MedalName string `protobuf:"bytes,4,opt,name=medal_name,json=medalName,proto3" json:"medal_name"`
- //
- Level int64 `protobuf:"varint,5,opt,name=level,proto3" json:"level"`
- }
- func (m *AnchorQueryLiveWearingResp_Medal) Reset() { *m = AnchorQueryLiveWearingResp_Medal{} }
- func (m *AnchorQueryLiveWearingResp_Medal) String() string { return proto.CompactTextString(m) }
- func (*AnchorQueryLiveWearingResp_Medal) ProtoMessage() {}
- func (*AnchorQueryLiveWearingResp_Medal) Descriptor() ([]byte, []int) {
- return fileDescriptor_Anchor_9efdd09a9d362c87, []int{1, 1}
- }
- func (m *AnchorQueryLiveWearingResp_Medal) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *AnchorQueryLiveWearingResp_Medal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_AnchorQueryLiveWearingResp_Medal.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 *AnchorQueryLiveWearingResp_Medal) XXX_Merge(src proto.Message) {
- xxx_messageInfo_AnchorQueryLiveWearingResp_Medal.Merge(dst, src)
- }
- func (m *AnchorQueryLiveWearingResp_Medal) XXX_Size() int {
- return m.Size()
- }
- func (m *AnchorQueryLiveWearingResp_Medal) XXX_DiscardUnknown() {
- xxx_messageInfo_AnchorQueryLiveWearingResp_Medal.DiscardUnknown(m)
- }
- var xxx_messageInfo_AnchorQueryLiveWearingResp_Medal proto.InternalMessageInfo
- func (m *AnchorQueryLiveWearingResp_Medal) GetUid() int64 {
- if m != nil {
- return m.Uid
- }
- return 0
- }
- func (m *AnchorQueryLiveWearingResp_Medal) GetTargetId() int64 {
- if m != nil {
- return m.TargetId
- }
- return 0
- }
- func (m *AnchorQueryLiveWearingResp_Medal) GetMedalId() int64 {
- if m != nil {
- return m.MedalId
- }
- return 0
- }
- func (m *AnchorQueryLiveWearingResp_Medal) GetMedalName() string {
- if m != nil {
- return m.MedalName
- }
- return ""
- }
- func (m *AnchorQueryLiveWearingResp_Medal) GetLevel() int64 {
- if m != nil {
- return m.Level
- }
- return 0
- }
- func init() {
- proto.RegisterType((*AnchorQueryLiveWearingReq)(nil), "fans_medal.v2.AnchorQueryLiveWearingReq")
- proto.RegisterType((*AnchorQueryLiveWearingResp)(nil), "fans_medal.v2.AnchorQueryLiveWearingResp")
- proto.RegisterMapType((map[int64]*AnchorQueryLiveWearingResp_Medal)(nil), "fans_medal.v2.AnchorQueryLiveWearingResp.DataEntry")
- proto.RegisterType((*AnchorQueryLiveWearingResp_Medal)(nil), "fans_medal.v2.AnchorQueryLiveWearingResp.Medal")
- }
- func (m *AnchorQueryLiveWearingReq) 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 *AnchorQueryLiveWearingReq) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if len(m.UidList) > 0 {
- dAtA2 := make([]byte, len(m.UidList)*10)
- var j1 int
- for _, num1 := range m.UidList {
- num := uint64(num1)
- for num >= 1<<7 {
- dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80)
- num >>= 7
- j1++
- }
- dAtA2[j1] = uint8(num)
- j1++
- }
- dAtA[i] = 0xa
- i++
- i = encodeVarintAnchor(dAtA, i, uint64(j1))
- i += copy(dAtA[i:], dAtA2[:j1])
- }
- return i, nil
- }
- func (m *AnchorQueryLiveWearingResp) 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 *AnchorQueryLiveWearingResp) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Code != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintAnchor(dAtA, i, uint64(m.Code))
- }
- if len(m.Msg) > 0 {
- dAtA[i] = 0x12
- i++
- i = encodeVarintAnchor(dAtA, i, uint64(len(m.Msg)))
- i += copy(dAtA[i:], m.Msg)
- }
- if len(m.Data) > 0 {
- for k, _ := range m.Data {
- dAtA[i] = 0x1a
- i++
- v := m.Data[k]
- msgSize := 0
- if v != nil {
- msgSize = v.Size()
- msgSize += 1 + sovAnchor(uint64(msgSize))
- }
- mapSize := 1 + sovAnchor(uint64(k)) + msgSize
- i = encodeVarintAnchor(dAtA, i, uint64(mapSize))
- dAtA[i] = 0x8
- i++
- i = encodeVarintAnchor(dAtA, i, uint64(k))
- if v != nil {
- dAtA[i] = 0x12
- i++
- i = encodeVarintAnchor(dAtA, i, uint64(v.Size()))
- n3, err := v.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n3
- }
- }
- }
- return i, nil
- }
- func (m *AnchorQueryLiveWearingResp_Medal) 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 *AnchorQueryLiveWearingResp_Medal) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Uid != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintAnchor(dAtA, i, uint64(m.Uid))
- }
- if m.TargetId != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintAnchor(dAtA, i, uint64(m.TargetId))
- }
- if m.MedalId != 0 {
- dAtA[i] = 0x18
- i++
- i = encodeVarintAnchor(dAtA, i, uint64(m.MedalId))
- }
- if len(m.MedalName) > 0 {
- dAtA[i] = 0x22
- i++
- i = encodeVarintAnchor(dAtA, i, uint64(len(m.MedalName)))
- i += copy(dAtA[i:], m.MedalName)
- }
- if m.Level != 0 {
- dAtA[i] = 0x28
- i++
- i = encodeVarintAnchor(dAtA, i, uint64(m.Level))
- }
- return i, nil
- }
- func encodeVarintAnchor(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 *AnchorQueryLiveWearingReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if len(m.UidList) > 0 {
- l = 0
- for _, e := range m.UidList {
- l += sovAnchor(uint64(e))
- }
- n += 1 + sovAnchor(uint64(l)) + l
- }
- return n
- }
- func (m *AnchorQueryLiveWearingResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Code != 0 {
- n += 1 + sovAnchor(uint64(m.Code))
- }
- l = len(m.Msg)
- if l > 0 {
- n += 1 + l + sovAnchor(uint64(l))
- }
- if len(m.Data) > 0 {
- for k, v := range m.Data {
- _ = k
- _ = v
- l = 0
- if v != nil {
- l = v.Size()
- l += 1 + sovAnchor(uint64(l))
- }
- mapEntrySize := 1 + sovAnchor(uint64(k)) + l
- n += mapEntrySize + 1 + sovAnchor(uint64(mapEntrySize))
- }
- }
- return n
- }
- func (m *AnchorQueryLiveWearingResp_Medal) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Uid != 0 {
- n += 1 + sovAnchor(uint64(m.Uid))
- }
- if m.TargetId != 0 {
- n += 1 + sovAnchor(uint64(m.TargetId))
- }
- if m.MedalId != 0 {
- n += 1 + sovAnchor(uint64(m.MedalId))
- }
- l = len(m.MedalName)
- if l > 0 {
- n += 1 + l + sovAnchor(uint64(l))
- }
- if m.Level != 0 {
- n += 1 + sovAnchor(uint64(m.Level))
- }
- return n
- }
- func sovAnchor(x uint64) (n int) {
- for {
- n++
- x >>= 7
- if x == 0 {
- break
- }
- }
- return n
- }
- func sozAnchor(x uint64) (n int) {
- return sovAnchor(uint64((x << 1) ^ uint64((int64(x) >> 63))))
- }
- func (m *AnchorQueryLiveWearingReq) 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 ErrIntOverflowAnchor
- }
- 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: AnchorQueryLiveWearingReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: AnchorQueryLiveWearingReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType == 0 {
- var v int64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowAnchor
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.UidList = append(m.UidList, v)
- } else if wireType == 2 {
- var packedLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowAnchor
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- packedLen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if packedLen < 0 {
- return ErrInvalidLengthAnchor
- }
- postIndex := iNdEx + packedLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var elementCount int
- var count int
- for _, integer := range dAtA {
- if integer < 128 {
- count++
- }
- }
- elementCount = count
- if elementCount != 0 && len(m.UidList) == 0 {
- m.UidList = make([]int64, 0, elementCount)
- }
- for iNdEx < postIndex {
- var v int64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowAnchor
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.UidList = append(m.UidList, v)
- }
- } else {
- return fmt.Errorf("proto: wrong wireType = %d for field UidList", wireType)
- }
- default:
- iNdEx = preIndex
- skippy, err := skipAnchor(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthAnchor
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *AnchorQueryLiveWearingResp) 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 ErrIntOverflowAnchor
- }
- 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: AnchorQueryLiveWearingResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: AnchorQueryLiveWearingResp: 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 ErrIntOverflowAnchor
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Code |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowAnchor
- }
- 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 ErrInvalidLengthAnchor
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Msg = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- 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 ErrIntOverflowAnchor
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthAnchor
- }
- postIndex := iNdEx + msglen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Data == nil {
- m.Data = make(map[int64]*AnchorQueryLiveWearingResp_Medal)
- }
- var mapkey int64
- var mapvalue *AnchorQueryLiveWearingResp_Medal
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowAnchor
- }
- 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 {
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowAnchor
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- mapkey |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- } else if fieldNum == 2 {
- var mapmsglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowAnchor
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- mapmsglen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if mapmsglen < 0 {
- return ErrInvalidLengthAnchor
- }
- postmsgIndex := iNdEx + mapmsglen
- if mapmsglen < 0 {
- return ErrInvalidLengthAnchor
- }
- if postmsgIndex > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = &AnchorQueryLiveWearingResp_Medal{}
- if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
- return err
- }
- iNdEx = postmsgIndex
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipAnchor(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthAnchor
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.Data[mapkey] = mapvalue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipAnchor(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthAnchor
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *AnchorQueryLiveWearingResp_Medal) 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 ErrIntOverflowAnchor
- }
- 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: Medal: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Medal: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
- }
- m.Uid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowAnchor
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Uid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field TargetId", wireType)
- }
- m.TargetId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowAnchor
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.TargetId |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MedalId", wireType)
- }
- m.MedalId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowAnchor
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.MedalId |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MedalName", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowAnchor
- }
- 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 ErrInvalidLengthAnchor
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.MedalName = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType)
- }
- m.Level = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowAnchor
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Level |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipAnchor(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthAnchor
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func skipAnchor(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, ErrIntOverflowAnchor
- }
- 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, ErrIntOverflowAnchor
- }
- 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, ErrIntOverflowAnchor
- }
- 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, ErrInvalidLengthAnchor
- }
- return iNdEx, nil
- case 3:
- for {
- var innerWire uint64
- var start int = iNdEx
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowAnchor
- }
- 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 := skipAnchor(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 (
- ErrInvalidLengthAnchor = fmt.Errorf("proto: negative length found during unmarshaling")
- ErrIntOverflowAnchor = fmt.Errorf("proto: integer overflow")
- )
- func init() { proto.RegisterFile("v2/Anchor.proto", fileDescriptor_Anchor_9efdd09a9d362c87) }
- var fileDescriptor_Anchor_9efdd09a9d362c87 = []byte{
- // 452 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 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