operations.d.ts 209 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783
  1. /**
  2. * Copyright 2021 Google LLC
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. import Long = require('long');
  17. import * as $protobuf from "protobufjs";
  18. /** Namespace google. */
  19. export namespace google {
  20. /** Namespace longrunning. */
  21. namespace longrunning {
  22. /** Represents an Operations */
  23. class Operations extends $protobuf.rpc.Service {
  24. /**
  25. * Constructs a new Operations service.
  26. * @param rpcImpl RPC implementation
  27. * @param [requestDelimited=false] Whether requests are length-delimited
  28. * @param [responseDelimited=false] Whether responses are length-delimited
  29. */
  30. constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
  31. /**
  32. * Creates new Operations service using the specified rpc implementation.
  33. * @param rpcImpl RPC implementation
  34. * @param [requestDelimited=false] Whether requests are length-delimited
  35. * @param [responseDelimited=false] Whether responses are length-delimited
  36. * @returns RPC service. Useful where requests and/or responses are streamed.
  37. */
  38. public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations;
  39. /**
  40. * Calls ListOperations.
  41. * @param request ListOperationsRequest message or plain object
  42. * @param callback Node-style callback called with the error, if any, and ListOperationsResponse
  43. */
  44. public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void;
  45. /**
  46. * Calls ListOperations.
  47. * @param request ListOperationsRequest message or plain object
  48. * @returns Promise
  49. */
  50. public listOperations(request: google.longrunning.IListOperationsRequest): Promise<google.longrunning.ListOperationsResponse>;
  51. /**
  52. * Calls GetOperation.
  53. * @param request GetOperationRequest message or plain object
  54. * @param callback Node-style callback called with the error, if any, and Operation
  55. */
  56. public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void;
  57. /**
  58. * Calls GetOperation.
  59. * @param request GetOperationRequest message or plain object
  60. * @returns Promise
  61. */
  62. public getOperation(request: google.longrunning.IGetOperationRequest): Promise<google.longrunning.Operation>;
  63. /**
  64. * Calls DeleteOperation.
  65. * @param request DeleteOperationRequest message or plain object
  66. * @param callback Node-style callback called with the error, if any, and Empty
  67. */
  68. public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void;
  69. /**
  70. * Calls DeleteOperation.
  71. * @param request DeleteOperationRequest message or plain object
  72. * @returns Promise
  73. */
  74. public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise<google.protobuf.Empty>;
  75. /**
  76. * Calls CancelOperation.
  77. * @param request CancelOperationRequest message or plain object
  78. * @param callback Node-style callback called with the error, if any, and Empty
  79. */
  80. public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void;
  81. /**
  82. * Calls CancelOperation.
  83. * @param request CancelOperationRequest message or plain object
  84. * @returns Promise
  85. */
  86. public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise<google.protobuf.Empty>;
  87. /**
  88. * Calls WaitOperation.
  89. * @param request WaitOperationRequest message or plain object
  90. * @param callback Node-style callback called with the error, if any, and Operation
  91. */
  92. public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void;
  93. /**
  94. * Calls WaitOperation.
  95. * @param request WaitOperationRequest message or plain object
  96. * @returns Promise
  97. */
  98. public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise<google.longrunning.Operation>;
  99. }
  100. namespace Operations {
  101. /**
  102. * Callback as used by {@link google.longrunning.Operations#listOperations}.
  103. * @param error Error, if any
  104. * @param [response] ListOperationsResponse
  105. */
  106. type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
  107. /**
  108. * Callback as used by {@link google.longrunning.Operations#getOperation}.
  109. * @param error Error, if any
  110. * @param [response] Operation
  111. */
  112. type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
  113. /**
  114. * Callback as used by {@link google.longrunning.Operations#deleteOperation}.
  115. * @param error Error, if any
  116. * @param [response] Empty
  117. */
  118. type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
  119. /**
  120. * Callback as used by {@link google.longrunning.Operations#cancelOperation}.
  121. * @param error Error, if any
  122. * @param [response] Empty
  123. */
  124. type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
  125. /**
  126. * Callback as used by {@link google.longrunning.Operations#waitOperation}.
  127. * @param error Error, if any
  128. * @param [response] Operation
  129. */
  130. type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
  131. }
  132. /** Properties of an Operation. */
  133. interface IOperation {
  134. /** Operation name */
  135. name?: (string|null);
  136. /** Operation metadata */
  137. metadata?: (google.protobuf.IAny|null);
  138. /** Operation done */
  139. done?: (boolean|null);
  140. /** Operation error */
  141. error?: (google.rpc.IStatus|null);
  142. /** Operation response */
  143. response?: (google.protobuf.IAny|null);
  144. }
  145. /** Represents an Operation. */
  146. class Operation implements IOperation {
  147. /**
  148. * Constructs a new Operation.
  149. * @param [properties] Properties to set
  150. */
  151. constructor(properties?: google.longrunning.IOperation);
  152. /** Operation name. */
  153. public name: string;
  154. /** Operation metadata. */
  155. public metadata?: (google.protobuf.IAny|null);
  156. /** Operation done. */
  157. public done: boolean;
  158. /** Operation error. */
  159. public error?: (google.rpc.IStatus|null);
  160. /** Operation response. */
  161. public response?: (google.protobuf.IAny|null);
  162. /** Operation result. */
  163. public result?: ("error"|"response");
  164. /**
  165. * Creates a new Operation instance using the specified properties.
  166. * @param [properties] Properties to set
  167. * @returns Operation instance
  168. */
  169. public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation;
  170. /**
  171. * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
  172. * @param message Operation message or plain object to encode
  173. * @param [writer] Writer to encode to
  174. * @returns Writer
  175. */
  176. public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
  177. /**
  178. * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
  179. * @param message Operation message or plain object to encode
  180. * @param [writer] Writer to encode to
  181. * @returns Writer
  182. */
  183. public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
  184. /**
  185. * Decodes an Operation message from the specified reader or buffer.
  186. * @param reader Reader or buffer to decode from
  187. * @param [length] Message length if known beforehand
  188. * @returns Operation
  189. * @throws {Error} If the payload is not a reader or valid buffer
  190. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  191. */
  192. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.Operation;
  193. /**
  194. * Decodes an Operation message from the specified reader or buffer, length delimited.
  195. * @param reader Reader or buffer to decode from
  196. * @returns Operation
  197. * @throws {Error} If the payload is not a reader or valid buffer
  198. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  199. */
  200. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.Operation;
  201. /**
  202. * Verifies an Operation message.
  203. * @param message Plain object to verify
  204. * @returns `null` if valid, otherwise the reason why it is not
  205. */
  206. public static verify(message: { [k: string]: any }): (string|null);
  207. /**
  208. * Creates an Operation message from a plain object. Also converts values to their respective internal types.
  209. * @param object Plain object
  210. * @returns Operation
  211. */
  212. public static fromObject(object: { [k: string]: any }): google.longrunning.Operation;
  213. /**
  214. * Creates a plain object from an Operation message. Also converts values to other types if specified.
  215. * @param message Operation
  216. * @param [options] Conversion options
  217. * @returns Plain object
  218. */
  219. public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
  220. /**
  221. * Converts this Operation to JSON.
  222. * @returns JSON object
  223. */
  224. public toJSON(): { [k: string]: any };
  225. }
  226. /** Properties of a GetOperationRequest. */
  227. interface IGetOperationRequest {
  228. /** GetOperationRequest name */
  229. name?: (string|null);
  230. }
  231. /** Represents a GetOperationRequest. */
  232. class GetOperationRequest implements IGetOperationRequest {
  233. /**
  234. * Constructs a new GetOperationRequest.
  235. * @param [properties] Properties to set
  236. */
  237. constructor(properties?: google.longrunning.IGetOperationRequest);
  238. /** GetOperationRequest name. */
  239. public name: string;
  240. /**
  241. * Creates a new GetOperationRequest instance using the specified properties.
  242. * @param [properties] Properties to set
  243. * @returns GetOperationRequest instance
  244. */
  245. public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest;
  246. /**
  247. * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
  248. * @param message GetOperationRequest message or plain object to encode
  249. * @param [writer] Writer to encode to
  250. * @returns Writer
  251. */
  252. public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
  253. /**
  254. * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
  255. * @param message GetOperationRequest message or plain object to encode
  256. * @param [writer] Writer to encode to
  257. * @returns Writer
  258. */
  259. public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
  260. /**
  261. * Decodes a GetOperationRequest message from the specified reader or buffer.
  262. * @param reader Reader or buffer to decode from
  263. * @param [length] Message length if known beforehand
  264. * @returns GetOperationRequest
  265. * @throws {Error} If the payload is not a reader or valid buffer
  266. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  267. */
  268. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.GetOperationRequest;
  269. /**
  270. * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
  271. * @param reader Reader or buffer to decode from
  272. * @returns GetOperationRequest
  273. * @throws {Error} If the payload is not a reader or valid buffer
  274. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  275. */
  276. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.GetOperationRequest;
  277. /**
  278. * Verifies a GetOperationRequest message.
  279. * @param message Plain object to verify
  280. * @returns `null` if valid, otherwise the reason why it is not
  281. */
  282. public static verify(message: { [k: string]: any }): (string|null);
  283. /**
  284. * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types.
  285. * @param object Plain object
  286. * @returns GetOperationRequest
  287. */
  288. public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest;
  289. /**
  290. * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
  291. * @param message GetOperationRequest
  292. * @param [options] Conversion options
  293. * @returns Plain object
  294. */
  295. public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
  296. /**
  297. * Converts this GetOperationRequest to JSON.
  298. * @returns JSON object
  299. */
  300. public toJSON(): { [k: string]: any };
  301. }
  302. /** Properties of a ListOperationsRequest. */
  303. interface IListOperationsRequest {
  304. /** ListOperationsRequest name */
  305. name?: (string|null);
  306. /** ListOperationsRequest filter */
  307. filter?: (string|null);
  308. /** ListOperationsRequest pageSize */
  309. pageSize?: (number|null);
  310. /** ListOperationsRequest pageToken */
  311. pageToken?: (string|null);
  312. }
  313. /** Represents a ListOperationsRequest. */
  314. class ListOperationsRequest implements IListOperationsRequest {
  315. /**
  316. * Constructs a new ListOperationsRequest.
  317. * @param [properties] Properties to set
  318. */
  319. constructor(properties?: google.longrunning.IListOperationsRequest);
  320. /** ListOperationsRequest name. */
  321. public name: string;
  322. /** ListOperationsRequest filter. */
  323. public filter: string;
  324. /** ListOperationsRequest pageSize. */
  325. public pageSize: number;
  326. /** ListOperationsRequest pageToken. */
  327. public pageToken: string;
  328. /**
  329. * Creates a new ListOperationsRequest instance using the specified properties.
  330. * @param [properties] Properties to set
  331. * @returns ListOperationsRequest instance
  332. */
  333. public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest;
  334. /**
  335. * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
  336. * @param message ListOperationsRequest message or plain object to encode
  337. * @param [writer] Writer to encode to
  338. * @returns Writer
  339. */
  340. public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
  341. /**
  342. * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
  343. * @param message ListOperationsRequest message or plain object to encode
  344. * @param [writer] Writer to encode to
  345. * @returns Writer
  346. */
  347. public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
  348. /**
  349. * Decodes a ListOperationsRequest message from the specified reader or buffer.
  350. * @param reader Reader or buffer to decode from
  351. * @param [length] Message length if known beforehand
  352. * @returns ListOperationsRequest
  353. * @throws {Error} If the payload is not a reader or valid buffer
  354. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  355. */
  356. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsRequest;
  357. /**
  358. * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
  359. * @param reader Reader or buffer to decode from
  360. * @returns ListOperationsRequest
  361. * @throws {Error} If the payload is not a reader or valid buffer
  362. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  363. */
  364. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsRequest;
  365. /**
  366. * Verifies a ListOperationsRequest message.
  367. * @param message Plain object to verify
  368. * @returns `null` if valid, otherwise the reason why it is not
  369. */
  370. public static verify(message: { [k: string]: any }): (string|null);
  371. /**
  372. * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
  373. * @param object Plain object
  374. * @returns ListOperationsRequest
  375. */
  376. public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest;
  377. /**
  378. * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
  379. * @param message ListOperationsRequest
  380. * @param [options] Conversion options
  381. * @returns Plain object
  382. */
  383. public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
  384. /**
  385. * Converts this ListOperationsRequest to JSON.
  386. * @returns JSON object
  387. */
  388. public toJSON(): { [k: string]: any };
  389. }
  390. /** Properties of a ListOperationsResponse. */
  391. interface IListOperationsResponse {
  392. /** ListOperationsResponse operations */
  393. operations?: (google.longrunning.IOperation[]|null);
  394. /** ListOperationsResponse nextPageToken */
  395. nextPageToken?: (string|null);
  396. }
  397. /** Represents a ListOperationsResponse. */
  398. class ListOperationsResponse implements IListOperationsResponse {
  399. /**
  400. * Constructs a new ListOperationsResponse.
  401. * @param [properties] Properties to set
  402. */
  403. constructor(properties?: google.longrunning.IListOperationsResponse);
  404. /** ListOperationsResponse operations. */
  405. public operations: google.longrunning.IOperation[];
  406. /** ListOperationsResponse nextPageToken. */
  407. public nextPageToken: string;
  408. /**
  409. * Creates a new ListOperationsResponse instance using the specified properties.
  410. * @param [properties] Properties to set
  411. * @returns ListOperationsResponse instance
  412. */
  413. public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse;
  414. /**
  415. * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
  416. * @param message ListOperationsResponse message or plain object to encode
  417. * @param [writer] Writer to encode to
  418. * @returns Writer
  419. */
  420. public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
  421. /**
  422. * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
  423. * @param message ListOperationsResponse message or plain object to encode
  424. * @param [writer] Writer to encode to
  425. * @returns Writer
  426. */
  427. public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
  428. /**
  429. * Decodes a ListOperationsResponse message from the specified reader or buffer.
  430. * @param reader Reader or buffer to decode from
  431. * @param [length] Message length if known beforehand
  432. * @returns ListOperationsResponse
  433. * @throws {Error} If the payload is not a reader or valid buffer
  434. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  435. */
  436. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsResponse;
  437. /**
  438. * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
  439. * @param reader Reader or buffer to decode from
  440. * @returns ListOperationsResponse
  441. * @throws {Error} If the payload is not a reader or valid buffer
  442. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  443. */
  444. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsResponse;
  445. /**
  446. * Verifies a ListOperationsResponse message.
  447. * @param message Plain object to verify
  448. * @returns `null` if valid, otherwise the reason why it is not
  449. */
  450. public static verify(message: { [k: string]: any }): (string|null);
  451. /**
  452. * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
  453. * @param object Plain object
  454. * @returns ListOperationsResponse
  455. */
  456. public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse;
  457. /**
  458. * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
  459. * @param message ListOperationsResponse
  460. * @param [options] Conversion options
  461. * @returns Plain object
  462. */
  463. public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
  464. /**
  465. * Converts this ListOperationsResponse to JSON.
  466. * @returns JSON object
  467. */
  468. public toJSON(): { [k: string]: any };
  469. }
  470. /** Properties of a CancelOperationRequest. */
  471. interface ICancelOperationRequest {
  472. /** CancelOperationRequest name */
  473. name?: (string|null);
  474. }
  475. /** Represents a CancelOperationRequest. */
  476. class CancelOperationRequest implements ICancelOperationRequest {
  477. /**
  478. * Constructs a new CancelOperationRequest.
  479. * @param [properties] Properties to set
  480. */
  481. constructor(properties?: google.longrunning.ICancelOperationRequest);
  482. /** CancelOperationRequest name. */
  483. public name: string;
  484. /**
  485. * Creates a new CancelOperationRequest instance using the specified properties.
  486. * @param [properties] Properties to set
  487. * @returns CancelOperationRequest instance
  488. */
  489. public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest;
  490. /**
  491. * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
  492. * @param message CancelOperationRequest message or plain object to encode
  493. * @param [writer] Writer to encode to
  494. * @returns Writer
  495. */
  496. public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
  497. /**
  498. * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
  499. * @param message CancelOperationRequest message or plain object to encode
  500. * @param [writer] Writer to encode to
  501. * @returns Writer
  502. */
  503. public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
  504. /**
  505. * Decodes a CancelOperationRequest message from the specified reader or buffer.
  506. * @param reader Reader or buffer to decode from
  507. * @param [length] Message length if known beforehand
  508. * @returns CancelOperationRequest
  509. * @throws {Error} If the payload is not a reader or valid buffer
  510. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  511. */
  512. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.CancelOperationRequest;
  513. /**
  514. * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
  515. * @param reader Reader or buffer to decode from
  516. * @returns CancelOperationRequest
  517. * @throws {Error} If the payload is not a reader or valid buffer
  518. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  519. */
  520. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.CancelOperationRequest;
  521. /**
  522. * Verifies a CancelOperationRequest message.
  523. * @param message Plain object to verify
  524. * @returns `null` if valid, otherwise the reason why it is not
  525. */
  526. public static verify(message: { [k: string]: any }): (string|null);
  527. /**
  528. * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
  529. * @param object Plain object
  530. * @returns CancelOperationRequest
  531. */
  532. public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest;
  533. /**
  534. * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
  535. * @param message CancelOperationRequest
  536. * @param [options] Conversion options
  537. * @returns Plain object
  538. */
  539. public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
  540. /**
  541. * Converts this CancelOperationRequest to JSON.
  542. * @returns JSON object
  543. */
  544. public toJSON(): { [k: string]: any };
  545. }
  546. /** Properties of a DeleteOperationRequest. */
  547. interface IDeleteOperationRequest {
  548. /** DeleteOperationRequest name */
  549. name?: (string|null);
  550. }
  551. /** Represents a DeleteOperationRequest. */
  552. class DeleteOperationRequest implements IDeleteOperationRequest {
  553. /**
  554. * Constructs a new DeleteOperationRequest.
  555. * @param [properties] Properties to set
  556. */
  557. constructor(properties?: google.longrunning.IDeleteOperationRequest);
  558. /** DeleteOperationRequest name. */
  559. public name: string;
  560. /**
  561. * Creates a new DeleteOperationRequest instance using the specified properties.
  562. * @param [properties] Properties to set
  563. * @returns DeleteOperationRequest instance
  564. */
  565. public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest;
  566. /**
  567. * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
  568. * @param message DeleteOperationRequest message or plain object to encode
  569. * @param [writer] Writer to encode to
  570. * @returns Writer
  571. */
  572. public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
  573. /**
  574. * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
  575. * @param message DeleteOperationRequest message or plain object to encode
  576. * @param [writer] Writer to encode to
  577. * @returns Writer
  578. */
  579. public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
  580. /**
  581. * Decodes a DeleteOperationRequest message from the specified reader or buffer.
  582. * @param reader Reader or buffer to decode from
  583. * @param [length] Message length if known beforehand
  584. * @returns DeleteOperationRequest
  585. * @throws {Error} If the payload is not a reader or valid buffer
  586. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  587. */
  588. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.DeleteOperationRequest;
  589. /**
  590. * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
  591. * @param reader Reader or buffer to decode from
  592. * @returns DeleteOperationRequest
  593. * @throws {Error} If the payload is not a reader or valid buffer
  594. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  595. */
  596. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.DeleteOperationRequest;
  597. /**
  598. * Verifies a DeleteOperationRequest message.
  599. * @param message Plain object to verify
  600. * @returns `null` if valid, otherwise the reason why it is not
  601. */
  602. public static verify(message: { [k: string]: any }): (string|null);
  603. /**
  604. * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
  605. * @param object Plain object
  606. * @returns DeleteOperationRequest
  607. */
  608. public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest;
  609. /**
  610. * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
  611. * @param message DeleteOperationRequest
  612. * @param [options] Conversion options
  613. * @returns Plain object
  614. */
  615. public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
  616. /**
  617. * Converts this DeleteOperationRequest to JSON.
  618. * @returns JSON object
  619. */
  620. public toJSON(): { [k: string]: any };
  621. }
  622. /** Properties of a WaitOperationRequest. */
  623. interface IWaitOperationRequest {
  624. /** WaitOperationRequest name */
  625. name?: (string|null);
  626. /** WaitOperationRequest timeout */
  627. timeout?: (google.protobuf.IDuration|null);
  628. }
  629. /** Represents a WaitOperationRequest. */
  630. class WaitOperationRequest implements IWaitOperationRequest {
  631. /**
  632. * Constructs a new WaitOperationRequest.
  633. * @param [properties] Properties to set
  634. */
  635. constructor(properties?: google.longrunning.IWaitOperationRequest);
  636. /** WaitOperationRequest name. */
  637. public name: string;
  638. /** WaitOperationRequest timeout. */
  639. public timeout?: (google.protobuf.IDuration|null);
  640. /**
  641. * Creates a new WaitOperationRequest instance using the specified properties.
  642. * @param [properties] Properties to set
  643. * @returns WaitOperationRequest instance
  644. */
  645. public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest;
  646. /**
  647. * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
  648. * @param message WaitOperationRequest message or plain object to encode
  649. * @param [writer] Writer to encode to
  650. * @returns Writer
  651. */
  652. public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
  653. /**
  654. * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
  655. * @param message WaitOperationRequest message or plain object to encode
  656. * @param [writer] Writer to encode to
  657. * @returns Writer
  658. */
  659. public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
  660. /**
  661. * Decodes a WaitOperationRequest message from the specified reader or buffer.
  662. * @param reader Reader or buffer to decode from
  663. * @param [length] Message length if known beforehand
  664. * @returns WaitOperationRequest
  665. * @throws {Error} If the payload is not a reader or valid buffer
  666. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  667. */
  668. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.WaitOperationRequest;
  669. /**
  670. * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
  671. * @param reader Reader or buffer to decode from
  672. * @returns WaitOperationRequest
  673. * @throws {Error} If the payload is not a reader or valid buffer
  674. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  675. */
  676. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.WaitOperationRequest;
  677. /**
  678. * Verifies a WaitOperationRequest message.
  679. * @param message Plain object to verify
  680. * @returns `null` if valid, otherwise the reason why it is not
  681. */
  682. public static verify(message: { [k: string]: any }): (string|null);
  683. /**
  684. * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
  685. * @param object Plain object
  686. * @returns WaitOperationRequest
  687. */
  688. public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest;
  689. /**
  690. * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
  691. * @param message WaitOperationRequest
  692. * @param [options] Conversion options
  693. * @returns Plain object
  694. */
  695. public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
  696. /**
  697. * Converts this WaitOperationRequest to JSON.
  698. * @returns JSON object
  699. */
  700. public toJSON(): { [k: string]: any };
  701. }
  702. /** Properties of an OperationInfo. */
  703. interface IOperationInfo {
  704. /** OperationInfo responseType */
  705. responseType?: (string|null);
  706. /** OperationInfo metadataType */
  707. metadataType?: (string|null);
  708. }
  709. /** Represents an OperationInfo. */
  710. class OperationInfo implements IOperationInfo {
  711. /**
  712. * Constructs a new OperationInfo.
  713. * @param [properties] Properties to set
  714. */
  715. constructor(properties?: google.longrunning.IOperationInfo);
  716. /** OperationInfo responseType. */
  717. public responseType: string;
  718. /** OperationInfo metadataType. */
  719. public metadataType: string;
  720. /**
  721. * Creates a new OperationInfo instance using the specified properties.
  722. * @param [properties] Properties to set
  723. * @returns OperationInfo instance
  724. */
  725. public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo;
  726. /**
  727. * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
  728. * @param message OperationInfo message or plain object to encode
  729. * @param [writer] Writer to encode to
  730. * @returns Writer
  731. */
  732. public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
  733. /**
  734. * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
  735. * @param message OperationInfo message or plain object to encode
  736. * @param [writer] Writer to encode to
  737. * @returns Writer
  738. */
  739. public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
  740. /**
  741. * Decodes an OperationInfo message from the specified reader or buffer.
  742. * @param reader Reader or buffer to decode from
  743. * @param [length] Message length if known beforehand
  744. * @returns OperationInfo
  745. * @throws {Error} If the payload is not a reader or valid buffer
  746. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  747. */
  748. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.OperationInfo;
  749. /**
  750. * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
  751. * @param reader Reader or buffer to decode from
  752. * @returns OperationInfo
  753. * @throws {Error} If the payload is not a reader or valid buffer
  754. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  755. */
  756. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.OperationInfo;
  757. /**
  758. * Verifies an OperationInfo message.
  759. * @param message Plain object to verify
  760. * @returns `null` if valid, otherwise the reason why it is not
  761. */
  762. public static verify(message: { [k: string]: any }): (string|null);
  763. /**
  764. * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
  765. * @param object Plain object
  766. * @returns OperationInfo
  767. */
  768. public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo;
  769. /**
  770. * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
  771. * @param message OperationInfo
  772. * @param [options] Conversion options
  773. * @returns Plain object
  774. */
  775. public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
  776. /**
  777. * Converts this OperationInfo to JSON.
  778. * @returns JSON object
  779. */
  780. public toJSON(): { [k: string]: any };
  781. }
  782. }
  783. /** Namespace api. */
  784. namespace api {
  785. /** Properties of a Http. */
  786. interface IHttp {
  787. /** Http rules */
  788. rules?: (google.api.IHttpRule[]|null);
  789. /** Http fullyDecodeReservedExpansion */
  790. fullyDecodeReservedExpansion?: (boolean|null);
  791. }
  792. /** Represents a Http. */
  793. class Http implements IHttp {
  794. /**
  795. * Constructs a new Http.
  796. * @param [properties] Properties to set
  797. */
  798. constructor(properties?: google.api.IHttp);
  799. /** Http rules. */
  800. public rules: google.api.IHttpRule[];
  801. /** Http fullyDecodeReservedExpansion. */
  802. public fullyDecodeReservedExpansion: boolean;
  803. /**
  804. * Creates a new Http instance using the specified properties.
  805. * @param [properties] Properties to set
  806. * @returns Http instance
  807. */
  808. public static create(properties?: google.api.IHttp): google.api.Http;
  809. /**
  810. * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
  811. * @param message Http message or plain object to encode
  812. * @param [writer] Writer to encode to
  813. * @returns Writer
  814. */
  815. public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
  816. /**
  817. * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
  818. * @param message Http message or plain object to encode
  819. * @param [writer] Writer to encode to
  820. * @returns Writer
  821. */
  822. public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
  823. /**
  824. * Decodes a Http message from the specified reader or buffer.
  825. * @param reader Reader or buffer to decode from
  826. * @param [length] Message length if known beforehand
  827. * @returns Http
  828. * @throws {Error} If the payload is not a reader or valid buffer
  829. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  830. */
  831. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
  832. /**
  833. * Decodes a Http message from the specified reader or buffer, length delimited.
  834. * @param reader Reader or buffer to decode from
  835. * @returns Http
  836. * @throws {Error} If the payload is not a reader or valid buffer
  837. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  838. */
  839. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
  840. /**
  841. * Verifies a Http message.
  842. * @param message Plain object to verify
  843. * @returns `null` if valid, otherwise the reason why it is not
  844. */
  845. public static verify(message: { [k: string]: any }): (string|null);
  846. /**
  847. * Creates a Http message from a plain object. Also converts values to their respective internal types.
  848. * @param object Plain object
  849. * @returns Http
  850. */
  851. public static fromObject(object: { [k: string]: any }): google.api.Http;
  852. /**
  853. * Creates a plain object from a Http message. Also converts values to other types if specified.
  854. * @param message Http
  855. * @param [options] Conversion options
  856. * @returns Plain object
  857. */
  858. public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
  859. /**
  860. * Converts this Http to JSON.
  861. * @returns JSON object
  862. */
  863. public toJSON(): { [k: string]: any };
  864. }
  865. /** Properties of a HttpRule. */
  866. interface IHttpRule {
  867. /** HttpRule selector */
  868. selector?: (string|null);
  869. /** HttpRule get */
  870. get?: (string|null);
  871. /** HttpRule put */
  872. put?: (string|null);
  873. /** HttpRule post */
  874. post?: (string|null);
  875. /** HttpRule delete */
  876. "delete"?: (string|null);
  877. /** HttpRule patch */
  878. patch?: (string|null);
  879. /** HttpRule custom */
  880. custom?: (google.api.ICustomHttpPattern|null);
  881. /** HttpRule body */
  882. body?: (string|null);
  883. /** HttpRule responseBody */
  884. responseBody?: (string|null);
  885. /** HttpRule additionalBindings */
  886. additionalBindings?: (google.api.IHttpRule[]|null);
  887. }
  888. /** Represents a HttpRule. */
  889. class HttpRule implements IHttpRule {
  890. /**
  891. * Constructs a new HttpRule.
  892. * @param [properties] Properties to set
  893. */
  894. constructor(properties?: google.api.IHttpRule);
  895. /** HttpRule selector. */
  896. public selector: string;
  897. /** HttpRule get. */
  898. public get: string;
  899. /** HttpRule put. */
  900. public put: string;
  901. /** HttpRule post. */
  902. public post: string;
  903. /** HttpRule delete. */
  904. public delete: string;
  905. /** HttpRule patch. */
  906. public patch: string;
  907. /** HttpRule custom. */
  908. public custom?: (google.api.ICustomHttpPattern|null);
  909. /** HttpRule body. */
  910. public body: string;
  911. /** HttpRule responseBody. */
  912. public responseBody: string;
  913. /** HttpRule additionalBindings. */
  914. public additionalBindings: google.api.IHttpRule[];
  915. /** HttpRule pattern. */
  916. public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
  917. /**
  918. * Creates a new HttpRule instance using the specified properties.
  919. * @param [properties] Properties to set
  920. * @returns HttpRule instance
  921. */
  922. public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
  923. /**
  924. * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
  925. * @param message HttpRule message or plain object to encode
  926. * @param [writer] Writer to encode to
  927. * @returns Writer
  928. */
  929. public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
  930. /**
  931. * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
  932. * @param message HttpRule message or plain object to encode
  933. * @param [writer] Writer to encode to
  934. * @returns Writer
  935. */
  936. public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
  937. /**
  938. * Decodes a HttpRule message from the specified reader or buffer.
  939. * @param reader Reader or buffer to decode from
  940. * @param [length] Message length if known beforehand
  941. * @returns HttpRule
  942. * @throws {Error} If the payload is not a reader or valid buffer
  943. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  944. */
  945. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
  946. /**
  947. * Decodes a HttpRule message from the specified reader or buffer, length delimited.
  948. * @param reader Reader or buffer to decode from
  949. * @returns HttpRule
  950. * @throws {Error} If the payload is not a reader or valid buffer
  951. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  952. */
  953. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
  954. /**
  955. * Verifies a HttpRule message.
  956. * @param message Plain object to verify
  957. * @returns `null` if valid, otherwise the reason why it is not
  958. */
  959. public static verify(message: { [k: string]: any }): (string|null);
  960. /**
  961. * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
  962. * @param object Plain object
  963. * @returns HttpRule
  964. */
  965. public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
  966. /**
  967. * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
  968. * @param message HttpRule
  969. * @param [options] Conversion options
  970. * @returns Plain object
  971. */
  972. public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
  973. /**
  974. * Converts this HttpRule to JSON.
  975. * @returns JSON object
  976. */
  977. public toJSON(): { [k: string]: any };
  978. }
  979. /** Properties of a CustomHttpPattern. */
  980. interface ICustomHttpPattern {
  981. /** CustomHttpPattern kind */
  982. kind?: (string|null);
  983. /** CustomHttpPattern path */
  984. path?: (string|null);
  985. }
  986. /** Represents a CustomHttpPattern. */
  987. class CustomHttpPattern implements ICustomHttpPattern {
  988. /**
  989. * Constructs a new CustomHttpPattern.
  990. * @param [properties] Properties to set
  991. */
  992. constructor(properties?: google.api.ICustomHttpPattern);
  993. /** CustomHttpPattern kind. */
  994. public kind: string;
  995. /** CustomHttpPattern path. */
  996. public path: string;
  997. /**
  998. * Creates a new CustomHttpPattern instance using the specified properties.
  999. * @param [properties] Properties to set
  1000. * @returns CustomHttpPattern instance
  1001. */
  1002. public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
  1003. /**
  1004. * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
  1005. * @param message CustomHttpPattern message or plain object to encode
  1006. * @param [writer] Writer to encode to
  1007. * @returns Writer
  1008. */
  1009. public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
  1010. /**
  1011. * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
  1012. * @param message CustomHttpPattern message or plain object to encode
  1013. * @param [writer] Writer to encode to
  1014. * @returns Writer
  1015. */
  1016. public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
  1017. /**
  1018. * Decodes a CustomHttpPattern message from the specified reader or buffer.
  1019. * @param reader Reader or buffer to decode from
  1020. * @param [length] Message length if known beforehand
  1021. * @returns CustomHttpPattern
  1022. * @throws {Error} If the payload is not a reader or valid buffer
  1023. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1024. */
  1025. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
  1026. /**
  1027. * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
  1028. * @param reader Reader or buffer to decode from
  1029. * @returns CustomHttpPattern
  1030. * @throws {Error} If the payload is not a reader or valid buffer
  1031. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1032. */
  1033. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
  1034. /**
  1035. * Verifies a CustomHttpPattern message.
  1036. * @param message Plain object to verify
  1037. * @returns `null` if valid, otherwise the reason why it is not
  1038. */
  1039. public static verify(message: { [k: string]: any }): (string|null);
  1040. /**
  1041. * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
  1042. * @param object Plain object
  1043. * @returns CustomHttpPattern
  1044. */
  1045. public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
  1046. /**
  1047. * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
  1048. * @param message CustomHttpPattern
  1049. * @param [options] Conversion options
  1050. * @returns Plain object
  1051. */
  1052. public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
  1053. /**
  1054. * Converts this CustomHttpPattern to JSON.
  1055. * @returns JSON object
  1056. */
  1057. public toJSON(): { [k: string]: any };
  1058. }
  1059. }
  1060. /** Namespace protobuf. */
  1061. namespace protobuf {
  1062. /** Properties of a FileDescriptorSet. */
  1063. interface IFileDescriptorSet {
  1064. /** FileDescriptorSet file */
  1065. file?: (google.protobuf.IFileDescriptorProto[]|null);
  1066. }
  1067. /** Represents a FileDescriptorSet. */
  1068. class FileDescriptorSet implements IFileDescriptorSet {
  1069. /**
  1070. * Constructs a new FileDescriptorSet.
  1071. * @param [properties] Properties to set
  1072. */
  1073. constructor(properties?: google.protobuf.IFileDescriptorSet);
  1074. /** FileDescriptorSet file. */
  1075. public file: google.protobuf.IFileDescriptorProto[];
  1076. /**
  1077. * Creates a new FileDescriptorSet instance using the specified properties.
  1078. * @param [properties] Properties to set
  1079. * @returns FileDescriptorSet instance
  1080. */
  1081. public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
  1082. /**
  1083. * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
  1084. * @param message FileDescriptorSet message or plain object to encode
  1085. * @param [writer] Writer to encode to
  1086. * @returns Writer
  1087. */
  1088. public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
  1089. /**
  1090. * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
  1091. * @param message FileDescriptorSet message or plain object to encode
  1092. * @param [writer] Writer to encode to
  1093. * @returns Writer
  1094. */
  1095. public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
  1096. /**
  1097. * Decodes a FileDescriptorSet message from the specified reader or buffer.
  1098. * @param reader Reader or buffer to decode from
  1099. * @param [length] Message length if known beforehand
  1100. * @returns FileDescriptorSet
  1101. * @throws {Error} If the payload is not a reader or valid buffer
  1102. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1103. */
  1104. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
  1105. /**
  1106. * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
  1107. * @param reader Reader or buffer to decode from
  1108. * @returns FileDescriptorSet
  1109. * @throws {Error} If the payload is not a reader or valid buffer
  1110. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1111. */
  1112. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
  1113. /**
  1114. * Verifies a FileDescriptorSet message.
  1115. * @param message Plain object to verify
  1116. * @returns `null` if valid, otherwise the reason why it is not
  1117. */
  1118. public static verify(message: { [k: string]: any }): (string|null);
  1119. /**
  1120. * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
  1121. * @param object Plain object
  1122. * @returns FileDescriptorSet
  1123. */
  1124. public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
  1125. /**
  1126. * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
  1127. * @param message FileDescriptorSet
  1128. * @param [options] Conversion options
  1129. * @returns Plain object
  1130. */
  1131. public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
  1132. /**
  1133. * Converts this FileDescriptorSet to JSON.
  1134. * @returns JSON object
  1135. */
  1136. public toJSON(): { [k: string]: any };
  1137. }
  1138. /** Properties of a FileDescriptorProto. */
  1139. interface IFileDescriptorProto {
  1140. /** FileDescriptorProto name */
  1141. name?: (string|null);
  1142. /** FileDescriptorProto package */
  1143. "package"?: (string|null);
  1144. /** FileDescriptorProto dependency */
  1145. dependency?: (string[]|null);
  1146. /** FileDescriptorProto publicDependency */
  1147. publicDependency?: (number[]|null);
  1148. /** FileDescriptorProto weakDependency */
  1149. weakDependency?: (number[]|null);
  1150. /** FileDescriptorProto messageType */
  1151. messageType?: (google.protobuf.IDescriptorProto[]|null);
  1152. /** FileDescriptorProto enumType */
  1153. enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
  1154. /** FileDescriptorProto service */
  1155. service?: (google.protobuf.IServiceDescriptorProto[]|null);
  1156. /** FileDescriptorProto extension */
  1157. extension?: (google.protobuf.IFieldDescriptorProto[]|null);
  1158. /** FileDescriptorProto options */
  1159. options?: (google.protobuf.IFileOptions|null);
  1160. /** FileDescriptorProto sourceCodeInfo */
  1161. sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
  1162. /** FileDescriptorProto syntax */
  1163. syntax?: (string|null);
  1164. }
  1165. /** Represents a FileDescriptorProto. */
  1166. class FileDescriptorProto implements IFileDescriptorProto {
  1167. /**
  1168. * Constructs a new FileDescriptorProto.
  1169. * @param [properties] Properties to set
  1170. */
  1171. constructor(properties?: google.protobuf.IFileDescriptorProto);
  1172. /** FileDescriptorProto name. */
  1173. public name: string;
  1174. /** FileDescriptorProto package. */
  1175. public package: string;
  1176. /** FileDescriptorProto dependency. */
  1177. public dependency: string[];
  1178. /** FileDescriptorProto publicDependency. */
  1179. public publicDependency: number[];
  1180. /** FileDescriptorProto weakDependency. */
  1181. public weakDependency: number[];
  1182. /** FileDescriptorProto messageType. */
  1183. public messageType: google.protobuf.IDescriptorProto[];
  1184. /** FileDescriptorProto enumType. */
  1185. public enumType: google.protobuf.IEnumDescriptorProto[];
  1186. /** FileDescriptorProto service. */
  1187. public service: google.protobuf.IServiceDescriptorProto[];
  1188. /** FileDescriptorProto extension. */
  1189. public extension: google.protobuf.IFieldDescriptorProto[];
  1190. /** FileDescriptorProto options. */
  1191. public options?: (google.protobuf.IFileOptions|null);
  1192. /** FileDescriptorProto sourceCodeInfo. */
  1193. public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
  1194. /** FileDescriptorProto syntax. */
  1195. public syntax: string;
  1196. /**
  1197. * Creates a new FileDescriptorProto instance using the specified properties.
  1198. * @param [properties] Properties to set
  1199. * @returns FileDescriptorProto instance
  1200. */
  1201. public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
  1202. /**
  1203. * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
  1204. * @param message FileDescriptorProto message or plain object to encode
  1205. * @param [writer] Writer to encode to
  1206. * @returns Writer
  1207. */
  1208. public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
  1209. /**
  1210. * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
  1211. * @param message FileDescriptorProto message or plain object to encode
  1212. * @param [writer] Writer to encode to
  1213. * @returns Writer
  1214. */
  1215. public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
  1216. /**
  1217. * Decodes a FileDescriptorProto message from the specified reader or buffer.
  1218. * @param reader Reader or buffer to decode from
  1219. * @param [length] Message length if known beforehand
  1220. * @returns FileDescriptorProto
  1221. * @throws {Error} If the payload is not a reader or valid buffer
  1222. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1223. */
  1224. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
  1225. /**
  1226. * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
  1227. * @param reader Reader or buffer to decode from
  1228. * @returns FileDescriptorProto
  1229. * @throws {Error} If the payload is not a reader or valid buffer
  1230. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1231. */
  1232. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
  1233. /**
  1234. * Verifies a FileDescriptorProto message.
  1235. * @param message Plain object to verify
  1236. * @returns `null` if valid, otherwise the reason why it is not
  1237. */
  1238. public static verify(message: { [k: string]: any }): (string|null);
  1239. /**
  1240. * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
  1241. * @param object Plain object
  1242. * @returns FileDescriptorProto
  1243. */
  1244. public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
  1245. /**
  1246. * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
  1247. * @param message FileDescriptorProto
  1248. * @param [options] Conversion options
  1249. * @returns Plain object
  1250. */
  1251. public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
  1252. /**
  1253. * Converts this FileDescriptorProto to JSON.
  1254. * @returns JSON object
  1255. */
  1256. public toJSON(): { [k: string]: any };
  1257. }
  1258. /** Properties of a DescriptorProto. */
  1259. interface IDescriptorProto {
  1260. /** DescriptorProto name */
  1261. name?: (string|null);
  1262. /** DescriptorProto field */
  1263. field?: (google.protobuf.IFieldDescriptorProto[]|null);
  1264. /** DescriptorProto extension */
  1265. extension?: (google.protobuf.IFieldDescriptorProto[]|null);
  1266. /** DescriptorProto nestedType */
  1267. nestedType?: (google.protobuf.IDescriptorProto[]|null);
  1268. /** DescriptorProto enumType */
  1269. enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
  1270. /** DescriptorProto extensionRange */
  1271. extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
  1272. /** DescriptorProto oneofDecl */
  1273. oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
  1274. /** DescriptorProto options */
  1275. options?: (google.protobuf.IMessageOptions|null);
  1276. /** DescriptorProto reservedRange */
  1277. reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
  1278. /** DescriptorProto reservedName */
  1279. reservedName?: (string[]|null);
  1280. }
  1281. /** Represents a DescriptorProto. */
  1282. class DescriptorProto implements IDescriptorProto {
  1283. /**
  1284. * Constructs a new DescriptorProto.
  1285. * @param [properties] Properties to set
  1286. */
  1287. constructor(properties?: google.protobuf.IDescriptorProto);
  1288. /** DescriptorProto name. */
  1289. public name: string;
  1290. /** DescriptorProto field. */
  1291. public field: google.protobuf.IFieldDescriptorProto[];
  1292. /** DescriptorProto extension. */
  1293. public extension: google.protobuf.IFieldDescriptorProto[];
  1294. /** DescriptorProto nestedType. */
  1295. public nestedType: google.protobuf.IDescriptorProto[];
  1296. /** DescriptorProto enumType. */
  1297. public enumType: google.protobuf.IEnumDescriptorProto[];
  1298. /** DescriptorProto extensionRange. */
  1299. public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
  1300. /** DescriptorProto oneofDecl. */
  1301. public oneofDecl: google.protobuf.IOneofDescriptorProto[];
  1302. /** DescriptorProto options. */
  1303. public options?: (google.protobuf.IMessageOptions|null);
  1304. /** DescriptorProto reservedRange. */
  1305. public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
  1306. /** DescriptorProto reservedName. */
  1307. public reservedName: string[];
  1308. /**
  1309. * Creates a new DescriptorProto instance using the specified properties.
  1310. * @param [properties] Properties to set
  1311. * @returns DescriptorProto instance
  1312. */
  1313. public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
  1314. /**
  1315. * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
  1316. * @param message DescriptorProto message or plain object to encode
  1317. * @param [writer] Writer to encode to
  1318. * @returns Writer
  1319. */
  1320. public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
  1321. /**
  1322. * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
  1323. * @param message DescriptorProto message or plain object to encode
  1324. * @param [writer] Writer to encode to
  1325. * @returns Writer
  1326. */
  1327. public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
  1328. /**
  1329. * Decodes a DescriptorProto message from the specified reader or buffer.
  1330. * @param reader Reader or buffer to decode from
  1331. * @param [length] Message length if known beforehand
  1332. * @returns DescriptorProto
  1333. * @throws {Error} If the payload is not a reader or valid buffer
  1334. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1335. */
  1336. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
  1337. /**
  1338. * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
  1339. * @param reader Reader or buffer to decode from
  1340. * @returns DescriptorProto
  1341. * @throws {Error} If the payload is not a reader or valid buffer
  1342. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1343. */
  1344. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
  1345. /**
  1346. * Verifies a DescriptorProto message.
  1347. * @param message Plain object to verify
  1348. * @returns `null` if valid, otherwise the reason why it is not
  1349. */
  1350. public static verify(message: { [k: string]: any }): (string|null);
  1351. /**
  1352. * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
  1353. * @param object Plain object
  1354. * @returns DescriptorProto
  1355. */
  1356. public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
  1357. /**
  1358. * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
  1359. * @param message DescriptorProto
  1360. * @param [options] Conversion options
  1361. * @returns Plain object
  1362. */
  1363. public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
  1364. /**
  1365. * Converts this DescriptorProto to JSON.
  1366. * @returns JSON object
  1367. */
  1368. public toJSON(): { [k: string]: any };
  1369. }
  1370. namespace DescriptorProto {
  1371. /** Properties of an ExtensionRange. */
  1372. interface IExtensionRange {
  1373. /** ExtensionRange start */
  1374. start?: (number|null);
  1375. /** ExtensionRange end */
  1376. end?: (number|null);
  1377. /** ExtensionRange options */
  1378. options?: (google.protobuf.IExtensionRangeOptions|null);
  1379. }
  1380. /** Represents an ExtensionRange. */
  1381. class ExtensionRange implements IExtensionRange {
  1382. /**
  1383. * Constructs a new ExtensionRange.
  1384. * @param [properties] Properties to set
  1385. */
  1386. constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
  1387. /** ExtensionRange start. */
  1388. public start: number;
  1389. /** ExtensionRange end. */
  1390. public end: number;
  1391. /** ExtensionRange options. */
  1392. public options?: (google.protobuf.IExtensionRangeOptions|null);
  1393. /**
  1394. * Creates a new ExtensionRange instance using the specified properties.
  1395. * @param [properties] Properties to set
  1396. * @returns ExtensionRange instance
  1397. */
  1398. public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
  1399. /**
  1400. * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
  1401. * @param message ExtensionRange message or plain object to encode
  1402. * @param [writer] Writer to encode to
  1403. * @returns Writer
  1404. */
  1405. public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
  1406. /**
  1407. * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
  1408. * @param message ExtensionRange message or plain object to encode
  1409. * @param [writer] Writer to encode to
  1410. * @returns Writer
  1411. */
  1412. public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
  1413. /**
  1414. * Decodes an ExtensionRange message from the specified reader or buffer.
  1415. * @param reader Reader or buffer to decode from
  1416. * @param [length] Message length if known beforehand
  1417. * @returns ExtensionRange
  1418. * @throws {Error} If the payload is not a reader or valid buffer
  1419. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1420. */
  1421. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
  1422. /**
  1423. * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
  1424. * @param reader Reader or buffer to decode from
  1425. * @returns ExtensionRange
  1426. * @throws {Error} If the payload is not a reader or valid buffer
  1427. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1428. */
  1429. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
  1430. /**
  1431. * Verifies an ExtensionRange message.
  1432. * @param message Plain object to verify
  1433. * @returns `null` if valid, otherwise the reason why it is not
  1434. */
  1435. public static verify(message: { [k: string]: any }): (string|null);
  1436. /**
  1437. * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
  1438. * @param object Plain object
  1439. * @returns ExtensionRange
  1440. */
  1441. public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
  1442. /**
  1443. * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
  1444. * @param message ExtensionRange
  1445. * @param [options] Conversion options
  1446. * @returns Plain object
  1447. */
  1448. public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
  1449. /**
  1450. * Converts this ExtensionRange to JSON.
  1451. * @returns JSON object
  1452. */
  1453. public toJSON(): { [k: string]: any };
  1454. }
  1455. /** Properties of a ReservedRange. */
  1456. interface IReservedRange {
  1457. /** ReservedRange start */
  1458. start?: (number|null);
  1459. /** ReservedRange end */
  1460. end?: (number|null);
  1461. }
  1462. /** Represents a ReservedRange. */
  1463. class ReservedRange implements IReservedRange {
  1464. /**
  1465. * Constructs a new ReservedRange.
  1466. * @param [properties] Properties to set
  1467. */
  1468. constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
  1469. /** ReservedRange start. */
  1470. public start: number;
  1471. /** ReservedRange end. */
  1472. public end: number;
  1473. /**
  1474. * Creates a new ReservedRange instance using the specified properties.
  1475. * @param [properties] Properties to set
  1476. * @returns ReservedRange instance
  1477. */
  1478. public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
  1479. /**
  1480. * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
  1481. * @param message ReservedRange message or plain object to encode
  1482. * @param [writer] Writer to encode to
  1483. * @returns Writer
  1484. */
  1485. public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
  1486. /**
  1487. * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
  1488. * @param message ReservedRange message or plain object to encode
  1489. * @param [writer] Writer to encode to
  1490. * @returns Writer
  1491. */
  1492. public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
  1493. /**
  1494. * Decodes a ReservedRange message from the specified reader or buffer.
  1495. * @param reader Reader or buffer to decode from
  1496. * @param [length] Message length if known beforehand
  1497. * @returns ReservedRange
  1498. * @throws {Error} If the payload is not a reader or valid buffer
  1499. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1500. */
  1501. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
  1502. /**
  1503. * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
  1504. * @param reader Reader or buffer to decode from
  1505. * @returns ReservedRange
  1506. * @throws {Error} If the payload is not a reader or valid buffer
  1507. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1508. */
  1509. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
  1510. /**
  1511. * Verifies a ReservedRange message.
  1512. * @param message Plain object to verify
  1513. * @returns `null` if valid, otherwise the reason why it is not
  1514. */
  1515. public static verify(message: { [k: string]: any }): (string|null);
  1516. /**
  1517. * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
  1518. * @param object Plain object
  1519. * @returns ReservedRange
  1520. */
  1521. public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
  1522. /**
  1523. * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
  1524. * @param message ReservedRange
  1525. * @param [options] Conversion options
  1526. * @returns Plain object
  1527. */
  1528. public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
  1529. /**
  1530. * Converts this ReservedRange to JSON.
  1531. * @returns JSON object
  1532. */
  1533. public toJSON(): { [k: string]: any };
  1534. }
  1535. }
  1536. /** Properties of an ExtensionRangeOptions. */
  1537. interface IExtensionRangeOptions {
  1538. /** ExtensionRangeOptions uninterpretedOption */
  1539. uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
  1540. }
  1541. /** Represents an ExtensionRangeOptions. */
  1542. class ExtensionRangeOptions implements IExtensionRangeOptions {
  1543. /**
  1544. * Constructs a new ExtensionRangeOptions.
  1545. * @param [properties] Properties to set
  1546. */
  1547. constructor(properties?: google.protobuf.IExtensionRangeOptions);
  1548. /** ExtensionRangeOptions uninterpretedOption. */
  1549. public uninterpretedOption: google.protobuf.IUninterpretedOption[];
  1550. /**
  1551. * Creates a new ExtensionRangeOptions instance using the specified properties.
  1552. * @param [properties] Properties to set
  1553. * @returns ExtensionRangeOptions instance
  1554. */
  1555. public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
  1556. /**
  1557. * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
  1558. * @param message ExtensionRangeOptions message or plain object to encode
  1559. * @param [writer] Writer to encode to
  1560. * @returns Writer
  1561. */
  1562. public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
  1563. /**
  1564. * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
  1565. * @param message ExtensionRangeOptions message or plain object to encode
  1566. * @param [writer] Writer to encode to
  1567. * @returns Writer
  1568. */
  1569. public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
  1570. /**
  1571. * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
  1572. * @param reader Reader or buffer to decode from
  1573. * @param [length] Message length if known beforehand
  1574. * @returns ExtensionRangeOptions
  1575. * @throws {Error} If the payload is not a reader or valid buffer
  1576. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1577. */
  1578. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
  1579. /**
  1580. * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
  1581. * @param reader Reader or buffer to decode from
  1582. * @returns ExtensionRangeOptions
  1583. * @throws {Error} If the payload is not a reader or valid buffer
  1584. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1585. */
  1586. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
  1587. /**
  1588. * Verifies an ExtensionRangeOptions message.
  1589. * @param message Plain object to verify
  1590. * @returns `null` if valid, otherwise the reason why it is not
  1591. */
  1592. public static verify(message: { [k: string]: any }): (string|null);
  1593. /**
  1594. * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
  1595. * @param object Plain object
  1596. * @returns ExtensionRangeOptions
  1597. */
  1598. public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
  1599. /**
  1600. * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
  1601. * @param message ExtensionRangeOptions
  1602. * @param [options] Conversion options
  1603. * @returns Plain object
  1604. */
  1605. public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
  1606. /**
  1607. * Converts this ExtensionRangeOptions to JSON.
  1608. * @returns JSON object
  1609. */
  1610. public toJSON(): { [k: string]: any };
  1611. }
  1612. /** Properties of a FieldDescriptorProto. */
  1613. interface IFieldDescriptorProto {
  1614. /** FieldDescriptorProto name */
  1615. name?: (string|null);
  1616. /** FieldDescriptorProto number */
  1617. number?: (number|null);
  1618. /** FieldDescriptorProto label */
  1619. label?: (google.protobuf.FieldDescriptorProto.Label|null);
  1620. /** FieldDescriptorProto type */
  1621. type?: (google.protobuf.FieldDescriptorProto.Type|null);
  1622. /** FieldDescriptorProto typeName */
  1623. typeName?: (string|null);
  1624. /** FieldDescriptorProto extendee */
  1625. extendee?: (string|null);
  1626. /** FieldDescriptorProto defaultValue */
  1627. defaultValue?: (string|null);
  1628. /** FieldDescriptorProto oneofIndex */
  1629. oneofIndex?: (number|null);
  1630. /** FieldDescriptorProto jsonName */
  1631. jsonName?: (string|null);
  1632. /** FieldDescriptorProto options */
  1633. options?: (google.protobuf.IFieldOptions|null);
  1634. /** FieldDescriptorProto proto3Optional */
  1635. proto3Optional?: (boolean|null);
  1636. }
  1637. /** Represents a FieldDescriptorProto. */
  1638. class FieldDescriptorProto implements IFieldDescriptorProto {
  1639. /**
  1640. * Constructs a new FieldDescriptorProto.
  1641. * @param [properties] Properties to set
  1642. */
  1643. constructor(properties?: google.protobuf.IFieldDescriptorProto);
  1644. /** FieldDescriptorProto name. */
  1645. public name: string;
  1646. /** FieldDescriptorProto number. */
  1647. public number: number;
  1648. /** FieldDescriptorProto label. */
  1649. public label: google.protobuf.FieldDescriptorProto.Label;
  1650. /** FieldDescriptorProto type. */
  1651. public type: google.protobuf.FieldDescriptorProto.Type;
  1652. /** FieldDescriptorProto typeName. */
  1653. public typeName: string;
  1654. /** FieldDescriptorProto extendee. */
  1655. public extendee: string;
  1656. /** FieldDescriptorProto defaultValue. */
  1657. public defaultValue: string;
  1658. /** FieldDescriptorProto oneofIndex. */
  1659. public oneofIndex: number;
  1660. /** FieldDescriptorProto jsonName. */
  1661. public jsonName: string;
  1662. /** FieldDescriptorProto options. */
  1663. public options?: (google.protobuf.IFieldOptions|null);
  1664. /** FieldDescriptorProto proto3Optional. */
  1665. public proto3Optional: boolean;
  1666. /**
  1667. * Creates a new FieldDescriptorProto instance using the specified properties.
  1668. * @param [properties] Properties to set
  1669. * @returns FieldDescriptorProto instance
  1670. */
  1671. public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
  1672. /**
  1673. * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
  1674. * @param message FieldDescriptorProto message or plain object to encode
  1675. * @param [writer] Writer to encode to
  1676. * @returns Writer
  1677. */
  1678. public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
  1679. /**
  1680. * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
  1681. * @param message FieldDescriptorProto message or plain object to encode
  1682. * @param [writer] Writer to encode to
  1683. * @returns Writer
  1684. */
  1685. public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
  1686. /**
  1687. * Decodes a FieldDescriptorProto message from the specified reader or buffer.
  1688. * @param reader Reader or buffer to decode from
  1689. * @param [length] Message length if known beforehand
  1690. * @returns FieldDescriptorProto
  1691. * @throws {Error} If the payload is not a reader or valid buffer
  1692. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1693. */
  1694. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
  1695. /**
  1696. * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
  1697. * @param reader Reader or buffer to decode from
  1698. * @returns FieldDescriptorProto
  1699. * @throws {Error} If the payload is not a reader or valid buffer
  1700. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1701. */
  1702. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
  1703. /**
  1704. * Verifies a FieldDescriptorProto message.
  1705. * @param message Plain object to verify
  1706. * @returns `null` if valid, otherwise the reason why it is not
  1707. */
  1708. public static verify(message: { [k: string]: any }): (string|null);
  1709. /**
  1710. * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
  1711. * @param object Plain object
  1712. * @returns FieldDescriptorProto
  1713. */
  1714. public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
  1715. /**
  1716. * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
  1717. * @param message FieldDescriptorProto
  1718. * @param [options] Conversion options
  1719. * @returns Plain object
  1720. */
  1721. public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
  1722. /**
  1723. * Converts this FieldDescriptorProto to JSON.
  1724. * @returns JSON object
  1725. */
  1726. public toJSON(): { [k: string]: any };
  1727. }
  1728. namespace FieldDescriptorProto {
  1729. /** Type enum. */
  1730. enum Type {
  1731. TYPE_DOUBLE = 1,
  1732. TYPE_FLOAT = 2,
  1733. TYPE_INT64 = 3,
  1734. TYPE_UINT64 = 4,
  1735. TYPE_INT32 = 5,
  1736. TYPE_FIXED64 = 6,
  1737. TYPE_FIXED32 = 7,
  1738. TYPE_BOOL = 8,
  1739. TYPE_STRING = 9,
  1740. TYPE_GROUP = 10,
  1741. TYPE_MESSAGE = 11,
  1742. TYPE_BYTES = 12,
  1743. TYPE_UINT32 = 13,
  1744. TYPE_ENUM = 14,
  1745. TYPE_SFIXED32 = 15,
  1746. TYPE_SFIXED64 = 16,
  1747. TYPE_SINT32 = 17,
  1748. TYPE_SINT64 = 18
  1749. }
  1750. /** Label enum. */
  1751. enum Label {
  1752. LABEL_OPTIONAL = 1,
  1753. LABEL_REQUIRED = 2,
  1754. LABEL_REPEATED = 3
  1755. }
  1756. }
  1757. /** Properties of an OneofDescriptorProto. */
  1758. interface IOneofDescriptorProto {
  1759. /** OneofDescriptorProto name */
  1760. name?: (string|null);
  1761. /** OneofDescriptorProto options */
  1762. options?: (google.protobuf.IOneofOptions|null);
  1763. }
  1764. /** Represents an OneofDescriptorProto. */
  1765. class OneofDescriptorProto implements IOneofDescriptorProto {
  1766. /**
  1767. * Constructs a new OneofDescriptorProto.
  1768. * @param [properties] Properties to set
  1769. */
  1770. constructor(properties?: google.protobuf.IOneofDescriptorProto);
  1771. /** OneofDescriptorProto name. */
  1772. public name: string;
  1773. /** OneofDescriptorProto options. */
  1774. public options?: (google.protobuf.IOneofOptions|null);
  1775. /**
  1776. * Creates a new OneofDescriptorProto instance using the specified properties.
  1777. * @param [properties] Properties to set
  1778. * @returns OneofDescriptorProto instance
  1779. */
  1780. public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
  1781. /**
  1782. * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
  1783. * @param message OneofDescriptorProto message or plain object to encode
  1784. * @param [writer] Writer to encode to
  1785. * @returns Writer
  1786. */
  1787. public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
  1788. /**
  1789. * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
  1790. * @param message OneofDescriptorProto message or plain object to encode
  1791. * @param [writer] Writer to encode to
  1792. * @returns Writer
  1793. */
  1794. public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
  1795. /**
  1796. * Decodes an OneofDescriptorProto message from the specified reader or buffer.
  1797. * @param reader Reader or buffer to decode from
  1798. * @param [length] Message length if known beforehand
  1799. * @returns OneofDescriptorProto
  1800. * @throws {Error} If the payload is not a reader or valid buffer
  1801. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1802. */
  1803. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
  1804. /**
  1805. * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
  1806. * @param reader Reader or buffer to decode from
  1807. * @returns OneofDescriptorProto
  1808. * @throws {Error} If the payload is not a reader or valid buffer
  1809. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1810. */
  1811. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
  1812. /**
  1813. * Verifies an OneofDescriptorProto message.
  1814. * @param message Plain object to verify
  1815. * @returns `null` if valid, otherwise the reason why it is not
  1816. */
  1817. public static verify(message: { [k: string]: any }): (string|null);
  1818. /**
  1819. * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
  1820. * @param object Plain object
  1821. * @returns OneofDescriptorProto
  1822. */
  1823. public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
  1824. /**
  1825. * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
  1826. * @param message OneofDescriptorProto
  1827. * @param [options] Conversion options
  1828. * @returns Plain object
  1829. */
  1830. public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
  1831. /**
  1832. * Converts this OneofDescriptorProto to JSON.
  1833. * @returns JSON object
  1834. */
  1835. public toJSON(): { [k: string]: any };
  1836. }
  1837. /** Properties of an EnumDescriptorProto. */
  1838. interface IEnumDescriptorProto {
  1839. /** EnumDescriptorProto name */
  1840. name?: (string|null);
  1841. /** EnumDescriptorProto value */
  1842. value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
  1843. /** EnumDescriptorProto options */
  1844. options?: (google.protobuf.IEnumOptions|null);
  1845. /** EnumDescriptorProto reservedRange */
  1846. reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
  1847. /** EnumDescriptorProto reservedName */
  1848. reservedName?: (string[]|null);
  1849. }
  1850. /** Represents an EnumDescriptorProto. */
  1851. class EnumDescriptorProto implements IEnumDescriptorProto {
  1852. /**
  1853. * Constructs a new EnumDescriptorProto.
  1854. * @param [properties] Properties to set
  1855. */
  1856. constructor(properties?: google.protobuf.IEnumDescriptorProto);
  1857. /** EnumDescriptorProto name. */
  1858. public name: string;
  1859. /** EnumDescriptorProto value. */
  1860. public value: google.protobuf.IEnumValueDescriptorProto[];
  1861. /** EnumDescriptorProto options. */
  1862. public options?: (google.protobuf.IEnumOptions|null);
  1863. /** EnumDescriptorProto reservedRange. */
  1864. public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
  1865. /** EnumDescriptorProto reservedName. */
  1866. public reservedName: string[];
  1867. /**
  1868. * Creates a new EnumDescriptorProto instance using the specified properties.
  1869. * @param [properties] Properties to set
  1870. * @returns EnumDescriptorProto instance
  1871. */
  1872. public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
  1873. /**
  1874. * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
  1875. * @param message EnumDescriptorProto message or plain object to encode
  1876. * @param [writer] Writer to encode to
  1877. * @returns Writer
  1878. */
  1879. public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
  1880. /**
  1881. * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
  1882. * @param message EnumDescriptorProto message or plain object to encode
  1883. * @param [writer] Writer to encode to
  1884. * @returns Writer
  1885. */
  1886. public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
  1887. /**
  1888. * Decodes an EnumDescriptorProto message from the specified reader or buffer.
  1889. * @param reader Reader or buffer to decode from
  1890. * @param [length] Message length if known beforehand
  1891. * @returns EnumDescriptorProto
  1892. * @throws {Error} If the payload is not a reader or valid buffer
  1893. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1894. */
  1895. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
  1896. /**
  1897. * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
  1898. * @param reader Reader or buffer to decode from
  1899. * @returns EnumDescriptorProto
  1900. * @throws {Error} If the payload is not a reader or valid buffer
  1901. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1902. */
  1903. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
  1904. /**
  1905. * Verifies an EnumDescriptorProto message.
  1906. * @param message Plain object to verify
  1907. * @returns `null` if valid, otherwise the reason why it is not
  1908. */
  1909. public static verify(message: { [k: string]: any }): (string|null);
  1910. /**
  1911. * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
  1912. * @param object Plain object
  1913. * @returns EnumDescriptorProto
  1914. */
  1915. public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
  1916. /**
  1917. * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
  1918. * @param message EnumDescriptorProto
  1919. * @param [options] Conversion options
  1920. * @returns Plain object
  1921. */
  1922. public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
  1923. /**
  1924. * Converts this EnumDescriptorProto to JSON.
  1925. * @returns JSON object
  1926. */
  1927. public toJSON(): { [k: string]: any };
  1928. }
  1929. namespace EnumDescriptorProto {
  1930. /** Properties of an EnumReservedRange. */
  1931. interface IEnumReservedRange {
  1932. /** EnumReservedRange start */
  1933. start?: (number|null);
  1934. /** EnumReservedRange end */
  1935. end?: (number|null);
  1936. }
  1937. /** Represents an EnumReservedRange. */
  1938. class EnumReservedRange implements IEnumReservedRange {
  1939. /**
  1940. * Constructs a new EnumReservedRange.
  1941. * @param [properties] Properties to set
  1942. */
  1943. constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
  1944. /** EnumReservedRange start. */
  1945. public start: number;
  1946. /** EnumReservedRange end. */
  1947. public end: number;
  1948. /**
  1949. * Creates a new EnumReservedRange instance using the specified properties.
  1950. * @param [properties] Properties to set
  1951. * @returns EnumReservedRange instance
  1952. */
  1953. public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
  1954. /**
  1955. * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
  1956. * @param message EnumReservedRange message or plain object to encode
  1957. * @param [writer] Writer to encode to
  1958. * @returns Writer
  1959. */
  1960. public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
  1961. /**
  1962. * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
  1963. * @param message EnumReservedRange message or plain object to encode
  1964. * @param [writer] Writer to encode to
  1965. * @returns Writer
  1966. */
  1967. public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
  1968. /**
  1969. * Decodes an EnumReservedRange message from the specified reader or buffer.
  1970. * @param reader Reader or buffer to decode from
  1971. * @param [length] Message length if known beforehand
  1972. * @returns EnumReservedRange
  1973. * @throws {Error} If the payload is not a reader or valid buffer
  1974. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1975. */
  1976. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
  1977. /**
  1978. * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
  1979. * @param reader Reader or buffer to decode from
  1980. * @returns EnumReservedRange
  1981. * @throws {Error} If the payload is not a reader or valid buffer
  1982. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1983. */
  1984. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
  1985. /**
  1986. * Verifies an EnumReservedRange message.
  1987. * @param message Plain object to verify
  1988. * @returns `null` if valid, otherwise the reason why it is not
  1989. */
  1990. public static verify(message: { [k: string]: any }): (string|null);
  1991. /**
  1992. * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
  1993. * @param object Plain object
  1994. * @returns EnumReservedRange
  1995. */
  1996. public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
  1997. /**
  1998. * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
  1999. * @param message EnumReservedRange
  2000. * @param [options] Conversion options
  2001. * @returns Plain object
  2002. */
  2003. public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
  2004. /**
  2005. * Converts this EnumReservedRange to JSON.
  2006. * @returns JSON object
  2007. */
  2008. public toJSON(): { [k: string]: any };
  2009. }
  2010. }
  2011. /** Properties of an EnumValueDescriptorProto. */
  2012. interface IEnumValueDescriptorProto {
  2013. /** EnumValueDescriptorProto name */
  2014. name?: (string|null);
  2015. /** EnumValueDescriptorProto number */
  2016. number?: (number|null);
  2017. /** EnumValueDescriptorProto options */
  2018. options?: (google.protobuf.IEnumValueOptions|null);
  2019. }
  2020. /** Represents an EnumValueDescriptorProto. */
  2021. class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
  2022. /**
  2023. * Constructs a new EnumValueDescriptorProto.
  2024. * @param [properties] Properties to set
  2025. */
  2026. constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
  2027. /** EnumValueDescriptorProto name. */
  2028. public name: string;
  2029. /** EnumValueDescriptorProto number. */
  2030. public number: number;
  2031. /** EnumValueDescriptorProto options. */
  2032. public options?: (google.protobuf.IEnumValueOptions|null);
  2033. /**
  2034. * Creates a new EnumValueDescriptorProto instance using the specified properties.
  2035. * @param [properties] Properties to set
  2036. * @returns EnumValueDescriptorProto instance
  2037. */
  2038. public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
  2039. /**
  2040. * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
  2041. * @param message EnumValueDescriptorProto message or plain object to encode
  2042. * @param [writer] Writer to encode to
  2043. * @returns Writer
  2044. */
  2045. public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
  2046. /**
  2047. * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
  2048. * @param message EnumValueDescriptorProto message or plain object to encode
  2049. * @param [writer] Writer to encode to
  2050. * @returns Writer
  2051. */
  2052. public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
  2053. /**
  2054. * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
  2055. * @param reader Reader or buffer to decode from
  2056. * @param [length] Message length if known beforehand
  2057. * @returns EnumValueDescriptorProto
  2058. * @throws {Error} If the payload is not a reader or valid buffer
  2059. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2060. */
  2061. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
  2062. /**
  2063. * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
  2064. * @param reader Reader or buffer to decode from
  2065. * @returns EnumValueDescriptorProto
  2066. * @throws {Error} If the payload is not a reader or valid buffer
  2067. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2068. */
  2069. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
  2070. /**
  2071. * Verifies an EnumValueDescriptorProto message.
  2072. * @param message Plain object to verify
  2073. * @returns `null` if valid, otherwise the reason why it is not
  2074. */
  2075. public static verify(message: { [k: string]: any }): (string|null);
  2076. /**
  2077. * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
  2078. * @param object Plain object
  2079. * @returns EnumValueDescriptorProto
  2080. */
  2081. public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
  2082. /**
  2083. * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
  2084. * @param message EnumValueDescriptorProto
  2085. * @param [options] Conversion options
  2086. * @returns Plain object
  2087. */
  2088. public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
  2089. /**
  2090. * Converts this EnumValueDescriptorProto to JSON.
  2091. * @returns JSON object
  2092. */
  2093. public toJSON(): { [k: string]: any };
  2094. }
  2095. /** Properties of a ServiceDescriptorProto. */
  2096. interface IServiceDescriptorProto {
  2097. /** ServiceDescriptorProto name */
  2098. name?: (string|null);
  2099. /** ServiceDescriptorProto method */
  2100. method?: (google.protobuf.IMethodDescriptorProto[]|null);
  2101. /** ServiceDescriptorProto options */
  2102. options?: (google.protobuf.IServiceOptions|null);
  2103. }
  2104. /** Represents a ServiceDescriptorProto. */
  2105. class ServiceDescriptorProto implements IServiceDescriptorProto {
  2106. /**
  2107. * Constructs a new ServiceDescriptorProto.
  2108. * @param [properties] Properties to set
  2109. */
  2110. constructor(properties?: google.protobuf.IServiceDescriptorProto);
  2111. /** ServiceDescriptorProto name. */
  2112. public name: string;
  2113. /** ServiceDescriptorProto method. */
  2114. public method: google.protobuf.IMethodDescriptorProto[];
  2115. /** ServiceDescriptorProto options. */
  2116. public options?: (google.protobuf.IServiceOptions|null);
  2117. /**
  2118. * Creates a new ServiceDescriptorProto instance using the specified properties.
  2119. * @param [properties] Properties to set
  2120. * @returns ServiceDescriptorProto instance
  2121. */
  2122. public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
  2123. /**
  2124. * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
  2125. * @param message ServiceDescriptorProto message or plain object to encode
  2126. * @param [writer] Writer to encode to
  2127. * @returns Writer
  2128. */
  2129. public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
  2130. /**
  2131. * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
  2132. * @param message ServiceDescriptorProto message or plain object to encode
  2133. * @param [writer] Writer to encode to
  2134. * @returns Writer
  2135. */
  2136. public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
  2137. /**
  2138. * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
  2139. * @param reader Reader or buffer to decode from
  2140. * @param [length] Message length if known beforehand
  2141. * @returns ServiceDescriptorProto
  2142. * @throws {Error} If the payload is not a reader or valid buffer
  2143. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2144. */
  2145. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
  2146. /**
  2147. * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
  2148. * @param reader Reader or buffer to decode from
  2149. * @returns ServiceDescriptorProto
  2150. * @throws {Error} If the payload is not a reader or valid buffer
  2151. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2152. */
  2153. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
  2154. /**
  2155. * Verifies a ServiceDescriptorProto message.
  2156. * @param message Plain object to verify
  2157. * @returns `null` if valid, otherwise the reason why it is not
  2158. */
  2159. public static verify(message: { [k: string]: any }): (string|null);
  2160. /**
  2161. * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
  2162. * @param object Plain object
  2163. * @returns ServiceDescriptorProto
  2164. */
  2165. public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
  2166. /**
  2167. * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
  2168. * @param message ServiceDescriptorProto
  2169. * @param [options] Conversion options
  2170. * @returns Plain object
  2171. */
  2172. public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
  2173. /**
  2174. * Converts this ServiceDescriptorProto to JSON.
  2175. * @returns JSON object
  2176. */
  2177. public toJSON(): { [k: string]: any };
  2178. }
  2179. /** Properties of a MethodDescriptorProto. */
  2180. interface IMethodDescriptorProto {
  2181. /** MethodDescriptorProto name */
  2182. name?: (string|null);
  2183. /** MethodDescriptorProto inputType */
  2184. inputType?: (string|null);
  2185. /** MethodDescriptorProto outputType */
  2186. outputType?: (string|null);
  2187. /** MethodDescriptorProto options */
  2188. options?: (google.protobuf.IMethodOptions|null);
  2189. /** MethodDescriptorProto clientStreaming */
  2190. clientStreaming?: (boolean|null);
  2191. /** MethodDescriptorProto serverStreaming */
  2192. serverStreaming?: (boolean|null);
  2193. }
  2194. /** Represents a MethodDescriptorProto. */
  2195. class MethodDescriptorProto implements IMethodDescriptorProto {
  2196. /**
  2197. * Constructs a new MethodDescriptorProto.
  2198. * @param [properties] Properties to set
  2199. */
  2200. constructor(properties?: google.protobuf.IMethodDescriptorProto);
  2201. /** MethodDescriptorProto name. */
  2202. public name: string;
  2203. /** MethodDescriptorProto inputType. */
  2204. public inputType: string;
  2205. /** MethodDescriptorProto outputType. */
  2206. public outputType: string;
  2207. /** MethodDescriptorProto options. */
  2208. public options?: (google.protobuf.IMethodOptions|null);
  2209. /** MethodDescriptorProto clientStreaming. */
  2210. public clientStreaming: boolean;
  2211. /** MethodDescriptorProto serverStreaming. */
  2212. public serverStreaming: boolean;
  2213. /**
  2214. * Creates a new MethodDescriptorProto instance using the specified properties.
  2215. * @param [properties] Properties to set
  2216. * @returns MethodDescriptorProto instance
  2217. */
  2218. public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
  2219. /**
  2220. * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
  2221. * @param message MethodDescriptorProto message or plain object to encode
  2222. * @param [writer] Writer to encode to
  2223. * @returns Writer
  2224. */
  2225. public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
  2226. /**
  2227. * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
  2228. * @param message MethodDescriptorProto message or plain object to encode
  2229. * @param [writer] Writer to encode to
  2230. * @returns Writer
  2231. */
  2232. public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
  2233. /**
  2234. * Decodes a MethodDescriptorProto message from the specified reader or buffer.
  2235. * @param reader Reader or buffer to decode from
  2236. * @param [length] Message length if known beforehand
  2237. * @returns MethodDescriptorProto
  2238. * @throws {Error} If the payload is not a reader or valid buffer
  2239. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2240. */
  2241. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
  2242. /**
  2243. * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
  2244. * @param reader Reader or buffer to decode from
  2245. * @returns MethodDescriptorProto
  2246. * @throws {Error} If the payload is not a reader or valid buffer
  2247. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2248. */
  2249. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
  2250. /**
  2251. * Verifies a MethodDescriptorProto message.
  2252. * @param message Plain object to verify
  2253. * @returns `null` if valid, otherwise the reason why it is not
  2254. */
  2255. public static verify(message: { [k: string]: any }): (string|null);
  2256. /**
  2257. * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
  2258. * @param object Plain object
  2259. * @returns MethodDescriptorProto
  2260. */
  2261. public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
  2262. /**
  2263. * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
  2264. * @param message MethodDescriptorProto
  2265. * @param [options] Conversion options
  2266. * @returns Plain object
  2267. */
  2268. public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
  2269. /**
  2270. * Converts this MethodDescriptorProto to JSON.
  2271. * @returns JSON object
  2272. */
  2273. public toJSON(): { [k: string]: any };
  2274. }
  2275. /** Properties of a FileOptions. */
  2276. interface IFileOptions {
  2277. /** FileOptions javaPackage */
  2278. javaPackage?: (string|null);
  2279. /** FileOptions javaOuterClassname */
  2280. javaOuterClassname?: (string|null);
  2281. /** FileOptions javaMultipleFiles */
  2282. javaMultipleFiles?: (boolean|null);
  2283. /** FileOptions javaGenerateEqualsAndHash */
  2284. javaGenerateEqualsAndHash?: (boolean|null);
  2285. /** FileOptions javaStringCheckUtf8 */
  2286. javaStringCheckUtf8?: (boolean|null);
  2287. /** FileOptions optimizeFor */
  2288. optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|null);
  2289. /** FileOptions goPackage */
  2290. goPackage?: (string|null);
  2291. /** FileOptions ccGenericServices */
  2292. ccGenericServices?: (boolean|null);
  2293. /** FileOptions javaGenericServices */
  2294. javaGenericServices?: (boolean|null);
  2295. /** FileOptions pyGenericServices */
  2296. pyGenericServices?: (boolean|null);
  2297. /** FileOptions phpGenericServices */
  2298. phpGenericServices?: (boolean|null);
  2299. /** FileOptions deprecated */
  2300. deprecated?: (boolean|null);
  2301. /** FileOptions ccEnableArenas */
  2302. ccEnableArenas?: (boolean|null);
  2303. /** FileOptions objcClassPrefix */
  2304. objcClassPrefix?: (string|null);
  2305. /** FileOptions csharpNamespace */
  2306. csharpNamespace?: (string|null);
  2307. /** FileOptions swiftPrefix */
  2308. swiftPrefix?: (string|null);
  2309. /** FileOptions phpClassPrefix */
  2310. phpClassPrefix?: (string|null);
  2311. /** FileOptions phpNamespace */
  2312. phpNamespace?: (string|null);
  2313. /** FileOptions phpMetadataNamespace */
  2314. phpMetadataNamespace?: (string|null);
  2315. /** FileOptions rubyPackage */
  2316. rubyPackage?: (string|null);
  2317. /** FileOptions uninterpretedOption */
  2318. uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
  2319. }
  2320. /** Represents a FileOptions. */
  2321. class FileOptions implements IFileOptions {
  2322. /**
  2323. * Constructs a new FileOptions.
  2324. * @param [properties] Properties to set
  2325. */
  2326. constructor(properties?: google.protobuf.IFileOptions);
  2327. /** FileOptions javaPackage. */
  2328. public javaPackage: string;
  2329. /** FileOptions javaOuterClassname. */
  2330. public javaOuterClassname: string;
  2331. /** FileOptions javaMultipleFiles. */
  2332. public javaMultipleFiles: boolean;
  2333. /** FileOptions javaGenerateEqualsAndHash. */
  2334. public javaGenerateEqualsAndHash: boolean;
  2335. /** FileOptions javaStringCheckUtf8. */
  2336. public javaStringCheckUtf8: boolean;
  2337. /** FileOptions optimizeFor. */
  2338. public optimizeFor: google.protobuf.FileOptions.OptimizeMode;
  2339. /** FileOptions goPackage. */
  2340. public goPackage: string;
  2341. /** FileOptions ccGenericServices. */
  2342. public ccGenericServices: boolean;
  2343. /** FileOptions javaGenericServices. */
  2344. public javaGenericServices: boolean;
  2345. /** FileOptions pyGenericServices. */
  2346. public pyGenericServices: boolean;
  2347. /** FileOptions phpGenericServices. */
  2348. public phpGenericServices: boolean;
  2349. /** FileOptions deprecated. */
  2350. public deprecated: boolean;
  2351. /** FileOptions ccEnableArenas. */
  2352. public ccEnableArenas: boolean;
  2353. /** FileOptions objcClassPrefix. */
  2354. public objcClassPrefix: string;
  2355. /** FileOptions csharpNamespace. */
  2356. public csharpNamespace: string;
  2357. /** FileOptions swiftPrefix. */
  2358. public swiftPrefix: string;
  2359. /** FileOptions phpClassPrefix. */
  2360. public phpClassPrefix: string;
  2361. /** FileOptions phpNamespace. */
  2362. public phpNamespace: string;
  2363. /** FileOptions phpMetadataNamespace. */
  2364. public phpMetadataNamespace: string;
  2365. /** FileOptions rubyPackage. */
  2366. public rubyPackage: string;
  2367. /** FileOptions uninterpretedOption. */
  2368. public uninterpretedOption: google.protobuf.IUninterpretedOption[];
  2369. /**
  2370. * Creates a new FileOptions instance using the specified properties.
  2371. * @param [properties] Properties to set
  2372. * @returns FileOptions instance
  2373. */
  2374. public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
  2375. /**
  2376. * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
  2377. * @param message FileOptions message or plain object to encode
  2378. * @param [writer] Writer to encode to
  2379. * @returns Writer
  2380. */
  2381. public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
  2382. /**
  2383. * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
  2384. * @param message FileOptions message or plain object to encode
  2385. * @param [writer] Writer to encode to
  2386. * @returns Writer
  2387. */
  2388. public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
  2389. /**
  2390. * Decodes a FileOptions message from the specified reader or buffer.
  2391. * @param reader Reader or buffer to decode from
  2392. * @param [length] Message length if known beforehand
  2393. * @returns FileOptions
  2394. * @throws {Error} If the payload is not a reader or valid buffer
  2395. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2396. */
  2397. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
  2398. /**
  2399. * Decodes a FileOptions message from the specified reader or buffer, length delimited.
  2400. * @param reader Reader or buffer to decode from
  2401. * @returns FileOptions
  2402. * @throws {Error} If the payload is not a reader or valid buffer
  2403. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2404. */
  2405. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
  2406. /**
  2407. * Verifies a FileOptions message.
  2408. * @param message Plain object to verify
  2409. * @returns `null` if valid, otherwise the reason why it is not
  2410. */
  2411. public static verify(message: { [k: string]: any }): (string|null);
  2412. /**
  2413. * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
  2414. * @param object Plain object
  2415. * @returns FileOptions
  2416. */
  2417. public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
  2418. /**
  2419. * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
  2420. * @param message FileOptions
  2421. * @param [options] Conversion options
  2422. * @returns Plain object
  2423. */
  2424. public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
  2425. /**
  2426. * Converts this FileOptions to JSON.
  2427. * @returns JSON object
  2428. */
  2429. public toJSON(): { [k: string]: any };
  2430. }
  2431. namespace FileOptions {
  2432. /** OptimizeMode enum. */
  2433. enum OptimizeMode {
  2434. SPEED = 1,
  2435. CODE_SIZE = 2,
  2436. LITE_RUNTIME = 3
  2437. }
  2438. }
  2439. /** Properties of a MessageOptions. */
  2440. interface IMessageOptions {
  2441. /** MessageOptions messageSetWireFormat */
  2442. messageSetWireFormat?: (boolean|null);
  2443. /** MessageOptions noStandardDescriptorAccessor */
  2444. noStandardDescriptorAccessor?: (boolean|null);
  2445. /** MessageOptions deprecated */
  2446. deprecated?: (boolean|null);
  2447. /** MessageOptions mapEntry */
  2448. mapEntry?: (boolean|null);
  2449. /** MessageOptions uninterpretedOption */
  2450. uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
  2451. }
  2452. /** Represents a MessageOptions. */
  2453. class MessageOptions implements IMessageOptions {
  2454. /**
  2455. * Constructs a new MessageOptions.
  2456. * @param [properties] Properties to set
  2457. */
  2458. constructor(properties?: google.protobuf.IMessageOptions);
  2459. /** MessageOptions messageSetWireFormat. */
  2460. public messageSetWireFormat: boolean;
  2461. /** MessageOptions noStandardDescriptorAccessor. */
  2462. public noStandardDescriptorAccessor: boolean;
  2463. /** MessageOptions deprecated. */
  2464. public deprecated: boolean;
  2465. /** MessageOptions mapEntry. */
  2466. public mapEntry: boolean;
  2467. /** MessageOptions uninterpretedOption. */
  2468. public uninterpretedOption: google.protobuf.IUninterpretedOption[];
  2469. /**
  2470. * Creates a new MessageOptions instance using the specified properties.
  2471. * @param [properties] Properties to set
  2472. * @returns MessageOptions instance
  2473. */
  2474. public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
  2475. /**
  2476. * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
  2477. * @param message MessageOptions message or plain object to encode
  2478. * @param [writer] Writer to encode to
  2479. * @returns Writer
  2480. */
  2481. public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
  2482. /**
  2483. * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
  2484. * @param message MessageOptions message or plain object to encode
  2485. * @param [writer] Writer to encode to
  2486. * @returns Writer
  2487. */
  2488. public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
  2489. /**
  2490. * Decodes a MessageOptions message from the specified reader or buffer.
  2491. * @param reader Reader or buffer to decode from
  2492. * @param [length] Message length if known beforehand
  2493. * @returns MessageOptions
  2494. * @throws {Error} If the payload is not a reader or valid buffer
  2495. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2496. */
  2497. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
  2498. /**
  2499. * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
  2500. * @param reader Reader or buffer to decode from
  2501. * @returns MessageOptions
  2502. * @throws {Error} If the payload is not a reader or valid buffer
  2503. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2504. */
  2505. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
  2506. /**
  2507. * Verifies a MessageOptions message.
  2508. * @param message Plain object to verify
  2509. * @returns `null` if valid, otherwise the reason why it is not
  2510. */
  2511. public static verify(message: { [k: string]: any }): (string|null);
  2512. /**
  2513. * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
  2514. * @param object Plain object
  2515. * @returns MessageOptions
  2516. */
  2517. public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
  2518. /**
  2519. * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
  2520. * @param message MessageOptions
  2521. * @param [options] Conversion options
  2522. * @returns Plain object
  2523. */
  2524. public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
  2525. /**
  2526. * Converts this MessageOptions to JSON.
  2527. * @returns JSON object
  2528. */
  2529. public toJSON(): { [k: string]: any };
  2530. }
  2531. /** Properties of a FieldOptions. */
  2532. interface IFieldOptions {
  2533. /** FieldOptions ctype */
  2534. ctype?: (google.protobuf.FieldOptions.CType|null);
  2535. /** FieldOptions packed */
  2536. packed?: (boolean|null);
  2537. /** FieldOptions jstype */
  2538. jstype?: (google.protobuf.FieldOptions.JSType|null);
  2539. /** FieldOptions lazy */
  2540. lazy?: (boolean|null);
  2541. /** FieldOptions deprecated */
  2542. deprecated?: (boolean|null);
  2543. /** FieldOptions weak */
  2544. weak?: (boolean|null);
  2545. /** FieldOptions uninterpretedOption */
  2546. uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
  2547. }
  2548. /** Represents a FieldOptions. */
  2549. class FieldOptions implements IFieldOptions {
  2550. /**
  2551. * Constructs a new FieldOptions.
  2552. * @param [properties] Properties to set
  2553. */
  2554. constructor(properties?: google.protobuf.IFieldOptions);
  2555. /** FieldOptions ctype. */
  2556. public ctype: google.protobuf.FieldOptions.CType;
  2557. /** FieldOptions packed. */
  2558. public packed: boolean;
  2559. /** FieldOptions jstype. */
  2560. public jstype: google.protobuf.FieldOptions.JSType;
  2561. /** FieldOptions lazy. */
  2562. public lazy: boolean;
  2563. /** FieldOptions deprecated. */
  2564. public deprecated: boolean;
  2565. /** FieldOptions weak. */
  2566. public weak: boolean;
  2567. /** FieldOptions uninterpretedOption. */
  2568. public uninterpretedOption: google.protobuf.IUninterpretedOption[];
  2569. /**
  2570. * Creates a new FieldOptions instance using the specified properties.
  2571. * @param [properties] Properties to set
  2572. * @returns FieldOptions instance
  2573. */
  2574. public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
  2575. /**
  2576. * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
  2577. * @param message FieldOptions message or plain object to encode
  2578. * @param [writer] Writer to encode to
  2579. * @returns Writer
  2580. */
  2581. public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
  2582. /**
  2583. * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
  2584. * @param message FieldOptions message or plain object to encode
  2585. * @param [writer] Writer to encode to
  2586. * @returns Writer
  2587. */
  2588. public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
  2589. /**
  2590. * Decodes a FieldOptions message from the specified reader or buffer.
  2591. * @param reader Reader or buffer to decode from
  2592. * @param [length] Message length if known beforehand
  2593. * @returns FieldOptions
  2594. * @throws {Error} If the payload is not a reader or valid buffer
  2595. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2596. */
  2597. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
  2598. /**
  2599. * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
  2600. * @param reader Reader or buffer to decode from
  2601. * @returns FieldOptions
  2602. * @throws {Error} If the payload is not a reader or valid buffer
  2603. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2604. */
  2605. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
  2606. /**
  2607. * Verifies a FieldOptions message.
  2608. * @param message Plain object to verify
  2609. * @returns `null` if valid, otherwise the reason why it is not
  2610. */
  2611. public static verify(message: { [k: string]: any }): (string|null);
  2612. /**
  2613. * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
  2614. * @param object Plain object
  2615. * @returns FieldOptions
  2616. */
  2617. public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
  2618. /**
  2619. * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
  2620. * @param message FieldOptions
  2621. * @param [options] Conversion options
  2622. * @returns Plain object
  2623. */
  2624. public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
  2625. /**
  2626. * Converts this FieldOptions to JSON.
  2627. * @returns JSON object
  2628. */
  2629. public toJSON(): { [k: string]: any };
  2630. }
  2631. namespace FieldOptions {
  2632. /** CType enum. */
  2633. enum CType {
  2634. STRING = 0,
  2635. CORD = 1,
  2636. STRING_PIECE = 2
  2637. }
  2638. /** JSType enum. */
  2639. enum JSType {
  2640. JS_NORMAL = 0,
  2641. JS_STRING = 1,
  2642. JS_NUMBER = 2
  2643. }
  2644. }
  2645. /** Properties of an OneofOptions. */
  2646. interface IOneofOptions {
  2647. /** OneofOptions uninterpretedOption */
  2648. uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
  2649. }
  2650. /** Represents an OneofOptions. */
  2651. class OneofOptions implements IOneofOptions {
  2652. /**
  2653. * Constructs a new OneofOptions.
  2654. * @param [properties] Properties to set
  2655. */
  2656. constructor(properties?: google.protobuf.IOneofOptions);
  2657. /** OneofOptions uninterpretedOption. */
  2658. public uninterpretedOption: google.protobuf.IUninterpretedOption[];
  2659. /**
  2660. * Creates a new OneofOptions instance using the specified properties.
  2661. * @param [properties] Properties to set
  2662. * @returns OneofOptions instance
  2663. */
  2664. public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
  2665. /**
  2666. * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
  2667. * @param message OneofOptions message or plain object to encode
  2668. * @param [writer] Writer to encode to
  2669. * @returns Writer
  2670. */
  2671. public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
  2672. /**
  2673. * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
  2674. * @param message OneofOptions message or plain object to encode
  2675. * @param [writer] Writer to encode to
  2676. * @returns Writer
  2677. */
  2678. public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
  2679. /**
  2680. * Decodes an OneofOptions message from the specified reader or buffer.
  2681. * @param reader Reader or buffer to decode from
  2682. * @param [length] Message length if known beforehand
  2683. * @returns OneofOptions
  2684. * @throws {Error} If the payload is not a reader or valid buffer
  2685. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2686. */
  2687. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
  2688. /**
  2689. * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
  2690. * @param reader Reader or buffer to decode from
  2691. * @returns OneofOptions
  2692. * @throws {Error} If the payload is not a reader or valid buffer
  2693. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2694. */
  2695. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
  2696. /**
  2697. * Verifies an OneofOptions message.
  2698. * @param message Plain object to verify
  2699. * @returns `null` if valid, otherwise the reason why it is not
  2700. */
  2701. public static verify(message: { [k: string]: any }): (string|null);
  2702. /**
  2703. * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
  2704. * @param object Plain object
  2705. * @returns OneofOptions
  2706. */
  2707. public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
  2708. /**
  2709. * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
  2710. * @param message OneofOptions
  2711. * @param [options] Conversion options
  2712. * @returns Plain object
  2713. */
  2714. public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
  2715. /**
  2716. * Converts this OneofOptions to JSON.
  2717. * @returns JSON object
  2718. */
  2719. public toJSON(): { [k: string]: any };
  2720. }
  2721. /** Properties of an EnumOptions. */
  2722. interface IEnumOptions {
  2723. /** EnumOptions allowAlias */
  2724. allowAlias?: (boolean|null);
  2725. /** EnumOptions deprecated */
  2726. deprecated?: (boolean|null);
  2727. /** EnumOptions uninterpretedOption */
  2728. uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
  2729. }
  2730. /** Represents an EnumOptions. */
  2731. class EnumOptions implements IEnumOptions {
  2732. /**
  2733. * Constructs a new EnumOptions.
  2734. * @param [properties] Properties to set
  2735. */
  2736. constructor(properties?: google.protobuf.IEnumOptions);
  2737. /** EnumOptions allowAlias. */
  2738. public allowAlias: boolean;
  2739. /** EnumOptions deprecated. */
  2740. public deprecated: boolean;
  2741. /** EnumOptions uninterpretedOption. */
  2742. public uninterpretedOption: google.protobuf.IUninterpretedOption[];
  2743. /**
  2744. * Creates a new EnumOptions instance using the specified properties.
  2745. * @param [properties] Properties to set
  2746. * @returns EnumOptions instance
  2747. */
  2748. public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
  2749. /**
  2750. * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
  2751. * @param message EnumOptions message or plain object to encode
  2752. * @param [writer] Writer to encode to
  2753. * @returns Writer
  2754. */
  2755. public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
  2756. /**
  2757. * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
  2758. * @param message EnumOptions message or plain object to encode
  2759. * @param [writer] Writer to encode to
  2760. * @returns Writer
  2761. */
  2762. public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
  2763. /**
  2764. * Decodes an EnumOptions message from the specified reader or buffer.
  2765. * @param reader Reader or buffer to decode from
  2766. * @param [length] Message length if known beforehand
  2767. * @returns EnumOptions
  2768. * @throws {Error} If the payload is not a reader or valid buffer
  2769. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2770. */
  2771. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
  2772. /**
  2773. * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
  2774. * @param reader Reader or buffer to decode from
  2775. * @returns EnumOptions
  2776. * @throws {Error} If the payload is not a reader or valid buffer
  2777. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2778. */
  2779. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
  2780. /**
  2781. * Verifies an EnumOptions message.
  2782. * @param message Plain object to verify
  2783. * @returns `null` if valid, otherwise the reason why it is not
  2784. */
  2785. public static verify(message: { [k: string]: any }): (string|null);
  2786. /**
  2787. * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
  2788. * @param object Plain object
  2789. * @returns EnumOptions
  2790. */
  2791. public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
  2792. /**
  2793. * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
  2794. * @param message EnumOptions
  2795. * @param [options] Conversion options
  2796. * @returns Plain object
  2797. */
  2798. public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
  2799. /**
  2800. * Converts this EnumOptions to JSON.
  2801. * @returns JSON object
  2802. */
  2803. public toJSON(): { [k: string]: any };
  2804. }
  2805. /** Properties of an EnumValueOptions. */
  2806. interface IEnumValueOptions {
  2807. /** EnumValueOptions deprecated */
  2808. deprecated?: (boolean|null);
  2809. /** EnumValueOptions uninterpretedOption */
  2810. uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
  2811. }
  2812. /** Represents an EnumValueOptions. */
  2813. class EnumValueOptions implements IEnumValueOptions {
  2814. /**
  2815. * Constructs a new EnumValueOptions.
  2816. * @param [properties] Properties to set
  2817. */
  2818. constructor(properties?: google.protobuf.IEnumValueOptions);
  2819. /** EnumValueOptions deprecated. */
  2820. public deprecated: boolean;
  2821. /** EnumValueOptions uninterpretedOption. */
  2822. public uninterpretedOption: google.protobuf.IUninterpretedOption[];
  2823. /**
  2824. * Creates a new EnumValueOptions instance using the specified properties.
  2825. * @param [properties] Properties to set
  2826. * @returns EnumValueOptions instance
  2827. */
  2828. public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
  2829. /**
  2830. * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
  2831. * @param message EnumValueOptions message or plain object to encode
  2832. * @param [writer] Writer to encode to
  2833. * @returns Writer
  2834. */
  2835. public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
  2836. /**
  2837. * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
  2838. * @param message EnumValueOptions message or plain object to encode
  2839. * @param [writer] Writer to encode to
  2840. * @returns Writer
  2841. */
  2842. public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
  2843. /**
  2844. * Decodes an EnumValueOptions message from the specified reader or buffer.
  2845. * @param reader Reader or buffer to decode from
  2846. * @param [length] Message length if known beforehand
  2847. * @returns EnumValueOptions
  2848. * @throws {Error} If the payload is not a reader or valid buffer
  2849. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2850. */
  2851. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
  2852. /**
  2853. * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
  2854. * @param reader Reader or buffer to decode from
  2855. * @returns EnumValueOptions
  2856. * @throws {Error} If the payload is not a reader or valid buffer
  2857. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2858. */
  2859. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
  2860. /**
  2861. * Verifies an EnumValueOptions message.
  2862. * @param message Plain object to verify
  2863. * @returns `null` if valid, otherwise the reason why it is not
  2864. */
  2865. public static verify(message: { [k: string]: any }): (string|null);
  2866. /**
  2867. * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
  2868. * @param object Plain object
  2869. * @returns EnumValueOptions
  2870. */
  2871. public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
  2872. /**
  2873. * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
  2874. * @param message EnumValueOptions
  2875. * @param [options] Conversion options
  2876. * @returns Plain object
  2877. */
  2878. public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
  2879. /**
  2880. * Converts this EnumValueOptions to JSON.
  2881. * @returns JSON object
  2882. */
  2883. public toJSON(): { [k: string]: any };
  2884. }
  2885. /** Properties of a ServiceOptions. */
  2886. interface IServiceOptions {
  2887. /** ServiceOptions deprecated */
  2888. deprecated?: (boolean|null);
  2889. /** ServiceOptions uninterpretedOption */
  2890. uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
  2891. /** ServiceOptions .google.api.defaultHost */
  2892. ".google.api.defaultHost"?: (string|null);
  2893. /** ServiceOptions .google.api.oauthScopes */
  2894. ".google.api.oauthScopes"?: (string|null);
  2895. }
  2896. /** Represents a ServiceOptions. */
  2897. class ServiceOptions implements IServiceOptions {
  2898. /**
  2899. * Constructs a new ServiceOptions.
  2900. * @param [properties] Properties to set
  2901. */
  2902. constructor(properties?: google.protobuf.IServiceOptions);
  2903. /** ServiceOptions deprecated. */
  2904. public deprecated: boolean;
  2905. /** ServiceOptions uninterpretedOption. */
  2906. public uninterpretedOption: google.protobuf.IUninterpretedOption[];
  2907. /**
  2908. * Creates a new ServiceOptions instance using the specified properties.
  2909. * @param [properties] Properties to set
  2910. * @returns ServiceOptions instance
  2911. */
  2912. public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
  2913. /**
  2914. * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
  2915. * @param message ServiceOptions message or plain object to encode
  2916. * @param [writer] Writer to encode to
  2917. * @returns Writer
  2918. */
  2919. public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
  2920. /**
  2921. * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
  2922. * @param message ServiceOptions message or plain object to encode
  2923. * @param [writer] Writer to encode to
  2924. * @returns Writer
  2925. */
  2926. public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
  2927. /**
  2928. * Decodes a ServiceOptions message from the specified reader or buffer.
  2929. * @param reader Reader or buffer to decode from
  2930. * @param [length] Message length if known beforehand
  2931. * @returns ServiceOptions
  2932. * @throws {Error} If the payload is not a reader or valid buffer
  2933. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2934. */
  2935. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
  2936. /**
  2937. * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
  2938. * @param reader Reader or buffer to decode from
  2939. * @returns ServiceOptions
  2940. * @throws {Error} If the payload is not a reader or valid buffer
  2941. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2942. */
  2943. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
  2944. /**
  2945. * Verifies a ServiceOptions message.
  2946. * @param message Plain object to verify
  2947. * @returns `null` if valid, otherwise the reason why it is not
  2948. */
  2949. public static verify(message: { [k: string]: any }): (string|null);
  2950. /**
  2951. * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
  2952. * @param object Plain object
  2953. * @returns ServiceOptions
  2954. */
  2955. public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
  2956. /**
  2957. * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
  2958. * @param message ServiceOptions
  2959. * @param [options] Conversion options
  2960. * @returns Plain object
  2961. */
  2962. public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
  2963. /**
  2964. * Converts this ServiceOptions to JSON.
  2965. * @returns JSON object
  2966. */
  2967. public toJSON(): { [k: string]: any };
  2968. }
  2969. /** Properties of a MethodOptions. */
  2970. interface IMethodOptions {
  2971. /** MethodOptions deprecated */
  2972. deprecated?: (boolean|null);
  2973. /** MethodOptions idempotencyLevel */
  2974. idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|null);
  2975. /** MethodOptions uninterpretedOption */
  2976. uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
  2977. /** MethodOptions .google.longrunning.operationInfo */
  2978. ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
  2979. /** MethodOptions .google.api.http */
  2980. ".google.api.http"?: (google.api.IHttpRule|null);
  2981. /** MethodOptions .google.api.methodSignature */
  2982. ".google.api.methodSignature"?: (string[]|null);
  2983. }
  2984. /** Represents a MethodOptions. */
  2985. class MethodOptions implements IMethodOptions {
  2986. /**
  2987. * Constructs a new MethodOptions.
  2988. * @param [properties] Properties to set
  2989. */
  2990. constructor(properties?: google.protobuf.IMethodOptions);
  2991. /** MethodOptions deprecated. */
  2992. public deprecated: boolean;
  2993. /** MethodOptions idempotencyLevel. */
  2994. public idempotencyLevel: google.protobuf.MethodOptions.IdempotencyLevel;
  2995. /** MethodOptions uninterpretedOption. */
  2996. public uninterpretedOption: google.protobuf.IUninterpretedOption[];
  2997. /**
  2998. * Creates a new MethodOptions instance using the specified properties.
  2999. * @param [properties] Properties to set
  3000. * @returns MethodOptions instance
  3001. */
  3002. public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
  3003. /**
  3004. * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
  3005. * @param message MethodOptions message or plain object to encode
  3006. * @param [writer] Writer to encode to
  3007. * @returns Writer
  3008. */
  3009. public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
  3010. /**
  3011. * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
  3012. * @param message MethodOptions message or plain object to encode
  3013. * @param [writer] Writer to encode to
  3014. * @returns Writer
  3015. */
  3016. public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
  3017. /**
  3018. * Decodes a MethodOptions message from the specified reader or buffer.
  3019. * @param reader Reader or buffer to decode from
  3020. * @param [length] Message length if known beforehand
  3021. * @returns MethodOptions
  3022. * @throws {Error} If the payload is not a reader or valid buffer
  3023. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3024. */
  3025. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
  3026. /**
  3027. * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
  3028. * @param reader Reader or buffer to decode from
  3029. * @returns MethodOptions
  3030. * @throws {Error} If the payload is not a reader or valid buffer
  3031. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3032. */
  3033. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
  3034. /**
  3035. * Verifies a MethodOptions message.
  3036. * @param message Plain object to verify
  3037. * @returns `null` if valid, otherwise the reason why it is not
  3038. */
  3039. public static verify(message: { [k: string]: any }): (string|null);
  3040. /**
  3041. * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
  3042. * @param object Plain object
  3043. * @returns MethodOptions
  3044. */
  3045. public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
  3046. /**
  3047. * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
  3048. * @param message MethodOptions
  3049. * @param [options] Conversion options
  3050. * @returns Plain object
  3051. */
  3052. public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
  3053. /**
  3054. * Converts this MethodOptions to JSON.
  3055. * @returns JSON object
  3056. */
  3057. public toJSON(): { [k: string]: any };
  3058. }
  3059. namespace MethodOptions {
  3060. /** IdempotencyLevel enum. */
  3061. enum IdempotencyLevel {
  3062. IDEMPOTENCY_UNKNOWN = 0,
  3063. NO_SIDE_EFFECTS = 1,
  3064. IDEMPOTENT = 2
  3065. }
  3066. }
  3067. /** Properties of an UninterpretedOption. */
  3068. interface IUninterpretedOption {
  3069. /** UninterpretedOption name */
  3070. name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
  3071. /** UninterpretedOption identifierValue */
  3072. identifierValue?: (string|null);
  3073. /** UninterpretedOption positiveIntValue */
  3074. positiveIntValue?: (number|Long|null);
  3075. /** UninterpretedOption negativeIntValue */
  3076. negativeIntValue?: (number|Long|null);
  3077. /** UninterpretedOption doubleValue */
  3078. doubleValue?: (number|null);
  3079. /** UninterpretedOption stringValue */
  3080. stringValue?: (Uint8Array|null);
  3081. /** UninterpretedOption aggregateValue */
  3082. aggregateValue?: (string|null);
  3083. }
  3084. /** Represents an UninterpretedOption. */
  3085. class UninterpretedOption implements IUninterpretedOption {
  3086. /**
  3087. * Constructs a new UninterpretedOption.
  3088. * @param [properties] Properties to set
  3089. */
  3090. constructor(properties?: google.protobuf.IUninterpretedOption);
  3091. /** UninterpretedOption name. */
  3092. public name: google.protobuf.UninterpretedOption.INamePart[];
  3093. /** UninterpretedOption identifierValue. */
  3094. public identifierValue: string;
  3095. /** UninterpretedOption positiveIntValue. */
  3096. public positiveIntValue: (number|Long);
  3097. /** UninterpretedOption negativeIntValue. */
  3098. public negativeIntValue: (number|Long);
  3099. /** UninterpretedOption doubleValue. */
  3100. public doubleValue: number;
  3101. /** UninterpretedOption stringValue. */
  3102. public stringValue: Uint8Array;
  3103. /** UninterpretedOption aggregateValue. */
  3104. public aggregateValue: string;
  3105. /**
  3106. * Creates a new UninterpretedOption instance using the specified properties.
  3107. * @param [properties] Properties to set
  3108. * @returns UninterpretedOption instance
  3109. */
  3110. public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
  3111. /**
  3112. * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
  3113. * @param message UninterpretedOption message or plain object to encode
  3114. * @param [writer] Writer to encode to
  3115. * @returns Writer
  3116. */
  3117. public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
  3118. /**
  3119. * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
  3120. * @param message UninterpretedOption message or plain object to encode
  3121. * @param [writer] Writer to encode to
  3122. * @returns Writer
  3123. */
  3124. public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
  3125. /**
  3126. * Decodes an UninterpretedOption message from the specified reader or buffer.
  3127. * @param reader Reader or buffer to decode from
  3128. * @param [length] Message length if known beforehand
  3129. * @returns UninterpretedOption
  3130. * @throws {Error} If the payload is not a reader or valid buffer
  3131. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3132. */
  3133. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
  3134. /**
  3135. * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
  3136. * @param reader Reader or buffer to decode from
  3137. * @returns UninterpretedOption
  3138. * @throws {Error} If the payload is not a reader or valid buffer
  3139. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3140. */
  3141. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
  3142. /**
  3143. * Verifies an UninterpretedOption message.
  3144. * @param message Plain object to verify
  3145. * @returns `null` if valid, otherwise the reason why it is not
  3146. */
  3147. public static verify(message: { [k: string]: any }): (string|null);
  3148. /**
  3149. * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
  3150. * @param object Plain object
  3151. * @returns UninterpretedOption
  3152. */
  3153. public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
  3154. /**
  3155. * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
  3156. * @param message UninterpretedOption
  3157. * @param [options] Conversion options
  3158. * @returns Plain object
  3159. */
  3160. public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
  3161. /**
  3162. * Converts this UninterpretedOption to JSON.
  3163. * @returns JSON object
  3164. */
  3165. public toJSON(): { [k: string]: any };
  3166. }
  3167. namespace UninterpretedOption {
  3168. /** Properties of a NamePart. */
  3169. interface INamePart {
  3170. /** NamePart namePart */
  3171. namePart: string;
  3172. /** NamePart isExtension */
  3173. isExtension: boolean;
  3174. }
  3175. /** Represents a NamePart. */
  3176. class NamePart implements INamePart {
  3177. /**
  3178. * Constructs a new NamePart.
  3179. * @param [properties] Properties to set
  3180. */
  3181. constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
  3182. /** NamePart namePart. */
  3183. public namePart: string;
  3184. /** NamePart isExtension. */
  3185. public isExtension: boolean;
  3186. /**
  3187. * Creates a new NamePart instance using the specified properties.
  3188. * @param [properties] Properties to set
  3189. * @returns NamePart instance
  3190. */
  3191. public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
  3192. /**
  3193. * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
  3194. * @param message NamePart message or plain object to encode
  3195. * @param [writer] Writer to encode to
  3196. * @returns Writer
  3197. */
  3198. public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
  3199. /**
  3200. * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
  3201. * @param message NamePart message or plain object to encode
  3202. * @param [writer] Writer to encode to
  3203. * @returns Writer
  3204. */
  3205. public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
  3206. /**
  3207. * Decodes a NamePart message from the specified reader or buffer.
  3208. * @param reader Reader or buffer to decode from
  3209. * @param [length] Message length if known beforehand
  3210. * @returns NamePart
  3211. * @throws {Error} If the payload is not a reader or valid buffer
  3212. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3213. */
  3214. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
  3215. /**
  3216. * Decodes a NamePart message from the specified reader or buffer, length delimited.
  3217. * @param reader Reader or buffer to decode from
  3218. * @returns NamePart
  3219. * @throws {Error} If the payload is not a reader or valid buffer
  3220. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3221. */
  3222. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
  3223. /**
  3224. * Verifies a NamePart message.
  3225. * @param message Plain object to verify
  3226. * @returns `null` if valid, otherwise the reason why it is not
  3227. */
  3228. public static verify(message: { [k: string]: any }): (string|null);
  3229. /**
  3230. * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
  3231. * @param object Plain object
  3232. * @returns NamePart
  3233. */
  3234. public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
  3235. /**
  3236. * Creates a plain object from a NamePart message. Also converts values to other types if specified.
  3237. * @param message NamePart
  3238. * @param [options] Conversion options
  3239. * @returns Plain object
  3240. */
  3241. public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
  3242. /**
  3243. * Converts this NamePart to JSON.
  3244. * @returns JSON object
  3245. */
  3246. public toJSON(): { [k: string]: any };
  3247. }
  3248. }
  3249. /** Properties of a SourceCodeInfo. */
  3250. interface ISourceCodeInfo {
  3251. /** SourceCodeInfo location */
  3252. location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
  3253. }
  3254. /** Represents a SourceCodeInfo. */
  3255. class SourceCodeInfo implements ISourceCodeInfo {
  3256. /**
  3257. * Constructs a new SourceCodeInfo.
  3258. * @param [properties] Properties to set
  3259. */
  3260. constructor(properties?: google.protobuf.ISourceCodeInfo);
  3261. /** SourceCodeInfo location. */
  3262. public location: google.protobuf.SourceCodeInfo.ILocation[];
  3263. /**
  3264. * Creates a new SourceCodeInfo instance using the specified properties.
  3265. * @param [properties] Properties to set
  3266. * @returns SourceCodeInfo instance
  3267. */
  3268. public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
  3269. /**
  3270. * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
  3271. * @param message SourceCodeInfo message or plain object to encode
  3272. * @param [writer] Writer to encode to
  3273. * @returns Writer
  3274. */
  3275. public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
  3276. /**
  3277. * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
  3278. * @param message SourceCodeInfo message or plain object to encode
  3279. * @param [writer] Writer to encode to
  3280. * @returns Writer
  3281. */
  3282. public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
  3283. /**
  3284. * Decodes a SourceCodeInfo message from the specified reader or buffer.
  3285. * @param reader Reader or buffer to decode from
  3286. * @param [length] Message length if known beforehand
  3287. * @returns SourceCodeInfo
  3288. * @throws {Error} If the payload is not a reader or valid buffer
  3289. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3290. */
  3291. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
  3292. /**
  3293. * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
  3294. * @param reader Reader or buffer to decode from
  3295. * @returns SourceCodeInfo
  3296. * @throws {Error} If the payload is not a reader or valid buffer
  3297. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3298. */
  3299. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
  3300. /**
  3301. * Verifies a SourceCodeInfo message.
  3302. * @param message Plain object to verify
  3303. * @returns `null` if valid, otherwise the reason why it is not
  3304. */
  3305. public static verify(message: { [k: string]: any }): (string|null);
  3306. /**
  3307. * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
  3308. * @param object Plain object
  3309. * @returns SourceCodeInfo
  3310. */
  3311. public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
  3312. /**
  3313. * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
  3314. * @param message SourceCodeInfo
  3315. * @param [options] Conversion options
  3316. * @returns Plain object
  3317. */
  3318. public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
  3319. /**
  3320. * Converts this SourceCodeInfo to JSON.
  3321. * @returns JSON object
  3322. */
  3323. public toJSON(): { [k: string]: any };
  3324. }
  3325. namespace SourceCodeInfo {
  3326. /** Properties of a Location. */
  3327. interface ILocation {
  3328. /** Location path */
  3329. path?: (number[]|null);
  3330. /** Location span */
  3331. span?: (number[]|null);
  3332. /** Location leadingComments */
  3333. leadingComments?: (string|null);
  3334. /** Location trailingComments */
  3335. trailingComments?: (string|null);
  3336. /** Location leadingDetachedComments */
  3337. leadingDetachedComments?: (string[]|null);
  3338. }
  3339. /** Represents a Location. */
  3340. class Location implements ILocation {
  3341. /**
  3342. * Constructs a new Location.
  3343. * @param [properties] Properties to set
  3344. */
  3345. constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
  3346. /** Location path. */
  3347. public path: number[];
  3348. /** Location span. */
  3349. public span: number[];
  3350. /** Location leadingComments. */
  3351. public leadingComments: string;
  3352. /** Location trailingComments. */
  3353. public trailingComments: string;
  3354. /** Location leadingDetachedComments. */
  3355. public leadingDetachedComments: string[];
  3356. /**
  3357. * Creates a new Location instance using the specified properties.
  3358. * @param [properties] Properties to set
  3359. * @returns Location instance
  3360. */
  3361. public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
  3362. /**
  3363. * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
  3364. * @param message Location message or plain object to encode
  3365. * @param [writer] Writer to encode to
  3366. * @returns Writer
  3367. */
  3368. public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
  3369. /**
  3370. * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
  3371. * @param message Location message or plain object to encode
  3372. * @param [writer] Writer to encode to
  3373. * @returns Writer
  3374. */
  3375. public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
  3376. /**
  3377. * Decodes a Location message from the specified reader or buffer.
  3378. * @param reader Reader or buffer to decode from
  3379. * @param [length] Message length if known beforehand
  3380. * @returns Location
  3381. * @throws {Error} If the payload is not a reader or valid buffer
  3382. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3383. */
  3384. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
  3385. /**
  3386. * Decodes a Location message from the specified reader or buffer, length delimited.
  3387. * @param reader Reader or buffer to decode from
  3388. * @returns Location
  3389. * @throws {Error} If the payload is not a reader or valid buffer
  3390. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3391. */
  3392. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
  3393. /**
  3394. * Verifies a Location message.
  3395. * @param message Plain object to verify
  3396. * @returns `null` if valid, otherwise the reason why it is not
  3397. */
  3398. public static verify(message: { [k: string]: any }): (string|null);
  3399. /**
  3400. * Creates a Location message from a plain object. Also converts values to their respective internal types.
  3401. * @param object Plain object
  3402. * @returns Location
  3403. */
  3404. public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
  3405. /**
  3406. * Creates a plain object from a Location message. Also converts values to other types if specified.
  3407. * @param message Location
  3408. * @param [options] Conversion options
  3409. * @returns Plain object
  3410. */
  3411. public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
  3412. /**
  3413. * Converts this Location to JSON.
  3414. * @returns JSON object
  3415. */
  3416. public toJSON(): { [k: string]: any };
  3417. }
  3418. }
  3419. /** Properties of a GeneratedCodeInfo. */
  3420. interface IGeneratedCodeInfo {
  3421. /** GeneratedCodeInfo annotation */
  3422. annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
  3423. }
  3424. /** Represents a GeneratedCodeInfo. */
  3425. class GeneratedCodeInfo implements IGeneratedCodeInfo {
  3426. /**
  3427. * Constructs a new GeneratedCodeInfo.
  3428. * @param [properties] Properties to set
  3429. */
  3430. constructor(properties?: google.protobuf.IGeneratedCodeInfo);
  3431. /** GeneratedCodeInfo annotation. */
  3432. public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
  3433. /**
  3434. * Creates a new GeneratedCodeInfo instance using the specified properties.
  3435. * @param [properties] Properties to set
  3436. * @returns GeneratedCodeInfo instance
  3437. */
  3438. public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
  3439. /**
  3440. * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
  3441. * @param message GeneratedCodeInfo message or plain object to encode
  3442. * @param [writer] Writer to encode to
  3443. * @returns Writer
  3444. */
  3445. public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
  3446. /**
  3447. * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
  3448. * @param message GeneratedCodeInfo message or plain object to encode
  3449. * @param [writer] Writer to encode to
  3450. * @returns Writer
  3451. */
  3452. public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
  3453. /**
  3454. * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
  3455. * @param reader Reader or buffer to decode from
  3456. * @param [length] Message length if known beforehand
  3457. * @returns GeneratedCodeInfo
  3458. * @throws {Error} If the payload is not a reader or valid buffer
  3459. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3460. */
  3461. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
  3462. /**
  3463. * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
  3464. * @param reader Reader or buffer to decode from
  3465. * @returns GeneratedCodeInfo
  3466. * @throws {Error} If the payload is not a reader or valid buffer
  3467. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3468. */
  3469. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
  3470. /**
  3471. * Verifies a GeneratedCodeInfo message.
  3472. * @param message Plain object to verify
  3473. * @returns `null` if valid, otherwise the reason why it is not
  3474. */
  3475. public static verify(message: { [k: string]: any }): (string|null);
  3476. /**
  3477. * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
  3478. * @param object Plain object
  3479. * @returns GeneratedCodeInfo
  3480. */
  3481. public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
  3482. /**
  3483. * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
  3484. * @param message GeneratedCodeInfo
  3485. * @param [options] Conversion options
  3486. * @returns Plain object
  3487. */
  3488. public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
  3489. /**
  3490. * Converts this GeneratedCodeInfo to JSON.
  3491. * @returns JSON object
  3492. */
  3493. public toJSON(): { [k: string]: any };
  3494. }
  3495. namespace GeneratedCodeInfo {
  3496. /** Properties of an Annotation. */
  3497. interface IAnnotation {
  3498. /** Annotation path */
  3499. path?: (number[]|null);
  3500. /** Annotation sourceFile */
  3501. sourceFile?: (string|null);
  3502. /** Annotation begin */
  3503. begin?: (number|null);
  3504. /** Annotation end */
  3505. end?: (number|null);
  3506. }
  3507. /** Represents an Annotation. */
  3508. class Annotation implements IAnnotation {
  3509. /**
  3510. * Constructs a new Annotation.
  3511. * @param [properties] Properties to set
  3512. */
  3513. constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
  3514. /** Annotation path. */
  3515. public path: number[];
  3516. /** Annotation sourceFile. */
  3517. public sourceFile: string;
  3518. /** Annotation begin. */
  3519. public begin: number;
  3520. /** Annotation end. */
  3521. public end: number;
  3522. /**
  3523. * Creates a new Annotation instance using the specified properties.
  3524. * @param [properties] Properties to set
  3525. * @returns Annotation instance
  3526. */
  3527. public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
  3528. /**
  3529. * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
  3530. * @param message Annotation message or plain object to encode
  3531. * @param [writer] Writer to encode to
  3532. * @returns Writer
  3533. */
  3534. public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
  3535. /**
  3536. * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
  3537. * @param message Annotation message or plain object to encode
  3538. * @param [writer] Writer to encode to
  3539. * @returns Writer
  3540. */
  3541. public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
  3542. /**
  3543. * Decodes an Annotation message from the specified reader or buffer.
  3544. * @param reader Reader or buffer to decode from
  3545. * @param [length] Message length if known beforehand
  3546. * @returns Annotation
  3547. * @throws {Error} If the payload is not a reader or valid buffer
  3548. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3549. */
  3550. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
  3551. /**
  3552. * Decodes an Annotation message from the specified reader or buffer, length delimited.
  3553. * @param reader Reader or buffer to decode from
  3554. * @returns Annotation
  3555. * @throws {Error} If the payload is not a reader or valid buffer
  3556. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3557. */
  3558. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
  3559. /**
  3560. * Verifies an Annotation message.
  3561. * @param message Plain object to verify
  3562. * @returns `null` if valid, otherwise the reason why it is not
  3563. */
  3564. public static verify(message: { [k: string]: any }): (string|null);
  3565. /**
  3566. * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
  3567. * @param object Plain object
  3568. * @returns Annotation
  3569. */
  3570. public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
  3571. /**
  3572. * Creates a plain object from an Annotation message. Also converts values to other types if specified.
  3573. * @param message Annotation
  3574. * @param [options] Conversion options
  3575. * @returns Plain object
  3576. */
  3577. public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
  3578. /**
  3579. * Converts this Annotation to JSON.
  3580. * @returns JSON object
  3581. */
  3582. public toJSON(): { [k: string]: any };
  3583. }
  3584. }
  3585. /** Properties of an Any. */
  3586. interface IAny {
  3587. /** Any type_url */
  3588. type_url?: (string|null);
  3589. /** Any value */
  3590. value?: (Uint8Array|null);
  3591. }
  3592. /** Represents an Any. */
  3593. class Any implements IAny {
  3594. /**
  3595. * Constructs a new Any.
  3596. * @param [properties] Properties to set
  3597. */
  3598. constructor(properties?: google.protobuf.IAny);
  3599. /** Any type_url. */
  3600. public type_url: string;
  3601. /** Any value. */
  3602. public value: Uint8Array;
  3603. /**
  3604. * Creates a new Any instance using the specified properties.
  3605. * @param [properties] Properties to set
  3606. * @returns Any instance
  3607. */
  3608. public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
  3609. /**
  3610. * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
  3611. * @param message Any message or plain object to encode
  3612. * @param [writer] Writer to encode to
  3613. * @returns Writer
  3614. */
  3615. public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
  3616. /**
  3617. * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
  3618. * @param message Any message or plain object to encode
  3619. * @param [writer] Writer to encode to
  3620. * @returns Writer
  3621. */
  3622. public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
  3623. /**
  3624. * Decodes an Any message from the specified reader or buffer.
  3625. * @param reader Reader or buffer to decode from
  3626. * @param [length] Message length if known beforehand
  3627. * @returns Any
  3628. * @throws {Error} If the payload is not a reader or valid buffer
  3629. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3630. */
  3631. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
  3632. /**
  3633. * Decodes an Any message from the specified reader or buffer, length delimited.
  3634. * @param reader Reader or buffer to decode from
  3635. * @returns Any
  3636. * @throws {Error} If the payload is not a reader or valid buffer
  3637. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3638. */
  3639. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
  3640. /**
  3641. * Verifies an Any message.
  3642. * @param message Plain object to verify
  3643. * @returns `null` if valid, otherwise the reason why it is not
  3644. */
  3645. public static verify(message: { [k: string]: any }): (string|null);
  3646. /**
  3647. * Creates an Any message from a plain object. Also converts values to their respective internal types.
  3648. * @param object Plain object
  3649. * @returns Any
  3650. */
  3651. public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
  3652. /**
  3653. * Creates a plain object from an Any message. Also converts values to other types if specified.
  3654. * @param message Any
  3655. * @param [options] Conversion options
  3656. * @returns Plain object
  3657. */
  3658. public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
  3659. /**
  3660. * Converts this Any to JSON.
  3661. * @returns JSON object
  3662. */
  3663. public toJSON(): { [k: string]: any };
  3664. }
  3665. /** Properties of a Duration. */
  3666. interface IDuration {
  3667. /** Duration seconds */
  3668. seconds?: (number|Long|null);
  3669. /** Duration nanos */
  3670. nanos?: (number|null);
  3671. }
  3672. /** Represents a Duration. */
  3673. class Duration implements IDuration {
  3674. /**
  3675. * Constructs a new Duration.
  3676. * @param [properties] Properties to set
  3677. */
  3678. constructor(properties?: google.protobuf.IDuration);
  3679. /** Duration seconds. */
  3680. public seconds: (number|Long);
  3681. /** Duration nanos. */
  3682. public nanos: number;
  3683. /**
  3684. * Creates a new Duration instance using the specified properties.
  3685. * @param [properties] Properties to set
  3686. * @returns Duration instance
  3687. */
  3688. public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
  3689. /**
  3690. * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
  3691. * @param message Duration message or plain object to encode
  3692. * @param [writer] Writer to encode to
  3693. * @returns Writer
  3694. */
  3695. public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
  3696. /**
  3697. * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
  3698. * @param message Duration message or plain object to encode
  3699. * @param [writer] Writer to encode to
  3700. * @returns Writer
  3701. */
  3702. public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
  3703. /**
  3704. * Decodes a Duration message from the specified reader or buffer.
  3705. * @param reader Reader or buffer to decode from
  3706. * @param [length] Message length if known beforehand
  3707. * @returns Duration
  3708. * @throws {Error} If the payload is not a reader or valid buffer
  3709. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3710. */
  3711. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
  3712. /**
  3713. * Decodes a Duration message from the specified reader or buffer, length delimited.
  3714. * @param reader Reader or buffer to decode from
  3715. * @returns Duration
  3716. * @throws {Error} If the payload is not a reader or valid buffer
  3717. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3718. */
  3719. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
  3720. /**
  3721. * Verifies a Duration message.
  3722. * @param message Plain object to verify
  3723. * @returns `null` if valid, otherwise the reason why it is not
  3724. */
  3725. public static verify(message: { [k: string]: any }): (string|null);
  3726. /**
  3727. * Creates a Duration message from a plain object. Also converts values to their respective internal types.
  3728. * @param object Plain object
  3729. * @returns Duration
  3730. */
  3731. public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
  3732. /**
  3733. * Creates a plain object from a Duration message. Also converts values to other types if specified.
  3734. * @param message Duration
  3735. * @param [options] Conversion options
  3736. * @returns Plain object
  3737. */
  3738. public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
  3739. /**
  3740. * Converts this Duration to JSON.
  3741. * @returns JSON object
  3742. */
  3743. public toJSON(): { [k: string]: any };
  3744. }
  3745. /** Properties of an Empty. */
  3746. interface IEmpty {
  3747. }
  3748. /** Represents an Empty. */
  3749. class Empty implements IEmpty {
  3750. /**
  3751. * Constructs a new Empty.
  3752. * @param [properties] Properties to set
  3753. */
  3754. constructor(properties?: google.protobuf.IEmpty);
  3755. /**
  3756. * Creates a new Empty instance using the specified properties.
  3757. * @param [properties] Properties to set
  3758. * @returns Empty instance
  3759. */
  3760. public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
  3761. /**
  3762. * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
  3763. * @param message Empty message or plain object to encode
  3764. * @param [writer] Writer to encode to
  3765. * @returns Writer
  3766. */
  3767. public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
  3768. /**
  3769. * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
  3770. * @param message Empty message or plain object to encode
  3771. * @param [writer] Writer to encode to
  3772. * @returns Writer
  3773. */
  3774. public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
  3775. /**
  3776. * Decodes an Empty message from the specified reader or buffer.
  3777. * @param reader Reader or buffer to decode from
  3778. * @param [length] Message length if known beforehand
  3779. * @returns Empty
  3780. * @throws {Error} If the payload is not a reader or valid buffer
  3781. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3782. */
  3783. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
  3784. /**
  3785. * Decodes an Empty message from the specified reader or buffer, length delimited.
  3786. * @param reader Reader or buffer to decode from
  3787. * @returns Empty
  3788. * @throws {Error} If the payload is not a reader or valid buffer
  3789. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3790. */
  3791. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
  3792. /**
  3793. * Verifies an Empty message.
  3794. * @param message Plain object to verify
  3795. * @returns `null` if valid, otherwise the reason why it is not
  3796. */
  3797. public static verify(message: { [k: string]: any }): (string|null);
  3798. /**
  3799. * Creates an Empty message from a plain object. Also converts values to their respective internal types.
  3800. * @param object Plain object
  3801. * @returns Empty
  3802. */
  3803. public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
  3804. /**
  3805. * Creates a plain object from an Empty message. Also converts values to other types if specified.
  3806. * @param message Empty
  3807. * @param [options] Conversion options
  3808. * @returns Plain object
  3809. */
  3810. public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
  3811. /**
  3812. * Converts this Empty to JSON.
  3813. * @returns JSON object
  3814. */
  3815. public toJSON(): { [k: string]: any };
  3816. }
  3817. }
  3818. /** Namespace rpc. */
  3819. namespace rpc {
  3820. /** Properties of a Status. */
  3821. interface IStatus {
  3822. /** Status code */
  3823. code?: (number|null);
  3824. /** Status message */
  3825. message?: (string|null);
  3826. /** Status details */
  3827. details?: (google.protobuf.IAny[]|null);
  3828. }
  3829. /** Represents a Status. */
  3830. class Status implements IStatus {
  3831. /**
  3832. * Constructs a new Status.
  3833. * @param [properties] Properties to set
  3834. */
  3835. constructor(properties?: google.rpc.IStatus);
  3836. /** Status code. */
  3837. public code: number;
  3838. /** Status message. */
  3839. public message: string;
  3840. /** Status details. */
  3841. public details: google.protobuf.IAny[];
  3842. /**
  3843. * Creates a new Status instance using the specified properties.
  3844. * @param [properties] Properties to set
  3845. * @returns Status instance
  3846. */
  3847. public static create(properties?: google.rpc.IStatus): google.rpc.Status;
  3848. /**
  3849. * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
  3850. * @param message Status message or plain object to encode
  3851. * @param [writer] Writer to encode to
  3852. * @returns Writer
  3853. */
  3854. public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
  3855. /**
  3856. * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
  3857. * @param message Status message or plain object to encode
  3858. * @param [writer] Writer to encode to
  3859. * @returns Writer
  3860. */
  3861. public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
  3862. /**
  3863. * Decodes a Status message from the specified reader or buffer.
  3864. * @param reader Reader or buffer to decode from
  3865. * @param [length] Message length if known beforehand
  3866. * @returns Status
  3867. * @throws {Error} If the payload is not a reader or valid buffer
  3868. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3869. */
  3870. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
  3871. /**
  3872. * Decodes a Status message from the specified reader or buffer, length delimited.
  3873. * @param reader Reader or buffer to decode from
  3874. * @returns Status
  3875. * @throws {Error} If the payload is not a reader or valid buffer
  3876. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3877. */
  3878. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
  3879. /**
  3880. * Verifies a Status message.
  3881. * @param message Plain object to verify
  3882. * @returns `null` if valid, otherwise the reason why it is not
  3883. */
  3884. public static verify(message: { [k: string]: any }): (string|null);
  3885. /**
  3886. * Creates a Status message from a plain object. Also converts values to their respective internal types.
  3887. * @param object Plain object
  3888. * @returns Status
  3889. */
  3890. public static fromObject(object: { [k: string]: any }): google.rpc.Status;
  3891. /**
  3892. * Creates a plain object from a Status message. Also converts values to other types if specified.
  3893. * @param message Status
  3894. * @param [options] Conversion options
  3895. * @returns Plain object
  3896. */
  3897. public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
  3898. /**
  3899. * Converts this Status to JSON.
  3900. * @returns JSON object
  3901. */
  3902. public toJSON(): { [k: string]: any };
  3903. }
  3904. }
  3905. }