locations.d.ts 178 KB

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