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 NON_EMPTY_DEFAULT = 7
6668 }
6669
6670 /** Properties of a ResourceDescriptor. */
6671 interface IResourceDescriptor {
6672
6673 /** ResourceDescriptor type */
6674 type?: (string|null);
6675
6676 /** ResourceDescriptor pattern */
6677 pattern?: (string[]|null);
6678
6679 /** ResourceDescriptor nameField */
6680 nameField?: (string|null);
6681
6682 /** ResourceDescriptor history */
6683 history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
6684
6685 /** ResourceDescriptor plural */
6686 plural?: (string|null);
6687
6688 /** ResourceDescriptor singular */
6689 singular?: (string|null);
6690
6691 /** ResourceDescriptor style */
6692 style?: (google.api.ResourceDescriptor.Style[]|null);
6693 }
6694
6695 /** Represents a ResourceDescriptor. */
6696 class ResourceDescriptor implements IResourceDescriptor {
6697
6698 /**
6699 * Constructs a new ResourceDescriptor.
6700 * @param [properties] Properties to set
6701 */
6702 constructor(properties?: google.api.IResourceDescriptor);
6703
6704 /** ResourceDescriptor type. */
6705 public type: string;
6706
6707 /** ResourceDescriptor pattern. */
6708 public pattern: string[];
6709
6710 /** ResourceDescriptor nameField. */
6711 public nameField: string;
6712
6713 /** ResourceDescriptor history. */
6714 public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
6715
6716 /** ResourceDescriptor plural. */
6717 public plural: string;
6718
6719 /** ResourceDescriptor singular. */
6720 public singular: string;
6721
6722 /** ResourceDescriptor style. */
6723 public style: google.api.ResourceDescriptor.Style[];
6724
6725 /**
6726 * Creates a new ResourceDescriptor instance using the specified properties.
6727 * @param [properties] Properties to set
6728 * @returns ResourceDescriptor instance
6729 */
6730 public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
6731
6732 /**
6733 * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
6734 * @param message ResourceDescriptor message or plain object to encode
6735 * @param [writer] Writer to encode to
6736 * @returns Writer
6737 */
6738 public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
6739
6740 /**
6741 * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
6742 * @param message ResourceDescriptor message or plain object to encode
6743 * @param [writer] Writer to encode to
6744 * @returns Writer
6745 */
6746 public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
6747
6748 /**
6749 * Decodes a ResourceDescriptor message from the specified reader or buffer.
6750 * @param reader Reader or buffer to decode from
6751 * @param [length] Message length if known beforehand
6752 * @returns ResourceDescriptor
6753 * @throws {Error} If the payload is not a reader or valid buffer
6754 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6755 */
6756 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
6757
6758 /**
6759 * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
6760 * @param reader Reader or buffer to decode from
6761 * @returns ResourceDescriptor
6762 * @throws {Error} If the payload is not a reader or valid buffer
6763 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6764 */
6765 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
6766
6767 /**
6768 * Verifies a ResourceDescriptor message.
6769 * @param message Plain object to verify
6770 * @returns `null` if valid, otherwise the reason why it is not
6771 */
6772 public static verify(message: { [k: string]: any }): (string|null);
6773
6774 /**
6775 * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
6776 * @param object Plain object
6777 * @returns ResourceDescriptor
6778 */
6779 public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
6780
6781 /**
6782 * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
6783 * @param message ResourceDescriptor
6784 * @param [options] Conversion options
6785 * @returns Plain object
6786 */
6787 public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
6788
6789 /**
6790 * Converts this ResourceDescriptor to JSON.
6791 * @returns JSON object
6792 */
6793 public toJSON(): { [k: string]: any };
6794 }
6795
6796 namespace ResourceDescriptor {
6797
6798 /** History enum. */
6799 enum History {
6800 HISTORY_UNSPECIFIED = 0,
6801 ORIGINALLY_SINGLE_PATTERN = 1,
6802 FUTURE_MULTI_PATTERN = 2
6803 }
6804
6805 /** Style enum. */
6806 enum Style {
6807 STYLE_UNSPECIFIED = 0,
6808 DECLARATIVE_FRIENDLY = 1
6809 }
6810 }
6811
6812 /** Properties of a ResourceReference. */
6813 interface IResourceReference {
6814
6815 /** ResourceReference type */
6816 type?: (string|null);
6817
6818 /** ResourceReference childType */
6819 childType?: (string|null);
6820 }
6821
6822 /** Represents a ResourceReference. */
6823 class ResourceReference implements IResourceReference {
6824
6825 /**
6826 * Constructs a new ResourceReference.
6827 * @param [properties] Properties to set
6828 */
6829 constructor(properties?: google.api.IResourceReference);
6830
6831 /** ResourceReference type. */
6832 public type: string;
6833
6834 /** ResourceReference childType. */
6835 public childType: string;
6836
6837 /**
6838 * Creates a new ResourceReference instance using the specified properties.
6839 * @param [properties] Properties to set
6840 * @returns ResourceReference instance
6841 */
6842 public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
6843
6844 /**
6845 * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
6846 * @param message ResourceReference message or plain object to encode
6847 * @param [writer] Writer to encode to
6848 * @returns Writer
6849 */
6850 public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
6851
6852 /**
6853 * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
6854 * @param message ResourceReference message or plain object to encode
6855 * @param [writer] Writer to encode to
6856 * @returns Writer
6857 */
6858 public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
6859
6860 /**
6861 * Decodes a ResourceReference message from the specified reader or buffer.
6862 * @param reader Reader or buffer to decode from
6863 * @param [length] Message length if known beforehand
6864 * @returns ResourceReference
6865 * @throws {Error} If the payload is not a reader or valid buffer
6866 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6867 */
6868 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
6869
6870 /**
6871 * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
6872 * @param reader Reader or buffer to decode from
6873 * @returns ResourceReference
6874 * @throws {Error} If the payload is not a reader or valid buffer
6875 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6876 */
6877 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
6878
6879 /**
6880 * Verifies a ResourceReference message.
6881 * @param message Plain object to verify
6882 * @returns `null` if valid, otherwise the reason why it is not
6883 */
6884 public static verify(message: { [k: string]: any }): (string|null);
6885
6886 /**
6887 * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
6888 * @param object Plain object
6889 * @returns ResourceReference
6890 */
6891 public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
6892
6893 /**
6894 * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
6895 * @param message ResourceReference
6896 * @param [options] Conversion options
6897 * @returns Plain object
6898 */
6899 public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
6900
6901 /**
6902 * Converts this ResourceReference to JSON.
6903 * @returns JSON object
6904 */
6905 public toJSON(): { [k: string]: any };
6906 }
6907 }
6908
6909 /** Namespace protobuf. */
6910 namespace protobuf {
6911
6912 /** Properties of a FileDescriptorSet. */
6913 interface IFileDescriptorSet {
6914
6915 /** FileDescriptorSet file */
6916 file?: (google.protobuf.IFileDescriptorProto[]|null);
6917 }
6918
6919 /** Represents a FileDescriptorSet. */
6920 class FileDescriptorSet implements IFileDescriptorSet {
6921
6922 /**
6923 * Constructs a new FileDescriptorSet.
6924 * @param [properties] Properties to set
6925 */
6926 constructor(properties?: google.protobuf.IFileDescriptorSet);
6927
6928 /** FileDescriptorSet file. */
6929 public file: google.protobuf.IFileDescriptorProto[];
6930
6931 /**
6932 * Creates a new FileDescriptorSet instance using the specified properties.
6933 * @param [properties] Properties to set
6934 * @returns FileDescriptorSet instance
6935 */
6936 public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
6937
6938 /**
6939 * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
6940 * @param message FileDescriptorSet message or plain object to encode
6941 * @param [writer] Writer to encode to
6942 * @returns Writer
6943 */
6944 public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
6945
6946 /**
6947 * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
6948 * @param message FileDescriptorSet message or plain object to encode
6949 * @param [writer] Writer to encode to
6950 * @returns Writer
6951 */
6952 public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
6953
6954 /**
6955 * Decodes a FileDescriptorSet message from the specified reader or buffer.
6956 * @param reader Reader or buffer to decode from
6957 * @param [length] Message length if known beforehand
6958 * @returns FileDescriptorSet
6959 * @throws {Error} If the payload is not a reader or valid buffer
6960 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6961 */
6962 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
6963
6964 /**
6965 * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
6966 * @param reader Reader or buffer to decode from
6967 * @returns FileDescriptorSet
6968 * @throws {Error} If the payload is not a reader or valid buffer
6969 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6970 */
6971 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
6972
6973 /**
6974 * Verifies a FileDescriptorSet message.
6975 * @param message Plain object to verify
6976 * @returns `null` if valid, otherwise the reason why it is not
6977 */
6978 public static verify(message: { [k: string]: any }): (string|null);
6979
6980 /**
6981 * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
6982 * @param object Plain object
6983 * @returns FileDescriptorSet
6984 */
6985 public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
6986
6987 /**
6988 * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
6989 * @param message FileDescriptorSet
6990 * @param [options] Conversion options
6991 * @returns Plain object
6992 */
6993 public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
6994
6995 /**
6996 * Converts this FileDescriptorSet to JSON.
6997 * @returns JSON object
6998 */
6999 public toJSON(): { [k: string]: any };
7000 }
7001
7002 /** Properties of a FileDescriptorProto. */
7003 interface IFileDescriptorProto {
7004
7005 /** FileDescriptorProto name */
7006 name?: (string|null);
7007
7008 /** FileDescriptorProto package */
7009 "package"?: (string|null);
7010
7011 /** FileDescriptorProto dependency */
7012 dependency?: (string[]|null);
7013
7014 /** FileDescriptorProto publicDependency */
7015 publicDependency?: (number[]|null);
7016
7017 /** FileDescriptorProto weakDependency */
7018 weakDependency?: (number[]|null);
7019
7020 /** FileDescriptorProto messageType */
7021 messageType?: (google.protobuf.IDescriptorProto[]|null);
7022
7023 /** FileDescriptorProto enumType */
7024 enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
7025
7026 /** FileDescriptorProto service */
7027 service?: (google.protobuf.IServiceDescriptorProto[]|null);
7028
7029 /** FileDescriptorProto extension */
7030 extension?: (google.protobuf.IFieldDescriptorProto[]|null);
7031
7032 /** FileDescriptorProto options */
7033 options?: (google.protobuf.IFileOptions|null);
7034
7035 /** FileDescriptorProto sourceCodeInfo */
7036 sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
7037
7038 /** FileDescriptorProto syntax */
7039 syntax?: (string|null);
7040 }
7041
7042 /** Represents a FileDescriptorProto. */
7043 class FileDescriptorProto implements IFileDescriptorProto {
7044
7045 /**
7046 * Constructs a new FileDescriptorProto.
7047 * @param [properties] Properties to set
7048 */
7049 constructor(properties?: google.protobuf.IFileDescriptorProto);
7050
7051 /** FileDescriptorProto name. */
7052 public name: string;
7053
7054 /** FileDescriptorProto package. */
7055 public package: string;
7056
7057 /** FileDescriptorProto dependency. */
7058 public dependency: string[];
7059
7060 /** FileDescriptorProto publicDependency. */
7061 public publicDependency: number[];
7062
7063 /** FileDescriptorProto weakDependency. */
7064 public weakDependency: number[];
7065
7066 /** FileDescriptorProto messageType. */
7067 public messageType: google.protobuf.IDescriptorProto[];
7068
7069 /** FileDescriptorProto enumType. */
7070 public enumType: google.protobuf.IEnumDescriptorProto[];
7071
7072 /** FileDescriptorProto service. */
7073 public service: google.protobuf.IServiceDescriptorProto[];
7074
7075 /** FileDescriptorProto extension. */
7076 public extension: google.protobuf.IFieldDescriptorProto[];
7077
7078 /** FileDescriptorProto options. */
7079 public options?: (google.protobuf.IFileOptions|null);
7080
7081 /** FileDescriptorProto sourceCodeInfo. */
7082 public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
7083
7084 /** FileDescriptorProto syntax. */
7085 public syntax: string;
7086
7087 /**
7088 * Creates a new FileDescriptorProto instance using the specified properties.
7089 * @param [properties] Properties to set
7090 * @returns FileDescriptorProto instance
7091 */
7092 public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
7093
7094 /**
7095 * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
7096 * @param message FileDescriptorProto message or plain object to encode
7097 * @param [writer] Writer to encode to
7098 * @returns Writer
7099 */
7100 public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7101
7102 /**
7103 * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
7104 * @param message FileDescriptorProto message or plain object to encode
7105 * @param [writer] Writer to encode to
7106 * @returns Writer
7107 */
7108 public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7109
7110 /**
7111 * Decodes a FileDescriptorProto message from the specified reader or buffer.
7112 * @param reader Reader or buffer to decode from
7113 * @param [length] Message length if known beforehand
7114 * @returns FileDescriptorProto
7115 * @throws {Error} If the payload is not a reader or valid buffer
7116 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7117 */
7118 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
7119
7120 /**
7121 * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
7122 * @param reader Reader or buffer to decode from
7123 * @returns FileDescriptorProto
7124 * @throws {Error} If the payload is not a reader or valid buffer
7125 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7126 */
7127 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
7128
7129 /**
7130 * Verifies a FileDescriptorProto message.
7131 * @param message Plain object to verify
7132 * @returns `null` if valid, otherwise the reason why it is not
7133 */
7134 public static verify(message: { [k: string]: any }): (string|null);
7135
7136 /**
7137 * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
7138 * @param object Plain object
7139 * @returns FileDescriptorProto
7140 */
7141 public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
7142
7143 /**
7144 * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
7145 * @param message FileDescriptorProto
7146 * @param [options] Conversion options
7147 * @returns Plain object
7148 */
7149 public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7150
7151 /**
7152 * Converts this FileDescriptorProto to JSON.
7153 * @returns JSON object
7154 */
7155 public toJSON(): { [k: string]: any };
7156 }
7157
7158 /** Properties of a DescriptorProto. */
7159 interface IDescriptorProto {
7160
7161 /** DescriptorProto name */
7162 name?: (string|null);
7163
7164 /** DescriptorProto field */
7165 field?: (google.protobuf.IFieldDescriptorProto[]|null);
7166
7167 /** DescriptorProto extension */
7168 extension?: (google.protobuf.IFieldDescriptorProto[]|null);
7169
7170 /** DescriptorProto nestedType */
7171 nestedType?: (google.protobuf.IDescriptorProto[]|null);
7172
7173 /** DescriptorProto enumType */
7174 enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
7175
7176 /** DescriptorProto extensionRange */
7177 extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
7178
7179 /** DescriptorProto oneofDecl */
7180 oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
7181
7182 /** DescriptorProto options */
7183 options?: (google.protobuf.IMessageOptions|null);
7184
7185 /** DescriptorProto reservedRange */
7186 reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
7187
7188 /** DescriptorProto reservedName */
7189 reservedName?: (string[]|null);
7190 }
7191
7192 /** Represents a DescriptorProto. */
7193 class DescriptorProto implements IDescriptorProto {
7194
7195 /**
7196 * Constructs a new DescriptorProto.
7197 * @param [properties] Properties to set
7198 */
7199 constructor(properties?: google.protobuf.IDescriptorProto);
7200
7201 /** DescriptorProto name. */
7202 public name: string;
7203
7204 /** DescriptorProto field. */
7205 public field: google.protobuf.IFieldDescriptorProto[];
7206
7207 /** DescriptorProto extension. */
7208 public extension: google.protobuf.IFieldDescriptorProto[];
7209
7210 /** DescriptorProto nestedType. */
7211 public nestedType: google.protobuf.IDescriptorProto[];
7212
7213 /** DescriptorProto enumType. */
7214 public enumType: google.protobuf.IEnumDescriptorProto[];
7215
7216 /** DescriptorProto extensionRange. */
7217 public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
7218
7219 /** DescriptorProto oneofDecl. */
7220 public oneofDecl: google.protobuf.IOneofDescriptorProto[];
7221
7222 /** DescriptorProto options. */
7223 public options?: (google.protobuf.IMessageOptions|null);
7224
7225 /** DescriptorProto reservedRange. */
7226 public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
7227
7228 /** DescriptorProto reservedName. */
7229 public reservedName: string[];
7230
7231 /**
7232 * Creates a new DescriptorProto instance using the specified properties.
7233 * @param [properties] Properties to set
7234 * @returns DescriptorProto instance
7235 */
7236 public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
7237
7238 /**
7239 * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
7240 * @param message DescriptorProto message or plain object to encode
7241 * @param [writer] Writer to encode to
7242 * @returns Writer
7243 */
7244 public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7245
7246 /**
7247 * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
7248 * @param message DescriptorProto message or plain object to encode
7249 * @param [writer] Writer to encode to
7250 * @returns Writer
7251 */
7252 public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7253
7254 /**
7255 * Decodes a DescriptorProto message from the specified reader or buffer.
7256 * @param reader Reader or buffer to decode from
7257 * @param [length] Message length if known beforehand
7258 * @returns DescriptorProto
7259 * @throws {Error} If the payload is not a reader or valid buffer
7260 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7261 */
7262 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
7263
7264 /**
7265 * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
7266 * @param reader Reader or buffer to decode from
7267 * @returns DescriptorProto
7268 * @throws {Error} If the payload is not a reader or valid buffer
7269 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7270 */
7271 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
7272
7273 /**
7274 * Verifies a DescriptorProto message.
7275 * @param message Plain object to verify
7276 * @returns `null` if valid, otherwise the reason why it is not
7277 */
7278 public static verify(message: { [k: string]: any }): (string|null);
7279
7280 /**
7281 * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
7282 * @param object Plain object
7283 * @returns DescriptorProto
7284 */
7285 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
7286
7287 /**
7288 * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
7289 * @param message DescriptorProto
7290 * @param [options] Conversion options
7291 * @returns Plain object
7292 */
7293 public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7294
7295 /**
7296 * Converts this DescriptorProto to JSON.
7297 * @returns JSON object
7298 */
7299 public toJSON(): { [k: string]: any };
7300 }
7301
7302 namespace DescriptorProto {
7303
7304 /** Properties of an ExtensionRange. */
7305 interface IExtensionRange {
7306
7307 /** ExtensionRange start */
7308 start?: (number|null);
7309
7310 /** ExtensionRange end */
7311 end?: (number|null);
7312
7313 /** ExtensionRange options */
7314 options?: (google.protobuf.IExtensionRangeOptions|null);
7315 }
7316
7317 /** Represents an ExtensionRange. */
7318 class ExtensionRange implements IExtensionRange {
7319
7320 /**
7321 * Constructs a new ExtensionRange.
7322 * @param [properties] Properties to set
7323 */
7324 constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
7325
7326 /** ExtensionRange start. */
7327 public start: number;
7328
7329 /** ExtensionRange end. */
7330 public end: number;
7331
7332 /** ExtensionRange options. */
7333 public options?: (google.protobuf.IExtensionRangeOptions|null);
7334
7335 /**
7336 * Creates a new ExtensionRange instance using the specified properties.
7337 * @param [properties] Properties to set
7338 * @returns ExtensionRange instance
7339 */
7340 public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
7341
7342 /**
7343 * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
7344 * @param message ExtensionRange message or plain object to encode
7345 * @param [writer] Writer to encode to
7346 * @returns Writer
7347 */
7348 public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
7349
7350 /**
7351 * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
7352 * @param message ExtensionRange message or plain object to encode
7353 * @param [writer] Writer to encode to
7354 * @returns Writer
7355 */
7356 public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
7357
7358 /**
7359 * Decodes an ExtensionRange message from the specified reader or buffer.
7360 * @param reader Reader or buffer to decode from
7361 * @param [length] Message length if known beforehand
7362 * @returns ExtensionRange
7363 * @throws {Error} If the payload is not a reader or valid buffer
7364 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7365 */
7366 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
7367
7368 /**
7369 * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
7370 * @param reader Reader or buffer to decode from
7371 * @returns ExtensionRange
7372 * @throws {Error} If the payload is not a reader or valid buffer
7373 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7374 */
7375 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
7376
7377 /**
7378 * Verifies an ExtensionRange message.
7379 * @param message Plain object to verify
7380 * @returns `null` if valid, otherwise the reason why it is not
7381 */
7382 public static verify(message: { [k: string]: any }): (string|null);
7383
7384 /**
7385 * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
7386 * @param object Plain object
7387 * @returns ExtensionRange
7388 */
7389 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
7390
7391 /**
7392 * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
7393 * @param message ExtensionRange
7394 * @param [options] Conversion options
7395 * @returns Plain object
7396 */
7397 public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
7398
7399 /**
7400 * Converts this ExtensionRange to JSON.
7401 * @returns JSON object
7402 */
7403 public toJSON(): { [k: string]: any };
7404 }
7405
7406 /** Properties of a ReservedRange. */
7407 interface IReservedRange {
7408
7409 /** ReservedRange start */
7410 start?: (number|null);
7411
7412 /** ReservedRange end */
7413 end?: (number|null);
7414 }
7415
7416 /** Represents a ReservedRange. */
7417 class ReservedRange implements IReservedRange {
7418
7419 /**
7420 * Constructs a new ReservedRange.
7421 * @param [properties] Properties to set
7422 */
7423 constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
7424
7425 /** ReservedRange start. */
7426 public start: number;
7427
7428 /** ReservedRange end. */
7429 public end: number;
7430
7431 /**
7432 * Creates a new ReservedRange instance using the specified properties.
7433 * @param [properties] Properties to set
7434 * @returns ReservedRange instance
7435 */
7436 public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
7437
7438 /**
7439 * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
7440 * @param message ReservedRange message or plain object to encode
7441 * @param [writer] Writer to encode to
7442 * @returns Writer
7443 */
7444 public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
7445
7446 /**
7447 * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
7448 * @param message ReservedRange message or plain object to encode
7449 * @param [writer] Writer to encode to
7450 * @returns Writer
7451 */
7452 public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
7453
7454 /**
7455 * Decodes a ReservedRange message from the specified reader or buffer.
7456 * @param reader Reader or buffer to decode from
7457 * @param [length] Message length if known beforehand
7458 * @returns ReservedRange
7459 * @throws {Error} If the payload is not a reader or valid buffer
7460 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7461 */
7462 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
7463
7464 /**
7465 * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
7466 * @param reader Reader or buffer to decode from
7467 * @returns ReservedRange
7468 * @throws {Error} If the payload is not a reader or valid buffer
7469 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7470 */
7471 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
7472
7473 /**
7474 * Verifies a ReservedRange message.
7475 * @param message Plain object to verify
7476 * @returns `null` if valid, otherwise the reason why it is not
7477 */
7478 public static verify(message: { [k: string]: any }): (string|null);
7479
7480 /**
7481 * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
7482 * @param object Plain object
7483 * @returns ReservedRange
7484 */
7485 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
7486
7487 /**
7488 * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
7489 * @param message ReservedRange
7490 * @param [options] Conversion options
7491 * @returns Plain object
7492 */
7493 public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
7494
7495 /**
7496 * Converts this ReservedRange to JSON.
7497 * @returns JSON object
7498 */
7499 public toJSON(): { [k: string]: any };
7500 }
7501 }
7502
7503 /** Properties of an ExtensionRangeOptions. */
7504 interface IExtensionRangeOptions {
7505
7506 /** ExtensionRangeOptions uninterpretedOption */
7507 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
7508 }
7509
7510 /** Represents an ExtensionRangeOptions. */
7511 class ExtensionRangeOptions implements IExtensionRangeOptions {
7512
7513 /**
7514 * Constructs a new ExtensionRangeOptions.
7515 * @param [properties] Properties to set
7516 */
7517 constructor(properties?: google.protobuf.IExtensionRangeOptions);
7518
7519 /** ExtensionRangeOptions uninterpretedOption. */
7520 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
7521
7522 /**
7523 * Creates a new ExtensionRangeOptions instance using the specified properties.
7524 * @param [properties] Properties to set
7525 * @returns ExtensionRangeOptions instance
7526 */
7527 public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
7528
7529 /**
7530 * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
7531 * @param message ExtensionRangeOptions message or plain object to encode
7532 * @param [writer] Writer to encode to
7533 * @returns Writer
7534 */
7535 public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
7536
7537 /**
7538 * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
7539 * @param message ExtensionRangeOptions message or plain object to encode
7540 * @param [writer] Writer to encode to
7541 * @returns Writer
7542 */
7543 public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
7544
7545 /**
7546 * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
7547 * @param reader Reader or buffer to decode from
7548 * @param [length] Message length if known beforehand
7549 * @returns ExtensionRangeOptions
7550 * @throws {Error} If the payload is not a reader or valid buffer
7551 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7552 */
7553 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
7554
7555 /**
7556 * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
7557 * @param reader Reader or buffer to decode from
7558 * @returns ExtensionRangeOptions
7559 * @throws {Error} If the payload is not a reader or valid buffer
7560 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7561 */
7562 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
7563
7564 /**
7565 * Verifies an ExtensionRangeOptions message.
7566 * @param message Plain object to verify
7567 * @returns `null` if valid, otherwise the reason why it is not
7568 */
7569 public static verify(message: { [k: string]: any }): (string|null);
7570
7571 /**
7572 * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
7573 * @param object Plain object
7574 * @returns ExtensionRangeOptions
7575 */
7576 public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
7577
7578 /**
7579 * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
7580 * @param message ExtensionRangeOptions
7581 * @param [options] Conversion options
7582 * @returns Plain object
7583 */
7584 public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
7585
7586 /**
7587 * Converts this ExtensionRangeOptions to JSON.
7588 * @returns JSON object
7589 */
7590 public toJSON(): { [k: string]: any };
7591 }
7592
7593 /** Properties of a FieldDescriptorProto. */
7594 interface IFieldDescriptorProto {
7595
7596 /** FieldDescriptorProto name */
7597 name?: (string|null);
7598
7599 /** FieldDescriptorProto number */
7600 number?: (number|null);
7601
7602 /** FieldDescriptorProto label */
7603 label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
7604
7605 /** FieldDescriptorProto type */
7606 type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
7607
7608 /** FieldDescriptorProto typeName */
7609 typeName?: (string|null);
7610
7611 /** FieldDescriptorProto extendee */
7612 extendee?: (string|null);
7613
7614 /** FieldDescriptorProto defaultValue */
7615 defaultValue?: (string|null);
7616
7617 /** FieldDescriptorProto oneofIndex */
7618 oneofIndex?: (number|null);
7619
7620 /** FieldDescriptorProto jsonName */
7621 jsonName?: (string|null);
7622
7623 /** FieldDescriptorProto options */
7624 options?: (google.protobuf.IFieldOptions|null);
7625
7626 /** FieldDescriptorProto proto3Optional */
7627 proto3Optional?: (boolean|null);
7628 }
7629
7630 /** Represents a FieldDescriptorProto. */
7631 class FieldDescriptorProto implements IFieldDescriptorProto {
7632
7633 /**
7634 * Constructs a new FieldDescriptorProto.
7635 * @param [properties] Properties to set
7636 */
7637 constructor(properties?: google.protobuf.IFieldDescriptorProto);
7638
7639 /** FieldDescriptorProto name. */
7640 public name: string;
7641
7642 /** FieldDescriptorProto number. */
7643 public number: number;
7644
7645 /** FieldDescriptorProto label. */
7646 public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
7647
7648 /** FieldDescriptorProto type. */
7649 public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
7650
7651 /** FieldDescriptorProto typeName. */
7652 public typeName: string;
7653
7654 /** FieldDescriptorProto extendee. */
7655 public extendee: string;
7656
7657 /** FieldDescriptorProto defaultValue. */
7658 public defaultValue: string;
7659
7660 /** FieldDescriptorProto oneofIndex. */
7661 public oneofIndex: number;
7662
7663 /** FieldDescriptorProto jsonName. */
7664 public jsonName: string;
7665
7666 /** FieldDescriptorProto options. */
7667 public options?: (google.protobuf.IFieldOptions|null);
7668
7669 /** FieldDescriptorProto proto3Optional. */
7670 public proto3Optional: boolean;
7671
7672 /**
7673 * Creates a new FieldDescriptorProto instance using the specified properties.
7674 * @param [properties] Properties to set
7675 * @returns FieldDescriptorProto instance
7676 */
7677 public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
7678
7679 /**
7680 * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
7681 * @param message FieldDescriptorProto message or plain object to encode
7682 * @param [writer] Writer to encode to
7683 * @returns Writer
7684 */
7685 public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7686
7687 /**
7688 * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
7689 * @param message FieldDescriptorProto message or plain object to encode
7690 * @param [writer] Writer to encode to
7691 * @returns Writer
7692 */
7693 public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7694
7695 /**
7696 * Decodes a FieldDescriptorProto message from the specified reader or buffer.
7697 * @param reader Reader or buffer to decode from
7698 * @param [length] Message length if known beforehand
7699 * @returns FieldDescriptorProto
7700 * @throws {Error} If the payload is not a reader or valid buffer
7701 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7702 */
7703 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
7704
7705 /**
7706 * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
7707 * @param reader Reader or buffer to decode from
7708 * @returns FieldDescriptorProto
7709 * @throws {Error} If the payload is not a reader or valid buffer
7710 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7711 */
7712 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
7713
7714 /**
7715 * Verifies a FieldDescriptorProto message.
7716 * @param message Plain object to verify
7717 * @returns `null` if valid, otherwise the reason why it is not
7718 */
7719 public static verify(message: { [k: string]: any }): (string|null);
7720
7721 /**
7722 * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
7723 * @param object Plain object
7724 * @returns FieldDescriptorProto
7725 */
7726 public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
7727
7728 /**
7729 * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
7730 * @param message FieldDescriptorProto
7731 * @param [options] Conversion options
7732 * @returns Plain object
7733 */
7734 public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7735
7736 /**
7737 * Converts this FieldDescriptorProto to JSON.
7738 * @returns JSON object
7739 */
7740 public toJSON(): { [k: string]: any };
7741 }
7742
7743 namespace FieldDescriptorProto {
7744
7745 /** Type enum. */
7746 enum Type {
7747 TYPE_DOUBLE = 1,
7748 TYPE_FLOAT = 2,
7749 TYPE_INT64 = 3,
7750 TYPE_UINT64 = 4,
7751 TYPE_INT32 = 5,
7752 TYPE_FIXED64 = 6,
7753 TYPE_FIXED32 = 7,
7754 TYPE_BOOL = 8,
7755 TYPE_STRING = 9,
7756 TYPE_GROUP = 10,
7757 TYPE_MESSAGE = 11,
7758 TYPE_BYTES = 12,
7759 TYPE_UINT32 = 13,
7760 TYPE_ENUM = 14,
7761 TYPE_SFIXED32 = 15,
7762 TYPE_SFIXED64 = 16,
7763 TYPE_SINT32 = 17,
7764 TYPE_SINT64 = 18
7765 }
7766
7767 /** Label enum. */
7768 enum Label {
7769 LABEL_OPTIONAL = 1,
7770 LABEL_REQUIRED = 2,
7771 LABEL_REPEATED = 3
7772 }
7773 }
7774
7775 /** Properties of an OneofDescriptorProto. */
7776 interface IOneofDescriptorProto {
7777
7778 /** OneofDescriptorProto name */
7779 name?: (string|null);
7780
7781 /** OneofDescriptorProto options */
7782 options?: (google.protobuf.IOneofOptions|null);
7783 }
7784
7785 /** Represents an OneofDescriptorProto. */
7786 class OneofDescriptorProto implements IOneofDescriptorProto {
7787
7788 /**
7789 * Constructs a new OneofDescriptorProto.
7790 * @param [properties] Properties to set
7791 */
7792 constructor(properties?: google.protobuf.IOneofDescriptorProto);
7793
7794 /** OneofDescriptorProto name. */
7795 public name: string;
7796
7797 /** OneofDescriptorProto options. */
7798 public options?: (google.protobuf.IOneofOptions|null);
7799
7800 /**
7801 * Creates a new OneofDescriptorProto instance using the specified properties.
7802 * @param [properties] Properties to set
7803 * @returns OneofDescriptorProto instance
7804 */
7805 public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
7806
7807 /**
7808 * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
7809 * @param message OneofDescriptorProto message or plain object to encode
7810 * @param [writer] Writer to encode to
7811 * @returns Writer
7812 */
7813 public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7814
7815 /**
7816 * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
7817 * @param message OneofDescriptorProto message or plain object to encode
7818 * @param [writer] Writer to encode to
7819 * @returns Writer
7820 */
7821 public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7822
7823 /**
7824 * Decodes an OneofDescriptorProto message from the specified reader or buffer.
7825 * @param reader Reader or buffer to decode from
7826 * @param [length] Message length if known beforehand
7827 * @returns OneofDescriptorProto
7828 * @throws {Error} If the payload is not a reader or valid buffer
7829 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7830 */
7831 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
7832
7833 /**
7834 * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
7835 * @param reader Reader or buffer to decode from
7836 * @returns OneofDescriptorProto
7837 * @throws {Error} If the payload is not a reader or valid buffer
7838 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7839 */
7840 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
7841
7842 /**
7843 * Verifies an OneofDescriptorProto message.
7844 * @param message Plain object to verify
7845 * @returns `null` if valid, otherwise the reason why it is not
7846 */
7847 public static verify(message: { [k: string]: any }): (string|null);
7848
7849 /**
7850 * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
7851 * @param object Plain object
7852 * @returns OneofDescriptorProto
7853 */
7854 public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
7855
7856 /**
7857 * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
7858 * @param message OneofDescriptorProto
7859 * @param [options] Conversion options
7860 * @returns Plain object
7861 */
7862 public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7863
7864 /**
7865 * Converts this OneofDescriptorProto to JSON.
7866 * @returns JSON object
7867 */
7868 public toJSON(): { [k: string]: any };
7869 }
7870
7871 /** Properties of an EnumDescriptorProto. */
7872 interface IEnumDescriptorProto {
7873
7874 /** EnumDescriptorProto name */
7875 name?: (string|null);
7876
7877 /** EnumDescriptorProto value */
7878 value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
7879
7880 /** EnumDescriptorProto options */
7881 options?: (google.protobuf.IEnumOptions|null);
7882
7883 /** EnumDescriptorProto reservedRange */
7884 reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
7885
7886 /** EnumDescriptorProto reservedName */
7887 reservedName?: (string[]|null);
7888 }
7889
7890 /** Represents an EnumDescriptorProto. */
7891 class EnumDescriptorProto implements IEnumDescriptorProto {
7892
7893 /**
7894 * Constructs a new EnumDescriptorProto.
7895 * @param [properties] Properties to set
7896 */
7897 constructor(properties?: google.protobuf.IEnumDescriptorProto);
7898
7899 /** EnumDescriptorProto name. */
7900 public name: string;
7901
7902 /** EnumDescriptorProto value. */
7903 public value: google.protobuf.IEnumValueDescriptorProto[];
7904
7905 /** EnumDescriptorProto options. */
7906 public options?: (google.protobuf.IEnumOptions|null);
7907
7908 /** EnumDescriptorProto reservedRange. */
7909 public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
7910
7911 /** EnumDescriptorProto reservedName. */
7912 public reservedName: string[];
7913
7914 /**
7915 * Creates a new EnumDescriptorProto instance using the specified properties.
7916 * @param [properties] Properties to set
7917 * @returns EnumDescriptorProto instance
7918 */
7919 public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
7920
7921 /**
7922 * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
7923 * @param message EnumDescriptorProto message or plain object to encode
7924 * @param [writer] Writer to encode to
7925 * @returns Writer
7926 */
7927 public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7928
7929 /**
7930 * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
7931 * @param message EnumDescriptorProto message or plain object to encode
7932 * @param [writer] Writer to encode to
7933 * @returns Writer
7934 */
7935 public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7936
7937 /**
7938 * Decodes an EnumDescriptorProto message from the specified reader or buffer.
7939 * @param reader Reader or buffer to decode from
7940 * @param [length] Message length if known beforehand
7941 * @returns EnumDescriptorProto
7942 * @throws {Error} If the payload is not a reader or valid buffer
7943 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7944 */
7945 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
7946
7947 /**
7948 * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
7949 * @param reader Reader or buffer to decode from
7950 * @returns EnumDescriptorProto
7951 * @throws {Error} If the payload is not a reader or valid buffer
7952 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7953 */
7954 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
7955
7956 /**
7957 * Verifies an EnumDescriptorProto message.
7958 * @param message Plain object to verify
7959 * @returns `null` if valid, otherwise the reason why it is not
7960 */
7961 public static verify(message: { [k: string]: any }): (string|null);
7962
7963 /**
7964 * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
7965 * @param object Plain object
7966 * @returns EnumDescriptorProto
7967 */
7968 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
7969
7970 /**
7971 * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
7972 * @param message EnumDescriptorProto
7973 * @param [options] Conversion options
7974 * @returns Plain object
7975 */
7976 public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7977
7978 /**
7979 * Converts this EnumDescriptorProto to JSON.
7980 * @returns JSON object
7981 */
7982 public toJSON(): { [k: string]: any };
7983 }
7984
7985 namespace EnumDescriptorProto {
7986
7987 /** Properties of an EnumReservedRange. */
7988 interface IEnumReservedRange {
7989
7990 /** EnumReservedRange start */
7991 start?: (number|null);
7992
7993 /** EnumReservedRange end */
7994 end?: (number|null);
7995 }
7996
7997 /** Represents an EnumReservedRange. */
7998 class EnumReservedRange implements IEnumReservedRange {
7999
8000 /**
8001 * Constructs a new EnumReservedRange.
8002 * @param [properties] Properties to set
8003 */
8004 constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
8005
8006 /** EnumReservedRange start. */
8007 public start: number;
8008
8009 /** EnumReservedRange end. */
8010 public end: number;
8011
8012 /**
8013 * Creates a new EnumReservedRange instance using the specified properties.
8014 * @param [properties] Properties to set
8015 * @returns EnumReservedRange instance
8016 */
8017 public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
8018
8019 /**
8020 * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
8021 * @param message EnumReservedRange message or plain object to encode
8022 * @param [writer] Writer to encode to
8023 * @returns Writer
8024 */
8025 public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
8026
8027 /**
8028 * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
8029 * @param message EnumReservedRange message or plain object to encode
8030 * @param [writer] Writer to encode to
8031 * @returns Writer
8032 */
8033 public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
8034
8035 /**
8036 * Decodes an EnumReservedRange message from the specified reader or buffer.
8037 * @param reader Reader or buffer to decode from
8038 * @param [length] Message length if known beforehand
8039 * @returns EnumReservedRange
8040 * @throws {Error} If the payload is not a reader or valid buffer
8041 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8042 */
8043 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
8044
8045 /**
8046 * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
8047 * @param reader Reader or buffer to decode from
8048 * @returns EnumReservedRange
8049 * @throws {Error} If the payload is not a reader or valid buffer
8050 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8051 */
8052 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
8053
8054 /**
8055 * Verifies an EnumReservedRange message.
8056 * @param message Plain object to verify
8057 * @returns `null` if valid, otherwise the reason why it is not
8058 */
8059 public static verify(message: { [k: string]: any }): (string|null);
8060
8061 /**
8062 * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
8063 * @param object Plain object
8064 * @returns EnumReservedRange
8065 */
8066 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
8067
8068 /**
8069 * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
8070 * @param message EnumReservedRange
8071 * @param [options] Conversion options
8072 * @returns Plain object
8073 */
8074 public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
8075
8076 /**
8077 * Converts this EnumReservedRange to JSON.
8078 * @returns JSON object
8079 */
8080 public toJSON(): { [k: string]: any };
8081 }
8082 }
8083
8084 /** Properties of an EnumValueDescriptorProto. */
8085 interface IEnumValueDescriptorProto {
8086
8087 /** EnumValueDescriptorProto name */
8088 name?: (string|null);
8089
8090 /** EnumValueDescriptorProto number */
8091 number?: (number|null);
8092
8093 /** EnumValueDescriptorProto options */
8094 options?: (google.protobuf.IEnumValueOptions|null);
8095 }
8096
8097 /** Represents an EnumValueDescriptorProto. */
8098 class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
8099
8100 /**
8101 * Constructs a new EnumValueDescriptorProto.
8102 * @param [properties] Properties to set
8103 */
8104 constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
8105
8106 /** EnumValueDescriptorProto name. */
8107 public name: string;
8108
8109 /** EnumValueDescriptorProto number. */
8110 public number: number;
8111
8112 /** EnumValueDescriptorProto options. */
8113 public options?: (google.protobuf.IEnumValueOptions|null);
8114
8115 /**
8116 * Creates a new EnumValueDescriptorProto instance using the specified properties.
8117 * @param [properties] Properties to set
8118 * @returns EnumValueDescriptorProto instance
8119 */
8120 public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
8121
8122 /**
8123 * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
8124 * @param message EnumValueDescriptorProto message or plain object to encode
8125 * @param [writer] Writer to encode to
8126 * @returns Writer
8127 */
8128 public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8129
8130 /**
8131 * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
8132 * @param message EnumValueDescriptorProto message or plain object to encode
8133 * @param [writer] Writer to encode to
8134 * @returns Writer
8135 */
8136 public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8137
8138 /**
8139 * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
8140 * @param reader Reader or buffer to decode from
8141 * @param [length] Message length if known beforehand
8142 * @returns EnumValueDescriptorProto
8143 * @throws {Error} If the payload is not a reader or valid buffer
8144 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8145 */
8146 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
8147
8148 /**
8149 * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
8150 * @param reader Reader or buffer to decode from
8151 * @returns EnumValueDescriptorProto
8152 * @throws {Error} If the payload is not a reader or valid buffer
8153 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8154 */
8155 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
8156
8157 /**
8158 * Verifies an EnumValueDescriptorProto message.
8159 * @param message Plain object to verify
8160 * @returns `null` if valid, otherwise the reason why it is not
8161 */
8162 public static verify(message: { [k: string]: any }): (string|null);
8163
8164 /**
8165 * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
8166 * @param object Plain object
8167 * @returns EnumValueDescriptorProto
8168 */
8169 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
8170
8171 /**
8172 * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
8173 * @param message EnumValueDescriptorProto
8174 * @param [options] Conversion options
8175 * @returns Plain object
8176 */
8177 public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
8178
8179 /**
8180 * Converts this EnumValueDescriptorProto to JSON.
8181 * @returns JSON object
8182 */
8183 public toJSON(): { [k: string]: any };
8184 }
8185
8186 /** Properties of a ServiceDescriptorProto. */
8187 interface IServiceDescriptorProto {
8188
8189 /** ServiceDescriptorProto name */
8190 name?: (string|null);
8191
8192 /** ServiceDescriptorProto method */
8193 method?: (google.protobuf.IMethodDescriptorProto[]|null);
8194
8195 /** ServiceDescriptorProto options */
8196 options?: (google.protobuf.IServiceOptions|null);
8197 }
8198
8199 /** Represents a ServiceDescriptorProto. */
8200 class ServiceDescriptorProto implements IServiceDescriptorProto {
8201
8202 /**
8203 * Constructs a new ServiceDescriptorProto.
8204 * @param [properties] Properties to set
8205 */
8206 constructor(properties?: google.protobuf.IServiceDescriptorProto);
8207
8208 /** ServiceDescriptorProto name. */
8209 public name: string;
8210
8211 /** ServiceDescriptorProto method. */
8212 public method: google.protobuf.IMethodDescriptorProto[];
8213
8214 /** ServiceDescriptorProto options. */
8215 public options?: (google.protobuf.IServiceOptions|null);
8216
8217 /**
8218 * Creates a new ServiceDescriptorProto instance using the specified properties.
8219 * @param [properties] Properties to set
8220 * @returns ServiceDescriptorProto instance
8221 */
8222 public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
8223
8224 /**
8225 * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
8226 * @param message ServiceDescriptorProto message or plain object to encode
8227 * @param [writer] Writer to encode to
8228 * @returns Writer
8229 */
8230 public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8231
8232 /**
8233 * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
8234 * @param message ServiceDescriptorProto message or plain object to encode
8235 * @param [writer] Writer to encode to
8236 * @returns Writer
8237 */
8238 public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8239
8240 /**
8241 * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
8242 * @param reader Reader or buffer to decode from
8243 * @param [length] Message length if known beforehand
8244 * @returns ServiceDescriptorProto
8245 * @throws {Error} If the payload is not a reader or valid buffer
8246 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8247 */
8248 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
8249
8250 /**
8251 * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
8252 * @param reader Reader or buffer to decode from
8253 * @returns ServiceDescriptorProto
8254 * @throws {Error} If the payload is not a reader or valid buffer
8255 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8256 */
8257 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
8258
8259 /**
8260 * Verifies a ServiceDescriptorProto message.
8261 * @param message Plain object to verify
8262 * @returns `null` if valid, otherwise the reason why it is not
8263 */
8264 public static verify(message: { [k: string]: any }): (string|null);
8265
8266 /**
8267 * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
8268 * @param object Plain object
8269 * @returns ServiceDescriptorProto
8270 */
8271 public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
8272
8273 /**
8274 * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
8275 * @param message ServiceDescriptorProto
8276 * @param [options] Conversion options
8277 * @returns Plain object
8278 */
8279 public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
8280
8281 /**
8282 * Converts this ServiceDescriptorProto to JSON.
8283 * @returns JSON object
8284 */
8285 public toJSON(): { [k: string]: any };
8286 }
8287
8288 /** Properties of a MethodDescriptorProto. */
8289 interface IMethodDescriptorProto {
8290
8291 /** MethodDescriptorProto name */
8292 name?: (string|null);
8293
8294 /** MethodDescriptorProto inputType */
8295 inputType?: (string|null);
8296
8297 /** MethodDescriptorProto outputType */
8298 outputType?: (string|null);
8299
8300 /** MethodDescriptorProto options */
8301 options?: (google.protobuf.IMethodOptions|null);
8302
8303 /** MethodDescriptorProto clientStreaming */
8304 clientStreaming?: (boolean|null);
8305
8306 /** MethodDescriptorProto serverStreaming */
8307 serverStreaming?: (boolean|null);
8308 }
8309
8310 /** Represents a MethodDescriptorProto. */
8311 class MethodDescriptorProto implements IMethodDescriptorProto {
8312
8313 /**
8314 * Constructs a new MethodDescriptorProto.
8315 * @param [properties] Properties to set
8316 */
8317 constructor(properties?: google.protobuf.IMethodDescriptorProto);
8318
8319 /** MethodDescriptorProto name. */
8320 public name: string;
8321
8322 /** MethodDescriptorProto inputType. */
8323 public inputType: string;
8324
8325 /** MethodDescriptorProto outputType. */
8326 public outputType: string;
8327
8328 /** MethodDescriptorProto options. */
8329 public options?: (google.protobuf.IMethodOptions|null);
8330
8331 /** MethodDescriptorProto clientStreaming. */
8332 public clientStreaming: boolean;
8333
8334 /** MethodDescriptorProto serverStreaming. */
8335 public serverStreaming: boolean;
8336
8337 /**
8338 * Creates a new MethodDescriptorProto instance using the specified properties.
8339 * @param [properties] Properties to set
8340 * @returns MethodDescriptorProto instance
8341 */
8342 public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
8343
8344 /**
8345 * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
8346 * @param message MethodDescriptorProto message or plain object to encode
8347 * @param [writer] Writer to encode to
8348 * @returns Writer
8349 */
8350 public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8351
8352 /**
8353 * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
8354 * @param message MethodDescriptorProto message or plain object to encode
8355 * @param [writer] Writer to encode to
8356 * @returns Writer
8357 */
8358 public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8359
8360 /**
8361 * Decodes a MethodDescriptorProto message from the specified reader or buffer.
8362 * @param reader Reader or buffer to decode from
8363 * @param [length] Message length if known beforehand
8364 * @returns MethodDescriptorProto
8365 * @throws {Error} If the payload is not a reader or valid buffer
8366 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8367 */
8368 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
8369
8370 /**
8371 * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
8372 * @param reader Reader or buffer to decode from
8373 * @returns MethodDescriptorProto
8374 * @throws {Error} If the payload is not a reader or valid buffer
8375 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8376 */
8377 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
8378
8379 /**
8380 * Verifies a MethodDescriptorProto message.
8381 * @param message Plain object to verify
8382 * @returns `null` if valid, otherwise the reason why it is not
8383 */
8384 public static verify(message: { [k: string]: any }): (string|null);
8385
8386 /**
8387 * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
8388 * @param object Plain object
8389 * @returns MethodDescriptorProto
8390 */
8391 public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
8392
8393 /**
8394 * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
8395 * @param message MethodDescriptorProto
8396 * @param [options] Conversion options
8397 * @returns Plain object
8398 */
8399 public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
8400
8401 /**
8402 * Converts this MethodDescriptorProto to JSON.
8403 * @returns JSON object
8404 */
8405 public toJSON(): { [k: string]: any };
8406 }
8407
8408 /** Properties of a FileOptions. */
8409 interface IFileOptions {
8410
8411 /** FileOptions javaPackage */
8412 javaPackage?: (string|null);
8413
8414 /** FileOptions javaOuterClassname */
8415 javaOuterClassname?: (string|null);
8416
8417 /** FileOptions javaMultipleFiles */
8418 javaMultipleFiles?: (boolean|null);
8419
8420 /** FileOptions javaGenerateEqualsAndHash */
8421 javaGenerateEqualsAndHash?: (boolean|null);
8422
8423 /** FileOptions javaStringCheckUtf8 */
8424 javaStringCheckUtf8?: (boolean|null);
8425
8426 /** FileOptions optimizeFor */
8427 optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
8428
8429 /** FileOptions goPackage */
8430 goPackage?: (string|null);
8431
8432 /** FileOptions ccGenericServices */
8433 ccGenericServices?: (boolean|null);
8434
8435 /** FileOptions javaGenericServices */
8436 javaGenericServices?: (boolean|null);
8437
8438 /** FileOptions pyGenericServices */
8439 pyGenericServices?: (boolean|null);
8440
8441 /** FileOptions phpGenericServices */
8442 phpGenericServices?: (boolean|null);
8443
8444 /** FileOptions deprecated */
8445 deprecated?: (boolean|null);
8446
8447 /** FileOptions ccEnableArenas */
8448 ccEnableArenas?: (boolean|null);
8449
8450 /** FileOptions objcClassPrefix */
8451 objcClassPrefix?: (string|null);
8452
8453 /** FileOptions csharpNamespace */
8454 csharpNamespace?: (string|null);
8455
8456 /** FileOptions swiftPrefix */
8457 swiftPrefix?: (string|null);
8458
8459 /** FileOptions phpClassPrefix */
8460 phpClassPrefix?: (string|null);
8461
8462 /** FileOptions phpNamespace */
8463 phpNamespace?: (string|null);
8464
8465 /** FileOptions phpMetadataNamespace */
8466 phpMetadataNamespace?: (string|null);
8467
8468 /** FileOptions rubyPackage */
8469 rubyPackage?: (string|null);
8470
8471 /** FileOptions uninterpretedOption */
8472 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8473
8474 /** FileOptions .google.api.resourceDefinition */
8475 ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
8476 }
8477
8478 /** Represents a FileOptions. */
8479 class FileOptions implements IFileOptions {
8480
8481 /**
8482 * Constructs a new FileOptions.
8483 * @param [properties] Properties to set
8484 */
8485 constructor(properties?: google.protobuf.IFileOptions);
8486
8487 /** FileOptions javaPackage. */
8488 public javaPackage: string;
8489
8490 /** FileOptions javaOuterClassname. */
8491 public javaOuterClassname: string;
8492
8493 /** FileOptions javaMultipleFiles. */
8494 public javaMultipleFiles: boolean;
8495
8496 /** FileOptions javaGenerateEqualsAndHash. */
8497 public javaGenerateEqualsAndHash: boolean;
8498
8499 /** FileOptions javaStringCheckUtf8. */
8500 public javaStringCheckUtf8: boolean;
8501
8502 /** FileOptions optimizeFor. */
8503 public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
8504
8505 /** FileOptions goPackage. */
8506 public goPackage: string;
8507
8508 /** FileOptions ccGenericServices. */
8509 public ccGenericServices: boolean;
8510
8511 /** FileOptions javaGenericServices. */
8512 public javaGenericServices: boolean;
8513
8514 /** FileOptions pyGenericServices. */
8515 public pyGenericServices: boolean;
8516
8517 /** FileOptions phpGenericServices. */
8518 public phpGenericServices: boolean;
8519
8520 /** FileOptions deprecated. */
8521 public deprecated: boolean;
8522
8523 /** FileOptions ccEnableArenas. */
8524 public ccEnableArenas: boolean;
8525
8526 /** FileOptions objcClassPrefix. */
8527 public objcClassPrefix: string;
8528
8529 /** FileOptions csharpNamespace. */
8530 public csharpNamespace: string;
8531
8532 /** FileOptions swiftPrefix. */
8533 public swiftPrefix: string;
8534
8535 /** FileOptions phpClassPrefix. */
8536 public phpClassPrefix: string;
8537
8538 /** FileOptions phpNamespace. */
8539 public phpNamespace: string;
8540
8541 /** FileOptions phpMetadataNamespace. */
8542 public phpMetadataNamespace: string;
8543
8544 /** FileOptions rubyPackage. */
8545 public rubyPackage: string;
8546
8547 /** FileOptions uninterpretedOption. */
8548 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8549
8550 /**
8551 * Creates a new FileOptions instance using the specified properties.
8552 * @param [properties] Properties to set
8553 * @returns FileOptions instance
8554 */
8555 public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
8556
8557 /**
8558 * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
8559 * @param message FileOptions message or plain object to encode
8560 * @param [writer] Writer to encode to
8561 * @returns Writer
8562 */
8563 public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8564
8565 /**
8566 * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
8567 * @param message FileOptions message or plain object to encode
8568 * @param [writer] Writer to encode to
8569 * @returns Writer
8570 */
8571 public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8572
8573 /**
8574 * Decodes a FileOptions message from the specified reader or buffer.
8575 * @param reader Reader or buffer to decode from
8576 * @param [length] Message length if known beforehand
8577 * @returns FileOptions
8578 * @throws {Error} If the payload is not a reader or valid buffer
8579 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8580 */
8581 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
8582
8583 /**
8584 * Decodes a FileOptions message from the specified reader or buffer, length delimited.
8585 * @param reader Reader or buffer to decode from
8586 * @returns FileOptions
8587 * @throws {Error} If the payload is not a reader or valid buffer
8588 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8589 */
8590 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
8591
8592 /**
8593 * Verifies a FileOptions message.
8594 * @param message Plain object to verify
8595 * @returns `null` if valid, otherwise the reason why it is not
8596 */
8597 public static verify(message: { [k: string]: any }): (string|null);
8598
8599 /**
8600 * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
8601 * @param object Plain object
8602 * @returns FileOptions
8603 */
8604 public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
8605
8606 /**
8607 * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
8608 * @param message FileOptions
8609 * @param [options] Conversion options
8610 * @returns Plain object
8611 */
8612 public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8613
8614 /**
8615 * Converts this FileOptions to JSON.
8616 * @returns JSON object
8617 */
8618 public toJSON(): { [k: string]: any };
8619 }
8620
8621 namespace FileOptions {
8622
8623 /** OptimizeMode enum. */
8624 enum OptimizeMode {
8625 SPEED = 1,
8626 CODE_SIZE = 2,
8627 LITE_RUNTIME = 3
8628 }
8629 }
8630
8631 /** Properties of a MessageOptions. */
8632 interface IMessageOptions {
8633
8634 /** MessageOptions messageSetWireFormat */
8635 messageSetWireFormat?: (boolean|null);
8636
8637 /** MessageOptions noStandardDescriptorAccessor */
8638 noStandardDescriptorAccessor?: (boolean|null);
8639
8640 /** MessageOptions deprecated */
8641 deprecated?: (boolean|null);
8642
8643 /** MessageOptions mapEntry */
8644 mapEntry?: (boolean|null);
8645
8646 /** MessageOptions uninterpretedOption */
8647 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8648
8649 /** MessageOptions .google.api.resource */
8650 ".google.api.resource"?: (google.api.IResourceDescriptor|null);
8651 }
8652
8653 /** Represents a MessageOptions. */
8654 class MessageOptions implements IMessageOptions {
8655
8656 /**
8657 * Constructs a new MessageOptions.
8658 * @param [properties] Properties to set
8659 */
8660 constructor(properties?: google.protobuf.IMessageOptions);
8661
8662 /** MessageOptions messageSetWireFormat. */
8663 public messageSetWireFormat: boolean;
8664
8665 /** MessageOptions noStandardDescriptorAccessor. */
8666 public noStandardDescriptorAccessor: boolean;
8667
8668 /** MessageOptions deprecated. */
8669 public deprecated: boolean;
8670
8671 /** MessageOptions mapEntry. */
8672 public mapEntry: boolean;
8673
8674 /** MessageOptions uninterpretedOption. */
8675 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8676
8677 /**
8678 * Creates a new MessageOptions instance using the specified properties.
8679 * @param [properties] Properties to set
8680 * @returns MessageOptions instance
8681 */
8682 public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
8683
8684 /**
8685 * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
8686 * @param message MessageOptions message or plain object to encode
8687 * @param [writer] Writer to encode to
8688 * @returns Writer
8689 */
8690 public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8691
8692 /**
8693 * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
8694 * @param message MessageOptions message or plain object to encode
8695 * @param [writer] Writer to encode to
8696 * @returns Writer
8697 */
8698 public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8699
8700 /**
8701 * Decodes a MessageOptions message from the specified reader or buffer.
8702 * @param reader Reader or buffer to decode from
8703 * @param [length] Message length if known beforehand
8704 * @returns MessageOptions
8705 * @throws {Error} If the payload is not a reader or valid buffer
8706 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8707 */
8708 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
8709
8710 /**
8711 * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
8712 * @param reader Reader or buffer to decode from
8713 * @returns MessageOptions
8714 * @throws {Error} If the payload is not a reader or valid buffer
8715 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8716 */
8717 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
8718
8719 /**
8720 * Verifies a MessageOptions message.
8721 * @param message Plain object to verify
8722 * @returns `null` if valid, otherwise the reason why it is not
8723 */
8724 public static verify(message: { [k: string]: any }): (string|null);
8725
8726 /**
8727 * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
8728 * @param object Plain object
8729 * @returns MessageOptions
8730 */
8731 public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
8732
8733 /**
8734 * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
8735 * @param message MessageOptions
8736 * @param [options] Conversion options
8737 * @returns Plain object
8738 */
8739 public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8740
8741 /**
8742 * Converts this MessageOptions to JSON.
8743 * @returns JSON object
8744 */
8745 public toJSON(): { [k: string]: any };
8746 }
8747
8748 /** Properties of a FieldOptions. */
8749 interface IFieldOptions {
8750
8751 /** FieldOptions ctype */
8752 ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
8753
8754 /** FieldOptions packed */
8755 packed?: (boolean|null);
8756
8757 /** FieldOptions jstype */
8758 jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
8759
8760 /** FieldOptions lazy */
8761 lazy?: (boolean|null);
8762
8763 /** FieldOptions deprecated */
8764 deprecated?: (boolean|null);
8765
8766 /** FieldOptions weak */
8767 weak?: (boolean|null);
8768
8769 /** FieldOptions uninterpretedOption */
8770 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8771
8772 /** FieldOptions .google.api.fieldBehavior */
8773 ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
8774
8775 /** FieldOptions .google.api.resourceReference */
8776 ".google.api.resourceReference"?: (google.api.IResourceReference|null);
8777 }
8778
8779 /** Represents a FieldOptions. */
8780 class FieldOptions implements IFieldOptions {
8781
8782 /**
8783 * Constructs a new FieldOptions.
8784 * @param [properties] Properties to set
8785 */
8786 constructor(properties?: google.protobuf.IFieldOptions);
8787
8788 /** FieldOptions ctype. */
8789 public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
8790
8791 /** FieldOptions packed. */
8792 public packed: boolean;
8793
8794 /** FieldOptions jstype. */
8795 public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
8796
8797 /** FieldOptions lazy. */
8798 public lazy: boolean;
8799
8800 /** FieldOptions deprecated. */
8801 public deprecated: boolean;
8802
8803 /** FieldOptions weak. */
8804 public weak: boolean;
8805
8806 /** FieldOptions uninterpretedOption. */
8807 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8808
8809 /**
8810 * Creates a new FieldOptions instance using the specified properties.
8811 * @param [properties] Properties to set
8812 * @returns FieldOptions instance
8813 */
8814 public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
8815
8816 /**
8817 * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
8818 * @param message FieldOptions message or plain object to encode
8819 * @param [writer] Writer to encode to
8820 * @returns Writer
8821 */
8822 public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8823
8824 /**
8825 * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
8826 * @param message FieldOptions message or plain object to encode
8827 * @param [writer] Writer to encode to
8828 * @returns Writer
8829 */
8830 public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8831
8832 /**
8833 * Decodes a FieldOptions message from the specified reader or buffer.
8834 * @param reader Reader or buffer to decode from
8835 * @param [length] Message length if known beforehand
8836 * @returns FieldOptions
8837 * @throws {Error} If the payload is not a reader or valid buffer
8838 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8839 */
8840 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
8841
8842 /**
8843 * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
8844 * @param reader Reader or buffer to decode from
8845 * @returns FieldOptions
8846 * @throws {Error} If the payload is not a reader or valid buffer
8847 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8848 */
8849 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
8850
8851 /**
8852 * Verifies a FieldOptions message.
8853 * @param message Plain object to verify
8854 * @returns `null` if valid, otherwise the reason why it is not
8855 */
8856 public static verify(message: { [k: string]: any }): (string|null);
8857
8858 /**
8859 * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
8860 * @param object Plain object
8861 * @returns FieldOptions
8862 */
8863 public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
8864
8865 /**
8866 * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
8867 * @param message FieldOptions
8868 * @param [options] Conversion options
8869 * @returns Plain object
8870 */
8871 public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8872
8873 /**
8874 * Converts this FieldOptions to JSON.
8875 * @returns JSON object
8876 */
8877 public toJSON(): { [k: string]: any };
8878 }
8879
8880 namespace FieldOptions {
8881
8882 /** CType enum. */
8883 enum CType {
8884 STRING = 0,
8885 CORD = 1,
8886 STRING_PIECE = 2
8887 }
8888
8889 /** JSType enum. */
8890 enum JSType {
8891 JS_NORMAL = 0,
8892 JS_STRING = 1,
8893 JS_NUMBER = 2
8894 }
8895 }
8896
8897 /** Properties of an OneofOptions. */
8898 interface IOneofOptions {
8899
8900 /** OneofOptions uninterpretedOption */
8901 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8902 }
8903
8904 /** Represents an OneofOptions. */
8905 class OneofOptions implements IOneofOptions {
8906
8907 /**
8908 * Constructs a new OneofOptions.
8909 * @param [properties] Properties to set
8910 */
8911 constructor(properties?: google.protobuf.IOneofOptions);
8912
8913 /** OneofOptions uninterpretedOption. */
8914 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8915
8916 /**
8917 * Creates a new OneofOptions instance using the specified properties.
8918 * @param [properties] Properties to set
8919 * @returns OneofOptions instance
8920 */
8921 public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
8922
8923 /**
8924 * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
8925 * @param message OneofOptions message or plain object to encode
8926 * @param [writer] Writer to encode to
8927 * @returns Writer
8928 */
8929 public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8930
8931 /**
8932 * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
8933 * @param message OneofOptions message or plain object to encode
8934 * @param [writer] Writer to encode to
8935 * @returns Writer
8936 */
8937 public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8938
8939 /**
8940 * Decodes an OneofOptions message from the specified reader or buffer.
8941 * @param reader Reader or buffer to decode from
8942 * @param [length] Message length if known beforehand
8943 * @returns OneofOptions
8944 * @throws {Error} If the payload is not a reader or valid buffer
8945 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8946 */
8947 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
8948
8949 /**
8950 * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
8951 * @param reader Reader or buffer to decode from
8952 * @returns OneofOptions
8953 * @throws {Error} If the payload is not a reader or valid buffer
8954 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8955 */
8956 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
8957
8958 /**
8959 * Verifies an OneofOptions message.
8960 * @param message Plain object to verify
8961 * @returns `null` if valid, otherwise the reason why it is not
8962 */
8963 public static verify(message: { [k: string]: any }): (string|null);
8964
8965 /**
8966 * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
8967 * @param object Plain object
8968 * @returns OneofOptions
8969 */
8970 public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
8971
8972 /**
8973 * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
8974 * @param message OneofOptions
8975 * @param [options] Conversion options
8976 * @returns Plain object
8977 */
8978 public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8979
8980 /**
8981 * Converts this OneofOptions to JSON.
8982 * @returns JSON object
8983 */
8984 public toJSON(): { [k: string]: any };
8985 }
8986
8987 /** Properties of an EnumOptions. */
8988 interface IEnumOptions {
8989
8990 /** EnumOptions allowAlias */
8991 allowAlias?: (boolean|null);
8992
8993 /** EnumOptions deprecated */
8994 deprecated?: (boolean|null);
8995
8996 /** EnumOptions uninterpretedOption */
8997 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8998 }
8999
9000 /** Represents an EnumOptions. */
9001 class EnumOptions implements IEnumOptions {
9002
9003 /**
9004 * Constructs a new EnumOptions.
9005 * @param [properties] Properties to set
9006 */
9007 constructor(properties?: google.protobuf.IEnumOptions);
9008
9009 /** EnumOptions allowAlias. */
9010 public allowAlias: boolean;
9011
9012 /** EnumOptions deprecated. */
9013 public deprecated: boolean;
9014
9015 /** EnumOptions uninterpretedOption. */
9016 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
9017
9018 /**
9019 * Creates a new EnumOptions instance using the specified properties.
9020 * @param [properties] Properties to set
9021 * @returns EnumOptions instance
9022 */
9023 public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
9024
9025 /**
9026 * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
9027 * @param message EnumOptions message or plain object to encode
9028 * @param [writer] Writer to encode to
9029 * @returns Writer
9030 */
9031 public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9032
9033 /**
9034 * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
9035 * @param message EnumOptions message or plain object to encode
9036 * @param [writer] Writer to encode to
9037 * @returns Writer
9038 */
9039 public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9040
9041 /**
9042 * Decodes an EnumOptions message from the specified reader or buffer.
9043 * @param reader Reader or buffer to decode from
9044 * @param [length] Message length if known beforehand
9045 * @returns EnumOptions
9046 * @throws {Error} If the payload is not a reader or valid buffer
9047 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9048 */
9049 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
9050
9051 /**
9052 * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
9053 * @param reader Reader or buffer to decode from
9054 * @returns EnumOptions
9055 * @throws {Error} If the payload is not a reader or valid buffer
9056 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9057 */
9058 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
9059
9060 /**
9061 * Verifies an EnumOptions message.
9062 * @param message Plain object to verify
9063 * @returns `null` if valid, otherwise the reason why it is not
9064 */
9065 public static verify(message: { [k: string]: any }): (string|null);
9066
9067 /**
9068 * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
9069 * @param object Plain object
9070 * @returns EnumOptions
9071 */
9072 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
9073
9074 /**
9075 * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
9076 * @param message EnumOptions
9077 * @param [options] Conversion options
9078 * @returns Plain object
9079 */
9080 public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
9081
9082 /**
9083 * Converts this EnumOptions to JSON.
9084 * @returns JSON object
9085 */
9086 public toJSON(): { [k: string]: any };
9087 }
9088
9089 /** Properties of an EnumValueOptions. */
9090 interface IEnumValueOptions {
9091
9092 /** EnumValueOptions deprecated */
9093 deprecated?: (boolean|null);
9094
9095 /** EnumValueOptions uninterpretedOption */
9096 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
9097 }
9098
9099 /** Represents an EnumValueOptions. */
9100 class EnumValueOptions implements IEnumValueOptions {
9101
9102 /**
9103 * Constructs a new EnumValueOptions.
9104 * @param [properties] Properties to set
9105 */
9106 constructor(properties?: google.protobuf.IEnumValueOptions);
9107
9108 /** EnumValueOptions deprecated. */
9109 public deprecated: boolean;
9110
9111 /** EnumValueOptions uninterpretedOption. */
9112 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
9113
9114 /**
9115 * Creates a new EnumValueOptions instance using the specified properties.
9116 * @param [properties] Properties to set
9117 * @returns EnumValueOptions instance
9118 */
9119 public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
9120
9121 /**
9122 * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
9123 * @param message EnumValueOptions message or plain object to encode
9124 * @param [writer] Writer to encode to
9125 * @returns Writer
9126 */
9127 public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9128
9129 /**
9130 * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
9131 * @param message EnumValueOptions message or plain object to encode
9132 * @param [writer] Writer to encode to
9133 * @returns Writer
9134 */
9135 public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9136
9137 /**
9138 * Decodes an EnumValueOptions message from the specified reader or buffer.
9139 * @param reader Reader or buffer to decode from
9140 * @param [length] Message length if known beforehand
9141 * @returns EnumValueOptions
9142 * @throws {Error} If the payload is not a reader or valid buffer
9143 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9144 */
9145 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
9146
9147 /**
9148 * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
9149 * @param reader Reader or buffer to decode from
9150 * @returns EnumValueOptions
9151 * @throws {Error} If the payload is not a reader or valid buffer
9152 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9153 */
9154 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
9155
9156 /**
9157 * Verifies an EnumValueOptions message.
9158 * @param message Plain object to verify
9159 * @returns `null` if valid, otherwise the reason why it is not
9160 */
9161 public static verify(message: { [k: string]: any }): (string|null);
9162
9163 /**
9164 * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
9165 * @param object Plain object
9166 * @returns EnumValueOptions
9167 */
9168 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
9169
9170 /**
9171 * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
9172 * @param message EnumValueOptions
9173 * @param [options] Conversion options
9174 * @returns Plain object
9175 */
9176 public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
9177
9178 /**
9179 * Converts this EnumValueOptions to JSON.
9180 * @returns JSON object
9181 */
9182 public toJSON(): { [k: string]: any };
9183 }
9184
9185 /** Properties of a ServiceOptions. */
9186 interface IServiceOptions {
9187
9188 /** ServiceOptions deprecated */
9189 deprecated?: (boolean|null);
9190
9191 /** ServiceOptions uninterpretedOption */
9192 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
9193
9194 /** ServiceOptions .google.api.defaultHost */
9195 ".google.api.defaultHost"?: (string|null);
9196
9197 /** ServiceOptions .google.api.oauthScopes */
9198 ".google.api.oauthScopes"?: (string|null);
9199 }
9200
9201 /** Represents a ServiceOptions. */
9202 class ServiceOptions implements IServiceOptions {
9203
9204 /**
9205 * Constructs a new ServiceOptions.
9206 * @param [properties] Properties to set
9207 */
9208 constructor(properties?: google.protobuf.IServiceOptions);
9209
9210 /** ServiceOptions deprecated. */
9211 public deprecated: boolean;
9212
9213 /** ServiceOptions uninterpretedOption. */
9214 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
9215
9216 /**
9217 * Creates a new ServiceOptions instance using the specified properties.
9218 * @param [properties] Properties to set
9219 * @returns ServiceOptions instance
9220 */
9221 public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
9222
9223 /**
9224 * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
9225 * @param message ServiceOptions message or plain object to encode
9226 * @param [writer] Writer to encode to
9227 * @returns Writer
9228 */
9229 public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9230
9231 /**
9232 * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
9233 * @param message ServiceOptions message or plain object to encode
9234 * @param [writer] Writer to encode to
9235 * @returns Writer
9236 */
9237 public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9238
9239 /**
9240 * Decodes a ServiceOptions message from the specified reader or buffer.
9241 * @param reader Reader or buffer to decode from
9242 * @param [length] Message length if known beforehand
9243 * @returns ServiceOptions
9244 * @throws {Error} If the payload is not a reader or valid buffer
9245 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9246 */
9247 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
9248
9249 /**
9250 * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
9251 * @param reader Reader or buffer to decode from
9252 * @returns ServiceOptions
9253 * @throws {Error} If the payload is not a reader or valid buffer
9254 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9255 */
9256 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
9257
9258 /**
9259 * Verifies a ServiceOptions message.
9260 * @param message Plain object to verify
9261 * @returns `null` if valid, otherwise the reason why it is not
9262 */
9263 public static verify(message: { [k: string]: any }): (string|null);
9264
9265 /**
9266 * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
9267 * @param object Plain object
9268 * @returns ServiceOptions
9269 */
9270 public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
9271
9272 /**
9273 * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
9274 * @param message ServiceOptions
9275 * @param [options] Conversion options
9276 * @returns Plain object
9277 */
9278 public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
9279
9280 /**
9281 * Converts this ServiceOptions to JSON.
9282 * @returns JSON object
9283 */
9284 public toJSON(): { [k: string]: any };
9285 }
9286
9287 /** Properties of a MethodOptions. */
9288 interface IMethodOptions {
9289
9290 /** MethodOptions deprecated */
9291 deprecated?: (boolean|null);
9292
9293 /** MethodOptions idempotencyLevel */
9294 idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
9295
9296 /** MethodOptions uninterpretedOption */
9297 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
9298
9299 /** MethodOptions .google.api.http */
9300 ".google.api.http"?: (google.api.IHttpRule|null);
9301
9302 /** MethodOptions .google.api.methodSignature */
9303 ".google.api.methodSignature"?: (string[]|null);
9304 }
9305
9306 /** Represents a MethodOptions. */
9307 class MethodOptions implements IMethodOptions {
9308
9309 /**
9310 * Constructs a new MethodOptions.
9311 * @param [properties] Properties to set
9312 */
9313 constructor(properties?: google.protobuf.IMethodOptions);
9314
9315 /** MethodOptions deprecated. */
9316 public deprecated: boolean;
9317
9318 /** MethodOptions idempotencyLevel. */
9319 public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
9320
9321 /** MethodOptions uninterpretedOption. */
9322 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
9323
9324 /**
9325 * Creates a new MethodOptions instance using the specified properties.
9326 * @param [properties] Properties to set
9327 * @returns MethodOptions instance
9328 */
9329 public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
9330
9331 /**
9332 * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
9333 * @param message MethodOptions message or plain object to encode
9334 * @param [writer] Writer to encode to
9335 * @returns Writer
9336 */
9337 public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9338
9339 /**
9340 * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
9341 * @param message MethodOptions message or plain object to encode
9342 * @param [writer] Writer to encode to
9343 * @returns Writer
9344 */
9345 public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9346
9347 /**
9348 * Decodes a MethodOptions message from the specified reader or buffer.
9349 * @param reader Reader or buffer to decode from
9350 * @param [length] Message length if known beforehand
9351 * @returns MethodOptions
9352 * @throws {Error} If the payload is not a reader or valid buffer
9353 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9354 */
9355 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
9356
9357 /**
9358 * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
9359 * @param reader Reader or buffer to decode from
9360 * @returns MethodOptions
9361 * @throws {Error} If the payload is not a reader or valid buffer
9362 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9363 */
9364 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
9365
9366 /**
9367 * Verifies a MethodOptions message.
9368 * @param message Plain object to verify
9369 * @returns `null` if valid, otherwise the reason why it is not
9370 */
9371 public static verify(message: { [k: string]: any }): (string|null);
9372
9373 /**
9374 * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
9375 * @param object Plain object
9376 * @returns MethodOptions
9377 */
9378 public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
9379
9380 /**
9381 * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
9382 * @param message MethodOptions
9383 * @param [options] Conversion options
9384 * @returns Plain object
9385 */
9386 public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
9387
9388 /**
9389 * Converts this MethodOptions to JSON.
9390 * @returns JSON object
9391 */
9392 public toJSON(): { [k: string]: any };
9393 }
9394
9395 namespace MethodOptions {
9396
9397 /** IdempotencyLevel enum. */
9398 enum IdempotencyLevel {
9399 IDEMPOTENCY_UNKNOWN = 0,
9400 NO_SIDE_EFFECTS = 1,
9401 IDEMPOTENT = 2
9402 }
9403 }
9404
9405 /** Properties of an UninterpretedOption. */
9406 interface IUninterpretedOption {
9407
9408 /** UninterpretedOption name */
9409 name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
9410
9411 /** UninterpretedOption identifierValue */
9412 identifierValue?: (string|null);
9413
9414 /** UninterpretedOption positiveIntValue */
9415 positiveIntValue?: (number|Long|string|null);
9416
9417 /** UninterpretedOption negativeIntValue */
9418 negativeIntValue?: (number|Long|string|null);
9419
9420 /** UninterpretedOption doubleValue */
9421 doubleValue?: (number|null);
9422
9423 /** UninterpretedOption stringValue */
9424 stringValue?: (Uint8Array|string|null);
9425
9426 /** UninterpretedOption aggregateValue */
9427 aggregateValue?: (string|null);
9428 }
9429
9430 /** Represents an UninterpretedOption. */
9431 class UninterpretedOption implements IUninterpretedOption {
9432
9433 /**
9434 * Constructs a new UninterpretedOption.
9435 * @param [properties] Properties to set
9436 */
9437 constructor(properties?: google.protobuf.IUninterpretedOption);
9438
9439 /** UninterpretedOption name. */
9440 public name: google.protobuf.UninterpretedOption.INamePart[];
9441
9442 /** UninterpretedOption identifierValue. */
9443 public identifierValue: string;
9444
9445 /** UninterpretedOption positiveIntValue. */
9446 public positiveIntValue: (number|Long|string);
9447
9448 /** UninterpretedOption negativeIntValue. */
9449 public negativeIntValue: (number|Long|string);
9450
9451 /** UninterpretedOption doubleValue. */
9452 public doubleValue: number;
9453
9454 /** UninterpretedOption stringValue. */
9455 public stringValue: (Uint8Array|string);
9456
9457 /** UninterpretedOption aggregateValue. */
9458 public aggregateValue: string;
9459
9460 /**
9461 * Creates a new UninterpretedOption instance using the specified properties.
9462 * @param [properties] Properties to set
9463 * @returns UninterpretedOption instance
9464 */
9465 public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
9466
9467 /**
9468 * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
9469 * @param message UninterpretedOption message or plain object to encode
9470 * @param [writer] Writer to encode to
9471 * @returns Writer
9472 */
9473 public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
9474
9475 /**
9476 * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
9477 * @param message UninterpretedOption message or plain object to encode
9478 * @param [writer] Writer to encode to
9479 * @returns Writer
9480 */
9481 public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
9482
9483 /**
9484 * Decodes an UninterpretedOption message from the specified reader or buffer.
9485 * @param reader Reader or buffer to decode from
9486 * @param [length] Message length if known beforehand
9487 * @returns UninterpretedOption
9488 * @throws {Error} If the payload is not a reader or valid buffer
9489 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9490 */
9491 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
9492
9493 /**
9494 * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
9495 * @param reader Reader or buffer to decode from
9496 * @returns UninterpretedOption
9497 * @throws {Error} If the payload is not a reader or valid buffer
9498 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9499 */
9500 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
9501
9502 /**
9503 * Verifies an UninterpretedOption message.
9504 * @param message Plain object to verify
9505 * @returns `null` if valid, otherwise the reason why it is not
9506 */
9507 public static verify(message: { [k: string]: any }): (string|null);
9508
9509 /**
9510 * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
9511 * @param object Plain object
9512 * @returns UninterpretedOption
9513 */
9514 public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
9515
9516 /**
9517 * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
9518 * @param message UninterpretedOption
9519 * @param [options] Conversion options
9520 * @returns Plain object
9521 */
9522 public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
9523
9524 /**
9525 * Converts this UninterpretedOption to JSON.
9526 * @returns JSON object
9527 */
9528 public toJSON(): { [k: string]: any };
9529 }
9530
9531 namespace UninterpretedOption {
9532
9533 /** Properties of a NamePart. */
9534 interface INamePart {
9535
9536 /** NamePart namePart */
9537 namePart: string;
9538
9539 /** NamePart isExtension */
9540 isExtension: boolean;
9541 }
9542
9543 /** Represents a NamePart. */
9544 class NamePart implements INamePart {
9545
9546 /**
9547 * Constructs a new NamePart.
9548 * @param [properties] Properties to set
9549 */
9550 constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
9551
9552 /** NamePart namePart. */
9553 public namePart: string;
9554
9555 /** NamePart isExtension. */
9556 public isExtension: boolean;
9557
9558 /**
9559 * Creates a new NamePart instance using the specified properties.
9560 * @param [properties] Properties to set
9561 * @returns NamePart instance
9562 */
9563 public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
9564
9565 /**
9566 * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
9567 * @param message NamePart message or plain object to encode
9568 * @param [writer] Writer to encode to
9569 * @returns Writer
9570 */
9571 public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
9572
9573 /**
9574 * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
9575 * @param message NamePart message or plain object to encode
9576 * @param [writer] Writer to encode to
9577 * @returns Writer
9578 */
9579 public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
9580
9581 /**
9582 * Decodes a NamePart message from the specified reader or buffer.
9583 * @param reader Reader or buffer to decode from
9584 * @param [length] Message length if known beforehand
9585 * @returns NamePart
9586 * @throws {Error} If the payload is not a reader or valid buffer
9587 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9588 */
9589 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
9590
9591 /**
9592 * Decodes a NamePart message from the specified reader or buffer, length delimited.
9593 * @param reader Reader or buffer to decode from
9594 * @returns NamePart
9595 * @throws {Error} If the payload is not a reader or valid buffer
9596 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9597 */
9598 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
9599
9600 /**
9601 * Verifies a NamePart message.
9602 * @param message Plain object to verify
9603 * @returns `null` if valid, otherwise the reason why it is not
9604 */
9605 public static verify(message: { [k: string]: any }): (string|null);
9606
9607 /**
9608 * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
9609 * @param object Plain object
9610 * @returns NamePart
9611 */
9612 public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
9613
9614 /**
9615 * Creates a plain object from a NamePart message. Also converts values to other types if specified.
9616 * @param message NamePart
9617 * @param [options] Conversion options
9618 * @returns Plain object
9619 */
9620 public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
9621
9622 /**
9623 * Converts this NamePart to JSON.
9624 * @returns JSON object
9625 */
9626 public toJSON(): { [k: string]: any };
9627 }
9628 }
9629
9630 /** Properties of a SourceCodeInfo. */
9631 interface ISourceCodeInfo {
9632
9633 /** SourceCodeInfo location */
9634 location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
9635 }
9636
9637 /** Represents a SourceCodeInfo. */
9638 class SourceCodeInfo implements ISourceCodeInfo {
9639
9640 /**
9641 * Constructs a new SourceCodeInfo.
9642 * @param [properties] Properties to set
9643 */
9644 constructor(properties?: google.protobuf.ISourceCodeInfo);
9645
9646 /** SourceCodeInfo location. */
9647 public location: google.protobuf.SourceCodeInfo.ILocation[];
9648
9649 /**
9650 * Creates a new SourceCodeInfo instance using the specified properties.
9651 * @param [properties] Properties to set
9652 * @returns SourceCodeInfo instance
9653 */
9654 public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
9655
9656 /**
9657 * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
9658 * @param message SourceCodeInfo message or plain object to encode
9659 * @param [writer] Writer to encode to
9660 * @returns Writer
9661 */
9662 public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
9663
9664 /**
9665 * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
9666 * @param message SourceCodeInfo message or plain object to encode
9667 * @param [writer] Writer to encode to
9668 * @returns Writer
9669 */
9670 public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
9671
9672 /**
9673 * Decodes a SourceCodeInfo message from the specified reader or buffer.
9674 * @param reader Reader or buffer to decode from
9675 * @param [length] Message length if known beforehand
9676 * @returns SourceCodeInfo
9677 * @throws {Error} If the payload is not a reader or valid buffer
9678 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9679 */
9680 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
9681
9682 /**
9683 * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
9684 * @param reader Reader or buffer to decode from
9685 * @returns SourceCodeInfo
9686 * @throws {Error} If the payload is not a reader or valid buffer
9687 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9688 */
9689 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
9690
9691 /**
9692 * Verifies a SourceCodeInfo message.
9693 * @param message Plain object to verify
9694 * @returns `null` if valid, otherwise the reason why it is not
9695 */
9696 public static verify(message: { [k: string]: any }): (string|null);
9697
9698 /**
9699 * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
9700 * @param object Plain object
9701 * @returns SourceCodeInfo
9702 */
9703 public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
9704
9705 /**
9706 * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
9707 * @param message SourceCodeInfo
9708 * @param [options] Conversion options
9709 * @returns Plain object
9710 */
9711 public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
9712
9713 /**
9714 * Converts this SourceCodeInfo to JSON.
9715 * @returns JSON object
9716 */
9717 public toJSON(): { [k: string]: any };
9718 }
9719
9720 namespace SourceCodeInfo {
9721
9722 /** Properties of a Location. */
9723 interface ILocation {
9724
9725 /** Location path */
9726 path?: (number[]|null);
9727
9728 /** Location span */
9729 span?: (number[]|null);
9730
9731 /** Location leadingComments */
9732 leadingComments?: (string|null);
9733
9734 /** Location trailingComments */
9735 trailingComments?: (string|null);
9736
9737 /** Location leadingDetachedComments */
9738 leadingDetachedComments?: (string[]|null);
9739 }
9740
9741 /** Represents a Location. */
9742 class Location implements ILocation {
9743
9744 /**
9745 * Constructs a new Location.
9746 * @param [properties] Properties to set
9747 */
9748 constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
9749
9750 /** Location path. */
9751 public path: number[];
9752
9753 /** Location span. */
9754 public span: number[];
9755
9756 /** Location leadingComments. */
9757 public leadingComments: string;
9758
9759 /** Location trailingComments. */
9760 public trailingComments: string;
9761
9762 /** Location leadingDetachedComments. */
9763 public leadingDetachedComments: string[];
9764
9765 /**
9766 * Creates a new Location instance using the specified properties.
9767 * @param [properties] Properties to set
9768 * @returns Location instance
9769 */
9770 public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
9771
9772 /**
9773 * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
9774 * @param message Location message or plain object to encode
9775 * @param [writer] Writer to encode to
9776 * @returns Writer
9777 */
9778 public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
9779
9780 /**
9781 * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
9782 * @param message Location message or plain object to encode
9783 * @param [writer] Writer to encode to
9784 * @returns Writer
9785 */
9786 public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
9787
9788 /**
9789 * Decodes a Location message from the specified reader or buffer.
9790 * @param reader Reader or buffer to decode from
9791 * @param [length] Message length if known beforehand
9792 * @returns Location
9793 * @throws {Error} If the payload is not a reader or valid buffer
9794 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9795 */
9796 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
9797
9798 /**
9799 * Decodes a Location message from the specified reader or buffer, length delimited.
9800 * @param reader Reader or buffer to decode from
9801 * @returns Location
9802 * @throws {Error} If the payload is not a reader or valid buffer
9803 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9804 */
9805 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
9806
9807 /**
9808 * Verifies a Location message.
9809 * @param message Plain object to verify
9810 * @returns `null` if valid, otherwise the reason why it is not
9811 */
9812 public static verify(message: { [k: string]: any }): (string|null);
9813
9814 /**
9815 * Creates a Location message from a plain object. Also converts values to their respective internal types.
9816 * @param object Plain object
9817 * @returns Location
9818 */
9819 public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
9820
9821 /**
9822 * Creates a plain object from a Location message. Also converts values to other types if specified.
9823 * @param message Location
9824 * @param [options] Conversion options
9825 * @returns Plain object
9826 */
9827 public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
9828
9829 /**
9830 * Converts this Location to JSON.
9831 * @returns JSON object
9832 */
9833 public toJSON(): { [k: string]: any };
9834 }
9835 }
9836
9837 /** Properties of a GeneratedCodeInfo. */
9838 interface IGeneratedCodeInfo {
9839
9840 /** GeneratedCodeInfo annotation */
9841 annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
9842 }
9843
9844 /** Represents a GeneratedCodeInfo. */
9845 class GeneratedCodeInfo implements IGeneratedCodeInfo {
9846
9847 /**
9848 * Constructs a new GeneratedCodeInfo.
9849 * @param [properties] Properties to set
9850 */
9851 constructor(properties?: google.protobuf.IGeneratedCodeInfo);
9852
9853 /** GeneratedCodeInfo annotation. */
9854 public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
9855
9856 /**
9857 * Creates a new GeneratedCodeInfo instance using the specified properties.
9858 * @param [properties] Properties to set
9859 * @returns GeneratedCodeInfo instance
9860 */
9861 public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
9862
9863 /**
9864 * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
9865 * @param message GeneratedCodeInfo message or plain object to encode
9866 * @param [writer] Writer to encode to
9867 * @returns Writer
9868 */
9869 public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
9870
9871 /**
9872 * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
9873 * @param message GeneratedCodeInfo message or plain object to encode
9874 * @param [writer] Writer to encode to
9875 * @returns Writer
9876 */
9877 public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
9878
9879 /**
9880 * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
9881 * @param reader Reader or buffer to decode from
9882 * @param [length] Message length if known beforehand
9883 * @returns GeneratedCodeInfo
9884 * @throws {Error} If the payload is not a reader or valid buffer
9885 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9886 */
9887 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
9888
9889 /**
9890 * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
9891 * @param reader Reader or buffer to decode from
9892 * @returns GeneratedCodeInfo
9893 * @throws {Error} If the payload is not a reader or valid buffer
9894 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9895 */
9896 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
9897
9898 /**
9899 * Verifies a GeneratedCodeInfo message.
9900 * @param message Plain object to verify
9901 * @returns `null` if valid, otherwise the reason why it is not
9902 */
9903 public static verify(message: { [k: string]: any }): (string|null);
9904
9905 /**
9906 * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
9907 * @param object Plain object
9908 * @returns GeneratedCodeInfo
9909 */
9910 public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
9911
9912 /**
9913 * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
9914 * @param message GeneratedCodeInfo
9915 * @param [options] Conversion options
9916 * @returns Plain object
9917 */
9918 public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
9919
9920 /**
9921 * Converts this GeneratedCodeInfo to JSON.
9922 * @returns JSON object
9923 */
9924 public toJSON(): { [k: string]: any };
9925 }
9926
9927 namespace GeneratedCodeInfo {
9928
9929 /** Properties of an Annotation. */
9930 interface IAnnotation {
9931
9932 /** Annotation path */
9933 path?: (number[]|null);
9934
9935 /** Annotation sourceFile */
9936 sourceFile?: (string|null);
9937
9938 /** Annotation begin */
9939 begin?: (number|null);
9940
9941 /** Annotation end */
9942 end?: (number|null);
9943 }
9944
9945 /** Represents an Annotation. */
9946 class Annotation implements IAnnotation {
9947
9948 /**
9949 * Constructs a new Annotation.
9950 * @param [properties] Properties to set
9951 */
9952 constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
9953
9954 /** Annotation path. */
9955 public path: number[];
9956
9957 /** Annotation sourceFile. */
9958 public sourceFile: string;
9959
9960 /** Annotation begin. */
9961 public begin: number;
9962
9963 /** Annotation end. */
9964 public end: number;
9965
9966 /**
9967 * Creates a new Annotation instance using the specified properties.
9968 * @param [properties] Properties to set
9969 * @returns Annotation instance
9970 */
9971 public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
9972
9973 /**
9974 * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
9975 * @param message Annotation message or plain object to encode
9976 * @param [writer] Writer to encode to
9977 * @returns Writer
9978 */
9979 public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
9980
9981 /**
9982 * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
9983 * @param message Annotation message or plain object to encode
9984 * @param [writer] Writer to encode to
9985 * @returns Writer
9986 */
9987 public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
9988
9989 /**
9990 * Decodes an Annotation message from the specified reader or buffer.
9991 * @param reader Reader or buffer to decode from
9992 * @param [length] Message length if known beforehand
9993 * @returns Annotation
9994 * @throws {Error} If the payload is not a reader or valid buffer
9995 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9996 */
9997 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
9998
9999 /**
10000 * Decodes an Annotation message from the specified reader or buffer, length delimited.
10001 * @param reader Reader or buffer to decode from
10002 * @returns Annotation
10003 * @throws {Error} If the payload is not a reader or valid buffer
10004 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10005 */
10006 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
10007
10008 /**
10009 * Verifies an Annotation message.
10010 * @param message Plain object to verify
10011 * @returns `null` if valid, otherwise the reason why it is not
10012 */
10013 public static verify(message: { [k: string]: any }): (string|null);
10014
10015 /**
10016 * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
10017 * @param object Plain object
10018 * @returns Annotation
10019 */
10020 public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
10021
10022 /**
10023 * Creates a plain object from an Annotation message. Also converts values to other types if specified.
10024 * @param message Annotation
10025 * @param [options] Conversion options
10026 * @returns Plain object
10027 */
10028 public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
10029
10030 /**
10031 * Converts this Annotation to JSON.
10032 * @returns JSON object
10033 */
10034 public toJSON(): { [k: string]: any };
10035 }
10036 }
10037
10038 /** Properties of a Duration. */
10039 interface IDuration {
10040
10041 /** Duration seconds */
10042 seconds?: (number|Long|string|null);
10043
10044 /** Duration nanos */
10045 nanos?: (number|null);
10046 }
10047
10048 /** Represents a Duration. */
10049 class Duration implements IDuration {
10050
10051 /**
10052 * Constructs a new Duration.
10053 * @param [properties] Properties to set
10054 */
10055 constructor(properties?: google.protobuf.IDuration);
10056
10057 /** Duration seconds. */
10058 public seconds: (number|Long|string);
10059
10060 /** Duration nanos. */
10061 public nanos: number;
10062
10063 /**
10064 * Creates a new Duration instance using the specified properties.
10065 * @param [properties] Properties to set
10066 * @returns Duration instance
10067 */
10068 public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
10069
10070 /**
10071 * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
10072 * @param message Duration message or plain object to encode
10073 * @param [writer] Writer to encode to
10074 * @returns Writer
10075 */
10076 public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
10077
10078 /**
10079 * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
10080 * @param message Duration message or plain object to encode
10081 * @param [writer] Writer to encode to
10082 * @returns Writer
10083 */
10084 public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
10085
10086 /**
10087 * Decodes a Duration message from the specified reader or buffer.
10088 * @param reader Reader or buffer to decode from
10089 * @param [length] Message length if known beforehand
10090 * @returns Duration
10091 * @throws {Error} If the payload is not a reader or valid buffer
10092 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10093 */
10094 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
10095
10096 /**
10097 * Decodes a Duration message from the specified reader or buffer, length delimited.
10098 * @param reader Reader or buffer to decode from
10099 * @returns Duration
10100 * @throws {Error} If the payload is not a reader or valid buffer
10101 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10102 */
10103 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
10104
10105 /**
10106 * Verifies a Duration message.
10107 * @param message Plain object to verify
10108 * @returns `null` if valid, otherwise the reason why it is not
10109 */
10110 public static verify(message: { [k: string]: any }): (string|null);
10111
10112 /**
10113 * Creates a Duration message from a plain object. Also converts values to their respective internal types.
10114 * @param object Plain object
10115 * @returns Duration
10116 */
10117 public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
10118
10119 /**
10120 * Creates a plain object from a Duration message. Also converts values to other types if specified.
10121 * @param message Duration
10122 * @param [options] Conversion options
10123 * @returns Plain object
10124 */
10125 public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
10126
10127 /**
10128 * Converts this Duration to JSON.
10129 * @returns JSON object
10130 */
10131 public toJSON(): { [k: string]: any };
10132 }
10133
10134 /** Properties of an Empty. */
10135 interface IEmpty {
10136 }
10137
10138 /** Represents an Empty. */
10139 class Empty implements IEmpty {
10140
10141 /**
10142 * Constructs a new Empty.
10143 * @param [properties] Properties to set
10144 */
10145 constructor(properties?: google.protobuf.IEmpty);
10146
10147 /**
10148 * Creates a new Empty instance using the specified properties.
10149 * @param [properties] Properties to set
10150 * @returns Empty instance
10151 */
10152 public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
10153
10154 /**
10155 * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
10156 * @param message Empty message or plain object to encode
10157 * @param [writer] Writer to encode to
10158 * @returns Writer
10159 */
10160 public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
10161
10162 /**
10163 * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
10164 * @param message Empty message or plain object to encode
10165 * @param [writer] Writer to encode to
10166 * @returns Writer
10167 */
10168 public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
10169
10170 /**
10171 * Decodes an Empty message from the specified reader or buffer.
10172 * @param reader Reader or buffer to decode from
10173 * @param [length] Message length if known beforehand
10174 * @returns Empty
10175 * @throws {Error} If the payload is not a reader or valid buffer
10176 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10177 */
10178 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
10179
10180 /**
10181 * Decodes an Empty message from the specified reader or buffer, length delimited.
10182 * @param reader Reader or buffer to decode from
10183 * @returns Empty
10184 * @throws {Error} If the payload is not a reader or valid buffer
10185 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10186 */
10187 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
10188
10189 /**
10190 * Verifies an Empty message.
10191 * @param message Plain object to verify
10192 * @returns `null` if valid, otherwise the reason why it is not
10193 */
10194 public static verify(message: { [k: string]: any }): (string|null);
10195
10196 /**
10197 * Creates an Empty message from a plain object. Also converts values to their respective internal types.
10198 * @param object Plain object
10199 * @returns Empty
10200 */
10201 public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
10202
10203 /**
10204 * Creates a plain object from an Empty message. Also converts values to other types if specified.
10205 * @param message Empty
10206 * @param [options] Conversion options
10207 * @returns Plain object
10208 */
10209 public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
10210
10211 /**
10212 * Converts this Empty to JSON.
10213 * @returns JSON object
10214 */
10215 public toJSON(): { [k: string]: any };
10216 }
10217
10218 /** Properties of a FieldMask. */
10219 interface IFieldMask {
10220
10221 /** FieldMask paths */
10222 paths?: (string[]|null);
10223 }
10224
10225 /** Represents a FieldMask. */
10226 class FieldMask implements IFieldMask {
10227
10228 /**
10229 * Constructs a new FieldMask.
10230 * @param [properties] Properties to set
10231 */
10232 constructor(properties?: google.protobuf.IFieldMask);
10233
10234 /** FieldMask paths. */
10235 public paths: string[];
10236
10237 /**
10238 * Creates a new FieldMask instance using the specified properties.
10239 * @param [properties] Properties to set
10240 * @returns FieldMask instance
10241 */
10242 public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
10243
10244 /**
10245 * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
10246 * @param message FieldMask message or plain object to encode
10247 * @param [writer] Writer to encode to
10248 * @returns Writer
10249 */
10250 public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
10251
10252 /**
10253 * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
10254 * @param message FieldMask message or plain object to encode
10255 * @param [writer] Writer to encode to
10256 * @returns Writer
10257 */
10258 public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
10259
10260 /**
10261 * Decodes a FieldMask message from the specified reader or buffer.
10262 * @param reader Reader or buffer to decode from
10263 * @param [length] Message length if known beforehand
10264 * @returns FieldMask
10265 * @throws {Error} If the payload is not a reader or valid buffer
10266 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10267 */
10268 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
10269
10270 /**
10271 * Decodes a FieldMask message from the specified reader or buffer, length delimited.
10272 * @param reader Reader or buffer to decode from
10273 * @returns FieldMask
10274 * @throws {Error} If the payload is not a reader or valid buffer
10275 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10276 */
10277 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
10278
10279 /**
10280 * Verifies a FieldMask message.
10281 * @param message Plain object to verify
10282 * @returns `null` if valid, otherwise the reason why it is not
10283 */
10284 public static verify(message: { [k: string]: any }): (string|null);
10285
10286 /**
10287 * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
10288 * @param object Plain object
10289 * @returns FieldMask
10290 */
10291 public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
10292
10293 /**
10294 * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
10295 * @param message FieldMask
10296 * @param [options] Conversion options
10297 * @returns Plain object
10298 */
10299 public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
10300
10301 /**
10302 * Converts this FieldMask to JSON.
10303 * @returns JSON object
10304 */
10305 public toJSON(): { [k: string]: any };
10306 }
10307
10308 /** Properties of a Timestamp. */
10309 interface ITimestamp {
10310
10311 /** Timestamp seconds */
10312 seconds?: (number|Long|string|null);
10313
10314 /** Timestamp nanos */
10315 nanos?: (number|null);
10316 }
10317
10318 /** Represents a Timestamp. */
10319 class Timestamp implements ITimestamp {
10320
10321 /**
10322 * Constructs a new Timestamp.
10323 * @param [properties] Properties to set
10324 */
10325 constructor(properties?: google.protobuf.ITimestamp);
10326
10327 /** Timestamp seconds. */
10328 public seconds: (number|Long|string);
10329
10330 /** Timestamp nanos. */
10331 public nanos: number;
10332
10333 /**
10334 * Creates a new Timestamp instance using the specified properties.
10335 * @param [properties] Properties to set
10336 * @returns Timestamp instance
10337 */
10338 public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
10339
10340 /**
10341 * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
10342 * @param message Timestamp message or plain object to encode
10343 * @param [writer] Writer to encode to
10344 * @returns Writer
10345 */
10346 public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
10347
10348 /**
10349 * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
10350 * @param message Timestamp message or plain object to encode
10351 * @param [writer] Writer to encode to
10352 * @returns Writer
10353 */
10354 public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
10355
10356 /**
10357 * Decodes a Timestamp message from the specified reader or buffer.
10358 * @param reader Reader or buffer to decode from
10359 * @param [length] Message length if known beforehand
10360 * @returns Timestamp
10361 * @throws {Error} If the payload is not a reader or valid buffer
10362 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10363 */
10364 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
10365
10366 /**
10367 * Decodes a Timestamp message from the specified reader or buffer, length delimited.
10368 * @param reader Reader or buffer to decode from
10369 * @returns Timestamp
10370 * @throws {Error} If the payload is not a reader or valid buffer
10371 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10372 */
10373 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
10374
10375 /**
10376 * Verifies a Timestamp message.
10377 * @param message Plain object to verify
10378 * @returns `null` if valid, otherwise the reason why it is not
10379 */
10380 public static verify(message: { [k: string]: any }): (string|null);
10381
10382 /**
10383 * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
10384 * @param object Plain object
10385 * @returns Timestamp
10386 */
10387 public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
10388
10389 /**
10390 * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
10391 * @param message Timestamp
10392 * @param [options] Conversion options
10393 * @returns Plain object
10394 */
10395 public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
10396
10397 /**
10398 * Converts this Timestamp to JSON.
10399 * @returns JSON object
10400 */
10401 public toJSON(): { [k: string]: any };
10402 }
10403 }
10404}