http.d.ts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. import * as $protobuf from "protobufjs";
  2. /** Namespace google. */
  3. export namespace google {
  4. /** Namespace api. */
  5. namespace api {
  6. /** Properties of a Http. */
  7. interface IHttp {
  8. /** Http rules */
  9. rules?: (google.api.IHttpRule[]|null);
  10. /** Http fully_decode_reserved_expansion */
  11. fully_decode_reserved_expansion?: (boolean|null);
  12. }
  13. /** Represents a Http. */
  14. class Http implements IHttp {
  15. /**
  16. * Constructs a new Http.
  17. * @param [properties] Properties to set
  18. */
  19. constructor(properties?: google.api.IHttp);
  20. /** Http rules. */
  21. public rules: google.api.IHttpRule[];
  22. /** Http fully_decode_reserved_expansion. */
  23. public fully_decode_reserved_expansion: boolean;
  24. /**
  25. * Creates a new Http instance using the specified properties.
  26. * @param [properties] Properties to set
  27. * @returns Http instance
  28. */
  29. public static create(properties?: google.api.IHttp): google.api.Http;
  30. /**
  31. * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
  32. * @param message Http message or plain object to encode
  33. * @param [writer] Writer to encode to
  34. * @returns Writer
  35. */
  36. public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
  37. /**
  38. * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
  39. * @param message Http message or plain object to encode
  40. * @param [writer] Writer to encode to
  41. * @returns Writer
  42. */
  43. public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
  44. /**
  45. * Decodes a Http message from the specified reader or buffer.
  46. * @param reader Reader or buffer to decode from
  47. * @param [length] Message length if known beforehand
  48. * @returns Http
  49. * @throws {Error} If the payload is not a reader or valid buffer
  50. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51. */
  52. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
  53. /**
  54. * Decodes a Http message from the specified reader or buffer, length delimited.
  55. * @param reader Reader or buffer to decode from
  56. * @returns Http
  57. * @throws {Error} If the payload is not a reader or valid buffer
  58. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  59. */
  60. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
  61. /**
  62. * Verifies a Http message.
  63. * @param message Plain object to verify
  64. * @returns `null` if valid, otherwise the reason why it is not
  65. */
  66. public static verify(message: { [k: string]: any }): (string|null);
  67. /**
  68. * Creates a Http message from a plain object. Also converts values to their respective internal types.
  69. * @param object Plain object
  70. * @returns Http
  71. */
  72. public static fromObject(object: { [k: string]: any }): google.api.Http;
  73. /**
  74. * Creates a plain object from a Http message. Also converts values to other types if specified.
  75. * @param message Http
  76. * @param [options] Conversion options
  77. * @returns Plain object
  78. */
  79. public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
  80. /**
  81. * Converts this Http to JSON.
  82. * @returns JSON object
  83. */
  84. public toJSON(): { [k: string]: any };
  85. }
  86. /** Properties of a HttpRule. */
  87. interface IHttpRule {
  88. /** HttpRule selector */
  89. selector?: (string|null);
  90. /** HttpRule get */
  91. get?: (string|null);
  92. /** HttpRule put */
  93. put?: (string|null);
  94. /** HttpRule post */
  95. post?: (string|null);
  96. /** HttpRule delete */
  97. "delete"?: (string|null);
  98. /** HttpRule patch */
  99. patch?: (string|null);
  100. /** HttpRule custom */
  101. custom?: (google.api.ICustomHttpPattern|null);
  102. /** HttpRule body */
  103. body?: (string|null);
  104. /** HttpRule response_body */
  105. response_body?: (string|null);
  106. /** HttpRule additional_bindings */
  107. additional_bindings?: (google.api.IHttpRule[]|null);
  108. }
  109. /** Represents a HttpRule. */
  110. class HttpRule implements IHttpRule {
  111. /**
  112. * Constructs a new HttpRule.
  113. * @param [properties] Properties to set
  114. */
  115. constructor(properties?: google.api.IHttpRule);
  116. /** HttpRule selector. */
  117. public selector: string;
  118. /** HttpRule get. */
  119. public get: string;
  120. /** HttpRule put. */
  121. public put: string;
  122. /** HttpRule post. */
  123. public post: string;
  124. /** HttpRule delete. */
  125. public delete: string;
  126. /** HttpRule patch. */
  127. public patch: string;
  128. /** HttpRule custom. */
  129. public custom?: (google.api.ICustomHttpPattern|null);
  130. /** HttpRule body. */
  131. public body: string;
  132. /** HttpRule response_body. */
  133. public response_body: string;
  134. /** HttpRule additional_bindings. */
  135. public additional_bindings: google.api.IHttpRule[];
  136. /** HttpRule pattern. */
  137. public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
  138. /**
  139. * Creates a new HttpRule instance using the specified properties.
  140. * @param [properties] Properties to set
  141. * @returns HttpRule instance
  142. */
  143. public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
  144. /**
  145. * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
  146. * @param message HttpRule message or plain object to encode
  147. * @param [writer] Writer to encode to
  148. * @returns Writer
  149. */
  150. public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
  151. /**
  152. * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
  153. * @param message HttpRule message or plain object to encode
  154. * @param [writer] Writer to encode to
  155. * @returns Writer
  156. */
  157. public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
  158. /**
  159. * Decodes a HttpRule message from the specified reader or buffer.
  160. * @param reader Reader or buffer to decode from
  161. * @param [length] Message length if known beforehand
  162. * @returns HttpRule
  163. * @throws {Error} If the payload is not a reader or valid buffer
  164. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  165. */
  166. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
  167. /**
  168. * Decodes a HttpRule message from the specified reader or buffer, length delimited.
  169. * @param reader Reader or buffer to decode from
  170. * @returns HttpRule
  171. * @throws {Error} If the payload is not a reader or valid buffer
  172. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  173. */
  174. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
  175. /**
  176. * Verifies a HttpRule message.
  177. * @param message Plain object to verify
  178. * @returns `null` if valid, otherwise the reason why it is not
  179. */
  180. public static verify(message: { [k: string]: any }): (string|null);
  181. /**
  182. * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
  183. * @param object Plain object
  184. * @returns HttpRule
  185. */
  186. public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
  187. /**
  188. * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
  189. * @param message HttpRule
  190. * @param [options] Conversion options
  191. * @returns Plain object
  192. */
  193. public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
  194. /**
  195. * Converts this HttpRule to JSON.
  196. * @returns JSON object
  197. */
  198. public toJSON(): { [k: string]: any };
  199. }
  200. /** Properties of a CustomHttpPattern. */
  201. interface ICustomHttpPattern {
  202. /** CustomHttpPattern kind */
  203. kind?: (string|null);
  204. /** CustomHttpPattern path */
  205. path?: (string|null);
  206. }
  207. /** Represents a CustomHttpPattern. */
  208. class CustomHttpPattern implements ICustomHttpPattern {
  209. /**
  210. * Constructs a new CustomHttpPattern.
  211. * @param [properties] Properties to set
  212. */
  213. constructor(properties?: google.api.ICustomHttpPattern);
  214. /** CustomHttpPattern kind. */
  215. public kind: string;
  216. /** CustomHttpPattern path. */
  217. public path: string;
  218. /**
  219. * Creates a new CustomHttpPattern instance using the specified properties.
  220. * @param [properties] Properties to set
  221. * @returns CustomHttpPattern instance
  222. */
  223. public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
  224. /**
  225. * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
  226. * @param message CustomHttpPattern message or plain object to encode
  227. * @param [writer] Writer to encode to
  228. * @returns Writer
  229. */
  230. public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
  231. /**
  232. * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
  233. * @param message CustomHttpPattern message or plain object to encode
  234. * @param [writer] Writer to encode to
  235. * @returns Writer
  236. */
  237. public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
  238. /**
  239. * Decodes a CustomHttpPattern message from the specified reader or buffer.
  240. * @param reader Reader or buffer to decode from
  241. * @param [length] Message length if known beforehand
  242. * @returns CustomHttpPattern
  243. * @throws {Error} If the payload is not a reader or valid buffer
  244. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  245. */
  246. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
  247. /**
  248. * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
  249. * @param reader Reader or buffer to decode from
  250. * @returns CustomHttpPattern
  251. * @throws {Error} If the payload is not a reader or valid buffer
  252. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  253. */
  254. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
  255. /**
  256. * Verifies a CustomHttpPattern message.
  257. * @param message Plain object to verify
  258. * @returns `null` if valid, otherwise the reason why it is not
  259. */
  260. public static verify(message: { [k: string]: any }): (string|null);
  261. /**
  262. * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
  263. * @param object Plain object
  264. * @returns CustomHttpPattern
  265. */
  266. public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
  267. /**
  268. * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
  269. * @param message CustomHttpPattern
  270. * @param [options] Conversion options
  271. * @returns Plain object
  272. */
  273. public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
  274. /**
  275. * Converts this CustomHttpPattern to JSON.
  276. * @returns JSON object
  277. */
  278. public toJSON(): { [k: string]: any };
  279. }
  280. }
  281. }