UNPKG

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