UNPKG

494 kBTypeScriptView Raw
1// Copyright 2021 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15import * as Long from "long";
16import {protobuf as $protobuf} from "google-gax";
17/** Namespace google. */
18export namespace google {
19
20 /** Namespace pubsub. */
21 namespace pubsub {
22
23 /** Namespace v1. */
24 namespace v1 {
25
26 /** Represents a Publisher */
27 class Publisher extends $protobuf.rpc.Service {
28
29 /**
30 * Constructs a new Publisher service.
31 * @param rpcImpl RPC implementation
32 * @param [requestDelimited=false] Whether requests are length-delimited
33 * @param [responseDelimited=false] Whether responses are length-delimited
34 */
35 constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
36
37 /**
38 * Creates new Publisher service using the specified rpc implementation.
39 * @param rpcImpl RPC implementation
40 * @param [requestDelimited=false] Whether requests are length-delimited
41 * @param [responseDelimited=false] Whether responses are length-delimited
42 * @returns RPC service. Useful where requests and/or responses are streamed.
43 */
44 public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Publisher;
45
46 /**
47 * Calls CreateTopic.
48 * @param request Topic message or plain object
49 * @param callback Node-style callback called with the error, if any, and Topic
50 */
51 public createTopic(request: google.pubsub.v1.ITopic, callback: google.pubsub.v1.Publisher.CreateTopicCallback): void;
52
53 /**
54 * Calls CreateTopic.
55 * @param request Topic message or plain object
56 * @returns Promise
57 */
58 public createTopic(request: google.pubsub.v1.ITopic): Promise<google.pubsub.v1.Topic>;
59
60 /**
61 * Calls UpdateTopic.
62 * @param request UpdateTopicRequest message or plain object
63 * @param callback Node-style callback called with the error, if any, and Topic
64 */
65 public updateTopic(request: google.pubsub.v1.IUpdateTopicRequest, callback: google.pubsub.v1.Publisher.UpdateTopicCallback): void;
66
67 /**
68 * Calls UpdateTopic.
69 * @param request UpdateTopicRequest message or plain object
70 * @returns Promise
71 */
72 public updateTopic(request: google.pubsub.v1.IUpdateTopicRequest): Promise<google.pubsub.v1.Topic>;
73
74 /**
75 * Calls Publish.
76 * @param request PublishRequest message or plain object
77 * @param callback Node-style callback called with the error, if any, and PublishResponse
78 */
79 public publish(request: google.pubsub.v1.IPublishRequest, callback: google.pubsub.v1.Publisher.PublishCallback): void;
80
81 /**
82 * Calls Publish.
83 * @param request PublishRequest message or plain object
84 * @returns Promise
85 */
86 public publish(request: google.pubsub.v1.IPublishRequest): Promise<google.pubsub.v1.PublishResponse>;
87
88 /**
89 * Calls GetTopic.
90 * @param request GetTopicRequest message or plain object
91 * @param callback Node-style callback called with the error, if any, and Topic
92 */
93 public getTopic(request: google.pubsub.v1.IGetTopicRequest, callback: google.pubsub.v1.Publisher.GetTopicCallback): void;
94
95 /**
96 * Calls GetTopic.
97 * @param request GetTopicRequest message or plain object
98 * @returns Promise
99 */
100 public getTopic(request: google.pubsub.v1.IGetTopicRequest): Promise<google.pubsub.v1.Topic>;
101
102 /**
103 * Calls ListTopics.
104 * @param request ListTopicsRequest message or plain object
105 * @param callback Node-style callback called with the error, if any, and ListTopicsResponse
106 */
107 public listTopics(request: google.pubsub.v1.IListTopicsRequest, callback: google.pubsub.v1.Publisher.ListTopicsCallback): void;
108
109 /**
110 * Calls ListTopics.
111 * @param request ListTopicsRequest message or plain object
112 * @returns Promise
113 */
114 public listTopics(request: google.pubsub.v1.IListTopicsRequest): Promise<google.pubsub.v1.ListTopicsResponse>;
115
116 /**
117 * Calls ListTopicSubscriptions.
118 * @param request ListTopicSubscriptionsRequest message or plain object
119 * @param callback Node-style callback called with the error, if any, and ListTopicSubscriptionsResponse
120 */
121 public listTopicSubscriptions(request: google.pubsub.v1.IListTopicSubscriptionsRequest, callback: google.pubsub.v1.Publisher.ListTopicSubscriptionsCallback): void;
122
123 /**
124 * Calls ListTopicSubscriptions.
125 * @param request ListTopicSubscriptionsRequest message or plain object
126 * @returns Promise
127 */
128 public listTopicSubscriptions(request: google.pubsub.v1.IListTopicSubscriptionsRequest): Promise<google.pubsub.v1.ListTopicSubscriptionsResponse>;
129
130 /**
131 * Calls ListTopicSnapshots.
132 * @param request ListTopicSnapshotsRequest message or plain object
133 * @param callback Node-style callback called with the error, if any, and ListTopicSnapshotsResponse
134 */
135 public listTopicSnapshots(request: google.pubsub.v1.IListTopicSnapshotsRequest, callback: google.pubsub.v1.Publisher.ListTopicSnapshotsCallback): void;
136
137 /**
138 * Calls ListTopicSnapshots.
139 * @param request ListTopicSnapshotsRequest message or plain object
140 * @returns Promise
141 */
142 public listTopicSnapshots(request: google.pubsub.v1.IListTopicSnapshotsRequest): Promise<google.pubsub.v1.ListTopicSnapshotsResponse>;
143
144 /**
145 * Calls DeleteTopic.
146 * @param request DeleteTopicRequest message or plain object
147 * @param callback Node-style callback called with the error, if any, and Empty
148 */
149 public deleteTopic(request: google.pubsub.v1.IDeleteTopicRequest, callback: google.pubsub.v1.Publisher.DeleteTopicCallback): void;
150
151 /**
152 * Calls DeleteTopic.
153 * @param request DeleteTopicRequest message or plain object
154 * @returns Promise
155 */
156 public deleteTopic(request: google.pubsub.v1.IDeleteTopicRequest): Promise<google.protobuf.Empty>;
157
158 /**
159 * Calls DetachSubscription.
160 * @param request DetachSubscriptionRequest message or plain object
161 * @param callback Node-style callback called with the error, if any, and DetachSubscriptionResponse
162 */
163 public detachSubscription(request: google.pubsub.v1.IDetachSubscriptionRequest, callback: google.pubsub.v1.Publisher.DetachSubscriptionCallback): void;
164
165 /**
166 * Calls DetachSubscription.
167 * @param request DetachSubscriptionRequest message or plain object
168 * @returns Promise
169 */
170 public detachSubscription(request: google.pubsub.v1.IDetachSubscriptionRequest): Promise<google.pubsub.v1.DetachSubscriptionResponse>;
171 }
172
173 namespace Publisher {
174
175 /**
176 * Callback as used by {@link google.pubsub.v1.Publisher#createTopic}.
177 * @param error Error, if any
178 * @param [response] Topic
179 */
180 type CreateTopicCallback = (error: (Error|null), response?: google.pubsub.v1.Topic) => void;
181
182 /**
183 * Callback as used by {@link google.pubsub.v1.Publisher#updateTopic}.
184 * @param error Error, if any
185 * @param [response] Topic
186 */
187 type UpdateTopicCallback = (error: (Error|null), response?: google.pubsub.v1.Topic) => void;
188
189 /**
190 * Callback as used by {@link google.pubsub.v1.Publisher#publish}.
191 * @param error Error, if any
192 * @param [response] PublishResponse
193 */
194 type PublishCallback = (error: (Error|null), response?: google.pubsub.v1.PublishResponse) => void;
195
196 /**
197 * Callback as used by {@link google.pubsub.v1.Publisher#getTopic}.
198 * @param error Error, if any
199 * @param [response] Topic
200 */
201 type GetTopicCallback = (error: (Error|null), response?: google.pubsub.v1.Topic) => void;
202
203 /**
204 * Callback as used by {@link google.pubsub.v1.Publisher#listTopics}.
205 * @param error Error, if any
206 * @param [response] ListTopicsResponse
207 */
208 type ListTopicsCallback = (error: (Error|null), response?: google.pubsub.v1.ListTopicsResponse) => void;
209
210 /**
211 * Callback as used by {@link google.pubsub.v1.Publisher#listTopicSubscriptions}.
212 * @param error Error, if any
213 * @param [response] ListTopicSubscriptionsResponse
214 */
215 type ListTopicSubscriptionsCallback = (error: (Error|null), response?: google.pubsub.v1.ListTopicSubscriptionsResponse) => void;
216
217 /**
218 * Callback as used by {@link google.pubsub.v1.Publisher#listTopicSnapshots}.
219 * @param error Error, if any
220 * @param [response] ListTopicSnapshotsResponse
221 */
222 type ListTopicSnapshotsCallback = (error: (Error|null), response?: google.pubsub.v1.ListTopicSnapshotsResponse) => void;
223
224 /**
225 * Callback as used by {@link google.pubsub.v1.Publisher#deleteTopic}.
226 * @param error Error, if any
227 * @param [response] Empty
228 */
229 type DeleteTopicCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
230
231 /**
232 * Callback as used by {@link google.pubsub.v1.Publisher#detachSubscription}.
233 * @param error Error, if any
234 * @param [response] DetachSubscriptionResponse
235 */
236 type DetachSubscriptionCallback = (error: (Error|null), response?: google.pubsub.v1.DetachSubscriptionResponse) => void;
237 }
238
239 /** Properties of a MessageStoragePolicy. */
240 interface IMessageStoragePolicy {
241
242 /** MessageStoragePolicy allowedPersistenceRegions */
243 allowedPersistenceRegions?: (string[]|null);
244 }
245
246 /** Represents a MessageStoragePolicy. */
247 class MessageStoragePolicy implements IMessageStoragePolicy {
248
249 /**
250 * Constructs a new MessageStoragePolicy.
251 * @param [properties] Properties to set
252 */
253 constructor(properties?: google.pubsub.v1.IMessageStoragePolicy);
254
255 /** MessageStoragePolicy allowedPersistenceRegions. */
256 public allowedPersistenceRegions: string[];
257
258 /**
259 * Creates a new MessageStoragePolicy instance using the specified properties.
260 * @param [properties] Properties to set
261 * @returns MessageStoragePolicy instance
262 */
263 public static create(properties?: google.pubsub.v1.IMessageStoragePolicy): google.pubsub.v1.MessageStoragePolicy;
264
265 /**
266 * Encodes the specified MessageStoragePolicy message. Does not implicitly {@link google.pubsub.v1.MessageStoragePolicy.verify|verify} messages.
267 * @param message MessageStoragePolicy message or plain object to encode
268 * @param [writer] Writer to encode to
269 * @returns Writer
270 */
271 public static encode(message: google.pubsub.v1.IMessageStoragePolicy, writer?: $protobuf.Writer): $protobuf.Writer;
272
273 /**
274 * Encodes the specified MessageStoragePolicy message, length delimited. Does not implicitly {@link google.pubsub.v1.MessageStoragePolicy.verify|verify} messages.
275 * @param message MessageStoragePolicy message or plain object to encode
276 * @param [writer] Writer to encode to
277 * @returns Writer
278 */
279 public static encodeDelimited(message: google.pubsub.v1.IMessageStoragePolicy, writer?: $protobuf.Writer): $protobuf.Writer;
280
281 /**
282 * Decodes a MessageStoragePolicy message from the specified reader or buffer.
283 * @param reader Reader or buffer to decode from
284 * @param [length] Message length if known beforehand
285 * @returns MessageStoragePolicy
286 * @throws {Error} If the payload is not a reader or valid buffer
287 * @throws {$protobuf.util.ProtocolError} If required fields are missing
288 */
289 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.MessageStoragePolicy;
290
291 /**
292 * Decodes a MessageStoragePolicy message from the specified reader or buffer, length delimited.
293 * @param reader Reader or buffer to decode from
294 * @returns MessageStoragePolicy
295 * @throws {Error} If the payload is not a reader or valid buffer
296 * @throws {$protobuf.util.ProtocolError} If required fields are missing
297 */
298 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.MessageStoragePolicy;
299
300 /**
301 * Verifies a MessageStoragePolicy message.
302 * @param message Plain object to verify
303 * @returns `null` if valid, otherwise the reason why it is not
304 */
305 public static verify(message: { [k: string]: any }): (string|null);
306
307 /**
308 * Creates a MessageStoragePolicy message from a plain object. Also converts values to their respective internal types.
309 * @param object Plain object
310 * @returns MessageStoragePolicy
311 */
312 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.MessageStoragePolicy;
313
314 /**
315 * Creates a plain object from a MessageStoragePolicy message. Also converts values to other types if specified.
316 * @param message MessageStoragePolicy
317 * @param [options] Conversion options
318 * @returns Plain object
319 */
320 public static toObject(message: google.pubsub.v1.MessageStoragePolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
321
322 /**
323 * Converts this MessageStoragePolicy to JSON.
324 * @returns JSON object
325 */
326 public toJSON(): { [k: string]: any };
327 }
328
329 /** Properties of a SchemaSettings. */
330 interface ISchemaSettings {
331
332 /** SchemaSettings schema */
333 schema?: (string|null);
334
335 /** SchemaSettings encoding */
336 encoding?: (google.pubsub.v1.Encoding|keyof typeof google.pubsub.v1.Encoding|null);
337 }
338
339 /** Represents a SchemaSettings. */
340 class SchemaSettings implements ISchemaSettings {
341
342 /**
343 * Constructs a new SchemaSettings.
344 * @param [properties] Properties to set
345 */
346 constructor(properties?: google.pubsub.v1.ISchemaSettings);
347
348 /** SchemaSettings schema. */
349 public schema: string;
350
351 /** SchemaSettings encoding. */
352 public encoding: (google.pubsub.v1.Encoding|keyof typeof google.pubsub.v1.Encoding);
353
354 /**
355 * Creates a new SchemaSettings instance using the specified properties.
356 * @param [properties] Properties to set
357 * @returns SchemaSettings instance
358 */
359 public static create(properties?: google.pubsub.v1.ISchemaSettings): google.pubsub.v1.SchemaSettings;
360
361 /**
362 * Encodes the specified SchemaSettings message. Does not implicitly {@link google.pubsub.v1.SchemaSettings.verify|verify} messages.
363 * @param message SchemaSettings message or plain object to encode
364 * @param [writer] Writer to encode to
365 * @returns Writer
366 */
367 public static encode(message: google.pubsub.v1.ISchemaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
368
369 /**
370 * Encodes the specified SchemaSettings message, length delimited. Does not implicitly {@link google.pubsub.v1.SchemaSettings.verify|verify} messages.
371 * @param message SchemaSettings message or plain object to encode
372 * @param [writer] Writer to encode to
373 * @returns Writer
374 */
375 public static encodeDelimited(message: google.pubsub.v1.ISchemaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
376
377 /**
378 * Decodes a SchemaSettings message from the specified reader or buffer.
379 * @param reader Reader or buffer to decode from
380 * @param [length] Message length if known beforehand
381 * @returns SchemaSettings
382 * @throws {Error} If the payload is not a reader or valid buffer
383 * @throws {$protobuf.util.ProtocolError} If required fields are missing
384 */
385 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.SchemaSettings;
386
387 /**
388 * Decodes a SchemaSettings message from the specified reader or buffer, length delimited.
389 * @param reader Reader or buffer to decode from
390 * @returns SchemaSettings
391 * @throws {Error} If the payload is not a reader or valid buffer
392 * @throws {$protobuf.util.ProtocolError} If required fields are missing
393 */
394 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.SchemaSettings;
395
396 /**
397 * Verifies a SchemaSettings message.
398 * @param message Plain object to verify
399 * @returns `null` if valid, otherwise the reason why it is not
400 */
401 public static verify(message: { [k: string]: any }): (string|null);
402
403 /**
404 * Creates a SchemaSettings message from a plain object. Also converts values to their respective internal types.
405 * @param object Plain object
406 * @returns SchemaSettings
407 */
408 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.SchemaSettings;
409
410 /**
411 * Creates a plain object from a SchemaSettings message. Also converts values to other types if specified.
412 * @param message SchemaSettings
413 * @param [options] Conversion options
414 * @returns Plain object
415 */
416 public static toObject(message: google.pubsub.v1.SchemaSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
417
418 /**
419 * Converts this SchemaSettings to JSON.
420 * @returns JSON object
421 */
422 public toJSON(): { [k: string]: any };
423 }
424
425 /** Properties of a Topic. */
426 interface ITopic {
427
428 /** Topic name */
429 name?: (string|null);
430
431 /** Topic labels */
432 labels?: ({ [k: string]: string }|null);
433
434 /** Topic messageStoragePolicy */
435 messageStoragePolicy?: (google.pubsub.v1.IMessageStoragePolicy|null);
436
437 /** Topic kmsKeyName */
438 kmsKeyName?: (string|null);
439
440 /** Topic schemaSettings */
441 schemaSettings?: (google.pubsub.v1.ISchemaSettings|null);
442
443 /** Topic satisfiesPzs */
444 satisfiesPzs?: (boolean|null);
445 }
446
447 /** Represents a Topic. */
448 class Topic implements ITopic {
449
450 /**
451 * Constructs a new Topic.
452 * @param [properties] Properties to set
453 */
454 constructor(properties?: google.pubsub.v1.ITopic);
455
456 /** Topic name. */
457 public name: string;
458
459 /** Topic labels. */
460 public labels: { [k: string]: string };
461
462 /** Topic messageStoragePolicy. */
463 public messageStoragePolicy?: (google.pubsub.v1.IMessageStoragePolicy|null);
464
465 /** Topic kmsKeyName. */
466 public kmsKeyName: string;
467
468 /** Topic schemaSettings. */
469 public schemaSettings?: (google.pubsub.v1.ISchemaSettings|null);
470
471 /** Topic satisfiesPzs. */
472 public satisfiesPzs: boolean;
473
474 /**
475 * Creates a new Topic instance using the specified properties.
476 * @param [properties] Properties to set
477 * @returns Topic instance
478 */
479 public static create(properties?: google.pubsub.v1.ITopic): google.pubsub.v1.Topic;
480
481 /**
482 * Encodes the specified Topic message. Does not implicitly {@link google.pubsub.v1.Topic.verify|verify} messages.
483 * @param message Topic message or plain object to encode
484 * @param [writer] Writer to encode to
485 * @returns Writer
486 */
487 public static encode(message: google.pubsub.v1.ITopic, writer?: $protobuf.Writer): $protobuf.Writer;
488
489 /**
490 * Encodes the specified Topic message, length delimited. Does not implicitly {@link google.pubsub.v1.Topic.verify|verify} messages.
491 * @param message Topic message or plain object to encode
492 * @param [writer] Writer to encode to
493 * @returns Writer
494 */
495 public static encodeDelimited(message: google.pubsub.v1.ITopic, writer?: $protobuf.Writer): $protobuf.Writer;
496
497 /**
498 * Decodes a Topic message from the specified reader or buffer.
499 * @param reader Reader or buffer to decode from
500 * @param [length] Message length if known beforehand
501 * @returns Topic
502 * @throws {Error} If the payload is not a reader or valid buffer
503 * @throws {$protobuf.util.ProtocolError} If required fields are missing
504 */
505 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.Topic;
506
507 /**
508 * Decodes a Topic message from the specified reader or buffer, length delimited.
509 * @param reader Reader or buffer to decode from
510 * @returns Topic
511 * @throws {Error} If the payload is not a reader or valid buffer
512 * @throws {$protobuf.util.ProtocolError} If required fields are missing
513 */
514 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.Topic;
515
516 /**
517 * Verifies a Topic message.
518 * @param message Plain object to verify
519 * @returns `null` if valid, otherwise the reason why it is not
520 */
521 public static verify(message: { [k: string]: any }): (string|null);
522
523 /**
524 * Creates a Topic message from a plain object. Also converts values to their respective internal types.
525 * @param object Plain object
526 * @returns Topic
527 */
528 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.Topic;
529
530 /**
531 * Creates a plain object from a Topic message. Also converts values to other types if specified.
532 * @param message Topic
533 * @param [options] Conversion options
534 * @returns Plain object
535 */
536 public static toObject(message: google.pubsub.v1.Topic, options?: $protobuf.IConversionOptions): { [k: string]: any };
537
538 /**
539 * Converts this Topic to JSON.
540 * @returns JSON object
541 */
542 public toJSON(): { [k: string]: any };
543 }
544
545 /** Properties of a PubsubMessage. */
546 interface IPubsubMessage {
547
548 /** PubsubMessage data */
549 data?: (Uint8Array|string|null);
550
551 /** PubsubMessage attributes */
552 attributes?: ({ [k: string]: string }|null);
553
554 /** PubsubMessage messageId */
555 messageId?: (string|null);
556
557 /** PubsubMessage publishTime */
558 publishTime?: (google.protobuf.ITimestamp|null);
559
560 /** PubsubMessage orderingKey */
561 orderingKey?: (string|null);
562 }
563
564 /** Represents a PubsubMessage. */
565 class PubsubMessage implements IPubsubMessage {
566
567 /**
568 * Constructs a new PubsubMessage.
569 * @param [properties] Properties to set
570 */
571 constructor(properties?: google.pubsub.v1.IPubsubMessage);
572
573 /** PubsubMessage data. */
574 public data: (Uint8Array|string);
575
576 /** PubsubMessage attributes. */
577 public attributes: { [k: string]: string };
578
579 /** PubsubMessage messageId. */
580 public messageId: string;
581
582 /** PubsubMessage publishTime. */
583 public publishTime?: (google.protobuf.ITimestamp|null);
584
585 /** PubsubMessage orderingKey. */
586 public orderingKey: string;
587
588 /**
589 * Creates a new PubsubMessage instance using the specified properties.
590 * @param [properties] Properties to set
591 * @returns PubsubMessage instance
592 */
593 public static create(properties?: google.pubsub.v1.IPubsubMessage): google.pubsub.v1.PubsubMessage;
594
595 /**
596 * Encodes the specified PubsubMessage message. Does not implicitly {@link google.pubsub.v1.PubsubMessage.verify|verify} messages.
597 * @param message PubsubMessage message or plain object to encode
598 * @param [writer] Writer to encode to
599 * @returns Writer
600 */
601 public static encode(message: google.pubsub.v1.IPubsubMessage, writer?: $protobuf.Writer): $protobuf.Writer;
602
603 /**
604 * Encodes the specified PubsubMessage message, length delimited. Does not implicitly {@link google.pubsub.v1.PubsubMessage.verify|verify} messages.
605 * @param message PubsubMessage message or plain object to encode
606 * @param [writer] Writer to encode to
607 * @returns Writer
608 */
609 public static encodeDelimited(message: google.pubsub.v1.IPubsubMessage, writer?: $protobuf.Writer): $protobuf.Writer;
610
611 /**
612 * Decodes a PubsubMessage message from the specified reader or buffer.
613 * @param reader Reader or buffer to decode from
614 * @param [length] Message length if known beforehand
615 * @returns PubsubMessage
616 * @throws {Error} If the payload is not a reader or valid buffer
617 * @throws {$protobuf.util.ProtocolError} If required fields are missing
618 */
619 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.PubsubMessage;
620
621 /**
622 * Decodes a PubsubMessage message from the specified reader or buffer, length delimited.
623 * @param reader Reader or buffer to decode from
624 * @returns PubsubMessage
625 * @throws {Error} If the payload is not a reader or valid buffer
626 * @throws {$protobuf.util.ProtocolError} If required fields are missing
627 */
628 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.PubsubMessage;
629
630 /**
631 * Verifies a PubsubMessage message.
632 * @param message Plain object to verify
633 * @returns `null` if valid, otherwise the reason why it is not
634 */
635 public static verify(message: { [k: string]: any }): (string|null);
636
637 /**
638 * Creates a PubsubMessage message from a plain object. Also converts values to their respective internal types.
639 * @param object Plain object
640 * @returns PubsubMessage
641 */
642 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.PubsubMessage;
643
644 /**
645 * Creates a plain object from a PubsubMessage message. Also converts values to other types if specified.
646 * @param message PubsubMessage
647 * @param [options] Conversion options
648 * @returns Plain object
649 */
650 public static toObject(message: google.pubsub.v1.PubsubMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
651
652 /**
653 * Converts this PubsubMessage to JSON.
654 * @returns JSON object
655 */
656 public toJSON(): { [k: string]: any };
657 }
658
659 /** Properties of a GetTopicRequest. */
660 interface IGetTopicRequest {
661
662 /** GetTopicRequest topic */
663 topic?: (string|null);
664 }
665
666 /** Represents a GetTopicRequest. */
667 class GetTopicRequest implements IGetTopicRequest {
668
669 /**
670 * Constructs a new GetTopicRequest.
671 * @param [properties] Properties to set
672 */
673 constructor(properties?: google.pubsub.v1.IGetTopicRequest);
674
675 /** GetTopicRequest topic. */
676 public topic: string;
677
678 /**
679 * Creates a new GetTopicRequest instance using the specified properties.
680 * @param [properties] Properties to set
681 * @returns GetTopicRequest instance
682 */
683 public static create(properties?: google.pubsub.v1.IGetTopicRequest): google.pubsub.v1.GetTopicRequest;
684
685 /**
686 * Encodes the specified GetTopicRequest message. Does not implicitly {@link google.pubsub.v1.GetTopicRequest.verify|verify} messages.
687 * @param message GetTopicRequest message or plain object to encode
688 * @param [writer] Writer to encode to
689 * @returns Writer
690 */
691 public static encode(message: google.pubsub.v1.IGetTopicRequest, writer?: $protobuf.Writer): $protobuf.Writer;
692
693 /**
694 * Encodes the specified GetTopicRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.GetTopicRequest.verify|verify} messages.
695 * @param message GetTopicRequest message or plain object to encode
696 * @param [writer] Writer to encode to
697 * @returns Writer
698 */
699 public static encodeDelimited(message: google.pubsub.v1.IGetTopicRequest, writer?: $protobuf.Writer): $protobuf.Writer;
700
701 /**
702 * Decodes a GetTopicRequest 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 GetTopicRequest
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.pubsub.v1.GetTopicRequest;
710
711 /**
712 * Decodes a GetTopicRequest message from the specified reader or buffer, length delimited.
713 * @param reader Reader or buffer to decode from
714 * @returns GetTopicRequest
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.pubsub.v1.GetTopicRequest;
719
720 /**
721 * Verifies a GetTopicRequest 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 GetTopicRequest message from a plain object. Also converts values to their respective internal types.
729 * @param object Plain object
730 * @returns GetTopicRequest
731 */
732 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.GetTopicRequest;
733
734 /**
735 * Creates a plain object from a GetTopicRequest message. Also converts values to other types if specified.
736 * @param message GetTopicRequest
737 * @param [options] Conversion options
738 * @returns Plain object
739 */
740 public static toObject(message: google.pubsub.v1.GetTopicRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
741
742 /**
743 * Converts this GetTopicRequest to JSON.
744 * @returns JSON object
745 */
746 public toJSON(): { [k: string]: any };
747 }
748
749 /** Properties of an UpdateTopicRequest. */
750 interface IUpdateTopicRequest {
751
752 /** UpdateTopicRequest topic */
753 topic?: (google.pubsub.v1.ITopic|null);
754
755 /** UpdateTopicRequest updateMask */
756 updateMask?: (google.protobuf.IFieldMask|null);
757 }
758
759 /** Represents an UpdateTopicRequest. */
760 class UpdateTopicRequest implements IUpdateTopicRequest {
761
762 /**
763 * Constructs a new UpdateTopicRequest.
764 * @param [properties] Properties to set
765 */
766 constructor(properties?: google.pubsub.v1.IUpdateTopicRequest);
767
768 /** UpdateTopicRequest topic. */
769 public topic?: (google.pubsub.v1.ITopic|null);
770
771 /** UpdateTopicRequest updateMask. */
772 public updateMask?: (google.protobuf.IFieldMask|null);
773
774 /**
775 * Creates a new UpdateTopicRequest instance using the specified properties.
776 * @param [properties] Properties to set
777 * @returns UpdateTopicRequest instance
778 */
779 public static create(properties?: google.pubsub.v1.IUpdateTopicRequest): google.pubsub.v1.UpdateTopicRequest;
780
781 /**
782 * Encodes the specified UpdateTopicRequest message. Does not implicitly {@link google.pubsub.v1.UpdateTopicRequest.verify|verify} messages.
783 * @param message UpdateTopicRequest message or plain object to encode
784 * @param [writer] Writer to encode to
785 * @returns Writer
786 */
787 public static encode(message: google.pubsub.v1.IUpdateTopicRequest, writer?: $protobuf.Writer): $protobuf.Writer;
788
789 /**
790 * Encodes the specified UpdateTopicRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.UpdateTopicRequest.verify|verify} messages.
791 * @param message UpdateTopicRequest message or plain object to encode
792 * @param [writer] Writer to encode to
793 * @returns Writer
794 */
795 public static encodeDelimited(message: google.pubsub.v1.IUpdateTopicRequest, writer?: $protobuf.Writer): $protobuf.Writer;
796
797 /**
798 * Decodes an UpdateTopicRequest 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 UpdateTopicRequest
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.pubsub.v1.UpdateTopicRequest;
806
807 /**
808 * Decodes an UpdateTopicRequest message from the specified reader or buffer, length delimited.
809 * @param reader Reader or buffer to decode from
810 * @returns UpdateTopicRequest
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.pubsub.v1.UpdateTopicRequest;
815
816 /**
817 * Verifies an UpdateTopicRequest 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 an UpdateTopicRequest message from a plain object. Also converts values to their respective internal types.
825 * @param object Plain object
826 * @returns UpdateTopicRequest
827 */
828 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.UpdateTopicRequest;
829
830 /**
831 * Creates a plain object from an UpdateTopicRequest message. Also converts values to other types if specified.
832 * @param message UpdateTopicRequest
833 * @param [options] Conversion options
834 * @returns Plain object
835 */
836 public static toObject(message: google.pubsub.v1.UpdateTopicRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
837
838 /**
839 * Converts this UpdateTopicRequest to JSON.
840 * @returns JSON object
841 */
842 public toJSON(): { [k: string]: any };
843 }
844
845 /** Properties of a PublishRequest. */
846 interface IPublishRequest {
847
848 /** PublishRequest topic */
849 topic?: (string|null);
850
851 /** PublishRequest messages */
852 messages?: (google.pubsub.v1.IPubsubMessage[]|null);
853 }
854
855 /** Represents a PublishRequest. */
856 class PublishRequest implements IPublishRequest {
857
858 /**
859 * Constructs a new PublishRequest.
860 * @param [properties] Properties to set
861 */
862 constructor(properties?: google.pubsub.v1.IPublishRequest);
863
864 /** PublishRequest topic. */
865 public topic: string;
866
867 /** PublishRequest messages. */
868 public messages: google.pubsub.v1.IPubsubMessage[];
869
870 /**
871 * Creates a new PublishRequest instance using the specified properties.
872 * @param [properties] Properties to set
873 * @returns PublishRequest instance
874 */
875 public static create(properties?: google.pubsub.v1.IPublishRequest): google.pubsub.v1.PublishRequest;
876
877 /**
878 * Encodes the specified PublishRequest message. Does not implicitly {@link google.pubsub.v1.PublishRequest.verify|verify} messages.
879 * @param message PublishRequest message or plain object to encode
880 * @param [writer] Writer to encode to
881 * @returns Writer
882 */
883 public static encode(message: google.pubsub.v1.IPublishRequest, writer?: $protobuf.Writer): $protobuf.Writer;
884
885 /**
886 * Encodes the specified PublishRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.PublishRequest.verify|verify} messages.
887 * @param message PublishRequest message or plain object to encode
888 * @param [writer] Writer to encode to
889 * @returns Writer
890 */
891 public static encodeDelimited(message: google.pubsub.v1.IPublishRequest, writer?: $protobuf.Writer): $protobuf.Writer;
892
893 /**
894 * Decodes a PublishRequest message from the specified reader or buffer.
895 * @param reader Reader or buffer to decode from
896 * @param [length] Message length if known beforehand
897 * @returns PublishRequest
898 * @throws {Error} If the payload is not a reader or valid buffer
899 * @throws {$protobuf.util.ProtocolError} If required fields are missing
900 */
901 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.PublishRequest;
902
903 /**
904 * Decodes a PublishRequest message from the specified reader or buffer, length delimited.
905 * @param reader Reader or buffer to decode from
906 * @returns PublishRequest
907 * @throws {Error} If the payload is not a reader or valid buffer
908 * @throws {$protobuf.util.ProtocolError} If required fields are missing
909 */
910 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.PublishRequest;
911
912 /**
913 * Verifies a PublishRequest message.
914 * @param message Plain object to verify
915 * @returns `null` if valid, otherwise the reason why it is not
916 */
917 public static verify(message: { [k: string]: any }): (string|null);
918
919 /**
920 * Creates a PublishRequest message from a plain object. Also converts values to their respective internal types.
921 * @param object Plain object
922 * @returns PublishRequest
923 */
924 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.PublishRequest;
925
926 /**
927 * Creates a plain object from a PublishRequest message. Also converts values to other types if specified.
928 * @param message PublishRequest
929 * @param [options] Conversion options
930 * @returns Plain object
931 */
932 public static toObject(message: google.pubsub.v1.PublishRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
933
934 /**
935 * Converts this PublishRequest to JSON.
936 * @returns JSON object
937 */
938 public toJSON(): { [k: string]: any };
939 }
940
941 /** Properties of a PublishResponse. */
942 interface IPublishResponse {
943
944 /** PublishResponse messageIds */
945 messageIds?: (string[]|null);
946 }
947
948 /** Represents a PublishResponse. */
949 class PublishResponse implements IPublishResponse {
950
951 /**
952 * Constructs a new PublishResponse.
953 * @param [properties] Properties to set
954 */
955 constructor(properties?: google.pubsub.v1.IPublishResponse);
956
957 /** PublishResponse messageIds. */
958 public messageIds: string[];
959
960 /**
961 * Creates a new PublishResponse instance using the specified properties.
962 * @param [properties] Properties to set
963 * @returns PublishResponse instance
964 */
965 public static create(properties?: google.pubsub.v1.IPublishResponse): google.pubsub.v1.PublishResponse;
966
967 /**
968 * Encodes the specified PublishResponse message. Does not implicitly {@link google.pubsub.v1.PublishResponse.verify|verify} messages.
969 * @param message PublishResponse message or plain object to encode
970 * @param [writer] Writer to encode to
971 * @returns Writer
972 */
973 public static encode(message: google.pubsub.v1.IPublishResponse, writer?: $protobuf.Writer): $protobuf.Writer;
974
975 /**
976 * Encodes the specified PublishResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.PublishResponse.verify|verify} messages.
977 * @param message PublishResponse message or plain object to encode
978 * @param [writer] Writer to encode to
979 * @returns Writer
980 */
981 public static encodeDelimited(message: google.pubsub.v1.IPublishResponse, writer?: $protobuf.Writer): $protobuf.Writer;
982
983 /**
984 * Decodes a PublishResponse message from the specified reader or buffer.
985 * @param reader Reader or buffer to decode from
986 * @param [length] Message length if known beforehand
987 * @returns PublishResponse
988 * @throws {Error} If the payload is not a reader or valid buffer
989 * @throws {$protobuf.util.ProtocolError} If required fields are missing
990 */
991 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.PublishResponse;
992
993 /**
994 * Decodes a PublishResponse message from the specified reader or buffer, length delimited.
995 * @param reader Reader or buffer to decode from
996 * @returns PublishResponse
997 * @throws {Error} If the payload is not a reader or valid buffer
998 * @throws {$protobuf.util.ProtocolError} If required fields are missing
999 */
1000 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.PublishResponse;
1001
1002 /**
1003 * Verifies a PublishResponse message.
1004 * @param message Plain object to verify
1005 * @returns `null` if valid, otherwise the reason why it is not
1006 */
1007 public static verify(message: { [k: string]: any }): (string|null);
1008
1009 /**
1010 * Creates a PublishResponse message from a plain object. Also converts values to their respective internal types.
1011 * @param object Plain object
1012 * @returns PublishResponse
1013 */
1014 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.PublishResponse;
1015
1016 /**
1017 * Creates a plain object from a PublishResponse message. Also converts values to other types if specified.
1018 * @param message PublishResponse
1019 * @param [options] Conversion options
1020 * @returns Plain object
1021 */
1022 public static toObject(message: google.pubsub.v1.PublishResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
1023
1024 /**
1025 * Converts this PublishResponse to JSON.
1026 * @returns JSON object
1027 */
1028 public toJSON(): { [k: string]: any };
1029 }
1030
1031 /** Properties of a ListTopicsRequest. */
1032 interface IListTopicsRequest {
1033
1034 /** ListTopicsRequest project */
1035 project?: (string|null);
1036
1037 /** ListTopicsRequest pageSize */
1038 pageSize?: (number|null);
1039
1040 /** ListTopicsRequest pageToken */
1041 pageToken?: (string|null);
1042 }
1043
1044 /** Represents a ListTopicsRequest. */
1045 class ListTopicsRequest implements IListTopicsRequest {
1046
1047 /**
1048 * Constructs a new ListTopicsRequest.
1049 * @param [properties] Properties to set
1050 */
1051 constructor(properties?: google.pubsub.v1.IListTopicsRequest);
1052
1053 /** ListTopicsRequest project. */
1054 public project: string;
1055
1056 /** ListTopicsRequest pageSize. */
1057 public pageSize: number;
1058
1059 /** ListTopicsRequest pageToken. */
1060 public pageToken: string;
1061
1062 /**
1063 * Creates a new ListTopicsRequest instance using the specified properties.
1064 * @param [properties] Properties to set
1065 * @returns ListTopicsRequest instance
1066 */
1067 public static create(properties?: google.pubsub.v1.IListTopicsRequest): google.pubsub.v1.ListTopicsRequest;
1068
1069 /**
1070 * Encodes the specified ListTopicsRequest message. Does not implicitly {@link google.pubsub.v1.ListTopicsRequest.verify|verify} messages.
1071 * @param message ListTopicsRequest message or plain object to encode
1072 * @param [writer] Writer to encode to
1073 * @returns Writer
1074 */
1075 public static encode(message: google.pubsub.v1.IListTopicsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1076
1077 /**
1078 * Encodes the specified ListTopicsRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.ListTopicsRequest.verify|verify} messages.
1079 * @param message ListTopicsRequest message or plain object to encode
1080 * @param [writer] Writer to encode to
1081 * @returns Writer
1082 */
1083 public static encodeDelimited(message: google.pubsub.v1.IListTopicsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1084
1085 /**
1086 * Decodes a ListTopicsRequest message from the specified reader or buffer.
1087 * @param reader Reader or buffer to decode from
1088 * @param [length] Message length if known beforehand
1089 * @returns ListTopicsRequest
1090 * @throws {Error} If the payload is not a reader or valid buffer
1091 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1092 */
1093 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ListTopicsRequest;
1094
1095 /**
1096 * Decodes a ListTopicsRequest message from the specified reader or buffer, length delimited.
1097 * @param reader Reader or buffer to decode from
1098 * @returns ListTopicsRequest
1099 * @throws {Error} If the payload is not a reader or valid buffer
1100 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1101 */
1102 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ListTopicsRequest;
1103
1104 /**
1105 * Verifies a ListTopicsRequest message.
1106 * @param message Plain object to verify
1107 * @returns `null` if valid, otherwise the reason why it is not
1108 */
1109 public static verify(message: { [k: string]: any }): (string|null);
1110
1111 /**
1112 * Creates a ListTopicsRequest message from a plain object. Also converts values to their respective internal types.
1113 * @param object Plain object
1114 * @returns ListTopicsRequest
1115 */
1116 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ListTopicsRequest;
1117
1118 /**
1119 * Creates a plain object from a ListTopicsRequest message. Also converts values to other types if specified.
1120 * @param message ListTopicsRequest
1121 * @param [options] Conversion options
1122 * @returns Plain object
1123 */
1124 public static toObject(message: google.pubsub.v1.ListTopicsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
1125
1126 /**
1127 * Converts this ListTopicsRequest to JSON.
1128 * @returns JSON object
1129 */
1130 public toJSON(): { [k: string]: any };
1131 }
1132
1133 /** Properties of a ListTopicsResponse. */
1134 interface IListTopicsResponse {
1135
1136 /** ListTopicsResponse topics */
1137 topics?: (google.pubsub.v1.ITopic[]|null);
1138
1139 /** ListTopicsResponse nextPageToken */
1140 nextPageToken?: (string|null);
1141 }
1142
1143 /** Represents a ListTopicsResponse. */
1144 class ListTopicsResponse implements IListTopicsResponse {
1145
1146 /**
1147 * Constructs a new ListTopicsResponse.
1148 * @param [properties] Properties to set
1149 */
1150 constructor(properties?: google.pubsub.v1.IListTopicsResponse);
1151
1152 /** ListTopicsResponse topics. */
1153 public topics: google.pubsub.v1.ITopic[];
1154
1155 /** ListTopicsResponse nextPageToken. */
1156 public nextPageToken: string;
1157
1158 /**
1159 * Creates a new ListTopicsResponse instance using the specified properties.
1160 * @param [properties] Properties to set
1161 * @returns ListTopicsResponse instance
1162 */
1163 public static create(properties?: google.pubsub.v1.IListTopicsResponse): google.pubsub.v1.ListTopicsResponse;
1164
1165 /**
1166 * Encodes the specified ListTopicsResponse message. Does not implicitly {@link google.pubsub.v1.ListTopicsResponse.verify|verify} messages.
1167 * @param message ListTopicsResponse message or plain object to encode
1168 * @param [writer] Writer to encode to
1169 * @returns Writer
1170 */
1171 public static encode(message: google.pubsub.v1.IListTopicsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
1172
1173 /**
1174 * Encodes the specified ListTopicsResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.ListTopicsResponse.verify|verify} messages.
1175 * @param message ListTopicsResponse message or plain object to encode
1176 * @param [writer] Writer to encode to
1177 * @returns Writer
1178 */
1179 public static encodeDelimited(message: google.pubsub.v1.IListTopicsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
1180
1181 /**
1182 * Decodes a ListTopicsResponse message from the specified reader or buffer.
1183 * @param reader Reader or buffer to decode from
1184 * @param [length] Message length if known beforehand
1185 * @returns ListTopicsResponse
1186 * @throws {Error} If the payload is not a reader or valid buffer
1187 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1188 */
1189 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ListTopicsResponse;
1190
1191 /**
1192 * Decodes a ListTopicsResponse message from the specified reader or buffer, length delimited.
1193 * @param reader Reader or buffer to decode from
1194 * @returns ListTopicsResponse
1195 * @throws {Error} If the payload is not a reader or valid buffer
1196 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1197 */
1198 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ListTopicsResponse;
1199
1200 /**
1201 * Verifies a ListTopicsResponse message.
1202 * @param message Plain object to verify
1203 * @returns `null` if valid, otherwise the reason why it is not
1204 */
1205 public static verify(message: { [k: string]: any }): (string|null);
1206
1207 /**
1208 * Creates a ListTopicsResponse message from a plain object. Also converts values to their respective internal types.
1209 * @param object Plain object
1210 * @returns ListTopicsResponse
1211 */
1212 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ListTopicsResponse;
1213
1214 /**
1215 * Creates a plain object from a ListTopicsResponse message. Also converts values to other types if specified.
1216 * @param message ListTopicsResponse
1217 * @param [options] Conversion options
1218 * @returns Plain object
1219 */
1220 public static toObject(message: google.pubsub.v1.ListTopicsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
1221
1222 /**
1223 * Converts this ListTopicsResponse to JSON.
1224 * @returns JSON object
1225 */
1226 public toJSON(): { [k: string]: any };
1227 }
1228
1229 /** Properties of a ListTopicSubscriptionsRequest. */
1230 interface IListTopicSubscriptionsRequest {
1231
1232 /** ListTopicSubscriptionsRequest topic */
1233 topic?: (string|null);
1234
1235 /** ListTopicSubscriptionsRequest pageSize */
1236 pageSize?: (number|null);
1237
1238 /** ListTopicSubscriptionsRequest pageToken */
1239 pageToken?: (string|null);
1240 }
1241
1242 /** Represents a ListTopicSubscriptionsRequest. */
1243 class ListTopicSubscriptionsRequest implements IListTopicSubscriptionsRequest {
1244
1245 /**
1246 * Constructs a new ListTopicSubscriptionsRequest.
1247 * @param [properties] Properties to set
1248 */
1249 constructor(properties?: google.pubsub.v1.IListTopicSubscriptionsRequest);
1250
1251 /** ListTopicSubscriptionsRequest topic. */
1252 public topic: string;
1253
1254 /** ListTopicSubscriptionsRequest pageSize. */
1255 public pageSize: number;
1256
1257 /** ListTopicSubscriptionsRequest pageToken. */
1258 public pageToken: string;
1259
1260 /**
1261 * Creates a new ListTopicSubscriptionsRequest instance using the specified properties.
1262 * @param [properties] Properties to set
1263 * @returns ListTopicSubscriptionsRequest instance
1264 */
1265 public static create(properties?: google.pubsub.v1.IListTopicSubscriptionsRequest): google.pubsub.v1.ListTopicSubscriptionsRequest;
1266
1267 /**
1268 * Encodes the specified ListTopicSubscriptionsRequest message. Does not implicitly {@link google.pubsub.v1.ListTopicSubscriptionsRequest.verify|verify} messages.
1269 * @param message ListTopicSubscriptionsRequest message or plain object to encode
1270 * @param [writer] Writer to encode to
1271 * @returns Writer
1272 */
1273 public static encode(message: google.pubsub.v1.IListTopicSubscriptionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1274
1275 /**
1276 * Encodes the specified ListTopicSubscriptionsRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.ListTopicSubscriptionsRequest.verify|verify} messages.
1277 * @param message ListTopicSubscriptionsRequest message or plain object to encode
1278 * @param [writer] Writer to encode to
1279 * @returns Writer
1280 */
1281 public static encodeDelimited(message: google.pubsub.v1.IListTopicSubscriptionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1282
1283 /**
1284 * Decodes a ListTopicSubscriptionsRequest message from the specified reader or buffer.
1285 * @param reader Reader or buffer to decode from
1286 * @param [length] Message length if known beforehand
1287 * @returns ListTopicSubscriptionsRequest
1288 * @throws {Error} If the payload is not a reader or valid buffer
1289 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1290 */
1291 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ListTopicSubscriptionsRequest;
1292
1293 /**
1294 * Decodes a ListTopicSubscriptionsRequest message from the specified reader or buffer, length delimited.
1295 * @param reader Reader or buffer to decode from
1296 * @returns ListTopicSubscriptionsRequest
1297 * @throws {Error} If the payload is not a reader or valid buffer
1298 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1299 */
1300 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ListTopicSubscriptionsRequest;
1301
1302 /**
1303 * Verifies a ListTopicSubscriptionsRequest message.
1304 * @param message Plain object to verify
1305 * @returns `null` if valid, otherwise the reason why it is not
1306 */
1307 public static verify(message: { [k: string]: any }): (string|null);
1308
1309 /**
1310 * Creates a ListTopicSubscriptionsRequest message from a plain object. Also converts values to their respective internal types.
1311 * @param object Plain object
1312 * @returns ListTopicSubscriptionsRequest
1313 */
1314 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ListTopicSubscriptionsRequest;
1315
1316 /**
1317 * Creates a plain object from a ListTopicSubscriptionsRequest message. Also converts values to other types if specified.
1318 * @param message ListTopicSubscriptionsRequest
1319 * @param [options] Conversion options
1320 * @returns Plain object
1321 */
1322 public static toObject(message: google.pubsub.v1.ListTopicSubscriptionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
1323
1324 /**
1325 * Converts this ListTopicSubscriptionsRequest to JSON.
1326 * @returns JSON object
1327 */
1328 public toJSON(): { [k: string]: any };
1329 }
1330
1331 /** Properties of a ListTopicSubscriptionsResponse. */
1332 interface IListTopicSubscriptionsResponse {
1333
1334 /** ListTopicSubscriptionsResponse subscriptions */
1335 subscriptions?: (string[]|null);
1336
1337 /** ListTopicSubscriptionsResponse nextPageToken */
1338 nextPageToken?: (string|null);
1339 }
1340
1341 /** Represents a ListTopicSubscriptionsResponse. */
1342 class ListTopicSubscriptionsResponse implements IListTopicSubscriptionsResponse {
1343
1344 /**
1345 * Constructs a new ListTopicSubscriptionsResponse.
1346 * @param [properties] Properties to set
1347 */
1348 constructor(properties?: google.pubsub.v1.IListTopicSubscriptionsResponse);
1349
1350 /** ListTopicSubscriptionsResponse subscriptions. */
1351 public subscriptions: string[];
1352
1353 /** ListTopicSubscriptionsResponse nextPageToken. */
1354 public nextPageToken: string;
1355
1356 /**
1357 * Creates a new ListTopicSubscriptionsResponse instance using the specified properties.
1358 * @param [properties] Properties to set
1359 * @returns ListTopicSubscriptionsResponse instance
1360 */
1361 public static create(properties?: google.pubsub.v1.IListTopicSubscriptionsResponse): google.pubsub.v1.ListTopicSubscriptionsResponse;
1362
1363 /**
1364 * Encodes the specified ListTopicSubscriptionsResponse message. Does not implicitly {@link google.pubsub.v1.ListTopicSubscriptionsResponse.verify|verify} messages.
1365 * @param message ListTopicSubscriptionsResponse message or plain object to encode
1366 * @param [writer] Writer to encode to
1367 * @returns Writer
1368 */
1369 public static encode(message: google.pubsub.v1.IListTopicSubscriptionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
1370
1371 /**
1372 * Encodes the specified ListTopicSubscriptionsResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.ListTopicSubscriptionsResponse.verify|verify} messages.
1373 * @param message ListTopicSubscriptionsResponse message or plain object to encode
1374 * @param [writer] Writer to encode to
1375 * @returns Writer
1376 */
1377 public static encodeDelimited(message: google.pubsub.v1.IListTopicSubscriptionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
1378
1379 /**
1380 * Decodes a ListTopicSubscriptionsResponse message from the specified reader or buffer.
1381 * @param reader Reader or buffer to decode from
1382 * @param [length] Message length if known beforehand
1383 * @returns ListTopicSubscriptionsResponse
1384 * @throws {Error} If the payload is not a reader or valid buffer
1385 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1386 */
1387 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ListTopicSubscriptionsResponse;
1388
1389 /**
1390 * Decodes a ListTopicSubscriptionsResponse message from the specified reader or buffer, length delimited.
1391 * @param reader Reader or buffer to decode from
1392 * @returns ListTopicSubscriptionsResponse
1393 * @throws {Error} If the payload is not a reader or valid buffer
1394 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1395 */
1396 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ListTopicSubscriptionsResponse;
1397
1398 /**
1399 * Verifies a ListTopicSubscriptionsResponse message.
1400 * @param message Plain object to verify
1401 * @returns `null` if valid, otherwise the reason why it is not
1402 */
1403 public static verify(message: { [k: string]: any }): (string|null);
1404
1405 /**
1406 * Creates a ListTopicSubscriptionsResponse message from a plain object. Also converts values to their respective internal types.
1407 * @param object Plain object
1408 * @returns ListTopicSubscriptionsResponse
1409 */
1410 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ListTopicSubscriptionsResponse;
1411
1412 /**
1413 * Creates a plain object from a ListTopicSubscriptionsResponse message. Also converts values to other types if specified.
1414 * @param message ListTopicSubscriptionsResponse
1415 * @param [options] Conversion options
1416 * @returns Plain object
1417 */
1418 public static toObject(message: google.pubsub.v1.ListTopicSubscriptionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
1419
1420 /**
1421 * Converts this ListTopicSubscriptionsResponse to JSON.
1422 * @returns JSON object
1423 */
1424 public toJSON(): { [k: string]: any };
1425 }
1426
1427 /** Properties of a ListTopicSnapshotsRequest. */
1428 interface IListTopicSnapshotsRequest {
1429
1430 /** ListTopicSnapshotsRequest topic */
1431 topic?: (string|null);
1432
1433 /** ListTopicSnapshotsRequest pageSize */
1434 pageSize?: (number|null);
1435
1436 /** ListTopicSnapshotsRequest pageToken */
1437 pageToken?: (string|null);
1438 }
1439
1440 /** Represents a ListTopicSnapshotsRequest. */
1441 class ListTopicSnapshotsRequest implements IListTopicSnapshotsRequest {
1442
1443 /**
1444 * Constructs a new ListTopicSnapshotsRequest.
1445 * @param [properties] Properties to set
1446 */
1447 constructor(properties?: google.pubsub.v1.IListTopicSnapshotsRequest);
1448
1449 /** ListTopicSnapshotsRequest topic. */
1450 public topic: string;
1451
1452 /** ListTopicSnapshotsRequest pageSize. */
1453 public pageSize: number;
1454
1455 /** ListTopicSnapshotsRequest pageToken. */
1456 public pageToken: string;
1457
1458 /**
1459 * Creates a new ListTopicSnapshotsRequest instance using the specified properties.
1460 * @param [properties] Properties to set
1461 * @returns ListTopicSnapshotsRequest instance
1462 */
1463 public static create(properties?: google.pubsub.v1.IListTopicSnapshotsRequest): google.pubsub.v1.ListTopicSnapshotsRequest;
1464
1465 /**
1466 * Encodes the specified ListTopicSnapshotsRequest message. Does not implicitly {@link google.pubsub.v1.ListTopicSnapshotsRequest.verify|verify} messages.
1467 * @param message ListTopicSnapshotsRequest message or plain object to encode
1468 * @param [writer] Writer to encode to
1469 * @returns Writer
1470 */
1471 public static encode(message: google.pubsub.v1.IListTopicSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1472
1473 /**
1474 * Encodes the specified ListTopicSnapshotsRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.ListTopicSnapshotsRequest.verify|verify} messages.
1475 * @param message ListTopicSnapshotsRequest message or plain object to encode
1476 * @param [writer] Writer to encode to
1477 * @returns Writer
1478 */
1479 public static encodeDelimited(message: google.pubsub.v1.IListTopicSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1480
1481 /**
1482 * Decodes a ListTopicSnapshotsRequest message from the specified reader or buffer.
1483 * @param reader Reader or buffer to decode from
1484 * @param [length] Message length if known beforehand
1485 * @returns ListTopicSnapshotsRequest
1486 * @throws {Error} If the payload is not a reader or valid buffer
1487 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1488 */
1489 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ListTopicSnapshotsRequest;
1490
1491 /**
1492 * Decodes a ListTopicSnapshotsRequest message from the specified reader or buffer, length delimited.
1493 * @param reader Reader or buffer to decode from
1494 * @returns ListTopicSnapshotsRequest
1495 * @throws {Error} If the payload is not a reader or valid buffer
1496 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1497 */
1498 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ListTopicSnapshotsRequest;
1499
1500 /**
1501 * Verifies a ListTopicSnapshotsRequest message.
1502 * @param message Plain object to verify
1503 * @returns `null` if valid, otherwise the reason why it is not
1504 */
1505 public static verify(message: { [k: string]: any }): (string|null);
1506
1507 /**
1508 * Creates a ListTopicSnapshotsRequest message from a plain object. Also converts values to their respective internal types.
1509 * @param object Plain object
1510 * @returns ListTopicSnapshotsRequest
1511 */
1512 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ListTopicSnapshotsRequest;
1513
1514 /**
1515 * Creates a plain object from a ListTopicSnapshotsRequest message. Also converts values to other types if specified.
1516 * @param message ListTopicSnapshotsRequest
1517 * @param [options] Conversion options
1518 * @returns Plain object
1519 */
1520 public static toObject(message: google.pubsub.v1.ListTopicSnapshotsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
1521
1522 /**
1523 * Converts this ListTopicSnapshotsRequest to JSON.
1524 * @returns JSON object
1525 */
1526 public toJSON(): { [k: string]: any };
1527 }
1528
1529 /** Properties of a ListTopicSnapshotsResponse. */
1530 interface IListTopicSnapshotsResponse {
1531
1532 /** ListTopicSnapshotsResponse snapshots */
1533 snapshots?: (string[]|null);
1534
1535 /** ListTopicSnapshotsResponse nextPageToken */
1536 nextPageToken?: (string|null);
1537 }
1538
1539 /** Represents a ListTopicSnapshotsResponse. */
1540 class ListTopicSnapshotsResponse implements IListTopicSnapshotsResponse {
1541
1542 /**
1543 * Constructs a new ListTopicSnapshotsResponse.
1544 * @param [properties] Properties to set
1545 */
1546 constructor(properties?: google.pubsub.v1.IListTopicSnapshotsResponse);
1547
1548 /** ListTopicSnapshotsResponse snapshots. */
1549 public snapshots: string[];
1550
1551 /** ListTopicSnapshotsResponse nextPageToken. */
1552 public nextPageToken: string;
1553
1554 /**
1555 * Creates a new ListTopicSnapshotsResponse instance using the specified properties.
1556 * @param [properties] Properties to set
1557 * @returns ListTopicSnapshotsResponse instance
1558 */
1559 public static create(properties?: google.pubsub.v1.IListTopicSnapshotsResponse): google.pubsub.v1.ListTopicSnapshotsResponse;
1560
1561 /**
1562 * Encodes the specified ListTopicSnapshotsResponse message. Does not implicitly {@link google.pubsub.v1.ListTopicSnapshotsResponse.verify|verify} messages.
1563 * @param message ListTopicSnapshotsResponse message or plain object to encode
1564 * @param [writer] Writer to encode to
1565 * @returns Writer
1566 */
1567 public static encode(message: google.pubsub.v1.IListTopicSnapshotsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
1568
1569 /**
1570 * Encodes the specified ListTopicSnapshotsResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.ListTopicSnapshotsResponse.verify|verify} messages.
1571 * @param message ListTopicSnapshotsResponse message or plain object to encode
1572 * @param [writer] Writer to encode to
1573 * @returns Writer
1574 */
1575 public static encodeDelimited(message: google.pubsub.v1.IListTopicSnapshotsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
1576
1577 /**
1578 * Decodes a ListTopicSnapshotsResponse message from the specified reader or buffer.
1579 * @param reader Reader or buffer to decode from
1580 * @param [length] Message length if known beforehand
1581 * @returns ListTopicSnapshotsResponse
1582 * @throws {Error} If the payload is not a reader or valid buffer
1583 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1584 */
1585 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ListTopicSnapshotsResponse;
1586
1587 /**
1588 * Decodes a ListTopicSnapshotsResponse message from the specified reader or buffer, length delimited.
1589 * @param reader Reader or buffer to decode from
1590 * @returns ListTopicSnapshotsResponse
1591 * @throws {Error} If the payload is not a reader or valid buffer
1592 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1593 */
1594 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ListTopicSnapshotsResponse;
1595
1596 /**
1597 * Verifies a ListTopicSnapshotsResponse message.
1598 * @param message Plain object to verify
1599 * @returns `null` if valid, otherwise the reason why it is not
1600 */
1601 public static verify(message: { [k: string]: any }): (string|null);
1602
1603 /**
1604 * Creates a ListTopicSnapshotsResponse message from a plain object. Also converts values to their respective internal types.
1605 * @param object Plain object
1606 * @returns ListTopicSnapshotsResponse
1607 */
1608 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ListTopicSnapshotsResponse;
1609
1610 /**
1611 * Creates a plain object from a ListTopicSnapshotsResponse message. Also converts values to other types if specified.
1612 * @param message ListTopicSnapshotsResponse
1613 * @param [options] Conversion options
1614 * @returns Plain object
1615 */
1616 public static toObject(message: google.pubsub.v1.ListTopicSnapshotsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
1617
1618 /**
1619 * Converts this ListTopicSnapshotsResponse to JSON.
1620 * @returns JSON object
1621 */
1622 public toJSON(): { [k: string]: any };
1623 }
1624
1625 /** Properties of a DeleteTopicRequest. */
1626 interface IDeleteTopicRequest {
1627
1628 /** DeleteTopicRequest topic */
1629 topic?: (string|null);
1630 }
1631
1632 /** Represents a DeleteTopicRequest. */
1633 class DeleteTopicRequest implements IDeleteTopicRequest {
1634
1635 /**
1636 * Constructs a new DeleteTopicRequest.
1637 * @param [properties] Properties to set
1638 */
1639 constructor(properties?: google.pubsub.v1.IDeleteTopicRequest);
1640
1641 /** DeleteTopicRequest topic. */
1642 public topic: string;
1643
1644 /**
1645 * Creates a new DeleteTopicRequest instance using the specified properties.
1646 * @param [properties] Properties to set
1647 * @returns DeleteTopicRequest instance
1648 */
1649 public static create(properties?: google.pubsub.v1.IDeleteTopicRequest): google.pubsub.v1.DeleteTopicRequest;
1650
1651 /**
1652 * Encodes the specified DeleteTopicRequest message. Does not implicitly {@link google.pubsub.v1.DeleteTopicRequest.verify|verify} messages.
1653 * @param message DeleteTopicRequest message or plain object to encode
1654 * @param [writer] Writer to encode to
1655 * @returns Writer
1656 */
1657 public static encode(message: google.pubsub.v1.IDeleteTopicRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1658
1659 /**
1660 * Encodes the specified DeleteTopicRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.DeleteTopicRequest.verify|verify} messages.
1661 * @param message DeleteTopicRequest message or plain object to encode
1662 * @param [writer] Writer to encode to
1663 * @returns Writer
1664 */
1665 public static encodeDelimited(message: google.pubsub.v1.IDeleteTopicRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1666
1667 /**
1668 * Decodes a DeleteTopicRequest message from the specified reader or buffer.
1669 * @param reader Reader or buffer to decode from
1670 * @param [length] Message length if known beforehand
1671 * @returns DeleteTopicRequest
1672 * @throws {Error} If the payload is not a reader or valid buffer
1673 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1674 */
1675 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.DeleteTopicRequest;
1676
1677 /**
1678 * Decodes a DeleteTopicRequest message from the specified reader or buffer, length delimited.
1679 * @param reader Reader or buffer to decode from
1680 * @returns DeleteTopicRequest
1681 * @throws {Error} If the payload is not a reader or valid buffer
1682 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1683 */
1684 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.DeleteTopicRequest;
1685
1686 /**
1687 * Verifies a DeleteTopicRequest message.
1688 * @param message Plain object to verify
1689 * @returns `null` if valid, otherwise the reason why it is not
1690 */
1691 public static verify(message: { [k: string]: any }): (string|null);
1692
1693 /**
1694 * Creates a DeleteTopicRequest message from a plain object. Also converts values to their respective internal types.
1695 * @param object Plain object
1696 * @returns DeleteTopicRequest
1697 */
1698 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.DeleteTopicRequest;
1699
1700 /**
1701 * Creates a plain object from a DeleteTopicRequest message. Also converts values to other types if specified.
1702 * @param message DeleteTopicRequest
1703 * @param [options] Conversion options
1704 * @returns Plain object
1705 */
1706 public static toObject(message: google.pubsub.v1.DeleteTopicRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
1707
1708 /**
1709 * Converts this DeleteTopicRequest to JSON.
1710 * @returns JSON object
1711 */
1712 public toJSON(): { [k: string]: any };
1713 }
1714
1715 /** Properties of a DetachSubscriptionRequest. */
1716 interface IDetachSubscriptionRequest {
1717
1718 /** DetachSubscriptionRequest subscription */
1719 subscription?: (string|null);
1720 }
1721
1722 /** Represents a DetachSubscriptionRequest. */
1723 class DetachSubscriptionRequest implements IDetachSubscriptionRequest {
1724
1725 /**
1726 * Constructs a new DetachSubscriptionRequest.
1727 * @param [properties] Properties to set
1728 */
1729 constructor(properties?: google.pubsub.v1.IDetachSubscriptionRequest);
1730
1731 /** DetachSubscriptionRequest subscription. */
1732 public subscription: string;
1733
1734 /**
1735 * Creates a new DetachSubscriptionRequest instance using the specified properties.
1736 * @param [properties] Properties to set
1737 * @returns DetachSubscriptionRequest instance
1738 */
1739 public static create(properties?: google.pubsub.v1.IDetachSubscriptionRequest): google.pubsub.v1.DetachSubscriptionRequest;
1740
1741 /**
1742 * Encodes the specified DetachSubscriptionRequest message. Does not implicitly {@link google.pubsub.v1.DetachSubscriptionRequest.verify|verify} messages.
1743 * @param message DetachSubscriptionRequest message or plain object to encode
1744 * @param [writer] Writer to encode to
1745 * @returns Writer
1746 */
1747 public static encode(message: google.pubsub.v1.IDetachSubscriptionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1748
1749 /**
1750 * Encodes the specified DetachSubscriptionRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.DetachSubscriptionRequest.verify|verify} messages.
1751 * @param message DetachSubscriptionRequest message or plain object to encode
1752 * @param [writer] Writer to encode to
1753 * @returns Writer
1754 */
1755 public static encodeDelimited(message: google.pubsub.v1.IDetachSubscriptionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1756
1757 /**
1758 * Decodes a DetachSubscriptionRequest message from the specified reader or buffer.
1759 * @param reader Reader or buffer to decode from
1760 * @param [length] Message length if known beforehand
1761 * @returns DetachSubscriptionRequest
1762 * @throws {Error} If the payload is not a reader or valid buffer
1763 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1764 */
1765 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.DetachSubscriptionRequest;
1766
1767 /**
1768 * Decodes a DetachSubscriptionRequest message from the specified reader or buffer, length delimited.
1769 * @param reader Reader or buffer to decode from
1770 * @returns DetachSubscriptionRequest
1771 * @throws {Error} If the payload is not a reader or valid buffer
1772 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1773 */
1774 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.DetachSubscriptionRequest;
1775
1776 /**
1777 * Verifies a DetachSubscriptionRequest message.
1778 * @param message Plain object to verify
1779 * @returns `null` if valid, otherwise the reason why it is not
1780 */
1781 public static verify(message: { [k: string]: any }): (string|null);
1782
1783 /**
1784 * Creates a DetachSubscriptionRequest message from a plain object. Also converts values to their respective internal types.
1785 * @param object Plain object
1786 * @returns DetachSubscriptionRequest
1787 */
1788 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.DetachSubscriptionRequest;
1789
1790 /**
1791 * Creates a plain object from a DetachSubscriptionRequest message. Also converts values to other types if specified.
1792 * @param message DetachSubscriptionRequest
1793 * @param [options] Conversion options
1794 * @returns Plain object
1795 */
1796 public static toObject(message: google.pubsub.v1.DetachSubscriptionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
1797
1798 /**
1799 * Converts this DetachSubscriptionRequest to JSON.
1800 * @returns JSON object
1801 */
1802 public toJSON(): { [k: string]: any };
1803 }
1804
1805 /** Properties of a DetachSubscriptionResponse. */
1806 interface IDetachSubscriptionResponse {
1807 }
1808
1809 /** Represents a DetachSubscriptionResponse. */
1810 class DetachSubscriptionResponse implements IDetachSubscriptionResponse {
1811
1812 /**
1813 * Constructs a new DetachSubscriptionResponse.
1814 * @param [properties] Properties to set
1815 */
1816 constructor(properties?: google.pubsub.v1.IDetachSubscriptionResponse);
1817
1818 /**
1819 * Creates a new DetachSubscriptionResponse instance using the specified properties.
1820 * @param [properties] Properties to set
1821 * @returns DetachSubscriptionResponse instance
1822 */
1823 public static create(properties?: google.pubsub.v1.IDetachSubscriptionResponse): google.pubsub.v1.DetachSubscriptionResponse;
1824
1825 /**
1826 * Encodes the specified DetachSubscriptionResponse message. Does not implicitly {@link google.pubsub.v1.DetachSubscriptionResponse.verify|verify} messages.
1827 * @param message DetachSubscriptionResponse message or plain object to encode
1828 * @param [writer] Writer to encode to
1829 * @returns Writer
1830 */
1831 public static encode(message: google.pubsub.v1.IDetachSubscriptionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
1832
1833 /**
1834 * Encodes the specified DetachSubscriptionResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.DetachSubscriptionResponse.verify|verify} messages.
1835 * @param message DetachSubscriptionResponse message or plain object to encode
1836 * @param [writer] Writer to encode to
1837 * @returns Writer
1838 */
1839 public static encodeDelimited(message: google.pubsub.v1.IDetachSubscriptionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
1840
1841 /**
1842 * Decodes a DetachSubscriptionResponse message from the specified reader or buffer.
1843 * @param reader Reader or buffer to decode from
1844 * @param [length] Message length if known beforehand
1845 * @returns DetachSubscriptionResponse
1846 * @throws {Error} If the payload is not a reader or valid buffer
1847 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1848 */
1849 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.DetachSubscriptionResponse;
1850
1851 /**
1852 * Decodes a DetachSubscriptionResponse message from the specified reader or buffer, length delimited.
1853 * @param reader Reader or buffer to decode from
1854 * @returns DetachSubscriptionResponse
1855 * @throws {Error} If the payload is not a reader or valid buffer
1856 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1857 */
1858 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.DetachSubscriptionResponse;
1859
1860 /**
1861 * Verifies a DetachSubscriptionResponse message.
1862 * @param message Plain object to verify
1863 * @returns `null` if valid, otherwise the reason why it is not
1864 */
1865 public static verify(message: { [k: string]: any }): (string|null);
1866
1867 /**
1868 * Creates a DetachSubscriptionResponse message from a plain object. Also converts values to their respective internal types.
1869 * @param object Plain object
1870 * @returns DetachSubscriptionResponse
1871 */
1872 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.DetachSubscriptionResponse;
1873
1874 /**
1875 * Creates a plain object from a DetachSubscriptionResponse message. Also converts values to other types if specified.
1876 * @param message DetachSubscriptionResponse
1877 * @param [options] Conversion options
1878 * @returns Plain object
1879 */
1880 public static toObject(message: google.pubsub.v1.DetachSubscriptionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
1881
1882 /**
1883 * Converts this DetachSubscriptionResponse to JSON.
1884 * @returns JSON object
1885 */
1886 public toJSON(): { [k: string]: any };
1887 }
1888
1889 /** Represents a Subscriber */
1890 class Subscriber extends $protobuf.rpc.Service {
1891
1892 /**
1893 * Constructs a new Subscriber service.
1894 * @param rpcImpl RPC implementation
1895 * @param [requestDelimited=false] Whether requests are length-delimited
1896 * @param [responseDelimited=false] Whether responses are length-delimited
1897 */
1898 constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
1899
1900 /**
1901 * Creates new Subscriber service using the specified rpc implementation.
1902 * @param rpcImpl RPC implementation
1903 * @param [requestDelimited=false] Whether requests are length-delimited
1904 * @param [responseDelimited=false] Whether responses are length-delimited
1905 * @returns RPC service. Useful where requests and/or responses are streamed.
1906 */
1907 public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Subscriber;
1908
1909 /**
1910 * Calls CreateSubscription.
1911 * @param request Subscription message or plain object
1912 * @param callback Node-style callback called with the error, if any, and Subscription
1913 */
1914 public createSubscription(request: google.pubsub.v1.ISubscription, callback: google.pubsub.v1.Subscriber.CreateSubscriptionCallback): void;
1915
1916 /**
1917 * Calls CreateSubscription.
1918 * @param request Subscription message or plain object
1919 * @returns Promise
1920 */
1921 public createSubscription(request: google.pubsub.v1.ISubscription): Promise<google.pubsub.v1.Subscription>;
1922
1923 /**
1924 * Calls GetSubscription.
1925 * @param request GetSubscriptionRequest message or plain object
1926 * @param callback Node-style callback called with the error, if any, and Subscription
1927 */
1928 public getSubscription(request: google.pubsub.v1.IGetSubscriptionRequest, callback: google.pubsub.v1.Subscriber.GetSubscriptionCallback): void;
1929
1930 /**
1931 * Calls GetSubscription.
1932 * @param request GetSubscriptionRequest message or plain object
1933 * @returns Promise
1934 */
1935 public getSubscription(request: google.pubsub.v1.IGetSubscriptionRequest): Promise<google.pubsub.v1.Subscription>;
1936
1937 /**
1938 * Calls UpdateSubscription.
1939 * @param request UpdateSubscriptionRequest message or plain object
1940 * @param callback Node-style callback called with the error, if any, and Subscription
1941 */
1942 public updateSubscription(request: google.pubsub.v1.IUpdateSubscriptionRequest, callback: google.pubsub.v1.Subscriber.UpdateSubscriptionCallback): void;
1943
1944 /**
1945 * Calls UpdateSubscription.
1946 * @param request UpdateSubscriptionRequest message or plain object
1947 * @returns Promise
1948 */
1949 public updateSubscription(request: google.pubsub.v1.IUpdateSubscriptionRequest): Promise<google.pubsub.v1.Subscription>;
1950
1951 /**
1952 * Calls ListSubscriptions.
1953 * @param request ListSubscriptionsRequest message or plain object
1954 * @param callback Node-style callback called with the error, if any, and ListSubscriptionsResponse
1955 */
1956 public listSubscriptions(request: google.pubsub.v1.IListSubscriptionsRequest, callback: google.pubsub.v1.Subscriber.ListSubscriptionsCallback): void;
1957
1958 /**
1959 * Calls ListSubscriptions.
1960 * @param request ListSubscriptionsRequest message or plain object
1961 * @returns Promise
1962 */
1963 public listSubscriptions(request: google.pubsub.v1.IListSubscriptionsRequest): Promise<google.pubsub.v1.ListSubscriptionsResponse>;
1964
1965 /**
1966 * Calls DeleteSubscription.
1967 * @param request DeleteSubscriptionRequest message or plain object
1968 * @param callback Node-style callback called with the error, if any, and Empty
1969 */
1970 public deleteSubscription(request: google.pubsub.v1.IDeleteSubscriptionRequest, callback: google.pubsub.v1.Subscriber.DeleteSubscriptionCallback): void;
1971
1972 /**
1973 * Calls DeleteSubscription.
1974 * @param request DeleteSubscriptionRequest message or plain object
1975 * @returns Promise
1976 */
1977 public deleteSubscription(request: google.pubsub.v1.IDeleteSubscriptionRequest): Promise<google.protobuf.Empty>;
1978
1979 /**
1980 * Calls ModifyAckDeadline.
1981 * @param request ModifyAckDeadlineRequest message or plain object
1982 * @param callback Node-style callback called with the error, if any, and Empty
1983 */
1984 public modifyAckDeadline(request: google.pubsub.v1.IModifyAckDeadlineRequest, callback: google.pubsub.v1.Subscriber.ModifyAckDeadlineCallback): void;
1985
1986 /**
1987 * Calls ModifyAckDeadline.
1988 * @param request ModifyAckDeadlineRequest message or plain object
1989 * @returns Promise
1990 */
1991 public modifyAckDeadline(request: google.pubsub.v1.IModifyAckDeadlineRequest): Promise<google.protobuf.Empty>;
1992
1993 /**
1994 * Calls Acknowledge.
1995 * @param request AcknowledgeRequest message or plain object
1996 * @param callback Node-style callback called with the error, if any, and Empty
1997 */
1998 public acknowledge(request: google.pubsub.v1.IAcknowledgeRequest, callback: google.pubsub.v1.Subscriber.AcknowledgeCallback): void;
1999
2000 /**
2001 * Calls Acknowledge.
2002 * @param request AcknowledgeRequest message or plain object
2003 * @returns Promise
2004 */
2005 public acknowledge(request: google.pubsub.v1.IAcknowledgeRequest): Promise<google.protobuf.Empty>;
2006
2007 /**
2008 * Calls Pull.
2009 * @param request PullRequest message or plain object
2010 * @param callback Node-style callback called with the error, if any, and PullResponse
2011 */
2012 public pull(request: google.pubsub.v1.IPullRequest, callback: google.pubsub.v1.Subscriber.PullCallback): void;
2013
2014 /**
2015 * Calls Pull.
2016 * @param request PullRequest message or plain object
2017 * @returns Promise
2018 */
2019 public pull(request: google.pubsub.v1.IPullRequest): Promise<google.pubsub.v1.PullResponse>;
2020
2021 /**
2022 * Calls StreamingPull.
2023 * @param request StreamingPullRequest message or plain object
2024 * @param callback Node-style callback called with the error, if any, and StreamingPullResponse
2025 */
2026 public streamingPull(request: google.pubsub.v1.IStreamingPullRequest, callback: google.pubsub.v1.Subscriber.StreamingPullCallback): void;
2027
2028 /**
2029 * Calls StreamingPull.
2030 * @param request StreamingPullRequest message or plain object
2031 * @returns Promise
2032 */
2033 public streamingPull(request: google.pubsub.v1.IStreamingPullRequest): Promise<google.pubsub.v1.StreamingPullResponse>;
2034
2035 /**
2036 * Calls ModifyPushConfig.
2037 * @param request ModifyPushConfigRequest message or plain object
2038 * @param callback Node-style callback called with the error, if any, and Empty
2039 */
2040 public modifyPushConfig(request: google.pubsub.v1.IModifyPushConfigRequest, callback: google.pubsub.v1.Subscriber.ModifyPushConfigCallback): void;
2041
2042 /**
2043 * Calls ModifyPushConfig.
2044 * @param request ModifyPushConfigRequest message or plain object
2045 * @returns Promise
2046 */
2047 public modifyPushConfig(request: google.pubsub.v1.IModifyPushConfigRequest): Promise<google.protobuf.Empty>;
2048
2049 /**
2050 * Calls GetSnapshot.
2051 * @param request GetSnapshotRequest message or plain object
2052 * @param callback Node-style callback called with the error, if any, and Snapshot
2053 */
2054 public getSnapshot(request: google.pubsub.v1.IGetSnapshotRequest, callback: google.pubsub.v1.Subscriber.GetSnapshotCallback): void;
2055
2056 /**
2057 * Calls GetSnapshot.
2058 * @param request GetSnapshotRequest message or plain object
2059 * @returns Promise
2060 */
2061 public getSnapshot(request: google.pubsub.v1.IGetSnapshotRequest): Promise<google.pubsub.v1.Snapshot>;
2062
2063 /**
2064 * Calls ListSnapshots.
2065 * @param request ListSnapshotsRequest message or plain object
2066 * @param callback Node-style callback called with the error, if any, and ListSnapshotsResponse
2067 */
2068 public listSnapshots(request: google.pubsub.v1.IListSnapshotsRequest, callback: google.pubsub.v1.Subscriber.ListSnapshotsCallback): void;
2069
2070 /**
2071 * Calls ListSnapshots.
2072 * @param request ListSnapshotsRequest message or plain object
2073 * @returns Promise
2074 */
2075 public listSnapshots(request: google.pubsub.v1.IListSnapshotsRequest): Promise<google.pubsub.v1.ListSnapshotsResponse>;
2076
2077 /**
2078 * Calls CreateSnapshot.
2079 * @param request CreateSnapshotRequest message or plain object
2080 * @param callback Node-style callback called with the error, if any, and Snapshot
2081 */
2082 public createSnapshot(request: google.pubsub.v1.ICreateSnapshotRequest, callback: google.pubsub.v1.Subscriber.CreateSnapshotCallback): void;
2083
2084 /**
2085 * Calls CreateSnapshot.
2086 * @param request CreateSnapshotRequest message or plain object
2087 * @returns Promise
2088 */
2089 public createSnapshot(request: google.pubsub.v1.ICreateSnapshotRequest): Promise<google.pubsub.v1.Snapshot>;
2090
2091 /**
2092 * Calls UpdateSnapshot.
2093 * @param request UpdateSnapshotRequest message or plain object
2094 * @param callback Node-style callback called with the error, if any, and Snapshot
2095 */
2096 public updateSnapshot(request: google.pubsub.v1.IUpdateSnapshotRequest, callback: google.pubsub.v1.Subscriber.UpdateSnapshotCallback): void;
2097
2098 /**
2099 * Calls UpdateSnapshot.
2100 * @param request UpdateSnapshotRequest message or plain object
2101 * @returns Promise
2102 */
2103 public updateSnapshot(request: google.pubsub.v1.IUpdateSnapshotRequest): Promise<google.pubsub.v1.Snapshot>;
2104
2105 /**
2106 * Calls DeleteSnapshot.
2107 * @param request DeleteSnapshotRequest message or plain object
2108 * @param callback Node-style callback called with the error, if any, and Empty
2109 */
2110 public deleteSnapshot(request: google.pubsub.v1.IDeleteSnapshotRequest, callback: google.pubsub.v1.Subscriber.DeleteSnapshotCallback): void;
2111
2112 /**
2113 * Calls DeleteSnapshot.
2114 * @param request DeleteSnapshotRequest message or plain object
2115 * @returns Promise
2116 */
2117 public deleteSnapshot(request: google.pubsub.v1.IDeleteSnapshotRequest): Promise<google.protobuf.Empty>;
2118
2119 /**
2120 * Calls Seek.
2121 * @param request SeekRequest message or plain object
2122 * @param callback Node-style callback called with the error, if any, and SeekResponse
2123 */
2124 public seek(request: google.pubsub.v1.ISeekRequest, callback: google.pubsub.v1.Subscriber.SeekCallback): void;
2125
2126 /**
2127 * Calls Seek.
2128 * @param request SeekRequest message or plain object
2129 * @returns Promise
2130 */
2131 public seek(request: google.pubsub.v1.ISeekRequest): Promise<google.pubsub.v1.SeekResponse>;
2132 }
2133
2134 namespace Subscriber {
2135
2136 /**
2137 * Callback as used by {@link google.pubsub.v1.Subscriber#createSubscription}.
2138 * @param error Error, if any
2139 * @param [response] Subscription
2140 */
2141 type CreateSubscriptionCallback = (error: (Error|null), response?: google.pubsub.v1.Subscription) => void;
2142
2143 /**
2144 * Callback as used by {@link google.pubsub.v1.Subscriber#getSubscription}.
2145 * @param error Error, if any
2146 * @param [response] Subscription
2147 */
2148 type GetSubscriptionCallback = (error: (Error|null), response?: google.pubsub.v1.Subscription) => void;
2149
2150 /**
2151 * Callback as used by {@link google.pubsub.v1.Subscriber#updateSubscription}.
2152 * @param error Error, if any
2153 * @param [response] Subscription
2154 */
2155 type UpdateSubscriptionCallback = (error: (Error|null), response?: google.pubsub.v1.Subscription) => void;
2156
2157 /**
2158 * Callback as used by {@link google.pubsub.v1.Subscriber#listSubscriptions}.
2159 * @param error Error, if any
2160 * @param [response] ListSubscriptionsResponse
2161 */
2162 type ListSubscriptionsCallback = (error: (Error|null), response?: google.pubsub.v1.ListSubscriptionsResponse) => void;
2163
2164 /**
2165 * Callback as used by {@link google.pubsub.v1.Subscriber#deleteSubscription}.
2166 * @param error Error, if any
2167 * @param [response] Empty
2168 */
2169 type DeleteSubscriptionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
2170
2171 /**
2172 * Callback as used by {@link google.pubsub.v1.Subscriber#modifyAckDeadline}.
2173 * @param error Error, if any
2174 * @param [response] Empty
2175 */
2176 type ModifyAckDeadlineCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
2177
2178 /**
2179 * Callback as used by {@link google.pubsub.v1.Subscriber#acknowledge}.
2180 * @param error Error, if any
2181 * @param [response] Empty
2182 */
2183 type AcknowledgeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
2184
2185 /**
2186 * Callback as used by {@link google.pubsub.v1.Subscriber#pull}.
2187 * @param error Error, if any
2188 * @param [response] PullResponse
2189 */
2190 type PullCallback = (error: (Error|null), response?: google.pubsub.v1.PullResponse) => void;
2191
2192 /**
2193 * Callback as used by {@link google.pubsub.v1.Subscriber#streamingPull}.
2194 * @param error Error, if any
2195 * @param [response] StreamingPullResponse
2196 */
2197 type StreamingPullCallback = (error: (Error|null), response?: google.pubsub.v1.StreamingPullResponse) => void;
2198
2199 /**
2200 * Callback as used by {@link google.pubsub.v1.Subscriber#modifyPushConfig}.
2201 * @param error Error, if any
2202 * @param [response] Empty
2203 */
2204 type ModifyPushConfigCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
2205
2206 /**
2207 * Callback as used by {@link google.pubsub.v1.Subscriber#getSnapshot}.
2208 * @param error Error, if any
2209 * @param [response] Snapshot
2210 */
2211 type GetSnapshotCallback = (error: (Error|null), response?: google.pubsub.v1.Snapshot) => void;
2212
2213 /**
2214 * Callback as used by {@link google.pubsub.v1.Subscriber#listSnapshots}.
2215 * @param error Error, if any
2216 * @param [response] ListSnapshotsResponse
2217 */
2218 type ListSnapshotsCallback = (error: (Error|null), response?: google.pubsub.v1.ListSnapshotsResponse) => void;
2219
2220 /**
2221 * Callback as used by {@link google.pubsub.v1.Subscriber#createSnapshot}.
2222 * @param error Error, if any
2223 * @param [response] Snapshot
2224 */
2225 type CreateSnapshotCallback = (error: (Error|null), response?: google.pubsub.v1.Snapshot) => void;
2226
2227 /**
2228 * Callback as used by {@link google.pubsub.v1.Subscriber#updateSnapshot}.
2229 * @param error Error, if any
2230 * @param [response] Snapshot
2231 */
2232 type UpdateSnapshotCallback = (error: (Error|null), response?: google.pubsub.v1.Snapshot) => void;
2233
2234 /**
2235 * Callback as used by {@link google.pubsub.v1.Subscriber#deleteSnapshot}.
2236 * @param error Error, if any
2237 * @param [response] Empty
2238 */
2239 type DeleteSnapshotCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
2240
2241 /**
2242 * Callback as used by {@link google.pubsub.v1.Subscriber#seek}.
2243 * @param error Error, if any
2244 * @param [response] SeekResponse
2245 */
2246 type SeekCallback = (error: (Error|null), response?: google.pubsub.v1.SeekResponse) => void;
2247 }
2248
2249 /** Properties of a Subscription. */
2250 interface ISubscription {
2251
2252 /** Subscription name */
2253 name?: (string|null);
2254
2255 /** Subscription topic */
2256 topic?: (string|null);
2257
2258 /** Subscription pushConfig */
2259 pushConfig?: (google.pubsub.v1.IPushConfig|null);
2260
2261 /** Subscription ackDeadlineSeconds */
2262 ackDeadlineSeconds?: (number|null);
2263
2264 /** Subscription retainAckedMessages */
2265 retainAckedMessages?: (boolean|null);
2266
2267 /** Subscription messageRetentionDuration */
2268 messageRetentionDuration?: (google.protobuf.IDuration|null);
2269
2270 /** Subscription labels */
2271 labels?: ({ [k: string]: string }|null);
2272
2273 /** Subscription enableMessageOrdering */
2274 enableMessageOrdering?: (boolean|null);
2275
2276 /** Subscription expirationPolicy */
2277 expirationPolicy?: (google.pubsub.v1.IExpirationPolicy|null);
2278
2279 /** Subscription filter */
2280 filter?: (string|null);
2281
2282 /** Subscription deadLetterPolicy */
2283 deadLetterPolicy?: (google.pubsub.v1.IDeadLetterPolicy|null);
2284
2285 /** Subscription retryPolicy */
2286 retryPolicy?: (google.pubsub.v1.IRetryPolicy|null);
2287
2288 /** Subscription detached */
2289 detached?: (boolean|null);
2290 }
2291
2292 /** Represents a Subscription. */
2293 class Subscription implements ISubscription {
2294
2295 /**
2296 * Constructs a new Subscription.
2297 * @param [properties] Properties to set
2298 */
2299 constructor(properties?: google.pubsub.v1.ISubscription);
2300
2301 /** Subscription name. */
2302 public name: string;
2303
2304 /** Subscription topic. */
2305 public topic: string;
2306
2307 /** Subscription pushConfig. */
2308 public pushConfig?: (google.pubsub.v1.IPushConfig|null);
2309
2310 /** Subscription ackDeadlineSeconds. */
2311 public ackDeadlineSeconds: number;
2312
2313 /** Subscription retainAckedMessages. */
2314 public retainAckedMessages: boolean;
2315
2316 /** Subscription messageRetentionDuration. */
2317 public messageRetentionDuration?: (google.protobuf.IDuration|null);
2318
2319 /** Subscription labels. */
2320 public labels: { [k: string]: string };
2321
2322 /** Subscription enableMessageOrdering. */
2323 public enableMessageOrdering: boolean;
2324
2325 /** Subscription expirationPolicy. */
2326 public expirationPolicy?: (google.pubsub.v1.IExpirationPolicy|null);
2327
2328 /** Subscription filter. */
2329 public filter: string;
2330
2331 /** Subscription deadLetterPolicy. */
2332 public deadLetterPolicy?: (google.pubsub.v1.IDeadLetterPolicy|null);
2333
2334 /** Subscription retryPolicy. */
2335 public retryPolicy?: (google.pubsub.v1.IRetryPolicy|null);
2336
2337 /** Subscription detached. */
2338 public detached: boolean;
2339
2340 /**
2341 * Creates a new Subscription instance using the specified properties.
2342 * @param [properties] Properties to set
2343 * @returns Subscription instance
2344 */
2345 public static create(properties?: google.pubsub.v1.ISubscription): google.pubsub.v1.Subscription;
2346
2347 /**
2348 * Encodes the specified Subscription message. Does not implicitly {@link google.pubsub.v1.Subscription.verify|verify} messages.
2349 * @param message Subscription message or plain object to encode
2350 * @param [writer] Writer to encode to
2351 * @returns Writer
2352 */
2353 public static encode(message: google.pubsub.v1.ISubscription, writer?: $protobuf.Writer): $protobuf.Writer;
2354
2355 /**
2356 * Encodes the specified Subscription message, length delimited. Does not implicitly {@link google.pubsub.v1.Subscription.verify|verify} messages.
2357 * @param message Subscription message or plain object to encode
2358 * @param [writer] Writer to encode to
2359 * @returns Writer
2360 */
2361 public static encodeDelimited(message: google.pubsub.v1.ISubscription, writer?: $protobuf.Writer): $protobuf.Writer;
2362
2363 /**
2364 * Decodes a Subscription message from the specified reader or buffer.
2365 * @param reader Reader or buffer to decode from
2366 * @param [length] Message length if known beforehand
2367 * @returns Subscription
2368 * @throws {Error} If the payload is not a reader or valid buffer
2369 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2370 */
2371 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.Subscription;
2372
2373 /**
2374 * Decodes a Subscription message from the specified reader or buffer, length delimited.
2375 * @param reader Reader or buffer to decode from
2376 * @returns Subscription
2377 * @throws {Error} If the payload is not a reader or valid buffer
2378 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2379 */
2380 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.Subscription;
2381
2382 /**
2383 * Verifies a Subscription message.
2384 * @param message Plain object to verify
2385 * @returns `null` if valid, otherwise the reason why it is not
2386 */
2387 public static verify(message: { [k: string]: any }): (string|null);
2388
2389 /**
2390 * Creates a Subscription message from a plain object. Also converts values to their respective internal types.
2391 * @param object Plain object
2392 * @returns Subscription
2393 */
2394 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.Subscription;
2395
2396 /**
2397 * Creates a plain object from a Subscription message. Also converts values to other types if specified.
2398 * @param message Subscription
2399 * @param [options] Conversion options
2400 * @returns Plain object
2401 */
2402 public static toObject(message: google.pubsub.v1.Subscription, options?: $protobuf.IConversionOptions): { [k: string]: any };
2403
2404 /**
2405 * Converts this Subscription to JSON.
2406 * @returns JSON object
2407 */
2408 public toJSON(): { [k: string]: any };
2409 }
2410
2411 /** Properties of a RetryPolicy. */
2412 interface IRetryPolicy {
2413
2414 /** RetryPolicy minimumBackoff */
2415 minimumBackoff?: (google.protobuf.IDuration|null);
2416
2417 /** RetryPolicy maximumBackoff */
2418 maximumBackoff?: (google.protobuf.IDuration|null);
2419 }
2420
2421 /** Represents a RetryPolicy. */
2422 class RetryPolicy implements IRetryPolicy {
2423
2424 /**
2425 * Constructs a new RetryPolicy.
2426 * @param [properties] Properties to set
2427 */
2428 constructor(properties?: google.pubsub.v1.IRetryPolicy);
2429
2430 /** RetryPolicy minimumBackoff. */
2431 public minimumBackoff?: (google.protobuf.IDuration|null);
2432
2433 /** RetryPolicy maximumBackoff. */
2434 public maximumBackoff?: (google.protobuf.IDuration|null);
2435
2436 /**
2437 * Creates a new RetryPolicy instance using the specified properties.
2438 * @param [properties] Properties to set
2439 * @returns RetryPolicy instance
2440 */
2441 public static create(properties?: google.pubsub.v1.IRetryPolicy): google.pubsub.v1.RetryPolicy;
2442
2443 /**
2444 * Encodes the specified RetryPolicy message. Does not implicitly {@link google.pubsub.v1.RetryPolicy.verify|verify} messages.
2445 * @param message RetryPolicy message or plain object to encode
2446 * @param [writer] Writer to encode to
2447 * @returns Writer
2448 */
2449 public static encode(message: google.pubsub.v1.IRetryPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
2450
2451 /**
2452 * Encodes the specified RetryPolicy message, length delimited. Does not implicitly {@link google.pubsub.v1.RetryPolicy.verify|verify} messages.
2453 * @param message RetryPolicy message or plain object to encode
2454 * @param [writer] Writer to encode to
2455 * @returns Writer
2456 */
2457 public static encodeDelimited(message: google.pubsub.v1.IRetryPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
2458
2459 /**
2460 * Decodes a RetryPolicy message from the specified reader or buffer.
2461 * @param reader Reader or buffer to decode from
2462 * @param [length] Message length if known beforehand
2463 * @returns RetryPolicy
2464 * @throws {Error} If the payload is not a reader or valid buffer
2465 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2466 */
2467 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.RetryPolicy;
2468
2469 /**
2470 * Decodes a RetryPolicy message from the specified reader or buffer, length delimited.
2471 * @param reader Reader or buffer to decode from
2472 * @returns RetryPolicy
2473 * @throws {Error} If the payload is not a reader or valid buffer
2474 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2475 */
2476 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.RetryPolicy;
2477
2478 /**
2479 * Verifies a RetryPolicy message.
2480 * @param message Plain object to verify
2481 * @returns `null` if valid, otherwise the reason why it is not
2482 */
2483 public static verify(message: { [k: string]: any }): (string|null);
2484
2485 /**
2486 * Creates a RetryPolicy message from a plain object. Also converts values to their respective internal types.
2487 * @param object Plain object
2488 * @returns RetryPolicy
2489 */
2490 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.RetryPolicy;
2491
2492 /**
2493 * Creates a plain object from a RetryPolicy message. Also converts values to other types if specified.
2494 * @param message RetryPolicy
2495 * @param [options] Conversion options
2496 * @returns Plain object
2497 */
2498 public static toObject(message: google.pubsub.v1.RetryPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
2499
2500 /**
2501 * Converts this RetryPolicy to JSON.
2502 * @returns JSON object
2503 */
2504 public toJSON(): { [k: string]: any };
2505 }
2506
2507 /** Properties of a DeadLetterPolicy. */
2508 interface IDeadLetterPolicy {
2509
2510 /** DeadLetterPolicy deadLetterTopic */
2511 deadLetterTopic?: (string|null);
2512
2513 /** DeadLetterPolicy maxDeliveryAttempts */
2514 maxDeliveryAttempts?: (number|null);
2515 }
2516
2517 /** Represents a DeadLetterPolicy. */
2518 class DeadLetterPolicy implements IDeadLetterPolicy {
2519
2520 /**
2521 * Constructs a new DeadLetterPolicy.
2522 * @param [properties] Properties to set
2523 */
2524 constructor(properties?: google.pubsub.v1.IDeadLetterPolicy);
2525
2526 /** DeadLetterPolicy deadLetterTopic. */
2527 public deadLetterTopic: string;
2528
2529 /** DeadLetterPolicy maxDeliveryAttempts. */
2530 public maxDeliveryAttempts: number;
2531
2532 /**
2533 * Creates a new DeadLetterPolicy instance using the specified properties.
2534 * @param [properties] Properties to set
2535 * @returns DeadLetterPolicy instance
2536 */
2537 public static create(properties?: google.pubsub.v1.IDeadLetterPolicy): google.pubsub.v1.DeadLetterPolicy;
2538
2539 /**
2540 * Encodes the specified DeadLetterPolicy message. Does not implicitly {@link google.pubsub.v1.DeadLetterPolicy.verify|verify} messages.
2541 * @param message DeadLetterPolicy message or plain object to encode
2542 * @param [writer] Writer to encode to
2543 * @returns Writer
2544 */
2545 public static encode(message: google.pubsub.v1.IDeadLetterPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
2546
2547 /**
2548 * Encodes the specified DeadLetterPolicy message, length delimited. Does not implicitly {@link google.pubsub.v1.DeadLetterPolicy.verify|verify} messages.
2549 * @param message DeadLetterPolicy message or plain object to encode
2550 * @param [writer] Writer to encode to
2551 * @returns Writer
2552 */
2553 public static encodeDelimited(message: google.pubsub.v1.IDeadLetterPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
2554
2555 /**
2556 * Decodes a DeadLetterPolicy message from the specified reader or buffer.
2557 * @param reader Reader or buffer to decode from
2558 * @param [length] Message length if known beforehand
2559 * @returns DeadLetterPolicy
2560 * @throws {Error} If the payload is not a reader or valid buffer
2561 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2562 */
2563 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.DeadLetterPolicy;
2564
2565 /**
2566 * Decodes a DeadLetterPolicy message from the specified reader or buffer, length delimited.
2567 * @param reader Reader or buffer to decode from
2568 * @returns DeadLetterPolicy
2569 * @throws {Error} If the payload is not a reader or valid buffer
2570 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2571 */
2572 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.DeadLetterPolicy;
2573
2574 /**
2575 * Verifies a DeadLetterPolicy message.
2576 * @param message Plain object to verify
2577 * @returns `null` if valid, otherwise the reason why it is not
2578 */
2579 public static verify(message: { [k: string]: any }): (string|null);
2580
2581 /**
2582 * Creates a DeadLetterPolicy message from a plain object. Also converts values to their respective internal types.
2583 * @param object Plain object
2584 * @returns DeadLetterPolicy
2585 */
2586 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.DeadLetterPolicy;
2587
2588 /**
2589 * Creates a plain object from a DeadLetterPolicy message. Also converts values to other types if specified.
2590 * @param message DeadLetterPolicy
2591 * @param [options] Conversion options
2592 * @returns Plain object
2593 */
2594 public static toObject(message: google.pubsub.v1.DeadLetterPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
2595
2596 /**
2597 * Converts this DeadLetterPolicy to JSON.
2598 * @returns JSON object
2599 */
2600 public toJSON(): { [k: string]: any };
2601 }
2602
2603 /** Properties of an ExpirationPolicy. */
2604 interface IExpirationPolicy {
2605
2606 /** ExpirationPolicy ttl */
2607 ttl?: (google.protobuf.IDuration|null);
2608 }
2609
2610 /** Represents an ExpirationPolicy. */
2611 class ExpirationPolicy implements IExpirationPolicy {
2612
2613 /**
2614 * Constructs a new ExpirationPolicy.
2615 * @param [properties] Properties to set
2616 */
2617 constructor(properties?: google.pubsub.v1.IExpirationPolicy);
2618
2619 /** ExpirationPolicy ttl. */
2620 public ttl?: (google.protobuf.IDuration|null);
2621
2622 /**
2623 * Creates a new ExpirationPolicy instance using the specified properties.
2624 * @param [properties] Properties to set
2625 * @returns ExpirationPolicy instance
2626 */
2627 public static create(properties?: google.pubsub.v1.IExpirationPolicy): google.pubsub.v1.ExpirationPolicy;
2628
2629 /**
2630 * Encodes the specified ExpirationPolicy message. Does not implicitly {@link google.pubsub.v1.ExpirationPolicy.verify|verify} messages.
2631 * @param message ExpirationPolicy message or plain object to encode
2632 * @param [writer] Writer to encode to
2633 * @returns Writer
2634 */
2635 public static encode(message: google.pubsub.v1.IExpirationPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
2636
2637 /**
2638 * Encodes the specified ExpirationPolicy message, length delimited. Does not implicitly {@link google.pubsub.v1.ExpirationPolicy.verify|verify} messages.
2639 * @param message ExpirationPolicy message or plain object to encode
2640 * @param [writer] Writer to encode to
2641 * @returns Writer
2642 */
2643 public static encodeDelimited(message: google.pubsub.v1.IExpirationPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
2644
2645 /**
2646 * Decodes an ExpirationPolicy message from the specified reader or buffer.
2647 * @param reader Reader or buffer to decode from
2648 * @param [length] Message length if known beforehand
2649 * @returns ExpirationPolicy
2650 * @throws {Error} If the payload is not a reader or valid buffer
2651 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2652 */
2653 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ExpirationPolicy;
2654
2655 /**
2656 * Decodes an ExpirationPolicy message from the specified reader or buffer, length delimited.
2657 * @param reader Reader or buffer to decode from
2658 * @returns ExpirationPolicy
2659 * @throws {Error} If the payload is not a reader or valid buffer
2660 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2661 */
2662 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ExpirationPolicy;
2663
2664 /**
2665 * Verifies an ExpirationPolicy message.
2666 * @param message Plain object to verify
2667 * @returns `null` if valid, otherwise the reason why it is not
2668 */
2669 public static verify(message: { [k: string]: any }): (string|null);
2670
2671 /**
2672 * Creates an ExpirationPolicy message from a plain object. Also converts values to their respective internal types.
2673 * @param object Plain object
2674 * @returns ExpirationPolicy
2675 */
2676 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ExpirationPolicy;
2677
2678 /**
2679 * Creates a plain object from an ExpirationPolicy message. Also converts values to other types if specified.
2680 * @param message ExpirationPolicy
2681 * @param [options] Conversion options
2682 * @returns Plain object
2683 */
2684 public static toObject(message: google.pubsub.v1.ExpirationPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
2685
2686 /**
2687 * Converts this ExpirationPolicy to JSON.
2688 * @returns JSON object
2689 */
2690 public toJSON(): { [k: string]: any };
2691 }
2692
2693 /** Properties of a PushConfig. */
2694 interface IPushConfig {
2695
2696 /** PushConfig pushEndpoint */
2697 pushEndpoint?: (string|null);
2698
2699 /** PushConfig attributes */
2700 attributes?: ({ [k: string]: string }|null);
2701
2702 /** PushConfig oidcToken */
2703 oidcToken?: (google.pubsub.v1.PushConfig.IOidcToken|null);
2704 }
2705
2706 /** Represents a PushConfig. */
2707 class PushConfig implements IPushConfig {
2708
2709 /**
2710 * Constructs a new PushConfig.
2711 * @param [properties] Properties to set
2712 */
2713 constructor(properties?: google.pubsub.v1.IPushConfig);
2714
2715 /** PushConfig pushEndpoint. */
2716 public pushEndpoint: string;
2717
2718 /** PushConfig attributes. */
2719 public attributes: { [k: string]: string };
2720
2721 /** PushConfig oidcToken. */
2722 public oidcToken?: (google.pubsub.v1.PushConfig.IOidcToken|null);
2723
2724 /** PushConfig authenticationMethod. */
2725 public authenticationMethod?: "oidcToken";
2726
2727 /**
2728 * Creates a new PushConfig instance using the specified properties.
2729 * @param [properties] Properties to set
2730 * @returns PushConfig instance
2731 */
2732 public static create(properties?: google.pubsub.v1.IPushConfig): google.pubsub.v1.PushConfig;
2733
2734 /**
2735 * Encodes the specified PushConfig message. Does not implicitly {@link google.pubsub.v1.PushConfig.verify|verify} messages.
2736 * @param message PushConfig message or plain object to encode
2737 * @param [writer] Writer to encode to
2738 * @returns Writer
2739 */
2740 public static encode(message: google.pubsub.v1.IPushConfig, writer?: $protobuf.Writer): $protobuf.Writer;
2741
2742 /**
2743 * Encodes the specified PushConfig message, length delimited. Does not implicitly {@link google.pubsub.v1.PushConfig.verify|verify} messages.
2744 * @param message PushConfig message or plain object to encode
2745 * @param [writer] Writer to encode to
2746 * @returns Writer
2747 */
2748 public static encodeDelimited(message: google.pubsub.v1.IPushConfig, writer?: $protobuf.Writer): $protobuf.Writer;
2749
2750 /**
2751 * Decodes a PushConfig message from the specified reader or buffer.
2752 * @param reader Reader or buffer to decode from
2753 * @param [length] Message length if known beforehand
2754 * @returns PushConfig
2755 * @throws {Error} If the payload is not a reader or valid buffer
2756 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2757 */
2758 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.PushConfig;
2759
2760 /**
2761 * Decodes a PushConfig message from the specified reader or buffer, length delimited.
2762 * @param reader Reader or buffer to decode from
2763 * @returns PushConfig
2764 * @throws {Error} If the payload is not a reader or valid buffer
2765 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2766 */
2767 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.PushConfig;
2768
2769 /**
2770 * Verifies a PushConfig message.
2771 * @param message Plain object to verify
2772 * @returns `null` if valid, otherwise the reason why it is not
2773 */
2774 public static verify(message: { [k: string]: any }): (string|null);
2775
2776 /**
2777 * Creates a PushConfig message from a plain object. Also converts values to their respective internal types.
2778 * @param object Plain object
2779 * @returns PushConfig
2780 */
2781 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.PushConfig;
2782
2783 /**
2784 * Creates a plain object from a PushConfig message. Also converts values to other types if specified.
2785 * @param message PushConfig
2786 * @param [options] Conversion options
2787 * @returns Plain object
2788 */
2789 public static toObject(message: google.pubsub.v1.PushConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
2790
2791 /**
2792 * Converts this PushConfig to JSON.
2793 * @returns JSON object
2794 */
2795 public toJSON(): { [k: string]: any };
2796 }
2797
2798 namespace PushConfig {
2799
2800 /** Properties of an OidcToken. */
2801 interface IOidcToken {
2802
2803 /** OidcToken serviceAccountEmail */
2804 serviceAccountEmail?: (string|null);
2805
2806 /** OidcToken audience */
2807 audience?: (string|null);
2808 }
2809
2810 /** Represents an OidcToken. */
2811 class OidcToken implements IOidcToken {
2812
2813 /**
2814 * Constructs a new OidcToken.
2815 * @param [properties] Properties to set
2816 */
2817 constructor(properties?: google.pubsub.v1.PushConfig.IOidcToken);
2818
2819 /** OidcToken serviceAccountEmail. */
2820 public serviceAccountEmail: string;
2821
2822 /** OidcToken audience. */
2823 public audience: string;
2824
2825 /**
2826 * Creates a new OidcToken instance using the specified properties.
2827 * @param [properties] Properties to set
2828 * @returns OidcToken instance
2829 */
2830 public static create(properties?: google.pubsub.v1.PushConfig.IOidcToken): google.pubsub.v1.PushConfig.OidcToken;
2831
2832 /**
2833 * Encodes the specified OidcToken message. Does not implicitly {@link google.pubsub.v1.PushConfig.OidcToken.verify|verify} messages.
2834 * @param message OidcToken message or plain object to encode
2835 * @param [writer] Writer to encode to
2836 * @returns Writer
2837 */
2838 public static encode(message: google.pubsub.v1.PushConfig.IOidcToken, writer?: $protobuf.Writer): $protobuf.Writer;
2839
2840 /**
2841 * Encodes the specified OidcToken message, length delimited. Does not implicitly {@link google.pubsub.v1.PushConfig.OidcToken.verify|verify} messages.
2842 * @param message OidcToken message or plain object to encode
2843 * @param [writer] Writer to encode to
2844 * @returns Writer
2845 */
2846 public static encodeDelimited(message: google.pubsub.v1.PushConfig.IOidcToken, writer?: $protobuf.Writer): $protobuf.Writer;
2847
2848 /**
2849 * Decodes an OidcToken message from the specified reader or buffer.
2850 * @param reader Reader or buffer to decode from
2851 * @param [length] Message length if known beforehand
2852 * @returns OidcToken
2853 * @throws {Error} If the payload is not a reader or valid buffer
2854 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2855 */
2856 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.PushConfig.OidcToken;
2857
2858 /**
2859 * Decodes an OidcToken message from the specified reader or buffer, length delimited.
2860 * @param reader Reader or buffer to decode from
2861 * @returns OidcToken
2862 * @throws {Error} If the payload is not a reader or valid buffer
2863 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2864 */
2865 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.PushConfig.OidcToken;
2866
2867 /**
2868 * Verifies an OidcToken message.
2869 * @param message Plain object to verify
2870 * @returns `null` if valid, otherwise the reason why it is not
2871 */
2872 public static verify(message: { [k: string]: any }): (string|null);
2873
2874 /**
2875 * Creates an OidcToken message from a plain object. Also converts values to their respective internal types.
2876 * @param object Plain object
2877 * @returns OidcToken
2878 */
2879 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.PushConfig.OidcToken;
2880
2881 /**
2882 * Creates a plain object from an OidcToken message. Also converts values to other types if specified.
2883 * @param message OidcToken
2884 * @param [options] Conversion options
2885 * @returns Plain object
2886 */
2887 public static toObject(message: google.pubsub.v1.PushConfig.OidcToken, options?: $protobuf.IConversionOptions): { [k: string]: any };
2888
2889 /**
2890 * Converts this OidcToken to JSON.
2891 * @returns JSON object
2892 */
2893 public toJSON(): { [k: string]: any };
2894 }
2895 }
2896
2897 /** Properties of a ReceivedMessage. */
2898 interface IReceivedMessage {
2899
2900 /** ReceivedMessage ackId */
2901 ackId?: (string|null);
2902
2903 /** ReceivedMessage message */
2904 message?: (google.pubsub.v1.IPubsubMessage|null);
2905
2906 /** ReceivedMessage deliveryAttempt */
2907 deliveryAttempt?: (number|null);
2908 }
2909
2910 /** Represents a ReceivedMessage. */
2911 class ReceivedMessage implements IReceivedMessage {
2912
2913 /**
2914 * Constructs a new ReceivedMessage.
2915 * @param [properties] Properties to set
2916 */
2917 constructor(properties?: google.pubsub.v1.IReceivedMessage);
2918
2919 /** ReceivedMessage ackId. */
2920 public ackId: string;
2921
2922 /** ReceivedMessage message. */
2923 public message?: (google.pubsub.v1.IPubsubMessage|null);
2924
2925 /** ReceivedMessage deliveryAttempt. */
2926 public deliveryAttempt: number;
2927
2928 /**
2929 * Creates a new ReceivedMessage instance using the specified properties.
2930 * @param [properties] Properties to set
2931 * @returns ReceivedMessage instance
2932 */
2933 public static create(properties?: google.pubsub.v1.IReceivedMessage): google.pubsub.v1.ReceivedMessage;
2934
2935 /**
2936 * Encodes the specified ReceivedMessage message. Does not implicitly {@link google.pubsub.v1.ReceivedMessage.verify|verify} messages.
2937 * @param message ReceivedMessage message or plain object to encode
2938 * @param [writer] Writer to encode to
2939 * @returns Writer
2940 */
2941 public static encode(message: google.pubsub.v1.IReceivedMessage, writer?: $protobuf.Writer): $protobuf.Writer;
2942
2943 /**
2944 * Encodes the specified ReceivedMessage message, length delimited. Does not implicitly {@link google.pubsub.v1.ReceivedMessage.verify|verify} messages.
2945 * @param message ReceivedMessage message or plain object to encode
2946 * @param [writer] Writer to encode to
2947 * @returns Writer
2948 */
2949 public static encodeDelimited(message: google.pubsub.v1.IReceivedMessage, writer?: $protobuf.Writer): $protobuf.Writer;
2950
2951 /**
2952 * Decodes a ReceivedMessage message from the specified reader or buffer.
2953 * @param reader Reader or buffer to decode from
2954 * @param [length] Message length if known beforehand
2955 * @returns ReceivedMessage
2956 * @throws {Error} If the payload is not a reader or valid buffer
2957 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2958 */
2959 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ReceivedMessage;
2960
2961 /**
2962 * Decodes a ReceivedMessage message from the specified reader or buffer, length delimited.
2963 * @param reader Reader or buffer to decode from
2964 * @returns ReceivedMessage
2965 * @throws {Error} If the payload is not a reader or valid buffer
2966 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2967 */
2968 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ReceivedMessage;
2969
2970 /**
2971 * Verifies a ReceivedMessage message.
2972 * @param message Plain object to verify
2973 * @returns `null` if valid, otherwise the reason why it is not
2974 */
2975 public static verify(message: { [k: string]: any }): (string|null);
2976
2977 /**
2978 * Creates a ReceivedMessage message from a plain object. Also converts values to their respective internal types.
2979 * @param object Plain object
2980 * @returns ReceivedMessage
2981 */
2982 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ReceivedMessage;
2983
2984 /**
2985 * Creates a plain object from a ReceivedMessage message. Also converts values to other types if specified.
2986 * @param message ReceivedMessage
2987 * @param [options] Conversion options
2988 * @returns Plain object
2989 */
2990 public static toObject(message: google.pubsub.v1.ReceivedMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
2991
2992 /**
2993 * Converts this ReceivedMessage to JSON.
2994 * @returns JSON object
2995 */
2996 public toJSON(): { [k: string]: any };
2997 }
2998
2999 /** Properties of a GetSubscriptionRequest. */
3000 interface IGetSubscriptionRequest {
3001
3002 /** GetSubscriptionRequest subscription */
3003 subscription?: (string|null);
3004 }
3005
3006 /** Represents a GetSubscriptionRequest. */
3007 class GetSubscriptionRequest implements IGetSubscriptionRequest {
3008
3009 /**
3010 * Constructs a new GetSubscriptionRequest.
3011 * @param [properties] Properties to set
3012 */
3013 constructor(properties?: google.pubsub.v1.IGetSubscriptionRequest);
3014
3015 /** GetSubscriptionRequest subscription. */
3016 public subscription: string;
3017
3018 /**
3019 * Creates a new GetSubscriptionRequest instance using the specified properties.
3020 * @param [properties] Properties to set
3021 * @returns GetSubscriptionRequest instance
3022 */
3023 public static create(properties?: google.pubsub.v1.IGetSubscriptionRequest): google.pubsub.v1.GetSubscriptionRequest;
3024
3025 /**
3026 * Encodes the specified GetSubscriptionRequest message. Does not implicitly {@link google.pubsub.v1.GetSubscriptionRequest.verify|verify} messages.
3027 * @param message GetSubscriptionRequest message or plain object to encode
3028 * @param [writer] Writer to encode to
3029 * @returns Writer
3030 */
3031 public static encode(message: google.pubsub.v1.IGetSubscriptionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3032
3033 /**
3034 * Encodes the specified GetSubscriptionRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.GetSubscriptionRequest.verify|verify} messages.
3035 * @param message GetSubscriptionRequest message or plain object to encode
3036 * @param [writer] Writer to encode to
3037 * @returns Writer
3038 */
3039 public static encodeDelimited(message: google.pubsub.v1.IGetSubscriptionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3040
3041 /**
3042 * Decodes a GetSubscriptionRequest message from the specified reader or buffer.
3043 * @param reader Reader or buffer to decode from
3044 * @param [length] Message length if known beforehand
3045 * @returns GetSubscriptionRequest
3046 * @throws {Error} If the payload is not a reader or valid buffer
3047 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3048 */
3049 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.GetSubscriptionRequest;
3050
3051 /**
3052 * Decodes a GetSubscriptionRequest message from the specified reader or buffer, length delimited.
3053 * @param reader Reader or buffer to decode from
3054 * @returns GetSubscriptionRequest
3055 * @throws {Error} If the payload is not a reader or valid buffer
3056 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3057 */
3058 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.GetSubscriptionRequest;
3059
3060 /**
3061 * Verifies a GetSubscriptionRequest message.
3062 * @param message Plain object to verify
3063 * @returns `null` if valid, otherwise the reason why it is not
3064 */
3065 public static verify(message: { [k: string]: any }): (string|null);
3066
3067 /**
3068 * Creates a GetSubscriptionRequest message from a plain object. Also converts values to their respective internal types.
3069 * @param object Plain object
3070 * @returns GetSubscriptionRequest
3071 */
3072 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.GetSubscriptionRequest;
3073
3074 /**
3075 * Creates a plain object from a GetSubscriptionRequest message. Also converts values to other types if specified.
3076 * @param message GetSubscriptionRequest
3077 * @param [options] Conversion options
3078 * @returns Plain object
3079 */
3080 public static toObject(message: google.pubsub.v1.GetSubscriptionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
3081
3082 /**
3083 * Converts this GetSubscriptionRequest to JSON.
3084 * @returns JSON object
3085 */
3086 public toJSON(): { [k: string]: any };
3087 }
3088
3089 /** Properties of an UpdateSubscriptionRequest. */
3090 interface IUpdateSubscriptionRequest {
3091
3092 /** UpdateSubscriptionRequest subscription */
3093 subscription?: (google.pubsub.v1.ISubscription|null);
3094
3095 /** UpdateSubscriptionRequest updateMask */
3096 updateMask?: (google.protobuf.IFieldMask|null);
3097 }
3098
3099 /** Represents an UpdateSubscriptionRequest. */
3100 class UpdateSubscriptionRequest implements IUpdateSubscriptionRequest {
3101
3102 /**
3103 * Constructs a new UpdateSubscriptionRequest.
3104 * @param [properties] Properties to set
3105 */
3106 constructor(properties?: google.pubsub.v1.IUpdateSubscriptionRequest);
3107
3108 /** UpdateSubscriptionRequest subscription. */
3109 public subscription?: (google.pubsub.v1.ISubscription|null);
3110
3111 /** UpdateSubscriptionRequest updateMask. */
3112 public updateMask?: (google.protobuf.IFieldMask|null);
3113
3114 /**
3115 * Creates a new UpdateSubscriptionRequest instance using the specified properties.
3116 * @param [properties] Properties to set
3117 * @returns UpdateSubscriptionRequest instance
3118 */
3119 public static create(properties?: google.pubsub.v1.IUpdateSubscriptionRequest): google.pubsub.v1.UpdateSubscriptionRequest;
3120
3121 /**
3122 * Encodes the specified UpdateSubscriptionRequest message. Does not implicitly {@link google.pubsub.v1.UpdateSubscriptionRequest.verify|verify} messages.
3123 * @param message UpdateSubscriptionRequest message or plain object to encode
3124 * @param [writer] Writer to encode to
3125 * @returns Writer
3126 */
3127 public static encode(message: google.pubsub.v1.IUpdateSubscriptionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3128
3129 /**
3130 * Encodes the specified UpdateSubscriptionRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.UpdateSubscriptionRequest.verify|verify} messages.
3131 * @param message UpdateSubscriptionRequest message or plain object to encode
3132 * @param [writer] Writer to encode to
3133 * @returns Writer
3134 */
3135 public static encodeDelimited(message: google.pubsub.v1.IUpdateSubscriptionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3136
3137 /**
3138 * Decodes an UpdateSubscriptionRequest message from the specified reader or buffer.
3139 * @param reader Reader or buffer to decode from
3140 * @param [length] Message length if known beforehand
3141 * @returns UpdateSubscriptionRequest
3142 * @throws {Error} If the payload is not a reader or valid buffer
3143 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3144 */
3145 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.UpdateSubscriptionRequest;
3146
3147 /**
3148 * Decodes an UpdateSubscriptionRequest message from the specified reader or buffer, length delimited.
3149 * @param reader Reader or buffer to decode from
3150 * @returns UpdateSubscriptionRequest
3151 * @throws {Error} If the payload is not a reader or valid buffer
3152 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3153 */
3154 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.UpdateSubscriptionRequest;
3155
3156 /**
3157 * Verifies an UpdateSubscriptionRequest message.
3158 * @param message Plain object to verify
3159 * @returns `null` if valid, otherwise the reason why it is not
3160 */
3161 public static verify(message: { [k: string]: any }): (string|null);
3162
3163 /**
3164 * Creates an UpdateSubscriptionRequest message from a plain object. Also converts values to their respective internal types.
3165 * @param object Plain object
3166 * @returns UpdateSubscriptionRequest
3167 */
3168 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.UpdateSubscriptionRequest;
3169
3170 /**
3171 * Creates a plain object from an UpdateSubscriptionRequest message. Also converts values to other types if specified.
3172 * @param message UpdateSubscriptionRequest
3173 * @param [options] Conversion options
3174 * @returns Plain object
3175 */
3176 public static toObject(message: google.pubsub.v1.UpdateSubscriptionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
3177
3178 /**
3179 * Converts this UpdateSubscriptionRequest to JSON.
3180 * @returns JSON object
3181 */
3182 public toJSON(): { [k: string]: any };
3183 }
3184
3185 /** Properties of a ListSubscriptionsRequest. */
3186 interface IListSubscriptionsRequest {
3187
3188 /** ListSubscriptionsRequest project */
3189 project?: (string|null);
3190
3191 /** ListSubscriptionsRequest pageSize */
3192 pageSize?: (number|null);
3193
3194 /** ListSubscriptionsRequest pageToken */
3195 pageToken?: (string|null);
3196 }
3197
3198 /** Represents a ListSubscriptionsRequest. */
3199 class ListSubscriptionsRequest implements IListSubscriptionsRequest {
3200
3201 /**
3202 * Constructs a new ListSubscriptionsRequest.
3203 * @param [properties] Properties to set
3204 */
3205 constructor(properties?: google.pubsub.v1.IListSubscriptionsRequest);
3206
3207 /** ListSubscriptionsRequest project. */
3208 public project: string;
3209
3210 /** ListSubscriptionsRequest pageSize. */
3211 public pageSize: number;
3212
3213 /** ListSubscriptionsRequest pageToken. */
3214 public pageToken: string;
3215
3216 /**
3217 * Creates a new ListSubscriptionsRequest instance using the specified properties.
3218 * @param [properties] Properties to set
3219 * @returns ListSubscriptionsRequest instance
3220 */
3221 public static create(properties?: google.pubsub.v1.IListSubscriptionsRequest): google.pubsub.v1.ListSubscriptionsRequest;
3222
3223 /**
3224 * Encodes the specified ListSubscriptionsRequest message. Does not implicitly {@link google.pubsub.v1.ListSubscriptionsRequest.verify|verify} messages.
3225 * @param message ListSubscriptionsRequest message or plain object to encode
3226 * @param [writer] Writer to encode to
3227 * @returns Writer
3228 */
3229 public static encode(message: google.pubsub.v1.IListSubscriptionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3230
3231 /**
3232 * Encodes the specified ListSubscriptionsRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.ListSubscriptionsRequest.verify|verify} messages.
3233 * @param message ListSubscriptionsRequest message or plain object to encode
3234 * @param [writer] Writer to encode to
3235 * @returns Writer
3236 */
3237 public static encodeDelimited(message: google.pubsub.v1.IListSubscriptionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3238
3239 /**
3240 * Decodes a ListSubscriptionsRequest message from the specified reader or buffer.
3241 * @param reader Reader or buffer to decode from
3242 * @param [length] Message length if known beforehand
3243 * @returns ListSubscriptionsRequest
3244 * @throws {Error} If the payload is not a reader or valid buffer
3245 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3246 */
3247 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ListSubscriptionsRequest;
3248
3249 /**
3250 * Decodes a ListSubscriptionsRequest message from the specified reader or buffer, length delimited.
3251 * @param reader Reader or buffer to decode from
3252 * @returns ListSubscriptionsRequest
3253 * @throws {Error} If the payload is not a reader or valid buffer
3254 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3255 */
3256 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ListSubscriptionsRequest;
3257
3258 /**
3259 * Verifies a ListSubscriptionsRequest message.
3260 * @param message Plain object to verify
3261 * @returns `null` if valid, otherwise the reason why it is not
3262 */
3263 public static verify(message: { [k: string]: any }): (string|null);
3264
3265 /**
3266 * Creates a ListSubscriptionsRequest message from a plain object. Also converts values to their respective internal types.
3267 * @param object Plain object
3268 * @returns ListSubscriptionsRequest
3269 */
3270 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ListSubscriptionsRequest;
3271
3272 /**
3273 * Creates a plain object from a ListSubscriptionsRequest message. Also converts values to other types if specified.
3274 * @param message ListSubscriptionsRequest
3275 * @param [options] Conversion options
3276 * @returns Plain object
3277 */
3278 public static toObject(message: google.pubsub.v1.ListSubscriptionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
3279
3280 /**
3281 * Converts this ListSubscriptionsRequest to JSON.
3282 * @returns JSON object
3283 */
3284 public toJSON(): { [k: string]: any };
3285 }
3286
3287 /** Properties of a ListSubscriptionsResponse. */
3288 interface IListSubscriptionsResponse {
3289
3290 /** ListSubscriptionsResponse subscriptions */
3291 subscriptions?: (google.pubsub.v1.ISubscription[]|null);
3292
3293 /** ListSubscriptionsResponse nextPageToken */
3294 nextPageToken?: (string|null);
3295 }
3296
3297 /** Represents a ListSubscriptionsResponse. */
3298 class ListSubscriptionsResponse implements IListSubscriptionsResponse {
3299
3300 /**
3301 * Constructs a new ListSubscriptionsResponse.
3302 * @param [properties] Properties to set
3303 */
3304 constructor(properties?: google.pubsub.v1.IListSubscriptionsResponse);
3305
3306 /** ListSubscriptionsResponse subscriptions. */
3307 public subscriptions: google.pubsub.v1.ISubscription[];
3308
3309 /** ListSubscriptionsResponse nextPageToken. */
3310 public nextPageToken: string;
3311
3312 /**
3313 * Creates a new ListSubscriptionsResponse instance using the specified properties.
3314 * @param [properties] Properties to set
3315 * @returns ListSubscriptionsResponse instance
3316 */
3317 public static create(properties?: google.pubsub.v1.IListSubscriptionsResponse): google.pubsub.v1.ListSubscriptionsResponse;
3318
3319 /**
3320 * Encodes the specified ListSubscriptionsResponse message. Does not implicitly {@link google.pubsub.v1.ListSubscriptionsResponse.verify|verify} messages.
3321 * @param message ListSubscriptionsResponse message or plain object to encode
3322 * @param [writer] Writer to encode to
3323 * @returns Writer
3324 */
3325 public static encode(message: google.pubsub.v1.IListSubscriptionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3326
3327 /**
3328 * Encodes the specified ListSubscriptionsResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.ListSubscriptionsResponse.verify|verify} messages.
3329 * @param message ListSubscriptionsResponse message or plain object to encode
3330 * @param [writer] Writer to encode to
3331 * @returns Writer
3332 */
3333 public static encodeDelimited(message: google.pubsub.v1.IListSubscriptionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3334
3335 /**
3336 * Decodes a ListSubscriptionsResponse message from the specified reader or buffer.
3337 * @param reader Reader or buffer to decode from
3338 * @param [length] Message length if known beforehand
3339 * @returns ListSubscriptionsResponse
3340 * @throws {Error} If the payload is not a reader or valid buffer
3341 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3342 */
3343 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ListSubscriptionsResponse;
3344
3345 /**
3346 * Decodes a ListSubscriptionsResponse message from the specified reader or buffer, length delimited.
3347 * @param reader Reader or buffer to decode from
3348 * @returns ListSubscriptionsResponse
3349 * @throws {Error} If the payload is not a reader or valid buffer
3350 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3351 */
3352 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ListSubscriptionsResponse;
3353
3354 /**
3355 * Verifies a ListSubscriptionsResponse message.
3356 * @param message Plain object to verify
3357 * @returns `null` if valid, otherwise the reason why it is not
3358 */
3359 public static verify(message: { [k: string]: any }): (string|null);
3360
3361 /**
3362 * Creates a ListSubscriptionsResponse message from a plain object. Also converts values to their respective internal types.
3363 * @param object Plain object
3364 * @returns ListSubscriptionsResponse
3365 */
3366 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ListSubscriptionsResponse;
3367
3368 /**
3369 * Creates a plain object from a ListSubscriptionsResponse message. Also converts values to other types if specified.
3370 * @param message ListSubscriptionsResponse
3371 * @param [options] Conversion options
3372 * @returns Plain object
3373 */
3374 public static toObject(message: google.pubsub.v1.ListSubscriptionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
3375
3376 /**
3377 * Converts this ListSubscriptionsResponse to JSON.
3378 * @returns JSON object
3379 */
3380 public toJSON(): { [k: string]: any };
3381 }
3382
3383 /** Properties of a DeleteSubscriptionRequest. */
3384 interface IDeleteSubscriptionRequest {
3385
3386 /** DeleteSubscriptionRequest subscription */
3387 subscription?: (string|null);
3388 }
3389
3390 /** Represents a DeleteSubscriptionRequest. */
3391 class DeleteSubscriptionRequest implements IDeleteSubscriptionRequest {
3392
3393 /**
3394 * Constructs a new DeleteSubscriptionRequest.
3395 * @param [properties] Properties to set
3396 */
3397 constructor(properties?: google.pubsub.v1.IDeleteSubscriptionRequest);
3398
3399 /** DeleteSubscriptionRequest subscription. */
3400 public subscription: string;
3401
3402 /**
3403 * Creates a new DeleteSubscriptionRequest instance using the specified properties.
3404 * @param [properties] Properties to set
3405 * @returns DeleteSubscriptionRequest instance
3406 */
3407 public static create(properties?: google.pubsub.v1.IDeleteSubscriptionRequest): google.pubsub.v1.DeleteSubscriptionRequest;
3408
3409 /**
3410 * Encodes the specified DeleteSubscriptionRequest message. Does not implicitly {@link google.pubsub.v1.DeleteSubscriptionRequest.verify|verify} messages.
3411 * @param message DeleteSubscriptionRequest message or plain object to encode
3412 * @param [writer] Writer to encode to
3413 * @returns Writer
3414 */
3415 public static encode(message: google.pubsub.v1.IDeleteSubscriptionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3416
3417 /**
3418 * Encodes the specified DeleteSubscriptionRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.DeleteSubscriptionRequest.verify|verify} messages.
3419 * @param message DeleteSubscriptionRequest message or plain object to encode
3420 * @param [writer] Writer to encode to
3421 * @returns Writer
3422 */
3423 public static encodeDelimited(message: google.pubsub.v1.IDeleteSubscriptionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3424
3425 /**
3426 * Decodes a DeleteSubscriptionRequest message from the specified reader or buffer.
3427 * @param reader Reader or buffer to decode from
3428 * @param [length] Message length if known beforehand
3429 * @returns DeleteSubscriptionRequest
3430 * @throws {Error} If the payload is not a reader or valid buffer
3431 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3432 */
3433 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.DeleteSubscriptionRequest;
3434
3435 /**
3436 * Decodes a DeleteSubscriptionRequest message from the specified reader or buffer, length delimited.
3437 * @param reader Reader or buffer to decode from
3438 * @returns DeleteSubscriptionRequest
3439 * @throws {Error} If the payload is not a reader or valid buffer
3440 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3441 */
3442 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.DeleteSubscriptionRequest;
3443
3444 /**
3445 * Verifies a DeleteSubscriptionRequest message.
3446 * @param message Plain object to verify
3447 * @returns `null` if valid, otherwise the reason why it is not
3448 */
3449 public static verify(message: { [k: string]: any }): (string|null);
3450
3451 /**
3452 * Creates a DeleteSubscriptionRequest message from a plain object. Also converts values to their respective internal types.
3453 * @param object Plain object
3454 * @returns DeleteSubscriptionRequest
3455 */
3456 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.DeleteSubscriptionRequest;
3457
3458 /**
3459 * Creates a plain object from a DeleteSubscriptionRequest message. Also converts values to other types if specified.
3460 * @param message DeleteSubscriptionRequest
3461 * @param [options] Conversion options
3462 * @returns Plain object
3463 */
3464 public static toObject(message: google.pubsub.v1.DeleteSubscriptionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
3465
3466 /**
3467 * Converts this DeleteSubscriptionRequest to JSON.
3468 * @returns JSON object
3469 */
3470 public toJSON(): { [k: string]: any };
3471 }
3472
3473 /** Properties of a ModifyPushConfigRequest. */
3474 interface IModifyPushConfigRequest {
3475
3476 /** ModifyPushConfigRequest subscription */
3477 subscription?: (string|null);
3478
3479 /** ModifyPushConfigRequest pushConfig */
3480 pushConfig?: (google.pubsub.v1.IPushConfig|null);
3481 }
3482
3483 /** Represents a ModifyPushConfigRequest. */
3484 class ModifyPushConfigRequest implements IModifyPushConfigRequest {
3485
3486 /**
3487 * Constructs a new ModifyPushConfigRequest.
3488 * @param [properties] Properties to set
3489 */
3490 constructor(properties?: google.pubsub.v1.IModifyPushConfigRequest);
3491
3492 /** ModifyPushConfigRequest subscription. */
3493 public subscription: string;
3494
3495 /** ModifyPushConfigRequest pushConfig. */
3496 public pushConfig?: (google.pubsub.v1.IPushConfig|null);
3497
3498 /**
3499 * Creates a new ModifyPushConfigRequest instance using the specified properties.
3500 * @param [properties] Properties to set
3501 * @returns ModifyPushConfigRequest instance
3502 */
3503 public static create(properties?: google.pubsub.v1.IModifyPushConfigRequest): google.pubsub.v1.ModifyPushConfigRequest;
3504
3505 /**
3506 * Encodes the specified ModifyPushConfigRequest message. Does not implicitly {@link google.pubsub.v1.ModifyPushConfigRequest.verify|verify} messages.
3507 * @param message ModifyPushConfigRequest message or plain object to encode
3508 * @param [writer] Writer to encode to
3509 * @returns Writer
3510 */
3511 public static encode(message: google.pubsub.v1.IModifyPushConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3512
3513 /**
3514 * Encodes the specified ModifyPushConfigRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.ModifyPushConfigRequest.verify|verify} messages.
3515 * @param message ModifyPushConfigRequest message or plain object to encode
3516 * @param [writer] Writer to encode to
3517 * @returns Writer
3518 */
3519 public static encodeDelimited(message: google.pubsub.v1.IModifyPushConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3520
3521 /**
3522 * Decodes a ModifyPushConfigRequest message from the specified reader or buffer.
3523 * @param reader Reader or buffer to decode from
3524 * @param [length] Message length if known beforehand
3525 * @returns ModifyPushConfigRequest
3526 * @throws {Error} If the payload is not a reader or valid buffer
3527 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3528 */
3529 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ModifyPushConfigRequest;
3530
3531 /**
3532 * Decodes a ModifyPushConfigRequest message from the specified reader or buffer, length delimited.
3533 * @param reader Reader or buffer to decode from
3534 * @returns ModifyPushConfigRequest
3535 * @throws {Error} If the payload is not a reader or valid buffer
3536 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3537 */
3538 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ModifyPushConfigRequest;
3539
3540 /**
3541 * Verifies a ModifyPushConfigRequest message.
3542 * @param message Plain object to verify
3543 * @returns `null` if valid, otherwise the reason why it is not
3544 */
3545 public static verify(message: { [k: string]: any }): (string|null);
3546
3547 /**
3548 * Creates a ModifyPushConfigRequest message from a plain object. Also converts values to their respective internal types.
3549 * @param object Plain object
3550 * @returns ModifyPushConfigRequest
3551 */
3552 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ModifyPushConfigRequest;
3553
3554 /**
3555 * Creates a plain object from a ModifyPushConfigRequest message. Also converts values to other types if specified.
3556 * @param message ModifyPushConfigRequest
3557 * @param [options] Conversion options
3558 * @returns Plain object
3559 */
3560 public static toObject(message: google.pubsub.v1.ModifyPushConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
3561
3562 /**
3563 * Converts this ModifyPushConfigRequest to JSON.
3564 * @returns JSON object
3565 */
3566 public toJSON(): { [k: string]: any };
3567 }
3568
3569 /** Properties of a PullRequest. */
3570 interface IPullRequest {
3571
3572 /** PullRequest subscription */
3573 subscription?: (string|null);
3574
3575 /** PullRequest returnImmediately */
3576 returnImmediately?: (boolean|null);
3577
3578 /** PullRequest maxMessages */
3579 maxMessages?: (number|null);
3580 }
3581
3582 /** Represents a PullRequest. */
3583 class PullRequest implements IPullRequest {
3584
3585 /**
3586 * Constructs a new PullRequest.
3587 * @param [properties] Properties to set
3588 */
3589 constructor(properties?: google.pubsub.v1.IPullRequest);
3590
3591 /** PullRequest subscription. */
3592 public subscription: string;
3593
3594 /** PullRequest returnImmediately. */
3595 public returnImmediately: boolean;
3596
3597 /** PullRequest maxMessages. */
3598 public maxMessages: number;
3599
3600 /**
3601 * Creates a new PullRequest instance using the specified properties.
3602 * @param [properties] Properties to set
3603 * @returns PullRequest instance
3604 */
3605 public static create(properties?: google.pubsub.v1.IPullRequest): google.pubsub.v1.PullRequest;
3606
3607 /**
3608 * Encodes the specified PullRequest message. Does not implicitly {@link google.pubsub.v1.PullRequest.verify|verify} messages.
3609 * @param message PullRequest message or plain object to encode
3610 * @param [writer] Writer to encode to
3611 * @returns Writer
3612 */
3613 public static encode(message: google.pubsub.v1.IPullRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3614
3615 /**
3616 * Encodes the specified PullRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.PullRequest.verify|verify} messages.
3617 * @param message PullRequest message or plain object to encode
3618 * @param [writer] Writer to encode to
3619 * @returns Writer
3620 */
3621 public static encodeDelimited(message: google.pubsub.v1.IPullRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3622
3623 /**
3624 * Decodes a PullRequest message from the specified reader or buffer.
3625 * @param reader Reader or buffer to decode from
3626 * @param [length] Message length if known beforehand
3627 * @returns PullRequest
3628 * @throws {Error} If the payload is not a reader or valid buffer
3629 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3630 */
3631 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.PullRequest;
3632
3633 /**
3634 * Decodes a PullRequest message from the specified reader or buffer, length delimited.
3635 * @param reader Reader or buffer to decode from
3636 * @returns PullRequest
3637 * @throws {Error} If the payload is not a reader or valid buffer
3638 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3639 */
3640 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.PullRequest;
3641
3642 /**
3643 * Verifies a PullRequest message.
3644 * @param message Plain object to verify
3645 * @returns `null` if valid, otherwise the reason why it is not
3646 */
3647 public static verify(message: { [k: string]: any }): (string|null);
3648
3649 /**
3650 * Creates a PullRequest message from a plain object. Also converts values to their respective internal types.
3651 * @param object Plain object
3652 * @returns PullRequest
3653 */
3654 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.PullRequest;
3655
3656 /**
3657 * Creates a plain object from a PullRequest message. Also converts values to other types if specified.
3658 * @param message PullRequest
3659 * @param [options] Conversion options
3660 * @returns Plain object
3661 */
3662 public static toObject(message: google.pubsub.v1.PullRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
3663
3664 /**
3665 * Converts this PullRequest to JSON.
3666 * @returns JSON object
3667 */
3668 public toJSON(): { [k: string]: any };
3669 }
3670
3671 /** Properties of a PullResponse. */
3672 interface IPullResponse {
3673
3674 /** PullResponse receivedMessages */
3675 receivedMessages?: (google.pubsub.v1.IReceivedMessage[]|null);
3676 }
3677
3678 /** Represents a PullResponse. */
3679 class PullResponse implements IPullResponse {
3680
3681 /**
3682 * Constructs a new PullResponse.
3683 * @param [properties] Properties to set
3684 */
3685 constructor(properties?: google.pubsub.v1.IPullResponse);
3686
3687 /** PullResponse receivedMessages. */
3688 public receivedMessages: google.pubsub.v1.IReceivedMessage[];
3689
3690 /**
3691 * Creates a new PullResponse instance using the specified properties.
3692 * @param [properties] Properties to set
3693 * @returns PullResponse instance
3694 */
3695 public static create(properties?: google.pubsub.v1.IPullResponse): google.pubsub.v1.PullResponse;
3696
3697 /**
3698 * Encodes the specified PullResponse message. Does not implicitly {@link google.pubsub.v1.PullResponse.verify|verify} messages.
3699 * @param message PullResponse message or plain object to encode
3700 * @param [writer] Writer to encode to
3701 * @returns Writer
3702 */
3703 public static encode(message: google.pubsub.v1.IPullResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3704
3705 /**
3706 * Encodes the specified PullResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.PullResponse.verify|verify} messages.
3707 * @param message PullResponse message or plain object to encode
3708 * @param [writer] Writer to encode to
3709 * @returns Writer
3710 */
3711 public static encodeDelimited(message: google.pubsub.v1.IPullResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3712
3713 /**
3714 * Decodes a PullResponse 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 PullResponse
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.pubsub.v1.PullResponse;
3722
3723 /**
3724 * Decodes a PullResponse message from the specified reader or buffer, length delimited.
3725 * @param reader Reader or buffer to decode from
3726 * @returns PullResponse
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.pubsub.v1.PullResponse;
3731
3732 /**
3733 * Verifies a PullResponse 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 PullResponse message from a plain object. Also converts values to their respective internal types.
3741 * @param object Plain object
3742 * @returns PullResponse
3743 */
3744 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.PullResponse;
3745
3746 /**
3747 * Creates a plain object from a PullResponse message. Also converts values to other types if specified.
3748 * @param message PullResponse
3749 * @param [options] Conversion options
3750 * @returns Plain object
3751 */
3752 public static toObject(message: google.pubsub.v1.PullResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
3753
3754 /**
3755 * Converts this PullResponse to JSON.
3756 * @returns JSON object
3757 */
3758 public toJSON(): { [k: string]: any };
3759 }
3760
3761 /** Properties of a ModifyAckDeadlineRequest. */
3762 interface IModifyAckDeadlineRequest {
3763
3764 /** ModifyAckDeadlineRequest subscription */
3765 subscription?: (string|null);
3766
3767 /** ModifyAckDeadlineRequest ackIds */
3768 ackIds?: (string[]|null);
3769
3770 /** ModifyAckDeadlineRequest ackDeadlineSeconds */
3771 ackDeadlineSeconds?: (number|null);
3772 }
3773
3774 /** Represents a ModifyAckDeadlineRequest. */
3775 class ModifyAckDeadlineRequest implements IModifyAckDeadlineRequest {
3776
3777 /**
3778 * Constructs a new ModifyAckDeadlineRequest.
3779 * @param [properties] Properties to set
3780 */
3781 constructor(properties?: google.pubsub.v1.IModifyAckDeadlineRequest);
3782
3783 /** ModifyAckDeadlineRequest subscription. */
3784 public subscription: string;
3785
3786 /** ModifyAckDeadlineRequest ackIds. */
3787 public ackIds: string[];
3788
3789 /** ModifyAckDeadlineRequest ackDeadlineSeconds. */
3790 public ackDeadlineSeconds: number;
3791
3792 /**
3793 * Creates a new ModifyAckDeadlineRequest instance using the specified properties.
3794 * @param [properties] Properties to set
3795 * @returns ModifyAckDeadlineRequest instance
3796 */
3797 public static create(properties?: google.pubsub.v1.IModifyAckDeadlineRequest): google.pubsub.v1.ModifyAckDeadlineRequest;
3798
3799 /**
3800 * Encodes the specified ModifyAckDeadlineRequest message. Does not implicitly {@link google.pubsub.v1.ModifyAckDeadlineRequest.verify|verify} messages.
3801 * @param message ModifyAckDeadlineRequest message or plain object to encode
3802 * @param [writer] Writer to encode to
3803 * @returns Writer
3804 */
3805 public static encode(message: google.pubsub.v1.IModifyAckDeadlineRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3806
3807 /**
3808 * Encodes the specified ModifyAckDeadlineRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.ModifyAckDeadlineRequest.verify|verify} messages.
3809 * @param message ModifyAckDeadlineRequest message or plain object to encode
3810 * @param [writer] Writer to encode to
3811 * @returns Writer
3812 */
3813 public static encodeDelimited(message: google.pubsub.v1.IModifyAckDeadlineRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3814
3815 /**
3816 * Decodes a ModifyAckDeadlineRequest message from the specified reader or buffer.
3817 * @param reader Reader or buffer to decode from
3818 * @param [length] Message length if known beforehand
3819 * @returns ModifyAckDeadlineRequest
3820 * @throws {Error} If the payload is not a reader or valid buffer
3821 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3822 */
3823 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ModifyAckDeadlineRequest;
3824
3825 /**
3826 * Decodes a ModifyAckDeadlineRequest message from the specified reader or buffer, length delimited.
3827 * @param reader Reader or buffer to decode from
3828 * @returns ModifyAckDeadlineRequest
3829 * @throws {Error} If the payload is not a reader or valid buffer
3830 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3831 */
3832 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ModifyAckDeadlineRequest;
3833
3834 /**
3835 * Verifies a ModifyAckDeadlineRequest message.
3836 * @param message Plain object to verify
3837 * @returns `null` if valid, otherwise the reason why it is not
3838 */
3839 public static verify(message: { [k: string]: any }): (string|null);
3840
3841 /**
3842 * Creates a ModifyAckDeadlineRequest message from a plain object. Also converts values to their respective internal types.
3843 * @param object Plain object
3844 * @returns ModifyAckDeadlineRequest
3845 */
3846 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ModifyAckDeadlineRequest;
3847
3848 /**
3849 * Creates a plain object from a ModifyAckDeadlineRequest message. Also converts values to other types if specified.
3850 * @param message ModifyAckDeadlineRequest
3851 * @param [options] Conversion options
3852 * @returns Plain object
3853 */
3854 public static toObject(message: google.pubsub.v1.ModifyAckDeadlineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
3855
3856 /**
3857 * Converts this ModifyAckDeadlineRequest to JSON.
3858 * @returns JSON object
3859 */
3860 public toJSON(): { [k: string]: any };
3861 }
3862
3863 /** Properties of an AcknowledgeRequest. */
3864 interface IAcknowledgeRequest {
3865
3866 /** AcknowledgeRequest subscription */
3867 subscription?: (string|null);
3868
3869 /** AcknowledgeRequest ackIds */
3870 ackIds?: (string[]|null);
3871 }
3872
3873 /** Represents an AcknowledgeRequest. */
3874 class AcknowledgeRequest implements IAcknowledgeRequest {
3875
3876 /**
3877 * Constructs a new AcknowledgeRequest.
3878 * @param [properties] Properties to set
3879 */
3880 constructor(properties?: google.pubsub.v1.IAcknowledgeRequest);
3881
3882 /** AcknowledgeRequest subscription. */
3883 public subscription: string;
3884
3885 /** AcknowledgeRequest ackIds. */
3886 public ackIds: string[];
3887
3888 /**
3889 * Creates a new AcknowledgeRequest instance using the specified properties.
3890 * @param [properties] Properties to set
3891 * @returns AcknowledgeRequest instance
3892 */
3893 public static create(properties?: google.pubsub.v1.IAcknowledgeRequest): google.pubsub.v1.AcknowledgeRequest;
3894
3895 /**
3896 * Encodes the specified AcknowledgeRequest message. Does not implicitly {@link google.pubsub.v1.AcknowledgeRequest.verify|verify} messages.
3897 * @param message AcknowledgeRequest message or plain object to encode
3898 * @param [writer] Writer to encode to
3899 * @returns Writer
3900 */
3901 public static encode(message: google.pubsub.v1.IAcknowledgeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3902
3903 /**
3904 * Encodes the specified AcknowledgeRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.AcknowledgeRequest.verify|verify} messages.
3905 * @param message AcknowledgeRequest message or plain object to encode
3906 * @param [writer] Writer to encode to
3907 * @returns Writer
3908 */
3909 public static encodeDelimited(message: google.pubsub.v1.IAcknowledgeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3910
3911 /**
3912 * Decodes an AcknowledgeRequest message from the specified reader or buffer.
3913 * @param reader Reader or buffer to decode from
3914 * @param [length] Message length if known beforehand
3915 * @returns AcknowledgeRequest
3916 * @throws {Error} If the payload is not a reader or valid buffer
3917 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3918 */
3919 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.AcknowledgeRequest;
3920
3921 /**
3922 * Decodes an AcknowledgeRequest message from the specified reader or buffer, length delimited.
3923 * @param reader Reader or buffer to decode from
3924 * @returns AcknowledgeRequest
3925 * @throws {Error} If the payload is not a reader or valid buffer
3926 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3927 */
3928 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.AcknowledgeRequest;
3929
3930 /**
3931 * Verifies an AcknowledgeRequest message.
3932 * @param message Plain object to verify
3933 * @returns `null` if valid, otherwise the reason why it is not
3934 */
3935 public static verify(message: { [k: string]: any }): (string|null);
3936
3937 /**
3938 * Creates an AcknowledgeRequest message from a plain object. Also converts values to their respective internal types.
3939 * @param object Plain object
3940 * @returns AcknowledgeRequest
3941 */
3942 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.AcknowledgeRequest;
3943
3944 /**
3945 * Creates a plain object from an AcknowledgeRequest message. Also converts values to other types if specified.
3946 * @param message AcknowledgeRequest
3947 * @param [options] Conversion options
3948 * @returns Plain object
3949 */
3950 public static toObject(message: google.pubsub.v1.AcknowledgeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
3951
3952 /**
3953 * Converts this AcknowledgeRequest to JSON.
3954 * @returns JSON object
3955 */
3956 public toJSON(): { [k: string]: any };
3957 }
3958
3959 /** Properties of a StreamingPullRequest. */
3960 interface IStreamingPullRequest {
3961
3962 /** StreamingPullRequest subscription */
3963 subscription?: (string|null);
3964
3965 /** StreamingPullRequest ackIds */
3966 ackIds?: (string[]|null);
3967
3968 /** StreamingPullRequest modifyDeadlineSeconds */
3969 modifyDeadlineSeconds?: (number[]|null);
3970
3971 /** StreamingPullRequest modifyDeadlineAckIds */
3972 modifyDeadlineAckIds?: (string[]|null);
3973
3974 /** StreamingPullRequest streamAckDeadlineSeconds */
3975 streamAckDeadlineSeconds?: (number|null);
3976
3977 /** StreamingPullRequest clientId */
3978 clientId?: (string|null);
3979
3980 /** StreamingPullRequest maxOutstandingMessages */
3981 maxOutstandingMessages?: (number|Long|string|null);
3982
3983 /** StreamingPullRequest maxOutstandingBytes */
3984 maxOutstandingBytes?: (number|Long|string|null);
3985 }
3986
3987 /** Represents a StreamingPullRequest. */
3988 class StreamingPullRequest implements IStreamingPullRequest {
3989
3990 /**
3991 * Constructs a new StreamingPullRequest.
3992 * @param [properties] Properties to set
3993 */
3994 constructor(properties?: google.pubsub.v1.IStreamingPullRequest);
3995
3996 /** StreamingPullRequest subscription. */
3997 public subscription: string;
3998
3999 /** StreamingPullRequest ackIds. */
4000 public ackIds: string[];
4001
4002 /** StreamingPullRequest modifyDeadlineSeconds. */
4003 public modifyDeadlineSeconds: number[];
4004
4005 /** StreamingPullRequest modifyDeadlineAckIds. */
4006 public modifyDeadlineAckIds: string[];
4007
4008 /** StreamingPullRequest streamAckDeadlineSeconds. */
4009 public streamAckDeadlineSeconds: number;
4010
4011 /** StreamingPullRequest clientId. */
4012 public clientId: string;
4013
4014 /** StreamingPullRequest maxOutstandingMessages. */
4015 public maxOutstandingMessages: (number|Long|string);
4016
4017 /** StreamingPullRequest maxOutstandingBytes. */
4018 public maxOutstandingBytes: (number|Long|string);
4019
4020 /**
4021 * Creates a new StreamingPullRequest instance using the specified properties.
4022 * @param [properties] Properties to set
4023 * @returns StreamingPullRequest instance
4024 */
4025 public static create(properties?: google.pubsub.v1.IStreamingPullRequest): google.pubsub.v1.StreamingPullRequest;
4026
4027 /**
4028 * Encodes the specified StreamingPullRequest message. Does not implicitly {@link google.pubsub.v1.StreamingPullRequest.verify|verify} messages.
4029 * @param message StreamingPullRequest message or plain object to encode
4030 * @param [writer] Writer to encode to
4031 * @returns Writer
4032 */
4033 public static encode(message: google.pubsub.v1.IStreamingPullRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4034
4035 /**
4036 * Encodes the specified StreamingPullRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.StreamingPullRequest.verify|verify} messages.
4037 * @param message StreamingPullRequest message or plain object to encode
4038 * @param [writer] Writer to encode to
4039 * @returns Writer
4040 */
4041 public static encodeDelimited(message: google.pubsub.v1.IStreamingPullRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4042
4043 /**
4044 * Decodes a StreamingPullRequest message from the specified reader or buffer.
4045 * @param reader Reader or buffer to decode from
4046 * @param [length] Message length if known beforehand
4047 * @returns StreamingPullRequest
4048 * @throws {Error} If the payload is not a reader or valid buffer
4049 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4050 */
4051 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.StreamingPullRequest;
4052
4053 /**
4054 * Decodes a StreamingPullRequest message from the specified reader or buffer, length delimited.
4055 * @param reader Reader or buffer to decode from
4056 * @returns StreamingPullRequest
4057 * @throws {Error} If the payload is not a reader or valid buffer
4058 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4059 */
4060 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.StreamingPullRequest;
4061
4062 /**
4063 * Verifies a StreamingPullRequest message.
4064 * @param message Plain object to verify
4065 * @returns `null` if valid, otherwise the reason why it is not
4066 */
4067 public static verify(message: { [k: string]: any }): (string|null);
4068
4069 /**
4070 * Creates a StreamingPullRequest message from a plain object. Also converts values to their respective internal types.
4071 * @param object Plain object
4072 * @returns StreamingPullRequest
4073 */
4074 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.StreamingPullRequest;
4075
4076 /**
4077 * Creates a plain object from a StreamingPullRequest message. Also converts values to other types if specified.
4078 * @param message StreamingPullRequest
4079 * @param [options] Conversion options
4080 * @returns Plain object
4081 */
4082 public static toObject(message: google.pubsub.v1.StreamingPullRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
4083
4084 /**
4085 * Converts this StreamingPullRequest to JSON.
4086 * @returns JSON object
4087 */
4088 public toJSON(): { [k: string]: any };
4089 }
4090
4091 /** Properties of a StreamingPullResponse. */
4092 interface IStreamingPullResponse {
4093
4094 /** StreamingPullResponse receivedMessages */
4095 receivedMessages?: (google.pubsub.v1.IReceivedMessage[]|null);
4096 }
4097
4098 /** Represents a StreamingPullResponse. */
4099 class StreamingPullResponse implements IStreamingPullResponse {
4100
4101 /**
4102 * Constructs a new StreamingPullResponse.
4103 * @param [properties] Properties to set
4104 */
4105 constructor(properties?: google.pubsub.v1.IStreamingPullResponse);
4106
4107 /** StreamingPullResponse receivedMessages. */
4108 public receivedMessages: google.pubsub.v1.IReceivedMessage[];
4109
4110 /**
4111 * Creates a new StreamingPullResponse instance using the specified properties.
4112 * @param [properties] Properties to set
4113 * @returns StreamingPullResponse instance
4114 */
4115 public static create(properties?: google.pubsub.v1.IStreamingPullResponse): google.pubsub.v1.StreamingPullResponse;
4116
4117 /**
4118 * Encodes the specified StreamingPullResponse message. Does not implicitly {@link google.pubsub.v1.StreamingPullResponse.verify|verify} messages.
4119 * @param message StreamingPullResponse message or plain object to encode
4120 * @param [writer] Writer to encode to
4121 * @returns Writer
4122 */
4123 public static encode(message: google.pubsub.v1.IStreamingPullResponse, writer?: $protobuf.Writer): $protobuf.Writer;
4124
4125 /**
4126 * Encodes the specified StreamingPullResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.StreamingPullResponse.verify|verify} messages.
4127 * @param message StreamingPullResponse message or plain object to encode
4128 * @param [writer] Writer to encode to
4129 * @returns Writer
4130 */
4131 public static encodeDelimited(message: google.pubsub.v1.IStreamingPullResponse, writer?: $protobuf.Writer): $protobuf.Writer;
4132
4133 /**
4134 * Decodes a StreamingPullResponse message from the specified reader or buffer.
4135 * @param reader Reader or buffer to decode from
4136 * @param [length] Message length if known beforehand
4137 * @returns StreamingPullResponse
4138 * @throws {Error} If the payload is not a reader or valid buffer
4139 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4140 */
4141 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.StreamingPullResponse;
4142
4143 /**
4144 * Decodes a StreamingPullResponse message from the specified reader or buffer, length delimited.
4145 * @param reader Reader or buffer to decode from
4146 * @returns StreamingPullResponse
4147 * @throws {Error} If the payload is not a reader or valid buffer
4148 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4149 */
4150 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.StreamingPullResponse;
4151
4152 /**
4153 * Verifies a StreamingPullResponse message.
4154 * @param message Plain object to verify
4155 * @returns `null` if valid, otherwise the reason why it is not
4156 */
4157 public static verify(message: { [k: string]: any }): (string|null);
4158
4159 /**
4160 * Creates a StreamingPullResponse message from a plain object. Also converts values to their respective internal types.
4161 * @param object Plain object
4162 * @returns StreamingPullResponse
4163 */
4164 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.StreamingPullResponse;
4165
4166 /**
4167 * Creates a plain object from a StreamingPullResponse message. Also converts values to other types if specified.
4168 * @param message StreamingPullResponse
4169 * @param [options] Conversion options
4170 * @returns Plain object
4171 */
4172 public static toObject(message: google.pubsub.v1.StreamingPullResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
4173
4174 /**
4175 * Converts this StreamingPullResponse to JSON.
4176 * @returns JSON object
4177 */
4178 public toJSON(): { [k: string]: any };
4179 }
4180
4181 /** Properties of a CreateSnapshotRequest. */
4182 interface ICreateSnapshotRequest {
4183
4184 /** CreateSnapshotRequest name */
4185 name?: (string|null);
4186
4187 /** CreateSnapshotRequest subscription */
4188 subscription?: (string|null);
4189
4190 /** CreateSnapshotRequest labels */
4191 labels?: ({ [k: string]: string }|null);
4192 }
4193
4194 /** Represents a CreateSnapshotRequest. */
4195 class CreateSnapshotRequest implements ICreateSnapshotRequest {
4196
4197 /**
4198 * Constructs a new CreateSnapshotRequest.
4199 * @param [properties] Properties to set
4200 */
4201 constructor(properties?: google.pubsub.v1.ICreateSnapshotRequest);
4202
4203 /** CreateSnapshotRequest name. */
4204 public name: string;
4205
4206 /** CreateSnapshotRequest subscription. */
4207 public subscription: string;
4208
4209 /** CreateSnapshotRequest labels. */
4210 public labels: { [k: string]: string };
4211
4212 /**
4213 * Creates a new CreateSnapshotRequest instance using the specified properties.
4214 * @param [properties] Properties to set
4215 * @returns CreateSnapshotRequest instance
4216 */
4217 public static create(properties?: google.pubsub.v1.ICreateSnapshotRequest): google.pubsub.v1.CreateSnapshotRequest;
4218
4219 /**
4220 * Encodes the specified CreateSnapshotRequest message. Does not implicitly {@link google.pubsub.v1.CreateSnapshotRequest.verify|verify} messages.
4221 * @param message CreateSnapshotRequest message or plain object to encode
4222 * @param [writer] Writer to encode to
4223 * @returns Writer
4224 */
4225 public static encode(message: google.pubsub.v1.ICreateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4226
4227 /**
4228 * Encodes the specified CreateSnapshotRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.CreateSnapshotRequest.verify|verify} messages.
4229 * @param message CreateSnapshotRequest message or plain object to encode
4230 * @param [writer] Writer to encode to
4231 * @returns Writer
4232 */
4233 public static encodeDelimited(message: google.pubsub.v1.ICreateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4234
4235 /**
4236 * Decodes a CreateSnapshotRequest message from the specified reader or buffer.
4237 * @param reader Reader or buffer to decode from
4238 * @param [length] Message length if known beforehand
4239 * @returns CreateSnapshotRequest
4240 * @throws {Error} If the payload is not a reader or valid buffer
4241 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4242 */
4243 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.CreateSnapshotRequest;
4244
4245 /**
4246 * Decodes a CreateSnapshotRequest message from the specified reader or buffer, length delimited.
4247 * @param reader Reader or buffer to decode from
4248 * @returns CreateSnapshotRequest
4249 * @throws {Error} If the payload is not a reader or valid buffer
4250 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4251 */
4252 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.CreateSnapshotRequest;
4253
4254 /**
4255 * Verifies a CreateSnapshotRequest message.
4256 * @param message Plain object to verify
4257 * @returns `null` if valid, otherwise the reason why it is not
4258 */
4259 public static verify(message: { [k: string]: any }): (string|null);
4260
4261 /**
4262 * Creates a CreateSnapshotRequest message from a plain object. Also converts values to their respective internal types.
4263 * @param object Plain object
4264 * @returns CreateSnapshotRequest
4265 */
4266 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.CreateSnapshotRequest;
4267
4268 /**
4269 * Creates a plain object from a CreateSnapshotRequest message. Also converts values to other types if specified.
4270 * @param message CreateSnapshotRequest
4271 * @param [options] Conversion options
4272 * @returns Plain object
4273 */
4274 public static toObject(message: google.pubsub.v1.CreateSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
4275
4276 /**
4277 * Converts this CreateSnapshotRequest to JSON.
4278 * @returns JSON object
4279 */
4280 public toJSON(): { [k: string]: any };
4281 }
4282
4283 /** Properties of an UpdateSnapshotRequest. */
4284 interface IUpdateSnapshotRequest {
4285
4286 /** UpdateSnapshotRequest snapshot */
4287 snapshot?: (google.pubsub.v1.ISnapshot|null);
4288
4289 /** UpdateSnapshotRequest updateMask */
4290 updateMask?: (google.protobuf.IFieldMask|null);
4291 }
4292
4293 /** Represents an UpdateSnapshotRequest. */
4294 class UpdateSnapshotRequest implements IUpdateSnapshotRequest {
4295
4296 /**
4297 * Constructs a new UpdateSnapshotRequest.
4298 * @param [properties] Properties to set
4299 */
4300 constructor(properties?: google.pubsub.v1.IUpdateSnapshotRequest);
4301
4302 /** UpdateSnapshotRequest snapshot. */
4303 public snapshot?: (google.pubsub.v1.ISnapshot|null);
4304
4305 /** UpdateSnapshotRequest updateMask. */
4306 public updateMask?: (google.protobuf.IFieldMask|null);
4307
4308 /**
4309 * Creates a new UpdateSnapshotRequest instance using the specified properties.
4310 * @param [properties] Properties to set
4311 * @returns UpdateSnapshotRequest instance
4312 */
4313 public static create(properties?: google.pubsub.v1.IUpdateSnapshotRequest): google.pubsub.v1.UpdateSnapshotRequest;
4314
4315 /**
4316 * Encodes the specified UpdateSnapshotRequest message. Does not implicitly {@link google.pubsub.v1.UpdateSnapshotRequest.verify|verify} messages.
4317 * @param message UpdateSnapshotRequest message or plain object to encode
4318 * @param [writer] Writer to encode to
4319 * @returns Writer
4320 */
4321 public static encode(message: google.pubsub.v1.IUpdateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4322
4323 /**
4324 * Encodes the specified UpdateSnapshotRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.UpdateSnapshotRequest.verify|verify} messages.
4325 * @param message UpdateSnapshotRequest message or plain object to encode
4326 * @param [writer] Writer to encode to
4327 * @returns Writer
4328 */
4329 public static encodeDelimited(message: google.pubsub.v1.IUpdateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4330
4331 /**
4332 * Decodes an UpdateSnapshotRequest message from the specified reader or buffer.
4333 * @param reader Reader or buffer to decode from
4334 * @param [length] Message length if known beforehand
4335 * @returns UpdateSnapshotRequest
4336 * @throws {Error} If the payload is not a reader or valid buffer
4337 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4338 */
4339 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.UpdateSnapshotRequest;
4340
4341 /**
4342 * Decodes an UpdateSnapshotRequest message from the specified reader or buffer, length delimited.
4343 * @param reader Reader or buffer to decode from
4344 * @returns UpdateSnapshotRequest
4345 * @throws {Error} If the payload is not a reader or valid buffer
4346 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4347 */
4348 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.UpdateSnapshotRequest;
4349
4350 /**
4351 * Verifies an UpdateSnapshotRequest message.
4352 * @param message Plain object to verify
4353 * @returns `null` if valid, otherwise the reason why it is not
4354 */
4355 public static verify(message: { [k: string]: any }): (string|null);
4356
4357 /**
4358 * Creates an UpdateSnapshotRequest message from a plain object. Also converts values to their respective internal types.
4359 * @param object Plain object
4360 * @returns UpdateSnapshotRequest
4361 */
4362 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.UpdateSnapshotRequest;
4363
4364 /**
4365 * Creates a plain object from an UpdateSnapshotRequest message. Also converts values to other types if specified.
4366 * @param message UpdateSnapshotRequest
4367 * @param [options] Conversion options
4368 * @returns Plain object
4369 */
4370 public static toObject(message: google.pubsub.v1.UpdateSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
4371
4372 /**
4373 * Converts this UpdateSnapshotRequest to JSON.
4374 * @returns JSON object
4375 */
4376 public toJSON(): { [k: string]: any };
4377 }
4378
4379 /** Properties of a Snapshot. */
4380 interface ISnapshot {
4381
4382 /** Snapshot name */
4383 name?: (string|null);
4384
4385 /** Snapshot topic */
4386 topic?: (string|null);
4387
4388 /** Snapshot expireTime */
4389 expireTime?: (google.protobuf.ITimestamp|null);
4390
4391 /** Snapshot labels */
4392 labels?: ({ [k: string]: string }|null);
4393 }
4394
4395 /** Represents a Snapshot. */
4396 class Snapshot implements ISnapshot {
4397
4398 /**
4399 * Constructs a new Snapshot.
4400 * @param [properties] Properties to set
4401 */
4402 constructor(properties?: google.pubsub.v1.ISnapshot);
4403
4404 /** Snapshot name. */
4405 public name: string;
4406
4407 /** Snapshot topic. */
4408 public topic: string;
4409
4410 /** Snapshot expireTime. */
4411 public expireTime?: (google.protobuf.ITimestamp|null);
4412
4413 /** Snapshot labels. */
4414 public labels: { [k: string]: string };
4415
4416 /**
4417 * Creates a new Snapshot instance using the specified properties.
4418 * @param [properties] Properties to set
4419 * @returns Snapshot instance
4420 */
4421 public static create(properties?: google.pubsub.v1.ISnapshot): google.pubsub.v1.Snapshot;
4422
4423 /**
4424 * Encodes the specified Snapshot message. Does not implicitly {@link google.pubsub.v1.Snapshot.verify|verify} messages.
4425 * @param message Snapshot message or plain object to encode
4426 * @param [writer] Writer to encode to
4427 * @returns Writer
4428 */
4429 public static encode(message: google.pubsub.v1.ISnapshot, writer?: $protobuf.Writer): $protobuf.Writer;
4430
4431 /**
4432 * Encodes the specified Snapshot message, length delimited. Does not implicitly {@link google.pubsub.v1.Snapshot.verify|verify} messages.
4433 * @param message Snapshot message or plain object to encode
4434 * @param [writer] Writer to encode to
4435 * @returns Writer
4436 */
4437 public static encodeDelimited(message: google.pubsub.v1.ISnapshot, writer?: $protobuf.Writer): $protobuf.Writer;
4438
4439 /**
4440 * Decodes a Snapshot message from the specified reader or buffer.
4441 * @param reader Reader or buffer to decode from
4442 * @param [length] Message length if known beforehand
4443 * @returns Snapshot
4444 * @throws {Error} If the payload is not a reader or valid buffer
4445 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4446 */
4447 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.Snapshot;
4448
4449 /**
4450 * Decodes a Snapshot message from the specified reader or buffer, length delimited.
4451 * @param reader Reader or buffer to decode from
4452 * @returns Snapshot
4453 * @throws {Error} If the payload is not a reader or valid buffer
4454 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4455 */
4456 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.Snapshot;
4457
4458 /**
4459 * Verifies a Snapshot message.
4460 * @param message Plain object to verify
4461 * @returns `null` if valid, otherwise the reason why it is not
4462 */
4463 public static verify(message: { [k: string]: any }): (string|null);
4464
4465 /**
4466 * Creates a Snapshot message from a plain object. Also converts values to their respective internal types.
4467 * @param object Plain object
4468 * @returns Snapshot
4469 */
4470 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.Snapshot;
4471
4472 /**
4473 * Creates a plain object from a Snapshot message. Also converts values to other types if specified.
4474 * @param message Snapshot
4475 * @param [options] Conversion options
4476 * @returns Plain object
4477 */
4478 public static toObject(message: google.pubsub.v1.Snapshot, options?: $protobuf.IConversionOptions): { [k: string]: any };
4479
4480 /**
4481 * Converts this Snapshot to JSON.
4482 * @returns JSON object
4483 */
4484 public toJSON(): { [k: string]: any };
4485 }
4486
4487 /** Properties of a GetSnapshotRequest. */
4488 interface IGetSnapshotRequest {
4489
4490 /** GetSnapshotRequest snapshot */
4491 snapshot?: (string|null);
4492 }
4493
4494 /** Represents a GetSnapshotRequest. */
4495 class GetSnapshotRequest implements IGetSnapshotRequest {
4496
4497 /**
4498 * Constructs a new GetSnapshotRequest.
4499 * @param [properties] Properties to set
4500 */
4501 constructor(properties?: google.pubsub.v1.IGetSnapshotRequest);
4502
4503 /** GetSnapshotRequest snapshot. */
4504 public snapshot: string;
4505
4506 /**
4507 * Creates a new GetSnapshotRequest instance using the specified properties.
4508 * @param [properties] Properties to set
4509 * @returns GetSnapshotRequest instance
4510 */
4511 public static create(properties?: google.pubsub.v1.IGetSnapshotRequest): google.pubsub.v1.GetSnapshotRequest;
4512
4513 /**
4514 * Encodes the specified GetSnapshotRequest message. Does not implicitly {@link google.pubsub.v1.GetSnapshotRequest.verify|verify} messages.
4515 * @param message GetSnapshotRequest message or plain object to encode
4516 * @param [writer] Writer to encode to
4517 * @returns Writer
4518 */
4519 public static encode(message: google.pubsub.v1.IGetSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4520
4521 /**
4522 * Encodes the specified GetSnapshotRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.GetSnapshotRequest.verify|verify} messages.
4523 * @param message GetSnapshotRequest message or plain object to encode
4524 * @param [writer] Writer to encode to
4525 * @returns Writer
4526 */
4527 public static encodeDelimited(message: google.pubsub.v1.IGetSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4528
4529 /**
4530 * Decodes a GetSnapshotRequest message from the specified reader or buffer.
4531 * @param reader Reader or buffer to decode from
4532 * @param [length] Message length if known beforehand
4533 * @returns GetSnapshotRequest
4534 * @throws {Error} If the payload is not a reader or valid buffer
4535 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4536 */
4537 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.GetSnapshotRequest;
4538
4539 /**
4540 * Decodes a GetSnapshotRequest message from the specified reader or buffer, length delimited.
4541 * @param reader Reader or buffer to decode from
4542 * @returns GetSnapshotRequest
4543 * @throws {Error} If the payload is not a reader or valid buffer
4544 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4545 */
4546 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.GetSnapshotRequest;
4547
4548 /**
4549 * Verifies a GetSnapshotRequest message.
4550 * @param message Plain object to verify
4551 * @returns `null` if valid, otherwise the reason why it is not
4552 */
4553 public static verify(message: { [k: string]: any }): (string|null);
4554
4555 /**
4556 * Creates a GetSnapshotRequest message from a plain object. Also converts values to their respective internal types.
4557 * @param object Plain object
4558 * @returns GetSnapshotRequest
4559 */
4560 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.GetSnapshotRequest;
4561
4562 /**
4563 * Creates a plain object from a GetSnapshotRequest message. Also converts values to other types if specified.
4564 * @param message GetSnapshotRequest
4565 * @param [options] Conversion options
4566 * @returns Plain object
4567 */
4568 public static toObject(message: google.pubsub.v1.GetSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
4569
4570 /**
4571 * Converts this GetSnapshotRequest to JSON.
4572 * @returns JSON object
4573 */
4574 public toJSON(): { [k: string]: any };
4575 }
4576
4577 /** Properties of a ListSnapshotsRequest. */
4578 interface IListSnapshotsRequest {
4579
4580 /** ListSnapshotsRequest project */
4581 project?: (string|null);
4582
4583 /** ListSnapshotsRequest pageSize */
4584 pageSize?: (number|null);
4585
4586 /** ListSnapshotsRequest pageToken */
4587 pageToken?: (string|null);
4588 }
4589
4590 /** Represents a ListSnapshotsRequest. */
4591 class ListSnapshotsRequest implements IListSnapshotsRequest {
4592
4593 /**
4594 * Constructs a new ListSnapshotsRequest.
4595 * @param [properties] Properties to set
4596 */
4597 constructor(properties?: google.pubsub.v1.IListSnapshotsRequest);
4598
4599 /** ListSnapshotsRequest project. */
4600 public project: string;
4601
4602 /** ListSnapshotsRequest pageSize. */
4603 public pageSize: number;
4604
4605 /** ListSnapshotsRequest pageToken. */
4606 public pageToken: string;
4607
4608 /**
4609 * Creates a new ListSnapshotsRequest instance using the specified properties.
4610 * @param [properties] Properties to set
4611 * @returns ListSnapshotsRequest instance
4612 */
4613 public static create(properties?: google.pubsub.v1.IListSnapshotsRequest): google.pubsub.v1.ListSnapshotsRequest;
4614
4615 /**
4616 * Encodes the specified ListSnapshotsRequest message. Does not implicitly {@link google.pubsub.v1.ListSnapshotsRequest.verify|verify} messages.
4617 * @param message ListSnapshotsRequest message or plain object to encode
4618 * @param [writer] Writer to encode to
4619 * @returns Writer
4620 */
4621 public static encode(message: google.pubsub.v1.IListSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4622
4623 /**
4624 * Encodes the specified ListSnapshotsRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.ListSnapshotsRequest.verify|verify} messages.
4625 * @param message ListSnapshotsRequest message or plain object to encode
4626 * @param [writer] Writer to encode to
4627 * @returns Writer
4628 */
4629 public static encodeDelimited(message: google.pubsub.v1.IListSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4630
4631 /**
4632 * Decodes a ListSnapshotsRequest message from the specified reader or buffer.
4633 * @param reader Reader or buffer to decode from
4634 * @param [length] Message length if known beforehand
4635 * @returns ListSnapshotsRequest
4636 * @throws {Error} If the payload is not a reader or valid buffer
4637 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4638 */
4639 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ListSnapshotsRequest;
4640
4641 /**
4642 * Decodes a ListSnapshotsRequest message from the specified reader or buffer, length delimited.
4643 * @param reader Reader or buffer to decode from
4644 * @returns ListSnapshotsRequest
4645 * @throws {Error} If the payload is not a reader or valid buffer
4646 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4647 */
4648 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ListSnapshotsRequest;
4649
4650 /**
4651 * Verifies a ListSnapshotsRequest message.
4652 * @param message Plain object to verify
4653 * @returns `null` if valid, otherwise the reason why it is not
4654 */
4655 public static verify(message: { [k: string]: any }): (string|null);
4656
4657 /**
4658 * Creates a ListSnapshotsRequest message from a plain object. Also converts values to their respective internal types.
4659 * @param object Plain object
4660 * @returns ListSnapshotsRequest
4661 */
4662 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ListSnapshotsRequest;
4663
4664 /**
4665 * Creates a plain object from a ListSnapshotsRequest message. Also converts values to other types if specified.
4666 * @param message ListSnapshotsRequest
4667 * @param [options] Conversion options
4668 * @returns Plain object
4669 */
4670 public static toObject(message: google.pubsub.v1.ListSnapshotsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
4671
4672 /**
4673 * Converts this ListSnapshotsRequest to JSON.
4674 * @returns JSON object
4675 */
4676 public toJSON(): { [k: string]: any };
4677 }
4678
4679 /** Properties of a ListSnapshotsResponse. */
4680 interface IListSnapshotsResponse {
4681
4682 /** ListSnapshotsResponse snapshots */
4683 snapshots?: (google.pubsub.v1.ISnapshot[]|null);
4684
4685 /** ListSnapshotsResponse nextPageToken */
4686 nextPageToken?: (string|null);
4687 }
4688
4689 /** Represents a ListSnapshotsResponse. */
4690 class ListSnapshotsResponse implements IListSnapshotsResponse {
4691
4692 /**
4693 * Constructs a new ListSnapshotsResponse.
4694 * @param [properties] Properties to set
4695 */
4696 constructor(properties?: google.pubsub.v1.IListSnapshotsResponse);
4697
4698 /** ListSnapshotsResponse snapshots. */
4699 public snapshots: google.pubsub.v1.ISnapshot[];
4700
4701 /** ListSnapshotsResponse nextPageToken. */
4702 public nextPageToken: string;
4703
4704 /**
4705 * Creates a new ListSnapshotsResponse instance using the specified properties.
4706 * @param [properties] Properties to set
4707 * @returns ListSnapshotsResponse instance
4708 */
4709 public static create(properties?: google.pubsub.v1.IListSnapshotsResponse): google.pubsub.v1.ListSnapshotsResponse;
4710
4711 /**
4712 * Encodes the specified ListSnapshotsResponse message. Does not implicitly {@link google.pubsub.v1.ListSnapshotsResponse.verify|verify} messages.
4713 * @param message ListSnapshotsResponse message or plain object to encode
4714 * @param [writer] Writer to encode to
4715 * @returns Writer
4716 */
4717 public static encode(message: google.pubsub.v1.IListSnapshotsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
4718
4719 /**
4720 * Encodes the specified ListSnapshotsResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.ListSnapshotsResponse.verify|verify} messages.
4721 * @param message ListSnapshotsResponse message or plain object to encode
4722 * @param [writer] Writer to encode to
4723 * @returns Writer
4724 */
4725 public static encodeDelimited(message: google.pubsub.v1.IListSnapshotsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
4726
4727 /**
4728 * Decodes a ListSnapshotsResponse message from the specified reader or buffer.
4729 * @param reader Reader or buffer to decode from
4730 * @param [length] Message length if known beforehand
4731 * @returns ListSnapshotsResponse
4732 * @throws {Error} If the payload is not a reader or valid buffer
4733 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4734 */
4735 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ListSnapshotsResponse;
4736
4737 /**
4738 * Decodes a ListSnapshotsResponse message from the specified reader or buffer, length delimited.
4739 * @param reader Reader or buffer to decode from
4740 * @returns ListSnapshotsResponse
4741 * @throws {Error} If the payload is not a reader or valid buffer
4742 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4743 */
4744 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ListSnapshotsResponse;
4745
4746 /**
4747 * Verifies a ListSnapshotsResponse message.
4748 * @param message Plain object to verify
4749 * @returns `null` if valid, otherwise the reason why it is not
4750 */
4751 public static verify(message: { [k: string]: any }): (string|null);
4752
4753 /**
4754 * Creates a ListSnapshotsResponse message from a plain object. Also converts values to their respective internal types.
4755 * @param object Plain object
4756 * @returns ListSnapshotsResponse
4757 */
4758 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ListSnapshotsResponse;
4759
4760 /**
4761 * Creates a plain object from a ListSnapshotsResponse message. Also converts values to other types if specified.
4762 * @param message ListSnapshotsResponse
4763 * @param [options] Conversion options
4764 * @returns Plain object
4765 */
4766 public static toObject(message: google.pubsub.v1.ListSnapshotsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
4767
4768 /**
4769 * Converts this ListSnapshotsResponse to JSON.
4770 * @returns JSON object
4771 */
4772 public toJSON(): { [k: string]: any };
4773 }
4774
4775 /** Properties of a DeleteSnapshotRequest. */
4776 interface IDeleteSnapshotRequest {
4777
4778 /** DeleteSnapshotRequest snapshot */
4779 snapshot?: (string|null);
4780 }
4781
4782 /** Represents a DeleteSnapshotRequest. */
4783 class DeleteSnapshotRequest implements IDeleteSnapshotRequest {
4784
4785 /**
4786 * Constructs a new DeleteSnapshotRequest.
4787 * @param [properties] Properties to set
4788 */
4789 constructor(properties?: google.pubsub.v1.IDeleteSnapshotRequest);
4790
4791 /** DeleteSnapshotRequest snapshot. */
4792 public snapshot: string;
4793
4794 /**
4795 * Creates a new DeleteSnapshotRequest instance using the specified properties.
4796 * @param [properties] Properties to set
4797 * @returns DeleteSnapshotRequest instance
4798 */
4799 public static create(properties?: google.pubsub.v1.IDeleteSnapshotRequest): google.pubsub.v1.DeleteSnapshotRequest;
4800
4801 /**
4802 * Encodes the specified DeleteSnapshotRequest message. Does not implicitly {@link google.pubsub.v1.DeleteSnapshotRequest.verify|verify} messages.
4803 * @param message DeleteSnapshotRequest message or plain object to encode
4804 * @param [writer] Writer to encode to
4805 * @returns Writer
4806 */
4807 public static encode(message: google.pubsub.v1.IDeleteSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4808
4809 /**
4810 * Encodes the specified DeleteSnapshotRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.DeleteSnapshotRequest.verify|verify} messages.
4811 * @param message DeleteSnapshotRequest message or plain object to encode
4812 * @param [writer] Writer to encode to
4813 * @returns Writer
4814 */
4815 public static encodeDelimited(message: google.pubsub.v1.IDeleteSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4816
4817 /**
4818 * Decodes a DeleteSnapshotRequest message from the specified reader or buffer.
4819 * @param reader Reader or buffer to decode from
4820 * @param [length] Message length if known beforehand
4821 * @returns DeleteSnapshotRequest
4822 * @throws {Error} If the payload is not a reader or valid buffer
4823 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4824 */
4825 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.DeleteSnapshotRequest;
4826
4827 /**
4828 * Decodes a DeleteSnapshotRequest message from the specified reader or buffer, length delimited.
4829 * @param reader Reader or buffer to decode from
4830 * @returns DeleteSnapshotRequest
4831 * @throws {Error} If the payload is not a reader or valid buffer
4832 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4833 */
4834 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.DeleteSnapshotRequest;
4835
4836 /**
4837 * Verifies a DeleteSnapshotRequest message.
4838 * @param message Plain object to verify
4839 * @returns `null` if valid, otherwise the reason why it is not
4840 */
4841 public static verify(message: { [k: string]: any }): (string|null);
4842
4843 /**
4844 * Creates a DeleteSnapshotRequest message from a plain object. Also converts values to their respective internal types.
4845 * @param object Plain object
4846 * @returns DeleteSnapshotRequest
4847 */
4848 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.DeleteSnapshotRequest;
4849
4850 /**
4851 * Creates a plain object from a DeleteSnapshotRequest message. Also converts values to other types if specified.
4852 * @param message DeleteSnapshotRequest
4853 * @param [options] Conversion options
4854 * @returns Plain object
4855 */
4856 public static toObject(message: google.pubsub.v1.DeleteSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
4857
4858 /**
4859 * Converts this DeleteSnapshotRequest to JSON.
4860 * @returns JSON object
4861 */
4862 public toJSON(): { [k: string]: any };
4863 }
4864
4865 /** Properties of a SeekRequest. */
4866 interface ISeekRequest {
4867
4868 /** SeekRequest subscription */
4869 subscription?: (string|null);
4870
4871 /** SeekRequest time */
4872 time?: (google.protobuf.ITimestamp|null);
4873
4874 /** SeekRequest snapshot */
4875 snapshot?: (string|null);
4876 }
4877
4878 /** Represents a SeekRequest. */
4879 class SeekRequest implements ISeekRequest {
4880
4881 /**
4882 * Constructs a new SeekRequest.
4883 * @param [properties] Properties to set
4884 */
4885 constructor(properties?: google.pubsub.v1.ISeekRequest);
4886
4887 /** SeekRequest subscription. */
4888 public subscription: string;
4889
4890 /** SeekRequest time. */
4891 public time?: (google.protobuf.ITimestamp|null);
4892
4893 /** SeekRequest snapshot. */
4894 public snapshot?: (string|null);
4895
4896 /** SeekRequest target. */
4897 public target?: ("time"|"snapshot");
4898
4899 /**
4900 * Creates a new SeekRequest instance using the specified properties.
4901 * @param [properties] Properties to set
4902 * @returns SeekRequest instance
4903 */
4904 public static create(properties?: google.pubsub.v1.ISeekRequest): google.pubsub.v1.SeekRequest;
4905
4906 /**
4907 * Encodes the specified SeekRequest message. Does not implicitly {@link google.pubsub.v1.SeekRequest.verify|verify} messages.
4908 * @param message SeekRequest message or plain object to encode
4909 * @param [writer] Writer to encode to
4910 * @returns Writer
4911 */
4912 public static encode(message: google.pubsub.v1.ISeekRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4913
4914 /**
4915 * Encodes the specified SeekRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.SeekRequest.verify|verify} messages.
4916 * @param message SeekRequest message or plain object to encode
4917 * @param [writer] Writer to encode to
4918 * @returns Writer
4919 */
4920 public static encodeDelimited(message: google.pubsub.v1.ISeekRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4921
4922 /**
4923 * Decodes a SeekRequest message from the specified reader or buffer.
4924 * @param reader Reader or buffer to decode from
4925 * @param [length] Message length if known beforehand
4926 * @returns SeekRequest
4927 * @throws {Error} If the payload is not a reader or valid buffer
4928 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4929 */
4930 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.SeekRequest;
4931
4932 /**
4933 * Decodes a SeekRequest message from the specified reader or buffer, length delimited.
4934 * @param reader Reader or buffer to decode from
4935 * @returns SeekRequest
4936 * @throws {Error} If the payload is not a reader or valid buffer
4937 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4938 */
4939 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.SeekRequest;
4940
4941 /**
4942 * Verifies a SeekRequest message.
4943 * @param message Plain object to verify
4944 * @returns `null` if valid, otherwise the reason why it is not
4945 */
4946 public static verify(message: { [k: string]: any }): (string|null);
4947
4948 /**
4949 * Creates a SeekRequest message from a plain object. Also converts values to their respective internal types.
4950 * @param object Plain object
4951 * @returns SeekRequest
4952 */
4953 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.SeekRequest;
4954
4955 /**
4956 * Creates a plain object from a SeekRequest message. Also converts values to other types if specified.
4957 * @param message SeekRequest
4958 * @param [options] Conversion options
4959 * @returns Plain object
4960 */
4961 public static toObject(message: google.pubsub.v1.SeekRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
4962
4963 /**
4964 * Converts this SeekRequest to JSON.
4965 * @returns JSON object
4966 */
4967 public toJSON(): { [k: string]: any };
4968 }
4969
4970 /** Properties of a SeekResponse. */
4971 interface ISeekResponse {
4972 }
4973
4974 /** Represents a SeekResponse. */
4975 class SeekResponse implements ISeekResponse {
4976
4977 /**
4978 * Constructs a new SeekResponse.
4979 * @param [properties] Properties to set
4980 */
4981 constructor(properties?: google.pubsub.v1.ISeekResponse);
4982
4983 /**
4984 * Creates a new SeekResponse instance using the specified properties.
4985 * @param [properties] Properties to set
4986 * @returns SeekResponse instance
4987 */
4988 public static create(properties?: google.pubsub.v1.ISeekResponse): google.pubsub.v1.SeekResponse;
4989
4990 /**
4991 * Encodes the specified SeekResponse message. Does not implicitly {@link google.pubsub.v1.SeekResponse.verify|verify} messages.
4992 * @param message SeekResponse message or plain object to encode
4993 * @param [writer] Writer to encode to
4994 * @returns Writer
4995 */
4996 public static encode(message: google.pubsub.v1.ISeekResponse, writer?: $protobuf.Writer): $protobuf.Writer;
4997
4998 /**
4999 * Encodes the specified SeekResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.SeekResponse.verify|verify} messages.
5000 * @param message SeekResponse message or plain object to encode
5001 * @param [writer] Writer to encode to
5002 * @returns Writer
5003 */
5004 public static encodeDelimited(message: google.pubsub.v1.ISeekResponse, writer?: $protobuf.Writer): $protobuf.Writer;
5005
5006 /**
5007 * Decodes a SeekResponse message from the specified reader or buffer.
5008 * @param reader Reader or buffer to decode from
5009 * @param [length] Message length if known beforehand
5010 * @returns SeekResponse
5011 * @throws {Error} If the payload is not a reader or valid buffer
5012 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5013 */
5014 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.SeekResponse;
5015
5016 /**
5017 * Decodes a SeekResponse message from the specified reader or buffer, length delimited.
5018 * @param reader Reader or buffer to decode from
5019 * @returns SeekResponse
5020 * @throws {Error} If the payload is not a reader or valid buffer
5021 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5022 */
5023 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.SeekResponse;
5024
5025 /**
5026 * Verifies a SeekResponse message.
5027 * @param message Plain object to verify
5028 * @returns `null` if valid, otherwise the reason why it is not
5029 */
5030 public static verify(message: { [k: string]: any }): (string|null);
5031
5032 /**
5033 * Creates a SeekResponse message from a plain object. Also converts values to their respective internal types.
5034 * @param object Plain object
5035 * @returns SeekResponse
5036 */
5037 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.SeekResponse;
5038
5039 /**
5040 * Creates a plain object from a SeekResponse message. Also converts values to other types if specified.
5041 * @param message SeekResponse
5042 * @param [options] Conversion options
5043 * @returns Plain object
5044 */
5045 public static toObject(message: google.pubsub.v1.SeekResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
5046
5047 /**
5048 * Converts this SeekResponse to JSON.
5049 * @returns JSON object
5050 */
5051 public toJSON(): { [k: string]: any };
5052 }
5053
5054 /** Represents a SchemaService */
5055 class SchemaService extends $protobuf.rpc.Service {
5056
5057 /**
5058 * Constructs a new SchemaService service.
5059 * @param rpcImpl RPC implementation
5060 * @param [requestDelimited=false] Whether requests are length-delimited
5061 * @param [responseDelimited=false] Whether responses are length-delimited
5062 */
5063 constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
5064
5065 /**
5066 * Creates new SchemaService service using the specified rpc implementation.
5067 * @param rpcImpl RPC implementation
5068 * @param [requestDelimited=false] Whether requests are length-delimited
5069 * @param [responseDelimited=false] Whether responses are length-delimited
5070 * @returns RPC service. Useful where requests and/or responses are streamed.
5071 */
5072 public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SchemaService;
5073
5074 /**
5075 * Calls CreateSchema.
5076 * @param request CreateSchemaRequest message or plain object
5077 * @param callback Node-style callback called with the error, if any, and Schema
5078 */
5079 public createSchema(request: google.pubsub.v1.ICreateSchemaRequest, callback: google.pubsub.v1.SchemaService.CreateSchemaCallback): void;
5080
5081 /**
5082 * Calls CreateSchema.
5083 * @param request CreateSchemaRequest message or plain object
5084 * @returns Promise
5085 */
5086 public createSchema(request: google.pubsub.v1.ICreateSchemaRequest): Promise<google.pubsub.v1.Schema>;
5087
5088 /**
5089 * Calls GetSchema.
5090 * @param request GetSchemaRequest message or plain object
5091 * @param callback Node-style callback called with the error, if any, and Schema
5092 */
5093 public getSchema(request: google.pubsub.v1.IGetSchemaRequest, callback: google.pubsub.v1.SchemaService.GetSchemaCallback): void;
5094
5095 /**
5096 * Calls GetSchema.
5097 * @param request GetSchemaRequest message or plain object
5098 * @returns Promise
5099 */
5100 public getSchema(request: google.pubsub.v1.IGetSchemaRequest): Promise<google.pubsub.v1.Schema>;
5101
5102 /**
5103 * Calls ListSchemas.
5104 * @param request ListSchemasRequest message or plain object
5105 * @param callback Node-style callback called with the error, if any, and ListSchemasResponse
5106 */
5107 public listSchemas(request: google.pubsub.v1.IListSchemasRequest, callback: google.pubsub.v1.SchemaService.ListSchemasCallback): void;
5108
5109 /**
5110 * Calls ListSchemas.
5111 * @param request ListSchemasRequest message or plain object
5112 * @returns Promise
5113 */
5114 public listSchemas(request: google.pubsub.v1.IListSchemasRequest): Promise<google.pubsub.v1.ListSchemasResponse>;
5115
5116 /**
5117 * Calls DeleteSchema.
5118 * @param request DeleteSchemaRequest message or plain object
5119 * @param callback Node-style callback called with the error, if any, and Empty
5120 */
5121 public deleteSchema(request: google.pubsub.v1.IDeleteSchemaRequest, callback: google.pubsub.v1.SchemaService.DeleteSchemaCallback): void;
5122
5123 /**
5124 * Calls DeleteSchema.
5125 * @param request DeleteSchemaRequest message or plain object
5126 * @returns Promise
5127 */
5128 public deleteSchema(request: google.pubsub.v1.IDeleteSchemaRequest): Promise<google.protobuf.Empty>;
5129
5130 /**
5131 * Calls ValidateSchema.
5132 * @param request ValidateSchemaRequest message or plain object
5133 * @param callback Node-style callback called with the error, if any, and ValidateSchemaResponse
5134 */
5135 public validateSchema(request: google.pubsub.v1.IValidateSchemaRequest, callback: google.pubsub.v1.SchemaService.ValidateSchemaCallback): void;
5136
5137 /**
5138 * Calls ValidateSchema.
5139 * @param request ValidateSchemaRequest message or plain object
5140 * @returns Promise
5141 */
5142 public validateSchema(request: google.pubsub.v1.IValidateSchemaRequest): Promise<google.pubsub.v1.ValidateSchemaResponse>;
5143
5144 /**
5145 * Calls ValidateMessage.
5146 * @param request ValidateMessageRequest message or plain object
5147 * @param callback Node-style callback called with the error, if any, and ValidateMessageResponse
5148 */
5149 public validateMessage(request: google.pubsub.v1.IValidateMessageRequest, callback: google.pubsub.v1.SchemaService.ValidateMessageCallback): void;
5150
5151 /**
5152 * Calls ValidateMessage.
5153 * @param request ValidateMessageRequest message or plain object
5154 * @returns Promise
5155 */
5156 public validateMessage(request: google.pubsub.v1.IValidateMessageRequest): Promise<google.pubsub.v1.ValidateMessageResponse>;
5157 }
5158
5159 namespace SchemaService {
5160
5161 /**
5162 * Callback as used by {@link google.pubsub.v1.SchemaService#createSchema}.
5163 * @param error Error, if any
5164 * @param [response] Schema
5165 */
5166 type CreateSchemaCallback = (error: (Error|null), response?: google.pubsub.v1.Schema) => void;
5167
5168 /**
5169 * Callback as used by {@link google.pubsub.v1.SchemaService#getSchema}.
5170 * @param error Error, if any
5171 * @param [response] Schema
5172 */
5173 type GetSchemaCallback = (error: (Error|null), response?: google.pubsub.v1.Schema) => void;
5174
5175 /**
5176 * Callback as used by {@link google.pubsub.v1.SchemaService#listSchemas}.
5177 * @param error Error, if any
5178 * @param [response] ListSchemasResponse
5179 */
5180 type ListSchemasCallback = (error: (Error|null), response?: google.pubsub.v1.ListSchemasResponse) => void;
5181
5182 /**
5183 * Callback as used by {@link google.pubsub.v1.SchemaService#deleteSchema}.
5184 * @param error Error, if any
5185 * @param [response] Empty
5186 */
5187 type DeleteSchemaCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
5188
5189 /**
5190 * Callback as used by {@link google.pubsub.v1.SchemaService#validateSchema}.
5191 * @param error Error, if any
5192 * @param [response] ValidateSchemaResponse
5193 */
5194 type ValidateSchemaCallback = (error: (Error|null), response?: google.pubsub.v1.ValidateSchemaResponse) => void;
5195
5196 /**
5197 * Callback as used by {@link google.pubsub.v1.SchemaService#validateMessage}.
5198 * @param error Error, if any
5199 * @param [response] ValidateMessageResponse
5200 */
5201 type ValidateMessageCallback = (error: (Error|null), response?: google.pubsub.v1.ValidateMessageResponse) => void;
5202 }
5203
5204 /** Properties of a Schema. */
5205 interface ISchema {
5206
5207 /** Schema name */
5208 name?: (string|null);
5209
5210 /** Schema type */
5211 type?: (google.pubsub.v1.Schema.Type|keyof typeof google.pubsub.v1.Schema.Type|null);
5212
5213 /** Schema definition */
5214 definition?: (string|null);
5215 }
5216
5217 /** Represents a Schema. */
5218 class Schema implements ISchema {
5219
5220 /**
5221 * Constructs a new Schema.
5222 * @param [properties] Properties to set
5223 */
5224 constructor(properties?: google.pubsub.v1.ISchema);
5225
5226 /** Schema name. */
5227 public name: string;
5228
5229 /** Schema type. */
5230 public type: (google.pubsub.v1.Schema.Type|keyof typeof google.pubsub.v1.Schema.Type);
5231
5232 /** Schema definition. */
5233 public definition: string;
5234
5235 /**
5236 * Creates a new Schema instance using the specified properties.
5237 * @param [properties] Properties to set
5238 * @returns Schema instance
5239 */
5240 public static create(properties?: google.pubsub.v1.ISchema): google.pubsub.v1.Schema;
5241
5242 /**
5243 * Encodes the specified Schema message. Does not implicitly {@link google.pubsub.v1.Schema.verify|verify} messages.
5244 * @param message Schema message or plain object to encode
5245 * @param [writer] Writer to encode to
5246 * @returns Writer
5247 */
5248 public static encode(message: google.pubsub.v1.ISchema, writer?: $protobuf.Writer): $protobuf.Writer;
5249
5250 /**
5251 * Encodes the specified Schema message, length delimited. Does not implicitly {@link google.pubsub.v1.Schema.verify|verify} messages.
5252 * @param message Schema message or plain object to encode
5253 * @param [writer] Writer to encode to
5254 * @returns Writer
5255 */
5256 public static encodeDelimited(message: google.pubsub.v1.ISchema, writer?: $protobuf.Writer): $protobuf.Writer;
5257
5258 /**
5259 * Decodes a Schema message from the specified reader or buffer.
5260 * @param reader Reader or buffer to decode from
5261 * @param [length] Message length if known beforehand
5262 * @returns Schema
5263 * @throws {Error} If the payload is not a reader or valid buffer
5264 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5265 */
5266 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.Schema;
5267
5268 /**
5269 * Decodes a Schema message from the specified reader or buffer, length delimited.
5270 * @param reader Reader or buffer to decode from
5271 * @returns Schema
5272 * @throws {Error} If the payload is not a reader or valid buffer
5273 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5274 */
5275 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.Schema;
5276
5277 /**
5278 * Verifies a Schema message.
5279 * @param message Plain object to verify
5280 * @returns `null` if valid, otherwise the reason why it is not
5281 */
5282 public static verify(message: { [k: string]: any }): (string|null);
5283
5284 /**
5285 * Creates a Schema message from a plain object. Also converts values to their respective internal types.
5286 * @param object Plain object
5287 * @returns Schema
5288 */
5289 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.Schema;
5290
5291 /**
5292 * Creates a plain object from a Schema message. Also converts values to other types if specified.
5293 * @param message Schema
5294 * @param [options] Conversion options
5295 * @returns Plain object
5296 */
5297 public static toObject(message: google.pubsub.v1.Schema, options?: $protobuf.IConversionOptions): { [k: string]: any };
5298
5299 /**
5300 * Converts this Schema to JSON.
5301 * @returns JSON object
5302 */
5303 public toJSON(): { [k: string]: any };
5304 }
5305
5306 namespace Schema {
5307
5308 /** Type enum. */
5309 enum Type {
5310 TYPE_UNSPECIFIED = 0,
5311 PROTOCOL_BUFFER = 1,
5312 AVRO = 2
5313 }
5314 }
5315
5316 /** Properties of a CreateSchemaRequest. */
5317 interface ICreateSchemaRequest {
5318
5319 /** CreateSchemaRequest parent */
5320 parent?: (string|null);
5321
5322 /** CreateSchemaRequest schema */
5323 schema?: (google.pubsub.v1.ISchema|null);
5324
5325 /** CreateSchemaRequest schemaId */
5326 schemaId?: (string|null);
5327 }
5328
5329 /** Represents a CreateSchemaRequest. */
5330 class CreateSchemaRequest implements ICreateSchemaRequest {
5331
5332 /**
5333 * Constructs a new CreateSchemaRequest.
5334 * @param [properties] Properties to set
5335 */
5336 constructor(properties?: google.pubsub.v1.ICreateSchemaRequest);
5337
5338 /** CreateSchemaRequest parent. */
5339 public parent: string;
5340
5341 /** CreateSchemaRequest schema. */
5342 public schema?: (google.pubsub.v1.ISchema|null);
5343
5344 /** CreateSchemaRequest schemaId. */
5345 public schemaId: string;
5346
5347 /**
5348 * Creates a new CreateSchemaRequest instance using the specified properties.
5349 * @param [properties] Properties to set
5350 * @returns CreateSchemaRequest instance
5351 */
5352 public static create(properties?: google.pubsub.v1.ICreateSchemaRequest): google.pubsub.v1.CreateSchemaRequest;
5353
5354 /**
5355 * Encodes the specified CreateSchemaRequest message. Does not implicitly {@link google.pubsub.v1.CreateSchemaRequest.verify|verify} messages.
5356 * @param message CreateSchemaRequest message or plain object to encode
5357 * @param [writer] Writer to encode to
5358 * @returns Writer
5359 */
5360 public static encode(message: google.pubsub.v1.ICreateSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5361
5362 /**
5363 * Encodes the specified CreateSchemaRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.CreateSchemaRequest.verify|verify} messages.
5364 * @param message CreateSchemaRequest message or plain object to encode
5365 * @param [writer] Writer to encode to
5366 * @returns Writer
5367 */
5368 public static encodeDelimited(message: google.pubsub.v1.ICreateSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5369
5370 /**
5371 * Decodes a CreateSchemaRequest message from the specified reader or buffer.
5372 * @param reader Reader or buffer to decode from
5373 * @param [length] Message length if known beforehand
5374 * @returns CreateSchemaRequest
5375 * @throws {Error} If the payload is not a reader or valid buffer
5376 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5377 */
5378 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.CreateSchemaRequest;
5379
5380 /**
5381 * Decodes a CreateSchemaRequest message from the specified reader or buffer, length delimited.
5382 * @param reader Reader or buffer to decode from
5383 * @returns CreateSchemaRequest
5384 * @throws {Error} If the payload is not a reader or valid buffer
5385 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5386 */
5387 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.CreateSchemaRequest;
5388
5389 /**
5390 * Verifies a CreateSchemaRequest message.
5391 * @param message Plain object to verify
5392 * @returns `null` if valid, otherwise the reason why it is not
5393 */
5394 public static verify(message: { [k: string]: any }): (string|null);
5395
5396 /**
5397 * Creates a CreateSchemaRequest message from a plain object. Also converts values to their respective internal types.
5398 * @param object Plain object
5399 * @returns CreateSchemaRequest
5400 */
5401 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.CreateSchemaRequest;
5402
5403 /**
5404 * Creates a plain object from a CreateSchemaRequest message. Also converts values to other types if specified.
5405 * @param message CreateSchemaRequest
5406 * @param [options] Conversion options
5407 * @returns Plain object
5408 */
5409 public static toObject(message: google.pubsub.v1.CreateSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5410
5411 /**
5412 * Converts this CreateSchemaRequest to JSON.
5413 * @returns JSON object
5414 */
5415 public toJSON(): { [k: string]: any };
5416 }
5417
5418 /** SchemaView enum. */
5419 enum SchemaView {
5420 SCHEMA_VIEW_UNSPECIFIED = 0,
5421 BASIC = 1,
5422 FULL = 2
5423 }
5424
5425 /** Properties of a GetSchemaRequest. */
5426 interface IGetSchemaRequest {
5427
5428 /** GetSchemaRequest name */
5429 name?: (string|null);
5430
5431 /** GetSchemaRequest view */
5432 view?: (google.pubsub.v1.SchemaView|keyof typeof google.pubsub.v1.SchemaView|null);
5433 }
5434
5435 /** Represents a GetSchemaRequest. */
5436 class GetSchemaRequest implements IGetSchemaRequest {
5437
5438 /**
5439 * Constructs a new GetSchemaRequest.
5440 * @param [properties] Properties to set
5441 */
5442 constructor(properties?: google.pubsub.v1.IGetSchemaRequest);
5443
5444 /** GetSchemaRequest name. */
5445 public name: string;
5446
5447 /** GetSchemaRequest view. */
5448 public view: (google.pubsub.v1.SchemaView|keyof typeof google.pubsub.v1.SchemaView);
5449
5450 /**
5451 * Creates a new GetSchemaRequest instance using the specified properties.
5452 * @param [properties] Properties to set
5453 * @returns GetSchemaRequest instance
5454 */
5455 public static create(properties?: google.pubsub.v1.IGetSchemaRequest): google.pubsub.v1.GetSchemaRequest;
5456
5457 /**
5458 * Encodes the specified GetSchemaRequest message. Does not implicitly {@link google.pubsub.v1.GetSchemaRequest.verify|verify} messages.
5459 * @param message GetSchemaRequest message or plain object to encode
5460 * @param [writer] Writer to encode to
5461 * @returns Writer
5462 */
5463 public static encode(message: google.pubsub.v1.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5464
5465 /**
5466 * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.GetSchemaRequest.verify|verify} messages.
5467 * @param message GetSchemaRequest message or plain object to encode
5468 * @param [writer] Writer to encode to
5469 * @returns Writer
5470 */
5471 public static encodeDelimited(message: google.pubsub.v1.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5472
5473 /**
5474 * Decodes a GetSchemaRequest message from the specified reader or buffer.
5475 * @param reader Reader or buffer to decode from
5476 * @param [length] Message length if known beforehand
5477 * @returns GetSchemaRequest
5478 * @throws {Error} If the payload is not a reader or valid buffer
5479 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5480 */
5481 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.GetSchemaRequest;
5482
5483 /**
5484 * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited.
5485 * @param reader Reader or buffer to decode from
5486 * @returns GetSchemaRequest
5487 * @throws {Error} If the payload is not a reader or valid buffer
5488 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5489 */
5490 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.GetSchemaRequest;
5491
5492 /**
5493 * Verifies a GetSchemaRequest message.
5494 * @param message Plain object to verify
5495 * @returns `null` if valid, otherwise the reason why it is not
5496 */
5497 public static verify(message: { [k: string]: any }): (string|null);
5498
5499 /**
5500 * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types.
5501 * @param object Plain object
5502 * @returns GetSchemaRequest
5503 */
5504 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.GetSchemaRequest;
5505
5506 /**
5507 * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified.
5508 * @param message GetSchemaRequest
5509 * @param [options] Conversion options
5510 * @returns Plain object
5511 */
5512 public static toObject(message: google.pubsub.v1.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5513
5514 /**
5515 * Converts this GetSchemaRequest to JSON.
5516 * @returns JSON object
5517 */
5518 public toJSON(): { [k: string]: any };
5519 }
5520
5521 /** Properties of a ListSchemasRequest. */
5522 interface IListSchemasRequest {
5523
5524 /** ListSchemasRequest parent */
5525 parent?: (string|null);
5526
5527 /** ListSchemasRequest view */
5528 view?: (google.pubsub.v1.SchemaView|keyof typeof google.pubsub.v1.SchemaView|null);
5529
5530 /** ListSchemasRequest pageSize */
5531 pageSize?: (number|null);
5532
5533 /** ListSchemasRequest pageToken */
5534 pageToken?: (string|null);
5535 }
5536
5537 /** Represents a ListSchemasRequest. */
5538 class ListSchemasRequest implements IListSchemasRequest {
5539
5540 /**
5541 * Constructs a new ListSchemasRequest.
5542 * @param [properties] Properties to set
5543 */
5544 constructor(properties?: google.pubsub.v1.IListSchemasRequest);
5545
5546 /** ListSchemasRequest parent. */
5547 public parent: string;
5548
5549 /** ListSchemasRequest view. */
5550 public view: (google.pubsub.v1.SchemaView|keyof typeof google.pubsub.v1.SchemaView);
5551
5552 /** ListSchemasRequest pageSize. */
5553 public pageSize: number;
5554
5555 /** ListSchemasRequest pageToken. */
5556 public pageToken: string;
5557
5558 /**
5559 * Creates a new ListSchemasRequest instance using the specified properties.
5560 * @param [properties] Properties to set
5561 * @returns ListSchemasRequest instance
5562 */
5563 public static create(properties?: google.pubsub.v1.IListSchemasRequest): google.pubsub.v1.ListSchemasRequest;
5564
5565 /**
5566 * Encodes the specified ListSchemasRequest message. Does not implicitly {@link google.pubsub.v1.ListSchemasRequest.verify|verify} messages.
5567 * @param message ListSchemasRequest message or plain object to encode
5568 * @param [writer] Writer to encode to
5569 * @returns Writer
5570 */
5571 public static encode(message: google.pubsub.v1.IListSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5572
5573 /**
5574 * Encodes the specified ListSchemasRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.ListSchemasRequest.verify|verify} messages.
5575 * @param message ListSchemasRequest message or plain object to encode
5576 * @param [writer] Writer to encode to
5577 * @returns Writer
5578 */
5579 public static encodeDelimited(message: google.pubsub.v1.IListSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5580
5581 /**
5582 * Decodes a ListSchemasRequest message from the specified reader or buffer.
5583 * @param reader Reader or buffer to decode from
5584 * @param [length] Message length if known beforehand
5585 * @returns ListSchemasRequest
5586 * @throws {Error} If the payload is not a reader or valid buffer
5587 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5588 */
5589 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ListSchemasRequest;
5590
5591 /**
5592 * Decodes a ListSchemasRequest message from the specified reader or buffer, length delimited.
5593 * @param reader Reader or buffer to decode from
5594 * @returns ListSchemasRequest
5595 * @throws {Error} If the payload is not a reader or valid buffer
5596 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5597 */
5598 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ListSchemasRequest;
5599
5600 /**
5601 * Verifies a ListSchemasRequest message.
5602 * @param message Plain object to verify
5603 * @returns `null` if valid, otherwise the reason why it is not
5604 */
5605 public static verify(message: { [k: string]: any }): (string|null);
5606
5607 /**
5608 * Creates a ListSchemasRequest message from a plain object. Also converts values to their respective internal types.
5609 * @param object Plain object
5610 * @returns ListSchemasRequest
5611 */
5612 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ListSchemasRequest;
5613
5614 /**
5615 * Creates a plain object from a ListSchemasRequest message. Also converts values to other types if specified.
5616 * @param message ListSchemasRequest
5617 * @param [options] Conversion options
5618 * @returns Plain object
5619 */
5620 public static toObject(message: google.pubsub.v1.ListSchemasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5621
5622 /**
5623 * Converts this ListSchemasRequest to JSON.
5624 * @returns JSON object
5625 */
5626 public toJSON(): { [k: string]: any };
5627 }
5628
5629 /** Properties of a ListSchemasResponse. */
5630 interface IListSchemasResponse {
5631
5632 /** ListSchemasResponse schemas */
5633 schemas?: (google.pubsub.v1.ISchema[]|null);
5634
5635 /** ListSchemasResponse nextPageToken */
5636 nextPageToken?: (string|null);
5637 }
5638
5639 /** Represents a ListSchemasResponse. */
5640 class ListSchemasResponse implements IListSchemasResponse {
5641
5642 /**
5643 * Constructs a new ListSchemasResponse.
5644 * @param [properties] Properties to set
5645 */
5646 constructor(properties?: google.pubsub.v1.IListSchemasResponse);
5647
5648 /** ListSchemasResponse schemas. */
5649 public schemas: google.pubsub.v1.ISchema[];
5650
5651 /** ListSchemasResponse nextPageToken. */
5652 public nextPageToken: string;
5653
5654 /**
5655 * Creates a new ListSchemasResponse instance using the specified properties.
5656 * @param [properties] Properties to set
5657 * @returns ListSchemasResponse instance
5658 */
5659 public static create(properties?: google.pubsub.v1.IListSchemasResponse): google.pubsub.v1.ListSchemasResponse;
5660
5661 /**
5662 * Encodes the specified ListSchemasResponse message. Does not implicitly {@link google.pubsub.v1.ListSchemasResponse.verify|verify} messages.
5663 * @param message ListSchemasResponse message or plain object to encode
5664 * @param [writer] Writer to encode to
5665 * @returns Writer
5666 */
5667 public static encode(message: google.pubsub.v1.IListSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer;
5668
5669 /**
5670 * Encodes the specified ListSchemasResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.ListSchemasResponse.verify|verify} messages.
5671 * @param message ListSchemasResponse message or plain object to encode
5672 * @param [writer] Writer to encode to
5673 * @returns Writer
5674 */
5675 public static encodeDelimited(message: google.pubsub.v1.IListSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer;
5676
5677 /**
5678 * Decodes a ListSchemasResponse message from the specified reader or buffer.
5679 * @param reader Reader or buffer to decode from
5680 * @param [length] Message length if known beforehand
5681 * @returns ListSchemasResponse
5682 * @throws {Error} If the payload is not a reader or valid buffer
5683 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5684 */
5685 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ListSchemasResponse;
5686
5687 /**
5688 * Decodes a ListSchemasResponse message from the specified reader or buffer, length delimited.
5689 * @param reader Reader or buffer to decode from
5690 * @returns ListSchemasResponse
5691 * @throws {Error} If the payload is not a reader or valid buffer
5692 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5693 */
5694 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ListSchemasResponse;
5695
5696 /**
5697 * Verifies a ListSchemasResponse message.
5698 * @param message Plain object to verify
5699 * @returns `null` if valid, otherwise the reason why it is not
5700 */
5701 public static verify(message: { [k: string]: any }): (string|null);
5702
5703 /**
5704 * Creates a ListSchemasResponse message from a plain object. Also converts values to their respective internal types.
5705 * @param object Plain object
5706 * @returns ListSchemasResponse
5707 */
5708 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ListSchemasResponse;
5709
5710 /**
5711 * Creates a plain object from a ListSchemasResponse message. Also converts values to other types if specified.
5712 * @param message ListSchemasResponse
5713 * @param [options] Conversion options
5714 * @returns Plain object
5715 */
5716 public static toObject(message: google.pubsub.v1.ListSchemasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
5717
5718 /**
5719 * Converts this ListSchemasResponse to JSON.
5720 * @returns JSON object
5721 */
5722 public toJSON(): { [k: string]: any };
5723 }
5724
5725 /** Properties of a DeleteSchemaRequest. */
5726 interface IDeleteSchemaRequest {
5727
5728 /** DeleteSchemaRequest name */
5729 name?: (string|null);
5730 }
5731
5732 /** Represents a DeleteSchemaRequest. */
5733 class DeleteSchemaRequest implements IDeleteSchemaRequest {
5734
5735 /**
5736 * Constructs a new DeleteSchemaRequest.
5737 * @param [properties] Properties to set
5738 */
5739 constructor(properties?: google.pubsub.v1.IDeleteSchemaRequest);
5740
5741 /** DeleteSchemaRequest name. */
5742 public name: string;
5743
5744 /**
5745 * Creates a new DeleteSchemaRequest instance using the specified properties.
5746 * @param [properties] Properties to set
5747 * @returns DeleteSchemaRequest instance
5748 */
5749 public static create(properties?: google.pubsub.v1.IDeleteSchemaRequest): google.pubsub.v1.DeleteSchemaRequest;
5750
5751 /**
5752 * Encodes the specified DeleteSchemaRequest message. Does not implicitly {@link google.pubsub.v1.DeleteSchemaRequest.verify|verify} messages.
5753 * @param message DeleteSchemaRequest message or plain object to encode
5754 * @param [writer] Writer to encode to
5755 * @returns Writer
5756 */
5757 public static encode(message: google.pubsub.v1.IDeleteSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5758
5759 /**
5760 * Encodes the specified DeleteSchemaRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.DeleteSchemaRequest.verify|verify} messages.
5761 * @param message DeleteSchemaRequest message or plain object to encode
5762 * @param [writer] Writer to encode to
5763 * @returns Writer
5764 */
5765 public static encodeDelimited(message: google.pubsub.v1.IDeleteSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5766
5767 /**
5768 * Decodes a DeleteSchemaRequest message from the specified reader or buffer.
5769 * @param reader Reader or buffer to decode from
5770 * @param [length] Message length if known beforehand
5771 * @returns DeleteSchemaRequest
5772 * @throws {Error} If the payload is not a reader or valid buffer
5773 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5774 */
5775 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.DeleteSchemaRequest;
5776
5777 /**
5778 * Decodes a DeleteSchemaRequest message from the specified reader or buffer, length delimited.
5779 * @param reader Reader or buffer to decode from
5780 * @returns DeleteSchemaRequest
5781 * @throws {Error} If the payload is not a reader or valid buffer
5782 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5783 */
5784 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.DeleteSchemaRequest;
5785
5786 /**
5787 * Verifies a DeleteSchemaRequest message.
5788 * @param message Plain object to verify
5789 * @returns `null` if valid, otherwise the reason why it is not
5790 */
5791 public static verify(message: { [k: string]: any }): (string|null);
5792
5793 /**
5794 * Creates a DeleteSchemaRequest message from a plain object. Also converts values to their respective internal types.
5795 * @param object Plain object
5796 * @returns DeleteSchemaRequest
5797 */
5798 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.DeleteSchemaRequest;
5799
5800 /**
5801 * Creates a plain object from a DeleteSchemaRequest message. Also converts values to other types if specified.
5802 * @param message DeleteSchemaRequest
5803 * @param [options] Conversion options
5804 * @returns Plain object
5805 */
5806 public static toObject(message: google.pubsub.v1.DeleteSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5807
5808 /**
5809 * Converts this DeleteSchemaRequest to JSON.
5810 * @returns JSON object
5811 */
5812 public toJSON(): { [k: string]: any };
5813 }
5814
5815 /** Properties of a ValidateSchemaRequest. */
5816 interface IValidateSchemaRequest {
5817
5818 /** ValidateSchemaRequest parent */
5819 parent?: (string|null);
5820
5821 /** ValidateSchemaRequest schema */
5822 schema?: (google.pubsub.v1.ISchema|null);
5823 }
5824
5825 /** Represents a ValidateSchemaRequest. */
5826 class ValidateSchemaRequest implements IValidateSchemaRequest {
5827
5828 /**
5829 * Constructs a new ValidateSchemaRequest.
5830 * @param [properties] Properties to set
5831 */
5832 constructor(properties?: google.pubsub.v1.IValidateSchemaRequest);
5833
5834 /** ValidateSchemaRequest parent. */
5835 public parent: string;
5836
5837 /** ValidateSchemaRequest schema. */
5838 public schema?: (google.pubsub.v1.ISchema|null);
5839
5840 /**
5841 * Creates a new ValidateSchemaRequest instance using the specified properties.
5842 * @param [properties] Properties to set
5843 * @returns ValidateSchemaRequest instance
5844 */
5845 public static create(properties?: google.pubsub.v1.IValidateSchemaRequest): google.pubsub.v1.ValidateSchemaRequest;
5846
5847 /**
5848 * Encodes the specified ValidateSchemaRequest message. Does not implicitly {@link google.pubsub.v1.ValidateSchemaRequest.verify|verify} messages.
5849 * @param message ValidateSchemaRequest message or plain object to encode
5850 * @param [writer] Writer to encode to
5851 * @returns Writer
5852 */
5853 public static encode(message: google.pubsub.v1.IValidateSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5854
5855 /**
5856 * Encodes the specified ValidateSchemaRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.ValidateSchemaRequest.verify|verify} messages.
5857 * @param message ValidateSchemaRequest message or plain object to encode
5858 * @param [writer] Writer to encode to
5859 * @returns Writer
5860 */
5861 public static encodeDelimited(message: google.pubsub.v1.IValidateSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5862
5863 /**
5864 * Decodes a ValidateSchemaRequest message from the specified reader or buffer.
5865 * @param reader Reader or buffer to decode from
5866 * @param [length] Message length if known beforehand
5867 * @returns ValidateSchemaRequest
5868 * @throws {Error} If the payload is not a reader or valid buffer
5869 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5870 */
5871 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ValidateSchemaRequest;
5872
5873 /**
5874 * Decodes a ValidateSchemaRequest message from the specified reader or buffer, length delimited.
5875 * @param reader Reader or buffer to decode from
5876 * @returns ValidateSchemaRequest
5877 * @throws {Error} If the payload is not a reader or valid buffer
5878 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5879 */
5880 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ValidateSchemaRequest;
5881
5882 /**
5883 * Verifies a ValidateSchemaRequest message.
5884 * @param message Plain object to verify
5885 * @returns `null` if valid, otherwise the reason why it is not
5886 */
5887 public static verify(message: { [k: string]: any }): (string|null);
5888
5889 /**
5890 * Creates a ValidateSchemaRequest message from a plain object. Also converts values to their respective internal types.
5891 * @param object Plain object
5892 * @returns ValidateSchemaRequest
5893 */
5894 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ValidateSchemaRequest;
5895
5896 /**
5897 * Creates a plain object from a ValidateSchemaRequest message. Also converts values to other types if specified.
5898 * @param message ValidateSchemaRequest
5899 * @param [options] Conversion options
5900 * @returns Plain object
5901 */
5902 public static toObject(message: google.pubsub.v1.ValidateSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5903
5904 /**
5905 * Converts this ValidateSchemaRequest to JSON.
5906 * @returns JSON object
5907 */
5908 public toJSON(): { [k: string]: any };
5909 }
5910
5911 /** Properties of a ValidateSchemaResponse. */
5912 interface IValidateSchemaResponse {
5913 }
5914
5915 /** Represents a ValidateSchemaResponse. */
5916 class ValidateSchemaResponse implements IValidateSchemaResponse {
5917
5918 /**
5919 * Constructs a new ValidateSchemaResponse.
5920 * @param [properties] Properties to set
5921 */
5922 constructor(properties?: google.pubsub.v1.IValidateSchemaResponse);
5923
5924 /**
5925 * Creates a new ValidateSchemaResponse instance using the specified properties.
5926 * @param [properties] Properties to set
5927 * @returns ValidateSchemaResponse instance
5928 */
5929 public static create(properties?: google.pubsub.v1.IValidateSchemaResponse): google.pubsub.v1.ValidateSchemaResponse;
5930
5931 /**
5932 * Encodes the specified ValidateSchemaResponse message. Does not implicitly {@link google.pubsub.v1.ValidateSchemaResponse.verify|verify} messages.
5933 * @param message ValidateSchemaResponse message or plain object to encode
5934 * @param [writer] Writer to encode to
5935 * @returns Writer
5936 */
5937 public static encode(message: google.pubsub.v1.IValidateSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer;
5938
5939 /**
5940 * Encodes the specified ValidateSchemaResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.ValidateSchemaResponse.verify|verify} messages.
5941 * @param message ValidateSchemaResponse message or plain object to encode
5942 * @param [writer] Writer to encode to
5943 * @returns Writer
5944 */
5945 public static encodeDelimited(message: google.pubsub.v1.IValidateSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer;
5946
5947 /**
5948 * Decodes a ValidateSchemaResponse message from the specified reader or buffer.
5949 * @param reader Reader or buffer to decode from
5950 * @param [length] Message length if known beforehand
5951 * @returns ValidateSchemaResponse
5952 * @throws {Error} If the payload is not a reader or valid buffer
5953 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5954 */
5955 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ValidateSchemaResponse;
5956
5957 /**
5958 * Decodes a ValidateSchemaResponse message from the specified reader or buffer, length delimited.
5959 * @param reader Reader or buffer to decode from
5960 * @returns ValidateSchemaResponse
5961 * @throws {Error} If the payload is not a reader or valid buffer
5962 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5963 */
5964 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ValidateSchemaResponse;
5965
5966 /**
5967 * Verifies a ValidateSchemaResponse message.
5968 * @param message Plain object to verify
5969 * @returns `null` if valid, otherwise the reason why it is not
5970 */
5971 public static verify(message: { [k: string]: any }): (string|null);
5972
5973 /**
5974 * Creates a ValidateSchemaResponse message from a plain object. Also converts values to their respective internal types.
5975 * @param object Plain object
5976 * @returns ValidateSchemaResponse
5977 */
5978 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ValidateSchemaResponse;
5979
5980 /**
5981 * Creates a plain object from a ValidateSchemaResponse message. Also converts values to other types if specified.
5982 * @param message ValidateSchemaResponse
5983 * @param [options] Conversion options
5984 * @returns Plain object
5985 */
5986 public static toObject(message: google.pubsub.v1.ValidateSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
5987
5988 /**
5989 * Converts this ValidateSchemaResponse to JSON.
5990 * @returns JSON object
5991 */
5992 public toJSON(): { [k: string]: any };
5993 }
5994
5995 /** Properties of a ValidateMessageRequest. */
5996 interface IValidateMessageRequest {
5997
5998 /** ValidateMessageRequest parent */
5999 parent?: (string|null);
6000
6001 /** ValidateMessageRequest name */
6002 name?: (string|null);
6003
6004 /** ValidateMessageRequest schema */
6005 schema?: (google.pubsub.v1.ISchema|null);
6006
6007 /** ValidateMessageRequest message */
6008 message?: (Uint8Array|string|null);
6009
6010 /** ValidateMessageRequest encoding */
6011 encoding?: (google.pubsub.v1.Encoding|keyof typeof google.pubsub.v1.Encoding|null);
6012 }
6013
6014 /** Represents a ValidateMessageRequest. */
6015 class ValidateMessageRequest implements IValidateMessageRequest {
6016
6017 /**
6018 * Constructs a new ValidateMessageRequest.
6019 * @param [properties] Properties to set
6020 */
6021 constructor(properties?: google.pubsub.v1.IValidateMessageRequest);
6022
6023 /** ValidateMessageRequest parent. */
6024 public parent: string;
6025
6026 /** ValidateMessageRequest name. */
6027 public name?: (string|null);
6028
6029 /** ValidateMessageRequest schema. */
6030 public schema?: (google.pubsub.v1.ISchema|null);
6031
6032 /** ValidateMessageRequest message. */
6033 public message: (Uint8Array|string);
6034
6035 /** ValidateMessageRequest encoding. */
6036 public encoding: (google.pubsub.v1.Encoding|keyof typeof google.pubsub.v1.Encoding);
6037
6038 /** ValidateMessageRequest schemaSpec. */
6039 public schemaSpec?: ("name"|"schema");
6040
6041 /**
6042 * Creates a new ValidateMessageRequest instance using the specified properties.
6043 * @param [properties] Properties to set
6044 * @returns ValidateMessageRequest instance
6045 */
6046 public static create(properties?: google.pubsub.v1.IValidateMessageRequest): google.pubsub.v1.ValidateMessageRequest;
6047
6048 /**
6049 * Encodes the specified ValidateMessageRequest message. Does not implicitly {@link google.pubsub.v1.ValidateMessageRequest.verify|verify} messages.
6050 * @param message ValidateMessageRequest message or plain object to encode
6051 * @param [writer] Writer to encode to
6052 * @returns Writer
6053 */
6054 public static encode(message: google.pubsub.v1.IValidateMessageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6055
6056 /**
6057 * Encodes the specified ValidateMessageRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.ValidateMessageRequest.verify|verify} messages.
6058 * @param message ValidateMessageRequest message or plain object to encode
6059 * @param [writer] Writer to encode to
6060 * @returns Writer
6061 */
6062 public static encodeDelimited(message: google.pubsub.v1.IValidateMessageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6063
6064 /**
6065 * Decodes a ValidateMessageRequest message from the specified reader or buffer.
6066 * @param reader Reader or buffer to decode from
6067 * @param [length] Message length if known beforehand
6068 * @returns ValidateMessageRequest
6069 * @throws {Error} If the payload is not a reader or valid buffer
6070 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6071 */
6072 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ValidateMessageRequest;
6073
6074 /**
6075 * Decodes a ValidateMessageRequest message from the specified reader or buffer, length delimited.
6076 * @param reader Reader or buffer to decode from
6077 * @returns ValidateMessageRequest
6078 * @throws {Error} If the payload is not a reader or valid buffer
6079 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6080 */
6081 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ValidateMessageRequest;
6082
6083 /**
6084 * Verifies a ValidateMessageRequest message.
6085 * @param message Plain object to verify
6086 * @returns `null` if valid, otherwise the reason why it is not
6087 */
6088 public static verify(message: { [k: string]: any }): (string|null);
6089
6090 /**
6091 * Creates a ValidateMessageRequest message from a plain object. Also converts values to their respective internal types.
6092 * @param object Plain object
6093 * @returns ValidateMessageRequest
6094 */
6095 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ValidateMessageRequest;
6096
6097 /**
6098 * Creates a plain object from a ValidateMessageRequest message. Also converts values to other types if specified.
6099 * @param message ValidateMessageRequest
6100 * @param [options] Conversion options
6101 * @returns Plain object
6102 */
6103 public static toObject(message: google.pubsub.v1.ValidateMessageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
6104
6105 /**
6106 * Converts this ValidateMessageRequest to JSON.
6107 * @returns JSON object
6108 */
6109 public toJSON(): { [k: string]: any };
6110 }
6111
6112 /** Properties of a ValidateMessageResponse. */
6113 interface IValidateMessageResponse {
6114 }
6115
6116 /** Represents a ValidateMessageResponse. */
6117 class ValidateMessageResponse implements IValidateMessageResponse {
6118
6119 /**
6120 * Constructs a new ValidateMessageResponse.
6121 * @param [properties] Properties to set
6122 */
6123 constructor(properties?: google.pubsub.v1.IValidateMessageResponse);
6124
6125 /**
6126 * Creates a new ValidateMessageResponse instance using the specified properties.
6127 * @param [properties] Properties to set
6128 * @returns ValidateMessageResponse instance
6129 */
6130 public static create(properties?: google.pubsub.v1.IValidateMessageResponse): google.pubsub.v1.ValidateMessageResponse;
6131
6132 /**
6133 * Encodes the specified ValidateMessageResponse message. Does not implicitly {@link google.pubsub.v1.ValidateMessageResponse.verify|verify} messages.
6134 * @param message ValidateMessageResponse message or plain object to encode
6135 * @param [writer] Writer to encode to
6136 * @returns Writer
6137 */
6138 public static encode(message: google.pubsub.v1.IValidateMessageResponse, writer?: $protobuf.Writer): $protobuf.Writer;
6139
6140 /**
6141 * Encodes the specified ValidateMessageResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.ValidateMessageResponse.verify|verify} messages.
6142 * @param message ValidateMessageResponse message or plain object to encode
6143 * @param [writer] Writer to encode to
6144 * @returns Writer
6145 */
6146 public static encodeDelimited(message: google.pubsub.v1.IValidateMessageResponse, writer?: $protobuf.Writer): $protobuf.Writer;
6147
6148 /**
6149 * Decodes a ValidateMessageResponse message from the specified reader or buffer.
6150 * @param reader Reader or buffer to decode from
6151 * @param [length] Message length if known beforehand
6152 * @returns ValidateMessageResponse
6153 * @throws {Error} If the payload is not a reader or valid buffer
6154 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6155 */
6156 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ValidateMessageResponse;
6157
6158 /**
6159 * Decodes a ValidateMessageResponse message from the specified reader or buffer, length delimited.
6160 * @param reader Reader or buffer to decode from
6161 * @returns ValidateMessageResponse
6162 * @throws {Error} If the payload is not a reader or valid buffer
6163 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6164 */
6165 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ValidateMessageResponse;
6166
6167 /**
6168 * Verifies a ValidateMessageResponse message.
6169 * @param message Plain object to verify
6170 * @returns `null` if valid, otherwise the reason why it is not
6171 */
6172 public static verify(message: { [k: string]: any }): (string|null);
6173
6174 /**
6175 * Creates a ValidateMessageResponse message from a plain object. Also converts values to their respective internal types.
6176 * @param object Plain object
6177 * @returns ValidateMessageResponse
6178 */
6179 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ValidateMessageResponse;
6180
6181 /**
6182 * Creates a plain object from a ValidateMessageResponse message. Also converts values to other types if specified.
6183 * @param message ValidateMessageResponse
6184 * @param [options] Conversion options
6185 * @returns Plain object
6186 */
6187 public static toObject(message: google.pubsub.v1.ValidateMessageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
6188
6189 /**
6190 * Converts this ValidateMessageResponse to JSON.
6191 * @returns JSON object
6192 */
6193 public toJSON(): { [k: string]: any };
6194 }
6195
6196 /** Encoding enum. */
6197 enum Encoding {
6198 ENCODING_UNSPECIFIED = 0,
6199 JSON = 1,
6200 BINARY = 2
6201 }
6202 }
6203 }
6204
6205 /** Namespace api. */
6206 namespace api {
6207
6208 /** Properties of a Http. */
6209 interface IHttp {
6210
6211 /** Http rules */
6212 rules?: (google.api.IHttpRule[]|null);
6213
6214 /** Http fullyDecodeReservedExpansion */
6215 fullyDecodeReservedExpansion?: (boolean|null);
6216 }
6217
6218 /** Represents a Http. */
6219 class Http implements IHttp {
6220
6221 /**
6222 * Constructs a new Http.
6223 * @param [properties] Properties to set
6224 */
6225 constructor(properties?: google.api.IHttp);
6226
6227 /** Http rules. */
6228 public rules: google.api.IHttpRule[];
6229
6230 /** Http fullyDecodeReservedExpansion. */
6231 public fullyDecodeReservedExpansion: boolean;
6232
6233 /**
6234 * Creates a new Http instance using the specified properties.
6235 * @param [properties] Properties to set
6236 * @returns Http instance
6237 */
6238 public static create(properties?: google.api.IHttp): google.api.Http;
6239
6240 /**
6241 * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
6242 * @param message Http message or plain object to encode
6243 * @param [writer] Writer to encode to
6244 * @returns Writer
6245 */
6246 public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
6247
6248 /**
6249 * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
6250 * @param message Http message or plain object to encode
6251 * @param [writer] Writer to encode to
6252 * @returns Writer
6253 */
6254 public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
6255
6256 /**
6257 * Decodes a Http message from the specified reader or buffer.
6258 * @param reader Reader or buffer to decode from
6259 * @param [length] Message length if known beforehand
6260 * @returns Http
6261 * @throws {Error} If the payload is not a reader or valid buffer
6262 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6263 */
6264 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
6265
6266 /**
6267 * Decodes a Http message from the specified reader or buffer, length delimited.
6268 * @param reader Reader or buffer to decode from
6269 * @returns Http
6270 * @throws {Error} If the payload is not a reader or valid buffer
6271 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6272 */
6273 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
6274
6275 /**
6276 * Verifies a Http message.
6277 * @param message Plain object to verify
6278 * @returns `null` if valid, otherwise the reason why it is not
6279 */
6280 public static verify(message: { [k: string]: any }): (string|null);
6281
6282 /**
6283 * Creates a Http message from a plain object. Also converts values to their respective internal types.
6284 * @param object Plain object
6285 * @returns Http
6286 */
6287 public static fromObject(object: { [k: string]: any }): google.api.Http;
6288
6289 /**
6290 * Creates a plain object from a Http message. Also converts values to other types if specified.
6291 * @param message Http
6292 * @param [options] Conversion options
6293 * @returns Plain object
6294 */
6295 public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
6296
6297 /**
6298 * Converts this Http to JSON.
6299 * @returns JSON object
6300 */
6301 public toJSON(): { [k: string]: any };
6302 }
6303
6304 /** Properties of a HttpRule. */
6305 interface IHttpRule {
6306
6307 /** HttpRule selector */
6308 selector?: (string|null);
6309
6310 /** HttpRule get */
6311 get?: (string|null);
6312
6313 /** HttpRule put */
6314 put?: (string|null);
6315
6316 /** HttpRule post */
6317 post?: (string|null);
6318
6319 /** HttpRule delete */
6320 "delete"?: (string|null);
6321
6322 /** HttpRule patch */
6323 patch?: (string|null);
6324
6325 /** HttpRule custom */
6326 custom?: (google.api.ICustomHttpPattern|null);
6327
6328 /** HttpRule body */
6329 body?: (string|null);
6330
6331 /** HttpRule responseBody */
6332 responseBody?: (string|null);
6333
6334 /** HttpRule additionalBindings */
6335 additionalBindings?: (google.api.IHttpRule[]|null);
6336 }
6337
6338 /** Represents a HttpRule. */
6339 class HttpRule implements IHttpRule {
6340
6341 /**
6342 * Constructs a new HttpRule.
6343 * @param [properties] Properties to set
6344 */
6345 constructor(properties?: google.api.IHttpRule);
6346
6347 /** HttpRule selector. */
6348 public selector: string;
6349
6350 /** HttpRule get. */
6351 public get?: (string|null);
6352
6353 /** HttpRule put. */
6354 public put?: (string|null);
6355
6356 /** HttpRule post. */
6357 public post?: (string|null);
6358
6359 /** HttpRule delete. */
6360 public delete?: (string|null);
6361
6362 /** HttpRule patch. */
6363 public patch?: (string|null);
6364
6365 /** HttpRule custom. */
6366 public custom?: (google.api.ICustomHttpPattern|null);
6367
6368 /** HttpRule body. */
6369 public body: string;
6370
6371 /** HttpRule responseBody. */
6372 public responseBody: string;
6373
6374 /** HttpRule additionalBindings. */
6375 public additionalBindings: google.api.IHttpRule[];
6376
6377 /** HttpRule pattern. */
6378 public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
6379
6380 /**
6381 * Creates a new HttpRule instance using the specified properties.
6382 * @param [properties] Properties to set
6383 * @returns HttpRule instance
6384 */
6385 public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
6386
6387 /**
6388 * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
6389 * @param message HttpRule message or plain object to encode
6390 * @param [writer] Writer to encode to
6391 * @returns Writer
6392 */
6393 public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
6394
6395 /**
6396 * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
6397 * @param message HttpRule message or plain object to encode
6398 * @param [writer] Writer to encode to
6399 * @returns Writer
6400 */
6401 public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
6402
6403 /**
6404 * Decodes a HttpRule message from the specified reader or buffer.
6405 * @param reader Reader or buffer to decode from
6406 * @param [length] Message length if known beforehand
6407 * @returns HttpRule
6408 * @throws {Error} If the payload is not a reader or valid buffer
6409 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6410 */
6411 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
6412
6413 /**
6414 * Decodes a HttpRule message from the specified reader or buffer, length delimited.
6415 * @param reader Reader or buffer to decode from
6416 * @returns HttpRule
6417 * @throws {Error} If the payload is not a reader or valid buffer
6418 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6419 */
6420 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
6421
6422 /**
6423 * Verifies a HttpRule message.
6424 * @param message Plain object to verify
6425 * @returns `null` if valid, otherwise the reason why it is not
6426 */
6427 public static verify(message: { [k: string]: any }): (string|null);
6428
6429 /**
6430 * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
6431 * @param object Plain object
6432 * @returns HttpRule
6433 */
6434 public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
6435
6436 /**
6437 * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
6438 * @param message HttpRule
6439 * @param [options] Conversion options
6440 * @returns Plain object
6441 */
6442 public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
6443
6444 /**
6445 * Converts this HttpRule to JSON.
6446 * @returns JSON object
6447 */
6448 public toJSON(): { [k: string]: any };
6449 }
6450
6451 /** Properties of a CustomHttpPattern. */
6452 interface ICustomHttpPattern {
6453
6454 /** CustomHttpPattern kind */
6455 kind?: (string|null);
6456
6457 /** CustomHttpPattern path */
6458 path?: (string|null);
6459 }
6460
6461 /** Represents a CustomHttpPattern. */
6462 class CustomHttpPattern implements ICustomHttpPattern {
6463
6464 /**
6465 * Constructs a new CustomHttpPattern.
6466 * @param [properties] Properties to set
6467 */
6468 constructor(properties?: google.api.ICustomHttpPattern);
6469
6470 /** CustomHttpPattern kind. */
6471 public kind: string;
6472
6473 /** CustomHttpPattern path. */
6474 public path: string;
6475
6476 /**
6477 * Creates a new CustomHttpPattern instance using the specified properties.
6478 * @param [properties] Properties to set
6479 * @returns CustomHttpPattern instance
6480 */
6481 public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
6482
6483 /**
6484 * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
6485 * @param message CustomHttpPattern message or plain object to encode
6486 * @param [writer] Writer to encode to
6487 * @returns Writer
6488 */
6489 public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
6490
6491 /**
6492 * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
6493 * @param message CustomHttpPattern message or plain object to encode
6494 * @param [writer] Writer to encode to
6495 * @returns Writer
6496 */
6497 public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
6498
6499 /**
6500 * Decodes a CustomHttpPattern message from the specified reader or buffer.
6501 * @param reader Reader or buffer to decode from
6502 * @param [length] Message length if known beforehand
6503 * @returns CustomHttpPattern
6504 * @throws {Error} If the payload is not a reader or valid buffer
6505 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6506 */
6507 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
6508
6509 /**
6510 * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
6511 * @param reader Reader or buffer to decode from
6512 * @returns CustomHttpPattern
6513 * @throws {Error} If the payload is not a reader or valid buffer
6514 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6515 */
6516 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
6517
6518 /**
6519 * Verifies a CustomHttpPattern message.
6520 * @param message Plain object to verify
6521 * @returns `null` if valid, otherwise the reason why it is not
6522 */
6523 public static verify(message: { [k: string]: any }): (string|null);
6524
6525 /**
6526 * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
6527 * @param object Plain object
6528 * @returns CustomHttpPattern
6529 */
6530 public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
6531
6532 /**
6533 * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
6534 * @param message CustomHttpPattern
6535 * @param [options] Conversion options
6536 * @returns Plain object
6537 */
6538 public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
6539
6540 /**
6541 * Converts this CustomHttpPattern to JSON.
6542 * @returns JSON object
6543 */
6544 public toJSON(): { [k: string]: any };
6545 }
6546
6547 /** FieldBehavior enum. */
6548 enum FieldBehavior {
6549 FIELD_BEHAVIOR_UNSPECIFIED = 0,
6550 OPTIONAL = 1,
6551 REQUIRED = 2,
6552 OUTPUT_ONLY = 3,
6553 INPUT_ONLY = 4,
6554 IMMUTABLE = 5,
6555 UNORDERED_LIST = 6
6556 }
6557
6558 /** Properties of a ResourceDescriptor. */
6559 interface IResourceDescriptor {
6560
6561 /** ResourceDescriptor type */
6562 type?: (string|null);
6563
6564 /** ResourceDescriptor pattern */
6565 pattern?: (string[]|null);
6566
6567 /** ResourceDescriptor nameField */
6568 nameField?: (string|null);
6569
6570 /** ResourceDescriptor history */
6571 history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
6572
6573 /** ResourceDescriptor plural */
6574 plural?: (string|null);
6575
6576 /** ResourceDescriptor singular */
6577 singular?: (string|null);
6578
6579 /** ResourceDescriptor style */
6580 style?: (google.api.ResourceDescriptor.Style[]|null);
6581 }
6582
6583 /** Represents a ResourceDescriptor. */
6584 class ResourceDescriptor implements IResourceDescriptor {
6585
6586 /**
6587 * Constructs a new ResourceDescriptor.
6588 * @param [properties] Properties to set
6589 */
6590 constructor(properties?: google.api.IResourceDescriptor);
6591
6592 /** ResourceDescriptor type. */
6593 public type: string;
6594
6595 /** ResourceDescriptor pattern. */
6596 public pattern: string[];
6597
6598 /** ResourceDescriptor nameField. */
6599 public nameField: string;
6600
6601 /** ResourceDescriptor history. */
6602 public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
6603
6604 /** ResourceDescriptor plural. */
6605 public plural: string;
6606
6607 /** ResourceDescriptor singular. */
6608 public singular: string;
6609
6610 /** ResourceDescriptor style. */
6611 public style: google.api.ResourceDescriptor.Style[];
6612
6613 /**
6614 * Creates a new ResourceDescriptor instance using the specified properties.
6615 * @param [properties] Properties to set
6616 * @returns ResourceDescriptor instance
6617 */
6618 public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
6619
6620 /**
6621 * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
6622 * @param message ResourceDescriptor message or plain object to encode
6623 * @param [writer] Writer to encode to
6624 * @returns Writer
6625 */
6626 public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
6627
6628 /**
6629 * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
6630 * @param message ResourceDescriptor message or plain object to encode
6631 * @param [writer] Writer to encode to
6632 * @returns Writer
6633 */
6634 public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
6635
6636 /**
6637 * Decodes a ResourceDescriptor message from the specified reader or buffer.
6638 * @param reader Reader or buffer to decode from
6639 * @param [length] Message length if known beforehand
6640 * @returns ResourceDescriptor
6641 * @throws {Error} If the payload is not a reader or valid buffer
6642 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6643 */
6644 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
6645
6646 /**
6647 * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
6648 * @param reader Reader or buffer to decode from
6649 * @returns ResourceDescriptor
6650 * @throws {Error} If the payload is not a reader or valid buffer
6651 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6652 */
6653 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
6654
6655 /**
6656 * Verifies a ResourceDescriptor message.
6657 * @param message Plain object to verify
6658 * @returns `null` if valid, otherwise the reason why it is not
6659 */
6660 public static verify(message: { [k: string]: any }): (string|null);
6661
6662 /**
6663 * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
6664 * @param object Plain object
6665 * @returns ResourceDescriptor
6666 */
6667 public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
6668
6669 /**
6670 * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
6671 * @param message ResourceDescriptor
6672 * @param [options] Conversion options
6673 * @returns Plain object
6674 */
6675 public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
6676
6677 /**
6678 * Converts this ResourceDescriptor to JSON.
6679 * @returns JSON object
6680 */
6681 public toJSON(): { [k: string]: any };
6682 }
6683
6684 namespace ResourceDescriptor {
6685
6686 /** History enum. */
6687 enum History {
6688 HISTORY_UNSPECIFIED = 0,
6689 ORIGINALLY_SINGLE_PATTERN = 1,
6690 FUTURE_MULTI_PATTERN = 2
6691 }
6692
6693 /** Style enum. */
6694 enum Style {
6695 STYLE_UNSPECIFIED = 0,
6696 DECLARATIVE_FRIENDLY = 1
6697 }
6698 }
6699
6700 /** Properties of a ResourceReference. */
6701 interface IResourceReference {
6702
6703 /** ResourceReference type */
6704 type?: (string|null);
6705
6706 /** ResourceReference childType */
6707 childType?: (string|null);
6708 }
6709
6710 /** Represents a ResourceReference. */
6711 class ResourceReference implements IResourceReference {
6712
6713 /**
6714 * Constructs a new ResourceReference.
6715 * @param [properties] Properties to set
6716 */
6717 constructor(properties?: google.api.IResourceReference);
6718
6719 /** ResourceReference type. */
6720 public type: string;
6721
6722 /** ResourceReference childType. */
6723 public childType: string;
6724
6725 /**
6726 * Creates a new ResourceReference instance using the specified properties.
6727 * @param [properties] Properties to set
6728 * @returns ResourceReference instance
6729 */
6730 public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
6731
6732 /**
6733 * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
6734 * @param message ResourceReference message or plain object to encode
6735 * @param [writer] Writer to encode to
6736 * @returns Writer
6737 */
6738 public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
6739
6740 /**
6741 * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
6742 * @param message ResourceReference message or plain object to encode
6743 * @param [writer] Writer to encode to
6744 * @returns Writer
6745 */
6746 public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
6747
6748 /**
6749 * Decodes a ResourceReference message from the specified reader or buffer.
6750 * @param reader Reader or buffer to decode from
6751 * @param [length] Message length if known beforehand
6752 * @returns ResourceReference
6753 * @throws {Error} If the payload is not a reader or valid buffer
6754 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6755 */
6756 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
6757
6758 /**
6759 * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
6760 * @param reader Reader or buffer to decode from
6761 * @returns ResourceReference
6762 * @throws {Error} If the payload is not a reader or valid buffer
6763 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6764 */
6765 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
6766
6767 /**
6768 * Verifies a ResourceReference message.
6769 * @param message Plain object to verify
6770 * @returns `null` if valid, otherwise the reason why it is not
6771 */
6772 public static verify(message: { [k: string]: any }): (string|null);
6773
6774 /**
6775 * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
6776 * @param object Plain object
6777 * @returns ResourceReference
6778 */
6779 public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
6780
6781 /**
6782 * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
6783 * @param message ResourceReference
6784 * @param [options] Conversion options
6785 * @returns Plain object
6786 */
6787 public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
6788
6789 /**
6790 * Converts this ResourceReference to JSON.
6791 * @returns JSON object
6792 */
6793 public toJSON(): { [k: string]: any };
6794 }
6795 }
6796
6797 /** Namespace protobuf. */
6798 namespace protobuf {
6799
6800 /** Properties of a FileDescriptorSet. */
6801 interface IFileDescriptorSet {
6802
6803 /** FileDescriptorSet file */
6804 file?: (google.protobuf.IFileDescriptorProto[]|null);
6805 }
6806
6807 /** Represents a FileDescriptorSet. */
6808 class FileDescriptorSet implements IFileDescriptorSet {
6809
6810 /**
6811 * Constructs a new FileDescriptorSet.
6812 * @param [properties] Properties to set
6813 */
6814 constructor(properties?: google.protobuf.IFileDescriptorSet);
6815
6816 /** FileDescriptorSet file. */
6817 public file: google.protobuf.IFileDescriptorProto[];
6818
6819 /**
6820 * Creates a new FileDescriptorSet instance using the specified properties.
6821 * @param [properties] Properties to set
6822 * @returns FileDescriptorSet instance
6823 */
6824 public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
6825
6826 /**
6827 * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
6828 * @param message FileDescriptorSet message or plain object to encode
6829 * @param [writer] Writer to encode to
6830 * @returns Writer
6831 */
6832 public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
6833
6834 /**
6835 * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
6836 * @param message FileDescriptorSet message or plain object to encode
6837 * @param [writer] Writer to encode to
6838 * @returns Writer
6839 */
6840 public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
6841
6842 /**
6843 * Decodes a FileDescriptorSet message from the specified reader or buffer.
6844 * @param reader Reader or buffer to decode from
6845 * @param [length] Message length if known beforehand
6846 * @returns FileDescriptorSet
6847 * @throws {Error} If the payload is not a reader or valid buffer
6848 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6849 */
6850 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
6851
6852 /**
6853 * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
6854 * @param reader Reader or buffer to decode from
6855 * @returns FileDescriptorSet
6856 * @throws {Error} If the payload is not a reader or valid buffer
6857 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6858 */
6859 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
6860
6861 /**
6862 * Verifies a FileDescriptorSet message.
6863 * @param message Plain object to verify
6864 * @returns `null` if valid, otherwise the reason why it is not
6865 */
6866 public static verify(message: { [k: string]: any }): (string|null);
6867
6868 /**
6869 * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
6870 * @param object Plain object
6871 * @returns FileDescriptorSet
6872 */
6873 public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
6874
6875 /**
6876 * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
6877 * @param message FileDescriptorSet
6878 * @param [options] Conversion options
6879 * @returns Plain object
6880 */
6881 public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
6882
6883 /**
6884 * Converts this FileDescriptorSet to JSON.
6885 * @returns JSON object
6886 */
6887 public toJSON(): { [k: string]: any };
6888 }
6889
6890 /** Properties of a FileDescriptorProto. */
6891 interface IFileDescriptorProto {
6892
6893 /** FileDescriptorProto name */
6894 name?: (string|null);
6895
6896 /** FileDescriptorProto package */
6897 "package"?: (string|null);
6898
6899 /** FileDescriptorProto dependency */
6900 dependency?: (string[]|null);
6901
6902 /** FileDescriptorProto publicDependency */
6903 publicDependency?: (number[]|null);
6904
6905 /** FileDescriptorProto weakDependency */
6906 weakDependency?: (number[]|null);
6907
6908 /** FileDescriptorProto messageType */
6909 messageType?: (google.protobuf.IDescriptorProto[]|null);
6910
6911 /** FileDescriptorProto enumType */
6912 enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
6913
6914 /** FileDescriptorProto service */
6915 service?: (google.protobuf.IServiceDescriptorProto[]|null);
6916
6917 /** FileDescriptorProto extension */
6918 extension?: (google.protobuf.IFieldDescriptorProto[]|null);
6919
6920 /** FileDescriptorProto options */
6921 options?: (google.protobuf.IFileOptions|null);
6922
6923 /** FileDescriptorProto sourceCodeInfo */
6924 sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
6925
6926 /** FileDescriptorProto syntax */
6927 syntax?: (string|null);
6928 }
6929
6930 /** Represents a FileDescriptorProto. */
6931 class FileDescriptorProto implements IFileDescriptorProto {
6932
6933 /**
6934 * Constructs a new FileDescriptorProto.
6935 * @param [properties] Properties to set
6936 */
6937 constructor(properties?: google.protobuf.IFileDescriptorProto);
6938
6939 /** FileDescriptorProto name. */
6940 public name: string;
6941
6942 /** FileDescriptorProto package. */
6943 public package: string;
6944
6945 /** FileDescriptorProto dependency. */
6946 public dependency: string[];
6947
6948 /** FileDescriptorProto publicDependency. */
6949 public publicDependency: number[];
6950
6951 /** FileDescriptorProto weakDependency. */
6952 public weakDependency: number[];
6953
6954 /** FileDescriptorProto messageType. */
6955 public messageType: google.protobuf.IDescriptorProto[];
6956
6957 /** FileDescriptorProto enumType. */
6958 public enumType: google.protobuf.IEnumDescriptorProto[];
6959
6960 /** FileDescriptorProto service. */
6961 public service: google.protobuf.IServiceDescriptorProto[];
6962
6963 /** FileDescriptorProto extension. */
6964 public extension: google.protobuf.IFieldDescriptorProto[];
6965
6966 /** FileDescriptorProto options. */
6967 public options?: (google.protobuf.IFileOptions|null);
6968
6969 /** FileDescriptorProto sourceCodeInfo. */
6970 public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
6971
6972 /** FileDescriptorProto syntax. */
6973 public syntax: string;
6974
6975 /**
6976 * Creates a new FileDescriptorProto instance using the specified properties.
6977 * @param [properties] Properties to set
6978 * @returns FileDescriptorProto instance
6979 */
6980 public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
6981
6982 /**
6983 * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
6984 * @param message FileDescriptorProto message or plain object to encode
6985 * @param [writer] Writer to encode to
6986 * @returns Writer
6987 */
6988 public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
6989
6990 /**
6991 * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
6992 * @param message FileDescriptorProto message or plain object to encode
6993 * @param [writer] Writer to encode to
6994 * @returns Writer
6995 */
6996 public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
6997
6998 /**
6999 * Decodes a FileDescriptorProto message from the specified reader or buffer.
7000 * @param reader Reader or buffer to decode from
7001 * @param [length] Message length if known beforehand
7002 * @returns FileDescriptorProto
7003 * @throws {Error} If the payload is not a reader or valid buffer
7004 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7005 */
7006 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
7007
7008 /**
7009 * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
7010 * @param reader Reader or buffer to decode from
7011 * @returns FileDescriptorProto
7012 * @throws {Error} If the payload is not a reader or valid buffer
7013 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7014 */
7015 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
7016
7017 /**
7018 * Verifies a FileDescriptorProto message.
7019 * @param message Plain object to verify
7020 * @returns `null` if valid, otherwise the reason why it is not
7021 */
7022 public static verify(message: { [k: string]: any }): (string|null);
7023
7024 /**
7025 * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
7026 * @param object Plain object
7027 * @returns FileDescriptorProto
7028 */
7029 public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
7030
7031 /**
7032 * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
7033 * @param message FileDescriptorProto
7034 * @param [options] Conversion options
7035 * @returns Plain object
7036 */
7037 public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7038
7039 /**
7040 * Converts this FileDescriptorProto to JSON.
7041 * @returns JSON object
7042 */
7043 public toJSON(): { [k: string]: any };
7044 }
7045
7046 /** Properties of a DescriptorProto. */
7047 interface IDescriptorProto {
7048
7049 /** DescriptorProto name */
7050 name?: (string|null);
7051
7052 /** DescriptorProto field */
7053 field?: (google.protobuf.IFieldDescriptorProto[]|null);
7054
7055 /** DescriptorProto extension */
7056 extension?: (google.protobuf.IFieldDescriptorProto[]|null);
7057
7058 /** DescriptorProto nestedType */
7059 nestedType?: (google.protobuf.IDescriptorProto[]|null);
7060
7061 /** DescriptorProto enumType */
7062 enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
7063
7064 /** DescriptorProto extensionRange */
7065 extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
7066
7067 /** DescriptorProto oneofDecl */
7068 oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
7069
7070 /** DescriptorProto options */
7071 options?: (google.protobuf.IMessageOptions|null);
7072
7073 /** DescriptorProto reservedRange */
7074 reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
7075
7076 /** DescriptorProto reservedName */
7077 reservedName?: (string[]|null);
7078 }
7079
7080 /** Represents a DescriptorProto. */
7081 class DescriptorProto implements IDescriptorProto {
7082
7083 /**
7084 * Constructs a new DescriptorProto.
7085 * @param [properties] Properties to set
7086 */
7087 constructor(properties?: google.protobuf.IDescriptorProto);
7088
7089 /** DescriptorProto name. */
7090 public name: string;
7091
7092 /** DescriptorProto field. */
7093 public field: google.protobuf.IFieldDescriptorProto[];
7094
7095 /** DescriptorProto extension. */
7096 public extension: google.protobuf.IFieldDescriptorProto[];
7097
7098 /** DescriptorProto nestedType. */
7099 public nestedType: google.protobuf.IDescriptorProto[];
7100
7101 /** DescriptorProto enumType. */
7102 public enumType: google.protobuf.IEnumDescriptorProto[];
7103
7104 /** DescriptorProto extensionRange. */
7105 public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
7106
7107 /** DescriptorProto oneofDecl. */
7108 public oneofDecl: google.protobuf.IOneofDescriptorProto[];
7109
7110 /** DescriptorProto options. */
7111 public options?: (google.protobuf.IMessageOptions|null);
7112
7113 /** DescriptorProto reservedRange. */
7114 public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
7115
7116 /** DescriptorProto reservedName. */
7117 public reservedName: string[];
7118
7119 /**
7120 * Creates a new DescriptorProto instance using the specified properties.
7121 * @param [properties] Properties to set
7122 * @returns DescriptorProto instance
7123 */
7124 public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
7125
7126 /**
7127 * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
7128 * @param message DescriptorProto message or plain object to encode
7129 * @param [writer] Writer to encode to
7130 * @returns Writer
7131 */
7132 public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7133
7134 /**
7135 * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
7136 * @param message DescriptorProto message or plain object to encode
7137 * @param [writer] Writer to encode to
7138 * @returns Writer
7139 */
7140 public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7141
7142 /**
7143 * Decodes a DescriptorProto message from the specified reader or buffer.
7144 * @param reader Reader or buffer to decode from
7145 * @param [length] Message length if known beforehand
7146 * @returns DescriptorProto
7147 * @throws {Error} If the payload is not a reader or valid buffer
7148 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7149 */
7150 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
7151
7152 /**
7153 * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
7154 * @param reader Reader or buffer to decode from
7155 * @returns DescriptorProto
7156 * @throws {Error} If the payload is not a reader or valid buffer
7157 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7158 */
7159 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
7160
7161 /**
7162 * Verifies a DescriptorProto message.
7163 * @param message Plain object to verify
7164 * @returns `null` if valid, otherwise the reason why it is not
7165 */
7166 public static verify(message: { [k: string]: any }): (string|null);
7167
7168 /**
7169 * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
7170 * @param object Plain object
7171 * @returns DescriptorProto
7172 */
7173 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
7174
7175 /**
7176 * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
7177 * @param message DescriptorProto
7178 * @param [options] Conversion options
7179 * @returns Plain object
7180 */
7181 public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7182
7183 /**
7184 * Converts this DescriptorProto to JSON.
7185 * @returns JSON object
7186 */
7187 public toJSON(): { [k: string]: any };
7188 }
7189
7190 namespace DescriptorProto {
7191
7192 /** Properties of an ExtensionRange. */
7193 interface IExtensionRange {
7194
7195 /** ExtensionRange start */
7196 start?: (number|null);
7197
7198 /** ExtensionRange end */
7199 end?: (number|null);
7200
7201 /** ExtensionRange options */
7202 options?: (google.protobuf.IExtensionRangeOptions|null);
7203 }
7204
7205 /** Represents an ExtensionRange. */
7206 class ExtensionRange implements IExtensionRange {
7207
7208 /**
7209 * Constructs a new ExtensionRange.
7210 * @param [properties] Properties to set
7211 */
7212 constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
7213
7214 /** ExtensionRange start. */
7215 public start: number;
7216
7217 /** ExtensionRange end. */
7218 public end: number;
7219
7220 /** ExtensionRange options. */
7221 public options?: (google.protobuf.IExtensionRangeOptions|null);
7222
7223 /**
7224 * Creates a new ExtensionRange instance using the specified properties.
7225 * @param [properties] Properties to set
7226 * @returns ExtensionRange instance
7227 */
7228 public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
7229
7230 /**
7231 * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
7232 * @param message ExtensionRange message or plain object to encode
7233 * @param [writer] Writer to encode to
7234 * @returns Writer
7235 */
7236 public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
7237
7238 /**
7239 * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
7240 * @param message ExtensionRange message or plain object to encode
7241 * @param [writer] Writer to encode to
7242 * @returns Writer
7243 */
7244 public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
7245
7246 /**
7247 * Decodes an ExtensionRange message from the specified reader or buffer.
7248 * @param reader Reader or buffer to decode from
7249 * @param [length] Message length if known beforehand
7250 * @returns ExtensionRange
7251 * @throws {Error} If the payload is not a reader or valid buffer
7252 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7253 */
7254 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
7255
7256 /**
7257 * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
7258 * @param reader Reader or buffer to decode from
7259 * @returns ExtensionRange
7260 * @throws {Error} If the payload is not a reader or valid buffer
7261 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7262 */
7263 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
7264
7265 /**
7266 * Verifies an ExtensionRange message.
7267 * @param message Plain object to verify
7268 * @returns `null` if valid, otherwise the reason why it is not
7269 */
7270 public static verify(message: { [k: string]: any }): (string|null);
7271
7272 /**
7273 * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
7274 * @param object Plain object
7275 * @returns ExtensionRange
7276 */
7277 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
7278
7279 /**
7280 * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
7281 * @param message ExtensionRange
7282 * @param [options] Conversion options
7283 * @returns Plain object
7284 */
7285 public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
7286
7287 /**
7288 * Converts this ExtensionRange to JSON.
7289 * @returns JSON object
7290 */
7291 public toJSON(): { [k: string]: any };
7292 }
7293
7294 /** Properties of a ReservedRange. */
7295 interface IReservedRange {
7296
7297 /** ReservedRange start */
7298 start?: (number|null);
7299
7300 /** ReservedRange end */
7301 end?: (number|null);
7302 }
7303
7304 /** Represents a ReservedRange. */
7305 class ReservedRange implements IReservedRange {
7306
7307 /**
7308 * Constructs a new ReservedRange.
7309 * @param [properties] Properties to set
7310 */
7311 constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
7312
7313 /** ReservedRange start. */
7314 public start: number;
7315
7316 /** ReservedRange end. */
7317 public end: number;
7318
7319 /**
7320 * Creates a new ReservedRange instance using the specified properties.
7321 * @param [properties] Properties to set
7322 * @returns ReservedRange instance
7323 */
7324 public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
7325
7326 /**
7327 * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
7328 * @param message ReservedRange message or plain object to encode
7329 * @param [writer] Writer to encode to
7330 * @returns Writer
7331 */
7332 public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
7333
7334 /**
7335 * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
7336 * @param message ReservedRange message or plain object to encode
7337 * @param [writer] Writer to encode to
7338 * @returns Writer
7339 */
7340 public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
7341
7342 /**
7343 * Decodes a ReservedRange message from the specified reader or buffer.
7344 * @param reader Reader or buffer to decode from
7345 * @param [length] Message length if known beforehand
7346 * @returns ReservedRange
7347 * @throws {Error} If the payload is not a reader or valid buffer
7348 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7349 */
7350 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
7351
7352 /**
7353 * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
7354 * @param reader Reader or buffer to decode from
7355 * @returns ReservedRange
7356 * @throws {Error} If the payload is not a reader or valid buffer
7357 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7358 */
7359 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
7360
7361 /**
7362 * Verifies a ReservedRange message.
7363 * @param message Plain object to verify
7364 * @returns `null` if valid, otherwise the reason why it is not
7365 */
7366 public static verify(message: { [k: string]: any }): (string|null);
7367
7368 /**
7369 * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
7370 * @param object Plain object
7371 * @returns ReservedRange
7372 */
7373 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
7374
7375 /**
7376 * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
7377 * @param message ReservedRange
7378 * @param [options] Conversion options
7379 * @returns Plain object
7380 */
7381 public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
7382
7383 /**
7384 * Converts this ReservedRange to JSON.
7385 * @returns JSON object
7386 */
7387 public toJSON(): { [k: string]: any };
7388 }
7389 }
7390
7391 /** Properties of an ExtensionRangeOptions. */
7392 interface IExtensionRangeOptions {
7393
7394 /** ExtensionRangeOptions uninterpretedOption */
7395 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
7396 }
7397
7398 /** Represents an ExtensionRangeOptions. */
7399 class ExtensionRangeOptions implements IExtensionRangeOptions {
7400
7401 /**
7402 * Constructs a new ExtensionRangeOptions.
7403 * @param [properties] Properties to set
7404 */
7405 constructor(properties?: google.protobuf.IExtensionRangeOptions);
7406
7407 /** ExtensionRangeOptions uninterpretedOption. */
7408 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
7409
7410 /**
7411 * Creates a new ExtensionRangeOptions instance using the specified properties.
7412 * @param [properties] Properties to set
7413 * @returns ExtensionRangeOptions instance
7414 */
7415 public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
7416
7417 /**
7418 * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
7419 * @param message ExtensionRangeOptions message or plain object to encode
7420 * @param [writer] Writer to encode to
7421 * @returns Writer
7422 */
7423 public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
7424
7425 /**
7426 * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
7427 * @param message ExtensionRangeOptions message or plain object to encode
7428 * @param [writer] Writer to encode to
7429 * @returns Writer
7430 */
7431 public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
7432
7433 /**
7434 * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
7435 * @param reader Reader or buffer to decode from
7436 * @param [length] Message length if known beforehand
7437 * @returns ExtensionRangeOptions
7438 * @throws {Error} If the payload is not a reader or valid buffer
7439 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7440 */
7441 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
7442
7443 /**
7444 * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
7445 * @param reader Reader or buffer to decode from
7446 * @returns ExtensionRangeOptions
7447 * @throws {Error} If the payload is not a reader or valid buffer
7448 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7449 */
7450 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
7451
7452 /**
7453 * Verifies an ExtensionRangeOptions message.
7454 * @param message Plain object to verify
7455 * @returns `null` if valid, otherwise the reason why it is not
7456 */
7457 public static verify(message: { [k: string]: any }): (string|null);
7458
7459 /**
7460 * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
7461 * @param object Plain object
7462 * @returns ExtensionRangeOptions
7463 */
7464 public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
7465
7466 /**
7467 * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
7468 * @param message ExtensionRangeOptions
7469 * @param [options] Conversion options
7470 * @returns Plain object
7471 */
7472 public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
7473
7474 /**
7475 * Converts this ExtensionRangeOptions to JSON.
7476 * @returns JSON object
7477 */
7478 public toJSON(): { [k: string]: any };
7479 }
7480
7481 /** Properties of a FieldDescriptorProto. */
7482 interface IFieldDescriptorProto {
7483
7484 /** FieldDescriptorProto name */
7485 name?: (string|null);
7486
7487 /** FieldDescriptorProto number */
7488 number?: (number|null);
7489
7490 /** FieldDescriptorProto label */
7491 label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
7492
7493 /** FieldDescriptorProto type */
7494 type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
7495
7496 /** FieldDescriptorProto typeName */
7497 typeName?: (string|null);
7498
7499 /** FieldDescriptorProto extendee */
7500 extendee?: (string|null);
7501
7502 /** FieldDescriptorProto defaultValue */
7503 defaultValue?: (string|null);
7504
7505 /** FieldDescriptorProto oneofIndex */
7506 oneofIndex?: (number|null);
7507
7508 /** FieldDescriptorProto jsonName */
7509 jsonName?: (string|null);
7510
7511 /** FieldDescriptorProto options */
7512 options?: (google.protobuf.IFieldOptions|null);
7513
7514 /** FieldDescriptorProto proto3Optional */
7515 proto3Optional?: (boolean|null);
7516 }
7517
7518 /** Represents a FieldDescriptorProto. */
7519 class FieldDescriptorProto implements IFieldDescriptorProto {
7520
7521 /**
7522 * Constructs a new FieldDescriptorProto.
7523 * @param [properties] Properties to set
7524 */
7525 constructor(properties?: google.protobuf.IFieldDescriptorProto);
7526
7527 /** FieldDescriptorProto name. */
7528 public name: string;
7529
7530 /** FieldDescriptorProto number. */
7531 public number: number;
7532
7533 /** FieldDescriptorProto label. */
7534 public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
7535
7536 /** FieldDescriptorProto type. */
7537 public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
7538
7539 /** FieldDescriptorProto typeName. */
7540 public typeName: string;
7541
7542 /** FieldDescriptorProto extendee. */
7543 public extendee: string;
7544
7545 /** FieldDescriptorProto defaultValue. */
7546 public defaultValue: string;
7547
7548 /** FieldDescriptorProto oneofIndex. */
7549 public oneofIndex: number;
7550
7551 /** FieldDescriptorProto jsonName. */
7552 public jsonName: string;
7553
7554 /** FieldDescriptorProto options. */
7555 public options?: (google.protobuf.IFieldOptions|null);
7556
7557 /** FieldDescriptorProto proto3Optional. */
7558 public proto3Optional: boolean;
7559
7560 /**
7561 * Creates a new FieldDescriptorProto instance using the specified properties.
7562 * @param [properties] Properties to set
7563 * @returns FieldDescriptorProto instance
7564 */
7565 public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
7566
7567 /**
7568 * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
7569 * @param message FieldDescriptorProto message or plain object to encode
7570 * @param [writer] Writer to encode to
7571 * @returns Writer
7572 */
7573 public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7574
7575 /**
7576 * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
7577 * @param message FieldDescriptorProto message or plain object to encode
7578 * @param [writer] Writer to encode to
7579 * @returns Writer
7580 */
7581 public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7582
7583 /**
7584 * Decodes a FieldDescriptorProto message from the specified reader or buffer.
7585 * @param reader Reader or buffer to decode from
7586 * @param [length] Message length if known beforehand
7587 * @returns FieldDescriptorProto
7588 * @throws {Error} If the payload is not a reader or valid buffer
7589 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7590 */
7591 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
7592
7593 /**
7594 * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
7595 * @param reader Reader or buffer to decode from
7596 * @returns FieldDescriptorProto
7597 * @throws {Error} If the payload is not a reader or valid buffer
7598 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7599 */
7600 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
7601
7602 /**
7603 * Verifies a FieldDescriptorProto message.
7604 * @param message Plain object to verify
7605 * @returns `null` if valid, otherwise the reason why it is not
7606 */
7607 public static verify(message: { [k: string]: any }): (string|null);
7608
7609 /**
7610 * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
7611 * @param object Plain object
7612 * @returns FieldDescriptorProto
7613 */
7614 public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
7615
7616 /**
7617 * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
7618 * @param message FieldDescriptorProto
7619 * @param [options] Conversion options
7620 * @returns Plain object
7621 */
7622 public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7623
7624 /**
7625 * Converts this FieldDescriptorProto to JSON.
7626 * @returns JSON object
7627 */
7628 public toJSON(): { [k: string]: any };
7629 }
7630
7631 namespace FieldDescriptorProto {
7632
7633 /** Type enum. */
7634 enum Type {
7635 TYPE_DOUBLE = 1,
7636 TYPE_FLOAT = 2,
7637 TYPE_INT64 = 3,
7638 TYPE_UINT64 = 4,
7639 TYPE_INT32 = 5,
7640 TYPE_FIXED64 = 6,
7641 TYPE_FIXED32 = 7,
7642 TYPE_BOOL = 8,
7643 TYPE_STRING = 9,
7644 TYPE_GROUP = 10,
7645 TYPE_MESSAGE = 11,
7646 TYPE_BYTES = 12,
7647 TYPE_UINT32 = 13,
7648 TYPE_ENUM = 14,
7649 TYPE_SFIXED32 = 15,
7650 TYPE_SFIXED64 = 16,
7651 TYPE_SINT32 = 17,
7652 TYPE_SINT64 = 18
7653 }
7654
7655 /** Label enum. */
7656 enum Label {
7657 LABEL_OPTIONAL = 1,
7658 LABEL_REQUIRED = 2,
7659 LABEL_REPEATED = 3
7660 }
7661 }
7662
7663 /** Properties of an OneofDescriptorProto. */
7664 interface IOneofDescriptorProto {
7665
7666 /** OneofDescriptorProto name */
7667 name?: (string|null);
7668
7669 /** OneofDescriptorProto options */
7670 options?: (google.protobuf.IOneofOptions|null);
7671 }
7672
7673 /** Represents an OneofDescriptorProto. */
7674 class OneofDescriptorProto implements IOneofDescriptorProto {
7675
7676 /**
7677 * Constructs a new OneofDescriptorProto.
7678 * @param [properties] Properties to set
7679 */
7680 constructor(properties?: google.protobuf.IOneofDescriptorProto);
7681
7682 /** OneofDescriptorProto name. */
7683 public name: string;
7684
7685 /** OneofDescriptorProto options. */
7686 public options?: (google.protobuf.IOneofOptions|null);
7687
7688 /**
7689 * Creates a new OneofDescriptorProto instance using the specified properties.
7690 * @param [properties] Properties to set
7691 * @returns OneofDescriptorProto instance
7692 */
7693 public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
7694
7695 /**
7696 * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
7697 * @param message OneofDescriptorProto message or plain object to encode
7698 * @param [writer] Writer to encode to
7699 * @returns Writer
7700 */
7701 public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7702
7703 /**
7704 * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
7705 * @param message OneofDescriptorProto message or plain object to encode
7706 * @param [writer] Writer to encode to
7707 * @returns Writer
7708 */
7709 public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7710
7711 /**
7712 * Decodes an OneofDescriptorProto message from the specified reader or buffer.
7713 * @param reader Reader or buffer to decode from
7714 * @param [length] Message length if known beforehand
7715 * @returns OneofDescriptorProto
7716 * @throws {Error} If the payload is not a reader or valid buffer
7717 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7718 */
7719 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
7720
7721 /**
7722 * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
7723 * @param reader Reader or buffer to decode from
7724 * @returns OneofDescriptorProto
7725 * @throws {Error} If the payload is not a reader or valid buffer
7726 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7727 */
7728 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
7729
7730 /**
7731 * Verifies an OneofDescriptorProto message.
7732 * @param message Plain object to verify
7733 * @returns `null` if valid, otherwise the reason why it is not
7734 */
7735 public static verify(message: { [k: string]: any }): (string|null);
7736
7737 /**
7738 * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
7739 * @param object Plain object
7740 * @returns OneofDescriptorProto
7741 */
7742 public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
7743
7744 /**
7745 * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
7746 * @param message OneofDescriptorProto
7747 * @param [options] Conversion options
7748 * @returns Plain object
7749 */
7750 public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7751
7752 /**
7753 * Converts this OneofDescriptorProto to JSON.
7754 * @returns JSON object
7755 */
7756 public toJSON(): { [k: string]: any };
7757 }
7758
7759 /** Properties of an EnumDescriptorProto. */
7760 interface IEnumDescriptorProto {
7761
7762 /** EnumDescriptorProto name */
7763 name?: (string|null);
7764
7765 /** EnumDescriptorProto value */
7766 value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
7767
7768 /** EnumDescriptorProto options */
7769 options?: (google.protobuf.IEnumOptions|null);
7770
7771 /** EnumDescriptorProto reservedRange */
7772 reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
7773
7774 /** EnumDescriptorProto reservedName */
7775 reservedName?: (string[]|null);
7776 }
7777
7778 /** Represents an EnumDescriptorProto. */
7779 class EnumDescriptorProto implements IEnumDescriptorProto {
7780
7781 /**
7782 * Constructs a new EnumDescriptorProto.
7783 * @param [properties] Properties to set
7784 */
7785 constructor(properties?: google.protobuf.IEnumDescriptorProto);
7786
7787 /** EnumDescriptorProto name. */
7788 public name: string;
7789
7790 /** EnumDescriptorProto value. */
7791 public value: google.protobuf.IEnumValueDescriptorProto[];
7792
7793 /** EnumDescriptorProto options. */
7794 public options?: (google.protobuf.IEnumOptions|null);
7795
7796 /** EnumDescriptorProto reservedRange. */
7797 public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
7798
7799 /** EnumDescriptorProto reservedName. */
7800 public reservedName: string[];
7801
7802 /**
7803 * Creates a new EnumDescriptorProto instance using the specified properties.
7804 * @param [properties] Properties to set
7805 * @returns EnumDescriptorProto instance
7806 */
7807 public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
7808
7809 /**
7810 * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
7811 * @param message EnumDescriptorProto message or plain object to encode
7812 * @param [writer] Writer to encode to
7813 * @returns Writer
7814 */
7815 public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7816
7817 /**
7818 * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
7819 * @param message EnumDescriptorProto message or plain object to encode
7820 * @param [writer] Writer to encode to
7821 * @returns Writer
7822 */
7823 public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7824
7825 /**
7826 * Decodes an EnumDescriptorProto message from the specified reader or buffer.
7827 * @param reader Reader or buffer to decode from
7828 * @param [length] Message length if known beforehand
7829 * @returns EnumDescriptorProto
7830 * @throws {Error} If the payload is not a reader or valid buffer
7831 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7832 */
7833 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
7834
7835 /**
7836 * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
7837 * @param reader Reader or buffer to decode from
7838 * @returns EnumDescriptorProto
7839 * @throws {Error} If the payload is not a reader or valid buffer
7840 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7841 */
7842 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
7843
7844 /**
7845 * Verifies an EnumDescriptorProto message.
7846 * @param message Plain object to verify
7847 * @returns `null` if valid, otherwise the reason why it is not
7848 */
7849 public static verify(message: { [k: string]: any }): (string|null);
7850
7851 /**
7852 * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
7853 * @param object Plain object
7854 * @returns EnumDescriptorProto
7855 */
7856 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
7857
7858 /**
7859 * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
7860 * @param message EnumDescriptorProto
7861 * @param [options] Conversion options
7862 * @returns Plain object
7863 */
7864 public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7865
7866 /**
7867 * Converts this EnumDescriptorProto to JSON.
7868 * @returns JSON object
7869 */
7870 public toJSON(): { [k: string]: any };
7871 }
7872
7873 namespace EnumDescriptorProto {
7874
7875 /** Properties of an EnumReservedRange. */
7876 interface IEnumReservedRange {
7877
7878 /** EnumReservedRange start */
7879 start?: (number|null);
7880
7881 /** EnumReservedRange end */
7882 end?: (number|null);
7883 }
7884
7885 /** Represents an EnumReservedRange. */
7886 class EnumReservedRange implements IEnumReservedRange {
7887
7888 /**
7889 * Constructs a new EnumReservedRange.
7890 * @param [properties] Properties to set
7891 */
7892 constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
7893
7894 /** EnumReservedRange start. */
7895 public start: number;
7896
7897 /** EnumReservedRange end. */
7898 public end: number;
7899
7900 /**
7901 * Creates a new EnumReservedRange instance using the specified properties.
7902 * @param [properties] Properties to set
7903 * @returns EnumReservedRange instance
7904 */
7905 public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
7906
7907 /**
7908 * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
7909 * @param message EnumReservedRange message or plain object to encode
7910 * @param [writer] Writer to encode to
7911 * @returns Writer
7912 */
7913 public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
7914
7915 /**
7916 * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
7917 * @param message EnumReservedRange message or plain object to encode
7918 * @param [writer] Writer to encode to
7919 * @returns Writer
7920 */
7921 public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
7922
7923 /**
7924 * Decodes an EnumReservedRange message from the specified reader or buffer.
7925 * @param reader Reader or buffer to decode from
7926 * @param [length] Message length if known beforehand
7927 * @returns EnumReservedRange
7928 * @throws {Error} If the payload is not a reader or valid buffer
7929 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7930 */
7931 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
7932
7933 /**
7934 * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
7935 * @param reader Reader or buffer to decode from
7936 * @returns EnumReservedRange
7937 * @throws {Error} If the payload is not a reader or valid buffer
7938 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7939 */
7940 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
7941
7942 /**
7943 * Verifies an EnumReservedRange message.
7944 * @param message Plain object to verify
7945 * @returns `null` if valid, otherwise the reason why it is not
7946 */
7947 public static verify(message: { [k: string]: any }): (string|null);
7948
7949 /**
7950 * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
7951 * @param object Plain object
7952 * @returns EnumReservedRange
7953 */
7954 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
7955
7956 /**
7957 * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
7958 * @param message EnumReservedRange
7959 * @param [options] Conversion options
7960 * @returns Plain object
7961 */
7962 public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
7963
7964 /**
7965 * Converts this EnumReservedRange to JSON.
7966 * @returns JSON object
7967 */
7968 public toJSON(): { [k: string]: any };
7969 }
7970 }
7971
7972 /** Properties of an EnumValueDescriptorProto. */
7973 interface IEnumValueDescriptorProto {
7974
7975 /** EnumValueDescriptorProto name */
7976 name?: (string|null);
7977
7978 /** EnumValueDescriptorProto number */
7979 number?: (number|null);
7980
7981 /** EnumValueDescriptorProto options */
7982 options?: (google.protobuf.IEnumValueOptions|null);
7983 }
7984
7985 /** Represents an EnumValueDescriptorProto. */
7986 class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
7987
7988 /**
7989 * Constructs a new EnumValueDescriptorProto.
7990 * @param [properties] Properties to set
7991 */
7992 constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
7993
7994 /** EnumValueDescriptorProto name. */
7995 public name: string;
7996
7997 /** EnumValueDescriptorProto number. */
7998 public number: number;
7999
8000 /** EnumValueDescriptorProto options. */
8001 public options?: (google.protobuf.IEnumValueOptions|null);
8002
8003 /**
8004 * Creates a new EnumValueDescriptorProto instance using the specified properties.
8005 * @param [properties] Properties to set
8006 * @returns EnumValueDescriptorProto instance
8007 */
8008 public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
8009
8010 /**
8011 * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
8012 * @param message EnumValueDescriptorProto message or plain object to encode
8013 * @param [writer] Writer to encode to
8014 * @returns Writer
8015 */
8016 public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8017
8018 /**
8019 * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
8020 * @param message EnumValueDescriptorProto message or plain object to encode
8021 * @param [writer] Writer to encode to
8022 * @returns Writer
8023 */
8024 public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8025
8026 /**
8027 * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
8028 * @param reader Reader or buffer to decode from
8029 * @param [length] Message length if known beforehand
8030 * @returns EnumValueDescriptorProto
8031 * @throws {Error} If the payload is not a reader or valid buffer
8032 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8033 */
8034 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
8035
8036 /**
8037 * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
8038 * @param reader Reader or buffer to decode from
8039 * @returns EnumValueDescriptorProto
8040 * @throws {Error} If the payload is not a reader or valid buffer
8041 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8042 */
8043 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
8044
8045 /**
8046 * Verifies an EnumValueDescriptorProto message.
8047 * @param message Plain object to verify
8048 * @returns `null` if valid, otherwise the reason why it is not
8049 */
8050 public static verify(message: { [k: string]: any }): (string|null);
8051
8052 /**
8053 * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
8054 * @param object Plain object
8055 * @returns EnumValueDescriptorProto
8056 */
8057 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
8058
8059 /**
8060 * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
8061 * @param message EnumValueDescriptorProto
8062 * @param [options] Conversion options
8063 * @returns Plain object
8064 */
8065 public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
8066
8067 /**
8068 * Converts this EnumValueDescriptorProto to JSON.
8069 * @returns JSON object
8070 */
8071 public toJSON(): { [k: string]: any };
8072 }
8073
8074 /** Properties of a ServiceDescriptorProto. */
8075 interface IServiceDescriptorProto {
8076
8077 /** ServiceDescriptorProto name */
8078 name?: (string|null);
8079
8080 /** ServiceDescriptorProto method */
8081 method?: (google.protobuf.IMethodDescriptorProto[]|null);
8082
8083 /** ServiceDescriptorProto options */
8084 options?: (google.protobuf.IServiceOptions|null);
8085 }
8086
8087 /** Represents a ServiceDescriptorProto. */
8088 class ServiceDescriptorProto implements IServiceDescriptorProto {
8089
8090 /**
8091 * Constructs a new ServiceDescriptorProto.
8092 * @param [properties] Properties to set
8093 */
8094 constructor(properties?: google.protobuf.IServiceDescriptorProto);
8095
8096 /** ServiceDescriptorProto name. */
8097 public name: string;
8098
8099 /** ServiceDescriptorProto method. */
8100 public method: google.protobuf.IMethodDescriptorProto[];
8101
8102 /** ServiceDescriptorProto options. */
8103 public options?: (google.protobuf.IServiceOptions|null);
8104
8105 /**
8106 * Creates a new ServiceDescriptorProto instance using the specified properties.
8107 * @param [properties] Properties to set
8108 * @returns ServiceDescriptorProto instance
8109 */
8110 public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
8111
8112 /**
8113 * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
8114 * @param message ServiceDescriptorProto message or plain object to encode
8115 * @param [writer] Writer to encode to
8116 * @returns Writer
8117 */
8118 public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8119
8120 /**
8121 * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
8122 * @param message ServiceDescriptorProto message or plain object to encode
8123 * @param [writer] Writer to encode to
8124 * @returns Writer
8125 */
8126 public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8127
8128 /**
8129 * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
8130 * @param reader Reader or buffer to decode from
8131 * @param [length] Message length if known beforehand
8132 * @returns ServiceDescriptorProto
8133 * @throws {Error} If the payload is not a reader or valid buffer
8134 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8135 */
8136 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
8137
8138 /**
8139 * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
8140 * @param reader Reader or buffer to decode from
8141 * @returns ServiceDescriptorProto
8142 * @throws {Error} If the payload is not a reader or valid buffer
8143 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8144 */
8145 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
8146
8147 /**
8148 * Verifies a ServiceDescriptorProto message.
8149 * @param message Plain object to verify
8150 * @returns `null` if valid, otherwise the reason why it is not
8151 */
8152 public static verify(message: { [k: string]: any }): (string|null);
8153
8154 /**
8155 * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
8156 * @param object Plain object
8157 * @returns ServiceDescriptorProto
8158 */
8159 public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
8160
8161 /**
8162 * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
8163 * @param message ServiceDescriptorProto
8164 * @param [options] Conversion options
8165 * @returns Plain object
8166 */
8167 public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
8168
8169 /**
8170 * Converts this ServiceDescriptorProto to JSON.
8171 * @returns JSON object
8172 */
8173 public toJSON(): { [k: string]: any };
8174 }
8175
8176 /** Properties of a MethodDescriptorProto. */
8177 interface IMethodDescriptorProto {
8178
8179 /** MethodDescriptorProto name */
8180 name?: (string|null);
8181
8182 /** MethodDescriptorProto inputType */
8183 inputType?: (string|null);
8184
8185 /** MethodDescriptorProto outputType */
8186 outputType?: (string|null);
8187
8188 /** MethodDescriptorProto options */
8189 options?: (google.protobuf.IMethodOptions|null);
8190
8191 /** MethodDescriptorProto clientStreaming */
8192 clientStreaming?: (boolean|null);
8193
8194 /** MethodDescriptorProto serverStreaming */
8195 serverStreaming?: (boolean|null);
8196 }
8197
8198 /** Represents a MethodDescriptorProto. */
8199 class MethodDescriptorProto implements IMethodDescriptorProto {
8200
8201 /**
8202 * Constructs a new MethodDescriptorProto.
8203 * @param [properties] Properties to set
8204 */
8205 constructor(properties?: google.protobuf.IMethodDescriptorProto);
8206
8207 /** MethodDescriptorProto name. */
8208 public name: string;
8209
8210 /** MethodDescriptorProto inputType. */
8211 public inputType: string;
8212
8213 /** MethodDescriptorProto outputType. */
8214 public outputType: string;
8215
8216 /** MethodDescriptorProto options. */
8217 public options?: (google.protobuf.IMethodOptions|null);
8218
8219 /** MethodDescriptorProto clientStreaming. */
8220 public clientStreaming: boolean;
8221
8222 /** MethodDescriptorProto serverStreaming. */
8223 public serverStreaming: boolean;
8224
8225 /**
8226 * Creates a new MethodDescriptorProto instance using the specified properties.
8227 * @param [properties] Properties to set
8228 * @returns MethodDescriptorProto instance
8229 */
8230 public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
8231
8232 /**
8233 * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
8234 * @param message MethodDescriptorProto message or plain object to encode
8235 * @param [writer] Writer to encode to
8236 * @returns Writer
8237 */
8238 public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8239
8240 /**
8241 * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
8242 * @param message MethodDescriptorProto message or plain object to encode
8243 * @param [writer] Writer to encode to
8244 * @returns Writer
8245 */
8246 public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8247
8248 /**
8249 * Decodes a MethodDescriptorProto message from the specified reader or buffer.
8250 * @param reader Reader or buffer to decode from
8251 * @param [length] Message length if known beforehand
8252 * @returns MethodDescriptorProto
8253 * @throws {Error} If the payload is not a reader or valid buffer
8254 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8255 */
8256 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
8257
8258 /**
8259 * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
8260 * @param reader Reader or buffer to decode from
8261 * @returns MethodDescriptorProto
8262 * @throws {Error} If the payload is not a reader or valid buffer
8263 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8264 */
8265 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
8266
8267 /**
8268 * Verifies a MethodDescriptorProto message.
8269 * @param message Plain object to verify
8270 * @returns `null` if valid, otherwise the reason why it is not
8271 */
8272 public static verify(message: { [k: string]: any }): (string|null);
8273
8274 /**
8275 * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
8276 * @param object Plain object
8277 * @returns MethodDescriptorProto
8278 */
8279 public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
8280
8281 /**
8282 * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
8283 * @param message MethodDescriptorProto
8284 * @param [options] Conversion options
8285 * @returns Plain object
8286 */
8287 public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
8288
8289 /**
8290 * Converts this MethodDescriptorProto to JSON.
8291 * @returns JSON object
8292 */
8293 public toJSON(): { [k: string]: any };
8294 }
8295
8296 /** Properties of a FileOptions. */
8297 interface IFileOptions {
8298
8299 /** FileOptions javaPackage */
8300 javaPackage?: (string|null);
8301
8302 /** FileOptions javaOuterClassname */
8303 javaOuterClassname?: (string|null);
8304
8305 /** FileOptions javaMultipleFiles */
8306 javaMultipleFiles?: (boolean|null);
8307
8308 /** FileOptions javaGenerateEqualsAndHash */
8309 javaGenerateEqualsAndHash?: (boolean|null);
8310
8311 /** FileOptions javaStringCheckUtf8 */
8312 javaStringCheckUtf8?: (boolean|null);
8313
8314 /** FileOptions optimizeFor */
8315 optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
8316
8317 /** FileOptions goPackage */
8318 goPackage?: (string|null);
8319
8320 /** FileOptions ccGenericServices */
8321 ccGenericServices?: (boolean|null);
8322
8323 /** FileOptions javaGenericServices */
8324 javaGenericServices?: (boolean|null);
8325
8326 /** FileOptions pyGenericServices */
8327 pyGenericServices?: (boolean|null);
8328
8329 /** FileOptions phpGenericServices */
8330 phpGenericServices?: (boolean|null);
8331
8332 /** FileOptions deprecated */
8333 deprecated?: (boolean|null);
8334
8335 /** FileOptions ccEnableArenas */
8336 ccEnableArenas?: (boolean|null);
8337
8338 /** FileOptions objcClassPrefix */
8339 objcClassPrefix?: (string|null);
8340
8341 /** FileOptions csharpNamespace */
8342 csharpNamespace?: (string|null);
8343
8344 /** FileOptions swiftPrefix */
8345 swiftPrefix?: (string|null);
8346
8347 /** FileOptions phpClassPrefix */
8348 phpClassPrefix?: (string|null);
8349
8350 /** FileOptions phpNamespace */
8351 phpNamespace?: (string|null);
8352
8353 /** FileOptions phpMetadataNamespace */
8354 phpMetadataNamespace?: (string|null);
8355
8356 /** FileOptions rubyPackage */
8357 rubyPackage?: (string|null);
8358
8359 /** FileOptions uninterpretedOption */
8360 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8361
8362 /** FileOptions .google.api.resourceDefinition */
8363 ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
8364 }
8365
8366 /** Represents a FileOptions. */
8367 class FileOptions implements IFileOptions {
8368
8369 /**
8370 * Constructs a new FileOptions.
8371 * @param [properties] Properties to set
8372 */
8373 constructor(properties?: google.protobuf.IFileOptions);
8374
8375 /** FileOptions javaPackage. */
8376 public javaPackage: string;
8377
8378 /** FileOptions javaOuterClassname. */
8379 public javaOuterClassname: string;
8380
8381 /** FileOptions javaMultipleFiles. */
8382 public javaMultipleFiles: boolean;
8383
8384 /** FileOptions javaGenerateEqualsAndHash. */
8385 public javaGenerateEqualsAndHash: boolean;
8386
8387 /** FileOptions javaStringCheckUtf8. */
8388 public javaStringCheckUtf8: boolean;
8389
8390 /** FileOptions optimizeFor. */
8391 public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
8392
8393 /** FileOptions goPackage. */
8394 public goPackage: string;
8395
8396 /** FileOptions ccGenericServices. */
8397 public ccGenericServices: boolean;
8398
8399 /** FileOptions javaGenericServices. */
8400 public javaGenericServices: boolean;
8401
8402 /** FileOptions pyGenericServices. */
8403 public pyGenericServices: boolean;
8404
8405 /** FileOptions phpGenericServices. */
8406 public phpGenericServices: boolean;
8407
8408 /** FileOptions deprecated. */
8409 public deprecated: boolean;
8410
8411 /** FileOptions ccEnableArenas. */
8412 public ccEnableArenas: boolean;
8413
8414 /** FileOptions objcClassPrefix. */
8415 public objcClassPrefix: string;
8416
8417 /** FileOptions csharpNamespace. */
8418 public csharpNamespace: string;
8419
8420 /** FileOptions swiftPrefix. */
8421 public swiftPrefix: string;
8422
8423 /** FileOptions phpClassPrefix. */
8424 public phpClassPrefix: string;
8425
8426 /** FileOptions phpNamespace. */
8427 public phpNamespace: string;
8428
8429 /** FileOptions phpMetadataNamespace. */
8430 public phpMetadataNamespace: string;
8431
8432 /** FileOptions rubyPackage. */
8433 public rubyPackage: string;
8434
8435 /** FileOptions uninterpretedOption. */
8436 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8437
8438 /**
8439 * Creates a new FileOptions instance using the specified properties.
8440 * @param [properties] Properties to set
8441 * @returns FileOptions instance
8442 */
8443 public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
8444
8445 /**
8446 * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
8447 * @param message FileOptions message or plain object to encode
8448 * @param [writer] Writer to encode to
8449 * @returns Writer
8450 */
8451 public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8452
8453 /**
8454 * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
8455 * @param message FileOptions message or plain object to encode
8456 * @param [writer] Writer to encode to
8457 * @returns Writer
8458 */
8459 public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8460
8461 /**
8462 * Decodes a FileOptions message from the specified reader or buffer.
8463 * @param reader Reader or buffer to decode from
8464 * @param [length] Message length if known beforehand
8465 * @returns FileOptions
8466 * @throws {Error} If the payload is not a reader or valid buffer
8467 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8468 */
8469 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
8470
8471 /**
8472 * Decodes a FileOptions message from the specified reader or buffer, length delimited.
8473 * @param reader Reader or buffer to decode from
8474 * @returns FileOptions
8475 * @throws {Error} If the payload is not a reader or valid buffer
8476 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8477 */
8478 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
8479
8480 /**
8481 * Verifies a FileOptions message.
8482 * @param message Plain object to verify
8483 * @returns `null` if valid, otherwise the reason why it is not
8484 */
8485 public static verify(message: { [k: string]: any }): (string|null);
8486
8487 /**
8488 * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
8489 * @param object Plain object
8490 * @returns FileOptions
8491 */
8492 public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
8493
8494 /**
8495 * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
8496 * @param message FileOptions
8497 * @param [options] Conversion options
8498 * @returns Plain object
8499 */
8500 public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8501
8502 /**
8503 * Converts this FileOptions to JSON.
8504 * @returns JSON object
8505 */
8506 public toJSON(): { [k: string]: any };
8507 }
8508
8509 namespace FileOptions {
8510
8511 /** OptimizeMode enum. */
8512 enum OptimizeMode {
8513 SPEED = 1,
8514 CODE_SIZE = 2,
8515 LITE_RUNTIME = 3
8516 }
8517 }
8518
8519 /** Properties of a MessageOptions. */
8520 interface IMessageOptions {
8521
8522 /** MessageOptions messageSetWireFormat */
8523 messageSetWireFormat?: (boolean|null);
8524
8525 /** MessageOptions noStandardDescriptorAccessor */
8526 noStandardDescriptorAccessor?: (boolean|null);
8527
8528 /** MessageOptions deprecated */
8529 deprecated?: (boolean|null);
8530
8531 /** MessageOptions mapEntry */
8532 mapEntry?: (boolean|null);
8533
8534 /** MessageOptions uninterpretedOption */
8535 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8536
8537 /** MessageOptions .google.api.resource */
8538 ".google.api.resource"?: (google.api.IResourceDescriptor|null);
8539 }
8540
8541 /** Represents a MessageOptions. */
8542 class MessageOptions implements IMessageOptions {
8543
8544 /**
8545 * Constructs a new MessageOptions.
8546 * @param [properties] Properties to set
8547 */
8548 constructor(properties?: google.protobuf.IMessageOptions);
8549
8550 /** MessageOptions messageSetWireFormat. */
8551 public messageSetWireFormat: boolean;
8552
8553 /** MessageOptions noStandardDescriptorAccessor. */
8554 public noStandardDescriptorAccessor: boolean;
8555
8556 /** MessageOptions deprecated. */
8557 public deprecated: boolean;
8558
8559 /** MessageOptions mapEntry. */
8560 public mapEntry: boolean;
8561
8562 /** MessageOptions uninterpretedOption. */
8563 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8564
8565 /**
8566 * Creates a new MessageOptions instance using the specified properties.
8567 * @param [properties] Properties to set
8568 * @returns MessageOptions instance
8569 */
8570 public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
8571
8572 /**
8573 * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
8574 * @param message MessageOptions message or plain object to encode
8575 * @param [writer] Writer to encode to
8576 * @returns Writer
8577 */
8578 public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8579
8580 /**
8581 * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
8582 * @param message MessageOptions message or plain object to encode
8583 * @param [writer] Writer to encode to
8584 * @returns Writer
8585 */
8586 public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8587
8588 /**
8589 * Decodes a MessageOptions message from the specified reader or buffer.
8590 * @param reader Reader or buffer to decode from
8591 * @param [length] Message length if known beforehand
8592 * @returns MessageOptions
8593 * @throws {Error} If the payload is not a reader or valid buffer
8594 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8595 */
8596 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
8597
8598 /**
8599 * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
8600 * @param reader Reader or buffer to decode from
8601 * @returns MessageOptions
8602 * @throws {Error} If the payload is not a reader or valid buffer
8603 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8604 */
8605 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
8606
8607 /**
8608 * Verifies a MessageOptions message.
8609 * @param message Plain object to verify
8610 * @returns `null` if valid, otherwise the reason why it is not
8611 */
8612 public static verify(message: { [k: string]: any }): (string|null);
8613
8614 /**
8615 * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
8616 * @param object Plain object
8617 * @returns MessageOptions
8618 */
8619 public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
8620
8621 /**
8622 * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
8623 * @param message MessageOptions
8624 * @param [options] Conversion options
8625 * @returns Plain object
8626 */
8627 public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8628
8629 /**
8630 * Converts this MessageOptions to JSON.
8631 * @returns JSON object
8632 */
8633 public toJSON(): { [k: string]: any };
8634 }
8635
8636 /** Properties of a FieldOptions. */
8637 interface IFieldOptions {
8638
8639 /** FieldOptions ctype */
8640 ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
8641
8642 /** FieldOptions packed */
8643 packed?: (boolean|null);
8644
8645 /** FieldOptions jstype */
8646 jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
8647
8648 /** FieldOptions lazy */
8649 lazy?: (boolean|null);
8650
8651 /** FieldOptions deprecated */
8652 deprecated?: (boolean|null);
8653
8654 /** FieldOptions weak */
8655 weak?: (boolean|null);
8656
8657 /** FieldOptions uninterpretedOption */
8658 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8659
8660 /** FieldOptions .google.api.fieldBehavior */
8661 ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
8662
8663 /** FieldOptions .google.api.resourceReference */
8664 ".google.api.resourceReference"?: (google.api.IResourceReference|null);
8665 }
8666
8667 /** Represents a FieldOptions. */
8668 class FieldOptions implements IFieldOptions {
8669
8670 /**
8671 * Constructs a new FieldOptions.
8672 * @param [properties] Properties to set
8673 */
8674 constructor(properties?: google.protobuf.IFieldOptions);
8675
8676 /** FieldOptions ctype. */
8677 public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
8678
8679 /** FieldOptions packed. */
8680 public packed: boolean;
8681
8682 /** FieldOptions jstype. */
8683 public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
8684
8685 /** FieldOptions lazy. */
8686 public lazy: boolean;
8687
8688 /** FieldOptions deprecated. */
8689 public deprecated: boolean;
8690
8691 /** FieldOptions weak. */
8692 public weak: boolean;
8693
8694 /** FieldOptions uninterpretedOption. */
8695 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8696
8697 /**
8698 * Creates a new FieldOptions instance using the specified properties.
8699 * @param [properties] Properties to set
8700 * @returns FieldOptions instance
8701 */
8702 public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
8703
8704 /**
8705 * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
8706 * @param message FieldOptions message or plain object to encode
8707 * @param [writer] Writer to encode to
8708 * @returns Writer
8709 */
8710 public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8711
8712 /**
8713 * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
8714 * @param message FieldOptions message or plain object to encode
8715 * @param [writer] Writer to encode to
8716 * @returns Writer
8717 */
8718 public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8719
8720 /**
8721 * Decodes a FieldOptions message from the specified reader or buffer.
8722 * @param reader Reader or buffer to decode from
8723 * @param [length] Message length if known beforehand
8724 * @returns FieldOptions
8725 * @throws {Error} If the payload is not a reader or valid buffer
8726 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8727 */
8728 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
8729
8730 /**
8731 * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
8732 * @param reader Reader or buffer to decode from
8733 * @returns FieldOptions
8734 * @throws {Error} If the payload is not a reader or valid buffer
8735 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8736 */
8737 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
8738
8739 /**
8740 * Verifies a FieldOptions message.
8741 * @param message Plain object to verify
8742 * @returns `null` if valid, otherwise the reason why it is not
8743 */
8744 public static verify(message: { [k: string]: any }): (string|null);
8745
8746 /**
8747 * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
8748 * @param object Plain object
8749 * @returns FieldOptions
8750 */
8751 public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
8752
8753 /**
8754 * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
8755 * @param message FieldOptions
8756 * @param [options] Conversion options
8757 * @returns Plain object
8758 */
8759 public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8760
8761 /**
8762 * Converts this FieldOptions to JSON.
8763 * @returns JSON object
8764 */
8765 public toJSON(): { [k: string]: any };
8766 }
8767
8768 namespace FieldOptions {
8769
8770 /** CType enum. */
8771 enum CType {
8772 STRING = 0,
8773 CORD = 1,
8774 STRING_PIECE = 2
8775 }
8776
8777 /** JSType enum. */
8778 enum JSType {
8779 JS_NORMAL = 0,
8780 JS_STRING = 1,
8781 JS_NUMBER = 2
8782 }
8783 }
8784
8785 /** Properties of an OneofOptions. */
8786 interface IOneofOptions {
8787
8788 /** OneofOptions uninterpretedOption */
8789 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8790 }
8791
8792 /** Represents an OneofOptions. */
8793 class OneofOptions implements IOneofOptions {
8794
8795 /**
8796 * Constructs a new OneofOptions.
8797 * @param [properties] Properties to set
8798 */
8799 constructor(properties?: google.protobuf.IOneofOptions);
8800
8801 /** OneofOptions uninterpretedOption. */
8802 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8803
8804 /**
8805 * Creates a new OneofOptions instance using the specified properties.
8806 * @param [properties] Properties to set
8807 * @returns OneofOptions instance
8808 */
8809 public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
8810
8811 /**
8812 * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
8813 * @param message OneofOptions message or plain object to encode
8814 * @param [writer] Writer to encode to
8815 * @returns Writer
8816 */
8817 public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8818
8819 /**
8820 * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
8821 * @param message OneofOptions message or plain object to encode
8822 * @param [writer] Writer to encode to
8823 * @returns Writer
8824 */
8825 public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8826
8827 /**
8828 * Decodes an OneofOptions message from the specified reader or buffer.
8829 * @param reader Reader or buffer to decode from
8830 * @param [length] Message length if known beforehand
8831 * @returns OneofOptions
8832 * @throws {Error} If the payload is not a reader or valid buffer
8833 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8834 */
8835 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
8836
8837 /**
8838 * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
8839 * @param reader Reader or buffer to decode from
8840 * @returns OneofOptions
8841 * @throws {Error} If the payload is not a reader or valid buffer
8842 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8843 */
8844 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
8845
8846 /**
8847 * Verifies an OneofOptions message.
8848 * @param message Plain object to verify
8849 * @returns `null` if valid, otherwise the reason why it is not
8850 */
8851 public static verify(message: { [k: string]: any }): (string|null);
8852
8853 /**
8854 * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
8855 * @param object Plain object
8856 * @returns OneofOptions
8857 */
8858 public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
8859
8860 /**
8861 * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
8862 * @param message OneofOptions
8863 * @param [options] Conversion options
8864 * @returns Plain object
8865 */
8866 public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8867
8868 /**
8869 * Converts this OneofOptions to JSON.
8870 * @returns JSON object
8871 */
8872 public toJSON(): { [k: string]: any };
8873 }
8874
8875 /** Properties of an EnumOptions. */
8876 interface IEnumOptions {
8877
8878 /** EnumOptions allowAlias */
8879 allowAlias?: (boolean|null);
8880
8881 /** EnumOptions deprecated */
8882 deprecated?: (boolean|null);
8883
8884 /** EnumOptions uninterpretedOption */
8885 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8886 }
8887
8888 /** Represents an EnumOptions. */
8889 class EnumOptions implements IEnumOptions {
8890
8891 /**
8892 * Constructs a new EnumOptions.
8893 * @param [properties] Properties to set
8894 */
8895 constructor(properties?: google.protobuf.IEnumOptions);
8896
8897 /** EnumOptions allowAlias. */
8898 public allowAlias: boolean;
8899
8900 /** EnumOptions deprecated. */
8901 public deprecated: boolean;
8902
8903 /** EnumOptions uninterpretedOption. */
8904 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8905
8906 /**
8907 * Creates a new EnumOptions instance using the specified properties.
8908 * @param [properties] Properties to set
8909 * @returns EnumOptions instance
8910 */
8911 public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
8912
8913 /**
8914 * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
8915 * @param message EnumOptions message or plain object to encode
8916 * @param [writer] Writer to encode to
8917 * @returns Writer
8918 */
8919 public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8920
8921 /**
8922 * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
8923 * @param message EnumOptions message or plain object to encode
8924 * @param [writer] Writer to encode to
8925 * @returns Writer
8926 */
8927 public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8928
8929 /**
8930 * Decodes an EnumOptions message from the specified reader or buffer.
8931 * @param reader Reader or buffer to decode from
8932 * @param [length] Message length if known beforehand
8933 * @returns EnumOptions
8934 * @throws {Error} If the payload is not a reader or valid buffer
8935 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8936 */
8937 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
8938
8939 /**
8940 * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
8941 * @param reader Reader or buffer to decode from
8942 * @returns EnumOptions
8943 * @throws {Error} If the payload is not a reader or valid buffer
8944 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8945 */
8946 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
8947
8948 /**
8949 * Verifies an EnumOptions message.
8950 * @param message Plain object to verify
8951 * @returns `null` if valid, otherwise the reason why it is not
8952 */
8953 public static verify(message: { [k: string]: any }): (string|null);
8954
8955 /**
8956 * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
8957 * @param object Plain object
8958 * @returns EnumOptions
8959 */
8960 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
8961
8962 /**
8963 * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
8964 * @param message EnumOptions
8965 * @param [options] Conversion options
8966 * @returns Plain object
8967 */
8968 public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8969
8970 /**
8971 * Converts this EnumOptions to JSON.
8972 * @returns JSON object
8973 */
8974 public toJSON(): { [k: string]: any };
8975 }
8976
8977 /** Properties of an EnumValueOptions. */
8978 interface IEnumValueOptions {
8979
8980 /** EnumValueOptions deprecated */
8981 deprecated?: (boolean|null);
8982
8983 /** EnumValueOptions uninterpretedOption */
8984 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8985 }
8986
8987 /** Represents an EnumValueOptions. */
8988 class EnumValueOptions implements IEnumValueOptions {
8989
8990 /**
8991 * Constructs a new EnumValueOptions.
8992 * @param [properties] Properties to set
8993 */
8994 constructor(properties?: google.protobuf.IEnumValueOptions);
8995
8996 /** EnumValueOptions deprecated. */
8997 public deprecated: boolean;
8998
8999 /** EnumValueOptions uninterpretedOption. */
9000 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
9001
9002 /**
9003 * Creates a new EnumValueOptions instance using the specified properties.
9004 * @param [properties] Properties to set
9005 * @returns EnumValueOptions instance
9006 */
9007 public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
9008
9009 /**
9010 * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
9011 * @param message EnumValueOptions message or plain object to encode
9012 * @param [writer] Writer to encode to
9013 * @returns Writer
9014 */
9015 public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9016
9017 /**
9018 * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
9019 * @param message EnumValueOptions message or plain object to encode
9020 * @param [writer] Writer to encode to
9021 * @returns Writer
9022 */
9023 public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9024
9025 /**
9026 * Decodes an EnumValueOptions message from the specified reader or buffer.
9027 * @param reader Reader or buffer to decode from
9028 * @param [length] Message length if known beforehand
9029 * @returns EnumValueOptions
9030 * @throws {Error} If the payload is not a reader or valid buffer
9031 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9032 */
9033 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
9034
9035 /**
9036 * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
9037 * @param reader Reader or buffer to decode from
9038 * @returns EnumValueOptions
9039 * @throws {Error} If the payload is not a reader or valid buffer
9040 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9041 */
9042 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
9043
9044 /**
9045 * Verifies an EnumValueOptions message.
9046 * @param message Plain object to verify
9047 * @returns `null` if valid, otherwise the reason why it is not
9048 */
9049 public static verify(message: { [k: string]: any }): (string|null);
9050
9051 /**
9052 * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
9053 * @param object Plain object
9054 * @returns EnumValueOptions
9055 */
9056 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
9057
9058 /**
9059 * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
9060 * @param message EnumValueOptions
9061 * @param [options] Conversion options
9062 * @returns Plain object
9063 */
9064 public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
9065
9066 /**
9067 * Converts this EnumValueOptions to JSON.
9068 * @returns JSON object
9069 */
9070 public toJSON(): { [k: string]: any };
9071 }
9072
9073 /** Properties of a ServiceOptions. */
9074 interface IServiceOptions {
9075
9076 /** ServiceOptions deprecated */
9077 deprecated?: (boolean|null);
9078
9079 /** ServiceOptions uninterpretedOption */
9080 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
9081
9082 /** ServiceOptions .google.api.defaultHost */
9083 ".google.api.defaultHost"?: (string|null);
9084
9085 /** ServiceOptions .google.api.oauthScopes */
9086 ".google.api.oauthScopes"?: (string|null);
9087 }
9088
9089 /** Represents a ServiceOptions. */
9090 class ServiceOptions implements IServiceOptions {
9091
9092 /**
9093 * Constructs a new ServiceOptions.
9094 * @param [properties] Properties to set
9095 */
9096 constructor(properties?: google.protobuf.IServiceOptions);
9097
9098 /** ServiceOptions deprecated. */
9099 public deprecated: boolean;
9100
9101 /** ServiceOptions uninterpretedOption. */
9102 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
9103
9104 /**
9105 * Creates a new ServiceOptions instance using the specified properties.
9106 * @param [properties] Properties to set
9107 * @returns ServiceOptions instance
9108 */
9109 public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
9110
9111 /**
9112 * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
9113 * @param message ServiceOptions message or plain object to encode
9114 * @param [writer] Writer to encode to
9115 * @returns Writer
9116 */
9117 public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9118
9119 /**
9120 * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
9121 * @param message ServiceOptions message or plain object to encode
9122 * @param [writer] Writer to encode to
9123 * @returns Writer
9124 */
9125 public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9126
9127 /**
9128 * Decodes a ServiceOptions message from the specified reader or buffer.
9129 * @param reader Reader or buffer to decode from
9130 * @param [length] Message length if known beforehand
9131 * @returns ServiceOptions
9132 * @throws {Error} If the payload is not a reader or valid buffer
9133 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9134 */
9135 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
9136
9137 /**
9138 * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
9139 * @param reader Reader or buffer to decode from
9140 * @returns ServiceOptions
9141 * @throws {Error} If the payload is not a reader or valid buffer
9142 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9143 */
9144 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
9145
9146 /**
9147 * Verifies a ServiceOptions message.
9148 * @param message Plain object to verify
9149 * @returns `null` if valid, otherwise the reason why it is not
9150 */
9151 public static verify(message: { [k: string]: any }): (string|null);
9152
9153 /**
9154 * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
9155 * @param object Plain object
9156 * @returns ServiceOptions
9157 */
9158 public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
9159
9160 /**
9161 * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
9162 * @param message ServiceOptions
9163 * @param [options] Conversion options
9164 * @returns Plain object
9165 */
9166 public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
9167
9168 /**
9169 * Converts this ServiceOptions to JSON.
9170 * @returns JSON object
9171 */
9172 public toJSON(): { [k: string]: any };
9173 }
9174
9175 /** Properties of a MethodOptions. */
9176 interface IMethodOptions {
9177
9178 /** MethodOptions deprecated */
9179 deprecated?: (boolean|null);
9180
9181 /** MethodOptions idempotencyLevel */
9182 idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
9183
9184 /** MethodOptions uninterpretedOption */
9185 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
9186
9187 /** MethodOptions .google.api.http */
9188 ".google.api.http"?: (google.api.IHttpRule|null);
9189
9190 /** MethodOptions .google.api.methodSignature */
9191 ".google.api.methodSignature"?: (string[]|null);
9192 }
9193
9194 /** Represents a MethodOptions. */
9195 class MethodOptions implements IMethodOptions {
9196
9197 /**
9198 * Constructs a new MethodOptions.
9199 * @param [properties] Properties to set
9200 */
9201 constructor(properties?: google.protobuf.IMethodOptions);
9202
9203 /** MethodOptions deprecated. */
9204 public deprecated: boolean;
9205
9206 /** MethodOptions idempotencyLevel. */
9207 public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
9208
9209 /** MethodOptions uninterpretedOption. */
9210 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
9211
9212 /**
9213 * Creates a new MethodOptions instance using the specified properties.
9214 * @param [properties] Properties to set
9215 * @returns MethodOptions instance
9216 */
9217 public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
9218
9219 /**
9220 * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
9221 * @param message MethodOptions message or plain object to encode
9222 * @param [writer] Writer to encode to
9223 * @returns Writer
9224 */
9225 public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9226
9227 /**
9228 * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
9229 * @param message MethodOptions message or plain object to encode
9230 * @param [writer] Writer to encode to
9231 * @returns Writer
9232 */
9233 public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9234
9235 /**
9236 * Decodes a MethodOptions message from the specified reader or buffer.
9237 * @param reader Reader or buffer to decode from
9238 * @param [length] Message length if known beforehand
9239 * @returns MethodOptions
9240 * @throws {Error} If the payload is not a reader or valid buffer
9241 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9242 */
9243 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
9244
9245 /**
9246 * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
9247 * @param reader Reader or buffer to decode from
9248 * @returns MethodOptions
9249 * @throws {Error} If the payload is not a reader or valid buffer
9250 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9251 */
9252 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
9253
9254 /**
9255 * Verifies a MethodOptions message.
9256 * @param message Plain object to verify
9257 * @returns `null` if valid, otherwise the reason why it is not
9258 */
9259 public static verify(message: { [k: string]: any }): (string|null);
9260
9261 /**
9262 * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
9263 * @param object Plain object
9264 * @returns MethodOptions
9265 */
9266 public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
9267
9268 /**
9269 * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
9270 * @param message MethodOptions
9271 * @param [options] Conversion options
9272 * @returns Plain object
9273 */
9274 public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
9275
9276 /**
9277 * Converts this MethodOptions to JSON.
9278 * @returns JSON object
9279 */
9280 public toJSON(): { [k: string]: any };
9281 }
9282
9283 namespace MethodOptions {
9284
9285 /** IdempotencyLevel enum. */
9286 enum IdempotencyLevel {
9287 IDEMPOTENCY_UNKNOWN = 0,
9288 NO_SIDE_EFFECTS = 1,
9289 IDEMPOTENT = 2
9290 }
9291 }
9292
9293 /** Properties of an UninterpretedOption. */
9294 interface IUninterpretedOption {
9295
9296 /** UninterpretedOption name */
9297 name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
9298
9299 /** UninterpretedOption identifierValue */
9300 identifierValue?: (string|null);
9301
9302 /** UninterpretedOption positiveIntValue */
9303 positiveIntValue?: (number|Long|string|null);
9304
9305 /** UninterpretedOption negativeIntValue */
9306 negativeIntValue?: (number|Long|string|null);
9307
9308 /** UninterpretedOption doubleValue */
9309 doubleValue?: (number|null);
9310
9311 /** UninterpretedOption stringValue */
9312 stringValue?: (Uint8Array|string|null);
9313
9314 /** UninterpretedOption aggregateValue */
9315 aggregateValue?: (string|null);
9316 }
9317
9318 /** Represents an UninterpretedOption. */
9319 class UninterpretedOption implements IUninterpretedOption {
9320
9321 /**
9322 * Constructs a new UninterpretedOption.
9323 * @param [properties] Properties to set
9324 */
9325 constructor(properties?: google.protobuf.IUninterpretedOption);
9326
9327 /** UninterpretedOption name. */
9328 public name: google.protobuf.UninterpretedOption.INamePart[];
9329
9330 /** UninterpretedOption identifierValue. */
9331 public identifierValue: string;
9332
9333 /** UninterpretedOption positiveIntValue. */
9334 public positiveIntValue: (number|Long|string);
9335
9336 /** UninterpretedOption negativeIntValue. */
9337 public negativeIntValue: (number|Long|string);
9338
9339 /** UninterpretedOption doubleValue. */
9340 public doubleValue: number;
9341
9342 /** UninterpretedOption stringValue. */
9343 public stringValue: (Uint8Array|string);
9344
9345 /** UninterpretedOption aggregateValue. */
9346 public aggregateValue: string;
9347
9348 /**
9349 * Creates a new UninterpretedOption instance using the specified properties.
9350 * @param [properties] Properties to set
9351 * @returns UninterpretedOption instance
9352 */
9353 public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
9354
9355 /**
9356 * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
9357 * @param message UninterpretedOption message or plain object to encode
9358 * @param [writer] Writer to encode to
9359 * @returns Writer
9360 */
9361 public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
9362
9363 /**
9364 * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
9365 * @param message UninterpretedOption message or plain object to encode
9366 * @param [writer] Writer to encode to
9367 * @returns Writer
9368 */
9369 public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
9370
9371 /**
9372 * Decodes an UninterpretedOption message from the specified reader or buffer.
9373 * @param reader Reader or buffer to decode from
9374 * @param [length] Message length if known beforehand
9375 * @returns UninterpretedOption
9376 * @throws {Error} If the payload is not a reader or valid buffer
9377 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9378 */
9379 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
9380
9381 /**
9382 * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
9383 * @param reader Reader or buffer to decode from
9384 * @returns UninterpretedOption
9385 * @throws {Error} If the payload is not a reader or valid buffer
9386 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9387 */
9388 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
9389
9390 /**
9391 * Verifies an UninterpretedOption message.
9392 * @param message Plain object to verify
9393 * @returns `null` if valid, otherwise the reason why it is not
9394 */
9395 public static verify(message: { [k: string]: any }): (string|null);
9396
9397 /**
9398 * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
9399 * @param object Plain object
9400 * @returns UninterpretedOption
9401 */
9402 public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
9403
9404 /**
9405 * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
9406 * @param message UninterpretedOption
9407 * @param [options] Conversion options
9408 * @returns Plain object
9409 */
9410 public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
9411
9412 /**
9413 * Converts this UninterpretedOption to JSON.
9414 * @returns JSON object
9415 */
9416 public toJSON(): { [k: string]: any };
9417 }
9418
9419 namespace UninterpretedOption {
9420
9421 /** Properties of a NamePart. */
9422 interface INamePart {
9423
9424 /** NamePart namePart */
9425 namePart: string;
9426
9427 /** NamePart isExtension */
9428 isExtension: boolean;
9429 }
9430
9431 /** Represents a NamePart. */
9432 class NamePart implements INamePart {
9433
9434 /**
9435 * Constructs a new NamePart.
9436 * @param [properties] Properties to set
9437 */
9438 constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
9439
9440 /** NamePart namePart. */
9441 public namePart: string;
9442
9443 /** NamePart isExtension. */
9444 public isExtension: boolean;
9445
9446 /**
9447 * Creates a new NamePart instance using the specified properties.
9448 * @param [properties] Properties to set
9449 * @returns NamePart instance
9450 */
9451 public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
9452
9453 /**
9454 * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
9455 * @param message NamePart message or plain object to encode
9456 * @param [writer] Writer to encode to
9457 * @returns Writer
9458 */
9459 public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
9460
9461 /**
9462 * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
9463 * @param message NamePart message or plain object to encode
9464 * @param [writer] Writer to encode to
9465 * @returns Writer
9466 */
9467 public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
9468
9469 /**
9470 * Decodes a NamePart message from the specified reader or buffer.
9471 * @param reader Reader or buffer to decode from
9472 * @param [length] Message length if known beforehand
9473 * @returns NamePart
9474 * @throws {Error} If the payload is not a reader or valid buffer
9475 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9476 */
9477 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
9478
9479 /**
9480 * Decodes a NamePart message from the specified reader or buffer, length delimited.
9481 * @param reader Reader or buffer to decode from
9482 * @returns NamePart
9483 * @throws {Error} If the payload is not a reader or valid buffer
9484 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9485 */
9486 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
9487
9488 /**
9489 * Verifies a NamePart message.
9490 * @param message Plain object to verify
9491 * @returns `null` if valid, otherwise the reason why it is not
9492 */
9493 public static verify(message: { [k: string]: any }): (string|null);
9494
9495 /**
9496 * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
9497 * @param object Plain object
9498 * @returns NamePart
9499 */
9500 public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
9501
9502 /**
9503 * Creates a plain object from a NamePart message. Also converts values to other types if specified.
9504 * @param message NamePart
9505 * @param [options] Conversion options
9506 * @returns Plain object
9507 */
9508 public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
9509
9510 /**
9511 * Converts this NamePart to JSON.
9512 * @returns JSON object
9513 */
9514 public toJSON(): { [k: string]: any };
9515 }
9516 }
9517
9518 /** Properties of a SourceCodeInfo. */
9519 interface ISourceCodeInfo {
9520
9521 /** SourceCodeInfo location */
9522 location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
9523 }
9524
9525 /** Represents a SourceCodeInfo. */
9526 class SourceCodeInfo implements ISourceCodeInfo {
9527
9528 /**
9529 * Constructs a new SourceCodeInfo.
9530 * @param [properties] Properties to set
9531 */
9532 constructor(properties?: google.protobuf.ISourceCodeInfo);
9533
9534 /** SourceCodeInfo location. */
9535 public location: google.protobuf.SourceCodeInfo.ILocation[];
9536
9537 /**
9538 * Creates a new SourceCodeInfo instance using the specified properties.
9539 * @param [properties] Properties to set
9540 * @returns SourceCodeInfo instance
9541 */
9542 public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
9543
9544 /**
9545 * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
9546 * @param message SourceCodeInfo message or plain object to encode
9547 * @param [writer] Writer to encode to
9548 * @returns Writer
9549 */
9550 public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
9551
9552 /**
9553 * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
9554 * @param message SourceCodeInfo message or plain object to encode
9555 * @param [writer] Writer to encode to
9556 * @returns Writer
9557 */
9558 public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
9559
9560 /**
9561 * Decodes a SourceCodeInfo message from the specified reader or buffer.
9562 * @param reader Reader or buffer to decode from
9563 * @param [length] Message length if known beforehand
9564 * @returns SourceCodeInfo
9565 * @throws {Error} If the payload is not a reader or valid buffer
9566 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9567 */
9568 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
9569
9570 /**
9571 * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
9572 * @param reader Reader or buffer to decode from
9573 * @returns SourceCodeInfo
9574 * @throws {Error} If the payload is not a reader or valid buffer
9575 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9576 */
9577 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
9578
9579 /**
9580 * Verifies a SourceCodeInfo message.
9581 * @param message Plain object to verify
9582 * @returns `null` if valid, otherwise the reason why it is not
9583 */
9584 public static verify(message: { [k: string]: any }): (string|null);
9585
9586 /**
9587 * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
9588 * @param object Plain object
9589 * @returns SourceCodeInfo
9590 */
9591 public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
9592
9593 /**
9594 * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
9595 * @param message SourceCodeInfo
9596 * @param [options] Conversion options
9597 * @returns Plain object
9598 */
9599 public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
9600
9601 /**
9602 * Converts this SourceCodeInfo to JSON.
9603 * @returns JSON object
9604 */
9605 public toJSON(): { [k: string]: any };
9606 }
9607
9608 namespace SourceCodeInfo {
9609
9610 /** Properties of a Location. */
9611 interface ILocation {
9612
9613 /** Location path */
9614 path?: (number[]|null);
9615
9616 /** Location span */
9617 span?: (number[]|null);
9618
9619 /** Location leadingComments */
9620 leadingComments?: (string|null);
9621
9622 /** Location trailingComments */
9623 trailingComments?: (string|null);
9624
9625 /** Location leadingDetachedComments */
9626 leadingDetachedComments?: (string[]|null);
9627 }
9628
9629 /** Represents a Location. */
9630 class Location implements ILocation {
9631
9632 /**
9633 * Constructs a new Location.
9634 * @param [properties] Properties to set
9635 */
9636 constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
9637
9638 /** Location path. */
9639 public path: number[];
9640
9641 /** Location span. */
9642 public span: number[];
9643
9644 /** Location leadingComments. */
9645 public leadingComments: string;
9646
9647 /** Location trailingComments. */
9648 public trailingComments: string;
9649
9650 /** Location leadingDetachedComments. */
9651 public leadingDetachedComments: string[];
9652
9653 /**
9654 * Creates a new Location instance using the specified properties.
9655 * @param [properties] Properties to set
9656 * @returns Location instance
9657 */
9658 public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
9659
9660 /**
9661 * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
9662 * @param message Location message or plain object to encode
9663 * @param [writer] Writer to encode to
9664 * @returns Writer
9665 */
9666 public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
9667
9668 /**
9669 * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
9670 * @param message Location message or plain object to encode
9671 * @param [writer] Writer to encode to
9672 * @returns Writer
9673 */
9674 public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
9675
9676 /**
9677 * Decodes a Location message from the specified reader or buffer.
9678 * @param reader Reader or buffer to decode from
9679 * @param [length] Message length if known beforehand
9680 * @returns Location
9681 * @throws {Error} If the payload is not a reader or valid buffer
9682 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9683 */
9684 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
9685
9686 /**
9687 * Decodes a Location message from the specified reader or buffer, length delimited.
9688 * @param reader Reader or buffer to decode from
9689 * @returns Location
9690 * @throws {Error} If the payload is not a reader or valid buffer
9691 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9692 */
9693 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
9694
9695 /**
9696 * Verifies a Location message.
9697 * @param message Plain object to verify
9698 * @returns `null` if valid, otherwise the reason why it is not
9699 */
9700 public static verify(message: { [k: string]: any }): (string|null);
9701
9702 /**
9703 * Creates a Location message from a plain object. Also converts values to their respective internal types.
9704 * @param object Plain object
9705 * @returns Location
9706 */
9707 public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
9708
9709 /**
9710 * Creates a plain object from a Location message. Also converts values to other types if specified.
9711 * @param message Location
9712 * @param [options] Conversion options
9713 * @returns Plain object
9714 */
9715 public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
9716
9717 /**
9718 * Converts this Location to JSON.
9719 * @returns JSON object
9720 */
9721 public toJSON(): { [k: string]: any };
9722 }
9723 }
9724
9725 /** Properties of a GeneratedCodeInfo. */
9726 interface IGeneratedCodeInfo {
9727
9728 /** GeneratedCodeInfo annotation */
9729 annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
9730 }
9731
9732 /** Represents a GeneratedCodeInfo. */
9733 class GeneratedCodeInfo implements IGeneratedCodeInfo {
9734
9735 /**
9736 * Constructs a new GeneratedCodeInfo.
9737 * @param [properties] Properties to set
9738 */
9739 constructor(properties?: google.protobuf.IGeneratedCodeInfo);
9740
9741 /** GeneratedCodeInfo annotation. */
9742 public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
9743
9744 /**
9745 * Creates a new GeneratedCodeInfo instance using the specified properties.
9746 * @param [properties] Properties to set
9747 * @returns GeneratedCodeInfo instance
9748 */
9749 public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
9750
9751 /**
9752 * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
9753 * @param message GeneratedCodeInfo message or plain object to encode
9754 * @param [writer] Writer to encode to
9755 * @returns Writer
9756 */
9757 public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
9758
9759 /**
9760 * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
9761 * @param message GeneratedCodeInfo message or plain object to encode
9762 * @param [writer] Writer to encode to
9763 * @returns Writer
9764 */
9765 public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
9766
9767 /**
9768 * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
9769 * @param reader Reader or buffer to decode from
9770 * @param [length] Message length if known beforehand
9771 * @returns GeneratedCodeInfo
9772 * @throws {Error} If the payload is not a reader or valid buffer
9773 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9774 */
9775 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
9776
9777 /**
9778 * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
9779 * @param reader Reader or buffer to decode from
9780 * @returns GeneratedCodeInfo
9781 * @throws {Error} If the payload is not a reader or valid buffer
9782 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9783 */
9784 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
9785
9786 /**
9787 * Verifies a GeneratedCodeInfo message.
9788 * @param message Plain object to verify
9789 * @returns `null` if valid, otherwise the reason why it is not
9790 */
9791 public static verify(message: { [k: string]: any }): (string|null);
9792
9793 /**
9794 * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
9795 * @param object Plain object
9796 * @returns GeneratedCodeInfo
9797 */
9798 public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
9799
9800 /**
9801 * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
9802 * @param message GeneratedCodeInfo
9803 * @param [options] Conversion options
9804 * @returns Plain object
9805 */
9806 public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
9807
9808 /**
9809 * Converts this GeneratedCodeInfo to JSON.
9810 * @returns JSON object
9811 */
9812 public toJSON(): { [k: string]: any };
9813 }
9814
9815 namespace GeneratedCodeInfo {
9816
9817 /** Properties of an Annotation. */
9818 interface IAnnotation {
9819
9820 /** Annotation path */
9821 path?: (number[]|null);
9822
9823 /** Annotation sourceFile */
9824 sourceFile?: (string|null);
9825
9826 /** Annotation begin */
9827 begin?: (number|null);
9828
9829 /** Annotation end */
9830 end?: (number|null);
9831 }
9832
9833 /** Represents an Annotation. */
9834 class Annotation implements IAnnotation {
9835
9836 /**
9837 * Constructs a new Annotation.
9838 * @param [properties] Properties to set
9839 */
9840 constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
9841
9842 /** Annotation path. */
9843 public path: number[];
9844
9845 /** Annotation sourceFile. */
9846 public sourceFile: string;
9847
9848 /** Annotation begin. */
9849 public begin: number;
9850
9851 /** Annotation end. */
9852 public end: number;
9853
9854 /**
9855 * Creates a new Annotation instance using the specified properties.
9856 * @param [properties] Properties to set
9857 * @returns Annotation instance
9858 */
9859 public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
9860
9861 /**
9862 * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
9863 * @param message Annotation message or plain object to encode
9864 * @param [writer] Writer to encode to
9865 * @returns Writer
9866 */
9867 public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
9868
9869 /**
9870 * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
9871 * @param message Annotation message or plain object to encode
9872 * @param [writer] Writer to encode to
9873 * @returns Writer
9874 */
9875 public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
9876
9877 /**
9878 * Decodes an Annotation message from the specified reader or buffer.
9879 * @param reader Reader or buffer to decode from
9880 * @param [length] Message length if known beforehand
9881 * @returns Annotation
9882 * @throws {Error} If the payload is not a reader or valid buffer
9883 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9884 */
9885 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
9886
9887 /**
9888 * Decodes an Annotation message from the specified reader or buffer, length delimited.
9889 * @param reader Reader or buffer to decode from
9890 * @returns Annotation
9891 * @throws {Error} If the payload is not a reader or valid buffer
9892 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9893 */
9894 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
9895
9896 /**
9897 * Verifies an Annotation message.
9898 * @param message Plain object to verify
9899 * @returns `null` if valid, otherwise the reason why it is not
9900 */
9901 public static verify(message: { [k: string]: any }): (string|null);
9902
9903 /**
9904 * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
9905 * @param object Plain object
9906 * @returns Annotation
9907 */
9908 public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
9909
9910 /**
9911 * Creates a plain object from an Annotation message. Also converts values to other types if specified.
9912 * @param message Annotation
9913 * @param [options] Conversion options
9914 * @returns Plain object
9915 */
9916 public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
9917
9918 /**
9919 * Converts this Annotation to JSON.
9920 * @returns JSON object
9921 */
9922 public toJSON(): { [k: string]: any };
9923 }
9924 }
9925
9926 /** Properties of a Duration. */
9927 interface IDuration {
9928
9929 /** Duration seconds */
9930 seconds?: (number|Long|string|null);
9931
9932 /** Duration nanos */
9933 nanos?: (number|null);
9934 }
9935
9936 /** Represents a Duration. */
9937 class Duration implements IDuration {
9938
9939 /**
9940 * Constructs a new Duration.
9941 * @param [properties] Properties to set
9942 */
9943 constructor(properties?: google.protobuf.IDuration);
9944
9945 /** Duration seconds. */
9946 public seconds: (number|Long|string);
9947
9948 /** Duration nanos. */
9949 public nanos: number;
9950
9951 /**
9952 * Creates a new Duration instance using the specified properties.
9953 * @param [properties] Properties to set
9954 * @returns Duration instance
9955 */
9956 public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
9957
9958 /**
9959 * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
9960 * @param message Duration message or plain object to encode
9961 * @param [writer] Writer to encode to
9962 * @returns Writer
9963 */
9964 public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
9965
9966 /**
9967 * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
9968 * @param message Duration message or plain object to encode
9969 * @param [writer] Writer to encode to
9970 * @returns Writer
9971 */
9972 public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
9973
9974 /**
9975 * Decodes a Duration message from the specified reader or buffer.
9976 * @param reader Reader or buffer to decode from
9977 * @param [length] Message length if known beforehand
9978 * @returns Duration
9979 * @throws {Error} If the payload is not a reader or valid buffer
9980 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9981 */
9982 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
9983
9984 /**
9985 * Decodes a Duration message from the specified reader or buffer, length delimited.
9986 * @param reader Reader or buffer to decode from
9987 * @returns Duration
9988 * @throws {Error} If the payload is not a reader or valid buffer
9989 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9990 */
9991 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
9992
9993 /**
9994 * Verifies a Duration message.
9995 * @param message Plain object to verify
9996 * @returns `null` if valid, otherwise the reason why it is not
9997 */
9998 public static verify(message: { [k: string]: any }): (string|null);
9999
10000 /**
10001 * Creates a Duration message from a plain object. Also converts values to their respective internal types.
10002 * @param object Plain object
10003 * @returns Duration
10004 */
10005 public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
10006
10007 /**
10008 * Creates a plain object from a Duration message. Also converts values to other types if specified.
10009 * @param message Duration
10010 * @param [options] Conversion options
10011 * @returns Plain object
10012 */
10013 public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
10014
10015 /**
10016 * Converts this Duration to JSON.
10017 * @returns JSON object
10018 */
10019 public toJSON(): { [k: string]: any };
10020 }
10021
10022 /** Properties of an Empty. */
10023 interface IEmpty {
10024 }
10025
10026 /** Represents an Empty. */
10027 class Empty implements IEmpty {
10028
10029 /**
10030 * Constructs a new Empty.
10031 * @param [properties] Properties to set
10032 */
10033 constructor(properties?: google.protobuf.IEmpty);
10034
10035 /**
10036 * Creates a new Empty instance using the specified properties.
10037 * @param [properties] Properties to set
10038 * @returns Empty instance
10039 */
10040 public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
10041
10042 /**
10043 * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
10044 * @param message Empty message or plain object to encode
10045 * @param [writer] Writer to encode to
10046 * @returns Writer
10047 */
10048 public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
10049
10050 /**
10051 * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
10052 * @param message Empty message or plain object to encode
10053 * @param [writer] Writer to encode to
10054 * @returns Writer
10055 */
10056 public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
10057
10058 /**
10059 * Decodes an Empty message from the specified reader or buffer.
10060 * @param reader Reader or buffer to decode from
10061 * @param [length] Message length if known beforehand
10062 * @returns Empty
10063 * @throws {Error} If the payload is not a reader or valid buffer
10064 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10065 */
10066 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
10067
10068 /**
10069 * Decodes an Empty message from the specified reader or buffer, length delimited.
10070 * @param reader Reader or buffer to decode from
10071 * @returns Empty
10072 * @throws {Error} If the payload is not a reader or valid buffer
10073 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10074 */
10075 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
10076
10077 /**
10078 * Verifies an Empty message.
10079 * @param message Plain object to verify
10080 * @returns `null` if valid, otherwise the reason why it is not
10081 */
10082 public static verify(message: { [k: string]: any }): (string|null);
10083
10084 /**
10085 * Creates an Empty message from a plain object. Also converts values to their respective internal types.
10086 * @param object Plain object
10087 * @returns Empty
10088 */
10089 public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
10090
10091 /**
10092 * Creates a plain object from an Empty message. Also converts values to other types if specified.
10093 * @param message Empty
10094 * @param [options] Conversion options
10095 * @returns Plain object
10096 */
10097 public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
10098
10099 /**
10100 * Converts this Empty to JSON.
10101 * @returns JSON object
10102 */
10103 public toJSON(): { [k: string]: any };
10104 }
10105
10106 /** Properties of a FieldMask. */
10107 interface IFieldMask {
10108
10109 /** FieldMask paths */
10110 paths?: (string[]|null);
10111 }
10112
10113 /** Represents a FieldMask. */
10114 class FieldMask implements IFieldMask {
10115
10116 /**
10117 * Constructs a new FieldMask.
10118 * @param [properties] Properties to set
10119 */
10120 constructor(properties?: google.protobuf.IFieldMask);
10121
10122 /** FieldMask paths. */
10123 public paths: string[];
10124
10125 /**
10126 * Creates a new FieldMask instance using the specified properties.
10127 * @param [properties] Properties to set
10128 * @returns FieldMask instance
10129 */
10130 public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
10131
10132 /**
10133 * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
10134 * @param message FieldMask message or plain object to encode
10135 * @param [writer] Writer to encode to
10136 * @returns Writer
10137 */
10138 public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
10139
10140 /**
10141 * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
10142 * @param message FieldMask message or plain object to encode
10143 * @param [writer] Writer to encode to
10144 * @returns Writer
10145 */
10146 public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
10147
10148 /**
10149 * Decodes a FieldMask message from the specified reader or buffer.
10150 * @param reader Reader or buffer to decode from
10151 * @param [length] Message length if known beforehand
10152 * @returns FieldMask
10153 * @throws {Error} If the payload is not a reader or valid buffer
10154 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10155 */
10156 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
10157
10158 /**
10159 * Decodes a FieldMask message from the specified reader or buffer, length delimited.
10160 * @param reader Reader or buffer to decode from
10161 * @returns FieldMask
10162 * @throws {Error} If the payload is not a reader or valid buffer
10163 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10164 */
10165 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
10166
10167 /**
10168 * Verifies a FieldMask message.
10169 * @param message Plain object to verify
10170 * @returns `null` if valid, otherwise the reason why it is not
10171 */
10172 public static verify(message: { [k: string]: any }): (string|null);
10173
10174 /**
10175 * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
10176 * @param object Plain object
10177 * @returns FieldMask
10178 */
10179 public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
10180
10181 /**
10182 * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
10183 * @param message FieldMask
10184 * @param [options] Conversion options
10185 * @returns Plain object
10186 */
10187 public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
10188
10189 /**
10190 * Converts this FieldMask to JSON.
10191 * @returns JSON object
10192 */
10193 public toJSON(): { [k: string]: any };
10194 }
10195
10196 /** Properties of a Timestamp. */
10197 interface ITimestamp {
10198
10199 /** Timestamp seconds */
10200 seconds?: (number|Long|string|null);
10201
10202 /** Timestamp nanos */
10203 nanos?: (number|null);
10204 }
10205
10206 /** Represents a Timestamp. */
10207 class Timestamp implements ITimestamp {
10208
10209 /**
10210 * Constructs a new Timestamp.
10211 * @param [properties] Properties to set
10212 */
10213 constructor(properties?: google.protobuf.ITimestamp);
10214
10215 /** Timestamp seconds. */
10216 public seconds: (number|Long|string);
10217
10218 /** Timestamp nanos. */
10219 public nanos: number;
10220
10221 /**
10222 * Creates a new Timestamp instance using the specified properties.
10223 * @param [properties] Properties to set
10224 * @returns Timestamp instance
10225 */
10226 public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
10227
10228 /**
10229 * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
10230 * @param message Timestamp message or plain object to encode
10231 * @param [writer] Writer to encode to
10232 * @returns Writer
10233 */
10234 public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
10235
10236 /**
10237 * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
10238 * @param message Timestamp message or plain object to encode
10239 * @param [writer] Writer to encode to
10240 * @returns Writer
10241 */
10242 public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
10243
10244 /**
10245 * Decodes a Timestamp message from the specified reader or buffer.
10246 * @param reader Reader or buffer to decode from
10247 * @param [length] Message length if known beforehand
10248 * @returns Timestamp
10249 * @throws {Error} If the payload is not a reader or valid buffer
10250 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10251 */
10252 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
10253
10254 /**
10255 * Decodes a Timestamp message from the specified reader or buffer, length delimited.
10256 * @param reader Reader or buffer to decode from
10257 * @returns Timestamp
10258 * @throws {Error} If the payload is not a reader or valid buffer
10259 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10260 */
10261 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
10262
10263 /**
10264 * Verifies a Timestamp message.
10265 * @param message Plain object to verify
10266 * @returns `null` if valid, otherwise the reason why it is not
10267 */
10268 public static verify(message: { [k: string]: any }): (string|null);
10269
10270 /**
10271 * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
10272 * @param object Plain object
10273 * @returns Timestamp
10274 */
10275 public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
10276
10277 /**
10278 * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
10279 * @param message Timestamp
10280 * @param [options] Conversion options
10281 * @returns Plain object
10282 */
10283 public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
10284
10285 /**
10286 * Converts this Timestamp to JSON.
10287 * @returns JSON object
10288 */
10289 public toJSON(): { [k: string]: any };
10290 }
10291 }
10292}