12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516 |
- // Code generated by protoc-gen-gogo. DO NOT EDIT.
- // source: app/service/main/up/api/v1/request.proto
- package v1
- 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
- // NoArgReq 没有请求参数
- type NoArgReq struct {
- }
- func (m *NoArgReq) Reset() { *m = NoArgReq{} }
- func (m *NoArgReq) String() string { return proto.CompactTextString(m) }
- func (*NoArgReq) ProtoMessage() {}
- func (*NoArgReq) Descriptor() ([]byte, []int) { return fileDescriptorRequest, []int{0} }
- // UpArcsReq 单个up主的稿件列表信息请求参数
- type UpArcsReq struct {
- // mid 用户id 必传
- Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"min=1,required"`
- // pn 第几页 非必传
- Pn int32 `protobuf:"varint,2,opt,name=pn,proto3" json:"pn,omitempty" form:"pn" default:"1"`
- // ps 分页大小 非必传
- Ps int32 `protobuf:"varint,3,opt,name=ps,proto3" json:"ps,omitempty" form:"ps" default:"20"`
- }
- func (m *UpArcsReq) Reset() { *m = UpArcsReq{} }
- func (m *UpArcsReq) String() string { return proto.CompactTextString(m) }
- func (*UpArcsReq) ProtoMessage() {}
- func (*UpArcsReq) Descriptor() ([]byte, []int) { return fileDescriptorRequest, []int{1} }
- func (m *UpArcsReq) GetMid() int64 {
- if m != nil {
- return m.Mid
- }
- return 0
- }
- func (m *UpArcsReq) GetPn() int32 {
- if m != nil {
- return m.Pn
- }
- return 0
- }
- func (m *UpArcsReq) GetPs() int32 {
- if m != nil {
- return m.Ps
- }
- return 0
- }
- // UpsArcsReq 多个up主的稿件列表信息请求参数
- type UpsArcsReq struct {
- // mids 多个用户id 必传 最大100个
- Mids []int64 `protobuf:"varint,1,rep,packed,name=mids" json:"mids,omitempty" form:"mids,split" validate:"min=1,max=100,required"`
- // pn 第几页 非必传
- Pn int32 `protobuf:"varint,2,opt,name=pn,proto3" json:"pn,omitempty" form:"pn" default:"1"`
- // ps 分页大小 非必传
- Ps int32 `protobuf:"varint,3,opt,name=ps,proto3" json:"ps,omitempty" form:"ps" default:"20"`
- }
- func (m *UpsArcsReq) Reset() { *m = UpsArcsReq{} }
- func (m *UpsArcsReq) String() string { return proto.CompactTextString(m) }
- func (*UpsArcsReq) ProtoMessage() {}
- func (*UpsArcsReq) Descriptor() ([]byte, []int) { return fileDescriptorRequest, []int{2} }
- func (m *UpsArcsReq) GetMids() []int64 {
- if m != nil {
- return m.Mids
- }
- return nil
- }
- func (m *UpsArcsReq) GetPn() int32 {
- if m != nil {
- return m.Pn
- }
- return 0
- }
- func (m *UpsArcsReq) GetPs() int32 {
- if m != nil {
- return m.Ps
- }
- return 0
- }
- // UpCountReq 单个up主的稿件计数的请求参数
- type UpCountReq struct {
- // mid 用户id 必传
- Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"min=1,required"`
- }
- func (m *UpCountReq) Reset() { *m = UpCountReq{} }
- func (m *UpCountReq) String() string { return proto.CompactTextString(m) }
- func (*UpCountReq) ProtoMessage() {}
- func (*UpCountReq) Descriptor() ([]byte, []int) { return fileDescriptorRequest, []int{3} }
- func (m *UpCountReq) GetMid() int64 {
- if m != nil {
- return m.Mid
- }
- return 0
- }
- // UpsCountReq 多个up主的稿件计数的请求参数
- type UpsCountReq struct {
- // mids 多个用户id 必传 最大100个
- Mids []int64 `protobuf:"varint,1,rep,packed,name=mids" json:"mids,omitempty" form:"mids,split" validate:"min=1,max=100,required"`
- }
- func (m *UpsCountReq) Reset() { *m = UpsCountReq{} }
- func (m *UpsCountReq) String() string { return proto.CompactTextString(m) }
- func (*UpsCountReq) ProtoMessage() {}
- func (*UpsCountReq) Descriptor() ([]byte, []int) { return fileDescriptorRequest, []int{4} }
- func (m *UpsCountReq) GetMids() []int64 {
- if m != nil {
- return m.Mids
- }
- return nil
- }
- // UpCacheReq up主的cache更新的请求参数
- type UpCacheReq struct {
- // mid 用户id 必传
- Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"required"`
- // aid 稿件id 必传
- Aid int64 `protobuf:"varint,2,opt,name=aid,proto3" json:"aid,omitempty" form:"aid" validate:"required"`
- }
- func (m *UpCacheReq) Reset() { *m = UpCacheReq{} }
- func (m *UpCacheReq) String() string { return proto.CompactTextString(m) }
- func (*UpCacheReq) ProtoMessage() {}
- func (*UpCacheReq) Descriptor() ([]byte, []int) { return fileDescriptorRequest, []int{5} }
- func (m *UpCacheReq) GetMid() int64 {
- if m != nil {
- return m.Mid
- }
- return 0
- }
- func (m *UpCacheReq) GetAid() int64 {
- if m != nil {
- return m.Aid
- }
- return 0
- }
- // UpListByLastIDReq 获取up主活跃度信息通过最后id获取
- type UpListByLastIDReq struct {
- // LastID 获取的数据最后id
- LastID int64 `protobuf:"varint,1,opt,name=last_id,json=lastId,proto3" json:"last_id,omitempty" form:"last_id" validate:"min=0"`
- // 获取数量 最大1000个
- Ps int `protobuf:"varint,2,opt,name=ps,proto3,casttype=int" json:"ps,omitempty" form:"ps" validate:"min=1,max=1000" default:"100"`
- }
- func (m *UpListByLastIDReq) Reset() { *m = UpListByLastIDReq{} }
- func (m *UpListByLastIDReq) String() string { return proto.CompactTextString(m) }
- func (*UpListByLastIDReq) ProtoMessage() {}
- func (*UpListByLastIDReq) Descriptor() ([]byte, []int) { return fileDescriptorRequest, []int{6} }
- func (m *UpListByLastIDReq) GetLastID() int64 {
- if m != nil {
- return m.LastID
- }
- return 0
- }
- func (m *UpListByLastIDReq) GetPs() int {
- if m != nil {
- return m.Ps
- }
- return 0
- }
- // UpSpecialReq up主特殊用户属性请求参数
- type UpSpecialReq struct {
- // mid 用户id 必传
- Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"min=1,required"`
- }
- func (m *UpSpecialReq) Reset() { *m = UpSpecialReq{} }
- func (m *UpSpecialReq) String() string { return proto.CompactTextString(m) }
- func (*UpSpecialReq) ProtoMessage() {}
- func (*UpSpecialReq) Descriptor() ([]byte, []int) { return fileDescriptorRequest, []int{7} }
- func (m *UpSpecialReq) GetMid() int64 {
- if m != nil {
- return m.Mid
- }
- return 0
- }
- // UpsSpecialReq 多个up主特殊用户属性请求参数
- type UpsSpecialReq struct {
- // mids 多个用户id 必传 最大100个
- Mids []int64 `protobuf:"varint,1,rep,packed,name=mids" json:"mids,omitempty" form:"mids,split" validate:"min=1,max=100,required"`
- }
- func (m *UpsSpecialReq) Reset() { *m = UpsSpecialReq{} }
- func (m *UpsSpecialReq) String() string { return proto.CompactTextString(m) }
- func (*UpsSpecialReq) ProtoMessage() {}
- func (*UpsSpecialReq) Descriptor() ([]byte, []int) { return fileDescriptorRequest, []int{8} }
- func (m *UpsSpecialReq) GetMids() []int64 {
- if m != nil {
- return m.Mids
- }
- return nil
- }
- // UpGroupMidsReq 获取某个分组下的所有用户的请求参数
- type UpGroupMidsReq struct {
- // GroupID 分组ID
- GroupID int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" form:"group_id" validate:"min=1,required"`
- // pn 第几页 非必传
- Pn int `protobuf:"varint,2,opt,name=pn,proto3,casttype=int" json:"pn,omitempty" form:"pn" validate:"min=1,max=100" default:"1"`
- // ps 分页大小 非必传
- Ps int `protobuf:"varint,3,opt,name=ps,proto3,casttype=int" json:"ps,omitempty" form:"ps" validate:"min=1,max=10000" default:"1000"`
- }
- func (m *UpGroupMidsReq) Reset() { *m = UpGroupMidsReq{} }
- func (m *UpGroupMidsReq) String() string { return proto.CompactTextString(m) }
- func (*UpGroupMidsReq) ProtoMessage() {}
- func (*UpGroupMidsReq) Descriptor() ([]byte, []int) { return fileDescriptorRequest, []int{9} }
- func (m *UpGroupMidsReq) GetGroupID() int64 {
- if m != nil {
- return m.GroupID
- }
- return 0
- }
- func (m *UpGroupMidsReq) GetPn() int {
- if m != nil {
- return m.Pn
- }
- return 0
- }
- func (m *UpGroupMidsReq) GetPs() int {
- if m != nil {
- return m.Ps
- }
- return 0
- }
- // UpAttrReq 获取up主身份属性的请求参数
- type UpAttrReq struct {
- // mid 用户id 必传
- Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"min=1,required"`
- // from 0 - 稿件作者(至少有一个通过稿件); 1 - 移动投稿作者(至少有一个稿件);
- // 2 - live(直播up主); 3 - live(直播白名单)
- From uint8 `protobuf:"varint,2,opt,name=from,proto3,casttype=uint8" json:"from,omitempty" form:"from" validate:"min=0,max=1"`
- }
- func (m *UpAttrReq) Reset() { *m = UpAttrReq{} }
- func (m *UpAttrReq) String() string { return proto.CompactTextString(m) }
- func (*UpAttrReq) ProtoMessage() {}
- func (*UpAttrReq) Descriptor() ([]byte, []int) { return fileDescriptorRequest, []int{10} }
- func (m *UpAttrReq) GetMid() int64 {
- if m != nil {
- return m.Mid
- }
- return 0
- }
- func (m *UpAttrReq) GetFrom() uint8 {
- if m != nil {
- return m.From
- }
- return 0
- }
- // UpStatReq 获取up计数的请求参数
- type UpStatReq struct {
- // mid 用户id 必传
- Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"min=1,required"`
- // date 获取计数时间范围
- Date go_common_library_time.Time `protobuf:"varint,2,opt,name=date,proto3,casttype=go-common/library/time.Time" json:"date,omitempty" form:"date"`
- }
- func (m *UpStatReq) Reset() { *m = UpStatReq{} }
- func (m *UpStatReq) String() string { return proto.CompactTextString(m) }
- func (*UpStatReq) ProtoMessage() {}
- func (*UpStatReq) Descriptor() ([]byte, []int) { return fileDescriptorRequest, []int{11} }
- func (m *UpStatReq) GetMid() int64 {
- if m != nil {
- return m.Mid
- }
- return 0
- }
- func (m *UpStatReq) GetDate() go_common_library_time.Time {
- if m != nil {
- return m.Date
- }
- return 0
- }
- // UpSwitchReq 获取up主关注弹窗开关的请求参数
- type UpSwitchReq struct {
- // mid 用户id 必传
- Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"min=1,required"`
- // from 业务来源 0-播放器关注开关 1-up主荣誉周报是否退订
- From uint8 `protobuf:"varint,2,opt,name=from,proto3,casttype=uint8" json:"from,omitempty" form:"from"`
- // state 开关状态 0-关闭 1-打开
- State uint8 `protobuf:"varint,3,opt,name=state,proto3,casttype=uint8" json:"state,omitempty" form:"state" validate:"min=0,max=1"`
- }
- func (m *UpSwitchReq) Reset() { *m = UpSwitchReq{} }
- func (m *UpSwitchReq) String() string { return proto.CompactTextString(m) }
- func (*UpSwitchReq) ProtoMessage() {}
- func (*UpSwitchReq) Descriptor() ([]byte, []int) { return fileDescriptorRequest, []int{12} }
- func (m *UpSwitchReq) GetMid() int64 {
- if m != nil {
- return m.Mid
- }
- return 0
- }
- func (m *UpSwitchReq) GetFrom() uint8 {
- if m != nil {
- return m.From
- }
- return 0
- }
- func (m *UpSwitchReq) GetState() uint8 {
- if m != nil {
- return m.State
- }
- return 0
- }
- // HighAllyUpReq 高能联盟up主请求参数
- type HighAllyUpsReq struct {
- // mids 用户id数组 必传
- Mids []int64 `protobuf:"varint,1,rep,packed,name=mids" json:"mids,omitempty" form:"mids" validate:"required"`
- }
- func (m *HighAllyUpsReq) Reset() { *m = HighAllyUpsReq{} }
- func (m *HighAllyUpsReq) String() string { return proto.CompactTextString(m) }
- func (*HighAllyUpsReq) ProtoMessage() {}
- func (*HighAllyUpsReq) Descriptor() ([]byte, []int) { return fileDescriptorRequest, []int{13} }
- func (m *HighAllyUpsReq) GetMids() []int64 {
- if m != nil {
- return m.Mids
- }
- return nil
- }
- func init() {
- proto.RegisterType((*NoArgReq)(nil), "archive.service.up.v1.NoArgReq")
- proto.RegisterType((*UpArcsReq)(nil), "archive.service.up.v1.UpArcsReq")
- proto.RegisterType((*UpsArcsReq)(nil), "archive.service.up.v1.UpsArcsReq")
- proto.RegisterType((*UpCountReq)(nil), "archive.service.up.v1.UpCountReq")
- proto.RegisterType((*UpsCountReq)(nil), "archive.service.up.v1.UpsCountReq")
- proto.RegisterType((*UpCacheReq)(nil), "archive.service.up.v1.UpCacheReq")
- proto.RegisterType((*UpListByLastIDReq)(nil), "archive.service.up.v1.UpListByLastIDReq")
- proto.RegisterType((*UpSpecialReq)(nil), "archive.service.up.v1.UpSpecialReq")
- proto.RegisterType((*UpsSpecialReq)(nil), "archive.service.up.v1.UpsSpecialReq")
- proto.RegisterType((*UpGroupMidsReq)(nil), "archive.service.up.v1.UpGroupMidsReq")
- proto.RegisterType((*UpAttrReq)(nil), "archive.service.up.v1.UpAttrReq")
- proto.RegisterType((*UpStatReq)(nil), "archive.service.up.v1.UpStatReq")
- proto.RegisterType((*UpSwitchReq)(nil), "archive.service.up.v1.UpSwitchReq")
- proto.RegisterType((*HighAllyUpsReq)(nil), "archive.service.up.v1.HighAllyUpsReq")
- }
- func (m *NoArgReq) 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 *NoArgReq) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- return i, nil
- }
- func (m *UpArcsReq) 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 *UpArcsReq) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Mid != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.Mid))
- }
- if m.Pn != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.Pn))
- }
- if m.Ps != 0 {
- dAtA[i] = 0x18
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.Ps))
- }
- return i, nil
- }
- func (m *UpsArcsReq) 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 *UpsArcsReq) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if len(m.Mids) > 0 {
- dAtA2 := make([]byte, len(m.Mids)*10)
- var j1 int
- for _, num1 := range m.Mids {
- 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 = encodeVarintRequest(dAtA, i, uint64(j1))
- i += copy(dAtA[i:], dAtA2[:j1])
- }
- if m.Pn != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.Pn))
- }
- if m.Ps != 0 {
- dAtA[i] = 0x18
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.Ps))
- }
- return i, nil
- }
- func (m *UpCountReq) 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 *UpCountReq) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Mid != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.Mid))
- }
- return i, nil
- }
- func (m *UpsCountReq) 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 *UpsCountReq) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if len(m.Mids) > 0 {
- dAtA4 := make([]byte, len(m.Mids)*10)
- var j3 int
- for _, num1 := range m.Mids {
- num := uint64(num1)
- for num >= 1<<7 {
- dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80)
- num >>= 7
- j3++
- }
- dAtA4[j3] = uint8(num)
- j3++
- }
- dAtA[i] = 0xa
- i++
- i = encodeVarintRequest(dAtA, i, uint64(j3))
- i += copy(dAtA[i:], dAtA4[:j3])
- }
- return i, nil
- }
- func (m *UpCacheReq) 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 *UpCacheReq) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Mid != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.Mid))
- }
- if m.Aid != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.Aid))
- }
- return i, nil
- }
- func (m *UpListByLastIDReq) 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 *UpListByLastIDReq) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.LastID != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.LastID))
- }
- if m.Ps != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.Ps))
- }
- return i, nil
- }
- func (m *UpSpecialReq) 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 *UpSpecialReq) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Mid != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.Mid))
- }
- return i, nil
- }
- func (m *UpsSpecialReq) 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 *UpsSpecialReq) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if len(m.Mids) > 0 {
- dAtA6 := make([]byte, len(m.Mids)*10)
- var j5 int
- for _, num1 := range m.Mids {
- num := uint64(num1)
- for num >= 1<<7 {
- dAtA6[j5] = uint8(uint64(num)&0x7f | 0x80)
- num >>= 7
- j5++
- }
- dAtA6[j5] = uint8(num)
- j5++
- }
- dAtA[i] = 0xa
- i++
- i = encodeVarintRequest(dAtA, i, uint64(j5))
- i += copy(dAtA[i:], dAtA6[:j5])
- }
- return i, nil
- }
- func (m *UpGroupMidsReq) 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 *UpGroupMidsReq) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.GroupID != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.GroupID))
- }
- if m.Pn != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.Pn))
- }
- if m.Ps != 0 {
- dAtA[i] = 0x18
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.Ps))
- }
- return i, nil
- }
- func (m *UpAttrReq) 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 *UpAttrReq) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Mid != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.Mid))
- }
- if m.From != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.From))
- }
- return i, nil
- }
- func (m *UpStatReq) 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 *UpStatReq) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Mid != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.Mid))
- }
- if m.Date != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.Date))
- }
- return i, nil
- }
- func (m *UpSwitchReq) 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 *UpSwitchReq) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Mid != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.Mid))
- }
- if m.From != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.From))
- }
- if m.State != 0 {
- dAtA[i] = 0x18
- i++
- i = encodeVarintRequest(dAtA, i, uint64(m.State))
- }
- return i, nil
- }
- func (m *HighAllyUpsReq) 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 *HighAllyUpsReq) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if len(m.Mids) > 0 {
- dAtA8 := make([]byte, len(m.Mids)*10)
- var j7 int
- for _, num1 := range m.Mids {
- num := uint64(num1)
- for num >= 1<<7 {
- dAtA8[j7] = uint8(uint64(num)&0x7f | 0x80)
- num >>= 7
- j7++
- }
- dAtA8[j7] = uint8(num)
- j7++
- }
- dAtA[i] = 0xa
- i++
- i = encodeVarintRequest(dAtA, i, uint64(j7))
- i += copy(dAtA[i:], dAtA8[:j7])
- }
- return i, nil
- }
- func encodeVarintRequest(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 *NoArgReq) Size() (n int) {
- var l int
- _ = l
- return n
- }
- func (m *UpArcsReq) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovRequest(uint64(m.Mid))
- }
- if m.Pn != 0 {
- n += 1 + sovRequest(uint64(m.Pn))
- }
- if m.Ps != 0 {
- n += 1 + sovRequest(uint64(m.Ps))
- }
- return n
- }
- func (m *UpsArcsReq) Size() (n int) {
- var l int
- _ = l
- if len(m.Mids) > 0 {
- l = 0
- for _, e := range m.Mids {
- l += sovRequest(uint64(e))
- }
- n += 1 + sovRequest(uint64(l)) + l
- }
- if m.Pn != 0 {
- n += 1 + sovRequest(uint64(m.Pn))
- }
- if m.Ps != 0 {
- n += 1 + sovRequest(uint64(m.Ps))
- }
- return n
- }
- func (m *UpCountReq) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovRequest(uint64(m.Mid))
- }
- return n
- }
- func (m *UpsCountReq) Size() (n int) {
- var l int
- _ = l
- if len(m.Mids) > 0 {
- l = 0
- for _, e := range m.Mids {
- l += sovRequest(uint64(e))
- }
- n += 1 + sovRequest(uint64(l)) + l
- }
- return n
- }
- func (m *UpCacheReq) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovRequest(uint64(m.Mid))
- }
- if m.Aid != 0 {
- n += 1 + sovRequest(uint64(m.Aid))
- }
- return n
- }
- func (m *UpListByLastIDReq) Size() (n int) {
- var l int
- _ = l
- if m.LastID != 0 {
- n += 1 + sovRequest(uint64(m.LastID))
- }
- if m.Ps != 0 {
- n += 1 + sovRequest(uint64(m.Ps))
- }
- return n
- }
- func (m *UpSpecialReq) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovRequest(uint64(m.Mid))
- }
- return n
- }
- func (m *UpsSpecialReq) Size() (n int) {
- var l int
- _ = l
- if len(m.Mids) > 0 {
- l = 0
- for _, e := range m.Mids {
- l += sovRequest(uint64(e))
- }
- n += 1 + sovRequest(uint64(l)) + l
- }
- return n
- }
- func (m *UpGroupMidsReq) Size() (n int) {
- var l int
- _ = l
- if m.GroupID != 0 {
- n += 1 + sovRequest(uint64(m.GroupID))
- }
- if m.Pn != 0 {
- n += 1 + sovRequest(uint64(m.Pn))
- }
- if m.Ps != 0 {
- n += 1 + sovRequest(uint64(m.Ps))
- }
- return n
- }
- func (m *UpAttrReq) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovRequest(uint64(m.Mid))
- }
- if m.From != 0 {
- n += 1 + sovRequest(uint64(m.From))
- }
- return n
- }
- func (m *UpStatReq) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovRequest(uint64(m.Mid))
- }
- if m.Date != 0 {
- n += 1 + sovRequest(uint64(m.Date))
- }
- return n
- }
- func (m *UpSwitchReq) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovRequest(uint64(m.Mid))
- }
- if m.From != 0 {
- n += 1 + sovRequest(uint64(m.From))
- }
- if m.State != 0 {
- n += 1 + sovRequest(uint64(m.State))
- }
- return n
- }
- func (m *HighAllyUpsReq) Size() (n int) {
- var l int
- _ = l
- if len(m.Mids) > 0 {
- l = 0
- for _, e := range m.Mids {
- l += sovRequest(uint64(e))
- }
- n += 1 + sovRequest(uint64(l)) + l
- }
- return n
- }
- func sovRequest(x uint64) (n int) {
- for {
- n++
- x >>= 7
- if x == 0 {
- break
- }
- }
- return n
- }
- func sozRequest(x uint64) (n int) {
- return sovRequest(uint64((x << 1) ^ uint64((int64(x) >> 63))))
- }
- func (m *NoArgReq) 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 ErrIntOverflowRequest
- }
- 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: NoArgReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: NoArgReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipRequest(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRequest
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *UpArcsReq) 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 ErrIntOverflowRequest
- }
- 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: UpArcsReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: UpArcsReq: 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 ErrIntOverflowRequest
- }
- 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 Pn", wireType)
- }
- m.Pn = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Pn |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ps", wireType)
- }
- m.Ps = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Ps |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipRequest(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRequest
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *UpsArcsReq) 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 ErrIntOverflowRequest
- }
- 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: UpsArcsReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: UpsArcsReq: 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 ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Mids = append(m.Mids, v)
- } else if wireType == 2 {
- var packedLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- packedLen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if packedLen < 0 {
- return ErrInvalidLengthRequest
- }
- 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 ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Mids = append(m.Mids, v)
- }
- } else {
- return fmt.Errorf("proto: wrong wireType = %d for field Mids", wireType)
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Pn", wireType)
- }
- m.Pn = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Pn |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ps", wireType)
- }
- m.Ps = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Ps |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipRequest(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRequest
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *UpCountReq) 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 ErrIntOverflowRequest
- }
- 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: UpCountReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: UpCountReq: 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 ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Mid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipRequest(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRequest
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *UpsCountReq) 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 ErrIntOverflowRequest
- }
- 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: UpsCountReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: UpsCountReq: 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 ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Mids = append(m.Mids, v)
- } else if wireType == 2 {
- var packedLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- packedLen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if packedLen < 0 {
- return ErrInvalidLengthRequest
- }
- 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 ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Mids = append(m.Mids, v)
- }
- } else {
- return fmt.Errorf("proto: wrong wireType = %d for field Mids", wireType)
- }
- default:
- iNdEx = preIndex
- skippy, err := skipRequest(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRequest
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *UpCacheReq) 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 ErrIntOverflowRequest
- }
- 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: UpCacheReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: UpCacheReq: 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 ErrIntOverflowRequest
- }
- 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 Aid", wireType)
- }
- m.Aid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Aid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipRequest(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRequest
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *UpListByLastIDReq) 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 ErrIntOverflowRequest
- }
- 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: UpListByLastIDReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: UpListByLastIDReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field LastID", wireType)
- }
- m.LastID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.LastID |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ps", wireType)
- }
- m.Ps = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Ps |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipRequest(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRequest
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *UpSpecialReq) 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 ErrIntOverflowRequest
- }
- 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: UpSpecialReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: UpSpecialReq: 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 ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Mid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipRequest(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRequest
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *UpsSpecialReq) 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 ErrIntOverflowRequest
- }
- 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: UpsSpecialReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: UpsSpecialReq: 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 ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Mids = append(m.Mids, v)
- } else if wireType == 2 {
- var packedLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- packedLen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if packedLen < 0 {
- return ErrInvalidLengthRequest
- }
- 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 ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Mids = append(m.Mids, v)
- }
- } else {
- return fmt.Errorf("proto: wrong wireType = %d for field Mids", wireType)
- }
- default:
- iNdEx = preIndex
- skippy, err := skipRequest(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRequest
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *UpGroupMidsReq) 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 ErrIntOverflowRequest
- }
- 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: UpGroupMidsReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: UpGroupMidsReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupID", wireType)
- }
- m.GroupID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupID |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Pn", wireType)
- }
- m.Pn = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Pn |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ps", wireType)
- }
- m.Ps = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Ps |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipRequest(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRequest
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *UpAttrReq) 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 ErrIntOverflowRequest
- }
- 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: UpAttrReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: UpAttrReq: 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 ErrIntOverflowRequest
- }
- 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 From", wireType)
- }
- m.From = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.From |= (uint8(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipRequest(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRequest
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *UpStatReq) 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 ErrIntOverflowRequest
- }
- 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: UpStatReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: UpStatReq: 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 ErrIntOverflowRequest
- }
- 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 Date", wireType)
- }
- m.Date = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Date |= (go_common_library_time.Time(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipRequest(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRequest
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *UpSwitchReq) 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 ErrIntOverflowRequest
- }
- 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: UpSwitchReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: UpSwitchReq: 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 ErrIntOverflowRequest
- }
- 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 From", wireType)
- }
- m.From = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.From |= (uint8(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- 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 ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.State |= (uint8(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipRequest(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRequest
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *HighAllyUpsReq) 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 ErrIntOverflowRequest
- }
- 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: HighAllyUpsReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: HighAllyUpsReq: 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 ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Mids = append(m.Mids, v)
- } else if wireType == 2 {
- var packedLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- packedLen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if packedLen < 0 {
- return ErrInvalidLengthRequest
- }
- 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 ErrIntOverflowRequest
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Mids = append(m.Mids, v)
- }
- } else {
- return fmt.Errorf("proto: wrong wireType = %d for field Mids", wireType)
- }
- default:
- iNdEx = preIndex
- skippy, err := skipRequest(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRequest
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func skipRequest(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, ErrIntOverflowRequest
- }
- 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, ErrIntOverflowRequest
- }
- 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, ErrIntOverflowRequest
- }
- 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, ErrInvalidLengthRequest
- }
- return iNdEx, nil
- case 3:
- for {
- var innerWire uint64
- var start int = iNdEx
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowRequest
- }
- 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 := skipRequest(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 (
- ErrInvalidLengthRequest = fmt.Errorf("proto: negative length found during unmarshaling")
- ErrIntOverflowRequest = fmt.Errorf("proto: integer overflow")
- )
- func init() { proto.RegisterFile("app/service/main/up/api/v1/request.proto", fileDescriptorRequest) }
- var fileDescriptorRequest = []byte{
- // 736 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x95, 0xcd, 0x6e, 0xd3, 0x4a,
- 0x14, 0xc7, 0xe5, 0xa4, 0x5f, 0x77, 0x7a, 0x6f, 0x75, 0xaf, 0xa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