iam_service.d.ts 222 KB

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