api.pb.go 94 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/main/sms/api/api.proto
  3. /*
  4. Package v1 is a generated protocol buffer package.
  5. It is generated from these files:
  6. app/service/main/sms/api/api.proto
  7. It has these top-level messages:
  8. AddTemplateReply
  9. AddTemplateReq
  10. TemplateListReply
  11. TemplateListReq
  12. UpdateTemplateReply
  13. UpdateTemplateReq
  14. SendReply
  15. SendReq
  16. SendBatchReply
  17. SendBatchReq
  18. AddTaskReq
  19. AddTaskReply
  20. UpdateTaskReq
  21. UpdateTaskReply
  22. DeleteTaskReq
  23. DeleteTaskReply
  24. TaskInfoReq
  25. TaskInfoReply
  26. TaskListReq
  27. TaskListReply
  28. */
  29. package v1
  30. import proto "github.com/gogo/protobuf/proto"
  31. import fmt "fmt"
  32. import math "math"
  33. import sms_service_model "go-common/app/service/main/sms/model"
  34. import _ "github.com/gogo/protobuf/gogoproto"
  35. import context "golang.org/x/net/context"
  36. import grpc "google.golang.org/grpc"
  37. import io "io"
  38. // Reference imports to suppress errors if they are not otherwise used.
  39. var _ = proto.Marshal
  40. var _ = fmt.Errorf
  41. var _ = math.Inf
  42. // This is a compile-time assertion to ensure that this generated file
  43. // is compatible with the proto package it is being compiled against.
  44. // A compilation error at this line likely means your copy of the
  45. // proto package needs to be updated.
  46. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  47. type AddTemplateReply struct {
  48. }
  49. func (m *AddTemplateReply) Reset() { *m = AddTemplateReply{} }
  50. func (m *AddTemplateReply) String() string { return proto.CompactTextString(m) }
  51. func (*AddTemplateReply) ProtoMessage() {}
  52. func (*AddTemplateReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{0} }
  53. type AddTemplateReq struct {
  54. Stype int32 `protobuf:"varint,1,opt,name=stype,proto3" json:"stype,omitempty" form:"type" validate:"required,min=1"`
  55. Tcode string `protobuf:"bytes,2,opt,name=tcode,proto3" json:"tcode,omitempty" form:"code" validate:"required"`
  56. Template string `protobuf:"bytes,3,opt,name=template,proto3" json:"template,omitempty" form:"content" validate:"required"`
  57. Submitter string `protobuf:"bytes,5,opt,name=submitter,proto3" json:"submitter,omitempty" form:"submitter"`
  58. }
  59. func (m *AddTemplateReq) Reset() { *m = AddTemplateReq{} }
  60. func (m *AddTemplateReq) String() string { return proto.CompactTextString(m) }
  61. func (*AddTemplateReq) ProtoMessage() {}
  62. func (*AddTemplateReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{1} }
  63. func (m *AddTemplateReq) GetStype() int32 {
  64. if m != nil {
  65. return m.Stype
  66. }
  67. return 0
  68. }
  69. func (m *AddTemplateReq) GetTcode() string {
  70. if m != nil {
  71. return m.Tcode
  72. }
  73. return ""
  74. }
  75. func (m *AddTemplateReq) GetTemplate() string {
  76. if m != nil {
  77. return m.Template
  78. }
  79. return ""
  80. }
  81. func (m *AddTemplateReq) GetSubmitter() string {
  82. if m != nil {
  83. return m.Submitter
  84. }
  85. return ""
  86. }
  87. type TemplateListReply struct {
  88. List []*sms_service_model.ModelTemplate `protobuf:"bytes,1,rep,name=list" json:"list,omitempty"`
  89. Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
  90. }
  91. func (m *TemplateListReply) Reset() { *m = TemplateListReply{} }
  92. func (m *TemplateListReply) String() string { return proto.CompactTextString(m) }
  93. func (*TemplateListReply) ProtoMessage() {}
  94. func (*TemplateListReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{2} }
  95. func (m *TemplateListReply) GetList() []*sms_service_model.ModelTemplate {
  96. if m != nil {
  97. return m.List
  98. }
  99. return nil
  100. }
  101. func (m *TemplateListReply) GetTotal() int32 {
  102. if m != nil {
  103. return m.Total
  104. }
  105. return 0
  106. }
  107. type TemplateListReq struct {
  108. Pn int32 `protobuf:"varint,1,opt,name=pn,proto3" json:"pn,omitempty" form:"pn" default:"1"`
  109. Ps int32 `protobuf:"varint,2,opt,name=ps,proto3" json:"ps,omitempty" form:"ps" default:"10"`
  110. St string `protobuf:"bytes,3,opt,name=st,proto3" json:"st,omitempty" form:"st"`
  111. Sw string `protobuf:"bytes,4,opt,name=sw,proto3" json:"sw,omitempty" form:"sw"`
  112. }
  113. func (m *TemplateListReq) Reset() { *m = TemplateListReq{} }
  114. func (m *TemplateListReq) String() string { return proto.CompactTextString(m) }
  115. func (*TemplateListReq) ProtoMessage() {}
  116. func (*TemplateListReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{3} }
  117. func (m *TemplateListReq) GetPn() int32 {
  118. if m != nil {
  119. return m.Pn
  120. }
  121. return 0
  122. }
  123. func (m *TemplateListReq) GetPs() int32 {
  124. if m != nil {
  125. return m.Ps
  126. }
  127. return 0
  128. }
  129. func (m *TemplateListReq) GetSt() string {
  130. if m != nil {
  131. return m.St
  132. }
  133. return ""
  134. }
  135. func (m *TemplateListReq) GetSw() string {
  136. if m != nil {
  137. return m.Sw
  138. }
  139. return ""
  140. }
  141. type UpdateTemplateReply struct {
  142. }
  143. func (m *UpdateTemplateReply) Reset() { *m = UpdateTemplateReply{} }
  144. func (m *UpdateTemplateReply) String() string { return proto.CompactTextString(m) }
  145. func (*UpdateTemplateReply) ProtoMessage() {}
  146. func (*UpdateTemplateReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{4} }
  147. type UpdateTemplateReq struct {
  148. ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" form:"id" validate:"required,min=1"`
  149. Stype int32 `protobuf:"varint,2,opt,name=stype,proto3" json:"stype,omitempty" form:"type" validate:"required,min=1"`
  150. Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty" form:"status"`
  151. Tcode string `protobuf:"bytes,4,opt,name=tcode,proto3" json:"tcode,omitempty" form:"code" validate:"required"`
  152. Template string `protobuf:"bytes,5,opt,name=template,proto3" json:"template,omitempty" form:"content" validate:"required"`
  153. Submitter string `protobuf:"bytes,6,opt,name=submitter,proto3" json:"submitter,omitempty" form:"submitter"`
  154. }
  155. func (m *UpdateTemplateReq) Reset() { *m = UpdateTemplateReq{} }
  156. func (m *UpdateTemplateReq) String() string { return proto.CompactTextString(m) }
  157. func (*UpdateTemplateReq) ProtoMessage() {}
  158. func (*UpdateTemplateReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{5} }
  159. func (m *UpdateTemplateReq) GetID() int64 {
  160. if m != nil {
  161. return m.ID
  162. }
  163. return 0
  164. }
  165. func (m *UpdateTemplateReq) GetStype() int32 {
  166. if m != nil {
  167. return m.Stype
  168. }
  169. return 0
  170. }
  171. func (m *UpdateTemplateReq) GetStatus() int32 {
  172. if m != nil {
  173. return m.Status
  174. }
  175. return 0
  176. }
  177. func (m *UpdateTemplateReq) GetTcode() string {
  178. if m != nil {
  179. return m.Tcode
  180. }
  181. return ""
  182. }
  183. func (m *UpdateTemplateReq) GetTemplate() string {
  184. if m != nil {
  185. return m.Template
  186. }
  187. return ""
  188. }
  189. func (m *UpdateTemplateReq) GetSubmitter() string {
  190. if m != nil {
  191. return m.Submitter
  192. }
  193. return ""
  194. }
  195. type SendReply struct {
  196. }
  197. func (m *SendReply) Reset() { *m = SendReply{} }
  198. func (m *SendReply) String() string { return proto.CompactTextString(m) }
  199. func (*SendReply) ProtoMessage() {}
  200. func (*SendReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{6} }
  201. type SendReq struct {
  202. Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid"`
  203. Mobile string `protobuf:"bytes,2,opt,name=mobile,proto3" json:"mobile,omitempty" form:"mobile"`
  204. Country string `protobuf:"bytes,3,opt,name=country,proto3" json:"country,omitempty" form:"country"`
  205. Tcode string `protobuf:"bytes,4,opt,name=tcode,proto3" json:"tcode,omitempty" form:"tcode"`
  206. Tparam string `protobuf:"bytes,5,opt,name=tparam,proto3" json:"tparam,omitempty" form:"tparam"`
  207. }
  208. func (m *SendReq) Reset() { *m = SendReq{} }
  209. func (m *SendReq) String() string { return proto.CompactTextString(m) }
  210. func (*SendReq) ProtoMessage() {}
  211. func (*SendReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{7} }
  212. func (m *SendReq) GetMid() int64 {
  213. if m != nil {
  214. return m.Mid
  215. }
  216. return 0
  217. }
  218. func (m *SendReq) GetMobile() string {
  219. if m != nil {
  220. return m.Mobile
  221. }
  222. return ""
  223. }
  224. func (m *SendReq) GetCountry() string {
  225. if m != nil {
  226. return m.Country
  227. }
  228. return ""
  229. }
  230. func (m *SendReq) GetTcode() string {
  231. if m != nil {
  232. return m.Tcode
  233. }
  234. return ""
  235. }
  236. func (m *SendReq) GetTparam() string {
  237. if m != nil {
  238. return m.Tparam
  239. }
  240. return ""
  241. }
  242. type SendBatchReply struct {
  243. }
  244. func (m *SendBatchReply) Reset() { *m = SendBatchReply{} }
  245. func (m *SendBatchReply) String() string { return proto.CompactTextString(m) }
  246. func (*SendBatchReply) ProtoMessage() {}
  247. func (*SendBatchReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{8} }
  248. type SendBatchReq struct {
  249. Mids []int64 `protobuf:"varint,1,rep,packed,name=mids" json:"mids,omitempty" form:"mids,split"`
  250. Mobiles []string `protobuf:"bytes,2,rep,name=mobiles" json:"mobiles,omitempty" form:"mobiles,split"`
  251. Tcode string `protobuf:"bytes,3,opt,name=tcode,proto3" json:"tcode,omitempty" form:"tcode"`
  252. Tparam string `protobuf:"bytes,4,opt,name=tparam,proto3" json:"tparam,omitempty" form:"tparam"`
  253. }
  254. func (m *SendBatchReq) Reset() { *m = SendBatchReq{} }
  255. func (m *SendBatchReq) String() string { return proto.CompactTextString(m) }
  256. func (*SendBatchReq) ProtoMessage() {}
  257. func (*SendBatchReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{9} }
  258. func (m *SendBatchReq) GetMids() []int64 {
  259. if m != nil {
  260. return m.Mids
  261. }
  262. return nil
  263. }
  264. func (m *SendBatchReq) GetMobiles() []string {
  265. if m != nil {
  266. return m.Mobiles
  267. }
  268. return nil
  269. }
  270. func (m *SendBatchReq) GetTcode() string {
  271. if m != nil {
  272. return m.Tcode
  273. }
  274. return ""
  275. }
  276. func (m *SendBatchReq) GetTparam() string {
  277. if m != nil {
  278. return m.Tparam
  279. }
  280. return ""
  281. }
  282. type AddTaskReq struct {
  283. Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty" form:"type" validate:"required,min=1"`
  284. BusinessID int32 `protobuf:"varint,2,opt,name=business_id,json=businessId,proto3" json:"business_id,omitempty" form:"business_id"`
  285. TemplateCode string `protobuf:"bytes,3,opt,name=template_code,json=templateCode,proto3" json:"template_code,omitempty" form:"template_code" validate:"required"`
  286. Desc string `protobuf:"bytes,4,opt,name=desc,proto3" json:"desc,omitempty" form:"desc"`
  287. FileName string `protobuf:"bytes,5,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty" form:"file_name" validate:"required"`
  288. FilePath string `protobuf:"bytes,6,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty" form:"file_path" validate:"required"`
  289. SendTime int64 `protobuf:"varint,7,opt,name=send_time,json=sendTime,proto3" json:"send_time,omitempty" form:"send_time" validate:"required,min=1"`
  290. }
  291. func (m *AddTaskReq) Reset() { *m = AddTaskReq{} }
  292. func (m *AddTaskReq) String() string { return proto.CompactTextString(m) }
  293. func (*AddTaskReq) ProtoMessage() {}
  294. func (*AddTaskReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{10} }
  295. func (m *AddTaskReq) GetType() int32 {
  296. if m != nil {
  297. return m.Type
  298. }
  299. return 0
  300. }
  301. func (m *AddTaskReq) GetBusinessID() int32 {
  302. if m != nil {
  303. return m.BusinessID
  304. }
  305. return 0
  306. }
  307. func (m *AddTaskReq) GetTemplateCode() string {
  308. if m != nil {
  309. return m.TemplateCode
  310. }
  311. return ""
  312. }
  313. func (m *AddTaskReq) GetDesc() string {
  314. if m != nil {
  315. return m.Desc
  316. }
  317. return ""
  318. }
  319. func (m *AddTaskReq) GetFileName() string {
  320. if m != nil {
  321. return m.FileName
  322. }
  323. return ""
  324. }
  325. func (m *AddTaskReq) GetFilePath() string {
  326. if m != nil {
  327. return m.FilePath
  328. }
  329. return ""
  330. }
  331. func (m *AddTaskReq) GetSendTime() int64 {
  332. if m != nil {
  333. return m.SendTime
  334. }
  335. return 0
  336. }
  337. type AddTaskReply struct {
  338. }
  339. func (m *AddTaskReply) Reset() { *m = AddTaskReply{} }
  340. func (m *AddTaskReply) String() string { return proto.CompactTextString(m) }
  341. func (*AddTaskReply) ProtoMessage() {}
  342. func (*AddTaskReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{11} }
  343. type UpdateTaskReq struct {
  344. ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" form:"id"`
  345. Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty" form:"type" validate:"required,min=1"`
  346. BusinessID int32 `protobuf:"varint,3,opt,name=business_id,json=businessId,proto3" json:"business_id,omitempty" form:"business_id"`
  347. TemplateCode string `protobuf:"bytes,4,opt,name=template_code,json=templateCode,proto3" json:"template_code,omitempty" form:"template_code" validate:"required"`
  348. Desc string `protobuf:"bytes,5,opt,name=desc,proto3" json:"desc,omitempty" form:"desc"`
  349. FileName string `protobuf:"bytes,6,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty" form:"file_name" validate:"required"`
  350. FilePath string `protobuf:"bytes,7,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty" form:"file_path" validate:"required"`
  351. SendTime int64 `protobuf:"varint,8,opt,name=send_time,json=sendTime,proto3" json:"send_time,omitempty" form:"send_time" validate:"required,min=1"`
  352. }
  353. func (m *UpdateTaskReq) Reset() { *m = UpdateTaskReq{} }
  354. func (m *UpdateTaskReq) String() string { return proto.CompactTextString(m) }
  355. func (*UpdateTaskReq) ProtoMessage() {}
  356. func (*UpdateTaskReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{12} }
  357. func (m *UpdateTaskReq) GetID() int64 {
  358. if m != nil {
  359. return m.ID
  360. }
  361. return 0
  362. }
  363. func (m *UpdateTaskReq) GetType() int32 {
  364. if m != nil {
  365. return m.Type
  366. }
  367. return 0
  368. }
  369. func (m *UpdateTaskReq) GetBusinessID() int32 {
  370. if m != nil {
  371. return m.BusinessID
  372. }
  373. return 0
  374. }
  375. func (m *UpdateTaskReq) GetTemplateCode() string {
  376. if m != nil {
  377. return m.TemplateCode
  378. }
  379. return ""
  380. }
  381. func (m *UpdateTaskReq) GetDesc() string {
  382. if m != nil {
  383. return m.Desc
  384. }
  385. return ""
  386. }
  387. func (m *UpdateTaskReq) GetFileName() string {
  388. if m != nil {
  389. return m.FileName
  390. }
  391. return ""
  392. }
  393. func (m *UpdateTaskReq) GetFilePath() string {
  394. if m != nil {
  395. return m.FilePath
  396. }
  397. return ""
  398. }
  399. func (m *UpdateTaskReq) GetSendTime() int64 {
  400. if m != nil {
  401. return m.SendTime
  402. }
  403. return 0
  404. }
  405. type UpdateTaskReply struct {
  406. }
  407. func (m *UpdateTaskReply) Reset() { *m = UpdateTaskReply{} }
  408. func (m *UpdateTaskReply) String() string { return proto.CompactTextString(m) }
  409. func (*UpdateTaskReply) ProtoMessage() {}
  410. func (*UpdateTaskReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{13} }
  411. type DeleteTaskReq struct {
  412. ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" form:"id"`
  413. }
  414. func (m *DeleteTaskReq) Reset() { *m = DeleteTaskReq{} }
  415. func (m *DeleteTaskReq) String() string { return proto.CompactTextString(m) }
  416. func (*DeleteTaskReq) ProtoMessage() {}
  417. func (*DeleteTaskReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{14} }
  418. func (m *DeleteTaskReq) GetID() int64 {
  419. if m != nil {
  420. return m.ID
  421. }
  422. return 0
  423. }
  424. type DeleteTaskReply struct {
  425. }
  426. func (m *DeleteTaskReply) Reset() { *m = DeleteTaskReply{} }
  427. func (m *DeleteTaskReply) String() string { return proto.CompactTextString(m) }
  428. func (*DeleteTaskReply) ProtoMessage() {}
  429. func (*DeleteTaskReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{15} }
  430. type TaskInfoReq struct {
  431. ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" form:"id"`
  432. }
  433. func (m *TaskInfoReq) Reset() { *m = TaskInfoReq{} }
  434. func (m *TaskInfoReq) String() string { return proto.CompactTextString(m) }
  435. func (*TaskInfoReq) ProtoMessage() {}
  436. func (*TaskInfoReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{16} }
  437. func (m *TaskInfoReq) GetID() int64 {
  438. if m != nil {
  439. return m.ID
  440. }
  441. return 0
  442. }
  443. type TaskInfoReply struct {
  444. Info *sms_service_model.ModelTask `protobuf:"bytes,1,opt,name=info" json:"info,omitempty"`
  445. }
  446. func (m *TaskInfoReply) Reset() { *m = TaskInfoReply{} }
  447. func (m *TaskInfoReply) String() string { return proto.CompactTextString(m) }
  448. func (*TaskInfoReply) ProtoMessage() {}
  449. func (*TaskInfoReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{17} }
  450. func (m *TaskInfoReply) GetInfo() *sms_service_model.ModelTask {
  451. if m != nil {
  452. return m.Info
  453. }
  454. return nil
  455. }
  456. type TaskListReq struct {
  457. Pn int32 `protobuf:"varint,1,opt,name=pn,proto3" json:"pn,omitempty" form:"pn" default:"1"`
  458. Ps int32 `protobuf:"varint,2,opt,name=ps,proto3" json:"ps,omitempty" form:"ps" default:"20"`
  459. }
  460. func (m *TaskListReq) Reset() { *m = TaskListReq{} }
  461. func (m *TaskListReq) String() string { return proto.CompactTextString(m) }
  462. func (*TaskListReq) ProtoMessage() {}
  463. func (*TaskListReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{18} }
  464. func (m *TaskListReq) GetPn() int32 {
  465. if m != nil {
  466. return m.Pn
  467. }
  468. return 0
  469. }
  470. func (m *TaskListReq) GetPs() int32 {
  471. if m != nil {
  472. return m.Ps
  473. }
  474. return 0
  475. }
  476. type TaskListReply struct {
  477. List []*sms_service_model.ModelTask `protobuf:"bytes,1,rep,name=list" json:"list,omitempty"`
  478. Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
  479. }
  480. func (m *TaskListReply) Reset() { *m = TaskListReply{} }
  481. func (m *TaskListReply) String() string { return proto.CompactTextString(m) }
  482. func (*TaskListReply) ProtoMessage() {}
  483. func (*TaskListReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{19} }
  484. func (m *TaskListReply) GetList() []*sms_service_model.ModelTask {
  485. if m != nil {
  486. return m.List
  487. }
  488. return nil
  489. }
  490. func (m *TaskListReply) GetTotal() int32 {
  491. if m != nil {
  492. return m.Total
  493. }
  494. return 0
  495. }
  496. func init() {
  497. proto.RegisterType((*AddTemplateReply)(nil), "sms.service.v1.AddTemplateReply")
  498. proto.RegisterType((*AddTemplateReq)(nil), "sms.service.v1.AddTemplateReq")
  499. proto.RegisterType((*TemplateListReply)(nil), "sms.service.v1.TemplateListReply")
  500. proto.RegisterType((*TemplateListReq)(nil), "sms.service.v1.TemplateListReq")
  501. proto.RegisterType((*UpdateTemplateReply)(nil), "sms.service.v1.UpdateTemplateReply")
  502. proto.RegisterType((*UpdateTemplateReq)(nil), "sms.service.v1.UpdateTemplateReq")
  503. proto.RegisterType((*SendReply)(nil), "sms.service.v1.SendReply")
  504. proto.RegisterType((*SendReq)(nil), "sms.service.v1.SendReq")
  505. proto.RegisterType((*SendBatchReply)(nil), "sms.service.v1.SendBatchReply")
  506. proto.RegisterType((*SendBatchReq)(nil), "sms.service.v1.SendBatchReq")
  507. proto.RegisterType((*AddTaskReq)(nil), "sms.service.v1.AddTaskReq")
  508. proto.RegisterType((*AddTaskReply)(nil), "sms.service.v1.AddTaskReply")
  509. proto.RegisterType((*UpdateTaskReq)(nil), "sms.service.v1.UpdateTaskReq")
  510. proto.RegisterType((*UpdateTaskReply)(nil), "sms.service.v1.UpdateTaskReply")
  511. proto.RegisterType((*DeleteTaskReq)(nil), "sms.service.v1.DeleteTaskReq")
  512. proto.RegisterType((*DeleteTaskReply)(nil), "sms.service.v1.DeleteTaskReply")
  513. proto.RegisterType((*TaskInfoReq)(nil), "sms.service.v1.TaskInfoReq")
  514. proto.RegisterType((*TaskInfoReply)(nil), "sms.service.v1.TaskInfoReply")
  515. proto.RegisterType((*TaskListReq)(nil), "sms.service.v1.TaskListReq")
  516. proto.RegisterType((*TaskListReply)(nil), "sms.service.v1.TaskListReply")
  517. }
  518. // Reference imports to suppress errors if they are not otherwise used.
  519. var _ context.Context
  520. var _ grpc.ClientConn
  521. // This is a compile-time assertion to ensure that this generated file
  522. // is compatible with the grpc package it is being compiled against.
  523. const _ = grpc.SupportPackageIsVersion4
  524. // Client API for Sms service
  525. type SmsClient interface {
  526. // Send send sms
  527. Send(ctx context.Context, in *SendReq, opts ...grpc.CallOption) (*SendReply, error)
  528. // SendBatch send sms batch
  529. SendBatch(ctx context.Context, in *SendBatchReq, opts ...grpc.CallOption) (*SendBatchReply, error)
  530. }
  531. type smsClient struct {
  532. cc *grpc.ClientConn
  533. }
  534. func NewSmsClient(cc *grpc.ClientConn) SmsClient {
  535. return &smsClient{cc}
  536. }
  537. func (c *smsClient) Send(ctx context.Context, in *SendReq, opts ...grpc.CallOption) (*SendReply, error) {
  538. out := new(SendReply)
  539. err := grpc.Invoke(ctx, "/sms.service.v1.Sms/Send", in, out, c.cc, opts...)
  540. if err != nil {
  541. return nil, err
  542. }
  543. return out, nil
  544. }
  545. func (c *smsClient) SendBatch(ctx context.Context, in *SendBatchReq, opts ...grpc.CallOption) (*SendBatchReply, error) {
  546. out := new(SendBatchReply)
  547. err := grpc.Invoke(ctx, "/sms.service.v1.Sms/SendBatch", in, out, c.cc, opts...)
  548. if err != nil {
  549. return nil, err
  550. }
  551. return out, nil
  552. }
  553. // Server API for Sms service
  554. type SmsServer interface {
  555. // Send send sms
  556. Send(context.Context, *SendReq) (*SendReply, error)
  557. // SendBatch send sms batch
  558. SendBatch(context.Context, *SendBatchReq) (*SendBatchReply, error)
  559. }
  560. func RegisterSmsServer(s *grpc.Server, srv SmsServer) {
  561. s.RegisterService(&_Sms_serviceDesc, srv)
  562. }
  563. func _Sms_Send_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  564. in := new(SendReq)
  565. if err := dec(in); err != nil {
  566. return nil, err
  567. }
  568. if interceptor == nil {
  569. return srv.(SmsServer).Send(ctx, in)
  570. }
  571. info := &grpc.UnaryServerInfo{
  572. Server: srv,
  573. FullMethod: "/sms.service.v1.Sms/Send",
  574. }
  575. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  576. return srv.(SmsServer).Send(ctx, req.(*SendReq))
  577. }
  578. return interceptor(ctx, in, info, handler)
  579. }
  580. func _Sms_SendBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  581. in := new(SendBatchReq)
  582. if err := dec(in); err != nil {
  583. return nil, err
  584. }
  585. if interceptor == nil {
  586. return srv.(SmsServer).SendBatch(ctx, in)
  587. }
  588. info := &grpc.UnaryServerInfo{
  589. Server: srv,
  590. FullMethod: "/sms.service.v1.Sms/SendBatch",
  591. }
  592. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  593. return srv.(SmsServer).SendBatch(ctx, req.(*SendBatchReq))
  594. }
  595. return interceptor(ctx, in, info, handler)
  596. }
  597. var _Sms_serviceDesc = grpc.ServiceDesc{
  598. ServiceName: "sms.service.v1.Sms",
  599. HandlerType: (*SmsServer)(nil),
  600. Methods: []grpc.MethodDesc{
  601. {
  602. MethodName: "Send",
  603. Handler: _Sms_Send_Handler,
  604. },
  605. {
  606. MethodName: "SendBatch",
  607. Handler: _Sms_SendBatch_Handler,
  608. },
  609. },
  610. Streams: []grpc.StreamDesc{},
  611. Metadata: "app/service/main/sms/api/api.proto",
  612. }
  613. func (m *AddTemplateReply) Marshal() (dAtA []byte, err error) {
  614. size := m.Size()
  615. dAtA = make([]byte, size)
  616. n, err := m.MarshalTo(dAtA)
  617. if err != nil {
  618. return nil, err
  619. }
  620. return dAtA[:n], nil
  621. }
  622. func (m *AddTemplateReply) MarshalTo(dAtA []byte) (int, error) {
  623. var i int
  624. _ = i
  625. var l int
  626. _ = l
  627. return i, nil
  628. }
  629. func (m *AddTemplateReq) Marshal() (dAtA []byte, err error) {
  630. size := m.Size()
  631. dAtA = make([]byte, size)
  632. n, err := m.MarshalTo(dAtA)
  633. if err != nil {
  634. return nil, err
  635. }
  636. return dAtA[:n], nil
  637. }
  638. func (m *AddTemplateReq) MarshalTo(dAtA []byte) (int, error) {
  639. var i int
  640. _ = i
  641. var l int
  642. _ = l
  643. if m.Stype != 0 {
  644. dAtA[i] = 0x8
  645. i++
  646. i = encodeVarintApi(dAtA, i, uint64(m.Stype))
  647. }
  648. if len(m.Tcode) > 0 {
  649. dAtA[i] = 0x12
  650. i++
  651. i = encodeVarintApi(dAtA, i, uint64(len(m.Tcode)))
  652. i += copy(dAtA[i:], m.Tcode)
  653. }
  654. if len(m.Template) > 0 {
  655. dAtA[i] = 0x1a
  656. i++
  657. i = encodeVarintApi(dAtA, i, uint64(len(m.Template)))
  658. i += copy(dAtA[i:], m.Template)
  659. }
  660. if len(m.Submitter) > 0 {
  661. dAtA[i] = 0x2a
  662. i++
  663. i = encodeVarintApi(dAtA, i, uint64(len(m.Submitter)))
  664. i += copy(dAtA[i:], m.Submitter)
  665. }
  666. return i, nil
  667. }
  668. func (m *TemplateListReply) Marshal() (dAtA []byte, err error) {
  669. size := m.Size()
  670. dAtA = make([]byte, size)
  671. n, err := m.MarshalTo(dAtA)
  672. if err != nil {
  673. return nil, err
  674. }
  675. return dAtA[:n], nil
  676. }
  677. func (m *TemplateListReply) MarshalTo(dAtA []byte) (int, error) {
  678. var i int
  679. _ = i
  680. var l int
  681. _ = l
  682. if len(m.List) > 0 {
  683. for _, msg := range m.List {
  684. dAtA[i] = 0xa
  685. i++
  686. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  687. n, err := msg.MarshalTo(dAtA[i:])
  688. if err != nil {
  689. return 0, err
  690. }
  691. i += n
  692. }
  693. }
  694. if m.Total != 0 {
  695. dAtA[i] = 0x10
  696. i++
  697. i = encodeVarintApi(dAtA, i, uint64(m.Total))
  698. }
  699. return i, nil
  700. }
  701. func (m *TemplateListReq) Marshal() (dAtA []byte, err error) {
  702. size := m.Size()
  703. dAtA = make([]byte, size)
  704. n, err := m.MarshalTo(dAtA)
  705. if err != nil {
  706. return nil, err
  707. }
  708. return dAtA[:n], nil
  709. }
  710. func (m *TemplateListReq) MarshalTo(dAtA []byte) (int, error) {
  711. var i int
  712. _ = i
  713. var l int
  714. _ = l
  715. if m.Pn != 0 {
  716. dAtA[i] = 0x8
  717. i++
  718. i = encodeVarintApi(dAtA, i, uint64(m.Pn))
  719. }
  720. if m.Ps != 0 {
  721. dAtA[i] = 0x10
  722. i++
  723. i = encodeVarintApi(dAtA, i, uint64(m.Ps))
  724. }
  725. if len(m.St) > 0 {
  726. dAtA[i] = 0x1a
  727. i++
  728. i = encodeVarintApi(dAtA, i, uint64(len(m.St)))
  729. i += copy(dAtA[i:], m.St)
  730. }
  731. if len(m.Sw) > 0 {
  732. dAtA[i] = 0x22
  733. i++
  734. i = encodeVarintApi(dAtA, i, uint64(len(m.Sw)))
  735. i += copy(dAtA[i:], m.Sw)
  736. }
  737. return i, nil
  738. }
  739. func (m *UpdateTemplateReply) Marshal() (dAtA []byte, err error) {
  740. size := m.Size()
  741. dAtA = make([]byte, size)
  742. n, err := m.MarshalTo(dAtA)
  743. if err != nil {
  744. return nil, err
  745. }
  746. return dAtA[:n], nil
  747. }
  748. func (m *UpdateTemplateReply) MarshalTo(dAtA []byte) (int, error) {
  749. var i int
  750. _ = i
  751. var l int
  752. _ = l
  753. return i, nil
  754. }
  755. func (m *UpdateTemplateReq) Marshal() (dAtA []byte, err error) {
  756. size := m.Size()
  757. dAtA = make([]byte, size)
  758. n, err := m.MarshalTo(dAtA)
  759. if err != nil {
  760. return nil, err
  761. }
  762. return dAtA[:n], nil
  763. }
  764. func (m *UpdateTemplateReq) MarshalTo(dAtA []byte) (int, error) {
  765. var i int
  766. _ = i
  767. var l int
  768. _ = l
  769. if m.ID != 0 {
  770. dAtA[i] = 0x8
  771. i++
  772. i = encodeVarintApi(dAtA, i, uint64(m.ID))
  773. }
  774. if m.Stype != 0 {
  775. dAtA[i] = 0x10
  776. i++
  777. i = encodeVarintApi(dAtA, i, uint64(m.Stype))
  778. }
  779. if m.Status != 0 {
  780. dAtA[i] = 0x18
  781. i++
  782. i = encodeVarintApi(dAtA, i, uint64(m.Status))
  783. }
  784. if len(m.Tcode) > 0 {
  785. dAtA[i] = 0x22
  786. i++
  787. i = encodeVarintApi(dAtA, i, uint64(len(m.Tcode)))
  788. i += copy(dAtA[i:], m.Tcode)
  789. }
  790. if len(m.Template) > 0 {
  791. dAtA[i] = 0x2a
  792. i++
  793. i = encodeVarintApi(dAtA, i, uint64(len(m.Template)))
  794. i += copy(dAtA[i:], m.Template)
  795. }
  796. if len(m.Submitter) > 0 {
  797. dAtA[i] = 0x32
  798. i++
  799. i = encodeVarintApi(dAtA, i, uint64(len(m.Submitter)))
  800. i += copy(dAtA[i:], m.Submitter)
  801. }
  802. return i, nil
  803. }
  804. func (m *SendReply) Marshal() (dAtA []byte, err error) {
  805. size := m.Size()
  806. dAtA = make([]byte, size)
  807. n, err := m.MarshalTo(dAtA)
  808. if err != nil {
  809. return nil, err
  810. }
  811. return dAtA[:n], nil
  812. }
  813. func (m *SendReply) MarshalTo(dAtA []byte) (int, error) {
  814. var i int
  815. _ = i
  816. var l int
  817. _ = l
  818. return i, nil
  819. }
  820. func (m *SendReq) Marshal() (dAtA []byte, err error) {
  821. size := m.Size()
  822. dAtA = make([]byte, size)
  823. n, err := m.MarshalTo(dAtA)
  824. if err != nil {
  825. return nil, err
  826. }
  827. return dAtA[:n], nil
  828. }
  829. func (m *SendReq) MarshalTo(dAtA []byte) (int, error) {
  830. var i int
  831. _ = i
  832. var l int
  833. _ = l
  834. if m.Mid != 0 {
  835. dAtA[i] = 0x8
  836. i++
  837. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  838. }
  839. if len(m.Mobile) > 0 {
  840. dAtA[i] = 0x12
  841. i++
  842. i = encodeVarintApi(dAtA, i, uint64(len(m.Mobile)))
  843. i += copy(dAtA[i:], m.Mobile)
  844. }
  845. if len(m.Country) > 0 {
  846. dAtA[i] = 0x1a
  847. i++
  848. i = encodeVarintApi(dAtA, i, uint64(len(m.Country)))
  849. i += copy(dAtA[i:], m.Country)
  850. }
  851. if len(m.Tcode) > 0 {
  852. dAtA[i] = 0x22
  853. i++
  854. i = encodeVarintApi(dAtA, i, uint64(len(m.Tcode)))
  855. i += copy(dAtA[i:], m.Tcode)
  856. }
  857. if len(m.Tparam) > 0 {
  858. dAtA[i] = 0x2a
  859. i++
  860. i = encodeVarintApi(dAtA, i, uint64(len(m.Tparam)))
  861. i += copy(dAtA[i:], m.Tparam)
  862. }
  863. return i, nil
  864. }
  865. func (m *SendBatchReply) Marshal() (dAtA []byte, err error) {
  866. size := m.Size()
  867. dAtA = make([]byte, size)
  868. n, err := m.MarshalTo(dAtA)
  869. if err != nil {
  870. return nil, err
  871. }
  872. return dAtA[:n], nil
  873. }
  874. func (m *SendBatchReply) MarshalTo(dAtA []byte) (int, error) {
  875. var i int
  876. _ = i
  877. var l int
  878. _ = l
  879. return i, nil
  880. }
  881. func (m *SendBatchReq) Marshal() (dAtA []byte, err error) {
  882. size := m.Size()
  883. dAtA = make([]byte, size)
  884. n, err := m.MarshalTo(dAtA)
  885. if err != nil {
  886. return nil, err
  887. }
  888. return dAtA[:n], nil
  889. }
  890. func (m *SendBatchReq) MarshalTo(dAtA []byte) (int, error) {
  891. var i int
  892. _ = i
  893. var l int
  894. _ = l
  895. if len(m.Mids) > 0 {
  896. dAtA2 := make([]byte, len(m.Mids)*10)
  897. var j1 int
  898. for _, num1 := range m.Mids {
  899. num := uint64(num1)
  900. for num >= 1<<7 {
  901. dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80)
  902. num >>= 7
  903. j1++
  904. }
  905. dAtA2[j1] = uint8(num)
  906. j1++
  907. }
  908. dAtA[i] = 0xa
  909. i++
  910. i = encodeVarintApi(dAtA, i, uint64(j1))
  911. i += copy(dAtA[i:], dAtA2[:j1])
  912. }
  913. if len(m.Mobiles) > 0 {
  914. for _, s := range m.Mobiles {
  915. dAtA[i] = 0x12
  916. i++
  917. l = len(s)
  918. for l >= 1<<7 {
  919. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  920. l >>= 7
  921. i++
  922. }
  923. dAtA[i] = uint8(l)
  924. i++
  925. i += copy(dAtA[i:], s)
  926. }
  927. }
  928. if len(m.Tcode) > 0 {
  929. dAtA[i] = 0x1a
  930. i++
  931. i = encodeVarintApi(dAtA, i, uint64(len(m.Tcode)))
  932. i += copy(dAtA[i:], m.Tcode)
  933. }
  934. if len(m.Tparam) > 0 {
  935. dAtA[i] = 0x22
  936. i++
  937. i = encodeVarintApi(dAtA, i, uint64(len(m.Tparam)))
  938. i += copy(dAtA[i:], m.Tparam)
  939. }
  940. return i, nil
  941. }
  942. func (m *AddTaskReq) Marshal() (dAtA []byte, err error) {
  943. size := m.Size()
  944. dAtA = make([]byte, size)
  945. n, err := m.MarshalTo(dAtA)
  946. if err != nil {
  947. return nil, err
  948. }
  949. return dAtA[:n], nil
  950. }
  951. func (m *AddTaskReq) MarshalTo(dAtA []byte) (int, error) {
  952. var i int
  953. _ = i
  954. var l int
  955. _ = l
  956. if m.Type != 0 {
  957. dAtA[i] = 0x8
  958. i++
  959. i = encodeVarintApi(dAtA, i, uint64(m.Type))
  960. }
  961. if m.BusinessID != 0 {
  962. dAtA[i] = 0x10
  963. i++
  964. i = encodeVarintApi(dAtA, i, uint64(m.BusinessID))
  965. }
  966. if len(m.TemplateCode) > 0 {
  967. dAtA[i] = 0x1a
  968. i++
  969. i = encodeVarintApi(dAtA, i, uint64(len(m.TemplateCode)))
  970. i += copy(dAtA[i:], m.TemplateCode)
  971. }
  972. if len(m.Desc) > 0 {
  973. dAtA[i] = 0x22
  974. i++
  975. i = encodeVarintApi(dAtA, i, uint64(len(m.Desc)))
  976. i += copy(dAtA[i:], m.Desc)
  977. }
  978. if len(m.FileName) > 0 {
  979. dAtA[i] = 0x2a
  980. i++
  981. i = encodeVarintApi(dAtA, i, uint64(len(m.FileName)))
  982. i += copy(dAtA[i:], m.FileName)
  983. }
  984. if len(m.FilePath) > 0 {
  985. dAtA[i] = 0x32
  986. i++
  987. i = encodeVarintApi(dAtA, i, uint64(len(m.FilePath)))
  988. i += copy(dAtA[i:], m.FilePath)
  989. }
  990. if m.SendTime != 0 {
  991. dAtA[i] = 0x38
  992. i++
  993. i = encodeVarintApi(dAtA, i, uint64(m.SendTime))
  994. }
  995. return i, nil
  996. }
  997. func (m *AddTaskReply) Marshal() (dAtA []byte, err error) {
  998. size := m.Size()
  999. dAtA = make([]byte, size)
  1000. n, err := m.MarshalTo(dAtA)
  1001. if err != nil {
  1002. return nil, err
  1003. }
  1004. return dAtA[:n], nil
  1005. }
  1006. func (m *AddTaskReply) MarshalTo(dAtA []byte) (int, error) {
  1007. var i int
  1008. _ = i
  1009. var l int
  1010. _ = l
  1011. return i, nil
  1012. }
  1013. func (m *UpdateTaskReq) Marshal() (dAtA []byte, err error) {
  1014. size := m.Size()
  1015. dAtA = make([]byte, size)
  1016. n, err := m.MarshalTo(dAtA)
  1017. if err != nil {
  1018. return nil, err
  1019. }
  1020. return dAtA[:n], nil
  1021. }
  1022. func (m *UpdateTaskReq) MarshalTo(dAtA []byte) (int, error) {
  1023. var i int
  1024. _ = i
  1025. var l int
  1026. _ = l
  1027. if m.ID != 0 {
  1028. dAtA[i] = 0x8
  1029. i++
  1030. i = encodeVarintApi(dAtA, i, uint64(m.ID))
  1031. }
  1032. if m.Type != 0 {
  1033. dAtA[i] = 0x10
  1034. i++
  1035. i = encodeVarintApi(dAtA, i, uint64(m.Type))
  1036. }
  1037. if m.BusinessID != 0 {
  1038. dAtA[i] = 0x18
  1039. i++
  1040. i = encodeVarintApi(dAtA, i, uint64(m.BusinessID))
  1041. }
  1042. if len(m.TemplateCode) > 0 {
  1043. dAtA[i] = 0x22
  1044. i++
  1045. i = encodeVarintApi(dAtA, i, uint64(len(m.TemplateCode)))
  1046. i += copy(dAtA[i:], m.TemplateCode)
  1047. }
  1048. if len(m.Desc) > 0 {
  1049. dAtA[i] = 0x2a
  1050. i++
  1051. i = encodeVarintApi(dAtA, i, uint64(len(m.Desc)))
  1052. i += copy(dAtA[i:], m.Desc)
  1053. }
  1054. if len(m.FileName) > 0 {
  1055. dAtA[i] = 0x32
  1056. i++
  1057. i = encodeVarintApi(dAtA, i, uint64(len(m.FileName)))
  1058. i += copy(dAtA[i:], m.FileName)
  1059. }
  1060. if len(m.FilePath) > 0 {
  1061. dAtA[i] = 0x3a
  1062. i++
  1063. i = encodeVarintApi(dAtA, i, uint64(len(m.FilePath)))
  1064. i += copy(dAtA[i:], m.FilePath)
  1065. }
  1066. if m.SendTime != 0 {
  1067. dAtA[i] = 0x40
  1068. i++
  1069. i = encodeVarintApi(dAtA, i, uint64(m.SendTime))
  1070. }
  1071. return i, nil
  1072. }
  1073. func (m *UpdateTaskReply) Marshal() (dAtA []byte, err error) {
  1074. size := m.Size()
  1075. dAtA = make([]byte, size)
  1076. n, err := m.MarshalTo(dAtA)
  1077. if err != nil {
  1078. return nil, err
  1079. }
  1080. return dAtA[:n], nil
  1081. }
  1082. func (m *UpdateTaskReply) MarshalTo(dAtA []byte) (int, error) {
  1083. var i int
  1084. _ = i
  1085. var l int
  1086. _ = l
  1087. return i, nil
  1088. }
  1089. func (m *DeleteTaskReq) Marshal() (dAtA []byte, err error) {
  1090. size := m.Size()
  1091. dAtA = make([]byte, size)
  1092. n, err := m.MarshalTo(dAtA)
  1093. if err != nil {
  1094. return nil, err
  1095. }
  1096. return dAtA[:n], nil
  1097. }
  1098. func (m *DeleteTaskReq) MarshalTo(dAtA []byte) (int, error) {
  1099. var i int
  1100. _ = i
  1101. var l int
  1102. _ = l
  1103. if m.ID != 0 {
  1104. dAtA[i] = 0x8
  1105. i++
  1106. i = encodeVarintApi(dAtA, i, uint64(m.ID))
  1107. }
  1108. return i, nil
  1109. }
  1110. func (m *DeleteTaskReply) Marshal() (dAtA []byte, err error) {
  1111. size := m.Size()
  1112. dAtA = make([]byte, size)
  1113. n, err := m.MarshalTo(dAtA)
  1114. if err != nil {
  1115. return nil, err
  1116. }
  1117. return dAtA[:n], nil
  1118. }
  1119. func (m *DeleteTaskReply) MarshalTo(dAtA []byte) (int, error) {
  1120. var i int
  1121. _ = i
  1122. var l int
  1123. _ = l
  1124. return i, nil
  1125. }
  1126. func (m *TaskInfoReq) Marshal() (dAtA []byte, err error) {
  1127. size := m.Size()
  1128. dAtA = make([]byte, size)
  1129. n, err := m.MarshalTo(dAtA)
  1130. if err != nil {
  1131. return nil, err
  1132. }
  1133. return dAtA[:n], nil
  1134. }
  1135. func (m *TaskInfoReq) MarshalTo(dAtA []byte) (int, error) {
  1136. var i int
  1137. _ = i
  1138. var l int
  1139. _ = l
  1140. if m.ID != 0 {
  1141. dAtA[i] = 0x8
  1142. i++
  1143. i = encodeVarintApi(dAtA, i, uint64(m.ID))
  1144. }
  1145. return i, nil
  1146. }
  1147. func (m *TaskInfoReply) Marshal() (dAtA []byte, err error) {
  1148. size := m.Size()
  1149. dAtA = make([]byte, size)
  1150. n, err := m.MarshalTo(dAtA)
  1151. if err != nil {
  1152. return nil, err
  1153. }
  1154. return dAtA[:n], nil
  1155. }
  1156. func (m *TaskInfoReply) MarshalTo(dAtA []byte) (int, error) {
  1157. var i int
  1158. _ = i
  1159. var l int
  1160. _ = l
  1161. if m.Info != nil {
  1162. dAtA[i] = 0xa
  1163. i++
  1164. i = encodeVarintApi(dAtA, i, uint64(m.Info.Size()))
  1165. n3, err := m.Info.MarshalTo(dAtA[i:])
  1166. if err != nil {
  1167. return 0, err
  1168. }
  1169. i += n3
  1170. }
  1171. return i, nil
  1172. }
  1173. func (m *TaskListReq) Marshal() (dAtA []byte, err error) {
  1174. size := m.Size()
  1175. dAtA = make([]byte, size)
  1176. n, err := m.MarshalTo(dAtA)
  1177. if err != nil {
  1178. return nil, err
  1179. }
  1180. return dAtA[:n], nil
  1181. }
  1182. func (m *TaskListReq) MarshalTo(dAtA []byte) (int, error) {
  1183. var i int
  1184. _ = i
  1185. var l int
  1186. _ = l
  1187. if m.Pn != 0 {
  1188. dAtA[i] = 0x8
  1189. i++
  1190. i = encodeVarintApi(dAtA, i, uint64(m.Pn))
  1191. }
  1192. if m.Ps != 0 {
  1193. dAtA[i] = 0x10
  1194. i++
  1195. i = encodeVarintApi(dAtA, i, uint64(m.Ps))
  1196. }
  1197. return i, nil
  1198. }
  1199. func (m *TaskListReply) Marshal() (dAtA []byte, err error) {
  1200. size := m.Size()
  1201. dAtA = make([]byte, size)
  1202. n, err := m.MarshalTo(dAtA)
  1203. if err != nil {
  1204. return nil, err
  1205. }
  1206. return dAtA[:n], nil
  1207. }
  1208. func (m *TaskListReply) MarshalTo(dAtA []byte) (int, error) {
  1209. var i int
  1210. _ = i
  1211. var l int
  1212. _ = l
  1213. if len(m.List) > 0 {
  1214. for _, msg := range m.List {
  1215. dAtA[i] = 0xa
  1216. i++
  1217. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  1218. n, err := msg.MarshalTo(dAtA[i:])
  1219. if err != nil {
  1220. return 0, err
  1221. }
  1222. i += n
  1223. }
  1224. }
  1225. if m.Total != 0 {
  1226. dAtA[i] = 0x10
  1227. i++
  1228. i = encodeVarintApi(dAtA, i, uint64(m.Total))
  1229. }
  1230. return i, nil
  1231. }
  1232. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  1233. for v >= 1<<7 {
  1234. dAtA[offset] = uint8(v&0x7f | 0x80)
  1235. v >>= 7
  1236. offset++
  1237. }
  1238. dAtA[offset] = uint8(v)
  1239. return offset + 1
  1240. }
  1241. func (m *AddTemplateReply) Size() (n int) {
  1242. var l int
  1243. _ = l
  1244. return n
  1245. }
  1246. func (m *AddTemplateReq) Size() (n int) {
  1247. var l int
  1248. _ = l
  1249. if m.Stype != 0 {
  1250. n += 1 + sovApi(uint64(m.Stype))
  1251. }
  1252. l = len(m.Tcode)
  1253. if l > 0 {
  1254. n += 1 + l + sovApi(uint64(l))
  1255. }
  1256. l = len(m.Template)
  1257. if l > 0 {
  1258. n += 1 + l + sovApi(uint64(l))
  1259. }
  1260. l = len(m.Submitter)
  1261. if l > 0 {
  1262. n += 1 + l + sovApi(uint64(l))
  1263. }
  1264. return n
  1265. }
  1266. func (m *TemplateListReply) Size() (n int) {
  1267. var l int
  1268. _ = l
  1269. if len(m.List) > 0 {
  1270. for _, e := range m.List {
  1271. l = e.Size()
  1272. n += 1 + l + sovApi(uint64(l))
  1273. }
  1274. }
  1275. if m.Total != 0 {
  1276. n += 1 + sovApi(uint64(m.Total))
  1277. }
  1278. return n
  1279. }
  1280. func (m *TemplateListReq) Size() (n int) {
  1281. var l int
  1282. _ = l
  1283. if m.Pn != 0 {
  1284. n += 1 + sovApi(uint64(m.Pn))
  1285. }
  1286. if m.Ps != 0 {
  1287. n += 1 + sovApi(uint64(m.Ps))
  1288. }
  1289. l = len(m.St)
  1290. if l > 0 {
  1291. n += 1 + l + sovApi(uint64(l))
  1292. }
  1293. l = len(m.Sw)
  1294. if l > 0 {
  1295. n += 1 + l + sovApi(uint64(l))
  1296. }
  1297. return n
  1298. }
  1299. func (m *UpdateTemplateReply) Size() (n int) {
  1300. var l int
  1301. _ = l
  1302. return n
  1303. }
  1304. func (m *UpdateTemplateReq) Size() (n int) {
  1305. var l int
  1306. _ = l
  1307. if m.ID != 0 {
  1308. n += 1 + sovApi(uint64(m.ID))
  1309. }
  1310. if m.Stype != 0 {
  1311. n += 1 + sovApi(uint64(m.Stype))
  1312. }
  1313. if m.Status != 0 {
  1314. n += 1 + sovApi(uint64(m.Status))
  1315. }
  1316. l = len(m.Tcode)
  1317. if l > 0 {
  1318. n += 1 + l + sovApi(uint64(l))
  1319. }
  1320. l = len(m.Template)
  1321. if l > 0 {
  1322. n += 1 + l + sovApi(uint64(l))
  1323. }
  1324. l = len(m.Submitter)
  1325. if l > 0 {
  1326. n += 1 + l + sovApi(uint64(l))
  1327. }
  1328. return n
  1329. }
  1330. func (m *SendReply) Size() (n int) {
  1331. var l int
  1332. _ = l
  1333. return n
  1334. }
  1335. func (m *SendReq) Size() (n int) {
  1336. var l int
  1337. _ = l
  1338. if m.Mid != 0 {
  1339. n += 1 + sovApi(uint64(m.Mid))
  1340. }
  1341. l = len(m.Mobile)
  1342. if l > 0 {
  1343. n += 1 + l + sovApi(uint64(l))
  1344. }
  1345. l = len(m.Country)
  1346. if l > 0 {
  1347. n += 1 + l + sovApi(uint64(l))
  1348. }
  1349. l = len(m.Tcode)
  1350. if l > 0 {
  1351. n += 1 + l + sovApi(uint64(l))
  1352. }
  1353. l = len(m.Tparam)
  1354. if l > 0 {
  1355. n += 1 + l + sovApi(uint64(l))
  1356. }
  1357. return n
  1358. }
  1359. func (m *SendBatchReply) Size() (n int) {
  1360. var l int
  1361. _ = l
  1362. return n
  1363. }
  1364. func (m *SendBatchReq) Size() (n int) {
  1365. var l int
  1366. _ = l
  1367. if len(m.Mids) > 0 {
  1368. l = 0
  1369. for _, e := range m.Mids {
  1370. l += sovApi(uint64(e))
  1371. }
  1372. n += 1 + sovApi(uint64(l)) + l
  1373. }
  1374. if len(m.Mobiles) > 0 {
  1375. for _, s := range m.Mobiles {
  1376. l = len(s)
  1377. n += 1 + l + sovApi(uint64(l))
  1378. }
  1379. }
  1380. l = len(m.Tcode)
  1381. if l > 0 {
  1382. n += 1 + l + sovApi(uint64(l))
  1383. }
  1384. l = len(m.Tparam)
  1385. if l > 0 {
  1386. n += 1 + l + sovApi(uint64(l))
  1387. }
  1388. return n
  1389. }
  1390. func (m *AddTaskReq) Size() (n int) {
  1391. var l int
  1392. _ = l
  1393. if m.Type != 0 {
  1394. n += 1 + sovApi(uint64(m.Type))
  1395. }
  1396. if m.BusinessID != 0 {
  1397. n += 1 + sovApi(uint64(m.BusinessID))
  1398. }
  1399. l = len(m.TemplateCode)
  1400. if l > 0 {
  1401. n += 1 + l + sovApi(uint64(l))
  1402. }
  1403. l = len(m.Desc)
  1404. if l > 0 {
  1405. n += 1 + l + sovApi(uint64(l))
  1406. }
  1407. l = len(m.FileName)
  1408. if l > 0 {
  1409. n += 1 + l + sovApi(uint64(l))
  1410. }
  1411. l = len(m.FilePath)
  1412. if l > 0 {
  1413. n += 1 + l + sovApi(uint64(l))
  1414. }
  1415. if m.SendTime != 0 {
  1416. n += 1 + sovApi(uint64(m.SendTime))
  1417. }
  1418. return n
  1419. }
  1420. func (m *AddTaskReply) Size() (n int) {
  1421. var l int
  1422. _ = l
  1423. return n
  1424. }
  1425. func (m *UpdateTaskReq) Size() (n int) {
  1426. var l int
  1427. _ = l
  1428. if m.ID != 0 {
  1429. n += 1 + sovApi(uint64(m.ID))
  1430. }
  1431. if m.Type != 0 {
  1432. n += 1 + sovApi(uint64(m.Type))
  1433. }
  1434. if m.BusinessID != 0 {
  1435. n += 1 + sovApi(uint64(m.BusinessID))
  1436. }
  1437. l = len(m.TemplateCode)
  1438. if l > 0 {
  1439. n += 1 + l + sovApi(uint64(l))
  1440. }
  1441. l = len(m.Desc)
  1442. if l > 0 {
  1443. n += 1 + l + sovApi(uint64(l))
  1444. }
  1445. l = len(m.FileName)
  1446. if l > 0 {
  1447. n += 1 + l + sovApi(uint64(l))
  1448. }
  1449. l = len(m.FilePath)
  1450. if l > 0 {
  1451. n += 1 + l + sovApi(uint64(l))
  1452. }
  1453. if m.SendTime != 0 {
  1454. n += 1 + sovApi(uint64(m.SendTime))
  1455. }
  1456. return n
  1457. }
  1458. func (m *UpdateTaskReply) Size() (n int) {
  1459. var l int
  1460. _ = l
  1461. return n
  1462. }
  1463. func (m *DeleteTaskReq) Size() (n int) {
  1464. var l int
  1465. _ = l
  1466. if m.ID != 0 {
  1467. n += 1 + sovApi(uint64(m.ID))
  1468. }
  1469. return n
  1470. }
  1471. func (m *DeleteTaskReply) Size() (n int) {
  1472. var l int
  1473. _ = l
  1474. return n
  1475. }
  1476. func (m *TaskInfoReq) Size() (n int) {
  1477. var l int
  1478. _ = l
  1479. if m.ID != 0 {
  1480. n += 1 + sovApi(uint64(m.ID))
  1481. }
  1482. return n
  1483. }
  1484. func (m *TaskInfoReply) Size() (n int) {
  1485. var l int
  1486. _ = l
  1487. if m.Info != nil {
  1488. l = m.Info.Size()
  1489. n += 1 + l + sovApi(uint64(l))
  1490. }
  1491. return n
  1492. }
  1493. func (m *TaskListReq) Size() (n int) {
  1494. var l int
  1495. _ = l
  1496. if m.Pn != 0 {
  1497. n += 1 + sovApi(uint64(m.Pn))
  1498. }
  1499. if m.Ps != 0 {
  1500. n += 1 + sovApi(uint64(m.Ps))
  1501. }
  1502. return n
  1503. }
  1504. func (m *TaskListReply) Size() (n int) {
  1505. var l int
  1506. _ = l
  1507. if len(m.List) > 0 {
  1508. for _, e := range m.List {
  1509. l = e.Size()
  1510. n += 1 + l + sovApi(uint64(l))
  1511. }
  1512. }
  1513. if m.Total != 0 {
  1514. n += 1 + sovApi(uint64(m.Total))
  1515. }
  1516. return n
  1517. }
  1518. func sovApi(x uint64) (n int) {
  1519. for {
  1520. n++
  1521. x >>= 7
  1522. if x == 0 {
  1523. break
  1524. }
  1525. }
  1526. return n
  1527. }
  1528. func sozApi(x uint64) (n int) {
  1529. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1530. }
  1531. func (m *AddTemplateReply) Unmarshal(dAtA []byte) error {
  1532. l := len(dAtA)
  1533. iNdEx := 0
  1534. for iNdEx < l {
  1535. preIndex := iNdEx
  1536. var wire uint64
  1537. for shift := uint(0); ; shift += 7 {
  1538. if shift >= 64 {
  1539. return ErrIntOverflowApi
  1540. }
  1541. if iNdEx >= l {
  1542. return io.ErrUnexpectedEOF
  1543. }
  1544. b := dAtA[iNdEx]
  1545. iNdEx++
  1546. wire |= (uint64(b) & 0x7F) << shift
  1547. if b < 0x80 {
  1548. break
  1549. }
  1550. }
  1551. fieldNum := int32(wire >> 3)
  1552. wireType := int(wire & 0x7)
  1553. if wireType == 4 {
  1554. return fmt.Errorf("proto: AddTemplateReply: wiretype end group for non-group")
  1555. }
  1556. if fieldNum <= 0 {
  1557. return fmt.Errorf("proto: AddTemplateReply: illegal tag %d (wire type %d)", fieldNum, wire)
  1558. }
  1559. switch fieldNum {
  1560. default:
  1561. iNdEx = preIndex
  1562. skippy, err := skipApi(dAtA[iNdEx:])
  1563. if err != nil {
  1564. return err
  1565. }
  1566. if skippy < 0 {
  1567. return ErrInvalidLengthApi
  1568. }
  1569. if (iNdEx + skippy) > l {
  1570. return io.ErrUnexpectedEOF
  1571. }
  1572. iNdEx += skippy
  1573. }
  1574. }
  1575. if iNdEx > l {
  1576. return io.ErrUnexpectedEOF
  1577. }
  1578. return nil
  1579. }
  1580. func (m *AddTemplateReq) Unmarshal(dAtA []byte) error {
  1581. l := len(dAtA)
  1582. iNdEx := 0
  1583. for iNdEx < l {
  1584. preIndex := iNdEx
  1585. var wire uint64
  1586. for shift := uint(0); ; shift += 7 {
  1587. if shift >= 64 {
  1588. return ErrIntOverflowApi
  1589. }
  1590. if iNdEx >= l {
  1591. return io.ErrUnexpectedEOF
  1592. }
  1593. b := dAtA[iNdEx]
  1594. iNdEx++
  1595. wire |= (uint64(b) & 0x7F) << shift
  1596. if b < 0x80 {
  1597. break
  1598. }
  1599. }
  1600. fieldNum := int32(wire >> 3)
  1601. wireType := int(wire & 0x7)
  1602. if wireType == 4 {
  1603. return fmt.Errorf("proto: AddTemplateReq: wiretype end group for non-group")
  1604. }
  1605. if fieldNum <= 0 {
  1606. return fmt.Errorf("proto: AddTemplateReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1607. }
  1608. switch fieldNum {
  1609. case 1:
  1610. if wireType != 0 {
  1611. return fmt.Errorf("proto: wrong wireType = %d for field Stype", wireType)
  1612. }
  1613. m.Stype = 0
  1614. for shift := uint(0); ; shift += 7 {
  1615. if shift >= 64 {
  1616. return ErrIntOverflowApi
  1617. }
  1618. if iNdEx >= l {
  1619. return io.ErrUnexpectedEOF
  1620. }
  1621. b := dAtA[iNdEx]
  1622. iNdEx++
  1623. m.Stype |= (int32(b) & 0x7F) << shift
  1624. if b < 0x80 {
  1625. break
  1626. }
  1627. }
  1628. case 2:
  1629. if wireType != 2 {
  1630. return fmt.Errorf("proto: wrong wireType = %d for field Tcode", wireType)
  1631. }
  1632. var stringLen uint64
  1633. for shift := uint(0); ; shift += 7 {
  1634. if shift >= 64 {
  1635. return ErrIntOverflowApi
  1636. }
  1637. if iNdEx >= l {
  1638. return io.ErrUnexpectedEOF
  1639. }
  1640. b := dAtA[iNdEx]
  1641. iNdEx++
  1642. stringLen |= (uint64(b) & 0x7F) << shift
  1643. if b < 0x80 {
  1644. break
  1645. }
  1646. }
  1647. intStringLen := int(stringLen)
  1648. if intStringLen < 0 {
  1649. return ErrInvalidLengthApi
  1650. }
  1651. postIndex := iNdEx + intStringLen
  1652. if postIndex > l {
  1653. return io.ErrUnexpectedEOF
  1654. }
  1655. m.Tcode = string(dAtA[iNdEx:postIndex])
  1656. iNdEx = postIndex
  1657. case 3:
  1658. if wireType != 2 {
  1659. return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType)
  1660. }
  1661. var stringLen uint64
  1662. for shift := uint(0); ; shift += 7 {
  1663. if shift >= 64 {
  1664. return ErrIntOverflowApi
  1665. }
  1666. if iNdEx >= l {
  1667. return io.ErrUnexpectedEOF
  1668. }
  1669. b := dAtA[iNdEx]
  1670. iNdEx++
  1671. stringLen |= (uint64(b) & 0x7F) << shift
  1672. if b < 0x80 {
  1673. break
  1674. }
  1675. }
  1676. intStringLen := int(stringLen)
  1677. if intStringLen < 0 {
  1678. return ErrInvalidLengthApi
  1679. }
  1680. postIndex := iNdEx + intStringLen
  1681. if postIndex > l {
  1682. return io.ErrUnexpectedEOF
  1683. }
  1684. m.Template = string(dAtA[iNdEx:postIndex])
  1685. iNdEx = postIndex
  1686. case 5:
  1687. if wireType != 2 {
  1688. return fmt.Errorf("proto: wrong wireType = %d for field Submitter", wireType)
  1689. }
  1690. var stringLen uint64
  1691. for shift := uint(0); ; shift += 7 {
  1692. if shift >= 64 {
  1693. return ErrIntOverflowApi
  1694. }
  1695. if iNdEx >= l {
  1696. return io.ErrUnexpectedEOF
  1697. }
  1698. b := dAtA[iNdEx]
  1699. iNdEx++
  1700. stringLen |= (uint64(b) & 0x7F) << shift
  1701. if b < 0x80 {
  1702. break
  1703. }
  1704. }
  1705. intStringLen := int(stringLen)
  1706. if intStringLen < 0 {
  1707. return ErrInvalidLengthApi
  1708. }
  1709. postIndex := iNdEx + intStringLen
  1710. if postIndex > l {
  1711. return io.ErrUnexpectedEOF
  1712. }
  1713. m.Submitter = string(dAtA[iNdEx:postIndex])
  1714. iNdEx = postIndex
  1715. default:
  1716. iNdEx = preIndex
  1717. skippy, err := skipApi(dAtA[iNdEx:])
  1718. if err != nil {
  1719. return err
  1720. }
  1721. if skippy < 0 {
  1722. return ErrInvalidLengthApi
  1723. }
  1724. if (iNdEx + skippy) > l {
  1725. return io.ErrUnexpectedEOF
  1726. }
  1727. iNdEx += skippy
  1728. }
  1729. }
  1730. if iNdEx > l {
  1731. return io.ErrUnexpectedEOF
  1732. }
  1733. return nil
  1734. }
  1735. func (m *TemplateListReply) Unmarshal(dAtA []byte) error {
  1736. l := len(dAtA)
  1737. iNdEx := 0
  1738. for iNdEx < l {
  1739. preIndex := iNdEx
  1740. var wire uint64
  1741. for shift := uint(0); ; shift += 7 {
  1742. if shift >= 64 {
  1743. return ErrIntOverflowApi
  1744. }
  1745. if iNdEx >= l {
  1746. return io.ErrUnexpectedEOF
  1747. }
  1748. b := dAtA[iNdEx]
  1749. iNdEx++
  1750. wire |= (uint64(b) & 0x7F) << shift
  1751. if b < 0x80 {
  1752. break
  1753. }
  1754. }
  1755. fieldNum := int32(wire >> 3)
  1756. wireType := int(wire & 0x7)
  1757. if wireType == 4 {
  1758. return fmt.Errorf("proto: TemplateListReply: wiretype end group for non-group")
  1759. }
  1760. if fieldNum <= 0 {
  1761. return fmt.Errorf("proto: TemplateListReply: illegal tag %d (wire type %d)", fieldNum, wire)
  1762. }
  1763. switch fieldNum {
  1764. case 1:
  1765. if wireType != 2 {
  1766. return fmt.Errorf("proto: wrong wireType = %d for field List", wireType)
  1767. }
  1768. var msglen int
  1769. for shift := uint(0); ; shift += 7 {
  1770. if shift >= 64 {
  1771. return ErrIntOverflowApi
  1772. }
  1773. if iNdEx >= l {
  1774. return io.ErrUnexpectedEOF
  1775. }
  1776. b := dAtA[iNdEx]
  1777. iNdEx++
  1778. msglen |= (int(b) & 0x7F) << shift
  1779. if b < 0x80 {
  1780. break
  1781. }
  1782. }
  1783. if msglen < 0 {
  1784. return ErrInvalidLengthApi
  1785. }
  1786. postIndex := iNdEx + msglen
  1787. if postIndex > l {
  1788. return io.ErrUnexpectedEOF
  1789. }
  1790. m.List = append(m.List, &sms_service_model.ModelTemplate{})
  1791. if err := m.List[len(m.List)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1792. return err
  1793. }
  1794. iNdEx = postIndex
  1795. case 2:
  1796. if wireType != 0 {
  1797. return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType)
  1798. }
  1799. m.Total = 0
  1800. for shift := uint(0); ; shift += 7 {
  1801. if shift >= 64 {
  1802. return ErrIntOverflowApi
  1803. }
  1804. if iNdEx >= l {
  1805. return io.ErrUnexpectedEOF
  1806. }
  1807. b := dAtA[iNdEx]
  1808. iNdEx++
  1809. m.Total |= (int32(b) & 0x7F) << shift
  1810. if b < 0x80 {
  1811. break
  1812. }
  1813. }
  1814. default:
  1815. iNdEx = preIndex
  1816. skippy, err := skipApi(dAtA[iNdEx:])
  1817. if err != nil {
  1818. return err
  1819. }
  1820. if skippy < 0 {
  1821. return ErrInvalidLengthApi
  1822. }
  1823. if (iNdEx + skippy) > l {
  1824. return io.ErrUnexpectedEOF
  1825. }
  1826. iNdEx += skippy
  1827. }
  1828. }
  1829. if iNdEx > l {
  1830. return io.ErrUnexpectedEOF
  1831. }
  1832. return nil
  1833. }
  1834. func (m *TemplateListReq) Unmarshal(dAtA []byte) error {
  1835. l := len(dAtA)
  1836. iNdEx := 0
  1837. for iNdEx < l {
  1838. preIndex := iNdEx
  1839. var wire uint64
  1840. for shift := uint(0); ; shift += 7 {
  1841. if shift >= 64 {
  1842. return ErrIntOverflowApi
  1843. }
  1844. if iNdEx >= l {
  1845. return io.ErrUnexpectedEOF
  1846. }
  1847. b := dAtA[iNdEx]
  1848. iNdEx++
  1849. wire |= (uint64(b) & 0x7F) << shift
  1850. if b < 0x80 {
  1851. break
  1852. }
  1853. }
  1854. fieldNum := int32(wire >> 3)
  1855. wireType := int(wire & 0x7)
  1856. if wireType == 4 {
  1857. return fmt.Errorf("proto: TemplateListReq: wiretype end group for non-group")
  1858. }
  1859. if fieldNum <= 0 {
  1860. return fmt.Errorf("proto: TemplateListReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1861. }
  1862. switch fieldNum {
  1863. case 1:
  1864. if wireType != 0 {
  1865. return fmt.Errorf("proto: wrong wireType = %d for field Pn", wireType)
  1866. }
  1867. m.Pn = 0
  1868. for shift := uint(0); ; shift += 7 {
  1869. if shift >= 64 {
  1870. return ErrIntOverflowApi
  1871. }
  1872. if iNdEx >= l {
  1873. return io.ErrUnexpectedEOF
  1874. }
  1875. b := dAtA[iNdEx]
  1876. iNdEx++
  1877. m.Pn |= (int32(b) & 0x7F) << shift
  1878. if b < 0x80 {
  1879. break
  1880. }
  1881. }
  1882. case 2:
  1883. if wireType != 0 {
  1884. return fmt.Errorf("proto: wrong wireType = %d for field Ps", wireType)
  1885. }
  1886. m.Ps = 0
  1887. for shift := uint(0); ; shift += 7 {
  1888. if shift >= 64 {
  1889. return ErrIntOverflowApi
  1890. }
  1891. if iNdEx >= l {
  1892. return io.ErrUnexpectedEOF
  1893. }
  1894. b := dAtA[iNdEx]
  1895. iNdEx++
  1896. m.Ps |= (int32(b) & 0x7F) << shift
  1897. if b < 0x80 {
  1898. break
  1899. }
  1900. }
  1901. case 3:
  1902. if wireType != 2 {
  1903. return fmt.Errorf("proto: wrong wireType = %d for field St", wireType)
  1904. }
  1905. var stringLen uint64
  1906. for shift := uint(0); ; shift += 7 {
  1907. if shift >= 64 {
  1908. return ErrIntOverflowApi
  1909. }
  1910. if iNdEx >= l {
  1911. return io.ErrUnexpectedEOF
  1912. }
  1913. b := dAtA[iNdEx]
  1914. iNdEx++
  1915. stringLen |= (uint64(b) & 0x7F) << shift
  1916. if b < 0x80 {
  1917. break
  1918. }
  1919. }
  1920. intStringLen := int(stringLen)
  1921. if intStringLen < 0 {
  1922. return ErrInvalidLengthApi
  1923. }
  1924. postIndex := iNdEx + intStringLen
  1925. if postIndex > l {
  1926. return io.ErrUnexpectedEOF
  1927. }
  1928. m.St = string(dAtA[iNdEx:postIndex])
  1929. iNdEx = postIndex
  1930. case 4:
  1931. if wireType != 2 {
  1932. return fmt.Errorf("proto: wrong wireType = %d for field Sw", wireType)
  1933. }
  1934. var stringLen uint64
  1935. for shift := uint(0); ; shift += 7 {
  1936. if shift >= 64 {
  1937. return ErrIntOverflowApi
  1938. }
  1939. if iNdEx >= l {
  1940. return io.ErrUnexpectedEOF
  1941. }
  1942. b := dAtA[iNdEx]
  1943. iNdEx++
  1944. stringLen |= (uint64(b) & 0x7F) << shift
  1945. if b < 0x80 {
  1946. break
  1947. }
  1948. }
  1949. intStringLen := int(stringLen)
  1950. if intStringLen < 0 {
  1951. return ErrInvalidLengthApi
  1952. }
  1953. postIndex := iNdEx + intStringLen
  1954. if postIndex > l {
  1955. return io.ErrUnexpectedEOF
  1956. }
  1957. m.Sw = string(dAtA[iNdEx:postIndex])
  1958. iNdEx = postIndex
  1959. default:
  1960. iNdEx = preIndex
  1961. skippy, err := skipApi(dAtA[iNdEx:])
  1962. if err != nil {
  1963. return err
  1964. }
  1965. if skippy < 0 {
  1966. return ErrInvalidLengthApi
  1967. }
  1968. if (iNdEx + skippy) > l {
  1969. return io.ErrUnexpectedEOF
  1970. }
  1971. iNdEx += skippy
  1972. }
  1973. }
  1974. if iNdEx > l {
  1975. return io.ErrUnexpectedEOF
  1976. }
  1977. return nil
  1978. }
  1979. func (m *UpdateTemplateReply) Unmarshal(dAtA []byte) error {
  1980. l := len(dAtA)
  1981. iNdEx := 0
  1982. for iNdEx < l {
  1983. preIndex := iNdEx
  1984. var wire uint64
  1985. for shift := uint(0); ; shift += 7 {
  1986. if shift >= 64 {
  1987. return ErrIntOverflowApi
  1988. }
  1989. if iNdEx >= l {
  1990. return io.ErrUnexpectedEOF
  1991. }
  1992. b := dAtA[iNdEx]
  1993. iNdEx++
  1994. wire |= (uint64(b) & 0x7F) << shift
  1995. if b < 0x80 {
  1996. break
  1997. }
  1998. }
  1999. fieldNum := int32(wire >> 3)
  2000. wireType := int(wire & 0x7)
  2001. if wireType == 4 {
  2002. return fmt.Errorf("proto: UpdateTemplateReply: wiretype end group for non-group")
  2003. }
  2004. if fieldNum <= 0 {
  2005. return fmt.Errorf("proto: UpdateTemplateReply: illegal tag %d (wire type %d)", fieldNum, wire)
  2006. }
  2007. switch fieldNum {
  2008. default:
  2009. iNdEx = preIndex
  2010. skippy, err := skipApi(dAtA[iNdEx:])
  2011. if err != nil {
  2012. return err
  2013. }
  2014. if skippy < 0 {
  2015. return ErrInvalidLengthApi
  2016. }
  2017. if (iNdEx + skippy) > l {
  2018. return io.ErrUnexpectedEOF
  2019. }
  2020. iNdEx += skippy
  2021. }
  2022. }
  2023. if iNdEx > l {
  2024. return io.ErrUnexpectedEOF
  2025. }
  2026. return nil
  2027. }
  2028. func (m *UpdateTemplateReq) Unmarshal(dAtA []byte) error {
  2029. l := len(dAtA)
  2030. iNdEx := 0
  2031. for iNdEx < l {
  2032. preIndex := iNdEx
  2033. var wire uint64
  2034. for shift := uint(0); ; shift += 7 {
  2035. if shift >= 64 {
  2036. return ErrIntOverflowApi
  2037. }
  2038. if iNdEx >= l {
  2039. return io.ErrUnexpectedEOF
  2040. }
  2041. b := dAtA[iNdEx]
  2042. iNdEx++
  2043. wire |= (uint64(b) & 0x7F) << shift
  2044. if b < 0x80 {
  2045. break
  2046. }
  2047. }
  2048. fieldNum := int32(wire >> 3)
  2049. wireType := int(wire & 0x7)
  2050. if wireType == 4 {
  2051. return fmt.Errorf("proto: UpdateTemplateReq: wiretype end group for non-group")
  2052. }
  2053. if fieldNum <= 0 {
  2054. return fmt.Errorf("proto: UpdateTemplateReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2055. }
  2056. switch fieldNum {
  2057. case 1:
  2058. if wireType != 0 {
  2059. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  2060. }
  2061. m.ID = 0
  2062. for shift := uint(0); ; shift += 7 {
  2063. if shift >= 64 {
  2064. return ErrIntOverflowApi
  2065. }
  2066. if iNdEx >= l {
  2067. return io.ErrUnexpectedEOF
  2068. }
  2069. b := dAtA[iNdEx]
  2070. iNdEx++
  2071. m.ID |= (int64(b) & 0x7F) << shift
  2072. if b < 0x80 {
  2073. break
  2074. }
  2075. }
  2076. case 2:
  2077. if wireType != 0 {
  2078. return fmt.Errorf("proto: wrong wireType = %d for field Stype", wireType)
  2079. }
  2080. m.Stype = 0
  2081. for shift := uint(0); ; shift += 7 {
  2082. if shift >= 64 {
  2083. return ErrIntOverflowApi
  2084. }
  2085. if iNdEx >= l {
  2086. return io.ErrUnexpectedEOF
  2087. }
  2088. b := dAtA[iNdEx]
  2089. iNdEx++
  2090. m.Stype |= (int32(b) & 0x7F) << shift
  2091. if b < 0x80 {
  2092. break
  2093. }
  2094. }
  2095. case 3:
  2096. if wireType != 0 {
  2097. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  2098. }
  2099. m.Status = 0
  2100. for shift := uint(0); ; shift += 7 {
  2101. if shift >= 64 {
  2102. return ErrIntOverflowApi
  2103. }
  2104. if iNdEx >= l {
  2105. return io.ErrUnexpectedEOF
  2106. }
  2107. b := dAtA[iNdEx]
  2108. iNdEx++
  2109. m.Status |= (int32(b) & 0x7F) << shift
  2110. if b < 0x80 {
  2111. break
  2112. }
  2113. }
  2114. case 4:
  2115. if wireType != 2 {
  2116. return fmt.Errorf("proto: wrong wireType = %d for field Tcode", wireType)
  2117. }
  2118. var stringLen uint64
  2119. for shift := uint(0); ; shift += 7 {
  2120. if shift >= 64 {
  2121. return ErrIntOverflowApi
  2122. }
  2123. if iNdEx >= l {
  2124. return io.ErrUnexpectedEOF
  2125. }
  2126. b := dAtA[iNdEx]
  2127. iNdEx++
  2128. stringLen |= (uint64(b) & 0x7F) << shift
  2129. if b < 0x80 {
  2130. break
  2131. }
  2132. }
  2133. intStringLen := int(stringLen)
  2134. if intStringLen < 0 {
  2135. return ErrInvalidLengthApi
  2136. }
  2137. postIndex := iNdEx + intStringLen
  2138. if postIndex > l {
  2139. return io.ErrUnexpectedEOF
  2140. }
  2141. m.Tcode = string(dAtA[iNdEx:postIndex])
  2142. iNdEx = postIndex
  2143. case 5:
  2144. if wireType != 2 {
  2145. return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType)
  2146. }
  2147. var stringLen uint64
  2148. for shift := uint(0); ; shift += 7 {
  2149. if shift >= 64 {
  2150. return ErrIntOverflowApi
  2151. }
  2152. if iNdEx >= l {
  2153. return io.ErrUnexpectedEOF
  2154. }
  2155. b := dAtA[iNdEx]
  2156. iNdEx++
  2157. stringLen |= (uint64(b) & 0x7F) << shift
  2158. if b < 0x80 {
  2159. break
  2160. }
  2161. }
  2162. intStringLen := int(stringLen)
  2163. if intStringLen < 0 {
  2164. return ErrInvalidLengthApi
  2165. }
  2166. postIndex := iNdEx + intStringLen
  2167. if postIndex > l {
  2168. return io.ErrUnexpectedEOF
  2169. }
  2170. m.Template = string(dAtA[iNdEx:postIndex])
  2171. iNdEx = postIndex
  2172. case 6:
  2173. if wireType != 2 {
  2174. return fmt.Errorf("proto: wrong wireType = %d for field Submitter", wireType)
  2175. }
  2176. var stringLen uint64
  2177. for shift := uint(0); ; shift += 7 {
  2178. if shift >= 64 {
  2179. return ErrIntOverflowApi
  2180. }
  2181. if iNdEx >= l {
  2182. return io.ErrUnexpectedEOF
  2183. }
  2184. b := dAtA[iNdEx]
  2185. iNdEx++
  2186. stringLen |= (uint64(b) & 0x7F) << shift
  2187. if b < 0x80 {
  2188. break
  2189. }
  2190. }
  2191. intStringLen := int(stringLen)
  2192. if intStringLen < 0 {
  2193. return ErrInvalidLengthApi
  2194. }
  2195. postIndex := iNdEx + intStringLen
  2196. if postIndex > l {
  2197. return io.ErrUnexpectedEOF
  2198. }
  2199. m.Submitter = string(dAtA[iNdEx:postIndex])
  2200. iNdEx = postIndex
  2201. default:
  2202. iNdEx = preIndex
  2203. skippy, err := skipApi(dAtA[iNdEx:])
  2204. if err != nil {
  2205. return err
  2206. }
  2207. if skippy < 0 {
  2208. return ErrInvalidLengthApi
  2209. }
  2210. if (iNdEx + skippy) > l {
  2211. return io.ErrUnexpectedEOF
  2212. }
  2213. iNdEx += skippy
  2214. }
  2215. }
  2216. if iNdEx > l {
  2217. return io.ErrUnexpectedEOF
  2218. }
  2219. return nil
  2220. }
  2221. func (m *SendReply) Unmarshal(dAtA []byte) error {
  2222. l := len(dAtA)
  2223. iNdEx := 0
  2224. for iNdEx < l {
  2225. preIndex := iNdEx
  2226. var wire uint64
  2227. for shift := uint(0); ; shift += 7 {
  2228. if shift >= 64 {
  2229. return ErrIntOverflowApi
  2230. }
  2231. if iNdEx >= l {
  2232. return io.ErrUnexpectedEOF
  2233. }
  2234. b := dAtA[iNdEx]
  2235. iNdEx++
  2236. wire |= (uint64(b) & 0x7F) << shift
  2237. if b < 0x80 {
  2238. break
  2239. }
  2240. }
  2241. fieldNum := int32(wire >> 3)
  2242. wireType := int(wire & 0x7)
  2243. if wireType == 4 {
  2244. return fmt.Errorf("proto: SendReply: wiretype end group for non-group")
  2245. }
  2246. if fieldNum <= 0 {
  2247. return fmt.Errorf("proto: SendReply: illegal tag %d (wire type %d)", fieldNum, wire)
  2248. }
  2249. switch fieldNum {
  2250. default:
  2251. iNdEx = preIndex
  2252. skippy, err := skipApi(dAtA[iNdEx:])
  2253. if err != nil {
  2254. return err
  2255. }
  2256. if skippy < 0 {
  2257. return ErrInvalidLengthApi
  2258. }
  2259. if (iNdEx + skippy) > l {
  2260. return io.ErrUnexpectedEOF
  2261. }
  2262. iNdEx += skippy
  2263. }
  2264. }
  2265. if iNdEx > l {
  2266. return io.ErrUnexpectedEOF
  2267. }
  2268. return nil
  2269. }
  2270. func (m *SendReq) Unmarshal(dAtA []byte) error {
  2271. l := len(dAtA)
  2272. iNdEx := 0
  2273. for iNdEx < l {
  2274. preIndex := iNdEx
  2275. var wire uint64
  2276. for shift := uint(0); ; shift += 7 {
  2277. if shift >= 64 {
  2278. return ErrIntOverflowApi
  2279. }
  2280. if iNdEx >= l {
  2281. return io.ErrUnexpectedEOF
  2282. }
  2283. b := dAtA[iNdEx]
  2284. iNdEx++
  2285. wire |= (uint64(b) & 0x7F) << shift
  2286. if b < 0x80 {
  2287. break
  2288. }
  2289. }
  2290. fieldNum := int32(wire >> 3)
  2291. wireType := int(wire & 0x7)
  2292. if wireType == 4 {
  2293. return fmt.Errorf("proto: SendReq: wiretype end group for non-group")
  2294. }
  2295. if fieldNum <= 0 {
  2296. return fmt.Errorf("proto: SendReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2297. }
  2298. switch fieldNum {
  2299. case 1:
  2300. if wireType != 0 {
  2301. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  2302. }
  2303. m.Mid = 0
  2304. for shift := uint(0); ; shift += 7 {
  2305. if shift >= 64 {
  2306. return ErrIntOverflowApi
  2307. }
  2308. if iNdEx >= l {
  2309. return io.ErrUnexpectedEOF
  2310. }
  2311. b := dAtA[iNdEx]
  2312. iNdEx++
  2313. m.Mid |= (int64(b) & 0x7F) << shift
  2314. if b < 0x80 {
  2315. break
  2316. }
  2317. }
  2318. case 2:
  2319. if wireType != 2 {
  2320. return fmt.Errorf("proto: wrong wireType = %d for field Mobile", wireType)
  2321. }
  2322. var stringLen uint64
  2323. for shift := uint(0); ; shift += 7 {
  2324. if shift >= 64 {
  2325. return ErrIntOverflowApi
  2326. }
  2327. if iNdEx >= l {
  2328. return io.ErrUnexpectedEOF
  2329. }
  2330. b := dAtA[iNdEx]
  2331. iNdEx++
  2332. stringLen |= (uint64(b) & 0x7F) << shift
  2333. if b < 0x80 {
  2334. break
  2335. }
  2336. }
  2337. intStringLen := int(stringLen)
  2338. if intStringLen < 0 {
  2339. return ErrInvalidLengthApi
  2340. }
  2341. postIndex := iNdEx + intStringLen
  2342. if postIndex > l {
  2343. return io.ErrUnexpectedEOF
  2344. }
  2345. m.Mobile = string(dAtA[iNdEx:postIndex])
  2346. iNdEx = postIndex
  2347. case 3:
  2348. if wireType != 2 {
  2349. return fmt.Errorf("proto: wrong wireType = %d for field Country", wireType)
  2350. }
  2351. var stringLen uint64
  2352. for shift := uint(0); ; shift += 7 {
  2353. if shift >= 64 {
  2354. return ErrIntOverflowApi
  2355. }
  2356. if iNdEx >= l {
  2357. return io.ErrUnexpectedEOF
  2358. }
  2359. b := dAtA[iNdEx]
  2360. iNdEx++
  2361. stringLen |= (uint64(b) & 0x7F) << shift
  2362. if b < 0x80 {
  2363. break
  2364. }
  2365. }
  2366. intStringLen := int(stringLen)
  2367. if intStringLen < 0 {
  2368. return ErrInvalidLengthApi
  2369. }
  2370. postIndex := iNdEx + intStringLen
  2371. if postIndex > l {
  2372. return io.ErrUnexpectedEOF
  2373. }
  2374. m.Country = string(dAtA[iNdEx:postIndex])
  2375. iNdEx = postIndex
  2376. case 4:
  2377. if wireType != 2 {
  2378. return fmt.Errorf("proto: wrong wireType = %d for field Tcode", wireType)
  2379. }
  2380. var stringLen uint64
  2381. for shift := uint(0); ; shift += 7 {
  2382. if shift >= 64 {
  2383. return ErrIntOverflowApi
  2384. }
  2385. if iNdEx >= l {
  2386. return io.ErrUnexpectedEOF
  2387. }
  2388. b := dAtA[iNdEx]
  2389. iNdEx++
  2390. stringLen |= (uint64(b) & 0x7F) << shift
  2391. if b < 0x80 {
  2392. break
  2393. }
  2394. }
  2395. intStringLen := int(stringLen)
  2396. if intStringLen < 0 {
  2397. return ErrInvalidLengthApi
  2398. }
  2399. postIndex := iNdEx + intStringLen
  2400. if postIndex > l {
  2401. return io.ErrUnexpectedEOF
  2402. }
  2403. m.Tcode = string(dAtA[iNdEx:postIndex])
  2404. iNdEx = postIndex
  2405. case 5:
  2406. if wireType != 2 {
  2407. return fmt.Errorf("proto: wrong wireType = %d for field Tparam", wireType)
  2408. }
  2409. var stringLen uint64
  2410. for shift := uint(0); ; shift += 7 {
  2411. if shift >= 64 {
  2412. return ErrIntOverflowApi
  2413. }
  2414. if iNdEx >= l {
  2415. return io.ErrUnexpectedEOF
  2416. }
  2417. b := dAtA[iNdEx]
  2418. iNdEx++
  2419. stringLen |= (uint64(b) & 0x7F) << shift
  2420. if b < 0x80 {
  2421. break
  2422. }
  2423. }
  2424. intStringLen := int(stringLen)
  2425. if intStringLen < 0 {
  2426. return ErrInvalidLengthApi
  2427. }
  2428. postIndex := iNdEx + intStringLen
  2429. if postIndex > l {
  2430. return io.ErrUnexpectedEOF
  2431. }
  2432. m.Tparam = string(dAtA[iNdEx:postIndex])
  2433. iNdEx = postIndex
  2434. default:
  2435. iNdEx = preIndex
  2436. skippy, err := skipApi(dAtA[iNdEx:])
  2437. if err != nil {
  2438. return err
  2439. }
  2440. if skippy < 0 {
  2441. return ErrInvalidLengthApi
  2442. }
  2443. if (iNdEx + skippy) > l {
  2444. return io.ErrUnexpectedEOF
  2445. }
  2446. iNdEx += skippy
  2447. }
  2448. }
  2449. if iNdEx > l {
  2450. return io.ErrUnexpectedEOF
  2451. }
  2452. return nil
  2453. }
  2454. func (m *SendBatchReply) Unmarshal(dAtA []byte) error {
  2455. l := len(dAtA)
  2456. iNdEx := 0
  2457. for iNdEx < l {
  2458. preIndex := iNdEx
  2459. var wire uint64
  2460. for shift := uint(0); ; shift += 7 {
  2461. if shift >= 64 {
  2462. return ErrIntOverflowApi
  2463. }
  2464. if iNdEx >= l {
  2465. return io.ErrUnexpectedEOF
  2466. }
  2467. b := dAtA[iNdEx]
  2468. iNdEx++
  2469. wire |= (uint64(b) & 0x7F) << shift
  2470. if b < 0x80 {
  2471. break
  2472. }
  2473. }
  2474. fieldNum := int32(wire >> 3)
  2475. wireType := int(wire & 0x7)
  2476. if wireType == 4 {
  2477. return fmt.Errorf("proto: SendBatchReply: wiretype end group for non-group")
  2478. }
  2479. if fieldNum <= 0 {
  2480. return fmt.Errorf("proto: SendBatchReply: illegal tag %d (wire type %d)", fieldNum, wire)
  2481. }
  2482. switch fieldNum {
  2483. default:
  2484. iNdEx = preIndex
  2485. skippy, err := skipApi(dAtA[iNdEx:])
  2486. if err != nil {
  2487. return err
  2488. }
  2489. if skippy < 0 {
  2490. return ErrInvalidLengthApi
  2491. }
  2492. if (iNdEx + skippy) > l {
  2493. return io.ErrUnexpectedEOF
  2494. }
  2495. iNdEx += skippy
  2496. }
  2497. }
  2498. if iNdEx > l {
  2499. return io.ErrUnexpectedEOF
  2500. }
  2501. return nil
  2502. }
  2503. func (m *SendBatchReq) Unmarshal(dAtA []byte) error {
  2504. l := len(dAtA)
  2505. iNdEx := 0
  2506. for iNdEx < l {
  2507. preIndex := iNdEx
  2508. var wire uint64
  2509. for shift := uint(0); ; shift += 7 {
  2510. if shift >= 64 {
  2511. return ErrIntOverflowApi
  2512. }
  2513. if iNdEx >= l {
  2514. return io.ErrUnexpectedEOF
  2515. }
  2516. b := dAtA[iNdEx]
  2517. iNdEx++
  2518. wire |= (uint64(b) & 0x7F) << shift
  2519. if b < 0x80 {
  2520. break
  2521. }
  2522. }
  2523. fieldNum := int32(wire >> 3)
  2524. wireType := int(wire & 0x7)
  2525. if wireType == 4 {
  2526. return fmt.Errorf("proto: SendBatchReq: wiretype end group for non-group")
  2527. }
  2528. if fieldNum <= 0 {
  2529. return fmt.Errorf("proto: SendBatchReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2530. }
  2531. switch fieldNum {
  2532. case 1:
  2533. if wireType == 0 {
  2534. var v int64
  2535. for shift := uint(0); ; shift += 7 {
  2536. if shift >= 64 {
  2537. return ErrIntOverflowApi
  2538. }
  2539. if iNdEx >= l {
  2540. return io.ErrUnexpectedEOF
  2541. }
  2542. b := dAtA[iNdEx]
  2543. iNdEx++
  2544. v |= (int64(b) & 0x7F) << shift
  2545. if b < 0x80 {
  2546. break
  2547. }
  2548. }
  2549. m.Mids = append(m.Mids, v)
  2550. } else if wireType == 2 {
  2551. var packedLen int
  2552. for shift := uint(0); ; shift += 7 {
  2553. if shift >= 64 {
  2554. return ErrIntOverflowApi
  2555. }
  2556. if iNdEx >= l {
  2557. return io.ErrUnexpectedEOF
  2558. }
  2559. b := dAtA[iNdEx]
  2560. iNdEx++
  2561. packedLen |= (int(b) & 0x7F) << shift
  2562. if b < 0x80 {
  2563. break
  2564. }
  2565. }
  2566. if packedLen < 0 {
  2567. return ErrInvalidLengthApi
  2568. }
  2569. postIndex := iNdEx + packedLen
  2570. if postIndex > l {
  2571. return io.ErrUnexpectedEOF
  2572. }
  2573. for iNdEx < postIndex {
  2574. var v int64
  2575. for shift := uint(0); ; shift += 7 {
  2576. if shift >= 64 {
  2577. return ErrIntOverflowApi
  2578. }
  2579. if iNdEx >= l {
  2580. return io.ErrUnexpectedEOF
  2581. }
  2582. b := dAtA[iNdEx]
  2583. iNdEx++
  2584. v |= (int64(b) & 0x7F) << shift
  2585. if b < 0x80 {
  2586. break
  2587. }
  2588. }
  2589. m.Mids = append(m.Mids, v)
  2590. }
  2591. } else {
  2592. return fmt.Errorf("proto: wrong wireType = %d for field Mids", wireType)
  2593. }
  2594. case 2:
  2595. if wireType != 2 {
  2596. return fmt.Errorf("proto: wrong wireType = %d for field Mobiles", wireType)
  2597. }
  2598. var stringLen uint64
  2599. for shift := uint(0); ; shift += 7 {
  2600. if shift >= 64 {
  2601. return ErrIntOverflowApi
  2602. }
  2603. if iNdEx >= l {
  2604. return io.ErrUnexpectedEOF
  2605. }
  2606. b := dAtA[iNdEx]
  2607. iNdEx++
  2608. stringLen |= (uint64(b) & 0x7F) << shift
  2609. if b < 0x80 {
  2610. break
  2611. }
  2612. }
  2613. intStringLen := int(stringLen)
  2614. if intStringLen < 0 {
  2615. return ErrInvalidLengthApi
  2616. }
  2617. postIndex := iNdEx + intStringLen
  2618. if postIndex > l {
  2619. return io.ErrUnexpectedEOF
  2620. }
  2621. m.Mobiles = append(m.Mobiles, string(dAtA[iNdEx:postIndex]))
  2622. iNdEx = postIndex
  2623. case 3:
  2624. if wireType != 2 {
  2625. return fmt.Errorf("proto: wrong wireType = %d for field Tcode", wireType)
  2626. }
  2627. var stringLen uint64
  2628. for shift := uint(0); ; shift += 7 {
  2629. if shift >= 64 {
  2630. return ErrIntOverflowApi
  2631. }
  2632. if iNdEx >= l {
  2633. return io.ErrUnexpectedEOF
  2634. }
  2635. b := dAtA[iNdEx]
  2636. iNdEx++
  2637. stringLen |= (uint64(b) & 0x7F) << shift
  2638. if b < 0x80 {
  2639. break
  2640. }
  2641. }
  2642. intStringLen := int(stringLen)
  2643. if intStringLen < 0 {
  2644. return ErrInvalidLengthApi
  2645. }
  2646. postIndex := iNdEx + intStringLen
  2647. if postIndex > l {
  2648. return io.ErrUnexpectedEOF
  2649. }
  2650. m.Tcode = string(dAtA[iNdEx:postIndex])
  2651. iNdEx = postIndex
  2652. case 4:
  2653. if wireType != 2 {
  2654. return fmt.Errorf("proto: wrong wireType = %d for field Tparam", wireType)
  2655. }
  2656. var stringLen uint64
  2657. for shift := uint(0); ; shift += 7 {
  2658. if shift >= 64 {
  2659. return ErrIntOverflowApi
  2660. }
  2661. if iNdEx >= l {
  2662. return io.ErrUnexpectedEOF
  2663. }
  2664. b := dAtA[iNdEx]
  2665. iNdEx++
  2666. stringLen |= (uint64(b) & 0x7F) << shift
  2667. if b < 0x80 {
  2668. break
  2669. }
  2670. }
  2671. intStringLen := int(stringLen)
  2672. if intStringLen < 0 {
  2673. return ErrInvalidLengthApi
  2674. }
  2675. postIndex := iNdEx + intStringLen
  2676. if postIndex > l {
  2677. return io.ErrUnexpectedEOF
  2678. }
  2679. m.Tparam = string(dAtA[iNdEx:postIndex])
  2680. iNdEx = postIndex
  2681. default:
  2682. iNdEx = preIndex
  2683. skippy, err := skipApi(dAtA[iNdEx:])
  2684. if err != nil {
  2685. return err
  2686. }
  2687. if skippy < 0 {
  2688. return ErrInvalidLengthApi
  2689. }
  2690. if (iNdEx + skippy) > l {
  2691. return io.ErrUnexpectedEOF
  2692. }
  2693. iNdEx += skippy
  2694. }
  2695. }
  2696. if iNdEx > l {
  2697. return io.ErrUnexpectedEOF
  2698. }
  2699. return nil
  2700. }
  2701. func (m *AddTaskReq) Unmarshal(dAtA []byte) error {
  2702. l := len(dAtA)
  2703. iNdEx := 0
  2704. for iNdEx < l {
  2705. preIndex := iNdEx
  2706. var wire uint64
  2707. for shift := uint(0); ; shift += 7 {
  2708. if shift >= 64 {
  2709. return ErrIntOverflowApi
  2710. }
  2711. if iNdEx >= l {
  2712. return io.ErrUnexpectedEOF
  2713. }
  2714. b := dAtA[iNdEx]
  2715. iNdEx++
  2716. wire |= (uint64(b) & 0x7F) << shift
  2717. if b < 0x80 {
  2718. break
  2719. }
  2720. }
  2721. fieldNum := int32(wire >> 3)
  2722. wireType := int(wire & 0x7)
  2723. if wireType == 4 {
  2724. return fmt.Errorf("proto: AddTaskReq: wiretype end group for non-group")
  2725. }
  2726. if fieldNum <= 0 {
  2727. return fmt.Errorf("proto: AddTaskReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2728. }
  2729. switch fieldNum {
  2730. case 1:
  2731. if wireType != 0 {
  2732. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2733. }
  2734. m.Type = 0
  2735. for shift := uint(0); ; shift += 7 {
  2736. if shift >= 64 {
  2737. return ErrIntOverflowApi
  2738. }
  2739. if iNdEx >= l {
  2740. return io.ErrUnexpectedEOF
  2741. }
  2742. b := dAtA[iNdEx]
  2743. iNdEx++
  2744. m.Type |= (int32(b) & 0x7F) << shift
  2745. if b < 0x80 {
  2746. break
  2747. }
  2748. }
  2749. case 2:
  2750. if wireType != 0 {
  2751. return fmt.Errorf("proto: wrong wireType = %d for field BusinessID", wireType)
  2752. }
  2753. m.BusinessID = 0
  2754. for shift := uint(0); ; shift += 7 {
  2755. if shift >= 64 {
  2756. return ErrIntOverflowApi
  2757. }
  2758. if iNdEx >= l {
  2759. return io.ErrUnexpectedEOF
  2760. }
  2761. b := dAtA[iNdEx]
  2762. iNdEx++
  2763. m.BusinessID |= (int32(b) & 0x7F) << shift
  2764. if b < 0x80 {
  2765. break
  2766. }
  2767. }
  2768. case 3:
  2769. if wireType != 2 {
  2770. return fmt.Errorf("proto: wrong wireType = %d for field TemplateCode", wireType)
  2771. }
  2772. var stringLen uint64
  2773. for shift := uint(0); ; shift += 7 {
  2774. if shift >= 64 {
  2775. return ErrIntOverflowApi
  2776. }
  2777. if iNdEx >= l {
  2778. return io.ErrUnexpectedEOF
  2779. }
  2780. b := dAtA[iNdEx]
  2781. iNdEx++
  2782. stringLen |= (uint64(b) & 0x7F) << shift
  2783. if b < 0x80 {
  2784. break
  2785. }
  2786. }
  2787. intStringLen := int(stringLen)
  2788. if intStringLen < 0 {
  2789. return ErrInvalidLengthApi
  2790. }
  2791. postIndex := iNdEx + intStringLen
  2792. if postIndex > l {
  2793. return io.ErrUnexpectedEOF
  2794. }
  2795. m.TemplateCode = string(dAtA[iNdEx:postIndex])
  2796. iNdEx = postIndex
  2797. case 4:
  2798. if wireType != 2 {
  2799. return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType)
  2800. }
  2801. var stringLen uint64
  2802. for shift := uint(0); ; shift += 7 {
  2803. if shift >= 64 {
  2804. return ErrIntOverflowApi
  2805. }
  2806. if iNdEx >= l {
  2807. return io.ErrUnexpectedEOF
  2808. }
  2809. b := dAtA[iNdEx]
  2810. iNdEx++
  2811. stringLen |= (uint64(b) & 0x7F) << shift
  2812. if b < 0x80 {
  2813. break
  2814. }
  2815. }
  2816. intStringLen := int(stringLen)
  2817. if intStringLen < 0 {
  2818. return ErrInvalidLengthApi
  2819. }
  2820. postIndex := iNdEx + intStringLen
  2821. if postIndex > l {
  2822. return io.ErrUnexpectedEOF
  2823. }
  2824. m.Desc = string(dAtA[iNdEx:postIndex])
  2825. iNdEx = postIndex
  2826. case 5:
  2827. if wireType != 2 {
  2828. return fmt.Errorf("proto: wrong wireType = %d for field FileName", wireType)
  2829. }
  2830. var stringLen uint64
  2831. for shift := uint(0); ; shift += 7 {
  2832. if shift >= 64 {
  2833. return ErrIntOverflowApi
  2834. }
  2835. if iNdEx >= l {
  2836. return io.ErrUnexpectedEOF
  2837. }
  2838. b := dAtA[iNdEx]
  2839. iNdEx++
  2840. stringLen |= (uint64(b) & 0x7F) << shift
  2841. if b < 0x80 {
  2842. break
  2843. }
  2844. }
  2845. intStringLen := int(stringLen)
  2846. if intStringLen < 0 {
  2847. return ErrInvalidLengthApi
  2848. }
  2849. postIndex := iNdEx + intStringLen
  2850. if postIndex > l {
  2851. return io.ErrUnexpectedEOF
  2852. }
  2853. m.FileName = string(dAtA[iNdEx:postIndex])
  2854. iNdEx = postIndex
  2855. case 6:
  2856. if wireType != 2 {
  2857. return fmt.Errorf("proto: wrong wireType = %d for field FilePath", wireType)
  2858. }
  2859. var stringLen uint64
  2860. for shift := uint(0); ; shift += 7 {
  2861. if shift >= 64 {
  2862. return ErrIntOverflowApi
  2863. }
  2864. if iNdEx >= l {
  2865. return io.ErrUnexpectedEOF
  2866. }
  2867. b := dAtA[iNdEx]
  2868. iNdEx++
  2869. stringLen |= (uint64(b) & 0x7F) << shift
  2870. if b < 0x80 {
  2871. break
  2872. }
  2873. }
  2874. intStringLen := int(stringLen)
  2875. if intStringLen < 0 {
  2876. return ErrInvalidLengthApi
  2877. }
  2878. postIndex := iNdEx + intStringLen
  2879. if postIndex > l {
  2880. return io.ErrUnexpectedEOF
  2881. }
  2882. m.FilePath = string(dAtA[iNdEx:postIndex])
  2883. iNdEx = postIndex
  2884. case 7:
  2885. if wireType != 0 {
  2886. return fmt.Errorf("proto: wrong wireType = %d for field SendTime", wireType)
  2887. }
  2888. m.SendTime = 0
  2889. for shift := uint(0); ; shift += 7 {
  2890. if shift >= 64 {
  2891. return ErrIntOverflowApi
  2892. }
  2893. if iNdEx >= l {
  2894. return io.ErrUnexpectedEOF
  2895. }
  2896. b := dAtA[iNdEx]
  2897. iNdEx++
  2898. m.SendTime |= (int64(b) & 0x7F) << shift
  2899. if b < 0x80 {
  2900. break
  2901. }
  2902. }
  2903. default:
  2904. iNdEx = preIndex
  2905. skippy, err := skipApi(dAtA[iNdEx:])
  2906. if err != nil {
  2907. return err
  2908. }
  2909. if skippy < 0 {
  2910. return ErrInvalidLengthApi
  2911. }
  2912. if (iNdEx + skippy) > l {
  2913. return io.ErrUnexpectedEOF
  2914. }
  2915. iNdEx += skippy
  2916. }
  2917. }
  2918. if iNdEx > l {
  2919. return io.ErrUnexpectedEOF
  2920. }
  2921. return nil
  2922. }
  2923. func (m *AddTaskReply) Unmarshal(dAtA []byte) error {
  2924. l := len(dAtA)
  2925. iNdEx := 0
  2926. for iNdEx < l {
  2927. preIndex := iNdEx
  2928. var wire uint64
  2929. for shift := uint(0); ; shift += 7 {
  2930. if shift >= 64 {
  2931. return ErrIntOverflowApi
  2932. }
  2933. if iNdEx >= l {
  2934. return io.ErrUnexpectedEOF
  2935. }
  2936. b := dAtA[iNdEx]
  2937. iNdEx++
  2938. wire |= (uint64(b) & 0x7F) << shift
  2939. if b < 0x80 {
  2940. break
  2941. }
  2942. }
  2943. fieldNum := int32(wire >> 3)
  2944. wireType := int(wire & 0x7)
  2945. if wireType == 4 {
  2946. return fmt.Errorf("proto: AddTaskReply: wiretype end group for non-group")
  2947. }
  2948. if fieldNum <= 0 {
  2949. return fmt.Errorf("proto: AddTaskReply: illegal tag %d (wire type %d)", fieldNum, wire)
  2950. }
  2951. switch fieldNum {
  2952. default:
  2953. iNdEx = preIndex
  2954. skippy, err := skipApi(dAtA[iNdEx:])
  2955. if err != nil {
  2956. return err
  2957. }
  2958. if skippy < 0 {
  2959. return ErrInvalidLengthApi
  2960. }
  2961. if (iNdEx + skippy) > l {
  2962. return io.ErrUnexpectedEOF
  2963. }
  2964. iNdEx += skippy
  2965. }
  2966. }
  2967. if iNdEx > l {
  2968. return io.ErrUnexpectedEOF
  2969. }
  2970. return nil
  2971. }
  2972. func (m *UpdateTaskReq) Unmarshal(dAtA []byte) error {
  2973. l := len(dAtA)
  2974. iNdEx := 0
  2975. for iNdEx < l {
  2976. preIndex := iNdEx
  2977. var wire uint64
  2978. for shift := uint(0); ; shift += 7 {
  2979. if shift >= 64 {
  2980. return ErrIntOverflowApi
  2981. }
  2982. if iNdEx >= l {
  2983. return io.ErrUnexpectedEOF
  2984. }
  2985. b := dAtA[iNdEx]
  2986. iNdEx++
  2987. wire |= (uint64(b) & 0x7F) << shift
  2988. if b < 0x80 {
  2989. break
  2990. }
  2991. }
  2992. fieldNum := int32(wire >> 3)
  2993. wireType := int(wire & 0x7)
  2994. if wireType == 4 {
  2995. return fmt.Errorf("proto: UpdateTaskReq: wiretype end group for non-group")
  2996. }
  2997. if fieldNum <= 0 {
  2998. return fmt.Errorf("proto: UpdateTaskReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2999. }
  3000. switch fieldNum {
  3001. case 1:
  3002. if wireType != 0 {
  3003. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  3004. }
  3005. m.ID = 0
  3006. for shift := uint(0); ; shift += 7 {
  3007. if shift >= 64 {
  3008. return ErrIntOverflowApi
  3009. }
  3010. if iNdEx >= l {
  3011. return io.ErrUnexpectedEOF
  3012. }
  3013. b := dAtA[iNdEx]
  3014. iNdEx++
  3015. m.ID |= (int64(b) & 0x7F) << shift
  3016. if b < 0x80 {
  3017. break
  3018. }
  3019. }
  3020. case 2:
  3021. if wireType != 0 {
  3022. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  3023. }
  3024. m.Type = 0
  3025. for shift := uint(0); ; shift += 7 {
  3026. if shift >= 64 {
  3027. return ErrIntOverflowApi
  3028. }
  3029. if iNdEx >= l {
  3030. return io.ErrUnexpectedEOF
  3031. }
  3032. b := dAtA[iNdEx]
  3033. iNdEx++
  3034. m.Type |= (int32(b) & 0x7F) << shift
  3035. if b < 0x80 {
  3036. break
  3037. }
  3038. }
  3039. case 3:
  3040. if wireType != 0 {
  3041. return fmt.Errorf("proto: wrong wireType = %d for field BusinessID", wireType)
  3042. }
  3043. m.BusinessID = 0
  3044. for shift := uint(0); ; shift += 7 {
  3045. if shift >= 64 {
  3046. return ErrIntOverflowApi
  3047. }
  3048. if iNdEx >= l {
  3049. return io.ErrUnexpectedEOF
  3050. }
  3051. b := dAtA[iNdEx]
  3052. iNdEx++
  3053. m.BusinessID |= (int32(b) & 0x7F) << shift
  3054. if b < 0x80 {
  3055. break
  3056. }
  3057. }
  3058. case 4:
  3059. if wireType != 2 {
  3060. return fmt.Errorf("proto: wrong wireType = %d for field TemplateCode", wireType)
  3061. }
  3062. var stringLen uint64
  3063. for shift := uint(0); ; shift += 7 {
  3064. if shift >= 64 {
  3065. return ErrIntOverflowApi
  3066. }
  3067. if iNdEx >= l {
  3068. return io.ErrUnexpectedEOF
  3069. }
  3070. b := dAtA[iNdEx]
  3071. iNdEx++
  3072. stringLen |= (uint64(b) & 0x7F) << shift
  3073. if b < 0x80 {
  3074. break
  3075. }
  3076. }
  3077. intStringLen := int(stringLen)
  3078. if intStringLen < 0 {
  3079. return ErrInvalidLengthApi
  3080. }
  3081. postIndex := iNdEx + intStringLen
  3082. if postIndex > l {
  3083. return io.ErrUnexpectedEOF
  3084. }
  3085. m.TemplateCode = string(dAtA[iNdEx:postIndex])
  3086. iNdEx = postIndex
  3087. case 5:
  3088. if wireType != 2 {
  3089. return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType)
  3090. }
  3091. var stringLen uint64
  3092. for shift := uint(0); ; shift += 7 {
  3093. if shift >= 64 {
  3094. return ErrIntOverflowApi
  3095. }
  3096. if iNdEx >= l {
  3097. return io.ErrUnexpectedEOF
  3098. }
  3099. b := dAtA[iNdEx]
  3100. iNdEx++
  3101. stringLen |= (uint64(b) & 0x7F) << shift
  3102. if b < 0x80 {
  3103. break
  3104. }
  3105. }
  3106. intStringLen := int(stringLen)
  3107. if intStringLen < 0 {
  3108. return ErrInvalidLengthApi
  3109. }
  3110. postIndex := iNdEx + intStringLen
  3111. if postIndex > l {
  3112. return io.ErrUnexpectedEOF
  3113. }
  3114. m.Desc = string(dAtA[iNdEx:postIndex])
  3115. iNdEx = postIndex
  3116. case 6:
  3117. if wireType != 2 {
  3118. return fmt.Errorf("proto: wrong wireType = %d for field FileName", wireType)
  3119. }
  3120. var stringLen uint64
  3121. for shift := uint(0); ; shift += 7 {
  3122. if shift >= 64 {
  3123. return ErrIntOverflowApi
  3124. }
  3125. if iNdEx >= l {
  3126. return io.ErrUnexpectedEOF
  3127. }
  3128. b := dAtA[iNdEx]
  3129. iNdEx++
  3130. stringLen |= (uint64(b) & 0x7F) << shift
  3131. if b < 0x80 {
  3132. break
  3133. }
  3134. }
  3135. intStringLen := int(stringLen)
  3136. if intStringLen < 0 {
  3137. return ErrInvalidLengthApi
  3138. }
  3139. postIndex := iNdEx + intStringLen
  3140. if postIndex > l {
  3141. return io.ErrUnexpectedEOF
  3142. }
  3143. m.FileName = string(dAtA[iNdEx:postIndex])
  3144. iNdEx = postIndex
  3145. case 7:
  3146. if wireType != 2 {
  3147. return fmt.Errorf("proto: wrong wireType = %d for field FilePath", wireType)
  3148. }
  3149. var stringLen uint64
  3150. for shift := uint(0); ; shift += 7 {
  3151. if shift >= 64 {
  3152. return ErrIntOverflowApi
  3153. }
  3154. if iNdEx >= l {
  3155. return io.ErrUnexpectedEOF
  3156. }
  3157. b := dAtA[iNdEx]
  3158. iNdEx++
  3159. stringLen |= (uint64(b) & 0x7F) << shift
  3160. if b < 0x80 {
  3161. break
  3162. }
  3163. }
  3164. intStringLen := int(stringLen)
  3165. if intStringLen < 0 {
  3166. return ErrInvalidLengthApi
  3167. }
  3168. postIndex := iNdEx + intStringLen
  3169. if postIndex > l {
  3170. return io.ErrUnexpectedEOF
  3171. }
  3172. m.FilePath = string(dAtA[iNdEx:postIndex])
  3173. iNdEx = postIndex
  3174. case 8:
  3175. if wireType != 0 {
  3176. return fmt.Errorf("proto: wrong wireType = %d for field SendTime", wireType)
  3177. }
  3178. m.SendTime = 0
  3179. for shift := uint(0); ; shift += 7 {
  3180. if shift >= 64 {
  3181. return ErrIntOverflowApi
  3182. }
  3183. if iNdEx >= l {
  3184. return io.ErrUnexpectedEOF
  3185. }
  3186. b := dAtA[iNdEx]
  3187. iNdEx++
  3188. m.SendTime |= (int64(b) & 0x7F) << shift
  3189. if b < 0x80 {
  3190. break
  3191. }
  3192. }
  3193. default:
  3194. iNdEx = preIndex
  3195. skippy, err := skipApi(dAtA[iNdEx:])
  3196. if err != nil {
  3197. return err
  3198. }
  3199. if skippy < 0 {
  3200. return ErrInvalidLengthApi
  3201. }
  3202. if (iNdEx + skippy) > l {
  3203. return io.ErrUnexpectedEOF
  3204. }
  3205. iNdEx += skippy
  3206. }
  3207. }
  3208. if iNdEx > l {
  3209. return io.ErrUnexpectedEOF
  3210. }
  3211. return nil
  3212. }
  3213. func (m *UpdateTaskReply) Unmarshal(dAtA []byte) error {
  3214. l := len(dAtA)
  3215. iNdEx := 0
  3216. for iNdEx < l {
  3217. preIndex := iNdEx
  3218. var wire uint64
  3219. for shift := uint(0); ; shift += 7 {
  3220. if shift >= 64 {
  3221. return ErrIntOverflowApi
  3222. }
  3223. if iNdEx >= l {
  3224. return io.ErrUnexpectedEOF
  3225. }
  3226. b := dAtA[iNdEx]
  3227. iNdEx++
  3228. wire |= (uint64(b) & 0x7F) << shift
  3229. if b < 0x80 {
  3230. break
  3231. }
  3232. }
  3233. fieldNum := int32(wire >> 3)
  3234. wireType := int(wire & 0x7)
  3235. if wireType == 4 {
  3236. return fmt.Errorf("proto: UpdateTaskReply: wiretype end group for non-group")
  3237. }
  3238. if fieldNum <= 0 {
  3239. return fmt.Errorf("proto: UpdateTaskReply: illegal tag %d (wire type %d)", fieldNum, wire)
  3240. }
  3241. switch fieldNum {
  3242. default:
  3243. iNdEx = preIndex
  3244. skippy, err := skipApi(dAtA[iNdEx:])
  3245. if err != nil {
  3246. return err
  3247. }
  3248. if skippy < 0 {
  3249. return ErrInvalidLengthApi
  3250. }
  3251. if (iNdEx + skippy) > l {
  3252. return io.ErrUnexpectedEOF
  3253. }
  3254. iNdEx += skippy
  3255. }
  3256. }
  3257. if iNdEx > l {
  3258. return io.ErrUnexpectedEOF
  3259. }
  3260. return nil
  3261. }
  3262. func (m *DeleteTaskReq) Unmarshal(dAtA []byte) error {
  3263. l := len(dAtA)
  3264. iNdEx := 0
  3265. for iNdEx < l {
  3266. preIndex := iNdEx
  3267. var wire uint64
  3268. for shift := uint(0); ; shift += 7 {
  3269. if shift >= 64 {
  3270. return ErrIntOverflowApi
  3271. }
  3272. if iNdEx >= l {
  3273. return io.ErrUnexpectedEOF
  3274. }
  3275. b := dAtA[iNdEx]
  3276. iNdEx++
  3277. wire |= (uint64(b) & 0x7F) << shift
  3278. if b < 0x80 {
  3279. break
  3280. }
  3281. }
  3282. fieldNum := int32(wire >> 3)
  3283. wireType := int(wire & 0x7)
  3284. if wireType == 4 {
  3285. return fmt.Errorf("proto: DeleteTaskReq: wiretype end group for non-group")
  3286. }
  3287. if fieldNum <= 0 {
  3288. return fmt.Errorf("proto: DeleteTaskReq: illegal tag %d (wire type %d)", fieldNum, wire)
  3289. }
  3290. switch fieldNum {
  3291. case 1:
  3292. if wireType != 0 {
  3293. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  3294. }
  3295. m.ID = 0
  3296. for shift := uint(0); ; shift += 7 {
  3297. if shift >= 64 {
  3298. return ErrIntOverflowApi
  3299. }
  3300. if iNdEx >= l {
  3301. return io.ErrUnexpectedEOF
  3302. }
  3303. b := dAtA[iNdEx]
  3304. iNdEx++
  3305. m.ID |= (int64(b) & 0x7F) << shift
  3306. if b < 0x80 {
  3307. break
  3308. }
  3309. }
  3310. default:
  3311. iNdEx = preIndex
  3312. skippy, err := skipApi(dAtA[iNdEx:])
  3313. if err != nil {
  3314. return err
  3315. }
  3316. if skippy < 0 {
  3317. return ErrInvalidLengthApi
  3318. }
  3319. if (iNdEx + skippy) > l {
  3320. return io.ErrUnexpectedEOF
  3321. }
  3322. iNdEx += skippy
  3323. }
  3324. }
  3325. if iNdEx > l {
  3326. return io.ErrUnexpectedEOF
  3327. }
  3328. return nil
  3329. }
  3330. func (m *DeleteTaskReply) Unmarshal(dAtA []byte) error {
  3331. l := len(dAtA)
  3332. iNdEx := 0
  3333. for iNdEx < l {
  3334. preIndex := iNdEx
  3335. var wire uint64
  3336. for shift := uint(0); ; shift += 7 {
  3337. if shift >= 64 {
  3338. return ErrIntOverflowApi
  3339. }
  3340. if iNdEx >= l {
  3341. return io.ErrUnexpectedEOF
  3342. }
  3343. b := dAtA[iNdEx]
  3344. iNdEx++
  3345. wire |= (uint64(b) & 0x7F) << shift
  3346. if b < 0x80 {
  3347. break
  3348. }
  3349. }
  3350. fieldNum := int32(wire >> 3)
  3351. wireType := int(wire & 0x7)
  3352. if wireType == 4 {
  3353. return fmt.Errorf("proto: DeleteTaskReply: wiretype end group for non-group")
  3354. }
  3355. if fieldNum <= 0 {
  3356. return fmt.Errorf("proto: DeleteTaskReply: illegal tag %d (wire type %d)", fieldNum, wire)
  3357. }
  3358. switch fieldNum {
  3359. default:
  3360. iNdEx = preIndex
  3361. skippy, err := skipApi(dAtA[iNdEx:])
  3362. if err != nil {
  3363. return err
  3364. }
  3365. if skippy < 0 {
  3366. return ErrInvalidLengthApi
  3367. }
  3368. if (iNdEx + skippy) > l {
  3369. return io.ErrUnexpectedEOF
  3370. }
  3371. iNdEx += skippy
  3372. }
  3373. }
  3374. if iNdEx > l {
  3375. return io.ErrUnexpectedEOF
  3376. }
  3377. return nil
  3378. }
  3379. func (m *TaskInfoReq) Unmarshal(dAtA []byte) error {
  3380. l := len(dAtA)
  3381. iNdEx := 0
  3382. for iNdEx < l {
  3383. preIndex := iNdEx
  3384. var wire uint64
  3385. for shift := uint(0); ; shift += 7 {
  3386. if shift >= 64 {
  3387. return ErrIntOverflowApi
  3388. }
  3389. if iNdEx >= l {
  3390. return io.ErrUnexpectedEOF
  3391. }
  3392. b := dAtA[iNdEx]
  3393. iNdEx++
  3394. wire |= (uint64(b) & 0x7F) << shift
  3395. if b < 0x80 {
  3396. break
  3397. }
  3398. }
  3399. fieldNum := int32(wire >> 3)
  3400. wireType := int(wire & 0x7)
  3401. if wireType == 4 {
  3402. return fmt.Errorf("proto: TaskInfoReq: wiretype end group for non-group")
  3403. }
  3404. if fieldNum <= 0 {
  3405. return fmt.Errorf("proto: TaskInfoReq: illegal tag %d (wire type %d)", fieldNum, wire)
  3406. }
  3407. switch fieldNum {
  3408. case 1:
  3409. if wireType != 0 {
  3410. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  3411. }
  3412. m.ID = 0
  3413. for shift := uint(0); ; shift += 7 {
  3414. if shift >= 64 {
  3415. return ErrIntOverflowApi
  3416. }
  3417. if iNdEx >= l {
  3418. return io.ErrUnexpectedEOF
  3419. }
  3420. b := dAtA[iNdEx]
  3421. iNdEx++
  3422. m.ID |= (int64(b) & 0x7F) << shift
  3423. if b < 0x80 {
  3424. break
  3425. }
  3426. }
  3427. default:
  3428. iNdEx = preIndex
  3429. skippy, err := skipApi(dAtA[iNdEx:])
  3430. if err != nil {
  3431. return err
  3432. }
  3433. if skippy < 0 {
  3434. return ErrInvalidLengthApi
  3435. }
  3436. if (iNdEx + skippy) > l {
  3437. return io.ErrUnexpectedEOF
  3438. }
  3439. iNdEx += skippy
  3440. }
  3441. }
  3442. if iNdEx > l {
  3443. return io.ErrUnexpectedEOF
  3444. }
  3445. return nil
  3446. }
  3447. func (m *TaskInfoReply) Unmarshal(dAtA []byte) error {
  3448. l := len(dAtA)
  3449. iNdEx := 0
  3450. for iNdEx < l {
  3451. preIndex := iNdEx
  3452. var wire uint64
  3453. for shift := uint(0); ; shift += 7 {
  3454. if shift >= 64 {
  3455. return ErrIntOverflowApi
  3456. }
  3457. if iNdEx >= l {
  3458. return io.ErrUnexpectedEOF
  3459. }
  3460. b := dAtA[iNdEx]
  3461. iNdEx++
  3462. wire |= (uint64(b) & 0x7F) << shift
  3463. if b < 0x80 {
  3464. break
  3465. }
  3466. }
  3467. fieldNum := int32(wire >> 3)
  3468. wireType := int(wire & 0x7)
  3469. if wireType == 4 {
  3470. return fmt.Errorf("proto: TaskInfoReply: wiretype end group for non-group")
  3471. }
  3472. if fieldNum <= 0 {
  3473. return fmt.Errorf("proto: TaskInfoReply: illegal tag %d (wire type %d)", fieldNum, wire)
  3474. }
  3475. switch fieldNum {
  3476. case 1:
  3477. if wireType != 2 {
  3478. return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  3479. }
  3480. var msglen int
  3481. for shift := uint(0); ; shift += 7 {
  3482. if shift >= 64 {
  3483. return ErrIntOverflowApi
  3484. }
  3485. if iNdEx >= l {
  3486. return io.ErrUnexpectedEOF
  3487. }
  3488. b := dAtA[iNdEx]
  3489. iNdEx++
  3490. msglen |= (int(b) & 0x7F) << shift
  3491. if b < 0x80 {
  3492. break
  3493. }
  3494. }
  3495. if msglen < 0 {
  3496. return ErrInvalidLengthApi
  3497. }
  3498. postIndex := iNdEx + msglen
  3499. if postIndex > l {
  3500. return io.ErrUnexpectedEOF
  3501. }
  3502. if m.Info == nil {
  3503. m.Info = &sms_service_model.ModelTask{}
  3504. }
  3505. if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3506. return err
  3507. }
  3508. iNdEx = postIndex
  3509. default:
  3510. iNdEx = preIndex
  3511. skippy, err := skipApi(dAtA[iNdEx:])
  3512. if err != nil {
  3513. return err
  3514. }
  3515. if skippy < 0 {
  3516. return ErrInvalidLengthApi
  3517. }
  3518. if (iNdEx + skippy) > l {
  3519. return io.ErrUnexpectedEOF
  3520. }
  3521. iNdEx += skippy
  3522. }
  3523. }
  3524. if iNdEx > l {
  3525. return io.ErrUnexpectedEOF
  3526. }
  3527. return nil
  3528. }
  3529. func (m *TaskListReq) Unmarshal(dAtA []byte) error {
  3530. l := len(dAtA)
  3531. iNdEx := 0
  3532. for iNdEx < l {
  3533. preIndex := iNdEx
  3534. var wire uint64
  3535. for shift := uint(0); ; shift += 7 {
  3536. if shift >= 64 {
  3537. return ErrIntOverflowApi
  3538. }
  3539. if iNdEx >= l {
  3540. return io.ErrUnexpectedEOF
  3541. }
  3542. b := dAtA[iNdEx]
  3543. iNdEx++
  3544. wire |= (uint64(b) & 0x7F) << shift
  3545. if b < 0x80 {
  3546. break
  3547. }
  3548. }
  3549. fieldNum := int32(wire >> 3)
  3550. wireType := int(wire & 0x7)
  3551. if wireType == 4 {
  3552. return fmt.Errorf("proto: TaskListReq: wiretype end group for non-group")
  3553. }
  3554. if fieldNum <= 0 {
  3555. return fmt.Errorf("proto: TaskListReq: illegal tag %d (wire type %d)", fieldNum, wire)
  3556. }
  3557. switch fieldNum {
  3558. case 1:
  3559. if wireType != 0 {
  3560. return fmt.Errorf("proto: wrong wireType = %d for field Pn", wireType)
  3561. }
  3562. m.Pn = 0
  3563. for shift := uint(0); ; shift += 7 {
  3564. if shift >= 64 {
  3565. return ErrIntOverflowApi
  3566. }
  3567. if iNdEx >= l {
  3568. return io.ErrUnexpectedEOF
  3569. }
  3570. b := dAtA[iNdEx]
  3571. iNdEx++
  3572. m.Pn |= (int32(b) & 0x7F) << shift
  3573. if b < 0x80 {
  3574. break
  3575. }
  3576. }
  3577. case 2:
  3578. if wireType != 0 {
  3579. return fmt.Errorf("proto: wrong wireType = %d for field Ps", wireType)
  3580. }
  3581. m.Ps = 0
  3582. for shift := uint(0); ; shift += 7 {
  3583. if shift >= 64 {
  3584. return ErrIntOverflowApi
  3585. }
  3586. if iNdEx >= l {
  3587. return io.ErrUnexpectedEOF
  3588. }
  3589. b := dAtA[iNdEx]
  3590. iNdEx++
  3591. m.Ps |= (int32(b) & 0x7F) << shift
  3592. if b < 0x80 {
  3593. break
  3594. }
  3595. }
  3596. default:
  3597. iNdEx = preIndex
  3598. skippy, err := skipApi(dAtA[iNdEx:])
  3599. if err != nil {
  3600. return err
  3601. }
  3602. if skippy < 0 {
  3603. return ErrInvalidLengthApi
  3604. }
  3605. if (iNdEx + skippy) > l {
  3606. return io.ErrUnexpectedEOF
  3607. }
  3608. iNdEx += skippy
  3609. }
  3610. }
  3611. if iNdEx > l {
  3612. return io.ErrUnexpectedEOF
  3613. }
  3614. return nil
  3615. }
  3616. func (m *TaskListReply) Unmarshal(dAtA []byte) error {
  3617. l := len(dAtA)
  3618. iNdEx := 0
  3619. for iNdEx < l {
  3620. preIndex := iNdEx
  3621. var wire uint64
  3622. for shift := uint(0); ; shift += 7 {
  3623. if shift >= 64 {
  3624. return ErrIntOverflowApi
  3625. }
  3626. if iNdEx >= l {
  3627. return io.ErrUnexpectedEOF
  3628. }
  3629. b := dAtA[iNdEx]
  3630. iNdEx++
  3631. wire |= (uint64(b) & 0x7F) << shift
  3632. if b < 0x80 {
  3633. break
  3634. }
  3635. }
  3636. fieldNum := int32(wire >> 3)
  3637. wireType := int(wire & 0x7)
  3638. if wireType == 4 {
  3639. return fmt.Errorf("proto: TaskListReply: wiretype end group for non-group")
  3640. }
  3641. if fieldNum <= 0 {
  3642. return fmt.Errorf("proto: TaskListReply: illegal tag %d (wire type %d)", fieldNum, wire)
  3643. }
  3644. switch fieldNum {
  3645. case 1:
  3646. if wireType != 2 {
  3647. return fmt.Errorf("proto: wrong wireType = %d for field List", wireType)
  3648. }
  3649. var msglen int
  3650. for shift := uint(0); ; shift += 7 {
  3651. if shift >= 64 {
  3652. return ErrIntOverflowApi
  3653. }
  3654. if iNdEx >= l {
  3655. return io.ErrUnexpectedEOF
  3656. }
  3657. b := dAtA[iNdEx]
  3658. iNdEx++
  3659. msglen |= (int(b) & 0x7F) << shift
  3660. if b < 0x80 {
  3661. break
  3662. }
  3663. }
  3664. if msglen < 0 {
  3665. return ErrInvalidLengthApi
  3666. }
  3667. postIndex := iNdEx + msglen
  3668. if postIndex > l {
  3669. return io.ErrUnexpectedEOF
  3670. }
  3671. m.List = append(m.List, &sms_service_model.ModelTask{})
  3672. if err := m.List[len(m.List)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3673. return err
  3674. }
  3675. iNdEx = postIndex
  3676. case 2:
  3677. if wireType != 0 {
  3678. return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType)
  3679. }
  3680. m.Total = 0
  3681. for shift := uint(0); ; shift += 7 {
  3682. if shift >= 64 {
  3683. return ErrIntOverflowApi
  3684. }
  3685. if iNdEx >= l {
  3686. return io.ErrUnexpectedEOF
  3687. }
  3688. b := dAtA[iNdEx]
  3689. iNdEx++
  3690. m.Total |= (int32(b) & 0x7F) << shift
  3691. if b < 0x80 {
  3692. break
  3693. }
  3694. }
  3695. default:
  3696. iNdEx = preIndex
  3697. skippy, err := skipApi(dAtA[iNdEx:])
  3698. if err != nil {
  3699. return err
  3700. }
  3701. if skippy < 0 {
  3702. return ErrInvalidLengthApi
  3703. }
  3704. if (iNdEx + skippy) > l {
  3705. return io.ErrUnexpectedEOF
  3706. }
  3707. iNdEx += skippy
  3708. }
  3709. }
  3710. if iNdEx > l {
  3711. return io.ErrUnexpectedEOF
  3712. }
  3713. return nil
  3714. }
  3715. func skipApi(dAtA []byte) (n int, err error) {
  3716. l := len(dAtA)
  3717. iNdEx := 0
  3718. for iNdEx < l {
  3719. var wire uint64
  3720. for shift := uint(0); ; shift += 7 {
  3721. if shift >= 64 {
  3722. return 0, ErrIntOverflowApi
  3723. }
  3724. if iNdEx >= l {
  3725. return 0, io.ErrUnexpectedEOF
  3726. }
  3727. b := dAtA[iNdEx]
  3728. iNdEx++
  3729. wire |= (uint64(b) & 0x7F) << shift
  3730. if b < 0x80 {
  3731. break
  3732. }
  3733. }
  3734. wireType := int(wire & 0x7)
  3735. switch wireType {
  3736. case 0:
  3737. for shift := uint(0); ; shift += 7 {
  3738. if shift >= 64 {
  3739. return 0, ErrIntOverflowApi
  3740. }
  3741. if iNdEx >= l {
  3742. return 0, io.ErrUnexpectedEOF
  3743. }
  3744. iNdEx++
  3745. if dAtA[iNdEx-1] < 0x80 {
  3746. break
  3747. }
  3748. }
  3749. return iNdEx, nil
  3750. case 1:
  3751. iNdEx += 8
  3752. return iNdEx, nil
  3753. case 2:
  3754. var length int
  3755. for shift := uint(0); ; shift += 7 {
  3756. if shift >= 64 {
  3757. return 0, ErrIntOverflowApi
  3758. }
  3759. if iNdEx >= l {
  3760. return 0, io.ErrUnexpectedEOF
  3761. }
  3762. b := dAtA[iNdEx]
  3763. iNdEx++
  3764. length |= (int(b) & 0x7F) << shift
  3765. if b < 0x80 {
  3766. break
  3767. }
  3768. }
  3769. iNdEx += length
  3770. if length < 0 {
  3771. return 0, ErrInvalidLengthApi
  3772. }
  3773. return iNdEx, nil
  3774. case 3:
  3775. for {
  3776. var innerWire uint64
  3777. var start int = iNdEx
  3778. for shift := uint(0); ; shift += 7 {
  3779. if shift >= 64 {
  3780. return 0, ErrIntOverflowApi
  3781. }
  3782. if iNdEx >= l {
  3783. return 0, io.ErrUnexpectedEOF
  3784. }
  3785. b := dAtA[iNdEx]
  3786. iNdEx++
  3787. innerWire |= (uint64(b) & 0x7F) << shift
  3788. if b < 0x80 {
  3789. break
  3790. }
  3791. }
  3792. innerWireType := int(innerWire & 0x7)
  3793. if innerWireType == 4 {
  3794. break
  3795. }
  3796. next, err := skipApi(dAtA[start:])
  3797. if err != nil {
  3798. return 0, err
  3799. }
  3800. iNdEx = start + next
  3801. }
  3802. return iNdEx, nil
  3803. case 4:
  3804. return iNdEx, nil
  3805. case 5:
  3806. iNdEx += 4
  3807. return iNdEx, nil
  3808. default:
  3809. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  3810. }
  3811. }
  3812. panic("unreachable")
  3813. }
  3814. var (
  3815. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  3816. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  3817. )
  3818. func init() { proto.RegisterFile("app/service/main/sms/api/api.proto", fileDescriptorApi) }
  3819. var fileDescriptorApi = []byte{
  3820. // 1069 bytes of a gzipped FileDescriptorProto
  3821. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4d, 0x6f, 0xdb, 0x46,
  3822. 0x13, 0x06, 0x29, 0xca, 0x8e, 0x46, 0x96, 0x62, 0x6f, 0xec, 0xf7, 0x55, 0x8c, 0xd4, 0x14, 0xd6,
  3823. 0xa9, 0x21, 0x1b, 0x8e, 0x64, 0xab, 0xb9, 0xd4, 0x40, 0x50, 0x84, 0x4d, 0x0e, 0x46, 0x3f, 0xd0,
  3824. 0x32, 0x29, 0x0a, 0xf4, 0x62, 0x50, 0xe2, 0xca, 0x5e, 0x94, 0x5f, 0xd6, 0xae, 0x6c, 0xf8, 0xde,
  3825. 0x63, 0xfb, 0x37, 0xfa, 0x3b, 0x7a, 0xec, 0xb1, 0xb7, 0xde, 0x88, 0xc2, 0x40, 0x7f, 0x40, 0xf9,
  3826. 0x0b, 0x8a, 0xfd, 0x20, 0x45, 0xa5, 0xb2, 0xe3, 0x26, 0xea, 0x45, 0xd0, 0xce, 0x3c, 0xf3, 0x70,
  3827. 0x67, 0xf6, 0x99, 0xdd, 0x81, 0x3d, 0x2f, 0x49, 0x7a, 0x8c, 0x8c, 0x2f, 0xe8, 0x90, 0xf4, 0x42,
  3828. 0x8f, 0x46, 0x3d, 0x16, 0xb2, 0x9e, 0x97, 0xd0, 0xde, 0xe9, 0x38, 0x19, 0xf6, 0x2e, 0x0e, 0xc5,
  3829. 0xff, 0x6e, 0x32, 0x8e, 0x79, 0x8c, 0x9a, 0x2c, 0x64, 0x5d, 0x8d, 0xed, 0x5e, 0x1c, 0x6e, 0xee,
  3830. 0xcc, 0x8d, 0x0d, 0x63, 0x9f, 0x04, 0xea, 0x57, 0xc5, 0x6d, 0x3e, 0x39, 0xa5, 0xfc, 0x6c, 0x32,
  3831. 0xe8, 0x0e, 0xe3, 0xb0, 0x77, 0x1a, 0x9f, 0xc6, 0x3d, 0x69, 0x1e, 0x4c, 0x46, 0x72, 0x25, 0x17,
  3832. 0xf2, 0x9f, 0x82, 0x63, 0x04, 0xab, 0xcf, 0x7d, 0xff, 0x35, 0x09, 0x93, 0xc0, 0xe3, 0xc4, 0x25,
  3833. 0x49, 0x70, 0x85, 0x7f, 0x30, 0xa1, 0x39, 0x63, 0x3c, 0x47, 0x9f, 0x40, 0x95, 0xf1, 0xab, 0x84,
  3834. 0xb4, 0x8c, 0xb6, 0xd1, 0xa9, 0x3a, 0xbb, 0x59, 0x6a, 0x7f, 0x38, 0x8a, 0xc7, 0xe1, 0x11, 0x16,
  3835. 0x56, 0xdc, 0xbe, 0xf0, 0x02, 0xea, 0x7b, 0x9c, 0x1c, 0xe1, 0x31, 0x39, 0x9f, 0xd0, 0x31, 0xf1,
  3836. 0xf7, 0x43, 0x1a, 0x3d, 0x3b, 0xc4, 0xae, 0x8a, 0x43, 0x1f, 0x43, 0x95, 0x0f, 0x63, 0x9f, 0xb4,
  3837. 0xcc, 0xb6, 0xd1, 0xa9, 0x39, 0xdb, 0x59, 0x6a, 0xdb, 0x8a, 0x40, 0x58, 0xe7, 0x11, 0x60, 0x57,
  3838. 0x45, 0x20, 0x07, 0xee, 0x71, 0xbd, 0x95, 0x56, 0x45, 0x46, 0xef, 0x64, 0xa9, 0x8d, 0xf3, 0xe8,
  3839. 0x88, 0x93, 0x88, 0xcf, 0x27, 0x28, 0xe2, 0x50, 0x1f, 0x6a, 0x6c, 0x32, 0x08, 0x29, 0xe7, 0x64,
  3840. 0xdc, 0xaa, 0x4a, 0x92, 0xf5, 0x2c, 0xb5, 0x57, 0x15, 0x49, 0xe1, 0xc2, 0xee, 0x14, 0x86, 0x4f,
  3841. 0x60, 0x2d, 0x2f, 0xc1, 0xe7, 0x94, 0x71, 0x59, 0x1b, 0xf4, 0x14, 0xac, 0x80, 0x32, 0xde, 0x32,
  3842. 0xda, 0x95, 0x4e, 0xbd, 0xdf, 0xee, 0x96, 0x4f, 0x49, 0x1d, 0xc3, 0x17, 0xe2, 0xb7, 0xa8, 0x9d,
  3843. 0x44, 0xa3, 0x75, 0xa8, 0xf2, 0x98, 0x7b, 0x81, 0xcc, 0xbe, 0xea, 0xaa, 0x05, 0xfe, 0xd9, 0x80,
  3844. 0xfb, 0xb3, 0x5f, 0x38, 0x47, 0xbb, 0x60, 0x26, 0x91, 0xae, 0xf2, 0xc3, 0x2c, 0xb5, 0x37, 0xd4,
  3845. 0x0e, 0x93, 0x08, 0xb7, 0x7d, 0x32, 0xf2, 0x26, 0x01, 0x3f, 0xc2, 0x87, 0xd8, 0x35, 0x93, 0x08,
  3846. 0xed, 0x81, 0x99, 0x30, 0xc5, 0xe8, 0x6c, 0x66, 0xa9, 0xfd, 0x3f, 0x0d, 0x65, 0x65, 0xe8, 0x81,
  3847. 0xc0, 0x32, 0xf4, 0x01, 0x98, 0x8c, 0xeb, 0xea, 0x35, 0xb2, 0xd4, 0xae, 0xe9, 0xc4, 0x39, 0x76,
  3848. 0x4d, 0xc6, 0xa5, 0xfb, 0xb2, 0x65, 0xfd, 0xc3, 0x7d, 0x29, 0xdc, 0x97, 0x78, 0x03, 0x1e, 0x7c,
  3849. 0x93, 0x88, 0xe2, 0xce, 0xea, 0xe4, 0x2f, 0x13, 0xd6, 0xde, 0xb4, 0x9f, 0xa3, 0x67, 0x60, 0x52,
  3850. 0x5f, 0x66, 0x50, 0x71, 0x9e, 0x5c, 0xa7, 0xb6, 0x79, 0xfc, 0x22, 0x4b, 0xed, 0x6d, 0xc5, 0x48,
  3851. 0xfd, 0xdb, 0xb4, 0x62, 0x52, 0x7f, 0xaa, 0x34, 0xf3, 0x1d, 0x95, 0xb6, 0x0b, 0x4b, 0x8c, 0x7b,
  3852. 0x7c, 0xc2, 0x64, 0xba, 0x55, 0x67, 0x2d, 0x4b, 0xed, 0x46, 0x9e, 0xae, 0xb0, 0x63, 0x57, 0x03,
  3853. 0xa6, 0xa2, 0xb4, 0xde, 0x4b, 0x94, 0xd5, 0x45, 0x88, 0x72, 0xe9, 0x6e, 0xa2, 0xac, 0x43, 0xed,
  3854. 0x15, 0x89, 0x7c, 0x75, 0x00, 0xbf, 0x1b, 0xb0, 0xac, 0x56, 0xe7, 0xa8, 0x0d, 0x95, 0xb0, 0xa8,
  3855. 0x7b, 0x33, 0x4b, 0x6d, 0x50, 0x34, 0x21, 0xf5, 0xb1, 0x2b, 0x5c, 0xa2, 0x30, 0x61, 0x3c, 0xa0,
  3856. 0x41, 0xde, 0x83, 0xa5, 0xc2, 0x28, 0x3b, 0x76, 0x35, 0x00, 0xed, 0xc3, 0xf2, 0x30, 0x9e, 0x44,
  3857. 0x7c, 0x7c, 0xa5, 0x35, 0x83, 0xb2, 0xd4, 0x6e, 0xe6, 0xc9, 0x49, 0x07, 0x76, 0x73, 0x08, 0xda,
  3858. 0x99, 0x2d, 0xe3, 0x6a, 0x96, 0xda, 0x2b, 0xfa, 0xc8, 0x64, 0x1d, 0xf3, 0x9a, 0xed, 0xc2, 0x12,
  3859. 0x4f, 0xbc, 0xb1, 0x17, 0xea, 0x8a, 0x95, 0x36, 0xa0, 0xec, 0xd8, 0xd5, 0x00, 0xbc, 0x0a, 0x4d,
  3860. 0x91, 0x98, 0xe3, 0xf1, 0xe1, 0x99, 0xca, 0xf5, 0x17, 0x03, 0x56, 0x4a, 0x26, 0xd1, 0x29, 0x56,
  3861. 0x48, 0x7d, 0x26, 0x3b, 0xb1, 0xe2, 0x6c, 0x64, 0xa9, 0xbd, 0x56, 0x64, 0xcc, 0xf6, 0x59, 0x12,
  3862. 0x50, 0x8e, 0x5d, 0x09, 0x41, 0x7d, 0x58, 0x56, 0x89, 0x89, 0x76, 0xa9, 0x74, 0x6a, 0x4e, 0x2b,
  3863. 0x4b, 0xed, 0xf5, 0x72, 0xea, 0x45, 0x40, 0x0e, 0x9c, 0x26, 0x55, 0xb9, 0x6b, 0x52, 0xd6, 0xdb,
  3864. 0x92, 0xfa, 0xb3, 0x02, 0x20, 0xee, 0x55, 0x8f, 0x7d, 0xaf, 0x1a, 0xc5, 0x7a, 0xb7, 0x2b, 0x55,
  3865. 0x86, 0xa1, 0x97, 0x50, 0x1f, 0x4c, 0x18, 0x8d, 0x08, 0x63, 0x27, 0xd4, 0xd7, 0xed, 0xf2, 0xf8,
  3866. 0x3a, 0xb5, 0xc1, 0xd1, 0x66, 0xd9, 0x78, 0x48, 0x71, 0x96, 0xa0, 0xd8, 0x85, 0x7c, 0x75, 0xec,
  3867. 0xa3, 0xaf, 0xa1, 0x91, 0x0b, 0xf2, 0xa4, 0x94, 0xef, 0x7e, 0x96, 0xda, 0x1d, 0xbd, 0x9d, 0xb2,
  3868. 0x7b, 0xbe, 0xa6, 0x57, 0x72, 0xcc, 0xa7, 0xa2, 0x24, 0xdb, 0x60, 0xf9, 0x84, 0x0d, 0x75, 0x41,
  3869. 0xee, 0x67, 0xa9, 0x5d, 0x57, 0x4c, 0xc2, 0x8a, 0x5d, 0xe9, 0x44, 0x2f, 0xa1, 0x36, 0xa2, 0x01,
  3870. 0x39, 0x89, 0xbc, 0x30, 0xef, 0xa0, 0x4e, 0x96, 0xda, 0x8f, 0x15, 0xb2, 0x70, 0xdd, 0xd0, 0x43,
  3871. 0xc2, 0xff, 0xa5, 0x17, 0x92, 0x82, 0x26, 0xf1, 0xf8, 0x99, 0xee, 0xa1, 0x37, 0x69, 0x84, 0xeb,
  3872. 0x16, 0x9a, 0xaf, 0x3c, 0x7e, 0x86, 0x3e, 0x83, 0x1a, 0x23, 0x91, 0x7f, 0xc2, 0x69, 0x48, 0x5a,
  3873. 0xcb, 0xb2, 0x87, 0xba, 0x59, 0x6a, 0xef, 0xe9, 0x56, 0xcc, 0x5d, 0xb7, 0x9d, 0xca, 0x3d, 0x81,
  3874. 0x7a, 0x2d, 0x40, 0x4d, 0x58, 0x29, 0x8e, 0x59, 0x48, 0xf7, 0x27, 0x0b, 0x1a, 0xfa, 0x9e, 0xd4,
  3875. 0x47, 0xbf, 0x5d, 0xba, 0x23, 0x1f, 0x14, 0x77, 0x64, 0xad, 0xb8, 0x23, 0xe5, 0x4d, 0x98, 0xeb,
  3876. 0xc3, 0x5c, 0x88, 0x3e, 0x2a, 0x8b, 0xd2, 0x87, 0xb5, 0x30, 0x7d, 0x54, 0xef, 0xac, 0x8f, 0xa5,
  3877. 0xc5, 0xe8, 0x63, 0x79, 0x31, 0xfa, 0xb8, 0xf7, 0x9e, 0xfa, 0x58, 0x83, 0xfb, 0x65, 0x39, 0x08,
  3878. 0x89, 0x3c, 0x85, 0xc6, 0x0b, 0x12, 0x90, 0x7f, 0xa7, 0x10, 0x41, 0x54, 0x8e, 0x12, 0x44, 0x7d,
  3879. 0xa8, 0x8b, 0xc5, 0x71, 0x34, 0x8a, 0xef, 0x4c, 0xf3, 0x1c, 0x1a, 0xd3, 0x18, 0x31, 0xe4, 0x1c,
  3880. 0x80, 0x45, 0xa3, 0x51, 0x2c, 0xe3, 0xea, 0xfd, 0x47, 0x37, 0x0e, 0x39, 0xe2, 0xab, 0x12, 0x89,
  3881. 0x7d, 0xf5, 0xd9, 0xff, 0x68, 0x8a, 0xe9, 0xab, 0x29, 0x06, 0x7f, 0xab, 0x36, 0x3a, 0x9d, 0xc6,
  3882. 0x0e, 0x66, 0xa6, 0xb1, 0xb7, 0x6c, 0xf4, 0xe6, 0x49, 0xac, 0xff, 0xa3, 0x01, 0x95, 0x57, 0x21,
  3883. 0x43, 0x47, 0x60, 0x89, 0x37, 0x06, 0xfd, 0xbf, 0x3b, 0x3b, 0x7d, 0x77, 0xf5, 0x2b, 0xbb, 0xf9,
  3884. 0x70, 0xbe, 0x43, 0xec, 0xe5, 0x58, 0xbd, 0xcc, 0xf2, 0x7d, 0x42, 0x8f, 0xe6, 0xe1, 0xf2, 0xa7,
  3885. 0x6b, 0x73, 0xeb, 0x16, 0x6f, 0x12, 0x5c, 0x39, 0xab, 0xbf, 0x5e, 0x6f, 0x19, 0xbf, 0x5d, 0x6f,
  3886. 0x19, 0x7f, 0x5c, 0x6f, 0x19, 0xdf, 0x99, 0x17, 0x87, 0x83, 0x25, 0x39, 0xad, 0x7f, 0xf4, 0x77,
  3887. 0x00, 0x00, 0x00, 0xff, 0xff, 0x70, 0xf7, 0x35, 0xb6, 0x42, 0x0c, 0x00, 0x00,
  3888. }