UNPKG

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