tunnelrpc.capnp.go 180 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845
  1. // Code generated by capnpc-go. DO NOT EDIT.
  2. package proto
  3. import (
  4. strconv "strconv"
  5. context "golang.org/x/net/context"
  6. capnp "zombiezen.com/go/capnproto2"
  7. text "zombiezen.com/go/capnproto2/encoding/text"
  8. schemas "zombiezen.com/go/capnproto2/schemas"
  9. server "zombiezen.com/go/capnproto2/server"
  10. )
  11. type Authentication struct{ capnp.Struct }
  12. // Authentication_TypeID is the unique identifier for the type Authentication.
  13. const Authentication_TypeID = 0xc082ef6e0d42ed1d
  14. func NewAuthentication(s *capnp.Segment) (Authentication, error) {
  15. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3})
  16. return Authentication{st}, err
  17. }
  18. func NewRootAuthentication(s *capnp.Segment) (Authentication, error) {
  19. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3})
  20. return Authentication{st}, err
  21. }
  22. func ReadRootAuthentication(msg *capnp.Message) (Authentication, error) {
  23. root, err := msg.RootPtr()
  24. return Authentication{root.Struct()}, err
  25. }
  26. func (s Authentication) String() string {
  27. str, _ := text.Marshal(0xc082ef6e0d42ed1d, s.Struct)
  28. return str
  29. }
  30. func (s Authentication) Key() (string, error) {
  31. p, err := s.Struct.Ptr(0)
  32. return p.Text(), err
  33. }
  34. func (s Authentication) HasKey() bool {
  35. p, err := s.Struct.Ptr(0)
  36. return p.IsValid() || err != nil
  37. }
  38. func (s Authentication) KeyBytes() ([]byte, error) {
  39. p, err := s.Struct.Ptr(0)
  40. return p.TextBytes(), err
  41. }
  42. func (s Authentication) SetKey(v string) error {
  43. return s.Struct.SetText(0, v)
  44. }
  45. func (s Authentication) Email() (string, error) {
  46. p, err := s.Struct.Ptr(1)
  47. return p.Text(), err
  48. }
  49. func (s Authentication) HasEmail() bool {
  50. p, err := s.Struct.Ptr(1)
  51. return p.IsValid() || err != nil
  52. }
  53. func (s Authentication) EmailBytes() ([]byte, error) {
  54. p, err := s.Struct.Ptr(1)
  55. return p.TextBytes(), err
  56. }
  57. func (s Authentication) SetEmail(v string) error {
  58. return s.Struct.SetText(1, v)
  59. }
  60. func (s Authentication) OriginCAKey() (string, error) {
  61. p, err := s.Struct.Ptr(2)
  62. return p.Text(), err
  63. }
  64. func (s Authentication) HasOriginCAKey() bool {
  65. p, err := s.Struct.Ptr(2)
  66. return p.IsValid() || err != nil
  67. }
  68. func (s Authentication) OriginCAKeyBytes() ([]byte, error) {
  69. p, err := s.Struct.Ptr(2)
  70. return p.TextBytes(), err
  71. }
  72. func (s Authentication) SetOriginCAKey(v string) error {
  73. return s.Struct.SetText(2, v)
  74. }
  75. // Authentication_List is a list of Authentication.
  76. type Authentication_List struct{ capnp.List }
  77. // NewAuthentication creates a new list of Authentication.
  78. func NewAuthentication_List(s *capnp.Segment, sz int32) (Authentication_List, error) {
  79. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3}, sz)
  80. return Authentication_List{l}, err
  81. }
  82. func (s Authentication_List) At(i int) Authentication { return Authentication{s.List.Struct(i)} }
  83. func (s Authentication_List) Set(i int, v Authentication) error { return s.List.SetStruct(i, v.Struct) }
  84. func (s Authentication_List) String() string {
  85. str, _ := text.MarshalList(0xc082ef6e0d42ed1d, s.List)
  86. return str
  87. }
  88. // Authentication_Promise is a wrapper for a Authentication promised by a client call.
  89. type Authentication_Promise struct{ *capnp.Pipeline }
  90. func (p Authentication_Promise) Struct() (Authentication, error) {
  91. s, err := p.Pipeline.Struct()
  92. return Authentication{s}, err
  93. }
  94. type TunnelRegistration struct{ capnp.Struct }
  95. // TunnelRegistration_TypeID is the unique identifier for the type TunnelRegistration.
  96. const TunnelRegistration_TypeID = 0xf41a0f001ad49e46
  97. func NewTunnelRegistration(s *capnp.Segment) (TunnelRegistration, error) {
  98. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 6})
  99. return TunnelRegistration{st}, err
  100. }
  101. func NewRootTunnelRegistration(s *capnp.Segment) (TunnelRegistration, error) {
  102. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 6})
  103. return TunnelRegistration{st}, err
  104. }
  105. func ReadRootTunnelRegistration(msg *capnp.Message) (TunnelRegistration, error) {
  106. root, err := msg.RootPtr()
  107. return TunnelRegistration{root.Struct()}, err
  108. }
  109. func (s TunnelRegistration) String() string {
  110. str, _ := text.Marshal(0xf41a0f001ad49e46, s.Struct)
  111. return str
  112. }
  113. func (s TunnelRegistration) Err() (string, error) {
  114. p, err := s.Struct.Ptr(0)
  115. return p.Text(), err
  116. }
  117. func (s TunnelRegistration) HasErr() bool {
  118. p, err := s.Struct.Ptr(0)
  119. return p.IsValid() || err != nil
  120. }
  121. func (s TunnelRegistration) ErrBytes() ([]byte, error) {
  122. p, err := s.Struct.Ptr(0)
  123. return p.TextBytes(), err
  124. }
  125. func (s TunnelRegistration) SetErr(v string) error {
  126. return s.Struct.SetText(0, v)
  127. }
  128. func (s TunnelRegistration) Url() (string, error) {
  129. p, err := s.Struct.Ptr(1)
  130. return p.Text(), err
  131. }
  132. func (s TunnelRegistration) HasUrl() bool {
  133. p, err := s.Struct.Ptr(1)
  134. return p.IsValid() || err != nil
  135. }
  136. func (s TunnelRegistration) UrlBytes() ([]byte, error) {
  137. p, err := s.Struct.Ptr(1)
  138. return p.TextBytes(), err
  139. }
  140. func (s TunnelRegistration) SetUrl(v string) error {
  141. return s.Struct.SetText(1, v)
  142. }
  143. func (s TunnelRegistration) LogLines() (capnp.TextList, error) {
  144. p, err := s.Struct.Ptr(2)
  145. return capnp.TextList{List: p.List()}, err
  146. }
  147. func (s TunnelRegistration) HasLogLines() bool {
  148. p, err := s.Struct.Ptr(2)
  149. return p.IsValid() || err != nil
  150. }
  151. func (s TunnelRegistration) SetLogLines(v capnp.TextList) error {
  152. return s.Struct.SetPtr(2, v.List.ToPtr())
  153. }
  154. // NewLogLines sets the logLines field to a newly
  155. // allocated capnp.TextList, preferring placement in s's segment.
  156. func (s TunnelRegistration) NewLogLines(n int32) (capnp.TextList, error) {
  157. l, err := capnp.NewTextList(s.Struct.Segment(), n)
  158. if err != nil {
  159. return capnp.TextList{}, err
  160. }
  161. err = s.Struct.SetPtr(2, l.List.ToPtr())
  162. return l, err
  163. }
  164. func (s TunnelRegistration) PermanentFailure() bool {
  165. return s.Struct.Bit(0)
  166. }
  167. func (s TunnelRegistration) SetPermanentFailure(v bool) {
  168. s.Struct.SetBit(0, v)
  169. }
  170. func (s TunnelRegistration) TunnelID() (string, error) {
  171. p, err := s.Struct.Ptr(3)
  172. return p.Text(), err
  173. }
  174. func (s TunnelRegistration) HasTunnelID() bool {
  175. p, err := s.Struct.Ptr(3)
  176. return p.IsValid() || err != nil
  177. }
  178. func (s TunnelRegistration) TunnelIDBytes() ([]byte, error) {
  179. p, err := s.Struct.Ptr(3)
  180. return p.TextBytes(), err
  181. }
  182. func (s TunnelRegistration) SetTunnelID(v string) error {
  183. return s.Struct.SetText(3, v)
  184. }
  185. func (s TunnelRegistration) RetryAfterSeconds() uint16 {
  186. return s.Struct.Uint16(2)
  187. }
  188. func (s TunnelRegistration) SetRetryAfterSeconds(v uint16) {
  189. s.Struct.SetUint16(2, v)
  190. }
  191. func (s TunnelRegistration) EventDigest() ([]byte, error) {
  192. p, err := s.Struct.Ptr(4)
  193. return []byte(p.Data()), err
  194. }
  195. func (s TunnelRegistration) HasEventDigest() bool {
  196. p, err := s.Struct.Ptr(4)
  197. return p.IsValid() || err != nil
  198. }
  199. func (s TunnelRegistration) SetEventDigest(v []byte) error {
  200. return s.Struct.SetData(4, v)
  201. }
  202. func (s TunnelRegistration) ConnDigest() ([]byte, error) {
  203. p, err := s.Struct.Ptr(5)
  204. return []byte(p.Data()), err
  205. }
  206. func (s TunnelRegistration) HasConnDigest() bool {
  207. p, err := s.Struct.Ptr(5)
  208. return p.IsValid() || err != nil
  209. }
  210. func (s TunnelRegistration) SetConnDigest(v []byte) error {
  211. return s.Struct.SetData(5, v)
  212. }
  213. // TunnelRegistration_List is a list of TunnelRegistration.
  214. type TunnelRegistration_List struct{ capnp.List }
  215. // NewTunnelRegistration creates a new list of TunnelRegistration.
  216. func NewTunnelRegistration_List(s *capnp.Segment, sz int32) (TunnelRegistration_List, error) {
  217. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 6}, sz)
  218. return TunnelRegistration_List{l}, err
  219. }
  220. func (s TunnelRegistration_List) At(i int) TunnelRegistration {
  221. return TunnelRegistration{s.List.Struct(i)}
  222. }
  223. func (s TunnelRegistration_List) Set(i int, v TunnelRegistration) error {
  224. return s.List.SetStruct(i, v.Struct)
  225. }
  226. func (s TunnelRegistration_List) String() string {
  227. str, _ := text.MarshalList(0xf41a0f001ad49e46, s.List)
  228. return str
  229. }
  230. // TunnelRegistration_Promise is a wrapper for a TunnelRegistration promised by a client call.
  231. type TunnelRegistration_Promise struct{ *capnp.Pipeline }
  232. func (p TunnelRegistration_Promise) Struct() (TunnelRegistration, error) {
  233. s, err := p.Pipeline.Struct()
  234. return TunnelRegistration{s}, err
  235. }
  236. type RegistrationOptions struct{ capnp.Struct }
  237. // RegistrationOptions_TypeID is the unique identifier for the type RegistrationOptions.
  238. const RegistrationOptions_TypeID = 0xc793e50592935b4a
  239. func NewRegistrationOptions(s *capnp.Segment) (RegistrationOptions, error) {
  240. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 16, PointerCount: 8})
  241. return RegistrationOptions{st}, err
  242. }
  243. func NewRootRegistrationOptions(s *capnp.Segment) (RegistrationOptions, error) {
  244. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 16, PointerCount: 8})
  245. return RegistrationOptions{st}, err
  246. }
  247. func ReadRootRegistrationOptions(msg *capnp.Message) (RegistrationOptions, error) {
  248. root, err := msg.RootPtr()
  249. return RegistrationOptions{root.Struct()}, err
  250. }
  251. func (s RegistrationOptions) String() string {
  252. str, _ := text.Marshal(0xc793e50592935b4a, s.Struct)
  253. return str
  254. }
  255. func (s RegistrationOptions) ClientId() (string, error) {
  256. p, err := s.Struct.Ptr(0)
  257. return p.Text(), err
  258. }
  259. func (s RegistrationOptions) HasClientId() bool {
  260. p, err := s.Struct.Ptr(0)
  261. return p.IsValid() || err != nil
  262. }
  263. func (s RegistrationOptions) ClientIdBytes() ([]byte, error) {
  264. p, err := s.Struct.Ptr(0)
  265. return p.TextBytes(), err
  266. }
  267. func (s RegistrationOptions) SetClientId(v string) error {
  268. return s.Struct.SetText(0, v)
  269. }
  270. func (s RegistrationOptions) Version() (string, error) {
  271. p, err := s.Struct.Ptr(1)
  272. return p.Text(), err
  273. }
  274. func (s RegistrationOptions) HasVersion() bool {
  275. p, err := s.Struct.Ptr(1)
  276. return p.IsValid() || err != nil
  277. }
  278. func (s RegistrationOptions) VersionBytes() ([]byte, error) {
  279. p, err := s.Struct.Ptr(1)
  280. return p.TextBytes(), err
  281. }
  282. func (s RegistrationOptions) SetVersion(v string) error {
  283. return s.Struct.SetText(1, v)
  284. }
  285. func (s RegistrationOptions) Os() (string, error) {
  286. p, err := s.Struct.Ptr(2)
  287. return p.Text(), err
  288. }
  289. func (s RegistrationOptions) HasOs() bool {
  290. p, err := s.Struct.Ptr(2)
  291. return p.IsValid() || err != nil
  292. }
  293. func (s RegistrationOptions) OsBytes() ([]byte, error) {
  294. p, err := s.Struct.Ptr(2)
  295. return p.TextBytes(), err
  296. }
  297. func (s RegistrationOptions) SetOs(v string) error {
  298. return s.Struct.SetText(2, v)
  299. }
  300. func (s RegistrationOptions) ExistingTunnelPolicy() ExistingTunnelPolicy {
  301. return ExistingTunnelPolicy(s.Struct.Uint16(0))
  302. }
  303. func (s RegistrationOptions) SetExistingTunnelPolicy(v ExistingTunnelPolicy) {
  304. s.Struct.SetUint16(0, uint16(v))
  305. }
  306. func (s RegistrationOptions) PoolName() (string, error) {
  307. p, err := s.Struct.Ptr(3)
  308. return p.Text(), err
  309. }
  310. func (s RegistrationOptions) HasPoolName() bool {
  311. p, err := s.Struct.Ptr(3)
  312. return p.IsValid() || err != nil
  313. }
  314. func (s RegistrationOptions) PoolNameBytes() ([]byte, error) {
  315. p, err := s.Struct.Ptr(3)
  316. return p.TextBytes(), err
  317. }
  318. func (s RegistrationOptions) SetPoolName(v string) error {
  319. return s.Struct.SetText(3, v)
  320. }
  321. func (s RegistrationOptions) Tags() (Tag_List, error) {
  322. p, err := s.Struct.Ptr(4)
  323. return Tag_List{List: p.List()}, err
  324. }
  325. func (s RegistrationOptions) HasTags() bool {
  326. p, err := s.Struct.Ptr(4)
  327. return p.IsValid() || err != nil
  328. }
  329. func (s RegistrationOptions) SetTags(v Tag_List) error {
  330. return s.Struct.SetPtr(4, v.List.ToPtr())
  331. }
  332. // NewTags sets the tags field to a newly
  333. // allocated Tag_List, preferring placement in s's segment.
  334. func (s RegistrationOptions) NewTags(n int32) (Tag_List, error) {
  335. l, err := NewTag_List(s.Struct.Segment(), n)
  336. if err != nil {
  337. return Tag_List{}, err
  338. }
  339. err = s.Struct.SetPtr(4, l.List.ToPtr())
  340. return l, err
  341. }
  342. func (s RegistrationOptions) ConnectionId() uint8 {
  343. return s.Struct.Uint8(2)
  344. }
  345. func (s RegistrationOptions) SetConnectionId(v uint8) {
  346. s.Struct.SetUint8(2, v)
  347. }
  348. func (s RegistrationOptions) OriginLocalIp() (string, error) {
  349. p, err := s.Struct.Ptr(5)
  350. return p.Text(), err
  351. }
  352. func (s RegistrationOptions) HasOriginLocalIp() bool {
  353. p, err := s.Struct.Ptr(5)
  354. return p.IsValid() || err != nil
  355. }
  356. func (s RegistrationOptions) OriginLocalIpBytes() ([]byte, error) {
  357. p, err := s.Struct.Ptr(5)
  358. return p.TextBytes(), err
  359. }
  360. func (s RegistrationOptions) SetOriginLocalIp(v string) error {
  361. return s.Struct.SetText(5, v)
  362. }
  363. func (s RegistrationOptions) IsAutoupdated() bool {
  364. return s.Struct.Bit(24)
  365. }
  366. func (s RegistrationOptions) SetIsAutoupdated(v bool) {
  367. s.Struct.SetBit(24, v)
  368. }
  369. func (s RegistrationOptions) RunFromTerminal() bool {
  370. return s.Struct.Bit(25)
  371. }
  372. func (s RegistrationOptions) SetRunFromTerminal(v bool) {
  373. s.Struct.SetBit(25, v)
  374. }
  375. func (s RegistrationOptions) CompressionQuality() uint64 {
  376. return s.Struct.Uint64(8)
  377. }
  378. func (s RegistrationOptions) SetCompressionQuality(v uint64) {
  379. s.Struct.SetUint64(8, v)
  380. }
  381. func (s RegistrationOptions) Uuid() (string, error) {
  382. p, err := s.Struct.Ptr(6)
  383. return p.Text(), err
  384. }
  385. func (s RegistrationOptions) HasUuid() bool {
  386. p, err := s.Struct.Ptr(6)
  387. return p.IsValid() || err != nil
  388. }
  389. func (s RegistrationOptions) UuidBytes() ([]byte, error) {
  390. p, err := s.Struct.Ptr(6)
  391. return p.TextBytes(), err
  392. }
  393. func (s RegistrationOptions) SetUuid(v string) error {
  394. return s.Struct.SetText(6, v)
  395. }
  396. func (s RegistrationOptions) NumPreviousAttempts() uint8 {
  397. return s.Struct.Uint8(4)
  398. }
  399. func (s RegistrationOptions) SetNumPreviousAttempts(v uint8) {
  400. s.Struct.SetUint8(4, v)
  401. }
  402. func (s RegistrationOptions) Features() (capnp.TextList, error) {
  403. p, err := s.Struct.Ptr(7)
  404. return capnp.TextList{List: p.List()}, err
  405. }
  406. func (s RegistrationOptions) HasFeatures() bool {
  407. p, err := s.Struct.Ptr(7)
  408. return p.IsValid() || err != nil
  409. }
  410. func (s RegistrationOptions) SetFeatures(v capnp.TextList) error {
  411. return s.Struct.SetPtr(7, v.List.ToPtr())
  412. }
  413. // NewFeatures sets the features field to a newly
  414. // allocated capnp.TextList, preferring placement in s's segment.
  415. func (s RegistrationOptions) NewFeatures(n int32) (capnp.TextList, error) {
  416. l, err := capnp.NewTextList(s.Struct.Segment(), n)
  417. if err != nil {
  418. return capnp.TextList{}, err
  419. }
  420. err = s.Struct.SetPtr(7, l.List.ToPtr())
  421. return l, err
  422. }
  423. // RegistrationOptions_List is a list of RegistrationOptions.
  424. type RegistrationOptions_List struct{ capnp.List }
  425. // NewRegistrationOptions creates a new list of RegistrationOptions.
  426. func NewRegistrationOptions_List(s *capnp.Segment, sz int32) (RegistrationOptions_List, error) {
  427. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 16, PointerCount: 8}, sz)
  428. return RegistrationOptions_List{l}, err
  429. }
  430. func (s RegistrationOptions_List) At(i int) RegistrationOptions {
  431. return RegistrationOptions{s.List.Struct(i)}
  432. }
  433. func (s RegistrationOptions_List) Set(i int, v RegistrationOptions) error {
  434. return s.List.SetStruct(i, v.Struct)
  435. }
  436. func (s RegistrationOptions_List) String() string {
  437. str, _ := text.MarshalList(0xc793e50592935b4a, s.List)
  438. return str
  439. }
  440. // RegistrationOptions_Promise is a wrapper for a RegistrationOptions promised by a client call.
  441. type RegistrationOptions_Promise struct{ *capnp.Pipeline }
  442. func (p RegistrationOptions_Promise) Struct() (RegistrationOptions, error) {
  443. s, err := p.Pipeline.Struct()
  444. return RegistrationOptions{s}, err
  445. }
  446. type ExistingTunnelPolicy uint16
  447. // ExistingTunnelPolicy_TypeID is the unique identifier for the type ExistingTunnelPolicy.
  448. const ExistingTunnelPolicy_TypeID = 0x84cb9536a2cf6d3c
  449. // Values of ExistingTunnelPolicy.
  450. const (
  451. ExistingTunnelPolicy_ignore ExistingTunnelPolicy = 0
  452. ExistingTunnelPolicy_disconnect ExistingTunnelPolicy = 1
  453. ExistingTunnelPolicy_balance ExistingTunnelPolicy = 2
  454. )
  455. // String returns the enum's constant name.
  456. func (c ExistingTunnelPolicy) String() string {
  457. switch c {
  458. case ExistingTunnelPolicy_ignore:
  459. return "ignore"
  460. case ExistingTunnelPolicy_disconnect:
  461. return "disconnect"
  462. case ExistingTunnelPolicy_balance:
  463. return "balance"
  464. default:
  465. return ""
  466. }
  467. }
  468. // ExistingTunnelPolicyFromString returns the enum value with a name,
  469. // or the zero value if there's no such value.
  470. func ExistingTunnelPolicyFromString(c string) ExistingTunnelPolicy {
  471. switch c {
  472. case "ignore":
  473. return ExistingTunnelPolicy_ignore
  474. case "disconnect":
  475. return ExistingTunnelPolicy_disconnect
  476. case "balance":
  477. return ExistingTunnelPolicy_balance
  478. default:
  479. return 0
  480. }
  481. }
  482. type ExistingTunnelPolicy_List struct{ capnp.List }
  483. func NewExistingTunnelPolicy_List(s *capnp.Segment, sz int32) (ExistingTunnelPolicy_List, error) {
  484. l, err := capnp.NewUInt16List(s, sz)
  485. return ExistingTunnelPolicy_List{l.List}, err
  486. }
  487. func (l ExistingTunnelPolicy_List) At(i int) ExistingTunnelPolicy {
  488. ul := capnp.UInt16List{List: l.List}
  489. return ExistingTunnelPolicy(ul.At(i))
  490. }
  491. func (l ExistingTunnelPolicy_List) Set(i int, v ExistingTunnelPolicy) {
  492. ul := capnp.UInt16List{List: l.List}
  493. ul.Set(i, uint16(v))
  494. }
  495. type ServerInfo struct{ capnp.Struct }
  496. // ServerInfo_TypeID is the unique identifier for the type ServerInfo.
  497. const ServerInfo_TypeID = 0xf2c68e2547ec3866
  498. func NewServerInfo(s *capnp.Segment) (ServerInfo, error) {
  499. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
  500. return ServerInfo{st}, err
  501. }
  502. func NewRootServerInfo(s *capnp.Segment) (ServerInfo, error) {
  503. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
  504. return ServerInfo{st}, err
  505. }
  506. func ReadRootServerInfo(msg *capnp.Message) (ServerInfo, error) {
  507. root, err := msg.RootPtr()
  508. return ServerInfo{root.Struct()}, err
  509. }
  510. func (s ServerInfo) String() string {
  511. str, _ := text.Marshal(0xf2c68e2547ec3866, s.Struct)
  512. return str
  513. }
  514. func (s ServerInfo) LocationName() (string, error) {
  515. p, err := s.Struct.Ptr(0)
  516. return p.Text(), err
  517. }
  518. func (s ServerInfo) HasLocationName() bool {
  519. p, err := s.Struct.Ptr(0)
  520. return p.IsValid() || err != nil
  521. }
  522. func (s ServerInfo) LocationNameBytes() ([]byte, error) {
  523. p, err := s.Struct.Ptr(0)
  524. return p.TextBytes(), err
  525. }
  526. func (s ServerInfo) SetLocationName(v string) error {
  527. return s.Struct.SetText(0, v)
  528. }
  529. // ServerInfo_List is a list of ServerInfo.
  530. type ServerInfo_List struct{ capnp.List }
  531. // NewServerInfo creates a new list of ServerInfo.
  532. func NewServerInfo_List(s *capnp.Segment, sz int32) (ServerInfo_List, error) {
  533. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
  534. return ServerInfo_List{l}, err
  535. }
  536. func (s ServerInfo_List) At(i int) ServerInfo { return ServerInfo{s.List.Struct(i)} }
  537. func (s ServerInfo_List) Set(i int, v ServerInfo) error { return s.List.SetStruct(i, v.Struct) }
  538. func (s ServerInfo_List) String() string {
  539. str, _ := text.MarshalList(0xf2c68e2547ec3866, s.List)
  540. return str
  541. }
  542. // ServerInfo_Promise is a wrapper for a ServerInfo promised by a client call.
  543. type ServerInfo_Promise struct{ *capnp.Pipeline }
  544. func (p ServerInfo_Promise) Struct() (ServerInfo, error) {
  545. s, err := p.Pipeline.Struct()
  546. return ServerInfo{s}, err
  547. }
  548. type AuthenticateResponse struct{ capnp.Struct }
  549. // AuthenticateResponse_TypeID is the unique identifier for the type AuthenticateResponse.
  550. const AuthenticateResponse_TypeID = 0x82c325a07ad22a65
  551. func NewAuthenticateResponse(s *capnp.Segment) (AuthenticateResponse, error) {
  552. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 3})
  553. return AuthenticateResponse{st}, err
  554. }
  555. func NewRootAuthenticateResponse(s *capnp.Segment) (AuthenticateResponse, error) {
  556. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 3})
  557. return AuthenticateResponse{st}, err
  558. }
  559. func ReadRootAuthenticateResponse(msg *capnp.Message) (AuthenticateResponse, error) {
  560. root, err := msg.RootPtr()
  561. return AuthenticateResponse{root.Struct()}, err
  562. }
  563. func (s AuthenticateResponse) String() string {
  564. str, _ := text.Marshal(0x82c325a07ad22a65, s.Struct)
  565. return str
  566. }
  567. func (s AuthenticateResponse) PermanentErr() (string, error) {
  568. p, err := s.Struct.Ptr(0)
  569. return p.Text(), err
  570. }
  571. func (s AuthenticateResponse) HasPermanentErr() bool {
  572. p, err := s.Struct.Ptr(0)
  573. return p.IsValid() || err != nil
  574. }
  575. func (s AuthenticateResponse) PermanentErrBytes() ([]byte, error) {
  576. p, err := s.Struct.Ptr(0)
  577. return p.TextBytes(), err
  578. }
  579. func (s AuthenticateResponse) SetPermanentErr(v string) error {
  580. return s.Struct.SetText(0, v)
  581. }
  582. func (s AuthenticateResponse) RetryableErr() (string, error) {
  583. p, err := s.Struct.Ptr(1)
  584. return p.Text(), err
  585. }
  586. func (s AuthenticateResponse) HasRetryableErr() bool {
  587. p, err := s.Struct.Ptr(1)
  588. return p.IsValid() || err != nil
  589. }
  590. func (s AuthenticateResponse) RetryableErrBytes() ([]byte, error) {
  591. p, err := s.Struct.Ptr(1)
  592. return p.TextBytes(), err
  593. }
  594. func (s AuthenticateResponse) SetRetryableErr(v string) error {
  595. return s.Struct.SetText(1, v)
  596. }
  597. func (s AuthenticateResponse) Jwt() ([]byte, error) {
  598. p, err := s.Struct.Ptr(2)
  599. return []byte(p.Data()), err
  600. }
  601. func (s AuthenticateResponse) HasJwt() bool {
  602. p, err := s.Struct.Ptr(2)
  603. return p.IsValid() || err != nil
  604. }
  605. func (s AuthenticateResponse) SetJwt(v []byte) error {
  606. return s.Struct.SetData(2, v)
  607. }
  608. func (s AuthenticateResponse) HoursUntilRefresh() uint8 {
  609. return s.Struct.Uint8(0)
  610. }
  611. func (s AuthenticateResponse) SetHoursUntilRefresh(v uint8) {
  612. s.Struct.SetUint8(0, v)
  613. }
  614. // AuthenticateResponse_List is a list of AuthenticateResponse.
  615. type AuthenticateResponse_List struct{ capnp.List }
  616. // NewAuthenticateResponse creates a new list of AuthenticateResponse.
  617. func NewAuthenticateResponse_List(s *capnp.Segment, sz int32) (AuthenticateResponse_List, error) {
  618. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 3}, sz)
  619. return AuthenticateResponse_List{l}, err
  620. }
  621. func (s AuthenticateResponse_List) At(i int) AuthenticateResponse {
  622. return AuthenticateResponse{s.List.Struct(i)}
  623. }
  624. func (s AuthenticateResponse_List) Set(i int, v AuthenticateResponse) error {
  625. return s.List.SetStruct(i, v.Struct)
  626. }
  627. func (s AuthenticateResponse_List) String() string {
  628. str, _ := text.MarshalList(0x82c325a07ad22a65, s.List)
  629. return str
  630. }
  631. // AuthenticateResponse_Promise is a wrapper for a AuthenticateResponse promised by a client call.
  632. type AuthenticateResponse_Promise struct{ *capnp.Pipeline }
  633. func (p AuthenticateResponse_Promise) Struct() (AuthenticateResponse, error) {
  634. s, err := p.Pipeline.Struct()
  635. return AuthenticateResponse{s}, err
  636. }
  637. type TunnelServer struct{ Client capnp.Client }
  638. // TunnelServer_TypeID is the unique identifier for the type TunnelServer.
  639. const TunnelServer_TypeID = 0xea58385c65416035
  640. func (c TunnelServer) RegisterTunnel(ctx context.Context, params func(TunnelServer_registerTunnel_Params) error, opts ...capnp.CallOption) TunnelServer_registerTunnel_Results_Promise {
  641. if c.Client == nil {
  642. return TunnelServer_registerTunnel_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
  643. }
  644. call := &capnp.Call{
  645. Ctx: ctx,
  646. Method: capnp.Method{
  647. InterfaceID: 0xea58385c65416035,
  648. MethodID: 0,
  649. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:TunnelServer",
  650. MethodName: "registerTunnel",
  651. },
  652. Options: capnp.NewCallOptions(opts),
  653. }
  654. if params != nil {
  655. call.ParamsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 3}
  656. call.ParamsFunc = func(s capnp.Struct) error { return params(TunnelServer_registerTunnel_Params{Struct: s}) }
  657. }
  658. return TunnelServer_registerTunnel_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
  659. }
  660. func (c TunnelServer) GetServerInfo(ctx context.Context, params func(TunnelServer_getServerInfo_Params) error, opts ...capnp.CallOption) TunnelServer_getServerInfo_Results_Promise {
  661. if c.Client == nil {
  662. return TunnelServer_getServerInfo_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
  663. }
  664. call := &capnp.Call{
  665. Ctx: ctx,
  666. Method: capnp.Method{
  667. InterfaceID: 0xea58385c65416035,
  668. MethodID: 1,
  669. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:TunnelServer",
  670. MethodName: "getServerInfo",
  671. },
  672. Options: capnp.NewCallOptions(opts),
  673. }
  674. if params != nil {
  675. call.ParamsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 0}
  676. call.ParamsFunc = func(s capnp.Struct) error { return params(TunnelServer_getServerInfo_Params{Struct: s}) }
  677. }
  678. return TunnelServer_getServerInfo_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
  679. }
  680. func (c TunnelServer) UnregisterTunnel(ctx context.Context, params func(TunnelServer_unregisterTunnel_Params) error, opts ...capnp.CallOption) TunnelServer_unregisterTunnel_Results_Promise {
  681. if c.Client == nil {
  682. return TunnelServer_unregisterTunnel_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
  683. }
  684. call := &capnp.Call{
  685. Ctx: ctx,
  686. Method: capnp.Method{
  687. InterfaceID: 0xea58385c65416035,
  688. MethodID: 2,
  689. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:TunnelServer",
  690. MethodName: "unregisterTunnel",
  691. },
  692. Options: capnp.NewCallOptions(opts),
  693. }
  694. if params != nil {
  695. call.ParamsSize = capnp.ObjectSize{DataSize: 8, PointerCount: 0}
  696. call.ParamsFunc = func(s capnp.Struct) error { return params(TunnelServer_unregisterTunnel_Params{Struct: s}) }
  697. }
  698. return TunnelServer_unregisterTunnel_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
  699. }
  700. func (c TunnelServer) ObsoleteDeclarativeTunnelConnect(ctx context.Context, params func(TunnelServer_obsoleteDeclarativeTunnelConnect_Params) error, opts ...capnp.CallOption) TunnelServer_obsoleteDeclarativeTunnelConnect_Results_Promise {
  701. if c.Client == nil {
  702. return TunnelServer_obsoleteDeclarativeTunnelConnect_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
  703. }
  704. call := &capnp.Call{
  705. Ctx: ctx,
  706. Method: capnp.Method{
  707. InterfaceID: 0xea58385c65416035,
  708. MethodID: 3,
  709. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:TunnelServer",
  710. MethodName: "obsoleteDeclarativeTunnelConnect",
  711. },
  712. Options: capnp.NewCallOptions(opts),
  713. }
  714. if params != nil {
  715. call.ParamsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 0}
  716. call.ParamsFunc = func(s capnp.Struct) error {
  717. return params(TunnelServer_obsoleteDeclarativeTunnelConnect_Params{Struct: s})
  718. }
  719. }
  720. return TunnelServer_obsoleteDeclarativeTunnelConnect_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
  721. }
  722. func (c TunnelServer) Authenticate(ctx context.Context, params func(TunnelServer_authenticate_Params) error, opts ...capnp.CallOption) TunnelServer_authenticate_Results_Promise {
  723. if c.Client == nil {
  724. return TunnelServer_authenticate_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
  725. }
  726. call := &capnp.Call{
  727. Ctx: ctx,
  728. Method: capnp.Method{
  729. InterfaceID: 0xea58385c65416035,
  730. MethodID: 4,
  731. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:TunnelServer",
  732. MethodName: "authenticate",
  733. },
  734. Options: capnp.NewCallOptions(opts),
  735. }
  736. if params != nil {
  737. call.ParamsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 3}
  738. call.ParamsFunc = func(s capnp.Struct) error { return params(TunnelServer_authenticate_Params{Struct: s}) }
  739. }
  740. return TunnelServer_authenticate_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
  741. }
  742. func (c TunnelServer) ReconnectTunnel(ctx context.Context, params func(TunnelServer_reconnectTunnel_Params) error, opts ...capnp.CallOption) TunnelServer_reconnectTunnel_Results_Promise {
  743. if c.Client == nil {
  744. return TunnelServer_reconnectTunnel_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
  745. }
  746. call := &capnp.Call{
  747. Ctx: ctx,
  748. Method: capnp.Method{
  749. InterfaceID: 0xea58385c65416035,
  750. MethodID: 5,
  751. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:TunnelServer",
  752. MethodName: "reconnectTunnel",
  753. },
  754. Options: capnp.NewCallOptions(opts),
  755. }
  756. if params != nil {
  757. call.ParamsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 5}
  758. call.ParamsFunc = func(s capnp.Struct) error { return params(TunnelServer_reconnectTunnel_Params{Struct: s}) }
  759. }
  760. return TunnelServer_reconnectTunnel_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
  761. }
  762. func (c TunnelServer) RegisterConnection(ctx context.Context, params func(RegistrationServer_registerConnection_Params) error, opts ...capnp.CallOption) RegistrationServer_registerConnection_Results_Promise {
  763. if c.Client == nil {
  764. return RegistrationServer_registerConnection_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
  765. }
  766. call := &capnp.Call{
  767. Ctx: ctx,
  768. Method: capnp.Method{
  769. InterfaceID: 0xf71695ec7fe85497,
  770. MethodID: 0,
  771. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:RegistrationServer",
  772. MethodName: "registerConnection",
  773. },
  774. Options: capnp.NewCallOptions(opts),
  775. }
  776. if params != nil {
  777. call.ParamsSize = capnp.ObjectSize{DataSize: 8, PointerCount: 3}
  778. call.ParamsFunc = func(s capnp.Struct) error { return params(RegistrationServer_registerConnection_Params{Struct: s}) }
  779. }
  780. return RegistrationServer_registerConnection_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
  781. }
  782. func (c TunnelServer) UnregisterConnection(ctx context.Context, params func(RegistrationServer_unregisterConnection_Params) error, opts ...capnp.CallOption) RegistrationServer_unregisterConnection_Results_Promise {
  783. if c.Client == nil {
  784. return RegistrationServer_unregisterConnection_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
  785. }
  786. call := &capnp.Call{
  787. Ctx: ctx,
  788. Method: capnp.Method{
  789. InterfaceID: 0xf71695ec7fe85497,
  790. MethodID: 1,
  791. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:RegistrationServer",
  792. MethodName: "unregisterConnection",
  793. },
  794. Options: capnp.NewCallOptions(opts),
  795. }
  796. if params != nil {
  797. call.ParamsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 0}
  798. call.ParamsFunc = func(s capnp.Struct) error { return params(RegistrationServer_unregisterConnection_Params{Struct: s}) }
  799. }
  800. return RegistrationServer_unregisterConnection_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
  801. }
  802. func (c TunnelServer) UpdateLocalConfiguration(ctx context.Context, params func(RegistrationServer_updateLocalConfiguration_Params) error, opts ...capnp.CallOption) RegistrationServer_updateLocalConfiguration_Results_Promise {
  803. if c.Client == nil {
  804. return RegistrationServer_updateLocalConfiguration_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
  805. }
  806. call := &capnp.Call{
  807. Ctx: ctx,
  808. Method: capnp.Method{
  809. InterfaceID: 0xf71695ec7fe85497,
  810. MethodID: 2,
  811. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:RegistrationServer",
  812. MethodName: "updateLocalConfiguration",
  813. },
  814. Options: capnp.NewCallOptions(opts),
  815. }
  816. if params != nil {
  817. call.ParamsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 1}
  818. call.ParamsFunc = func(s capnp.Struct) error {
  819. return params(RegistrationServer_updateLocalConfiguration_Params{Struct: s})
  820. }
  821. }
  822. return RegistrationServer_updateLocalConfiguration_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
  823. }
  824. type TunnelServer_Server interface {
  825. RegisterTunnel(TunnelServer_registerTunnel) error
  826. GetServerInfo(TunnelServer_getServerInfo) error
  827. UnregisterTunnel(TunnelServer_unregisterTunnel) error
  828. ObsoleteDeclarativeTunnelConnect(TunnelServer_obsoleteDeclarativeTunnelConnect) error
  829. Authenticate(TunnelServer_authenticate) error
  830. ReconnectTunnel(TunnelServer_reconnectTunnel) error
  831. RegisterConnection(RegistrationServer_registerConnection) error
  832. UnregisterConnection(RegistrationServer_unregisterConnection) error
  833. UpdateLocalConfiguration(RegistrationServer_updateLocalConfiguration) error
  834. }
  835. func TunnelServer_ServerToClient(s TunnelServer_Server) TunnelServer {
  836. c, _ := s.(server.Closer)
  837. return TunnelServer{Client: server.New(TunnelServer_Methods(nil, s), c)}
  838. }
  839. func TunnelServer_Methods(methods []server.Method, s TunnelServer_Server) []server.Method {
  840. if cap(methods) == 0 {
  841. methods = make([]server.Method, 0, 9)
  842. }
  843. methods = append(methods, server.Method{
  844. Method: capnp.Method{
  845. InterfaceID: 0xea58385c65416035,
  846. MethodID: 0,
  847. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:TunnelServer",
  848. MethodName: "registerTunnel",
  849. },
  850. Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
  851. call := TunnelServer_registerTunnel{c, opts, TunnelServer_registerTunnel_Params{Struct: p}, TunnelServer_registerTunnel_Results{Struct: r}}
  852. return s.RegisterTunnel(call)
  853. },
  854. ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 1},
  855. })
  856. methods = append(methods, server.Method{
  857. Method: capnp.Method{
  858. InterfaceID: 0xea58385c65416035,
  859. MethodID: 1,
  860. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:TunnelServer",
  861. MethodName: "getServerInfo",
  862. },
  863. Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
  864. call := TunnelServer_getServerInfo{c, opts, TunnelServer_getServerInfo_Params{Struct: p}, TunnelServer_getServerInfo_Results{Struct: r}}
  865. return s.GetServerInfo(call)
  866. },
  867. ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 1},
  868. })
  869. methods = append(methods, server.Method{
  870. Method: capnp.Method{
  871. InterfaceID: 0xea58385c65416035,
  872. MethodID: 2,
  873. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:TunnelServer",
  874. MethodName: "unregisterTunnel",
  875. },
  876. Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
  877. call := TunnelServer_unregisterTunnel{c, opts, TunnelServer_unregisterTunnel_Params{Struct: p}, TunnelServer_unregisterTunnel_Results{Struct: r}}
  878. return s.UnregisterTunnel(call)
  879. },
  880. ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 0},
  881. })
  882. methods = append(methods, server.Method{
  883. Method: capnp.Method{
  884. InterfaceID: 0xea58385c65416035,
  885. MethodID: 3,
  886. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:TunnelServer",
  887. MethodName: "obsoleteDeclarativeTunnelConnect",
  888. },
  889. Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
  890. call := TunnelServer_obsoleteDeclarativeTunnelConnect{c, opts, TunnelServer_obsoleteDeclarativeTunnelConnect_Params{Struct: p}, TunnelServer_obsoleteDeclarativeTunnelConnect_Results{Struct: r}}
  891. return s.ObsoleteDeclarativeTunnelConnect(call)
  892. },
  893. ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 0},
  894. })
  895. methods = append(methods, server.Method{
  896. Method: capnp.Method{
  897. InterfaceID: 0xea58385c65416035,
  898. MethodID: 4,
  899. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:TunnelServer",
  900. MethodName: "authenticate",
  901. },
  902. Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
  903. call := TunnelServer_authenticate{c, opts, TunnelServer_authenticate_Params{Struct: p}, TunnelServer_authenticate_Results{Struct: r}}
  904. return s.Authenticate(call)
  905. },
  906. ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 1},
  907. })
  908. methods = append(methods, server.Method{
  909. Method: capnp.Method{
  910. InterfaceID: 0xea58385c65416035,
  911. MethodID: 5,
  912. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:TunnelServer",
  913. MethodName: "reconnectTunnel",
  914. },
  915. Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
  916. call := TunnelServer_reconnectTunnel{c, opts, TunnelServer_reconnectTunnel_Params{Struct: p}, TunnelServer_reconnectTunnel_Results{Struct: r}}
  917. return s.ReconnectTunnel(call)
  918. },
  919. ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 1},
  920. })
  921. methods = append(methods, server.Method{
  922. Method: capnp.Method{
  923. InterfaceID: 0xf71695ec7fe85497,
  924. MethodID: 0,
  925. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:RegistrationServer",
  926. MethodName: "registerConnection",
  927. },
  928. Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
  929. call := RegistrationServer_registerConnection{c, opts, RegistrationServer_registerConnection_Params{Struct: p}, RegistrationServer_registerConnection_Results{Struct: r}}
  930. return s.RegisterConnection(call)
  931. },
  932. ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 1},
  933. })
  934. methods = append(methods, server.Method{
  935. Method: capnp.Method{
  936. InterfaceID: 0xf71695ec7fe85497,
  937. MethodID: 1,
  938. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:RegistrationServer",
  939. MethodName: "unregisterConnection",
  940. },
  941. Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
  942. call := RegistrationServer_unregisterConnection{c, opts, RegistrationServer_unregisterConnection_Params{Struct: p}, RegistrationServer_unregisterConnection_Results{Struct: r}}
  943. return s.UnregisterConnection(call)
  944. },
  945. ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 0},
  946. })
  947. methods = append(methods, server.Method{
  948. Method: capnp.Method{
  949. InterfaceID: 0xf71695ec7fe85497,
  950. MethodID: 2,
  951. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:RegistrationServer",
  952. MethodName: "updateLocalConfiguration",
  953. },
  954. Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
  955. call := RegistrationServer_updateLocalConfiguration{c, opts, RegistrationServer_updateLocalConfiguration_Params{Struct: p}, RegistrationServer_updateLocalConfiguration_Results{Struct: r}}
  956. return s.UpdateLocalConfiguration(call)
  957. },
  958. ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 0},
  959. })
  960. return methods
  961. }
  962. // TunnelServer_registerTunnel holds the arguments for a server call to TunnelServer.registerTunnel.
  963. type TunnelServer_registerTunnel struct {
  964. Ctx context.Context
  965. Options capnp.CallOptions
  966. Params TunnelServer_registerTunnel_Params
  967. Results TunnelServer_registerTunnel_Results
  968. }
  969. // TunnelServer_getServerInfo holds the arguments for a server call to TunnelServer.getServerInfo.
  970. type TunnelServer_getServerInfo struct {
  971. Ctx context.Context
  972. Options capnp.CallOptions
  973. Params TunnelServer_getServerInfo_Params
  974. Results TunnelServer_getServerInfo_Results
  975. }
  976. // TunnelServer_unregisterTunnel holds the arguments for a server call to TunnelServer.unregisterTunnel.
  977. type TunnelServer_unregisterTunnel struct {
  978. Ctx context.Context
  979. Options capnp.CallOptions
  980. Params TunnelServer_unregisterTunnel_Params
  981. Results TunnelServer_unregisterTunnel_Results
  982. }
  983. // TunnelServer_obsoleteDeclarativeTunnelConnect holds the arguments for a server call to TunnelServer.obsoleteDeclarativeTunnelConnect.
  984. type TunnelServer_obsoleteDeclarativeTunnelConnect struct {
  985. Ctx context.Context
  986. Options capnp.CallOptions
  987. Params TunnelServer_obsoleteDeclarativeTunnelConnect_Params
  988. Results TunnelServer_obsoleteDeclarativeTunnelConnect_Results
  989. }
  990. // TunnelServer_authenticate holds the arguments for a server call to TunnelServer.authenticate.
  991. type TunnelServer_authenticate struct {
  992. Ctx context.Context
  993. Options capnp.CallOptions
  994. Params TunnelServer_authenticate_Params
  995. Results TunnelServer_authenticate_Results
  996. }
  997. // TunnelServer_reconnectTunnel holds the arguments for a server call to TunnelServer.reconnectTunnel.
  998. type TunnelServer_reconnectTunnel struct {
  999. Ctx context.Context
  1000. Options capnp.CallOptions
  1001. Params TunnelServer_reconnectTunnel_Params
  1002. Results TunnelServer_reconnectTunnel_Results
  1003. }
  1004. type TunnelServer_registerTunnel_Params struct{ capnp.Struct }
  1005. // TunnelServer_registerTunnel_Params_TypeID is the unique identifier for the type TunnelServer_registerTunnel_Params.
  1006. const TunnelServer_registerTunnel_Params_TypeID = 0xb70431c0dc014915
  1007. func NewTunnelServer_registerTunnel_Params(s *capnp.Segment) (TunnelServer_registerTunnel_Params, error) {
  1008. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3})
  1009. return TunnelServer_registerTunnel_Params{st}, err
  1010. }
  1011. func NewRootTunnelServer_registerTunnel_Params(s *capnp.Segment) (TunnelServer_registerTunnel_Params, error) {
  1012. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3})
  1013. return TunnelServer_registerTunnel_Params{st}, err
  1014. }
  1015. func ReadRootTunnelServer_registerTunnel_Params(msg *capnp.Message) (TunnelServer_registerTunnel_Params, error) {
  1016. root, err := msg.RootPtr()
  1017. return TunnelServer_registerTunnel_Params{root.Struct()}, err
  1018. }
  1019. func (s TunnelServer_registerTunnel_Params) String() string {
  1020. str, _ := text.Marshal(0xb70431c0dc014915, s.Struct)
  1021. return str
  1022. }
  1023. func (s TunnelServer_registerTunnel_Params) OriginCert() ([]byte, error) {
  1024. p, err := s.Struct.Ptr(0)
  1025. return []byte(p.Data()), err
  1026. }
  1027. func (s TunnelServer_registerTunnel_Params) HasOriginCert() bool {
  1028. p, err := s.Struct.Ptr(0)
  1029. return p.IsValid() || err != nil
  1030. }
  1031. func (s TunnelServer_registerTunnel_Params) SetOriginCert(v []byte) error {
  1032. return s.Struct.SetData(0, v)
  1033. }
  1034. func (s TunnelServer_registerTunnel_Params) Hostname() (string, error) {
  1035. p, err := s.Struct.Ptr(1)
  1036. return p.Text(), err
  1037. }
  1038. func (s TunnelServer_registerTunnel_Params) HasHostname() bool {
  1039. p, err := s.Struct.Ptr(1)
  1040. return p.IsValid() || err != nil
  1041. }
  1042. func (s TunnelServer_registerTunnel_Params) HostnameBytes() ([]byte, error) {
  1043. p, err := s.Struct.Ptr(1)
  1044. return p.TextBytes(), err
  1045. }
  1046. func (s TunnelServer_registerTunnel_Params) SetHostname(v string) error {
  1047. return s.Struct.SetText(1, v)
  1048. }
  1049. func (s TunnelServer_registerTunnel_Params) Options() (RegistrationOptions, error) {
  1050. p, err := s.Struct.Ptr(2)
  1051. return RegistrationOptions{Struct: p.Struct()}, err
  1052. }
  1053. func (s TunnelServer_registerTunnel_Params) HasOptions() bool {
  1054. p, err := s.Struct.Ptr(2)
  1055. return p.IsValid() || err != nil
  1056. }
  1057. func (s TunnelServer_registerTunnel_Params) SetOptions(v RegistrationOptions) error {
  1058. return s.Struct.SetPtr(2, v.Struct.ToPtr())
  1059. }
  1060. // NewOptions sets the options field to a newly
  1061. // allocated RegistrationOptions struct, preferring placement in s's segment.
  1062. func (s TunnelServer_registerTunnel_Params) NewOptions() (RegistrationOptions, error) {
  1063. ss, err := NewRegistrationOptions(s.Struct.Segment())
  1064. if err != nil {
  1065. return RegistrationOptions{}, err
  1066. }
  1067. err = s.Struct.SetPtr(2, ss.Struct.ToPtr())
  1068. return ss, err
  1069. }
  1070. // TunnelServer_registerTunnel_Params_List is a list of TunnelServer_registerTunnel_Params.
  1071. type TunnelServer_registerTunnel_Params_List struct{ capnp.List }
  1072. // NewTunnelServer_registerTunnel_Params creates a new list of TunnelServer_registerTunnel_Params.
  1073. func NewTunnelServer_registerTunnel_Params_List(s *capnp.Segment, sz int32) (TunnelServer_registerTunnel_Params_List, error) {
  1074. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3}, sz)
  1075. return TunnelServer_registerTunnel_Params_List{l}, err
  1076. }
  1077. func (s TunnelServer_registerTunnel_Params_List) At(i int) TunnelServer_registerTunnel_Params {
  1078. return TunnelServer_registerTunnel_Params{s.List.Struct(i)}
  1079. }
  1080. func (s TunnelServer_registerTunnel_Params_List) Set(i int, v TunnelServer_registerTunnel_Params) error {
  1081. return s.List.SetStruct(i, v.Struct)
  1082. }
  1083. func (s TunnelServer_registerTunnel_Params_List) String() string {
  1084. str, _ := text.MarshalList(0xb70431c0dc014915, s.List)
  1085. return str
  1086. }
  1087. // TunnelServer_registerTunnel_Params_Promise is a wrapper for a TunnelServer_registerTunnel_Params promised by a client call.
  1088. type TunnelServer_registerTunnel_Params_Promise struct{ *capnp.Pipeline }
  1089. func (p TunnelServer_registerTunnel_Params_Promise) Struct() (TunnelServer_registerTunnel_Params, error) {
  1090. s, err := p.Pipeline.Struct()
  1091. return TunnelServer_registerTunnel_Params{s}, err
  1092. }
  1093. func (p TunnelServer_registerTunnel_Params_Promise) Options() RegistrationOptions_Promise {
  1094. return RegistrationOptions_Promise{Pipeline: p.Pipeline.GetPipeline(2)}
  1095. }
  1096. type TunnelServer_registerTunnel_Results struct{ capnp.Struct }
  1097. // TunnelServer_registerTunnel_Results_TypeID is the unique identifier for the type TunnelServer_registerTunnel_Results.
  1098. const TunnelServer_registerTunnel_Results_TypeID = 0xf2c122394f447e8e
  1099. func NewTunnelServer_registerTunnel_Results(s *capnp.Segment) (TunnelServer_registerTunnel_Results, error) {
  1100. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
  1101. return TunnelServer_registerTunnel_Results{st}, err
  1102. }
  1103. func NewRootTunnelServer_registerTunnel_Results(s *capnp.Segment) (TunnelServer_registerTunnel_Results, error) {
  1104. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
  1105. return TunnelServer_registerTunnel_Results{st}, err
  1106. }
  1107. func ReadRootTunnelServer_registerTunnel_Results(msg *capnp.Message) (TunnelServer_registerTunnel_Results, error) {
  1108. root, err := msg.RootPtr()
  1109. return TunnelServer_registerTunnel_Results{root.Struct()}, err
  1110. }
  1111. func (s TunnelServer_registerTunnel_Results) String() string {
  1112. str, _ := text.Marshal(0xf2c122394f447e8e, s.Struct)
  1113. return str
  1114. }
  1115. func (s TunnelServer_registerTunnel_Results) Result() (TunnelRegistration, error) {
  1116. p, err := s.Struct.Ptr(0)
  1117. return TunnelRegistration{Struct: p.Struct()}, err
  1118. }
  1119. func (s TunnelServer_registerTunnel_Results) HasResult() bool {
  1120. p, err := s.Struct.Ptr(0)
  1121. return p.IsValid() || err != nil
  1122. }
  1123. func (s TunnelServer_registerTunnel_Results) SetResult(v TunnelRegistration) error {
  1124. return s.Struct.SetPtr(0, v.Struct.ToPtr())
  1125. }
  1126. // NewResult sets the result field to a newly
  1127. // allocated TunnelRegistration struct, preferring placement in s's segment.
  1128. func (s TunnelServer_registerTunnel_Results) NewResult() (TunnelRegistration, error) {
  1129. ss, err := NewTunnelRegistration(s.Struct.Segment())
  1130. if err != nil {
  1131. return TunnelRegistration{}, err
  1132. }
  1133. err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
  1134. return ss, err
  1135. }
  1136. // TunnelServer_registerTunnel_Results_List is a list of TunnelServer_registerTunnel_Results.
  1137. type TunnelServer_registerTunnel_Results_List struct{ capnp.List }
  1138. // NewTunnelServer_registerTunnel_Results creates a new list of TunnelServer_registerTunnel_Results.
  1139. func NewTunnelServer_registerTunnel_Results_List(s *capnp.Segment, sz int32) (TunnelServer_registerTunnel_Results_List, error) {
  1140. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
  1141. return TunnelServer_registerTunnel_Results_List{l}, err
  1142. }
  1143. func (s TunnelServer_registerTunnel_Results_List) At(i int) TunnelServer_registerTunnel_Results {
  1144. return TunnelServer_registerTunnel_Results{s.List.Struct(i)}
  1145. }
  1146. func (s TunnelServer_registerTunnel_Results_List) Set(i int, v TunnelServer_registerTunnel_Results) error {
  1147. return s.List.SetStruct(i, v.Struct)
  1148. }
  1149. func (s TunnelServer_registerTunnel_Results_List) String() string {
  1150. str, _ := text.MarshalList(0xf2c122394f447e8e, s.List)
  1151. return str
  1152. }
  1153. // TunnelServer_registerTunnel_Results_Promise is a wrapper for a TunnelServer_registerTunnel_Results promised by a client call.
  1154. type TunnelServer_registerTunnel_Results_Promise struct{ *capnp.Pipeline }
  1155. func (p TunnelServer_registerTunnel_Results_Promise) Struct() (TunnelServer_registerTunnel_Results, error) {
  1156. s, err := p.Pipeline.Struct()
  1157. return TunnelServer_registerTunnel_Results{s}, err
  1158. }
  1159. func (p TunnelServer_registerTunnel_Results_Promise) Result() TunnelRegistration_Promise {
  1160. return TunnelRegistration_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
  1161. }
  1162. type TunnelServer_getServerInfo_Params struct{ capnp.Struct }
  1163. // TunnelServer_getServerInfo_Params_TypeID is the unique identifier for the type TunnelServer_getServerInfo_Params.
  1164. const TunnelServer_getServerInfo_Params_TypeID = 0xdc3ed6801961e502
  1165. func NewTunnelServer_getServerInfo_Params(s *capnp.Segment) (TunnelServer_getServerInfo_Params, error) {
  1166. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
  1167. return TunnelServer_getServerInfo_Params{st}, err
  1168. }
  1169. func NewRootTunnelServer_getServerInfo_Params(s *capnp.Segment) (TunnelServer_getServerInfo_Params, error) {
  1170. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
  1171. return TunnelServer_getServerInfo_Params{st}, err
  1172. }
  1173. func ReadRootTunnelServer_getServerInfo_Params(msg *capnp.Message) (TunnelServer_getServerInfo_Params, error) {
  1174. root, err := msg.RootPtr()
  1175. return TunnelServer_getServerInfo_Params{root.Struct()}, err
  1176. }
  1177. func (s TunnelServer_getServerInfo_Params) String() string {
  1178. str, _ := text.Marshal(0xdc3ed6801961e502, s.Struct)
  1179. return str
  1180. }
  1181. // TunnelServer_getServerInfo_Params_List is a list of TunnelServer_getServerInfo_Params.
  1182. type TunnelServer_getServerInfo_Params_List struct{ capnp.List }
  1183. // NewTunnelServer_getServerInfo_Params creates a new list of TunnelServer_getServerInfo_Params.
  1184. func NewTunnelServer_getServerInfo_Params_List(s *capnp.Segment, sz int32) (TunnelServer_getServerInfo_Params_List, error) {
  1185. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
  1186. return TunnelServer_getServerInfo_Params_List{l}, err
  1187. }
  1188. func (s TunnelServer_getServerInfo_Params_List) At(i int) TunnelServer_getServerInfo_Params {
  1189. return TunnelServer_getServerInfo_Params{s.List.Struct(i)}
  1190. }
  1191. func (s TunnelServer_getServerInfo_Params_List) Set(i int, v TunnelServer_getServerInfo_Params) error {
  1192. return s.List.SetStruct(i, v.Struct)
  1193. }
  1194. func (s TunnelServer_getServerInfo_Params_List) String() string {
  1195. str, _ := text.MarshalList(0xdc3ed6801961e502, s.List)
  1196. return str
  1197. }
  1198. // TunnelServer_getServerInfo_Params_Promise is a wrapper for a TunnelServer_getServerInfo_Params promised by a client call.
  1199. type TunnelServer_getServerInfo_Params_Promise struct{ *capnp.Pipeline }
  1200. func (p TunnelServer_getServerInfo_Params_Promise) Struct() (TunnelServer_getServerInfo_Params, error) {
  1201. s, err := p.Pipeline.Struct()
  1202. return TunnelServer_getServerInfo_Params{s}, err
  1203. }
  1204. type TunnelServer_getServerInfo_Results struct{ capnp.Struct }
  1205. // TunnelServer_getServerInfo_Results_TypeID is the unique identifier for the type TunnelServer_getServerInfo_Results.
  1206. const TunnelServer_getServerInfo_Results_TypeID = 0xe3e37d096a5b564e
  1207. func NewTunnelServer_getServerInfo_Results(s *capnp.Segment) (TunnelServer_getServerInfo_Results, error) {
  1208. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
  1209. return TunnelServer_getServerInfo_Results{st}, err
  1210. }
  1211. func NewRootTunnelServer_getServerInfo_Results(s *capnp.Segment) (TunnelServer_getServerInfo_Results, error) {
  1212. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
  1213. return TunnelServer_getServerInfo_Results{st}, err
  1214. }
  1215. func ReadRootTunnelServer_getServerInfo_Results(msg *capnp.Message) (TunnelServer_getServerInfo_Results, error) {
  1216. root, err := msg.RootPtr()
  1217. return TunnelServer_getServerInfo_Results{root.Struct()}, err
  1218. }
  1219. func (s TunnelServer_getServerInfo_Results) String() string {
  1220. str, _ := text.Marshal(0xe3e37d096a5b564e, s.Struct)
  1221. return str
  1222. }
  1223. func (s TunnelServer_getServerInfo_Results) Result() (ServerInfo, error) {
  1224. p, err := s.Struct.Ptr(0)
  1225. return ServerInfo{Struct: p.Struct()}, err
  1226. }
  1227. func (s TunnelServer_getServerInfo_Results) HasResult() bool {
  1228. p, err := s.Struct.Ptr(0)
  1229. return p.IsValid() || err != nil
  1230. }
  1231. func (s TunnelServer_getServerInfo_Results) SetResult(v ServerInfo) error {
  1232. return s.Struct.SetPtr(0, v.Struct.ToPtr())
  1233. }
  1234. // NewResult sets the result field to a newly
  1235. // allocated ServerInfo struct, preferring placement in s's segment.
  1236. func (s TunnelServer_getServerInfo_Results) NewResult() (ServerInfo, error) {
  1237. ss, err := NewServerInfo(s.Struct.Segment())
  1238. if err != nil {
  1239. return ServerInfo{}, err
  1240. }
  1241. err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
  1242. return ss, err
  1243. }
  1244. // TunnelServer_getServerInfo_Results_List is a list of TunnelServer_getServerInfo_Results.
  1245. type TunnelServer_getServerInfo_Results_List struct{ capnp.List }
  1246. // NewTunnelServer_getServerInfo_Results creates a new list of TunnelServer_getServerInfo_Results.
  1247. func NewTunnelServer_getServerInfo_Results_List(s *capnp.Segment, sz int32) (TunnelServer_getServerInfo_Results_List, error) {
  1248. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
  1249. return TunnelServer_getServerInfo_Results_List{l}, err
  1250. }
  1251. func (s TunnelServer_getServerInfo_Results_List) At(i int) TunnelServer_getServerInfo_Results {
  1252. return TunnelServer_getServerInfo_Results{s.List.Struct(i)}
  1253. }
  1254. func (s TunnelServer_getServerInfo_Results_List) Set(i int, v TunnelServer_getServerInfo_Results) error {
  1255. return s.List.SetStruct(i, v.Struct)
  1256. }
  1257. func (s TunnelServer_getServerInfo_Results_List) String() string {
  1258. str, _ := text.MarshalList(0xe3e37d096a5b564e, s.List)
  1259. return str
  1260. }
  1261. // TunnelServer_getServerInfo_Results_Promise is a wrapper for a TunnelServer_getServerInfo_Results promised by a client call.
  1262. type TunnelServer_getServerInfo_Results_Promise struct{ *capnp.Pipeline }
  1263. func (p TunnelServer_getServerInfo_Results_Promise) Struct() (TunnelServer_getServerInfo_Results, error) {
  1264. s, err := p.Pipeline.Struct()
  1265. return TunnelServer_getServerInfo_Results{s}, err
  1266. }
  1267. func (p TunnelServer_getServerInfo_Results_Promise) Result() ServerInfo_Promise {
  1268. return ServerInfo_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
  1269. }
  1270. type TunnelServer_unregisterTunnel_Params struct{ capnp.Struct }
  1271. // TunnelServer_unregisterTunnel_Params_TypeID is the unique identifier for the type TunnelServer_unregisterTunnel_Params.
  1272. const TunnelServer_unregisterTunnel_Params_TypeID = 0x9b87b390babc2ccf
  1273. func NewTunnelServer_unregisterTunnel_Params(s *capnp.Segment) (TunnelServer_unregisterTunnel_Params, error) {
  1274. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 0})
  1275. return TunnelServer_unregisterTunnel_Params{st}, err
  1276. }
  1277. func NewRootTunnelServer_unregisterTunnel_Params(s *capnp.Segment) (TunnelServer_unregisterTunnel_Params, error) {
  1278. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 0})
  1279. return TunnelServer_unregisterTunnel_Params{st}, err
  1280. }
  1281. func ReadRootTunnelServer_unregisterTunnel_Params(msg *capnp.Message) (TunnelServer_unregisterTunnel_Params, error) {
  1282. root, err := msg.RootPtr()
  1283. return TunnelServer_unregisterTunnel_Params{root.Struct()}, err
  1284. }
  1285. func (s TunnelServer_unregisterTunnel_Params) String() string {
  1286. str, _ := text.Marshal(0x9b87b390babc2ccf, s.Struct)
  1287. return str
  1288. }
  1289. func (s TunnelServer_unregisterTunnel_Params) GracePeriodNanoSec() int64 {
  1290. return int64(s.Struct.Uint64(0))
  1291. }
  1292. func (s TunnelServer_unregisterTunnel_Params) SetGracePeriodNanoSec(v int64) {
  1293. s.Struct.SetUint64(0, uint64(v))
  1294. }
  1295. // TunnelServer_unregisterTunnel_Params_List is a list of TunnelServer_unregisterTunnel_Params.
  1296. type TunnelServer_unregisterTunnel_Params_List struct{ capnp.List }
  1297. // NewTunnelServer_unregisterTunnel_Params creates a new list of TunnelServer_unregisterTunnel_Params.
  1298. func NewTunnelServer_unregisterTunnel_Params_List(s *capnp.Segment, sz int32) (TunnelServer_unregisterTunnel_Params_List, error) {
  1299. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 0}, sz)
  1300. return TunnelServer_unregisterTunnel_Params_List{l}, err
  1301. }
  1302. func (s TunnelServer_unregisterTunnel_Params_List) At(i int) TunnelServer_unregisterTunnel_Params {
  1303. return TunnelServer_unregisterTunnel_Params{s.List.Struct(i)}
  1304. }
  1305. func (s TunnelServer_unregisterTunnel_Params_List) Set(i int, v TunnelServer_unregisterTunnel_Params) error {
  1306. return s.List.SetStruct(i, v.Struct)
  1307. }
  1308. func (s TunnelServer_unregisterTunnel_Params_List) String() string {
  1309. str, _ := text.MarshalList(0x9b87b390babc2ccf, s.List)
  1310. return str
  1311. }
  1312. // TunnelServer_unregisterTunnel_Params_Promise is a wrapper for a TunnelServer_unregisterTunnel_Params promised by a client call.
  1313. type TunnelServer_unregisterTunnel_Params_Promise struct{ *capnp.Pipeline }
  1314. func (p TunnelServer_unregisterTunnel_Params_Promise) Struct() (TunnelServer_unregisterTunnel_Params, error) {
  1315. s, err := p.Pipeline.Struct()
  1316. return TunnelServer_unregisterTunnel_Params{s}, err
  1317. }
  1318. type TunnelServer_unregisterTunnel_Results struct{ capnp.Struct }
  1319. // TunnelServer_unregisterTunnel_Results_TypeID is the unique identifier for the type TunnelServer_unregisterTunnel_Results.
  1320. const TunnelServer_unregisterTunnel_Results_TypeID = 0xa29a916d4ebdd894
  1321. func NewTunnelServer_unregisterTunnel_Results(s *capnp.Segment) (TunnelServer_unregisterTunnel_Results, error) {
  1322. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
  1323. return TunnelServer_unregisterTunnel_Results{st}, err
  1324. }
  1325. func NewRootTunnelServer_unregisterTunnel_Results(s *capnp.Segment) (TunnelServer_unregisterTunnel_Results, error) {
  1326. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
  1327. return TunnelServer_unregisterTunnel_Results{st}, err
  1328. }
  1329. func ReadRootTunnelServer_unregisterTunnel_Results(msg *capnp.Message) (TunnelServer_unregisterTunnel_Results, error) {
  1330. root, err := msg.RootPtr()
  1331. return TunnelServer_unregisterTunnel_Results{root.Struct()}, err
  1332. }
  1333. func (s TunnelServer_unregisterTunnel_Results) String() string {
  1334. str, _ := text.Marshal(0xa29a916d4ebdd894, s.Struct)
  1335. return str
  1336. }
  1337. // TunnelServer_unregisterTunnel_Results_List is a list of TunnelServer_unregisterTunnel_Results.
  1338. type TunnelServer_unregisterTunnel_Results_List struct{ capnp.List }
  1339. // NewTunnelServer_unregisterTunnel_Results creates a new list of TunnelServer_unregisterTunnel_Results.
  1340. func NewTunnelServer_unregisterTunnel_Results_List(s *capnp.Segment, sz int32) (TunnelServer_unregisterTunnel_Results_List, error) {
  1341. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
  1342. return TunnelServer_unregisterTunnel_Results_List{l}, err
  1343. }
  1344. func (s TunnelServer_unregisterTunnel_Results_List) At(i int) TunnelServer_unregisterTunnel_Results {
  1345. return TunnelServer_unregisterTunnel_Results{s.List.Struct(i)}
  1346. }
  1347. func (s TunnelServer_unregisterTunnel_Results_List) Set(i int, v TunnelServer_unregisterTunnel_Results) error {
  1348. return s.List.SetStruct(i, v.Struct)
  1349. }
  1350. func (s TunnelServer_unregisterTunnel_Results_List) String() string {
  1351. str, _ := text.MarshalList(0xa29a916d4ebdd894, s.List)
  1352. return str
  1353. }
  1354. // TunnelServer_unregisterTunnel_Results_Promise is a wrapper for a TunnelServer_unregisterTunnel_Results promised by a client call.
  1355. type TunnelServer_unregisterTunnel_Results_Promise struct{ *capnp.Pipeline }
  1356. func (p TunnelServer_unregisterTunnel_Results_Promise) Struct() (TunnelServer_unregisterTunnel_Results, error) {
  1357. s, err := p.Pipeline.Struct()
  1358. return TunnelServer_unregisterTunnel_Results{s}, err
  1359. }
  1360. type TunnelServer_obsoleteDeclarativeTunnelConnect_Params struct{ capnp.Struct }
  1361. // TunnelServer_obsoleteDeclarativeTunnelConnect_Params_TypeID is the unique identifier for the type TunnelServer_obsoleteDeclarativeTunnelConnect_Params.
  1362. const TunnelServer_obsoleteDeclarativeTunnelConnect_Params_TypeID = 0xa766b24d4fe5da35
  1363. func NewTunnelServer_obsoleteDeclarativeTunnelConnect_Params(s *capnp.Segment) (TunnelServer_obsoleteDeclarativeTunnelConnect_Params, error) {
  1364. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
  1365. return TunnelServer_obsoleteDeclarativeTunnelConnect_Params{st}, err
  1366. }
  1367. func NewRootTunnelServer_obsoleteDeclarativeTunnelConnect_Params(s *capnp.Segment) (TunnelServer_obsoleteDeclarativeTunnelConnect_Params, error) {
  1368. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
  1369. return TunnelServer_obsoleteDeclarativeTunnelConnect_Params{st}, err
  1370. }
  1371. func ReadRootTunnelServer_obsoleteDeclarativeTunnelConnect_Params(msg *capnp.Message) (TunnelServer_obsoleteDeclarativeTunnelConnect_Params, error) {
  1372. root, err := msg.RootPtr()
  1373. return TunnelServer_obsoleteDeclarativeTunnelConnect_Params{root.Struct()}, err
  1374. }
  1375. func (s TunnelServer_obsoleteDeclarativeTunnelConnect_Params) String() string {
  1376. str, _ := text.Marshal(0xa766b24d4fe5da35, s.Struct)
  1377. return str
  1378. }
  1379. // TunnelServer_obsoleteDeclarativeTunnelConnect_Params_List is a list of TunnelServer_obsoleteDeclarativeTunnelConnect_Params.
  1380. type TunnelServer_obsoleteDeclarativeTunnelConnect_Params_List struct{ capnp.List }
  1381. // NewTunnelServer_obsoleteDeclarativeTunnelConnect_Params creates a new list of TunnelServer_obsoleteDeclarativeTunnelConnect_Params.
  1382. func NewTunnelServer_obsoleteDeclarativeTunnelConnect_Params_List(s *capnp.Segment, sz int32) (TunnelServer_obsoleteDeclarativeTunnelConnect_Params_List, error) {
  1383. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
  1384. return TunnelServer_obsoleteDeclarativeTunnelConnect_Params_List{l}, err
  1385. }
  1386. func (s TunnelServer_obsoleteDeclarativeTunnelConnect_Params_List) At(i int) TunnelServer_obsoleteDeclarativeTunnelConnect_Params {
  1387. return TunnelServer_obsoleteDeclarativeTunnelConnect_Params{s.List.Struct(i)}
  1388. }
  1389. func (s TunnelServer_obsoleteDeclarativeTunnelConnect_Params_List) Set(i int, v TunnelServer_obsoleteDeclarativeTunnelConnect_Params) error {
  1390. return s.List.SetStruct(i, v.Struct)
  1391. }
  1392. func (s TunnelServer_obsoleteDeclarativeTunnelConnect_Params_List) String() string {
  1393. str, _ := text.MarshalList(0xa766b24d4fe5da35, s.List)
  1394. return str
  1395. }
  1396. // TunnelServer_obsoleteDeclarativeTunnelConnect_Params_Promise is a wrapper for a TunnelServer_obsoleteDeclarativeTunnelConnect_Params promised by a client call.
  1397. type TunnelServer_obsoleteDeclarativeTunnelConnect_Params_Promise struct{ *capnp.Pipeline }
  1398. func (p TunnelServer_obsoleteDeclarativeTunnelConnect_Params_Promise) Struct() (TunnelServer_obsoleteDeclarativeTunnelConnect_Params, error) {
  1399. s, err := p.Pipeline.Struct()
  1400. return TunnelServer_obsoleteDeclarativeTunnelConnect_Params{s}, err
  1401. }
  1402. type TunnelServer_obsoleteDeclarativeTunnelConnect_Results struct{ capnp.Struct }
  1403. // TunnelServer_obsoleteDeclarativeTunnelConnect_Results_TypeID is the unique identifier for the type TunnelServer_obsoleteDeclarativeTunnelConnect_Results.
  1404. const TunnelServer_obsoleteDeclarativeTunnelConnect_Results_TypeID = 0xfeac5c8f4899ef7c
  1405. func NewTunnelServer_obsoleteDeclarativeTunnelConnect_Results(s *capnp.Segment) (TunnelServer_obsoleteDeclarativeTunnelConnect_Results, error) {
  1406. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
  1407. return TunnelServer_obsoleteDeclarativeTunnelConnect_Results{st}, err
  1408. }
  1409. func NewRootTunnelServer_obsoleteDeclarativeTunnelConnect_Results(s *capnp.Segment) (TunnelServer_obsoleteDeclarativeTunnelConnect_Results, error) {
  1410. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
  1411. return TunnelServer_obsoleteDeclarativeTunnelConnect_Results{st}, err
  1412. }
  1413. func ReadRootTunnelServer_obsoleteDeclarativeTunnelConnect_Results(msg *capnp.Message) (TunnelServer_obsoleteDeclarativeTunnelConnect_Results, error) {
  1414. root, err := msg.RootPtr()
  1415. return TunnelServer_obsoleteDeclarativeTunnelConnect_Results{root.Struct()}, err
  1416. }
  1417. func (s TunnelServer_obsoleteDeclarativeTunnelConnect_Results) String() string {
  1418. str, _ := text.Marshal(0xfeac5c8f4899ef7c, s.Struct)
  1419. return str
  1420. }
  1421. // TunnelServer_obsoleteDeclarativeTunnelConnect_Results_List is a list of TunnelServer_obsoleteDeclarativeTunnelConnect_Results.
  1422. type TunnelServer_obsoleteDeclarativeTunnelConnect_Results_List struct{ capnp.List }
  1423. // NewTunnelServer_obsoleteDeclarativeTunnelConnect_Results creates a new list of TunnelServer_obsoleteDeclarativeTunnelConnect_Results.
  1424. func NewTunnelServer_obsoleteDeclarativeTunnelConnect_Results_List(s *capnp.Segment, sz int32) (TunnelServer_obsoleteDeclarativeTunnelConnect_Results_List, error) {
  1425. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
  1426. return TunnelServer_obsoleteDeclarativeTunnelConnect_Results_List{l}, err
  1427. }
  1428. func (s TunnelServer_obsoleteDeclarativeTunnelConnect_Results_List) At(i int) TunnelServer_obsoleteDeclarativeTunnelConnect_Results {
  1429. return TunnelServer_obsoleteDeclarativeTunnelConnect_Results{s.List.Struct(i)}
  1430. }
  1431. func (s TunnelServer_obsoleteDeclarativeTunnelConnect_Results_List) Set(i int, v TunnelServer_obsoleteDeclarativeTunnelConnect_Results) error {
  1432. return s.List.SetStruct(i, v.Struct)
  1433. }
  1434. func (s TunnelServer_obsoleteDeclarativeTunnelConnect_Results_List) String() string {
  1435. str, _ := text.MarshalList(0xfeac5c8f4899ef7c, s.List)
  1436. return str
  1437. }
  1438. // TunnelServer_obsoleteDeclarativeTunnelConnect_Results_Promise is a wrapper for a TunnelServer_obsoleteDeclarativeTunnelConnect_Results promised by a client call.
  1439. type TunnelServer_obsoleteDeclarativeTunnelConnect_Results_Promise struct{ *capnp.Pipeline }
  1440. func (p TunnelServer_obsoleteDeclarativeTunnelConnect_Results_Promise) Struct() (TunnelServer_obsoleteDeclarativeTunnelConnect_Results, error) {
  1441. s, err := p.Pipeline.Struct()
  1442. return TunnelServer_obsoleteDeclarativeTunnelConnect_Results{s}, err
  1443. }
  1444. type TunnelServer_authenticate_Params struct{ capnp.Struct }
  1445. // TunnelServer_authenticate_Params_TypeID is the unique identifier for the type TunnelServer_authenticate_Params.
  1446. const TunnelServer_authenticate_Params_TypeID = 0x85c8cea1ab1894f3
  1447. func NewTunnelServer_authenticate_Params(s *capnp.Segment) (TunnelServer_authenticate_Params, error) {
  1448. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3})
  1449. return TunnelServer_authenticate_Params{st}, err
  1450. }
  1451. func NewRootTunnelServer_authenticate_Params(s *capnp.Segment) (TunnelServer_authenticate_Params, error) {
  1452. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3})
  1453. return TunnelServer_authenticate_Params{st}, err
  1454. }
  1455. func ReadRootTunnelServer_authenticate_Params(msg *capnp.Message) (TunnelServer_authenticate_Params, error) {
  1456. root, err := msg.RootPtr()
  1457. return TunnelServer_authenticate_Params{root.Struct()}, err
  1458. }
  1459. func (s TunnelServer_authenticate_Params) String() string {
  1460. str, _ := text.Marshal(0x85c8cea1ab1894f3, s.Struct)
  1461. return str
  1462. }
  1463. func (s TunnelServer_authenticate_Params) OriginCert() ([]byte, error) {
  1464. p, err := s.Struct.Ptr(0)
  1465. return []byte(p.Data()), err
  1466. }
  1467. func (s TunnelServer_authenticate_Params) HasOriginCert() bool {
  1468. p, err := s.Struct.Ptr(0)
  1469. return p.IsValid() || err != nil
  1470. }
  1471. func (s TunnelServer_authenticate_Params) SetOriginCert(v []byte) error {
  1472. return s.Struct.SetData(0, v)
  1473. }
  1474. func (s TunnelServer_authenticate_Params) Hostname() (string, error) {
  1475. p, err := s.Struct.Ptr(1)
  1476. return p.Text(), err
  1477. }
  1478. func (s TunnelServer_authenticate_Params) HasHostname() bool {
  1479. p, err := s.Struct.Ptr(1)
  1480. return p.IsValid() || err != nil
  1481. }
  1482. func (s TunnelServer_authenticate_Params) HostnameBytes() ([]byte, error) {
  1483. p, err := s.Struct.Ptr(1)
  1484. return p.TextBytes(), err
  1485. }
  1486. func (s TunnelServer_authenticate_Params) SetHostname(v string) error {
  1487. return s.Struct.SetText(1, v)
  1488. }
  1489. func (s TunnelServer_authenticate_Params) Options() (RegistrationOptions, error) {
  1490. p, err := s.Struct.Ptr(2)
  1491. return RegistrationOptions{Struct: p.Struct()}, err
  1492. }
  1493. func (s TunnelServer_authenticate_Params) HasOptions() bool {
  1494. p, err := s.Struct.Ptr(2)
  1495. return p.IsValid() || err != nil
  1496. }
  1497. func (s TunnelServer_authenticate_Params) SetOptions(v RegistrationOptions) error {
  1498. return s.Struct.SetPtr(2, v.Struct.ToPtr())
  1499. }
  1500. // NewOptions sets the options field to a newly
  1501. // allocated RegistrationOptions struct, preferring placement in s's segment.
  1502. func (s TunnelServer_authenticate_Params) NewOptions() (RegistrationOptions, error) {
  1503. ss, err := NewRegistrationOptions(s.Struct.Segment())
  1504. if err != nil {
  1505. return RegistrationOptions{}, err
  1506. }
  1507. err = s.Struct.SetPtr(2, ss.Struct.ToPtr())
  1508. return ss, err
  1509. }
  1510. // TunnelServer_authenticate_Params_List is a list of TunnelServer_authenticate_Params.
  1511. type TunnelServer_authenticate_Params_List struct{ capnp.List }
  1512. // NewTunnelServer_authenticate_Params creates a new list of TunnelServer_authenticate_Params.
  1513. func NewTunnelServer_authenticate_Params_List(s *capnp.Segment, sz int32) (TunnelServer_authenticate_Params_List, error) {
  1514. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3}, sz)
  1515. return TunnelServer_authenticate_Params_List{l}, err
  1516. }
  1517. func (s TunnelServer_authenticate_Params_List) At(i int) TunnelServer_authenticate_Params {
  1518. return TunnelServer_authenticate_Params{s.List.Struct(i)}
  1519. }
  1520. func (s TunnelServer_authenticate_Params_List) Set(i int, v TunnelServer_authenticate_Params) error {
  1521. return s.List.SetStruct(i, v.Struct)
  1522. }
  1523. func (s TunnelServer_authenticate_Params_List) String() string {
  1524. str, _ := text.MarshalList(0x85c8cea1ab1894f3, s.List)
  1525. return str
  1526. }
  1527. // TunnelServer_authenticate_Params_Promise is a wrapper for a TunnelServer_authenticate_Params promised by a client call.
  1528. type TunnelServer_authenticate_Params_Promise struct{ *capnp.Pipeline }
  1529. func (p TunnelServer_authenticate_Params_Promise) Struct() (TunnelServer_authenticate_Params, error) {
  1530. s, err := p.Pipeline.Struct()
  1531. return TunnelServer_authenticate_Params{s}, err
  1532. }
  1533. func (p TunnelServer_authenticate_Params_Promise) Options() RegistrationOptions_Promise {
  1534. return RegistrationOptions_Promise{Pipeline: p.Pipeline.GetPipeline(2)}
  1535. }
  1536. type TunnelServer_authenticate_Results struct{ capnp.Struct }
  1537. // TunnelServer_authenticate_Results_TypeID is the unique identifier for the type TunnelServer_authenticate_Results.
  1538. const TunnelServer_authenticate_Results_TypeID = 0xfc5edf80e39c0796
  1539. func NewTunnelServer_authenticate_Results(s *capnp.Segment) (TunnelServer_authenticate_Results, error) {
  1540. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
  1541. return TunnelServer_authenticate_Results{st}, err
  1542. }
  1543. func NewRootTunnelServer_authenticate_Results(s *capnp.Segment) (TunnelServer_authenticate_Results, error) {
  1544. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
  1545. return TunnelServer_authenticate_Results{st}, err
  1546. }
  1547. func ReadRootTunnelServer_authenticate_Results(msg *capnp.Message) (TunnelServer_authenticate_Results, error) {
  1548. root, err := msg.RootPtr()
  1549. return TunnelServer_authenticate_Results{root.Struct()}, err
  1550. }
  1551. func (s TunnelServer_authenticate_Results) String() string {
  1552. str, _ := text.Marshal(0xfc5edf80e39c0796, s.Struct)
  1553. return str
  1554. }
  1555. func (s TunnelServer_authenticate_Results) Result() (AuthenticateResponse, error) {
  1556. p, err := s.Struct.Ptr(0)
  1557. return AuthenticateResponse{Struct: p.Struct()}, err
  1558. }
  1559. func (s TunnelServer_authenticate_Results) HasResult() bool {
  1560. p, err := s.Struct.Ptr(0)
  1561. return p.IsValid() || err != nil
  1562. }
  1563. func (s TunnelServer_authenticate_Results) SetResult(v AuthenticateResponse) error {
  1564. return s.Struct.SetPtr(0, v.Struct.ToPtr())
  1565. }
  1566. // NewResult sets the result field to a newly
  1567. // allocated AuthenticateResponse struct, preferring placement in s's segment.
  1568. func (s TunnelServer_authenticate_Results) NewResult() (AuthenticateResponse, error) {
  1569. ss, err := NewAuthenticateResponse(s.Struct.Segment())
  1570. if err != nil {
  1571. return AuthenticateResponse{}, err
  1572. }
  1573. err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
  1574. return ss, err
  1575. }
  1576. // TunnelServer_authenticate_Results_List is a list of TunnelServer_authenticate_Results.
  1577. type TunnelServer_authenticate_Results_List struct{ capnp.List }
  1578. // NewTunnelServer_authenticate_Results creates a new list of TunnelServer_authenticate_Results.
  1579. func NewTunnelServer_authenticate_Results_List(s *capnp.Segment, sz int32) (TunnelServer_authenticate_Results_List, error) {
  1580. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
  1581. return TunnelServer_authenticate_Results_List{l}, err
  1582. }
  1583. func (s TunnelServer_authenticate_Results_List) At(i int) TunnelServer_authenticate_Results {
  1584. return TunnelServer_authenticate_Results{s.List.Struct(i)}
  1585. }
  1586. func (s TunnelServer_authenticate_Results_List) Set(i int, v TunnelServer_authenticate_Results) error {
  1587. return s.List.SetStruct(i, v.Struct)
  1588. }
  1589. func (s TunnelServer_authenticate_Results_List) String() string {
  1590. str, _ := text.MarshalList(0xfc5edf80e39c0796, s.List)
  1591. return str
  1592. }
  1593. // TunnelServer_authenticate_Results_Promise is a wrapper for a TunnelServer_authenticate_Results promised by a client call.
  1594. type TunnelServer_authenticate_Results_Promise struct{ *capnp.Pipeline }
  1595. func (p TunnelServer_authenticate_Results_Promise) Struct() (TunnelServer_authenticate_Results, error) {
  1596. s, err := p.Pipeline.Struct()
  1597. return TunnelServer_authenticate_Results{s}, err
  1598. }
  1599. func (p TunnelServer_authenticate_Results_Promise) Result() AuthenticateResponse_Promise {
  1600. return AuthenticateResponse_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
  1601. }
  1602. type TunnelServer_reconnectTunnel_Params struct{ capnp.Struct }
  1603. // TunnelServer_reconnectTunnel_Params_TypeID is the unique identifier for the type TunnelServer_reconnectTunnel_Params.
  1604. const TunnelServer_reconnectTunnel_Params_TypeID = 0xa353a3556df74984
  1605. func NewTunnelServer_reconnectTunnel_Params(s *capnp.Segment) (TunnelServer_reconnectTunnel_Params, error) {
  1606. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 5})
  1607. return TunnelServer_reconnectTunnel_Params{st}, err
  1608. }
  1609. func NewRootTunnelServer_reconnectTunnel_Params(s *capnp.Segment) (TunnelServer_reconnectTunnel_Params, error) {
  1610. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 5})
  1611. return TunnelServer_reconnectTunnel_Params{st}, err
  1612. }
  1613. func ReadRootTunnelServer_reconnectTunnel_Params(msg *capnp.Message) (TunnelServer_reconnectTunnel_Params, error) {
  1614. root, err := msg.RootPtr()
  1615. return TunnelServer_reconnectTunnel_Params{root.Struct()}, err
  1616. }
  1617. func (s TunnelServer_reconnectTunnel_Params) String() string {
  1618. str, _ := text.Marshal(0xa353a3556df74984, s.Struct)
  1619. return str
  1620. }
  1621. func (s TunnelServer_reconnectTunnel_Params) Jwt() ([]byte, error) {
  1622. p, err := s.Struct.Ptr(0)
  1623. return []byte(p.Data()), err
  1624. }
  1625. func (s TunnelServer_reconnectTunnel_Params) HasJwt() bool {
  1626. p, err := s.Struct.Ptr(0)
  1627. return p.IsValid() || err != nil
  1628. }
  1629. func (s TunnelServer_reconnectTunnel_Params) SetJwt(v []byte) error {
  1630. return s.Struct.SetData(0, v)
  1631. }
  1632. func (s TunnelServer_reconnectTunnel_Params) EventDigest() ([]byte, error) {
  1633. p, err := s.Struct.Ptr(1)
  1634. return []byte(p.Data()), err
  1635. }
  1636. func (s TunnelServer_reconnectTunnel_Params) HasEventDigest() bool {
  1637. p, err := s.Struct.Ptr(1)
  1638. return p.IsValid() || err != nil
  1639. }
  1640. func (s TunnelServer_reconnectTunnel_Params) SetEventDigest(v []byte) error {
  1641. return s.Struct.SetData(1, v)
  1642. }
  1643. func (s TunnelServer_reconnectTunnel_Params) ConnDigest() ([]byte, error) {
  1644. p, err := s.Struct.Ptr(2)
  1645. return []byte(p.Data()), err
  1646. }
  1647. func (s TunnelServer_reconnectTunnel_Params) HasConnDigest() bool {
  1648. p, err := s.Struct.Ptr(2)
  1649. return p.IsValid() || err != nil
  1650. }
  1651. func (s TunnelServer_reconnectTunnel_Params) SetConnDigest(v []byte) error {
  1652. return s.Struct.SetData(2, v)
  1653. }
  1654. func (s TunnelServer_reconnectTunnel_Params) Hostname() (string, error) {
  1655. p, err := s.Struct.Ptr(3)
  1656. return p.Text(), err
  1657. }
  1658. func (s TunnelServer_reconnectTunnel_Params) HasHostname() bool {
  1659. p, err := s.Struct.Ptr(3)
  1660. return p.IsValid() || err != nil
  1661. }
  1662. func (s TunnelServer_reconnectTunnel_Params) HostnameBytes() ([]byte, error) {
  1663. p, err := s.Struct.Ptr(3)
  1664. return p.TextBytes(), err
  1665. }
  1666. func (s TunnelServer_reconnectTunnel_Params) SetHostname(v string) error {
  1667. return s.Struct.SetText(3, v)
  1668. }
  1669. func (s TunnelServer_reconnectTunnel_Params) Options() (RegistrationOptions, error) {
  1670. p, err := s.Struct.Ptr(4)
  1671. return RegistrationOptions{Struct: p.Struct()}, err
  1672. }
  1673. func (s TunnelServer_reconnectTunnel_Params) HasOptions() bool {
  1674. p, err := s.Struct.Ptr(4)
  1675. return p.IsValid() || err != nil
  1676. }
  1677. func (s TunnelServer_reconnectTunnel_Params) SetOptions(v RegistrationOptions) error {
  1678. return s.Struct.SetPtr(4, v.Struct.ToPtr())
  1679. }
  1680. // NewOptions sets the options field to a newly
  1681. // allocated RegistrationOptions struct, preferring placement in s's segment.
  1682. func (s TunnelServer_reconnectTunnel_Params) NewOptions() (RegistrationOptions, error) {
  1683. ss, err := NewRegistrationOptions(s.Struct.Segment())
  1684. if err != nil {
  1685. return RegistrationOptions{}, err
  1686. }
  1687. err = s.Struct.SetPtr(4, ss.Struct.ToPtr())
  1688. return ss, err
  1689. }
  1690. // TunnelServer_reconnectTunnel_Params_List is a list of TunnelServer_reconnectTunnel_Params.
  1691. type TunnelServer_reconnectTunnel_Params_List struct{ capnp.List }
  1692. // NewTunnelServer_reconnectTunnel_Params creates a new list of TunnelServer_reconnectTunnel_Params.
  1693. func NewTunnelServer_reconnectTunnel_Params_List(s *capnp.Segment, sz int32) (TunnelServer_reconnectTunnel_Params_List, error) {
  1694. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 5}, sz)
  1695. return TunnelServer_reconnectTunnel_Params_List{l}, err
  1696. }
  1697. func (s TunnelServer_reconnectTunnel_Params_List) At(i int) TunnelServer_reconnectTunnel_Params {
  1698. return TunnelServer_reconnectTunnel_Params{s.List.Struct(i)}
  1699. }
  1700. func (s TunnelServer_reconnectTunnel_Params_List) Set(i int, v TunnelServer_reconnectTunnel_Params) error {
  1701. return s.List.SetStruct(i, v.Struct)
  1702. }
  1703. func (s TunnelServer_reconnectTunnel_Params_List) String() string {
  1704. str, _ := text.MarshalList(0xa353a3556df74984, s.List)
  1705. return str
  1706. }
  1707. // TunnelServer_reconnectTunnel_Params_Promise is a wrapper for a TunnelServer_reconnectTunnel_Params promised by a client call.
  1708. type TunnelServer_reconnectTunnel_Params_Promise struct{ *capnp.Pipeline }
  1709. func (p TunnelServer_reconnectTunnel_Params_Promise) Struct() (TunnelServer_reconnectTunnel_Params, error) {
  1710. s, err := p.Pipeline.Struct()
  1711. return TunnelServer_reconnectTunnel_Params{s}, err
  1712. }
  1713. func (p TunnelServer_reconnectTunnel_Params_Promise) Options() RegistrationOptions_Promise {
  1714. return RegistrationOptions_Promise{Pipeline: p.Pipeline.GetPipeline(4)}
  1715. }
  1716. type TunnelServer_reconnectTunnel_Results struct{ capnp.Struct }
  1717. // TunnelServer_reconnectTunnel_Results_TypeID is the unique identifier for the type TunnelServer_reconnectTunnel_Results.
  1718. const TunnelServer_reconnectTunnel_Results_TypeID = 0xd4d18de97bb12de3
  1719. func NewTunnelServer_reconnectTunnel_Results(s *capnp.Segment) (TunnelServer_reconnectTunnel_Results, error) {
  1720. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
  1721. return TunnelServer_reconnectTunnel_Results{st}, err
  1722. }
  1723. func NewRootTunnelServer_reconnectTunnel_Results(s *capnp.Segment) (TunnelServer_reconnectTunnel_Results, error) {
  1724. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
  1725. return TunnelServer_reconnectTunnel_Results{st}, err
  1726. }
  1727. func ReadRootTunnelServer_reconnectTunnel_Results(msg *capnp.Message) (TunnelServer_reconnectTunnel_Results, error) {
  1728. root, err := msg.RootPtr()
  1729. return TunnelServer_reconnectTunnel_Results{root.Struct()}, err
  1730. }
  1731. func (s TunnelServer_reconnectTunnel_Results) String() string {
  1732. str, _ := text.Marshal(0xd4d18de97bb12de3, s.Struct)
  1733. return str
  1734. }
  1735. func (s TunnelServer_reconnectTunnel_Results) Result() (TunnelRegistration, error) {
  1736. p, err := s.Struct.Ptr(0)
  1737. return TunnelRegistration{Struct: p.Struct()}, err
  1738. }
  1739. func (s TunnelServer_reconnectTunnel_Results) HasResult() bool {
  1740. p, err := s.Struct.Ptr(0)
  1741. return p.IsValid() || err != nil
  1742. }
  1743. func (s TunnelServer_reconnectTunnel_Results) SetResult(v TunnelRegistration) error {
  1744. return s.Struct.SetPtr(0, v.Struct.ToPtr())
  1745. }
  1746. // NewResult sets the result field to a newly
  1747. // allocated TunnelRegistration struct, preferring placement in s's segment.
  1748. func (s TunnelServer_reconnectTunnel_Results) NewResult() (TunnelRegistration, error) {
  1749. ss, err := NewTunnelRegistration(s.Struct.Segment())
  1750. if err != nil {
  1751. return TunnelRegistration{}, err
  1752. }
  1753. err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
  1754. return ss, err
  1755. }
  1756. // TunnelServer_reconnectTunnel_Results_List is a list of TunnelServer_reconnectTunnel_Results.
  1757. type TunnelServer_reconnectTunnel_Results_List struct{ capnp.List }
  1758. // NewTunnelServer_reconnectTunnel_Results creates a new list of TunnelServer_reconnectTunnel_Results.
  1759. func NewTunnelServer_reconnectTunnel_Results_List(s *capnp.Segment, sz int32) (TunnelServer_reconnectTunnel_Results_List, error) {
  1760. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
  1761. return TunnelServer_reconnectTunnel_Results_List{l}, err
  1762. }
  1763. func (s TunnelServer_reconnectTunnel_Results_List) At(i int) TunnelServer_reconnectTunnel_Results {
  1764. return TunnelServer_reconnectTunnel_Results{s.List.Struct(i)}
  1765. }
  1766. func (s TunnelServer_reconnectTunnel_Results_List) Set(i int, v TunnelServer_reconnectTunnel_Results) error {
  1767. return s.List.SetStruct(i, v.Struct)
  1768. }
  1769. func (s TunnelServer_reconnectTunnel_Results_List) String() string {
  1770. str, _ := text.MarshalList(0xd4d18de97bb12de3, s.List)
  1771. return str
  1772. }
  1773. // TunnelServer_reconnectTunnel_Results_Promise is a wrapper for a TunnelServer_reconnectTunnel_Results promised by a client call.
  1774. type TunnelServer_reconnectTunnel_Results_Promise struct{ *capnp.Pipeline }
  1775. func (p TunnelServer_reconnectTunnel_Results_Promise) Struct() (TunnelServer_reconnectTunnel_Results, error) {
  1776. s, err := p.Pipeline.Struct()
  1777. return TunnelServer_reconnectTunnel_Results{s}, err
  1778. }
  1779. func (p TunnelServer_reconnectTunnel_Results_Promise) Result() TunnelRegistration_Promise {
  1780. return TunnelRegistration_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
  1781. }
  1782. type Tag struct{ capnp.Struct }
  1783. // Tag_TypeID is the unique identifier for the type Tag.
  1784. const Tag_TypeID = 0xcbd96442ae3bb01a
  1785. func NewTag(s *capnp.Segment) (Tag, error) {
  1786. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2})
  1787. return Tag{st}, err
  1788. }
  1789. func NewRootTag(s *capnp.Segment) (Tag, error) {
  1790. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2})
  1791. return Tag{st}, err
  1792. }
  1793. func ReadRootTag(msg *capnp.Message) (Tag, error) {
  1794. root, err := msg.RootPtr()
  1795. return Tag{root.Struct()}, err
  1796. }
  1797. func (s Tag) String() string {
  1798. str, _ := text.Marshal(0xcbd96442ae3bb01a, s.Struct)
  1799. return str
  1800. }
  1801. func (s Tag) Name() (string, error) {
  1802. p, err := s.Struct.Ptr(0)
  1803. return p.Text(), err
  1804. }
  1805. func (s Tag) HasName() bool {
  1806. p, err := s.Struct.Ptr(0)
  1807. return p.IsValid() || err != nil
  1808. }
  1809. func (s Tag) NameBytes() ([]byte, error) {
  1810. p, err := s.Struct.Ptr(0)
  1811. return p.TextBytes(), err
  1812. }
  1813. func (s Tag) SetName(v string) error {
  1814. return s.Struct.SetText(0, v)
  1815. }
  1816. func (s Tag) Value() (string, error) {
  1817. p, err := s.Struct.Ptr(1)
  1818. return p.Text(), err
  1819. }
  1820. func (s Tag) HasValue() bool {
  1821. p, err := s.Struct.Ptr(1)
  1822. return p.IsValid() || err != nil
  1823. }
  1824. func (s Tag) ValueBytes() ([]byte, error) {
  1825. p, err := s.Struct.Ptr(1)
  1826. return p.TextBytes(), err
  1827. }
  1828. func (s Tag) SetValue(v string) error {
  1829. return s.Struct.SetText(1, v)
  1830. }
  1831. // Tag_List is a list of Tag.
  1832. type Tag_List struct{ capnp.List }
  1833. // NewTag creates a new list of Tag.
  1834. func NewTag_List(s *capnp.Segment, sz int32) (Tag_List, error) {
  1835. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2}, sz)
  1836. return Tag_List{l}, err
  1837. }
  1838. func (s Tag_List) At(i int) Tag { return Tag{s.List.Struct(i)} }
  1839. func (s Tag_List) Set(i int, v Tag) error { return s.List.SetStruct(i, v.Struct) }
  1840. func (s Tag_List) String() string {
  1841. str, _ := text.MarshalList(0xcbd96442ae3bb01a, s.List)
  1842. return str
  1843. }
  1844. // Tag_Promise is a wrapper for a Tag promised by a client call.
  1845. type Tag_Promise struct{ *capnp.Pipeline }
  1846. func (p Tag_Promise) Struct() (Tag, error) {
  1847. s, err := p.Pipeline.Struct()
  1848. return Tag{s}, err
  1849. }
  1850. type ClientInfo struct{ capnp.Struct }
  1851. // ClientInfo_TypeID is the unique identifier for the type ClientInfo.
  1852. const ClientInfo_TypeID = 0x83ced0145b2f114b
  1853. func NewClientInfo(s *capnp.Segment) (ClientInfo, error) {
  1854. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 4})
  1855. return ClientInfo{st}, err
  1856. }
  1857. func NewRootClientInfo(s *capnp.Segment) (ClientInfo, error) {
  1858. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 4})
  1859. return ClientInfo{st}, err
  1860. }
  1861. func ReadRootClientInfo(msg *capnp.Message) (ClientInfo, error) {
  1862. root, err := msg.RootPtr()
  1863. return ClientInfo{root.Struct()}, err
  1864. }
  1865. func (s ClientInfo) String() string {
  1866. str, _ := text.Marshal(0x83ced0145b2f114b, s.Struct)
  1867. return str
  1868. }
  1869. func (s ClientInfo) ClientId() ([]byte, error) {
  1870. p, err := s.Struct.Ptr(0)
  1871. return []byte(p.Data()), err
  1872. }
  1873. func (s ClientInfo) HasClientId() bool {
  1874. p, err := s.Struct.Ptr(0)
  1875. return p.IsValid() || err != nil
  1876. }
  1877. func (s ClientInfo) SetClientId(v []byte) error {
  1878. return s.Struct.SetData(0, v)
  1879. }
  1880. func (s ClientInfo) Features() (capnp.TextList, error) {
  1881. p, err := s.Struct.Ptr(1)
  1882. return capnp.TextList{List: p.List()}, err
  1883. }
  1884. func (s ClientInfo) HasFeatures() bool {
  1885. p, err := s.Struct.Ptr(1)
  1886. return p.IsValid() || err != nil
  1887. }
  1888. func (s ClientInfo) SetFeatures(v capnp.TextList) error {
  1889. return s.Struct.SetPtr(1, v.List.ToPtr())
  1890. }
  1891. // NewFeatures sets the features field to a newly
  1892. // allocated capnp.TextList, preferring placement in s's segment.
  1893. func (s ClientInfo) NewFeatures(n int32) (capnp.TextList, error) {
  1894. l, err := capnp.NewTextList(s.Struct.Segment(), n)
  1895. if err != nil {
  1896. return capnp.TextList{}, err
  1897. }
  1898. err = s.Struct.SetPtr(1, l.List.ToPtr())
  1899. return l, err
  1900. }
  1901. func (s ClientInfo) Version() (string, error) {
  1902. p, err := s.Struct.Ptr(2)
  1903. return p.Text(), err
  1904. }
  1905. func (s ClientInfo) HasVersion() bool {
  1906. p, err := s.Struct.Ptr(2)
  1907. return p.IsValid() || err != nil
  1908. }
  1909. func (s ClientInfo) VersionBytes() ([]byte, error) {
  1910. p, err := s.Struct.Ptr(2)
  1911. return p.TextBytes(), err
  1912. }
  1913. func (s ClientInfo) SetVersion(v string) error {
  1914. return s.Struct.SetText(2, v)
  1915. }
  1916. func (s ClientInfo) Arch() (string, error) {
  1917. p, err := s.Struct.Ptr(3)
  1918. return p.Text(), err
  1919. }
  1920. func (s ClientInfo) HasArch() bool {
  1921. p, err := s.Struct.Ptr(3)
  1922. return p.IsValid() || err != nil
  1923. }
  1924. func (s ClientInfo) ArchBytes() ([]byte, error) {
  1925. p, err := s.Struct.Ptr(3)
  1926. return p.TextBytes(), err
  1927. }
  1928. func (s ClientInfo) SetArch(v string) error {
  1929. return s.Struct.SetText(3, v)
  1930. }
  1931. // ClientInfo_List is a list of ClientInfo.
  1932. type ClientInfo_List struct{ capnp.List }
  1933. // NewClientInfo creates a new list of ClientInfo.
  1934. func NewClientInfo_List(s *capnp.Segment, sz int32) (ClientInfo_List, error) {
  1935. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 4}, sz)
  1936. return ClientInfo_List{l}, err
  1937. }
  1938. func (s ClientInfo_List) At(i int) ClientInfo { return ClientInfo{s.List.Struct(i)} }
  1939. func (s ClientInfo_List) Set(i int, v ClientInfo) error { return s.List.SetStruct(i, v.Struct) }
  1940. func (s ClientInfo_List) String() string {
  1941. str, _ := text.MarshalList(0x83ced0145b2f114b, s.List)
  1942. return str
  1943. }
  1944. // ClientInfo_Promise is a wrapper for a ClientInfo promised by a client call.
  1945. type ClientInfo_Promise struct{ *capnp.Pipeline }
  1946. func (p ClientInfo_Promise) Struct() (ClientInfo, error) {
  1947. s, err := p.Pipeline.Struct()
  1948. return ClientInfo{s}, err
  1949. }
  1950. type ConnectionOptions struct{ capnp.Struct }
  1951. // ConnectionOptions_TypeID is the unique identifier for the type ConnectionOptions.
  1952. const ConnectionOptions_TypeID = 0xb4bf9861fe035d04
  1953. func NewConnectionOptions(s *capnp.Segment) (ConnectionOptions, error) {
  1954. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 2})
  1955. return ConnectionOptions{st}, err
  1956. }
  1957. func NewRootConnectionOptions(s *capnp.Segment) (ConnectionOptions, error) {
  1958. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 2})
  1959. return ConnectionOptions{st}, err
  1960. }
  1961. func ReadRootConnectionOptions(msg *capnp.Message) (ConnectionOptions, error) {
  1962. root, err := msg.RootPtr()
  1963. return ConnectionOptions{root.Struct()}, err
  1964. }
  1965. func (s ConnectionOptions) String() string {
  1966. str, _ := text.Marshal(0xb4bf9861fe035d04, s.Struct)
  1967. return str
  1968. }
  1969. func (s ConnectionOptions) Client() (ClientInfo, error) {
  1970. p, err := s.Struct.Ptr(0)
  1971. return ClientInfo{Struct: p.Struct()}, err
  1972. }
  1973. func (s ConnectionOptions) HasClient() bool {
  1974. p, err := s.Struct.Ptr(0)
  1975. return p.IsValid() || err != nil
  1976. }
  1977. func (s ConnectionOptions) SetClient(v ClientInfo) error {
  1978. return s.Struct.SetPtr(0, v.Struct.ToPtr())
  1979. }
  1980. // NewClient sets the client field to a newly
  1981. // allocated ClientInfo struct, preferring placement in s's segment.
  1982. func (s ConnectionOptions) NewClient() (ClientInfo, error) {
  1983. ss, err := NewClientInfo(s.Struct.Segment())
  1984. if err != nil {
  1985. return ClientInfo{}, err
  1986. }
  1987. err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
  1988. return ss, err
  1989. }
  1990. func (s ConnectionOptions) OriginLocalIp() ([]byte, error) {
  1991. p, err := s.Struct.Ptr(1)
  1992. return []byte(p.Data()), err
  1993. }
  1994. func (s ConnectionOptions) HasOriginLocalIp() bool {
  1995. p, err := s.Struct.Ptr(1)
  1996. return p.IsValid() || err != nil
  1997. }
  1998. func (s ConnectionOptions) SetOriginLocalIp(v []byte) error {
  1999. return s.Struct.SetData(1, v)
  2000. }
  2001. func (s ConnectionOptions) ReplaceExisting() bool {
  2002. return s.Struct.Bit(0)
  2003. }
  2004. func (s ConnectionOptions) SetReplaceExisting(v bool) {
  2005. s.Struct.SetBit(0, v)
  2006. }
  2007. func (s ConnectionOptions) CompressionQuality() uint8 {
  2008. return s.Struct.Uint8(1)
  2009. }
  2010. func (s ConnectionOptions) SetCompressionQuality(v uint8) {
  2011. s.Struct.SetUint8(1, v)
  2012. }
  2013. func (s ConnectionOptions) NumPreviousAttempts() uint8 {
  2014. return s.Struct.Uint8(2)
  2015. }
  2016. func (s ConnectionOptions) SetNumPreviousAttempts(v uint8) {
  2017. s.Struct.SetUint8(2, v)
  2018. }
  2019. // ConnectionOptions_List is a list of ConnectionOptions.
  2020. type ConnectionOptions_List struct{ capnp.List }
  2021. // NewConnectionOptions creates a new list of ConnectionOptions.
  2022. func NewConnectionOptions_List(s *capnp.Segment, sz int32) (ConnectionOptions_List, error) {
  2023. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 2}, sz)
  2024. return ConnectionOptions_List{l}, err
  2025. }
  2026. func (s ConnectionOptions_List) At(i int) ConnectionOptions {
  2027. return ConnectionOptions{s.List.Struct(i)}
  2028. }
  2029. func (s ConnectionOptions_List) Set(i int, v ConnectionOptions) error {
  2030. return s.List.SetStruct(i, v.Struct)
  2031. }
  2032. func (s ConnectionOptions_List) String() string {
  2033. str, _ := text.MarshalList(0xb4bf9861fe035d04, s.List)
  2034. return str
  2035. }
  2036. // ConnectionOptions_Promise is a wrapper for a ConnectionOptions promised by a client call.
  2037. type ConnectionOptions_Promise struct{ *capnp.Pipeline }
  2038. func (p ConnectionOptions_Promise) Struct() (ConnectionOptions, error) {
  2039. s, err := p.Pipeline.Struct()
  2040. return ConnectionOptions{s}, err
  2041. }
  2042. func (p ConnectionOptions_Promise) Client() ClientInfo_Promise {
  2043. return ClientInfo_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
  2044. }
  2045. type ConnectionResponse struct{ capnp.Struct }
  2046. type ConnectionResponse_result ConnectionResponse
  2047. type ConnectionResponse_result_Which uint16
  2048. const (
  2049. ConnectionResponse_result_Which_error ConnectionResponse_result_Which = 0
  2050. ConnectionResponse_result_Which_connectionDetails ConnectionResponse_result_Which = 1
  2051. )
  2052. func (w ConnectionResponse_result_Which) String() string {
  2053. const s = "errorconnectionDetails"
  2054. switch w {
  2055. case ConnectionResponse_result_Which_error:
  2056. return s[0:5]
  2057. case ConnectionResponse_result_Which_connectionDetails:
  2058. return s[5:22]
  2059. }
  2060. return "ConnectionResponse_result_Which(" + strconv.FormatUint(uint64(w), 10) + ")"
  2061. }
  2062. // ConnectionResponse_TypeID is the unique identifier for the type ConnectionResponse.
  2063. const ConnectionResponse_TypeID = 0xdbaa9d03d52b62dc
  2064. func NewConnectionResponse(s *capnp.Segment) (ConnectionResponse, error) {
  2065. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 1})
  2066. return ConnectionResponse{st}, err
  2067. }
  2068. func NewRootConnectionResponse(s *capnp.Segment) (ConnectionResponse, error) {
  2069. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 1})
  2070. return ConnectionResponse{st}, err
  2071. }
  2072. func ReadRootConnectionResponse(msg *capnp.Message) (ConnectionResponse, error) {
  2073. root, err := msg.RootPtr()
  2074. return ConnectionResponse{root.Struct()}, err
  2075. }
  2076. func (s ConnectionResponse) String() string {
  2077. str, _ := text.Marshal(0xdbaa9d03d52b62dc, s.Struct)
  2078. return str
  2079. }
  2080. func (s ConnectionResponse) Result() ConnectionResponse_result { return ConnectionResponse_result(s) }
  2081. func (s ConnectionResponse_result) Which() ConnectionResponse_result_Which {
  2082. return ConnectionResponse_result_Which(s.Struct.Uint16(0))
  2083. }
  2084. func (s ConnectionResponse_result) Error() (ConnectionError, error) {
  2085. if s.Struct.Uint16(0) != 0 {
  2086. panic("Which() != error")
  2087. }
  2088. p, err := s.Struct.Ptr(0)
  2089. return ConnectionError{Struct: p.Struct()}, err
  2090. }
  2091. func (s ConnectionResponse_result) HasError() bool {
  2092. if s.Struct.Uint16(0) != 0 {
  2093. return false
  2094. }
  2095. p, err := s.Struct.Ptr(0)
  2096. return p.IsValid() || err != nil
  2097. }
  2098. func (s ConnectionResponse_result) SetError(v ConnectionError) error {
  2099. s.Struct.SetUint16(0, 0)
  2100. return s.Struct.SetPtr(0, v.Struct.ToPtr())
  2101. }
  2102. // NewError sets the error field to a newly
  2103. // allocated ConnectionError struct, preferring placement in s's segment.
  2104. func (s ConnectionResponse_result) NewError() (ConnectionError, error) {
  2105. s.Struct.SetUint16(0, 0)
  2106. ss, err := NewConnectionError(s.Struct.Segment())
  2107. if err != nil {
  2108. return ConnectionError{}, err
  2109. }
  2110. err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
  2111. return ss, err
  2112. }
  2113. func (s ConnectionResponse_result) ConnectionDetails() (ConnectionDetails, error) {
  2114. if s.Struct.Uint16(0) != 1 {
  2115. panic("Which() != connectionDetails")
  2116. }
  2117. p, err := s.Struct.Ptr(0)
  2118. return ConnectionDetails{Struct: p.Struct()}, err
  2119. }
  2120. func (s ConnectionResponse_result) HasConnectionDetails() bool {
  2121. if s.Struct.Uint16(0) != 1 {
  2122. return false
  2123. }
  2124. p, err := s.Struct.Ptr(0)
  2125. return p.IsValid() || err != nil
  2126. }
  2127. func (s ConnectionResponse_result) SetConnectionDetails(v ConnectionDetails) error {
  2128. s.Struct.SetUint16(0, 1)
  2129. return s.Struct.SetPtr(0, v.Struct.ToPtr())
  2130. }
  2131. // NewConnectionDetails sets the connectionDetails field to a newly
  2132. // allocated ConnectionDetails struct, preferring placement in s's segment.
  2133. func (s ConnectionResponse_result) NewConnectionDetails() (ConnectionDetails, error) {
  2134. s.Struct.SetUint16(0, 1)
  2135. ss, err := NewConnectionDetails(s.Struct.Segment())
  2136. if err != nil {
  2137. return ConnectionDetails{}, err
  2138. }
  2139. err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
  2140. return ss, err
  2141. }
  2142. // ConnectionResponse_List is a list of ConnectionResponse.
  2143. type ConnectionResponse_List struct{ capnp.List }
  2144. // NewConnectionResponse creates a new list of ConnectionResponse.
  2145. func NewConnectionResponse_List(s *capnp.Segment, sz int32) (ConnectionResponse_List, error) {
  2146. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 1}, sz)
  2147. return ConnectionResponse_List{l}, err
  2148. }
  2149. func (s ConnectionResponse_List) At(i int) ConnectionResponse {
  2150. return ConnectionResponse{s.List.Struct(i)}
  2151. }
  2152. func (s ConnectionResponse_List) Set(i int, v ConnectionResponse) error {
  2153. return s.List.SetStruct(i, v.Struct)
  2154. }
  2155. func (s ConnectionResponse_List) String() string {
  2156. str, _ := text.MarshalList(0xdbaa9d03d52b62dc, s.List)
  2157. return str
  2158. }
  2159. // ConnectionResponse_Promise is a wrapper for a ConnectionResponse promised by a client call.
  2160. type ConnectionResponse_Promise struct{ *capnp.Pipeline }
  2161. func (p ConnectionResponse_Promise) Struct() (ConnectionResponse, error) {
  2162. s, err := p.Pipeline.Struct()
  2163. return ConnectionResponse{s}, err
  2164. }
  2165. func (p ConnectionResponse_Promise) Result() ConnectionResponse_result_Promise {
  2166. return ConnectionResponse_result_Promise{p.Pipeline}
  2167. }
  2168. // ConnectionResponse_result_Promise is a wrapper for a ConnectionResponse_result promised by a client call.
  2169. type ConnectionResponse_result_Promise struct{ *capnp.Pipeline }
  2170. func (p ConnectionResponse_result_Promise) Struct() (ConnectionResponse_result, error) {
  2171. s, err := p.Pipeline.Struct()
  2172. return ConnectionResponse_result{s}, err
  2173. }
  2174. func (p ConnectionResponse_result_Promise) Error() ConnectionError_Promise {
  2175. return ConnectionError_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
  2176. }
  2177. func (p ConnectionResponse_result_Promise) ConnectionDetails() ConnectionDetails_Promise {
  2178. return ConnectionDetails_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
  2179. }
  2180. type ConnectionError struct{ capnp.Struct }
  2181. // ConnectionError_TypeID is the unique identifier for the type ConnectionError.
  2182. const ConnectionError_TypeID = 0xf5f383d2785edb86
  2183. func NewConnectionError(s *capnp.Segment) (ConnectionError, error) {
  2184. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 16, PointerCount: 1})
  2185. return ConnectionError{st}, err
  2186. }
  2187. func NewRootConnectionError(s *capnp.Segment) (ConnectionError, error) {
  2188. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 16, PointerCount: 1})
  2189. return ConnectionError{st}, err
  2190. }
  2191. func ReadRootConnectionError(msg *capnp.Message) (ConnectionError, error) {
  2192. root, err := msg.RootPtr()
  2193. return ConnectionError{root.Struct()}, err
  2194. }
  2195. func (s ConnectionError) String() string {
  2196. str, _ := text.Marshal(0xf5f383d2785edb86, s.Struct)
  2197. return str
  2198. }
  2199. func (s ConnectionError) Cause() (string, error) {
  2200. p, err := s.Struct.Ptr(0)
  2201. return p.Text(), err
  2202. }
  2203. func (s ConnectionError) HasCause() bool {
  2204. p, err := s.Struct.Ptr(0)
  2205. return p.IsValid() || err != nil
  2206. }
  2207. func (s ConnectionError) CauseBytes() ([]byte, error) {
  2208. p, err := s.Struct.Ptr(0)
  2209. return p.TextBytes(), err
  2210. }
  2211. func (s ConnectionError) SetCause(v string) error {
  2212. return s.Struct.SetText(0, v)
  2213. }
  2214. func (s ConnectionError) RetryAfter() int64 {
  2215. return int64(s.Struct.Uint64(0))
  2216. }
  2217. func (s ConnectionError) SetRetryAfter(v int64) {
  2218. s.Struct.SetUint64(0, uint64(v))
  2219. }
  2220. func (s ConnectionError) ShouldRetry() bool {
  2221. return s.Struct.Bit(64)
  2222. }
  2223. func (s ConnectionError) SetShouldRetry(v bool) {
  2224. s.Struct.SetBit(64, v)
  2225. }
  2226. // ConnectionError_List is a list of ConnectionError.
  2227. type ConnectionError_List struct{ capnp.List }
  2228. // NewConnectionError creates a new list of ConnectionError.
  2229. func NewConnectionError_List(s *capnp.Segment, sz int32) (ConnectionError_List, error) {
  2230. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 16, PointerCount: 1}, sz)
  2231. return ConnectionError_List{l}, err
  2232. }
  2233. func (s ConnectionError_List) At(i int) ConnectionError { return ConnectionError{s.List.Struct(i)} }
  2234. func (s ConnectionError_List) Set(i int, v ConnectionError) error {
  2235. return s.List.SetStruct(i, v.Struct)
  2236. }
  2237. func (s ConnectionError_List) String() string {
  2238. str, _ := text.MarshalList(0xf5f383d2785edb86, s.List)
  2239. return str
  2240. }
  2241. // ConnectionError_Promise is a wrapper for a ConnectionError promised by a client call.
  2242. type ConnectionError_Promise struct{ *capnp.Pipeline }
  2243. func (p ConnectionError_Promise) Struct() (ConnectionError, error) {
  2244. s, err := p.Pipeline.Struct()
  2245. return ConnectionError{s}, err
  2246. }
  2247. type ConnectionDetails struct{ capnp.Struct }
  2248. // ConnectionDetails_TypeID is the unique identifier for the type ConnectionDetails.
  2249. const ConnectionDetails_TypeID = 0xb5f39f082b9ac18a
  2250. func NewConnectionDetails(s *capnp.Segment) (ConnectionDetails, error) {
  2251. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 2})
  2252. return ConnectionDetails{st}, err
  2253. }
  2254. func NewRootConnectionDetails(s *capnp.Segment) (ConnectionDetails, error) {
  2255. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 2})
  2256. return ConnectionDetails{st}, err
  2257. }
  2258. func ReadRootConnectionDetails(msg *capnp.Message) (ConnectionDetails, error) {
  2259. root, err := msg.RootPtr()
  2260. return ConnectionDetails{root.Struct()}, err
  2261. }
  2262. func (s ConnectionDetails) String() string {
  2263. str, _ := text.Marshal(0xb5f39f082b9ac18a, s.Struct)
  2264. return str
  2265. }
  2266. func (s ConnectionDetails) Uuid() ([]byte, error) {
  2267. p, err := s.Struct.Ptr(0)
  2268. return []byte(p.Data()), err
  2269. }
  2270. func (s ConnectionDetails) HasUuid() bool {
  2271. p, err := s.Struct.Ptr(0)
  2272. return p.IsValid() || err != nil
  2273. }
  2274. func (s ConnectionDetails) SetUuid(v []byte) error {
  2275. return s.Struct.SetData(0, v)
  2276. }
  2277. func (s ConnectionDetails) LocationName() (string, error) {
  2278. p, err := s.Struct.Ptr(1)
  2279. return p.Text(), err
  2280. }
  2281. func (s ConnectionDetails) HasLocationName() bool {
  2282. p, err := s.Struct.Ptr(1)
  2283. return p.IsValid() || err != nil
  2284. }
  2285. func (s ConnectionDetails) LocationNameBytes() ([]byte, error) {
  2286. p, err := s.Struct.Ptr(1)
  2287. return p.TextBytes(), err
  2288. }
  2289. func (s ConnectionDetails) SetLocationName(v string) error {
  2290. return s.Struct.SetText(1, v)
  2291. }
  2292. func (s ConnectionDetails) TunnelIsRemotelyManaged() bool {
  2293. return s.Struct.Bit(0)
  2294. }
  2295. func (s ConnectionDetails) SetTunnelIsRemotelyManaged(v bool) {
  2296. s.Struct.SetBit(0, v)
  2297. }
  2298. // ConnectionDetails_List is a list of ConnectionDetails.
  2299. type ConnectionDetails_List struct{ capnp.List }
  2300. // NewConnectionDetails creates a new list of ConnectionDetails.
  2301. func NewConnectionDetails_List(s *capnp.Segment, sz int32) (ConnectionDetails_List, error) {
  2302. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 2}, sz)
  2303. return ConnectionDetails_List{l}, err
  2304. }
  2305. func (s ConnectionDetails_List) At(i int) ConnectionDetails {
  2306. return ConnectionDetails{s.List.Struct(i)}
  2307. }
  2308. func (s ConnectionDetails_List) Set(i int, v ConnectionDetails) error {
  2309. return s.List.SetStruct(i, v.Struct)
  2310. }
  2311. func (s ConnectionDetails_List) String() string {
  2312. str, _ := text.MarshalList(0xb5f39f082b9ac18a, s.List)
  2313. return str
  2314. }
  2315. // ConnectionDetails_Promise is a wrapper for a ConnectionDetails promised by a client call.
  2316. type ConnectionDetails_Promise struct{ *capnp.Pipeline }
  2317. func (p ConnectionDetails_Promise) Struct() (ConnectionDetails, error) {
  2318. s, err := p.Pipeline.Struct()
  2319. return ConnectionDetails{s}, err
  2320. }
  2321. type TunnelAuth struct{ capnp.Struct }
  2322. // TunnelAuth_TypeID is the unique identifier for the type TunnelAuth.
  2323. const TunnelAuth_TypeID = 0x9496331ab9cd463f
  2324. func NewTunnelAuth(s *capnp.Segment) (TunnelAuth, error) {
  2325. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2})
  2326. return TunnelAuth{st}, err
  2327. }
  2328. func NewRootTunnelAuth(s *capnp.Segment) (TunnelAuth, error) {
  2329. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2})
  2330. return TunnelAuth{st}, err
  2331. }
  2332. func ReadRootTunnelAuth(msg *capnp.Message) (TunnelAuth, error) {
  2333. root, err := msg.RootPtr()
  2334. return TunnelAuth{root.Struct()}, err
  2335. }
  2336. func (s TunnelAuth) String() string {
  2337. str, _ := text.Marshal(0x9496331ab9cd463f, s.Struct)
  2338. return str
  2339. }
  2340. func (s TunnelAuth) AccountTag() (string, error) {
  2341. p, err := s.Struct.Ptr(0)
  2342. return p.Text(), err
  2343. }
  2344. func (s TunnelAuth) HasAccountTag() bool {
  2345. p, err := s.Struct.Ptr(0)
  2346. return p.IsValid() || err != nil
  2347. }
  2348. func (s TunnelAuth) AccountTagBytes() ([]byte, error) {
  2349. p, err := s.Struct.Ptr(0)
  2350. return p.TextBytes(), err
  2351. }
  2352. func (s TunnelAuth) SetAccountTag(v string) error {
  2353. return s.Struct.SetText(0, v)
  2354. }
  2355. func (s TunnelAuth) TunnelSecret() ([]byte, error) {
  2356. p, err := s.Struct.Ptr(1)
  2357. return []byte(p.Data()), err
  2358. }
  2359. func (s TunnelAuth) HasTunnelSecret() bool {
  2360. p, err := s.Struct.Ptr(1)
  2361. return p.IsValid() || err != nil
  2362. }
  2363. func (s TunnelAuth) SetTunnelSecret(v []byte) error {
  2364. return s.Struct.SetData(1, v)
  2365. }
  2366. // TunnelAuth_List is a list of TunnelAuth.
  2367. type TunnelAuth_List struct{ capnp.List }
  2368. // NewTunnelAuth creates a new list of TunnelAuth.
  2369. func NewTunnelAuth_List(s *capnp.Segment, sz int32) (TunnelAuth_List, error) {
  2370. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2}, sz)
  2371. return TunnelAuth_List{l}, err
  2372. }
  2373. func (s TunnelAuth_List) At(i int) TunnelAuth { return TunnelAuth{s.List.Struct(i)} }
  2374. func (s TunnelAuth_List) Set(i int, v TunnelAuth) error { return s.List.SetStruct(i, v.Struct) }
  2375. func (s TunnelAuth_List) String() string {
  2376. str, _ := text.MarshalList(0x9496331ab9cd463f, s.List)
  2377. return str
  2378. }
  2379. // TunnelAuth_Promise is a wrapper for a TunnelAuth promised by a client call.
  2380. type TunnelAuth_Promise struct{ *capnp.Pipeline }
  2381. func (p TunnelAuth_Promise) Struct() (TunnelAuth, error) {
  2382. s, err := p.Pipeline.Struct()
  2383. return TunnelAuth{s}, err
  2384. }
  2385. type RegistrationServer struct{ Client capnp.Client }
  2386. // RegistrationServer_TypeID is the unique identifier for the type RegistrationServer.
  2387. const RegistrationServer_TypeID = 0xf71695ec7fe85497
  2388. func (c RegistrationServer) RegisterConnection(ctx context.Context, params func(RegistrationServer_registerConnection_Params) error, opts ...capnp.CallOption) RegistrationServer_registerConnection_Results_Promise {
  2389. if c.Client == nil {
  2390. return RegistrationServer_registerConnection_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
  2391. }
  2392. call := &capnp.Call{
  2393. Ctx: ctx,
  2394. Method: capnp.Method{
  2395. InterfaceID: 0xf71695ec7fe85497,
  2396. MethodID: 0,
  2397. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:RegistrationServer",
  2398. MethodName: "registerConnection",
  2399. },
  2400. Options: capnp.NewCallOptions(opts),
  2401. }
  2402. if params != nil {
  2403. call.ParamsSize = capnp.ObjectSize{DataSize: 8, PointerCount: 3}
  2404. call.ParamsFunc = func(s capnp.Struct) error { return params(RegistrationServer_registerConnection_Params{Struct: s}) }
  2405. }
  2406. return RegistrationServer_registerConnection_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
  2407. }
  2408. func (c RegistrationServer) UnregisterConnection(ctx context.Context, params func(RegistrationServer_unregisterConnection_Params) error, opts ...capnp.CallOption) RegistrationServer_unregisterConnection_Results_Promise {
  2409. if c.Client == nil {
  2410. return RegistrationServer_unregisterConnection_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
  2411. }
  2412. call := &capnp.Call{
  2413. Ctx: ctx,
  2414. Method: capnp.Method{
  2415. InterfaceID: 0xf71695ec7fe85497,
  2416. MethodID: 1,
  2417. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:RegistrationServer",
  2418. MethodName: "unregisterConnection",
  2419. },
  2420. Options: capnp.NewCallOptions(opts),
  2421. }
  2422. if params != nil {
  2423. call.ParamsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 0}
  2424. call.ParamsFunc = func(s capnp.Struct) error { return params(RegistrationServer_unregisterConnection_Params{Struct: s}) }
  2425. }
  2426. return RegistrationServer_unregisterConnection_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
  2427. }
  2428. func (c RegistrationServer) UpdateLocalConfiguration(ctx context.Context, params func(RegistrationServer_updateLocalConfiguration_Params) error, opts ...capnp.CallOption) RegistrationServer_updateLocalConfiguration_Results_Promise {
  2429. if c.Client == nil {
  2430. return RegistrationServer_updateLocalConfiguration_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
  2431. }
  2432. call := &capnp.Call{
  2433. Ctx: ctx,
  2434. Method: capnp.Method{
  2435. InterfaceID: 0xf71695ec7fe85497,
  2436. MethodID: 2,
  2437. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:RegistrationServer",
  2438. MethodName: "updateLocalConfiguration",
  2439. },
  2440. Options: capnp.NewCallOptions(opts),
  2441. }
  2442. if params != nil {
  2443. call.ParamsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 1}
  2444. call.ParamsFunc = func(s capnp.Struct) error {
  2445. return params(RegistrationServer_updateLocalConfiguration_Params{Struct: s})
  2446. }
  2447. }
  2448. return RegistrationServer_updateLocalConfiguration_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
  2449. }
  2450. type RegistrationServer_Server interface {
  2451. RegisterConnection(RegistrationServer_registerConnection) error
  2452. UnregisterConnection(RegistrationServer_unregisterConnection) error
  2453. UpdateLocalConfiguration(RegistrationServer_updateLocalConfiguration) error
  2454. }
  2455. func RegistrationServer_ServerToClient(s RegistrationServer_Server) RegistrationServer {
  2456. c, _ := s.(server.Closer)
  2457. return RegistrationServer{Client: server.New(RegistrationServer_Methods(nil, s), c)}
  2458. }
  2459. func RegistrationServer_Methods(methods []server.Method, s RegistrationServer_Server) []server.Method {
  2460. if cap(methods) == 0 {
  2461. methods = make([]server.Method, 0, 3)
  2462. }
  2463. methods = append(methods, server.Method{
  2464. Method: capnp.Method{
  2465. InterfaceID: 0xf71695ec7fe85497,
  2466. MethodID: 0,
  2467. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:RegistrationServer",
  2468. MethodName: "registerConnection",
  2469. },
  2470. Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
  2471. call := RegistrationServer_registerConnection{c, opts, RegistrationServer_registerConnection_Params{Struct: p}, RegistrationServer_registerConnection_Results{Struct: r}}
  2472. return s.RegisterConnection(call)
  2473. },
  2474. ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 1},
  2475. })
  2476. methods = append(methods, server.Method{
  2477. Method: capnp.Method{
  2478. InterfaceID: 0xf71695ec7fe85497,
  2479. MethodID: 1,
  2480. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:RegistrationServer",
  2481. MethodName: "unregisterConnection",
  2482. },
  2483. Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
  2484. call := RegistrationServer_unregisterConnection{c, opts, RegistrationServer_unregisterConnection_Params{Struct: p}, RegistrationServer_unregisterConnection_Results{Struct: r}}
  2485. return s.UnregisterConnection(call)
  2486. },
  2487. ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 0},
  2488. })
  2489. methods = append(methods, server.Method{
  2490. Method: capnp.Method{
  2491. InterfaceID: 0xf71695ec7fe85497,
  2492. MethodID: 2,
  2493. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:RegistrationServer",
  2494. MethodName: "updateLocalConfiguration",
  2495. },
  2496. Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
  2497. call := RegistrationServer_updateLocalConfiguration{c, opts, RegistrationServer_updateLocalConfiguration_Params{Struct: p}, RegistrationServer_updateLocalConfiguration_Results{Struct: r}}
  2498. return s.UpdateLocalConfiguration(call)
  2499. },
  2500. ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 0},
  2501. })
  2502. return methods
  2503. }
  2504. // RegistrationServer_registerConnection holds the arguments for a server call to RegistrationServer.registerConnection.
  2505. type RegistrationServer_registerConnection struct {
  2506. Ctx context.Context
  2507. Options capnp.CallOptions
  2508. Params RegistrationServer_registerConnection_Params
  2509. Results RegistrationServer_registerConnection_Results
  2510. }
  2511. // RegistrationServer_unregisterConnection holds the arguments for a server call to RegistrationServer.unregisterConnection.
  2512. type RegistrationServer_unregisterConnection struct {
  2513. Ctx context.Context
  2514. Options capnp.CallOptions
  2515. Params RegistrationServer_unregisterConnection_Params
  2516. Results RegistrationServer_unregisterConnection_Results
  2517. }
  2518. // RegistrationServer_updateLocalConfiguration holds the arguments for a server call to RegistrationServer.updateLocalConfiguration.
  2519. type RegistrationServer_updateLocalConfiguration struct {
  2520. Ctx context.Context
  2521. Options capnp.CallOptions
  2522. Params RegistrationServer_updateLocalConfiguration_Params
  2523. Results RegistrationServer_updateLocalConfiguration_Results
  2524. }
  2525. type RegistrationServer_registerConnection_Params struct{ capnp.Struct }
  2526. // RegistrationServer_registerConnection_Params_TypeID is the unique identifier for the type RegistrationServer_registerConnection_Params.
  2527. const RegistrationServer_registerConnection_Params_TypeID = 0xe6646dec8feaa6ee
  2528. func NewRegistrationServer_registerConnection_Params(s *capnp.Segment) (RegistrationServer_registerConnection_Params, error) {
  2529. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 3})
  2530. return RegistrationServer_registerConnection_Params{st}, err
  2531. }
  2532. func NewRootRegistrationServer_registerConnection_Params(s *capnp.Segment) (RegistrationServer_registerConnection_Params, error) {
  2533. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 3})
  2534. return RegistrationServer_registerConnection_Params{st}, err
  2535. }
  2536. func ReadRootRegistrationServer_registerConnection_Params(msg *capnp.Message) (RegistrationServer_registerConnection_Params, error) {
  2537. root, err := msg.RootPtr()
  2538. return RegistrationServer_registerConnection_Params{root.Struct()}, err
  2539. }
  2540. func (s RegistrationServer_registerConnection_Params) String() string {
  2541. str, _ := text.Marshal(0xe6646dec8feaa6ee, s.Struct)
  2542. return str
  2543. }
  2544. func (s RegistrationServer_registerConnection_Params) Auth() (TunnelAuth, error) {
  2545. p, err := s.Struct.Ptr(0)
  2546. return TunnelAuth{Struct: p.Struct()}, err
  2547. }
  2548. func (s RegistrationServer_registerConnection_Params) HasAuth() bool {
  2549. p, err := s.Struct.Ptr(0)
  2550. return p.IsValid() || err != nil
  2551. }
  2552. func (s RegistrationServer_registerConnection_Params) SetAuth(v TunnelAuth) error {
  2553. return s.Struct.SetPtr(0, v.Struct.ToPtr())
  2554. }
  2555. // NewAuth sets the auth field to a newly
  2556. // allocated TunnelAuth struct, preferring placement in s's segment.
  2557. func (s RegistrationServer_registerConnection_Params) NewAuth() (TunnelAuth, error) {
  2558. ss, err := NewTunnelAuth(s.Struct.Segment())
  2559. if err != nil {
  2560. return TunnelAuth{}, err
  2561. }
  2562. err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
  2563. return ss, err
  2564. }
  2565. func (s RegistrationServer_registerConnection_Params) TunnelId() ([]byte, error) {
  2566. p, err := s.Struct.Ptr(1)
  2567. return []byte(p.Data()), err
  2568. }
  2569. func (s RegistrationServer_registerConnection_Params) HasTunnelId() bool {
  2570. p, err := s.Struct.Ptr(1)
  2571. return p.IsValid() || err != nil
  2572. }
  2573. func (s RegistrationServer_registerConnection_Params) SetTunnelId(v []byte) error {
  2574. return s.Struct.SetData(1, v)
  2575. }
  2576. func (s RegistrationServer_registerConnection_Params) ConnIndex() uint8 {
  2577. return s.Struct.Uint8(0)
  2578. }
  2579. func (s RegistrationServer_registerConnection_Params) SetConnIndex(v uint8) {
  2580. s.Struct.SetUint8(0, v)
  2581. }
  2582. func (s RegistrationServer_registerConnection_Params) Options() (ConnectionOptions, error) {
  2583. p, err := s.Struct.Ptr(2)
  2584. return ConnectionOptions{Struct: p.Struct()}, err
  2585. }
  2586. func (s RegistrationServer_registerConnection_Params) HasOptions() bool {
  2587. p, err := s.Struct.Ptr(2)
  2588. return p.IsValid() || err != nil
  2589. }
  2590. func (s RegistrationServer_registerConnection_Params) SetOptions(v ConnectionOptions) error {
  2591. return s.Struct.SetPtr(2, v.Struct.ToPtr())
  2592. }
  2593. // NewOptions sets the options field to a newly
  2594. // allocated ConnectionOptions struct, preferring placement in s's segment.
  2595. func (s RegistrationServer_registerConnection_Params) NewOptions() (ConnectionOptions, error) {
  2596. ss, err := NewConnectionOptions(s.Struct.Segment())
  2597. if err != nil {
  2598. return ConnectionOptions{}, err
  2599. }
  2600. err = s.Struct.SetPtr(2, ss.Struct.ToPtr())
  2601. return ss, err
  2602. }
  2603. // RegistrationServer_registerConnection_Params_List is a list of RegistrationServer_registerConnection_Params.
  2604. type RegistrationServer_registerConnection_Params_List struct{ capnp.List }
  2605. // NewRegistrationServer_registerConnection_Params creates a new list of RegistrationServer_registerConnection_Params.
  2606. func NewRegistrationServer_registerConnection_Params_List(s *capnp.Segment, sz int32) (RegistrationServer_registerConnection_Params_List, error) {
  2607. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 3}, sz)
  2608. return RegistrationServer_registerConnection_Params_List{l}, err
  2609. }
  2610. func (s RegistrationServer_registerConnection_Params_List) At(i int) RegistrationServer_registerConnection_Params {
  2611. return RegistrationServer_registerConnection_Params{s.List.Struct(i)}
  2612. }
  2613. func (s RegistrationServer_registerConnection_Params_List) Set(i int, v RegistrationServer_registerConnection_Params) error {
  2614. return s.List.SetStruct(i, v.Struct)
  2615. }
  2616. func (s RegistrationServer_registerConnection_Params_List) String() string {
  2617. str, _ := text.MarshalList(0xe6646dec8feaa6ee, s.List)
  2618. return str
  2619. }
  2620. // RegistrationServer_registerConnection_Params_Promise is a wrapper for a RegistrationServer_registerConnection_Params promised by a client call.
  2621. type RegistrationServer_registerConnection_Params_Promise struct{ *capnp.Pipeline }
  2622. func (p RegistrationServer_registerConnection_Params_Promise) Struct() (RegistrationServer_registerConnection_Params, error) {
  2623. s, err := p.Pipeline.Struct()
  2624. return RegistrationServer_registerConnection_Params{s}, err
  2625. }
  2626. func (p RegistrationServer_registerConnection_Params_Promise) Auth() TunnelAuth_Promise {
  2627. return TunnelAuth_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
  2628. }
  2629. func (p RegistrationServer_registerConnection_Params_Promise) Options() ConnectionOptions_Promise {
  2630. return ConnectionOptions_Promise{Pipeline: p.Pipeline.GetPipeline(2)}
  2631. }
  2632. type RegistrationServer_registerConnection_Results struct{ capnp.Struct }
  2633. // RegistrationServer_registerConnection_Results_TypeID is the unique identifier for the type RegistrationServer_registerConnection_Results.
  2634. const RegistrationServer_registerConnection_Results_TypeID = 0xea50d822450d1f17
  2635. func NewRegistrationServer_registerConnection_Results(s *capnp.Segment) (RegistrationServer_registerConnection_Results, error) {
  2636. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
  2637. return RegistrationServer_registerConnection_Results{st}, err
  2638. }
  2639. func NewRootRegistrationServer_registerConnection_Results(s *capnp.Segment) (RegistrationServer_registerConnection_Results, error) {
  2640. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
  2641. return RegistrationServer_registerConnection_Results{st}, err
  2642. }
  2643. func ReadRootRegistrationServer_registerConnection_Results(msg *capnp.Message) (RegistrationServer_registerConnection_Results, error) {
  2644. root, err := msg.RootPtr()
  2645. return RegistrationServer_registerConnection_Results{root.Struct()}, err
  2646. }
  2647. func (s RegistrationServer_registerConnection_Results) String() string {
  2648. str, _ := text.Marshal(0xea50d822450d1f17, s.Struct)
  2649. return str
  2650. }
  2651. func (s RegistrationServer_registerConnection_Results) Result() (ConnectionResponse, error) {
  2652. p, err := s.Struct.Ptr(0)
  2653. return ConnectionResponse{Struct: p.Struct()}, err
  2654. }
  2655. func (s RegistrationServer_registerConnection_Results) HasResult() bool {
  2656. p, err := s.Struct.Ptr(0)
  2657. return p.IsValid() || err != nil
  2658. }
  2659. func (s RegistrationServer_registerConnection_Results) SetResult(v ConnectionResponse) error {
  2660. return s.Struct.SetPtr(0, v.Struct.ToPtr())
  2661. }
  2662. // NewResult sets the result field to a newly
  2663. // allocated ConnectionResponse struct, preferring placement in s's segment.
  2664. func (s RegistrationServer_registerConnection_Results) NewResult() (ConnectionResponse, error) {
  2665. ss, err := NewConnectionResponse(s.Struct.Segment())
  2666. if err != nil {
  2667. return ConnectionResponse{}, err
  2668. }
  2669. err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
  2670. return ss, err
  2671. }
  2672. // RegistrationServer_registerConnection_Results_List is a list of RegistrationServer_registerConnection_Results.
  2673. type RegistrationServer_registerConnection_Results_List struct{ capnp.List }
  2674. // NewRegistrationServer_registerConnection_Results creates a new list of RegistrationServer_registerConnection_Results.
  2675. func NewRegistrationServer_registerConnection_Results_List(s *capnp.Segment, sz int32) (RegistrationServer_registerConnection_Results_List, error) {
  2676. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
  2677. return RegistrationServer_registerConnection_Results_List{l}, err
  2678. }
  2679. func (s RegistrationServer_registerConnection_Results_List) At(i int) RegistrationServer_registerConnection_Results {
  2680. return RegistrationServer_registerConnection_Results{s.List.Struct(i)}
  2681. }
  2682. func (s RegistrationServer_registerConnection_Results_List) Set(i int, v RegistrationServer_registerConnection_Results) error {
  2683. return s.List.SetStruct(i, v.Struct)
  2684. }
  2685. func (s RegistrationServer_registerConnection_Results_List) String() string {
  2686. str, _ := text.MarshalList(0xea50d822450d1f17, s.List)
  2687. return str
  2688. }
  2689. // RegistrationServer_registerConnection_Results_Promise is a wrapper for a RegistrationServer_registerConnection_Results promised by a client call.
  2690. type RegistrationServer_registerConnection_Results_Promise struct{ *capnp.Pipeline }
  2691. func (p RegistrationServer_registerConnection_Results_Promise) Struct() (RegistrationServer_registerConnection_Results, error) {
  2692. s, err := p.Pipeline.Struct()
  2693. return RegistrationServer_registerConnection_Results{s}, err
  2694. }
  2695. func (p RegistrationServer_registerConnection_Results_Promise) Result() ConnectionResponse_Promise {
  2696. return ConnectionResponse_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
  2697. }
  2698. type RegistrationServer_unregisterConnection_Params struct{ capnp.Struct }
  2699. // RegistrationServer_unregisterConnection_Params_TypeID is the unique identifier for the type RegistrationServer_unregisterConnection_Params.
  2700. const RegistrationServer_unregisterConnection_Params_TypeID = 0xf9cb7f4431a307d0
  2701. func NewRegistrationServer_unregisterConnection_Params(s *capnp.Segment) (RegistrationServer_unregisterConnection_Params, error) {
  2702. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
  2703. return RegistrationServer_unregisterConnection_Params{st}, err
  2704. }
  2705. func NewRootRegistrationServer_unregisterConnection_Params(s *capnp.Segment) (RegistrationServer_unregisterConnection_Params, error) {
  2706. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
  2707. return RegistrationServer_unregisterConnection_Params{st}, err
  2708. }
  2709. func ReadRootRegistrationServer_unregisterConnection_Params(msg *capnp.Message) (RegistrationServer_unregisterConnection_Params, error) {
  2710. root, err := msg.RootPtr()
  2711. return RegistrationServer_unregisterConnection_Params{root.Struct()}, err
  2712. }
  2713. func (s RegistrationServer_unregisterConnection_Params) String() string {
  2714. str, _ := text.Marshal(0xf9cb7f4431a307d0, s.Struct)
  2715. return str
  2716. }
  2717. // RegistrationServer_unregisterConnection_Params_List is a list of RegistrationServer_unregisterConnection_Params.
  2718. type RegistrationServer_unregisterConnection_Params_List struct{ capnp.List }
  2719. // NewRegistrationServer_unregisterConnection_Params creates a new list of RegistrationServer_unregisterConnection_Params.
  2720. func NewRegistrationServer_unregisterConnection_Params_List(s *capnp.Segment, sz int32) (RegistrationServer_unregisterConnection_Params_List, error) {
  2721. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
  2722. return RegistrationServer_unregisterConnection_Params_List{l}, err
  2723. }
  2724. func (s RegistrationServer_unregisterConnection_Params_List) At(i int) RegistrationServer_unregisterConnection_Params {
  2725. return RegistrationServer_unregisterConnection_Params{s.List.Struct(i)}
  2726. }
  2727. func (s RegistrationServer_unregisterConnection_Params_List) Set(i int, v RegistrationServer_unregisterConnection_Params) error {
  2728. return s.List.SetStruct(i, v.Struct)
  2729. }
  2730. func (s RegistrationServer_unregisterConnection_Params_List) String() string {
  2731. str, _ := text.MarshalList(0xf9cb7f4431a307d0, s.List)
  2732. return str
  2733. }
  2734. // RegistrationServer_unregisterConnection_Params_Promise is a wrapper for a RegistrationServer_unregisterConnection_Params promised by a client call.
  2735. type RegistrationServer_unregisterConnection_Params_Promise struct{ *capnp.Pipeline }
  2736. func (p RegistrationServer_unregisterConnection_Params_Promise) Struct() (RegistrationServer_unregisterConnection_Params, error) {
  2737. s, err := p.Pipeline.Struct()
  2738. return RegistrationServer_unregisterConnection_Params{s}, err
  2739. }
  2740. type RegistrationServer_unregisterConnection_Results struct{ capnp.Struct }
  2741. // RegistrationServer_unregisterConnection_Results_TypeID is the unique identifier for the type RegistrationServer_unregisterConnection_Results.
  2742. const RegistrationServer_unregisterConnection_Results_TypeID = 0xb046e578094b1ead
  2743. func NewRegistrationServer_unregisterConnection_Results(s *capnp.Segment) (RegistrationServer_unregisterConnection_Results, error) {
  2744. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
  2745. return RegistrationServer_unregisterConnection_Results{st}, err
  2746. }
  2747. func NewRootRegistrationServer_unregisterConnection_Results(s *capnp.Segment) (RegistrationServer_unregisterConnection_Results, error) {
  2748. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
  2749. return RegistrationServer_unregisterConnection_Results{st}, err
  2750. }
  2751. func ReadRootRegistrationServer_unregisterConnection_Results(msg *capnp.Message) (RegistrationServer_unregisterConnection_Results, error) {
  2752. root, err := msg.RootPtr()
  2753. return RegistrationServer_unregisterConnection_Results{root.Struct()}, err
  2754. }
  2755. func (s RegistrationServer_unregisterConnection_Results) String() string {
  2756. str, _ := text.Marshal(0xb046e578094b1ead, s.Struct)
  2757. return str
  2758. }
  2759. // RegistrationServer_unregisterConnection_Results_List is a list of RegistrationServer_unregisterConnection_Results.
  2760. type RegistrationServer_unregisterConnection_Results_List struct{ capnp.List }
  2761. // NewRegistrationServer_unregisterConnection_Results creates a new list of RegistrationServer_unregisterConnection_Results.
  2762. func NewRegistrationServer_unregisterConnection_Results_List(s *capnp.Segment, sz int32) (RegistrationServer_unregisterConnection_Results_List, error) {
  2763. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
  2764. return RegistrationServer_unregisterConnection_Results_List{l}, err
  2765. }
  2766. func (s RegistrationServer_unregisterConnection_Results_List) At(i int) RegistrationServer_unregisterConnection_Results {
  2767. return RegistrationServer_unregisterConnection_Results{s.List.Struct(i)}
  2768. }
  2769. func (s RegistrationServer_unregisterConnection_Results_List) Set(i int, v RegistrationServer_unregisterConnection_Results) error {
  2770. return s.List.SetStruct(i, v.Struct)
  2771. }
  2772. func (s RegistrationServer_unregisterConnection_Results_List) String() string {
  2773. str, _ := text.MarshalList(0xb046e578094b1ead, s.List)
  2774. return str
  2775. }
  2776. // RegistrationServer_unregisterConnection_Results_Promise is a wrapper for a RegistrationServer_unregisterConnection_Results promised by a client call.
  2777. type RegistrationServer_unregisterConnection_Results_Promise struct{ *capnp.Pipeline }
  2778. func (p RegistrationServer_unregisterConnection_Results_Promise) Struct() (RegistrationServer_unregisterConnection_Results, error) {
  2779. s, err := p.Pipeline.Struct()
  2780. return RegistrationServer_unregisterConnection_Results{s}, err
  2781. }
  2782. type RegistrationServer_updateLocalConfiguration_Params struct{ capnp.Struct }
  2783. // RegistrationServer_updateLocalConfiguration_Params_TypeID is the unique identifier for the type RegistrationServer_updateLocalConfiguration_Params.
  2784. const RegistrationServer_updateLocalConfiguration_Params_TypeID = 0xc5d6e311876a3604
  2785. func NewRegistrationServer_updateLocalConfiguration_Params(s *capnp.Segment) (RegistrationServer_updateLocalConfiguration_Params, error) {
  2786. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
  2787. return RegistrationServer_updateLocalConfiguration_Params{st}, err
  2788. }
  2789. func NewRootRegistrationServer_updateLocalConfiguration_Params(s *capnp.Segment) (RegistrationServer_updateLocalConfiguration_Params, error) {
  2790. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
  2791. return RegistrationServer_updateLocalConfiguration_Params{st}, err
  2792. }
  2793. func ReadRootRegistrationServer_updateLocalConfiguration_Params(msg *capnp.Message) (RegistrationServer_updateLocalConfiguration_Params, error) {
  2794. root, err := msg.RootPtr()
  2795. return RegistrationServer_updateLocalConfiguration_Params{root.Struct()}, err
  2796. }
  2797. func (s RegistrationServer_updateLocalConfiguration_Params) String() string {
  2798. str, _ := text.Marshal(0xc5d6e311876a3604, s.Struct)
  2799. return str
  2800. }
  2801. func (s RegistrationServer_updateLocalConfiguration_Params) Config() ([]byte, error) {
  2802. p, err := s.Struct.Ptr(0)
  2803. return []byte(p.Data()), err
  2804. }
  2805. func (s RegistrationServer_updateLocalConfiguration_Params) HasConfig() bool {
  2806. p, err := s.Struct.Ptr(0)
  2807. return p.IsValid() || err != nil
  2808. }
  2809. func (s RegistrationServer_updateLocalConfiguration_Params) SetConfig(v []byte) error {
  2810. return s.Struct.SetData(0, v)
  2811. }
  2812. // RegistrationServer_updateLocalConfiguration_Params_List is a list of RegistrationServer_updateLocalConfiguration_Params.
  2813. type RegistrationServer_updateLocalConfiguration_Params_List struct{ capnp.List }
  2814. // NewRegistrationServer_updateLocalConfiguration_Params creates a new list of RegistrationServer_updateLocalConfiguration_Params.
  2815. func NewRegistrationServer_updateLocalConfiguration_Params_List(s *capnp.Segment, sz int32) (RegistrationServer_updateLocalConfiguration_Params_List, error) {
  2816. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
  2817. return RegistrationServer_updateLocalConfiguration_Params_List{l}, err
  2818. }
  2819. func (s RegistrationServer_updateLocalConfiguration_Params_List) At(i int) RegistrationServer_updateLocalConfiguration_Params {
  2820. return RegistrationServer_updateLocalConfiguration_Params{s.List.Struct(i)}
  2821. }
  2822. func (s RegistrationServer_updateLocalConfiguration_Params_List) Set(i int, v RegistrationServer_updateLocalConfiguration_Params) error {
  2823. return s.List.SetStruct(i, v.Struct)
  2824. }
  2825. func (s RegistrationServer_updateLocalConfiguration_Params_List) String() string {
  2826. str, _ := text.MarshalList(0xc5d6e311876a3604, s.List)
  2827. return str
  2828. }
  2829. // RegistrationServer_updateLocalConfiguration_Params_Promise is a wrapper for a RegistrationServer_updateLocalConfiguration_Params promised by a client call.
  2830. type RegistrationServer_updateLocalConfiguration_Params_Promise struct{ *capnp.Pipeline }
  2831. func (p RegistrationServer_updateLocalConfiguration_Params_Promise) Struct() (RegistrationServer_updateLocalConfiguration_Params, error) {
  2832. s, err := p.Pipeline.Struct()
  2833. return RegistrationServer_updateLocalConfiguration_Params{s}, err
  2834. }
  2835. type RegistrationServer_updateLocalConfiguration_Results struct{ capnp.Struct }
  2836. // RegistrationServer_updateLocalConfiguration_Results_TypeID is the unique identifier for the type RegistrationServer_updateLocalConfiguration_Results.
  2837. const RegistrationServer_updateLocalConfiguration_Results_TypeID = 0xe5ceae5d6897d7be
  2838. func NewRegistrationServer_updateLocalConfiguration_Results(s *capnp.Segment) (RegistrationServer_updateLocalConfiguration_Results, error) {
  2839. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
  2840. return RegistrationServer_updateLocalConfiguration_Results{st}, err
  2841. }
  2842. func NewRootRegistrationServer_updateLocalConfiguration_Results(s *capnp.Segment) (RegistrationServer_updateLocalConfiguration_Results, error) {
  2843. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
  2844. return RegistrationServer_updateLocalConfiguration_Results{st}, err
  2845. }
  2846. func ReadRootRegistrationServer_updateLocalConfiguration_Results(msg *capnp.Message) (RegistrationServer_updateLocalConfiguration_Results, error) {
  2847. root, err := msg.RootPtr()
  2848. return RegistrationServer_updateLocalConfiguration_Results{root.Struct()}, err
  2849. }
  2850. func (s RegistrationServer_updateLocalConfiguration_Results) String() string {
  2851. str, _ := text.Marshal(0xe5ceae5d6897d7be, s.Struct)
  2852. return str
  2853. }
  2854. // RegistrationServer_updateLocalConfiguration_Results_List is a list of RegistrationServer_updateLocalConfiguration_Results.
  2855. type RegistrationServer_updateLocalConfiguration_Results_List struct{ capnp.List }
  2856. // NewRegistrationServer_updateLocalConfiguration_Results creates a new list of RegistrationServer_updateLocalConfiguration_Results.
  2857. func NewRegistrationServer_updateLocalConfiguration_Results_List(s *capnp.Segment, sz int32) (RegistrationServer_updateLocalConfiguration_Results_List, error) {
  2858. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
  2859. return RegistrationServer_updateLocalConfiguration_Results_List{l}, err
  2860. }
  2861. func (s RegistrationServer_updateLocalConfiguration_Results_List) At(i int) RegistrationServer_updateLocalConfiguration_Results {
  2862. return RegistrationServer_updateLocalConfiguration_Results{s.List.Struct(i)}
  2863. }
  2864. func (s RegistrationServer_updateLocalConfiguration_Results_List) Set(i int, v RegistrationServer_updateLocalConfiguration_Results) error {
  2865. return s.List.SetStruct(i, v.Struct)
  2866. }
  2867. func (s RegistrationServer_updateLocalConfiguration_Results_List) String() string {
  2868. str, _ := text.MarshalList(0xe5ceae5d6897d7be, s.List)
  2869. return str
  2870. }
  2871. // RegistrationServer_updateLocalConfiguration_Results_Promise is a wrapper for a RegistrationServer_updateLocalConfiguration_Results promised by a client call.
  2872. type RegistrationServer_updateLocalConfiguration_Results_Promise struct{ *capnp.Pipeline }
  2873. func (p RegistrationServer_updateLocalConfiguration_Results_Promise) Struct() (RegistrationServer_updateLocalConfiguration_Results, error) {
  2874. s, err := p.Pipeline.Struct()
  2875. return RegistrationServer_updateLocalConfiguration_Results{s}, err
  2876. }
  2877. type RegisterUdpSessionResponse struct{ capnp.Struct }
  2878. // RegisterUdpSessionResponse_TypeID is the unique identifier for the type RegisterUdpSessionResponse.
  2879. const RegisterUdpSessionResponse_TypeID = 0xab6d5210c1f26687
  2880. func NewRegisterUdpSessionResponse(s *capnp.Segment) (RegisterUdpSessionResponse, error) {
  2881. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2})
  2882. return RegisterUdpSessionResponse{st}, err
  2883. }
  2884. func NewRootRegisterUdpSessionResponse(s *capnp.Segment) (RegisterUdpSessionResponse, error) {
  2885. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2})
  2886. return RegisterUdpSessionResponse{st}, err
  2887. }
  2888. func ReadRootRegisterUdpSessionResponse(msg *capnp.Message) (RegisterUdpSessionResponse, error) {
  2889. root, err := msg.RootPtr()
  2890. return RegisterUdpSessionResponse{root.Struct()}, err
  2891. }
  2892. func (s RegisterUdpSessionResponse) String() string {
  2893. str, _ := text.Marshal(0xab6d5210c1f26687, s.Struct)
  2894. return str
  2895. }
  2896. func (s RegisterUdpSessionResponse) Err() (string, error) {
  2897. p, err := s.Struct.Ptr(0)
  2898. return p.Text(), err
  2899. }
  2900. func (s RegisterUdpSessionResponse) HasErr() bool {
  2901. p, err := s.Struct.Ptr(0)
  2902. return p.IsValid() || err != nil
  2903. }
  2904. func (s RegisterUdpSessionResponse) ErrBytes() ([]byte, error) {
  2905. p, err := s.Struct.Ptr(0)
  2906. return p.TextBytes(), err
  2907. }
  2908. func (s RegisterUdpSessionResponse) SetErr(v string) error {
  2909. return s.Struct.SetText(0, v)
  2910. }
  2911. func (s RegisterUdpSessionResponse) Spans() ([]byte, error) {
  2912. p, err := s.Struct.Ptr(1)
  2913. return []byte(p.Data()), err
  2914. }
  2915. func (s RegisterUdpSessionResponse) HasSpans() bool {
  2916. p, err := s.Struct.Ptr(1)
  2917. return p.IsValid() || err != nil
  2918. }
  2919. func (s RegisterUdpSessionResponse) SetSpans(v []byte) error {
  2920. return s.Struct.SetData(1, v)
  2921. }
  2922. // RegisterUdpSessionResponse_List is a list of RegisterUdpSessionResponse.
  2923. type RegisterUdpSessionResponse_List struct{ capnp.List }
  2924. // NewRegisterUdpSessionResponse creates a new list of RegisterUdpSessionResponse.
  2925. func NewRegisterUdpSessionResponse_List(s *capnp.Segment, sz int32) (RegisterUdpSessionResponse_List, error) {
  2926. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2}, sz)
  2927. return RegisterUdpSessionResponse_List{l}, err
  2928. }
  2929. func (s RegisterUdpSessionResponse_List) At(i int) RegisterUdpSessionResponse {
  2930. return RegisterUdpSessionResponse{s.List.Struct(i)}
  2931. }
  2932. func (s RegisterUdpSessionResponse_List) Set(i int, v RegisterUdpSessionResponse) error {
  2933. return s.List.SetStruct(i, v.Struct)
  2934. }
  2935. func (s RegisterUdpSessionResponse_List) String() string {
  2936. str, _ := text.MarshalList(0xab6d5210c1f26687, s.List)
  2937. return str
  2938. }
  2939. // RegisterUdpSessionResponse_Promise is a wrapper for a RegisterUdpSessionResponse promised by a client call.
  2940. type RegisterUdpSessionResponse_Promise struct{ *capnp.Pipeline }
  2941. func (p RegisterUdpSessionResponse_Promise) Struct() (RegisterUdpSessionResponse, error) {
  2942. s, err := p.Pipeline.Struct()
  2943. return RegisterUdpSessionResponse{s}, err
  2944. }
  2945. type SessionManager struct{ Client capnp.Client }
  2946. // SessionManager_TypeID is the unique identifier for the type SessionManager.
  2947. const SessionManager_TypeID = 0x839445a59fb01686
  2948. func (c SessionManager) RegisterUdpSession(ctx context.Context, params func(SessionManager_registerUdpSession_Params) error, opts ...capnp.CallOption) SessionManager_registerUdpSession_Results_Promise {
  2949. if c.Client == nil {
  2950. return SessionManager_registerUdpSession_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
  2951. }
  2952. call := &capnp.Call{
  2953. Ctx: ctx,
  2954. Method: capnp.Method{
  2955. InterfaceID: 0x839445a59fb01686,
  2956. MethodID: 0,
  2957. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:SessionManager",
  2958. MethodName: "registerUdpSession",
  2959. },
  2960. Options: capnp.NewCallOptions(opts),
  2961. }
  2962. if params != nil {
  2963. call.ParamsSize = capnp.ObjectSize{DataSize: 16, PointerCount: 3}
  2964. call.ParamsFunc = func(s capnp.Struct) error { return params(SessionManager_registerUdpSession_Params{Struct: s}) }
  2965. }
  2966. return SessionManager_registerUdpSession_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
  2967. }
  2968. func (c SessionManager) UnregisterUdpSession(ctx context.Context, params func(SessionManager_unregisterUdpSession_Params) error, opts ...capnp.CallOption) SessionManager_unregisterUdpSession_Results_Promise {
  2969. if c.Client == nil {
  2970. return SessionManager_unregisterUdpSession_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
  2971. }
  2972. call := &capnp.Call{
  2973. Ctx: ctx,
  2974. Method: capnp.Method{
  2975. InterfaceID: 0x839445a59fb01686,
  2976. MethodID: 1,
  2977. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:SessionManager",
  2978. MethodName: "unregisterUdpSession",
  2979. },
  2980. Options: capnp.NewCallOptions(opts),
  2981. }
  2982. if params != nil {
  2983. call.ParamsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 2}
  2984. call.ParamsFunc = func(s capnp.Struct) error { return params(SessionManager_unregisterUdpSession_Params{Struct: s}) }
  2985. }
  2986. return SessionManager_unregisterUdpSession_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
  2987. }
  2988. type SessionManager_Server interface {
  2989. RegisterUdpSession(SessionManager_registerUdpSession) error
  2990. UnregisterUdpSession(SessionManager_unregisterUdpSession) error
  2991. }
  2992. func SessionManager_ServerToClient(s SessionManager_Server) SessionManager {
  2993. c, _ := s.(server.Closer)
  2994. return SessionManager{Client: server.New(SessionManager_Methods(nil, s), c)}
  2995. }
  2996. func SessionManager_Methods(methods []server.Method, s SessionManager_Server) []server.Method {
  2997. if cap(methods) == 0 {
  2998. methods = make([]server.Method, 0, 2)
  2999. }
  3000. methods = append(methods, server.Method{
  3001. Method: capnp.Method{
  3002. InterfaceID: 0x839445a59fb01686,
  3003. MethodID: 0,
  3004. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:SessionManager",
  3005. MethodName: "registerUdpSession",
  3006. },
  3007. Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
  3008. call := SessionManager_registerUdpSession{c, opts, SessionManager_registerUdpSession_Params{Struct: p}, SessionManager_registerUdpSession_Results{Struct: r}}
  3009. return s.RegisterUdpSession(call)
  3010. },
  3011. ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 1},
  3012. })
  3013. methods = append(methods, server.Method{
  3014. Method: capnp.Method{
  3015. InterfaceID: 0x839445a59fb01686,
  3016. MethodID: 1,
  3017. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:SessionManager",
  3018. MethodName: "unregisterUdpSession",
  3019. },
  3020. Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
  3021. call := SessionManager_unregisterUdpSession{c, opts, SessionManager_unregisterUdpSession_Params{Struct: p}, SessionManager_unregisterUdpSession_Results{Struct: r}}
  3022. return s.UnregisterUdpSession(call)
  3023. },
  3024. ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 0},
  3025. })
  3026. return methods
  3027. }
  3028. // SessionManager_registerUdpSession holds the arguments for a server call to SessionManager.registerUdpSession.
  3029. type SessionManager_registerUdpSession struct {
  3030. Ctx context.Context
  3031. Options capnp.CallOptions
  3032. Params SessionManager_registerUdpSession_Params
  3033. Results SessionManager_registerUdpSession_Results
  3034. }
  3035. // SessionManager_unregisterUdpSession holds the arguments for a server call to SessionManager.unregisterUdpSession.
  3036. type SessionManager_unregisterUdpSession struct {
  3037. Ctx context.Context
  3038. Options capnp.CallOptions
  3039. Params SessionManager_unregisterUdpSession_Params
  3040. Results SessionManager_unregisterUdpSession_Results
  3041. }
  3042. type SessionManager_registerUdpSession_Params struct{ capnp.Struct }
  3043. // SessionManager_registerUdpSession_Params_TypeID is the unique identifier for the type SessionManager_registerUdpSession_Params.
  3044. const SessionManager_registerUdpSession_Params_TypeID = 0x904e297b87fbecea
  3045. func NewSessionManager_registerUdpSession_Params(s *capnp.Segment) (SessionManager_registerUdpSession_Params, error) {
  3046. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 16, PointerCount: 3})
  3047. return SessionManager_registerUdpSession_Params{st}, err
  3048. }
  3049. func NewRootSessionManager_registerUdpSession_Params(s *capnp.Segment) (SessionManager_registerUdpSession_Params, error) {
  3050. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 16, PointerCount: 3})
  3051. return SessionManager_registerUdpSession_Params{st}, err
  3052. }
  3053. func ReadRootSessionManager_registerUdpSession_Params(msg *capnp.Message) (SessionManager_registerUdpSession_Params, error) {
  3054. root, err := msg.RootPtr()
  3055. return SessionManager_registerUdpSession_Params{root.Struct()}, err
  3056. }
  3057. func (s SessionManager_registerUdpSession_Params) String() string {
  3058. str, _ := text.Marshal(0x904e297b87fbecea, s.Struct)
  3059. return str
  3060. }
  3061. func (s SessionManager_registerUdpSession_Params) SessionId() ([]byte, error) {
  3062. p, err := s.Struct.Ptr(0)
  3063. return []byte(p.Data()), err
  3064. }
  3065. func (s SessionManager_registerUdpSession_Params) HasSessionId() bool {
  3066. p, err := s.Struct.Ptr(0)
  3067. return p.IsValid() || err != nil
  3068. }
  3069. func (s SessionManager_registerUdpSession_Params) SetSessionId(v []byte) error {
  3070. return s.Struct.SetData(0, v)
  3071. }
  3072. func (s SessionManager_registerUdpSession_Params) DstIp() ([]byte, error) {
  3073. p, err := s.Struct.Ptr(1)
  3074. return []byte(p.Data()), err
  3075. }
  3076. func (s SessionManager_registerUdpSession_Params) HasDstIp() bool {
  3077. p, err := s.Struct.Ptr(1)
  3078. return p.IsValid() || err != nil
  3079. }
  3080. func (s SessionManager_registerUdpSession_Params) SetDstIp(v []byte) error {
  3081. return s.Struct.SetData(1, v)
  3082. }
  3083. func (s SessionManager_registerUdpSession_Params) DstPort() uint16 {
  3084. return s.Struct.Uint16(0)
  3085. }
  3086. func (s SessionManager_registerUdpSession_Params) SetDstPort(v uint16) {
  3087. s.Struct.SetUint16(0, v)
  3088. }
  3089. func (s SessionManager_registerUdpSession_Params) CloseAfterIdleHint() int64 {
  3090. return int64(s.Struct.Uint64(8))
  3091. }
  3092. func (s SessionManager_registerUdpSession_Params) SetCloseAfterIdleHint(v int64) {
  3093. s.Struct.SetUint64(8, uint64(v))
  3094. }
  3095. func (s SessionManager_registerUdpSession_Params) TraceContext() (string, error) {
  3096. p, err := s.Struct.Ptr(2)
  3097. return p.Text(), err
  3098. }
  3099. func (s SessionManager_registerUdpSession_Params) HasTraceContext() bool {
  3100. p, err := s.Struct.Ptr(2)
  3101. return p.IsValid() || err != nil
  3102. }
  3103. func (s SessionManager_registerUdpSession_Params) TraceContextBytes() ([]byte, error) {
  3104. p, err := s.Struct.Ptr(2)
  3105. return p.TextBytes(), err
  3106. }
  3107. func (s SessionManager_registerUdpSession_Params) SetTraceContext(v string) error {
  3108. return s.Struct.SetText(2, v)
  3109. }
  3110. // SessionManager_registerUdpSession_Params_List is a list of SessionManager_registerUdpSession_Params.
  3111. type SessionManager_registerUdpSession_Params_List struct{ capnp.List }
  3112. // NewSessionManager_registerUdpSession_Params creates a new list of SessionManager_registerUdpSession_Params.
  3113. func NewSessionManager_registerUdpSession_Params_List(s *capnp.Segment, sz int32) (SessionManager_registerUdpSession_Params_List, error) {
  3114. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 16, PointerCount: 3}, sz)
  3115. return SessionManager_registerUdpSession_Params_List{l}, err
  3116. }
  3117. func (s SessionManager_registerUdpSession_Params_List) At(i int) SessionManager_registerUdpSession_Params {
  3118. return SessionManager_registerUdpSession_Params{s.List.Struct(i)}
  3119. }
  3120. func (s SessionManager_registerUdpSession_Params_List) Set(i int, v SessionManager_registerUdpSession_Params) error {
  3121. return s.List.SetStruct(i, v.Struct)
  3122. }
  3123. func (s SessionManager_registerUdpSession_Params_List) String() string {
  3124. str, _ := text.MarshalList(0x904e297b87fbecea, s.List)
  3125. return str
  3126. }
  3127. // SessionManager_registerUdpSession_Params_Promise is a wrapper for a SessionManager_registerUdpSession_Params promised by a client call.
  3128. type SessionManager_registerUdpSession_Params_Promise struct{ *capnp.Pipeline }
  3129. func (p SessionManager_registerUdpSession_Params_Promise) Struct() (SessionManager_registerUdpSession_Params, error) {
  3130. s, err := p.Pipeline.Struct()
  3131. return SessionManager_registerUdpSession_Params{s}, err
  3132. }
  3133. type SessionManager_registerUdpSession_Results struct{ capnp.Struct }
  3134. // SessionManager_registerUdpSession_Results_TypeID is the unique identifier for the type SessionManager_registerUdpSession_Results.
  3135. const SessionManager_registerUdpSession_Results_TypeID = 0x8635c6b4f45bf5cd
  3136. func NewSessionManager_registerUdpSession_Results(s *capnp.Segment) (SessionManager_registerUdpSession_Results, error) {
  3137. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
  3138. return SessionManager_registerUdpSession_Results{st}, err
  3139. }
  3140. func NewRootSessionManager_registerUdpSession_Results(s *capnp.Segment) (SessionManager_registerUdpSession_Results, error) {
  3141. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
  3142. return SessionManager_registerUdpSession_Results{st}, err
  3143. }
  3144. func ReadRootSessionManager_registerUdpSession_Results(msg *capnp.Message) (SessionManager_registerUdpSession_Results, error) {
  3145. root, err := msg.RootPtr()
  3146. return SessionManager_registerUdpSession_Results{root.Struct()}, err
  3147. }
  3148. func (s SessionManager_registerUdpSession_Results) String() string {
  3149. str, _ := text.Marshal(0x8635c6b4f45bf5cd, s.Struct)
  3150. return str
  3151. }
  3152. func (s SessionManager_registerUdpSession_Results) Result() (RegisterUdpSessionResponse, error) {
  3153. p, err := s.Struct.Ptr(0)
  3154. return RegisterUdpSessionResponse{Struct: p.Struct()}, err
  3155. }
  3156. func (s SessionManager_registerUdpSession_Results) HasResult() bool {
  3157. p, err := s.Struct.Ptr(0)
  3158. return p.IsValid() || err != nil
  3159. }
  3160. func (s SessionManager_registerUdpSession_Results) SetResult(v RegisterUdpSessionResponse) error {
  3161. return s.Struct.SetPtr(0, v.Struct.ToPtr())
  3162. }
  3163. // NewResult sets the result field to a newly
  3164. // allocated RegisterUdpSessionResponse struct, preferring placement in s's segment.
  3165. func (s SessionManager_registerUdpSession_Results) NewResult() (RegisterUdpSessionResponse, error) {
  3166. ss, err := NewRegisterUdpSessionResponse(s.Struct.Segment())
  3167. if err != nil {
  3168. return RegisterUdpSessionResponse{}, err
  3169. }
  3170. err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
  3171. return ss, err
  3172. }
  3173. // SessionManager_registerUdpSession_Results_List is a list of SessionManager_registerUdpSession_Results.
  3174. type SessionManager_registerUdpSession_Results_List struct{ capnp.List }
  3175. // NewSessionManager_registerUdpSession_Results creates a new list of SessionManager_registerUdpSession_Results.
  3176. func NewSessionManager_registerUdpSession_Results_List(s *capnp.Segment, sz int32) (SessionManager_registerUdpSession_Results_List, error) {
  3177. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
  3178. return SessionManager_registerUdpSession_Results_List{l}, err
  3179. }
  3180. func (s SessionManager_registerUdpSession_Results_List) At(i int) SessionManager_registerUdpSession_Results {
  3181. return SessionManager_registerUdpSession_Results{s.List.Struct(i)}
  3182. }
  3183. func (s SessionManager_registerUdpSession_Results_List) Set(i int, v SessionManager_registerUdpSession_Results) error {
  3184. return s.List.SetStruct(i, v.Struct)
  3185. }
  3186. func (s SessionManager_registerUdpSession_Results_List) String() string {
  3187. str, _ := text.MarshalList(0x8635c6b4f45bf5cd, s.List)
  3188. return str
  3189. }
  3190. // SessionManager_registerUdpSession_Results_Promise is a wrapper for a SessionManager_registerUdpSession_Results promised by a client call.
  3191. type SessionManager_registerUdpSession_Results_Promise struct{ *capnp.Pipeline }
  3192. func (p SessionManager_registerUdpSession_Results_Promise) Struct() (SessionManager_registerUdpSession_Results, error) {
  3193. s, err := p.Pipeline.Struct()
  3194. return SessionManager_registerUdpSession_Results{s}, err
  3195. }
  3196. func (p SessionManager_registerUdpSession_Results_Promise) Result() RegisterUdpSessionResponse_Promise {
  3197. return RegisterUdpSessionResponse_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
  3198. }
  3199. type SessionManager_unregisterUdpSession_Params struct{ capnp.Struct }
  3200. // SessionManager_unregisterUdpSession_Params_TypeID is the unique identifier for the type SessionManager_unregisterUdpSession_Params.
  3201. const SessionManager_unregisterUdpSession_Params_TypeID = 0x96b74375ce9b0ef6
  3202. func NewSessionManager_unregisterUdpSession_Params(s *capnp.Segment) (SessionManager_unregisterUdpSession_Params, error) {
  3203. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2})
  3204. return SessionManager_unregisterUdpSession_Params{st}, err
  3205. }
  3206. func NewRootSessionManager_unregisterUdpSession_Params(s *capnp.Segment) (SessionManager_unregisterUdpSession_Params, error) {
  3207. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2})
  3208. return SessionManager_unregisterUdpSession_Params{st}, err
  3209. }
  3210. func ReadRootSessionManager_unregisterUdpSession_Params(msg *capnp.Message) (SessionManager_unregisterUdpSession_Params, error) {
  3211. root, err := msg.RootPtr()
  3212. return SessionManager_unregisterUdpSession_Params{root.Struct()}, err
  3213. }
  3214. func (s SessionManager_unregisterUdpSession_Params) String() string {
  3215. str, _ := text.Marshal(0x96b74375ce9b0ef6, s.Struct)
  3216. return str
  3217. }
  3218. func (s SessionManager_unregisterUdpSession_Params) SessionId() ([]byte, error) {
  3219. p, err := s.Struct.Ptr(0)
  3220. return []byte(p.Data()), err
  3221. }
  3222. func (s SessionManager_unregisterUdpSession_Params) HasSessionId() bool {
  3223. p, err := s.Struct.Ptr(0)
  3224. return p.IsValid() || err != nil
  3225. }
  3226. func (s SessionManager_unregisterUdpSession_Params) SetSessionId(v []byte) error {
  3227. return s.Struct.SetData(0, v)
  3228. }
  3229. func (s SessionManager_unregisterUdpSession_Params) Message() (string, error) {
  3230. p, err := s.Struct.Ptr(1)
  3231. return p.Text(), err
  3232. }
  3233. func (s SessionManager_unregisterUdpSession_Params) HasMessage() bool {
  3234. p, err := s.Struct.Ptr(1)
  3235. return p.IsValid() || err != nil
  3236. }
  3237. func (s SessionManager_unregisterUdpSession_Params) MessageBytes() ([]byte, error) {
  3238. p, err := s.Struct.Ptr(1)
  3239. return p.TextBytes(), err
  3240. }
  3241. func (s SessionManager_unregisterUdpSession_Params) SetMessage(v string) error {
  3242. return s.Struct.SetText(1, v)
  3243. }
  3244. // SessionManager_unregisterUdpSession_Params_List is a list of SessionManager_unregisterUdpSession_Params.
  3245. type SessionManager_unregisterUdpSession_Params_List struct{ capnp.List }
  3246. // NewSessionManager_unregisterUdpSession_Params creates a new list of SessionManager_unregisterUdpSession_Params.
  3247. func NewSessionManager_unregisterUdpSession_Params_List(s *capnp.Segment, sz int32) (SessionManager_unregisterUdpSession_Params_List, error) {
  3248. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2}, sz)
  3249. return SessionManager_unregisterUdpSession_Params_List{l}, err
  3250. }
  3251. func (s SessionManager_unregisterUdpSession_Params_List) At(i int) SessionManager_unregisterUdpSession_Params {
  3252. return SessionManager_unregisterUdpSession_Params{s.List.Struct(i)}
  3253. }
  3254. func (s SessionManager_unregisterUdpSession_Params_List) Set(i int, v SessionManager_unregisterUdpSession_Params) error {
  3255. return s.List.SetStruct(i, v.Struct)
  3256. }
  3257. func (s SessionManager_unregisterUdpSession_Params_List) String() string {
  3258. str, _ := text.MarshalList(0x96b74375ce9b0ef6, s.List)
  3259. return str
  3260. }
  3261. // SessionManager_unregisterUdpSession_Params_Promise is a wrapper for a SessionManager_unregisterUdpSession_Params promised by a client call.
  3262. type SessionManager_unregisterUdpSession_Params_Promise struct{ *capnp.Pipeline }
  3263. func (p SessionManager_unregisterUdpSession_Params_Promise) Struct() (SessionManager_unregisterUdpSession_Params, error) {
  3264. s, err := p.Pipeline.Struct()
  3265. return SessionManager_unregisterUdpSession_Params{s}, err
  3266. }
  3267. type SessionManager_unregisterUdpSession_Results struct{ capnp.Struct }
  3268. // SessionManager_unregisterUdpSession_Results_TypeID is the unique identifier for the type SessionManager_unregisterUdpSession_Results.
  3269. const SessionManager_unregisterUdpSession_Results_TypeID = 0xf24ec4ab5891b676
  3270. func NewSessionManager_unregisterUdpSession_Results(s *capnp.Segment) (SessionManager_unregisterUdpSession_Results, error) {
  3271. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
  3272. return SessionManager_unregisterUdpSession_Results{st}, err
  3273. }
  3274. func NewRootSessionManager_unregisterUdpSession_Results(s *capnp.Segment) (SessionManager_unregisterUdpSession_Results, error) {
  3275. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
  3276. return SessionManager_unregisterUdpSession_Results{st}, err
  3277. }
  3278. func ReadRootSessionManager_unregisterUdpSession_Results(msg *capnp.Message) (SessionManager_unregisterUdpSession_Results, error) {
  3279. root, err := msg.RootPtr()
  3280. return SessionManager_unregisterUdpSession_Results{root.Struct()}, err
  3281. }
  3282. func (s SessionManager_unregisterUdpSession_Results) String() string {
  3283. str, _ := text.Marshal(0xf24ec4ab5891b676, s.Struct)
  3284. return str
  3285. }
  3286. // SessionManager_unregisterUdpSession_Results_List is a list of SessionManager_unregisterUdpSession_Results.
  3287. type SessionManager_unregisterUdpSession_Results_List struct{ capnp.List }
  3288. // NewSessionManager_unregisterUdpSession_Results creates a new list of SessionManager_unregisterUdpSession_Results.
  3289. func NewSessionManager_unregisterUdpSession_Results_List(s *capnp.Segment, sz int32) (SessionManager_unregisterUdpSession_Results_List, error) {
  3290. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
  3291. return SessionManager_unregisterUdpSession_Results_List{l}, err
  3292. }
  3293. func (s SessionManager_unregisterUdpSession_Results_List) At(i int) SessionManager_unregisterUdpSession_Results {
  3294. return SessionManager_unregisterUdpSession_Results{s.List.Struct(i)}
  3295. }
  3296. func (s SessionManager_unregisterUdpSession_Results_List) Set(i int, v SessionManager_unregisterUdpSession_Results) error {
  3297. return s.List.SetStruct(i, v.Struct)
  3298. }
  3299. func (s SessionManager_unregisterUdpSession_Results_List) String() string {
  3300. str, _ := text.MarshalList(0xf24ec4ab5891b676, s.List)
  3301. return str
  3302. }
  3303. // SessionManager_unregisterUdpSession_Results_Promise is a wrapper for a SessionManager_unregisterUdpSession_Results promised by a client call.
  3304. type SessionManager_unregisterUdpSession_Results_Promise struct{ *capnp.Pipeline }
  3305. func (p SessionManager_unregisterUdpSession_Results_Promise) Struct() (SessionManager_unregisterUdpSession_Results, error) {
  3306. s, err := p.Pipeline.Struct()
  3307. return SessionManager_unregisterUdpSession_Results{s}, err
  3308. }
  3309. type UpdateConfigurationResponse struct{ capnp.Struct }
  3310. // UpdateConfigurationResponse_TypeID is the unique identifier for the type UpdateConfigurationResponse.
  3311. const UpdateConfigurationResponse_TypeID = 0xdb58ff694ba05cf9
  3312. func NewUpdateConfigurationResponse(s *capnp.Segment) (UpdateConfigurationResponse, error) {
  3313. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 1})
  3314. return UpdateConfigurationResponse{st}, err
  3315. }
  3316. func NewRootUpdateConfigurationResponse(s *capnp.Segment) (UpdateConfigurationResponse, error) {
  3317. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 1})
  3318. return UpdateConfigurationResponse{st}, err
  3319. }
  3320. func ReadRootUpdateConfigurationResponse(msg *capnp.Message) (UpdateConfigurationResponse, error) {
  3321. root, err := msg.RootPtr()
  3322. return UpdateConfigurationResponse{root.Struct()}, err
  3323. }
  3324. func (s UpdateConfigurationResponse) String() string {
  3325. str, _ := text.Marshal(0xdb58ff694ba05cf9, s.Struct)
  3326. return str
  3327. }
  3328. func (s UpdateConfigurationResponse) LatestAppliedVersion() int32 {
  3329. return int32(s.Struct.Uint32(0))
  3330. }
  3331. func (s UpdateConfigurationResponse) SetLatestAppliedVersion(v int32) {
  3332. s.Struct.SetUint32(0, uint32(v))
  3333. }
  3334. func (s UpdateConfigurationResponse) Err() (string, error) {
  3335. p, err := s.Struct.Ptr(0)
  3336. return p.Text(), err
  3337. }
  3338. func (s UpdateConfigurationResponse) HasErr() bool {
  3339. p, err := s.Struct.Ptr(0)
  3340. return p.IsValid() || err != nil
  3341. }
  3342. func (s UpdateConfigurationResponse) ErrBytes() ([]byte, error) {
  3343. p, err := s.Struct.Ptr(0)
  3344. return p.TextBytes(), err
  3345. }
  3346. func (s UpdateConfigurationResponse) SetErr(v string) error {
  3347. return s.Struct.SetText(0, v)
  3348. }
  3349. // UpdateConfigurationResponse_List is a list of UpdateConfigurationResponse.
  3350. type UpdateConfigurationResponse_List struct{ capnp.List }
  3351. // NewUpdateConfigurationResponse creates a new list of UpdateConfigurationResponse.
  3352. func NewUpdateConfigurationResponse_List(s *capnp.Segment, sz int32) (UpdateConfigurationResponse_List, error) {
  3353. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 1}, sz)
  3354. return UpdateConfigurationResponse_List{l}, err
  3355. }
  3356. func (s UpdateConfigurationResponse_List) At(i int) UpdateConfigurationResponse {
  3357. return UpdateConfigurationResponse{s.List.Struct(i)}
  3358. }
  3359. func (s UpdateConfigurationResponse_List) Set(i int, v UpdateConfigurationResponse) error {
  3360. return s.List.SetStruct(i, v.Struct)
  3361. }
  3362. func (s UpdateConfigurationResponse_List) String() string {
  3363. str, _ := text.MarshalList(0xdb58ff694ba05cf9, s.List)
  3364. return str
  3365. }
  3366. // UpdateConfigurationResponse_Promise is a wrapper for a UpdateConfigurationResponse promised by a client call.
  3367. type UpdateConfigurationResponse_Promise struct{ *capnp.Pipeline }
  3368. func (p UpdateConfigurationResponse_Promise) Struct() (UpdateConfigurationResponse, error) {
  3369. s, err := p.Pipeline.Struct()
  3370. return UpdateConfigurationResponse{s}, err
  3371. }
  3372. type ConfigurationManager struct{ Client capnp.Client }
  3373. // ConfigurationManager_TypeID is the unique identifier for the type ConfigurationManager.
  3374. const ConfigurationManager_TypeID = 0xb48edfbdaa25db04
  3375. func (c ConfigurationManager) UpdateConfiguration(ctx context.Context, params func(ConfigurationManager_updateConfiguration_Params) error, opts ...capnp.CallOption) ConfigurationManager_updateConfiguration_Results_Promise {
  3376. if c.Client == nil {
  3377. return ConfigurationManager_updateConfiguration_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
  3378. }
  3379. call := &capnp.Call{
  3380. Ctx: ctx,
  3381. Method: capnp.Method{
  3382. InterfaceID: 0xb48edfbdaa25db04,
  3383. MethodID: 0,
  3384. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:ConfigurationManager",
  3385. MethodName: "updateConfiguration",
  3386. },
  3387. Options: capnp.NewCallOptions(opts),
  3388. }
  3389. if params != nil {
  3390. call.ParamsSize = capnp.ObjectSize{DataSize: 8, PointerCount: 1}
  3391. call.ParamsFunc = func(s capnp.Struct) error { return params(ConfigurationManager_updateConfiguration_Params{Struct: s}) }
  3392. }
  3393. return ConfigurationManager_updateConfiguration_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
  3394. }
  3395. type ConfigurationManager_Server interface {
  3396. UpdateConfiguration(ConfigurationManager_updateConfiguration) error
  3397. }
  3398. func ConfigurationManager_ServerToClient(s ConfigurationManager_Server) ConfigurationManager {
  3399. c, _ := s.(server.Closer)
  3400. return ConfigurationManager{Client: server.New(ConfigurationManager_Methods(nil, s), c)}
  3401. }
  3402. func ConfigurationManager_Methods(methods []server.Method, s ConfigurationManager_Server) []server.Method {
  3403. if cap(methods) == 0 {
  3404. methods = make([]server.Method, 0, 1)
  3405. }
  3406. methods = append(methods, server.Method{
  3407. Method: capnp.Method{
  3408. InterfaceID: 0xb48edfbdaa25db04,
  3409. MethodID: 0,
  3410. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:ConfigurationManager",
  3411. MethodName: "updateConfiguration",
  3412. },
  3413. Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
  3414. call := ConfigurationManager_updateConfiguration{c, opts, ConfigurationManager_updateConfiguration_Params{Struct: p}, ConfigurationManager_updateConfiguration_Results{Struct: r}}
  3415. return s.UpdateConfiguration(call)
  3416. },
  3417. ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 1},
  3418. })
  3419. return methods
  3420. }
  3421. // ConfigurationManager_updateConfiguration holds the arguments for a server call to ConfigurationManager.updateConfiguration.
  3422. type ConfigurationManager_updateConfiguration struct {
  3423. Ctx context.Context
  3424. Options capnp.CallOptions
  3425. Params ConfigurationManager_updateConfiguration_Params
  3426. Results ConfigurationManager_updateConfiguration_Results
  3427. }
  3428. type ConfigurationManager_updateConfiguration_Params struct{ capnp.Struct }
  3429. // ConfigurationManager_updateConfiguration_Params_TypeID is the unique identifier for the type ConfigurationManager_updateConfiguration_Params.
  3430. const ConfigurationManager_updateConfiguration_Params_TypeID = 0xb177ca2526a3ca76
  3431. func NewConfigurationManager_updateConfiguration_Params(s *capnp.Segment) (ConfigurationManager_updateConfiguration_Params, error) {
  3432. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 1})
  3433. return ConfigurationManager_updateConfiguration_Params{st}, err
  3434. }
  3435. func NewRootConfigurationManager_updateConfiguration_Params(s *capnp.Segment) (ConfigurationManager_updateConfiguration_Params, error) {
  3436. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 1})
  3437. return ConfigurationManager_updateConfiguration_Params{st}, err
  3438. }
  3439. func ReadRootConfigurationManager_updateConfiguration_Params(msg *capnp.Message) (ConfigurationManager_updateConfiguration_Params, error) {
  3440. root, err := msg.RootPtr()
  3441. return ConfigurationManager_updateConfiguration_Params{root.Struct()}, err
  3442. }
  3443. func (s ConfigurationManager_updateConfiguration_Params) String() string {
  3444. str, _ := text.Marshal(0xb177ca2526a3ca76, s.Struct)
  3445. return str
  3446. }
  3447. func (s ConfigurationManager_updateConfiguration_Params) Version() int32 {
  3448. return int32(s.Struct.Uint32(0))
  3449. }
  3450. func (s ConfigurationManager_updateConfiguration_Params) SetVersion(v int32) {
  3451. s.Struct.SetUint32(0, uint32(v))
  3452. }
  3453. func (s ConfigurationManager_updateConfiguration_Params) Config() ([]byte, error) {
  3454. p, err := s.Struct.Ptr(0)
  3455. return []byte(p.Data()), err
  3456. }
  3457. func (s ConfigurationManager_updateConfiguration_Params) HasConfig() bool {
  3458. p, err := s.Struct.Ptr(0)
  3459. return p.IsValid() || err != nil
  3460. }
  3461. func (s ConfigurationManager_updateConfiguration_Params) SetConfig(v []byte) error {
  3462. return s.Struct.SetData(0, v)
  3463. }
  3464. // ConfigurationManager_updateConfiguration_Params_List is a list of ConfigurationManager_updateConfiguration_Params.
  3465. type ConfigurationManager_updateConfiguration_Params_List struct{ capnp.List }
  3466. // NewConfigurationManager_updateConfiguration_Params creates a new list of ConfigurationManager_updateConfiguration_Params.
  3467. func NewConfigurationManager_updateConfiguration_Params_List(s *capnp.Segment, sz int32) (ConfigurationManager_updateConfiguration_Params_List, error) {
  3468. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 1}, sz)
  3469. return ConfigurationManager_updateConfiguration_Params_List{l}, err
  3470. }
  3471. func (s ConfigurationManager_updateConfiguration_Params_List) At(i int) ConfigurationManager_updateConfiguration_Params {
  3472. return ConfigurationManager_updateConfiguration_Params{s.List.Struct(i)}
  3473. }
  3474. func (s ConfigurationManager_updateConfiguration_Params_List) Set(i int, v ConfigurationManager_updateConfiguration_Params) error {
  3475. return s.List.SetStruct(i, v.Struct)
  3476. }
  3477. func (s ConfigurationManager_updateConfiguration_Params_List) String() string {
  3478. str, _ := text.MarshalList(0xb177ca2526a3ca76, s.List)
  3479. return str
  3480. }
  3481. // ConfigurationManager_updateConfiguration_Params_Promise is a wrapper for a ConfigurationManager_updateConfiguration_Params promised by a client call.
  3482. type ConfigurationManager_updateConfiguration_Params_Promise struct{ *capnp.Pipeline }
  3483. func (p ConfigurationManager_updateConfiguration_Params_Promise) Struct() (ConfigurationManager_updateConfiguration_Params, error) {
  3484. s, err := p.Pipeline.Struct()
  3485. return ConfigurationManager_updateConfiguration_Params{s}, err
  3486. }
  3487. type ConfigurationManager_updateConfiguration_Results struct{ capnp.Struct }
  3488. // ConfigurationManager_updateConfiguration_Results_TypeID is the unique identifier for the type ConfigurationManager_updateConfiguration_Results.
  3489. const ConfigurationManager_updateConfiguration_Results_TypeID = 0x958096448eb3373e
  3490. func NewConfigurationManager_updateConfiguration_Results(s *capnp.Segment) (ConfigurationManager_updateConfiguration_Results, error) {
  3491. st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
  3492. return ConfigurationManager_updateConfiguration_Results{st}, err
  3493. }
  3494. func NewRootConfigurationManager_updateConfiguration_Results(s *capnp.Segment) (ConfigurationManager_updateConfiguration_Results, error) {
  3495. st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
  3496. return ConfigurationManager_updateConfiguration_Results{st}, err
  3497. }
  3498. func ReadRootConfigurationManager_updateConfiguration_Results(msg *capnp.Message) (ConfigurationManager_updateConfiguration_Results, error) {
  3499. root, err := msg.RootPtr()
  3500. return ConfigurationManager_updateConfiguration_Results{root.Struct()}, err
  3501. }
  3502. func (s ConfigurationManager_updateConfiguration_Results) String() string {
  3503. str, _ := text.Marshal(0x958096448eb3373e, s.Struct)
  3504. return str
  3505. }
  3506. func (s ConfigurationManager_updateConfiguration_Results) Result() (UpdateConfigurationResponse, error) {
  3507. p, err := s.Struct.Ptr(0)
  3508. return UpdateConfigurationResponse{Struct: p.Struct()}, err
  3509. }
  3510. func (s ConfigurationManager_updateConfiguration_Results) HasResult() bool {
  3511. p, err := s.Struct.Ptr(0)
  3512. return p.IsValid() || err != nil
  3513. }
  3514. func (s ConfigurationManager_updateConfiguration_Results) SetResult(v UpdateConfigurationResponse) error {
  3515. return s.Struct.SetPtr(0, v.Struct.ToPtr())
  3516. }
  3517. // NewResult sets the result field to a newly
  3518. // allocated UpdateConfigurationResponse struct, preferring placement in s's segment.
  3519. func (s ConfigurationManager_updateConfiguration_Results) NewResult() (UpdateConfigurationResponse, error) {
  3520. ss, err := NewUpdateConfigurationResponse(s.Struct.Segment())
  3521. if err != nil {
  3522. return UpdateConfigurationResponse{}, err
  3523. }
  3524. err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
  3525. return ss, err
  3526. }
  3527. // ConfigurationManager_updateConfiguration_Results_List is a list of ConfigurationManager_updateConfiguration_Results.
  3528. type ConfigurationManager_updateConfiguration_Results_List struct{ capnp.List }
  3529. // NewConfigurationManager_updateConfiguration_Results creates a new list of ConfigurationManager_updateConfiguration_Results.
  3530. func NewConfigurationManager_updateConfiguration_Results_List(s *capnp.Segment, sz int32) (ConfigurationManager_updateConfiguration_Results_List, error) {
  3531. l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
  3532. return ConfigurationManager_updateConfiguration_Results_List{l}, err
  3533. }
  3534. func (s ConfigurationManager_updateConfiguration_Results_List) At(i int) ConfigurationManager_updateConfiguration_Results {
  3535. return ConfigurationManager_updateConfiguration_Results{s.List.Struct(i)}
  3536. }
  3537. func (s ConfigurationManager_updateConfiguration_Results_List) Set(i int, v ConfigurationManager_updateConfiguration_Results) error {
  3538. return s.List.SetStruct(i, v.Struct)
  3539. }
  3540. func (s ConfigurationManager_updateConfiguration_Results_List) String() string {
  3541. str, _ := text.MarshalList(0x958096448eb3373e, s.List)
  3542. return str
  3543. }
  3544. // ConfigurationManager_updateConfiguration_Results_Promise is a wrapper for a ConfigurationManager_updateConfiguration_Results promised by a client call.
  3545. type ConfigurationManager_updateConfiguration_Results_Promise struct{ *capnp.Pipeline }
  3546. func (p ConfigurationManager_updateConfiguration_Results_Promise) Struct() (ConfigurationManager_updateConfiguration_Results, error) {
  3547. s, err := p.Pipeline.Struct()
  3548. return ConfigurationManager_updateConfiguration_Results{s}, err
  3549. }
  3550. func (p ConfigurationManager_updateConfiguration_Results_Promise) Result() UpdateConfigurationResponse_Promise {
  3551. return UpdateConfigurationResponse_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
  3552. }
  3553. type CloudflaredServer struct{ Client capnp.Client }
  3554. // CloudflaredServer_TypeID is the unique identifier for the type CloudflaredServer.
  3555. const CloudflaredServer_TypeID = 0xf548cef9dea2a4a1
  3556. func (c CloudflaredServer) RegisterUdpSession(ctx context.Context, params func(SessionManager_registerUdpSession_Params) error, opts ...capnp.CallOption) SessionManager_registerUdpSession_Results_Promise {
  3557. if c.Client == nil {
  3558. return SessionManager_registerUdpSession_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
  3559. }
  3560. call := &capnp.Call{
  3561. Ctx: ctx,
  3562. Method: capnp.Method{
  3563. InterfaceID: 0x839445a59fb01686,
  3564. MethodID: 0,
  3565. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:SessionManager",
  3566. MethodName: "registerUdpSession",
  3567. },
  3568. Options: capnp.NewCallOptions(opts),
  3569. }
  3570. if params != nil {
  3571. call.ParamsSize = capnp.ObjectSize{DataSize: 16, PointerCount: 3}
  3572. call.ParamsFunc = func(s capnp.Struct) error { return params(SessionManager_registerUdpSession_Params{Struct: s}) }
  3573. }
  3574. return SessionManager_registerUdpSession_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
  3575. }
  3576. func (c CloudflaredServer) UnregisterUdpSession(ctx context.Context, params func(SessionManager_unregisterUdpSession_Params) error, opts ...capnp.CallOption) SessionManager_unregisterUdpSession_Results_Promise {
  3577. if c.Client == nil {
  3578. return SessionManager_unregisterUdpSession_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
  3579. }
  3580. call := &capnp.Call{
  3581. Ctx: ctx,
  3582. Method: capnp.Method{
  3583. InterfaceID: 0x839445a59fb01686,
  3584. MethodID: 1,
  3585. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:SessionManager",
  3586. MethodName: "unregisterUdpSession",
  3587. },
  3588. Options: capnp.NewCallOptions(opts),
  3589. }
  3590. if params != nil {
  3591. call.ParamsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 2}
  3592. call.ParamsFunc = func(s capnp.Struct) error { return params(SessionManager_unregisterUdpSession_Params{Struct: s}) }
  3593. }
  3594. return SessionManager_unregisterUdpSession_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
  3595. }
  3596. func (c CloudflaredServer) UpdateConfiguration(ctx context.Context, params func(ConfigurationManager_updateConfiguration_Params) error, opts ...capnp.CallOption) ConfigurationManager_updateConfiguration_Results_Promise {
  3597. if c.Client == nil {
  3598. return ConfigurationManager_updateConfiguration_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
  3599. }
  3600. call := &capnp.Call{
  3601. Ctx: ctx,
  3602. Method: capnp.Method{
  3603. InterfaceID: 0xb48edfbdaa25db04,
  3604. MethodID: 0,
  3605. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:ConfigurationManager",
  3606. MethodName: "updateConfiguration",
  3607. },
  3608. Options: capnp.NewCallOptions(opts),
  3609. }
  3610. if params != nil {
  3611. call.ParamsSize = capnp.ObjectSize{DataSize: 8, PointerCount: 1}
  3612. call.ParamsFunc = func(s capnp.Struct) error { return params(ConfigurationManager_updateConfiguration_Params{Struct: s}) }
  3613. }
  3614. return ConfigurationManager_updateConfiguration_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
  3615. }
  3616. type CloudflaredServer_Server interface {
  3617. RegisterUdpSession(SessionManager_registerUdpSession) error
  3618. UnregisterUdpSession(SessionManager_unregisterUdpSession) error
  3619. UpdateConfiguration(ConfigurationManager_updateConfiguration) error
  3620. }
  3621. func CloudflaredServer_ServerToClient(s CloudflaredServer_Server) CloudflaredServer {
  3622. c, _ := s.(server.Closer)
  3623. return CloudflaredServer{Client: server.New(CloudflaredServer_Methods(nil, s), c)}
  3624. }
  3625. func CloudflaredServer_Methods(methods []server.Method, s CloudflaredServer_Server) []server.Method {
  3626. if cap(methods) == 0 {
  3627. methods = make([]server.Method, 0, 3)
  3628. }
  3629. methods = append(methods, server.Method{
  3630. Method: capnp.Method{
  3631. InterfaceID: 0x839445a59fb01686,
  3632. MethodID: 0,
  3633. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:SessionManager",
  3634. MethodName: "registerUdpSession",
  3635. },
  3636. Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
  3637. call := SessionManager_registerUdpSession{c, opts, SessionManager_registerUdpSession_Params{Struct: p}, SessionManager_registerUdpSession_Results{Struct: r}}
  3638. return s.RegisterUdpSession(call)
  3639. },
  3640. ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 1},
  3641. })
  3642. methods = append(methods, server.Method{
  3643. Method: capnp.Method{
  3644. InterfaceID: 0x839445a59fb01686,
  3645. MethodID: 1,
  3646. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:SessionManager",
  3647. MethodName: "unregisterUdpSession",
  3648. },
  3649. Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
  3650. call := SessionManager_unregisterUdpSession{c, opts, SessionManager_unregisterUdpSession_Params{Struct: p}, SessionManager_unregisterUdpSession_Results{Struct: r}}
  3651. return s.UnregisterUdpSession(call)
  3652. },
  3653. ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 0},
  3654. })
  3655. methods = append(methods, server.Method{
  3656. Method: capnp.Method{
  3657. InterfaceID: 0xb48edfbdaa25db04,
  3658. MethodID: 0,
  3659. InterfaceName: "tunnelrpc/proto/tunnelrpc.capnp:ConfigurationManager",
  3660. MethodName: "updateConfiguration",
  3661. },
  3662. Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
  3663. call := ConfigurationManager_updateConfiguration{c, opts, ConfigurationManager_updateConfiguration_Params{Struct: p}, ConfigurationManager_updateConfiguration_Results{Struct: r}}
  3664. return s.UpdateConfiguration(call)
  3665. },
  3666. ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 1},
  3667. })
  3668. return methods
  3669. }
  3670. const schema_db8274f9144abc7e = "x\xda\xccZ}t\x14\xd7u\xbfw\xde.#\xc9\x12" +
  3671. "\xbb\xe3\xd9\x04!E^G\x07\xda\x9a\x04cAIm" +
  3672. "\x9aD\x12\x96\x88\x85\x01k\xb4\x90\xe3\x83q\x8eG\xbb" +
  3673. "O\xd2\xa8\xbb3\x9b\x99Y\x19\x11;|\x04\x8c\xf1\xb1" +
  3674. "\x1dC\xc06Jh\x08\x8e\xdbS9IM\x8c\x9b\xa6" +
  3675. "\xc7nM\x1a\xc7\x89\x1d\x13\xe3cR\x08N\xd3\x94\xd0" +
  3676. "6>\xa4\xae\xbf\x9a\xc3i\xea\xe9\xb93;\x1f\xda\x15" +
  3677. "H\x82\xf6\x9c\xfe\x07w\xef\xbc\xf7\xee\xef\xfd\xee}\xbf" +
  3678. "w\x9f\xae{\xb1\xb6Ch\x8boN\x00(G\xe2\xb3" +
  3679. "\x1c\xbe\xe0\xd5M\x07\xe7\xff\xfd6P\xaeFt>\xff" +
  3680. "\xcc\xca\xd4y{\xdbi\x883\x11`\xc9\xe3\xe28\xca" +
  3681. "\xcf\x8a\"\x80\xfc]\xf1_\x01\x9d{>\xf8\xe4W\x1f" +
  3682. "\xef\xde\xfb\x05\x90\xaef\xa13\xe0\x92\x035\x9bP>" +
  3683. "\\C\x9e\xdf\xac\xd9)7\xd4\x8a\x00\xce\xcd\xd2\xa2\xdb" +
  3684. "R\xaf\x1c#\xef\xe8\xd01\x1a\xfa\xbd\x9a\xf5(\xd7\x92" +
  3685. "\x9b\x1c\xaf\xa5\xa1?^\xf8\xc9\xa1\x8f\xed{i;H" +
  3686. "W\x0b\x13\x86~\xabv\x1c\xe5\xda:\xd7\xb3\xee\x16@" +
  3687. "\xe7\x9d\xbd\x8dO|\xed\xd8\x0fw\x80\xb4\x10\xa1\xbc\xd2" +
  3688. "\x96\xba:\x01P^Z\xf7\x97\x80\xce\xcb\xef\xdd\xf6\xee" +
  3689. "\x91\x1f,\xbd\x07\xa4E\xe4\x80\xe4p\xa2\xae\x8f\x1c\xde" +
  3690. "\xaak\x07t\xde8\xf7_;?w\xcd\x9a\x87@Y" +
  3691. "\x84\x82?\x84t\xc5J\x01p\xc9\xc2+\xd2\x08\xe8\xb4" +
  3692. "\xafx\xf9\xbbMK\x1e\xde[\xb1v\x81<\x95\xfa\xf5" +
  3693. "(\xf3zZ\x91Z\x7f'\xa0\xf3\xc9?z\xea\xc1\xae" +
  3694. "\x87\xb7\xec\x03ii0\xe1\xf3\xf5\xf7\xd1\x84g\xebi" +
  3695. "\xc2\xff\x9c\xfd\xe5c\xa5\x1b\xbf\xf3pyE\xee(\xf1" +
  3696. "\x86\xf5\xe4\xf0\xe1\x06\x1a\xa1ud\xfe\x1d\xdf{\xfe\xa9" +
  3697. "G@Y\x82\xe8\xbc\xde\xff\x91\x13\xec\xc0\xf8iX\x87" +
  3698. "\"-p\xc9\xd6\x86W\x11P\xde\xe7\xfa\xfe\xe4\xa3\xcf" +
  3699. "\xfc\xcdCO\xed\xfc2(\x0b\x11\x01\\8\xcf7," +
  3700. "\xa0\xc1\xa4\xd94\xdb\xde\x93\xcf\xae)\xec\x1e;\xe4\x01" +
  3701. "\xe4\xfe~\xc3\xec\xc5\x02\xc4\x9c\xed=\xbf-\xac{," +
  3702. "\xf3X\x19\xba8\xfd\xd46\xbb\x95\xe2\xee\x99\xed\xc6\xbd" +
  3703. "\xf4ggoY\xfd\xed\x81?\x8f|\xcb\x13\xe3\xf4\xed" +
  3704. "\xce\x81\xb7\x8f&\xfb\x0aOL\x86\x08O\xfc\x0c\xe5\xad" +
  3705. "\x09B\xe4\xee\x04\xad\xf1\x9bW\xdd\\\xbb\xf1\xec\x8a'" +
  3706. "AZ\xe2\x0fs*\xb1\x8d\x86\x19y\xf1\xb1\xdf\x9b\xff" +
  3707. "\xe2\x9d\x87AY\x8a\xe1\xee\xd0o(\xbf\xe5~\x1b;" +
  3708. "=\x7f\xfc\xd9_<x\xa4\x8ad\xab\x93\xe3(\xf3\xa4" +
  3709. "\x8b{\xf2S\xf2n\xfa\x97\x13\xbb\x9d\xbd\xaf>\xfaw" +
  3710. "G*\x09\xec\xaek4\xb9\x07=\xbf%\x0f$\xdd\xf8" +
  3711. "\xee;:\xf6\x91\x9a\xaf\xbe\xf3\xf4\xa4\xeeOK{P" +
  3712. "~Y\xa2\x09~$\x11\x93>\xd0\x83\xaf?\xd7\x16\xfb" +
  3713. "N\x94j\x85+\x9bh\xad;\xae$\x87\x96\xdf,o" +
  3714. "\xd0\xdf\xdc\xf6\\\x05(\xae\xe3|y\x13\xca7\xc84" +
  3715. "\xdaR\x99\x9cc\x1f\x1b\xde)\x9d\xf9\xe9\xf3\x1e(^" +
  3716. "\xe4\xc7\xe517r\x996n\xe5m_\xda\x13?\xfb" +
  3717. "\xa5\x17hq\x91$\x88\xd7\xb8\xfcL\x1dB\xf9\x9a\x94" +
  3718. ";rj\x0e\x03t\x9a\x9e\xfc\xe3o-\xcf\x9dzi" +
  3719. "\xb2\x1dy|N+\xcaO\xcf\xa1\xc9\x0f\xcf!T\xcf" +
  3720. ",<\xfc\xb9_?p\xfc\xb5r(\xee\xe4\x0d\x8d." +
  3721. "k\xe67\xd2\xe4\xe77\x1c\xbcYsn=]\x89\x8c" +
  3722. "\xeb\xd9\xdd\xf8\xcf(\xab\x8d4\xdc\xed\x8d4\\@\xd1" +
  3723. "\xc9\xbc\x8f6\x8e\xa1|\xca\xf5>\xe1\x8e-\x9cU\xe7" +
  3724. "n\xf9\xe9'_\x8f\xb0\xeaT\xe3\x95D\x875\x9f\xbe" +
  3725. "m\xb8\xf6\xee3g\xa2\xcb:\xde\xe8\"\xfck\xf7\xd3" +
  3726. "\xbf\xfd\x87G\x86n\xff\xd6\xb1\xb3\x11&\xd5\xce=D" +
  3727. "\x9f\xfe\xfb\x9f\xbd\xf1\xc5s\x85\xdc\xbf\xb89\xe3\xefN" +
  3728. "\xed\xdca7\xa4\xb9TS\xe6\xa4\x1b\xba[O\xf6\xbe" +
  3729. "\x11\x05\x1c\x9bLrhi\xa2\xc1\x97\xde\xd1\xc97\\" +
  3730. "\x7f\xeb\x1bUT\xfbD\xd30\xcaJ\x13}\xb0\xbai" +
  3731. "'\xca\xbcy\x0e\x803\xf2W\xbbo}\xe2\xfbk\xde" +
  3732. "\xf6\xd2\xd8]\xcb\xba\xe6~Z\xcb\x83\x9f\xef\xba\xe5\x86" +
  3733. "\xd6\xa3oG\xc3P\x9a)\xb1d\xad\x99f\x1a\xb8\xfe" +
  3734. "\xdc\xa7\xe6?\xf8\x83\xb7+\xf6\xcau\xdc\xd5\xbc\x1e\xe5" +
  3735. "\x03\xcd\x04\xd7~r~s\xc5\x9f\xbe\xd6\x94hz\xb7" +
  3736. "\x02\xdaY\xe4\xfbl\xf3\x18\xca'\x9a]\x98\x9a_ " +
  3737. "F\x7f\xed\xeb\x87\xfe\xf1\xfc\xb1\x9b\xde\xab\x8a\xe1\xf9\x96" +
  3738. "=(\xff\xbc\x85\x86=\xd5\"\xca\xa7Z~\x1f\xc0\xb9" +
  3739. "\xe7\xf4g6\xbe\xfa\x85w\xde\xab\xa4\x98\x07|\xcb6" +
  3740. "\x94\xcf\xba_\xfc\xb2\x85\x18\xfb\xc8\xda\x7f\xdb|n\xdf" +
  3741. "\x07\x7f[5\xf6\xd6\xab\xc6P\xde\x7f\x15y\xee\xbb\xea" +
  3742. "\x05\xf9\x9a4\xa5\xe2+\xe2cm]\x9b_:\x1f\xd9" +
  3743. "*)\xbd\x89\xe0yX\xfc\xca\x99-\xbf\xf8\xcc\xef&" +
  3744. "\x90/}\xa5\xbbSi\x82\xe7\xae7\xf7\xdf\xf4\xc5\x0d" +
  3745. "\xdfx?B\x90\xee\xf4\xb7\xe9S\xbb\xa4\xeb<o\x16" +
  3746. "\xe3\xd9EE\xd3\xb0\x8dE\xbe!{mV-\xea\xc5" +
  3747. "e\x9d%{\x88\xeb\xb6\x96Um\xde\xc7\xadb\xc2\xd0" +
  3748. "-\xde\x8b\xa8$Y\x0c \x86\x00\x92:\x0c\xa0\xdc\xc1" +
  3749. "P\xc9\x0b(!\xa6\x88.\x92F\xc6!\x86\x8a-\xa0" +
  3750. "$\x08)*\xb4\xd2g[\x01\x94<Ce\xa3\x80\xc8" +
  3751. "R\xc8\x00\xa4\xd2\x1e\x00e#Ce\xbb\x80N\x91\x9b" +
  3752. "\x05U\xe7:$\xecn\xd3\xc4z\x10\xb0\x1e\xd01\xb9" +
  3753. "m\x8e\xaa\xfdyH\xf0\x88Y\x1c\xbe\xd3\xc6\x06\x10\xb0" +
  3754. "\x01\xd0\x192J\xa6\xb5N\xb7Q\xcb\xf7\xf1\x01\x93[" +
  3755. "8\x84\xb3@\xc0Y\x80A\x90\xb1\x0b\x05\x99\xe1\x96\xa5" +
  3756. "\x19\xfa\xeavUW\x07\xb9I\xe1\xd5\xb08@p\x94" +
  3757. "\xa1\x7f\xe8Imc H\x0bE\x0cO\x1d\xf4y+" +
  3758. "}x\x1c\x04\xa9EtL>\xa8Y67q]\xae" +
  3759. "\xe8\x0e\xcd\x0c\xbd\x03\x9d\x92\xee\xfd\x80\xdc\xf4~H\xd0" +
  3760. "\xa4\x1d\xd8\x8b\xd3X\xe2\x8dy\x8d\xebv\x8f\xce\x06\x8c" +
  3761. "\x0a\xf4WN\x86\xfe\xca2\xfa\xdb#\xe8o]\x0e\xa0" +
  3762. "\xdc\xc5P\xb9W@\x89\x95\xe1\xdf\xb1\x00@\xd9\xc2P" +
  3763. "\xb9_@'\xebM\x92\x03\x80\x00\xd8\x01\xae\xda%\x93" +
  3764. "[d\x9b\x0d\xd8\xcb\xd0\xc5\x7f6\xe0\xe6\x11nR\x04" +
  3765. "\xfe~$T3;\x14\xec\xd9\x94\xcc\xea\xde\xa8Y\xb6" +
  3766. "\xa6\x0f\xaeu\xed\xbdF\"\xafeG)\xb6zw\xb5" +
  3767. "-\xcb\x00\x10\xa5\x0f\xac\x07@A\x92\x96\x03\xb4k\x83" +
  3768. "\xbaar'\xa7YYC\xd79\xb0\xac\xbd\xb9_\xcd" +
  3769. "\xabz\x96\x07\xd3\x89\x17\x9a\xce\x9b&\xc3\xcd\x11n^" +
  3770. "\xabFX=\xafW5\xd5\x82\x05\xa0\xd4\x07\xa0v\xaf" +
  3771. "\x07P\xba\x18*\xbd\x11PW\x13\xa8\xab\x18*\xb7F" +
  3772. "@]G\xa0\xf62T6\x08\xe8\x18\xa66\xa8\xe97" +
  3773. "r`f\x94\x99\x96\xad\xab\x05N\x00\x96\xc1\xd9l\x14" +
  3774. "m\xcd\xd0-L\x86\x87\x12 &#\xb0\xd5L\xc5U" +
  3775. "\x8f\xaa\xd7\xfa\\\xf3\xa9f\xe8\xf3\xfa\xb8U\xca\xdbh" +
  3776. ")\xb1 \x9e\x86e\x00J\x0dC%%`\xbb\xe9\xfd" +
  3777. "\x9e\x0c5\xc7\xff\xde\xdc\x01\x96\xa9`\xee\xbb\xfb\"\xb4" +
  3778. "\xf3\xb1\xdc\xb18\xa4\x1d\x96\xa1\xdcEPng\xa8<" +
  3779. "D\xfcD\x8f\x9f\x0f\x8c\x01(\x0f1T\xbe\"\xa0\x14" +
  3780. "\x13R\x18C\x94\xf6Sqy\x94\xa1\xf2u\x01\x1d\xcb" +
  3781. "\x9b\xba\x070\xe7c\x9e\xceYvO\xd1\xff\xdf\xe6\x9c" +
  3782. "e\xf7\x1a\xa6\x8d\"\x08(\x02\xd1\xdc\xb0x\xe7\x00%" +
  3783. "bO.\xcfo\xd2\x98nc\x1c\x04\x8c\x13\x08\xa6\x9a" +
  3784. "\xe57\x1aT\x82\xf8F\xbb\xbcc a\x1d\xc0\xd4Y" +
  3785. "\xea\x91\xac\xb3\xc4\xec!\xaf\x88\xf8 \\C\x84\xfa\x03" +
  3786. "\x86\xca\x1fF@h\xa30\xaec\xa8|\\@G\xcd" +
  3787. "f\x8d\x92n\xaf\x05\xa6\x0eV$Q\x86C\"k\xf2" +
  3788. "\x90R\xfe\xb4\xb5\x17\xac\x16\x86>\xa0\x0d\x96L\xd5\x8e" +
  3789. "lW\xa9\x98Sm>\xe1\xa72Wh\xc3\xa6\"K" +
  3790. " `.\x91,~\xf5\xab\xa2\x0b+XQ\xa0\xfa&" +
  3791. "\x03\x8a\x98\xf1Q\x86\xca\xf5\x93\xef\xf7\xe6\x02\xb7,u" +
  3792. "\x90W\x15\x9fY\x17\x01H\xe7Y\x82\x80\x0e5:\xd3" +
  3793. "\xaeu#E\x9b\xd6R\xef8\xdeb\x88\xa5\xf3\x18*" +
  3794. "\xd7\x09\xd8\x80\xef;\xdej\x16\xee\x09\xb7-\xcdM\xd3" +
  3795. "01\x19\x9e\xfcex\xb2\xe5\x09\xd0\xd0\xbb\xb8\xadj" +
  3796. "y\xa4l\x0f\xf4q\x05\x88\xd3\xabZ!\x84\x9ey^" +
  3797. "\xaf\x9a\xa0t\x8b\xee\x1d\xa5K\x92\xa1\xf2!\x01\x9dA" +
  3798. "\xa2r/7Q3rkT\xdd\xc80\x9e\x0dy~" +
  3799. "yS\xf7\xf1\xb4\xcb\x9c\x19\x8ec\xf220A\x04\xa6" +
  3800. "H\x11D\xcaEk\xa8\x07\x02\x02l\xed\x0f\xcbEP" +
  3801. "zwQN\xdd\xcbP\xd9\x1b9\xcfv\xaf\x8c\xd6\x8b" +
  3802. "X\x0ac\x00\xd2~\xe2\xcf^\x86\xcaAa\xa2j\xe0" +
  3803. "#\\\xb7\xbb\xb4A\x10\xb9\x15Zi\x89]\xda \x07" +
  3804. "f]n\x19\xaf\x9d\x16*F\xbfe\xe4\xb9\xcd\xbbx" +
  3805. "6\xafRf\x8ep\xef\xf72M\xfd\x8d\x9e\x9a\xd7}" +
  3806. "U9\xe6\xf1\x9by\xa2-\x92g\xad!\xb5\x03\x98\x17" +
  3807. ".\x0e\x93O\xe4\xa1\xd2J[EU\xb7\xaa\xca\x8f|" +
  3808. "\xf1Ux%\xa6\x8a@a\xea\x05\xd5'\xf8\xfer\xcb" +
  3809. "Y\xf9\xf8\x89\xc6\xb9<\x8c3\x08sY\x18f b" +
  3810. "b `\x0c\xb0=\xeb\x0eX\x15k|\xbakK\xf8" +
  3811. "\x0a2\xe6*H\xffB\x8e~\x17C\x92\x0e\x81 5" +
  3812. "\x88\x8e\xbf~\xf4\xbf\x17\xab\xd4`|\xea\xf2u\x8bK" +
  3813. "A\xb4h\xc6H\x12-\x9b,\x89\xccI\xce\xdcm\xd1" +
  3814. "\x1c*\x9f\xb9\xbb\xc7\xc2t\xf1\xce\\\x00\xe9\xc0!\x00" +
  3815. "\xe5 C\xe5\x1b\x02\xb6{B\x11\x93a\x13\xaa\xcc{" +
  3816. "O\x01\xad2 \x9dU\xf3\xe1\x11\xec\x98\xbc\x98W\xb3" +
  3817. "\xbc\x1b\xcb\xa2\x0f\x10A@t\x93\xadP4\xb9e\xa1" +
  3818. "f\xe8JI\xcdk\xcc\x1e\x0d\x94\xbb^*\xf4\x9a|" +
  3819. "DC\xa3du\xda6/\x88E\xdb\xaa\xd2\xf5\xd3\x80" +
  3820. "\xc9\xaf\xc1\xae\xbe\x0ce\x1e\x89\xdf\x0e\x86\xca\xaa\x08L" +
  3821. "=t*\xdf\xc4PY\x1b\xc2\xa4|\x0f@Y\xcbP" +
  3822. "\xb9C\xc0D\xa9\xa4\x05'\x8f\x937\xb2\xee\xceCb" +
  3823. "\x8dZ\xa8<\x80z,\xa1\x8f\x17\x0c\x9b\xe7G=\xd6" +
  3824. "\xe6\xc2\xb8gZ7+\x0a\xbfwn\xfe\x7fR\xac\xb1" +
  3825. "\xa9\xae\x90\xed\x1eR\x15[\xd0:\xd9\x16,\x8e\x04\xe3" +
  3826. "\xaf{u\x7f\x18\x8c\xf8'|4(N\xbc@[\xeb" +
  3827. "#_\x8e\xa8\x13\xc4\x9bC\x9f\xa9\xeb\xf1d%\xcbM" +
  3828. "\xd0UFV\xcdWW\x19V\xb8\xa0\xbe\x9ei\x05\x89" +
  3829. "NM\xe9,\x1a\xba\xcb\xd3\xeb\xfd\xe1\xe5Q\\\x09\x90" +
  3830. "\xd9\x88\x0c3\xdb1\xc4I\xde\x8a\xcb\x012w\x91\xfd" +
  3831. "^\x0c\xa1\x92w`\x13@f\x0b\xd9\xef\xc7\xe0\xaa-" +
  3832. "\xef\xc2q\x80\xcc\xfdd~\x94\xdcc\xccMmy\x9f" +
  3833. ";\xfc^\xb2\x1f${<\x96\xc28\x80|\x00\x17\x00" +
  3834. "d\x1e%\xfb\x11\xb2\xcf\x12R8\x0b@>\x8c\xc3\x00" +
  3835. "\x99'\xc9\xfe\x0c\xd9\xc5x\x0a\xdd.6\x9a\x00\x99\xbf" +
  3836. "&\xfb\xf7\xc9^\xd3\x98\xc2\x1a\x00\xf9\xa8k\x7f\x8e\xec" +
  3837. "?&{\xed\xdc\x14\xd6\x02\xc8?\xc2m\x00\x99\x1f\x92" +
  3838. "\xfd5\xb2\xd7a\x8ad\xb6|\x1c\xc7\x002\xaf\x91\xfd" +
  3839. "\x9f\xc8~\xc5\xac\x14^\x01 \xff\xdc]\xcfI\xb2\xff" +
  3840. "\x8a\xec\xf5\xb1\x14is\xf9\x97x\x08 \xf3+\xb2\xff" +
  3841. "\x07\xd9\x1b\xc4\x146\x00\xc8\xbfq\xe3:G\xf6\x1a\xa1" +
  3842. "\xe2z\xeb\xf3\xba\xe2\x0e\xcb\x0c+\xe0\x0c/\xd7*\x9c" +
  3843. "pC\xc5D\xd8L\x07\xc4\x04\xa0S4\x8c\xfc\x9a\x89" +
  3844. "\xf9\x92\xb0\xd5A\xcb\xbf/'\xc3^\" \x19\x03u" +
  3845. "\x08\x09C\xef\xc9\x05\x05\xad\xb2z\xfa+\xd1\xac\xce\x92" +
  3846. "m\x94\x8a\x90&F\xe6\x82\x1ab\x96\xf4\x15\xa6QX" +
  3847. "\x8b\xdc,h\xba\x9a\x9f\xa2\xaa\xd6\x82\x80\xb5P.`" +
  3848. "\xfe\xd8\x17/\xb1\x17\xbe\xfd\x07\xbcf\x17\xe2\xb5\xb8V" +
  3849. "\x1d\xac\x10\x1d\x0b\xa6\x10\x1d\x09=RD\xd3#j\xbe" +
  3850. "T\xad\xe9/Mh\xf6q+AZc\xaa{\x8e\xdf" +
  3851. "\x1d\xac(n\x17\x14\\\xeb\xaaU\x88\xab\xb8D\xbdJ" +
  3852. "q\x8d\x87\x97\x18?\xf6\xa5\xad\x91\x1b`^\xb5\xb9e" +
  3853. "w\x16\xb1\x98\xd7x\xee\xd3\xdcLD\x85IT\x8f\xcd" +
  3854. "\xe4\xe4\x9b\xa0\xff\xdc\xe01\xf2 B \x08\xe5\xe0g" +
  3855. "\x88\xf0 \xb7\xbd\x7f\xf5\xe8\x03\x86\xa7\xbc\xd0\xba\xac1" +
  3856. "\\9\xc8\xa6\xde\xa3\xb0\xdd;]\xb5=\x93\xeaN\xab" +
  3857. "\x10\xa37\x9b\x9a\x19\x8c:\x89\xc8\xf5/i\x91\x96\x1d" +
  3858. "\xa5\xc1\x06\x86\xcaP$\x0d8\x9d\xd59\x86J1\x94" +
  3859. "\x1d\x85\xbe\xb0_*1\xa1\xdc0\xa5\xf3\xbb\xc8P\xb9" +
  3860. "K\xc0\x84Z\xb2\x870\x19\xbe\xa7M\x00db#\x8f" +
  3861. "\xf2\xa1G\xcfq\xc0\x8d~zGN\xf5\xe0\xa1g\xba" +
  3862. "\xd7\xfb\xe9\x05\xef_\x13\xa7\xdc\xd2\xe0\xc5c\xba\xaa\xc2" +
  3863. "\xe7Q\x82\xa6&n7\xbaz\xdb\x7fSB\xff\xcd@" +
  3864. ":\xbc\x09\x04\xe9/D\x0c\xdfI\xd0\x7f\x16\x91\x0e\x98" +
  3865. " H\xfbD\x14\x82g?\xf4\x9f\xf7\xa4]\xf7\x81 " +
  3866. "\xed\x10\x91\x05\xafv\xe8\xf7\xd1\xdbF\xeb\x10\x04\xe9n" +
  3867. "\x11c\xc1{)\xfa]x\xe9\xb3\xc3 H\x9a\x88\xf1" +
  3868. "\xe0A\x10\xfd\xe7!\xe9\xf6m H\xeb\xc2\x161\xb4" +
  3869. "{qt\xa0\xe3\xe7\x02\xa4\xddl\x98\xd80\xf6\xbc\x00" +
  3870. ":\xd0\xf1/\x8b\xecB\xb7E\xd7\xcb\xefpB\"\xab" +
  3871. "\xda\xbc\x83\x14\xb8W\x10\xb1\\\x11\xa1\x03\x95\x18F\x1e" +
  3872. "!\"\xfd\xad\xcb\xea\xe9T\xe5\xcf%)\\\x7f\x94K" +
  3873. "\xac\xd7\x17i\xf5{\xe5\xa6\xdcG\x8f\x8c>\xecv\x80" +
  3874. "Qi\x14\xa6P\xf5\x17)\xbb\xde\xe2\xc3\xd4`\x9e\xdc" +
  3875. "\xbd:\x98\xe58\x15\xfc\x1f3TNFR\xff\x04\x19" +
  3876. "_a\xa8\xbc\x1e\x91\xbb\xa7\xa8\x1e\x9cd\xa8\xbc\x1b\xbe" +
  3877. "\x95\xbcu\x1f\x80\xf2.\xc3\xbe\x88z\x93\xfe\x9b\x1c\x7f" +
  3878. "G\x1a\xc7\xd5n\xe8i\xb78\xee\x01\xc8\xd4\x90\xf6I" +
  3879. "\xb9\xda-\xe6i7\x09\xfb\x012I\xb2\x7f(\xaa\xdd" +
  3880. "\xe6\xe2z\x80L#\xd9\xe7\xe1\xc4\xdb\xbfX2Cy" +
  3881. "\x9d7\x06Wi\xfa\xa4\x82\xc0\x7f\xbcA{\x85\xaa\xe5" +
  3882. "K&\x87\xca\xdbNOWD\"y\xaf:^\x1b6" +
  3883. "C\xe4\xcc\xa1\x15\xb4hg\xd0\x98\x99\xfa,\xcc\x1b\xa5" +
  3884. "\xdc@^5y\xce\xdd}\xa4r\xd1\xcb\xe2J\x0dF" +
  3885. "\xfe\xe6\x02 |\x1a\x8f\xa4\xc24N\xd8n\xd34L" +
  3886. "\xa8\xb8\xd6,\x0e\xaf5\xc1\xadf}x\xb1\x94\x84\x8e" +
  3887. "\xf2\xcd\xb2?\xbc\x8d\xa5\xb3j\xc9\xe2U\xf8\x00\xe3f" +
  3888. "\xd0\xb6\xb3\x86\x8cR>\xd7\xc7A\xb4\xcd\xd1\xaa\xcbd" +
  3889. "|\xba\xd5\x9ay5\xb3\xde\xad\x99\xfeS/\xfa/\xba" +
  3890. "\x922\x06\x82\xb4\x9aj\xa6\xff\xea\x88\xfe\xdf\x1cH\x9d" +
  3891. "\xe3 H\x9f\xa0\x9a\xe9\xbf\xb8\xa3\xff\x8a,\xb5\xbd\x08" +
  3892. "\x82\xd4\x16y\x01\xf3Q\xaaz\x01\xf3~H\xd8\x9a\xf7" +
  3893. "C\xf90\x16*Oc\xaae\xd1\x8eH\xcd\xe5\xb6\x9c" +
  3894. "\xda\xbd\x16\xd1\xe5\xbc\x17M\xfb}%\xf8\xeb\x9f\xff\x9b" +
  3895. "\xa6\xa0\x7f\xb6\xfeO\x00\x00\x00\xff\xff\xb4\x0bQ\xfc"
  3896. func init() {
  3897. schemas.Register(schema_db8274f9144abc7e,
  3898. 0x82c325a07ad22a65,
  3899. 0x839445a59fb01686,
  3900. 0x83ced0145b2f114b,
  3901. 0x84cb9536a2cf6d3c,
  3902. 0x85c8cea1ab1894f3,
  3903. 0x8635c6b4f45bf5cd,
  3904. 0x904e297b87fbecea,
  3905. 0x9496331ab9cd463f,
  3906. 0x958096448eb3373e,
  3907. 0x96b74375ce9b0ef6,
  3908. 0x97b3c5c260257622,
  3909. 0x9b87b390babc2ccf,
  3910. 0xa29a916d4ebdd894,
  3911. 0xa353a3556df74984,
  3912. 0xa766b24d4fe5da35,
  3913. 0xab6d5210c1f26687,
  3914. 0xb046e578094b1ead,
  3915. 0xb177ca2526a3ca76,
  3916. 0xb48edfbdaa25db04,
  3917. 0xb4bf9861fe035d04,
  3918. 0xb5f39f082b9ac18a,
  3919. 0xb70431c0dc014915,
  3920. 0xc082ef6e0d42ed1d,
  3921. 0xc5d6e311876a3604,
  3922. 0xc793e50592935b4a,
  3923. 0xcbd96442ae3bb01a,
  3924. 0xd4d18de97bb12de3,
  3925. 0xdb58ff694ba05cf9,
  3926. 0xdbaa9d03d52b62dc,
  3927. 0xdc3ed6801961e502,
  3928. 0xe3e37d096a5b564e,
  3929. 0xe5ceae5d6897d7be,
  3930. 0xe6646dec8feaa6ee,
  3931. 0xea50d822450d1f17,
  3932. 0xea58385c65416035,
  3933. 0xf24ec4ab5891b676,
  3934. 0xf2c122394f447e8e,
  3935. 0xf2c68e2547ec3866,
  3936. 0xf41a0f001ad49e46,
  3937. 0xf548cef9dea2a4a1,
  3938. 0xf5f383d2785edb86,
  3939. 0xf71695ec7fe85497,
  3940. 0xf9cb7f4431a307d0,
  3941. 0xfc5edf80e39c0796,
  3942. 0xfeac5c8f4899ef7c)
  3943. }