UNPKG

520 kBTypeScriptView Raw
1// Copyright 2022 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 bigqueryConfig */
2268 bigqueryConfig?: (google.pubsub.v1.IBigQueryConfig|null);
2269
2270 /** Subscription ackDeadlineSeconds */
2271 ackDeadlineSeconds?: (number|null);
2272
2273 /** Subscription retainAckedMessages */
2274 retainAckedMessages?: (boolean|null);
2275
2276 /** Subscription messageRetentionDuration */
2277 messageRetentionDuration?: (google.protobuf.IDuration|null);
2278
2279 /** Subscription labels */
2280 labels?: ({ [k: string]: string }|null);
2281
2282 /** Subscription enableMessageOrdering */
2283 enableMessageOrdering?: (boolean|null);
2284
2285 /** Subscription expirationPolicy */
2286 expirationPolicy?: (google.pubsub.v1.IExpirationPolicy|null);
2287
2288 /** Subscription filter */
2289 filter?: (string|null);
2290
2291 /** Subscription deadLetterPolicy */
2292 deadLetterPolicy?: (google.pubsub.v1.IDeadLetterPolicy|null);
2293
2294 /** Subscription retryPolicy */
2295 retryPolicy?: (google.pubsub.v1.IRetryPolicy|null);
2296
2297 /** Subscription detached */
2298 detached?: (boolean|null);
2299
2300 /** Subscription enableExactlyOnceDelivery */
2301 enableExactlyOnceDelivery?: (boolean|null);
2302
2303 /** Subscription topicMessageRetentionDuration */
2304 topicMessageRetentionDuration?: (google.protobuf.IDuration|null);
2305
2306 /** Subscription state */
2307 state?: (google.pubsub.v1.Subscription.State|keyof typeof google.pubsub.v1.Subscription.State|null);
2308 }
2309
2310 /** Represents a Subscription. */
2311 class Subscription implements ISubscription {
2312
2313 /**
2314 * Constructs a new Subscription.
2315 * @param [properties] Properties to set
2316 */
2317 constructor(properties?: google.pubsub.v1.ISubscription);
2318
2319 /** Subscription name. */
2320 public name: string;
2321
2322 /** Subscription topic. */
2323 public topic: string;
2324
2325 /** Subscription pushConfig. */
2326 public pushConfig?: (google.pubsub.v1.IPushConfig|null);
2327
2328 /** Subscription bigqueryConfig. */
2329 public bigqueryConfig?: (google.pubsub.v1.IBigQueryConfig|null);
2330
2331 /** Subscription ackDeadlineSeconds. */
2332 public ackDeadlineSeconds: number;
2333
2334 /** Subscription retainAckedMessages. */
2335 public retainAckedMessages: boolean;
2336
2337 /** Subscription messageRetentionDuration. */
2338 public messageRetentionDuration?: (google.protobuf.IDuration|null);
2339
2340 /** Subscription labels. */
2341 public labels: { [k: string]: string };
2342
2343 /** Subscription enableMessageOrdering. */
2344 public enableMessageOrdering: boolean;
2345
2346 /** Subscription expirationPolicy. */
2347 public expirationPolicy?: (google.pubsub.v1.IExpirationPolicy|null);
2348
2349 /** Subscription filter. */
2350 public filter: string;
2351
2352 /** Subscription deadLetterPolicy. */
2353 public deadLetterPolicy?: (google.pubsub.v1.IDeadLetterPolicy|null);
2354
2355 /** Subscription retryPolicy. */
2356 public retryPolicy?: (google.pubsub.v1.IRetryPolicy|null);
2357
2358 /** Subscription detached. */
2359 public detached: boolean;
2360
2361 /** Subscription enableExactlyOnceDelivery. */
2362 public enableExactlyOnceDelivery: boolean;
2363
2364 /** Subscription topicMessageRetentionDuration. */
2365 public topicMessageRetentionDuration?: (google.protobuf.IDuration|null);
2366
2367 /** Subscription state. */
2368 public state: (google.pubsub.v1.Subscription.State|keyof typeof google.pubsub.v1.Subscription.State);
2369
2370 /**
2371 * Creates a new Subscription instance using the specified properties.
2372 * @param [properties] Properties to set
2373 * @returns Subscription instance
2374 */
2375 public static create(properties?: google.pubsub.v1.ISubscription): google.pubsub.v1.Subscription;
2376
2377 /**
2378 * Encodes the specified Subscription message. Does not implicitly {@link google.pubsub.v1.Subscription.verify|verify} messages.
2379 * @param message Subscription message or plain object to encode
2380 * @param [writer] Writer to encode to
2381 * @returns Writer
2382 */
2383 public static encode(message: google.pubsub.v1.ISubscription, writer?: $protobuf.Writer): $protobuf.Writer;
2384
2385 /**
2386 * Encodes the specified Subscription message, length delimited. Does not implicitly {@link google.pubsub.v1.Subscription.verify|verify} messages.
2387 * @param message Subscription message or plain object to encode
2388 * @param [writer] Writer to encode to
2389 * @returns Writer
2390 */
2391 public static encodeDelimited(message: google.pubsub.v1.ISubscription, writer?: $protobuf.Writer): $protobuf.Writer;
2392
2393 /**
2394 * Decodes a Subscription message from the specified reader or buffer.
2395 * @param reader Reader or buffer to decode from
2396 * @param [length] Message length if known beforehand
2397 * @returns Subscription
2398 * @throws {Error} If the payload is not a reader or valid buffer
2399 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2400 */
2401 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.Subscription;
2402
2403 /**
2404 * Decodes a Subscription message from the specified reader or buffer, length delimited.
2405 * @param reader Reader or buffer to decode from
2406 * @returns Subscription
2407 * @throws {Error} If the payload is not a reader or valid buffer
2408 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2409 */
2410 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.Subscription;
2411
2412 /**
2413 * Verifies a Subscription message.
2414 * @param message Plain object to verify
2415 * @returns `null` if valid, otherwise the reason why it is not
2416 */
2417 public static verify(message: { [k: string]: any }): (string|null);
2418
2419 /**
2420 * Creates a Subscription message from a plain object. Also converts values to their respective internal types.
2421 * @param object Plain object
2422 * @returns Subscription
2423 */
2424 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.Subscription;
2425
2426 /**
2427 * Creates a plain object from a Subscription message. Also converts values to other types if specified.
2428 * @param message Subscription
2429 * @param [options] Conversion options
2430 * @returns Plain object
2431 */
2432 public static toObject(message: google.pubsub.v1.Subscription, options?: $protobuf.IConversionOptions): { [k: string]: any };
2433
2434 /**
2435 * Converts this Subscription to JSON.
2436 * @returns JSON object
2437 */
2438 public toJSON(): { [k: string]: any };
2439 }
2440
2441 namespace Subscription {
2442
2443 /** State enum. */
2444 enum State {
2445 STATE_UNSPECIFIED = 0,
2446 ACTIVE = 1,
2447 RESOURCE_ERROR = 2
2448 }
2449 }
2450
2451 /** Properties of a RetryPolicy. */
2452 interface IRetryPolicy {
2453
2454 /** RetryPolicy minimumBackoff */
2455 minimumBackoff?: (google.protobuf.IDuration|null);
2456
2457 /** RetryPolicy maximumBackoff */
2458 maximumBackoff?: (google.protobuf.IDuration|null);
2459 }
2460
2461 /** Represents a RetryPolicy. */
2462 class RetryPolicy implements IRetryPolicy {
2463
2464 /**
2465 * Constructs a new RetryPolicy.
2466 * @param [properties] Properties to set
2467 */
2468 constructor(properties?: google.pubsub.v1.IRetryPolicy);
2469
2470 /** RetryPolicy minimumBackoff. */
2471 public minimumBackoff?: (google.protobuf.IDuration|null);
2472
2473 /** RetryPolicy maximumBackoff. */
2474 public maximumBackoff?: (google.protobuf.IDuration|null);
2475
2476 /**
2477 * Creates a new RetryPolicy instance using the specified properties.
2478 * @param [properties] Properties to set
2479 * @returns RetryPolicy instance
2480 */
2481 public static create(properties?: google.pubsub.v1.IRetryPolicy): google.pubsub.v1.RetryPolicy;
2482
2483 /**
2484 * Encodes the specified RetryPolicy message. Does not implicitly {@link google.pubsub.v1.RetryPolicy.verify|verify} messages.
2485 * @param message RetryPolicy message or plain object to encode
2486 * @param [writer] Writer to encode to
2487 * @returns Writer
2488 */
2489 public static encode(message: google.pubsub.v1.IRetryPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
2490
2491 /**
2492 * Encodes the specified RetryPolicy message, length delimited. Does not implicitly {@link google.pubsub.v1.RetryPolicy.verify|verify} messages.
2493 * @param message RetryPolicy message or plain object to encode
2494 * @param [writer] Writer to encode to
2495 * @returns Writer
2496 */
2497 public static encodeDelimited(message: google.pubsub.v1.IRetryPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
2498
2499 /**
2500 * Decodes a RetryPolicy message from the specified reader or buffer.
2501 * @param reader Reader or buffer to decode from
2502 * @param [length] Message length if known beforehand
2503 * @returns RetryPolicy
2504 * @throws {Error} If the payload is not a reader or valid buffer
2505 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2506 */
2507 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.RetryPolicy;
2508
2509 /**
2510 * Decodes a RetryPolicy message from the specified reader or buffer, length delimited.
2511 * @param reader Reader or buffer to decode from
2512 * @returns RetryPolicy
2513 * @throws {Error} If the payload is not a reader or valid buffer
2514 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2515 */
2516 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.RetryPolicy;
2517
2518 /**
2519 * Verifies a RetryPolicy message.
2520 * @param message Plain object to verify
2521 * @returns `null` if valid, otherwise the reason why it is not
2522 */
2523 public static verify(message: { [k: string]: any }): (string|null);
2524
2525 /**
2526 * Creates a RetryPolicy message from a plain object. Also converts values to their respective internal types.
2527 * @param object Plain object
2528 * @returns RetryPolicy
2529 */
2530 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.RetryPolicy;
2531
2532 /**
2533 * Creates a plain object from a RetryPolicy message. Also converts values to other types if specified.
2534 * @param message RetryPolicy
2535 * @param [options] Conversion options
2536 * @returns Plain object
2537 */
2538 public static toObject(message: google.pubsub.v1.RetryPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
2539
2540 /**
2541 * Converts this RetryPolicy to JSON.
2542 * @returns JSON object
2543 */
2544 public toJSON(): { [k: string]: any };
2545 }
2546
2547 /** Properties of a DeadLetterPolicy. */
2548 interface IDeadLetterPolicy {
2549
2550 /** DeadLetterPolicy deadLetterTopic */
2551 deadLetterTopic?: (string|null);
2552
2553 /** DeadLetterPolicy maxDeliveryAttempts */
2554 maxDeliveryAttempts?: (number|null);
2555 }
2556
2557 /** Represents a DeadLetterPolicy. */
2558 class DeadLetterPolicy implements IDeadLetterPolicy {
2559
2560 /**
2561 * Constructs a new DeadLetterPolicy.
2562 * @param [properties] Properties to set
2563 */
2564 constructor(properties?: google.pubsub.v1.IDeadLetterPolicy);
2565
2566 /** DeadLetterPolicy deadLetterTopic. */
2567 public deadLetterTopic: string;
2568
2569 /** DeadLetterPolicy maxDeliveryAttempts. */
2570 public maxDeliveryAttempts: number;
2571
2572 /**
2573 * Creates a new DeadLetterPolicy instance using the specified properties.
2574 * @param [properties] Properties to set
2575 * @returns DeadLetterPolicy instance
2576 */
2577 public static create(properties?: google.pubsub.v1.IDeadLetterPolicy): google.pubsub.v1.DeadLetterPolicy;
2578
2579 /**
2580 * Encodes the specified DeadLetterPolicy message. Does not implicitly {@link google.pubsub.v1.DeadLetterPolicy.verify|verify} messages.
2581 * @param message DeadLetterPolicy message or plain object to encode
2582 * @param [writer] Writer to encode to
2583 * @returns Writer
2584 */
2585 public static encode(message: google.pubsub.v1.IDeadLetterPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
2586
2587 /**
2588 * Encodes the specified DeadLetterPolicy message, length delimited. Does not implicitly {@link google.pubsub.v1.DeadLetterPolicy.verify|verify} messages.
2589 * @param message DeadLetterPolicy message or plain object to encode
2590 * @param [writer] Writer to encode to
2591 * @returns Writer
2592 */
2593 public static encodeDelimited(message: google.pubsub.v1.IDeadLetterPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
2594
2595 /**
2596 * Decodes a DeadLetterPolicy message from the specified reader or buffer.
2597 * @param reader Reader or buffer to decode from
2598 * @param [length] Message length if known beforehand
2599 * @returns DeadLetterPolicy
2600 * @throws {Error} If the payload is not a reader or valid buffer
2601 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2602 */
2603 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.DeadLetterPolicy;
2604
2605 /**
2606 * Decodes a DeadLetterPolicy message from the specified reader or buffer, length delimited.
2607 * @param reader Reader or buffer to decode from
2608 * @returns DeadLetterPolicy
2609 * @throws {Error} If the payload is not a reader or valid buffer
2610 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2611 */
2612 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.DeadLetterPolicy;
2613
2614 /**
2615 * Verifies a DeadLetterPolicy message.
2616 * @param message Plain object to verify
2617 * @returns `null` if valid, otherwise the reason why it is not
2618 */
2619 public static verify(message: { [k: string]: any }): (string|null);
2620
2621 /**
2622 * Creates a DeadLetterPolicy message from a plain object. Also converts values to their respective internal types.
2623 * @param object Plain object
2624 * @returns DeadLetterPolicy
2625 */
2626 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.DeadLetterPolicy;
2627
2628 /**
2629 * Creates a plain object from a DeadLetterPolicy message. Also converts values to other types if specified.
2630 * @param message DeadLetterPolicy
2631 * @param [options] Conversion options
2632 * @returns Plain object
2633 */
2634 public static toObject(message: google.pubsub.v1.DeadLetterPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
2635
2636 /**
2637 * Converts this DeadLetterPolicy to JSON.
2638 * @returns JSON object
2639 */
2640 public toJSON(): { [k: string]: any };
2641 }
2642
2643 /** Properties of an ExpirationPolicy. */
2644 interface IExpirationPolicy {
2645
2646 /** ExpirationPolicy ttl */
2647 ttl?: (google.protobuf.IDuration|null);
2648 }
2649
2650 /** Represents an ExpirationPolicy. */
2651 class ExpirationPolicy implements IExpirationPolicy {
2652
2653 /**
2654 * Constructs a new ExpirationPolicy.
2655 * @param [properties] Properties to set
2656 */
2657 constructor(properties?: google.pubsub.v1.IExpirationPolicy);
2658
2659 /** ExpirationPolicy ttl. */
2660 public ttl?: (google.protobuf.IDuration|null);
2661
2662 /**
2663 * Creates a new ExpirationPolicy instance using the specified properties.
2664 * @param [properties] Properties to set
2665 * @returns ExpirationPolicy instance
2666 */
2667 public static create(properties?: google.pubsub.v1.IExpirationPolicy): google.pubsub.v1.ExpirationPolicy;
2668
2669 /**
2670 * Encodes the specified ExpirationPolicy message. Does not implicitly {@link google.pubsub.v1.ExpirationPolicy.verify|verify} messages.
2671 * @param message ExpirationPolicy message or plain object to encode
2672 * @param [writer] Writer to encode to
2673 * @returns Writer
2674 */
2675 public static encode(message: google.pubsub.v1.IExpirationPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
2676
2677 /**
2678 * Encodes the specified ExpirationPolicy message, length delimited. Does not implicitly {@link google.pubsub.v1.ExpirationPolicy.verify|verify} messages.
2679 * @param message ExpirationPolicy message or plain object to encode
2680 * @param [writer] Writer to encode to
2681 * @returns Writer
2682 */
2683 public static encodeDelimited(message: google.pubsub.v1.IExpirationPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
2684
2685 /**
2686 * Decodes an ExpirationPolicy message from the specified reader or buffer.
2687 * @param reader Reader or buffer to decode from
2688 * @param [length] Message length if known beforehand
2689 * @returns ExpirationPolicy
2690 * @throws {Error} If the payload is not a reader or valid buffer
2691 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2692 */
2693 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ExpirationPolicy;
2694
2695 /**
2696 * Decodes an ExpirationPolicy message from the specified reader or buffer, length delimited.
2697 * @param reader Reader or buffer to decode from
2698 * @returns ExpirationPolicy
2699 * @throws {Error} If the payload is not a reader or valid buffer
2700 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2701 */
2702 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ExpirationPolicy;
2703
2704 /**
2705 * Verifies an ExpirationPolicy message.
2706 * @param message Plain object to verify
2707 * @returns `null` if valid, otherwise the reason why it is not
2708 */
2709 public static verify(message: { [k: string]: any }): (string|null);
2710
2711 /**
2712 * Creates an ExpirationPolicy message from a plain object. Also converts values to their respective internal types.
2713 * @param object Plain object
2714 * @returns ExpirationPolicy
2715 */
2716 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ExpirationPolicy;
2717
2718 /**
2719 * Creates a plain object from an ExpirationPolicy message. Also converts values to other types if specified.
2720 * @param message ExpirationPolicy
2721 * @param [options] Conversion options
2722 * @returns Plain object
2723 */
2724 public static toObject(message: google.pubsub.v1.ExpirationPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
2725
2726 /**
2727 * Converts this ExpirationPolicy to JSON.
2728 * @returns JSON object
2729 */
2730 public toJSON(): { [k: string]: any };
2731 }
2732
2733 /** Properties of a PushConfig. */
2734 interface IPushConfig {
2735
2736 /** PushConfig pushEndpoint */
2737 pushEndpoint?: (string|null);
2738
2739 /** PushConfig attributes */
2740 attributes?: ({ [k: string]: string }|null);
2741
2742 /** PushConfig oidcToken */
2743 oidcToken?: (google.pubsub.v1.PushConfig.IOidcToken|null);
2744 }
2745
2746 /** Represents a PushConfig. */
2747 class PushConfig implements IPushConfig {
2748
2749 /**
2750 * Constructs a new PushConfig.
2751 * @param [properties] Properties to set
2752 */
2753 constructor(properties?: google.pubsub.v1.IPushConfig);
2754
2755 /** PushConfig pushEndpoint. */
2756 public pushEndpoint: string;
2757
2758 /** PushConfig attributes. */
2759 public attributes: { [k: string]: string };
2760
2761 /** PushConfig oidcToken. */
2762 public oidcToken?: (google.pubsub.v1.PushConfig.IOidcToken|null);
2763
2764 /** PushConfig authenticationMethod. */
2765 public authenticationMethod?: "oidcToken";
2766
2767 /**
2768 * Creates a new PushConfig instance using the specified properties.
2769 * @param [properties] Properties to set
2770 * @returns PushConfig instance
2771 */
2772 public static create(properties?: google.pubsub.v1.IPushConfig): google.pubsub.v1.PushConfig;
2773
2774 /**
2775 * Encodes the specified PushConfig message. Does not implicitly {@link google.pubsub.v1.PushConfig.verify|verify} messages.
2776 * @param message PushConfig message or plain object to encode
2777 * @param [writer] Writer to encode to
2778 * @returns Writer
2779 */
2780 public static encode(message: google.pubsub.v1.IPushConfig, writer?: $protobuf.Writer): $protobuf.Writer;
2781
2782 /**
2783 * Encodes the specified PushConfig message, length delimited. Does not implicitly {@link google.pubsub.v1.PushConfig.verify|verify} messages.
2784 * @param message PushConfig message or plain object to encode
2785 * @param [writer] Writer to encode to
2786 * @returns Writer
2787 */
2788 public static encodeDelimited(message: google.pubsub.v1.IPushConfig, writer?: $protobuf.Writer): $protobuf.Writer;
2789
2790 /**
2791 * Decodes a PushConfig message from the specified reader or buffer.
2792 * @param reader Reader or buffer to decode from
2793 * @param [length] Message length if known beforehand
2794 * @returns PushConfig
2795 * @throws {Error} If the payload is not a reader or valid buffer
2796 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2797 */
2798 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.PushConfig;
2799
2800 /**
2801 * Decodes a PushConfig message from the specified reader or buffer, length delimited.
2802 * @param reader Reader or buffer to decode from
2803 * @returns PushConfig
2804 * @throws {Error} If the payload is not a reader or valid buffer
2805 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2806 */
2807 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.PushConfig;
2808
2809 /**
2810 * Verifies a PushConfig message.
2811 * @param message Plain object to verify
2812 * @returns `null` if valid, otherwise the reason why it is not
2813 */
2814 public static verify(message: { [k: string]: any }): (string|null);
2815
2816 /**
2817 * Creates a PushConfig message from a plain object. Also converts values to their respective internal types.
2818 * @param object Plain object
2819 * @returns PushConfig
2820 */
2821 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.PushConfig;
2822
2823 /**
2824 * Creates a plain object from a PushConfig message. Also converts values to other types if specified.
2825 * @param message PushConfig
2826 * @param [options] Conversion options
2827 * @returns Plain object
2828 */
2829 public static toObject(message: google.pubsub.v1.PushConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
2830
2831 /**
2832 * Converts this PushConfig to JSON.
2833 * @returns JSON object
2834 */
2835 public toJSON(): { [k: string]: any };
2836 }
2837
2838 namespace PushConfig {
2839
2840 /** Properties of an OidcToken. */
2841 interface IOidcToken {
2842
2843 /** OidcToken serviceAccountEmail */
2844 serviceAccountEmail?: (string|null);
2845
2846 /** OidcToken audience */
2847 audience?: (string|null);
2848 }
2849
2850 /** Represents an OidcToken. */
2851 class OidcToken implements IOidcToken {
2852
2853 /**
2854 * Constructs a new OidcToken.
2855 * @param [properties] Properties to set
2856 */
2857 constructor(properties?: google.pubsub.v1.PushConfig.IOidcToken);
2858
2859 /** OidcToken serviceAccountEmail. */
2860 public serviceAccountEmail: string;
2861
2862 /** OidcToken audience. */
2863 public audience: string;
2864
2865 /**
2866 * Creates a new OidcToken instance using the specified properties.
2867 * @param [properties] Properties to set
2868 * @returns OidcToken instance
2869 */
2870 public static create(properties?: google.pubsub.v1.PushConfig.IOidcToken): google.pubsub.v1.PushConfig.OidcToken;
2871
2872 /**
2873 * Encodes the specified OidcToken message. Does not implicitly {@link google.pubsub.v1.PushConfig.OidcToken.verify|verify} messages.
2874 * @param message OidcToken message or plain object to encode
2875 * @param [writer] Writer to encode to
2876 * @returns Writer
2877 */
2878 public static encode(message: google.pubsub.v1.PushConfig.IOidcToken, writer?: $protobuf.Writer): $protobuf.Writer;
2879
2880 /**
2881 * Encodes the specified OidcToken message, length delimited. Does not implicitly {@link google.pubsub.v1.PushConfig.OidcToken.verify|verify} messages.
2882 * @param message OidcToken message or plain object to encode
2883 * @param [writer] Writer to encode to
2884 * @returns Writer
2885 */
2886 public static encodeDelimited(message: google.pubsub.v1.PushConfig.IOidcToken, writer?: $protobuf.Writer): $protobuf.Writer;
2887
2888 /**
2889 * Decodes an OidcToken message from the specified reader or buffer.
2890 * @param reader Reader or buffer to decode from
2891 * @param [length] Message length if known beforehand
2892 * @returns OidcToken
2893 * @throws {Error} If the payload is not a reader or valid buffer
2894 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2895 */
2896 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.PushConfig.OidcToken;
2897
2898 /**
2899 * Decodes an OidcToken message from the specified reader or buffer, length delimited.
2900 * @param reader Reader or buffer to decode from
2901 * @returns OidcToken
2902 * @throws {Error} If the payload is not a reader or valid buffer
2903 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2904 */
2905 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.PushConfig.OidcToken;
2906
2907 /**
2908 * Verifies an OidcToken message.
2909 * @param message Plain object to verify
2910 * @returns `null` if valid, otherwise the reason why it is not
2911 */
2912 public static verify(message: { [k: string]: any }): (string|null);
2913
2914 /**
2915 * Creates an OidcToken message from a plain object. Also converts values to their respective internal types.
2916 * @param object Plain object
2917 * @returns OidcToken
2918 */
2919 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.PushConfig.OidcToken;
2920
2921 /**
2922 * Creates a plain object from an OidcToken message. Also converts values to other types if specified.
2923 * @param message OidcToken
2924 * @param [options] Conversion options
2925 * @returns Plain object
2926 */
2927 public static toObject(message: google.pubsub.v1.PushConfig.OidcToken, options?: $protobuf.IConversionOptions): { [k: string]: any };
2928
2929 /**
2930 * Converts this OidcToken to JSON.
2931 * @returns JSON object
2932 */
2933 public toJSON(): { [k: string]: any };
2934 }
2935 }
2936
2937 /** Properties of a BigQueryConfig. */
2938 interface IBigQueryConfig {
2939
2940 /** BigQueryConfig table */
2941 table?: (string|null);
2942
2943 /** BigQueryConfig useTopicSchema */
2944 useTopicSchema?: (boolean|null);
2945
2946 /** BigQueryConfig writeMetadata */
2947 writeMetadata?: (boolean|null);
2948
2949 /** BigQueryConfig dropUnknownFields */
2950 dropUnknownFields?: (boolean|null);
2951
2952 /** BigQueryConfig state */
2953 state?: (google.pubsub.v1.BigQueryConfig.State|keyof typeof google.pubsub.v1.BigQueryConfig.State|null);
2954 }
2955
2956 /** Represents a BigQueryConfig. */
2957 class BigQueryConfig implements IBigQueryConfig {
2958
2959 /**
2960 * Constructs a new BigQueryConfig.
2961 * @param [properties] Properties to set
2962 */
2963 constructor(properties?: google.pubsub.v1.IBigQueryConfig);
2964
2965 /** BigQueryConfig table. */
2966 public table: string;
2967
2968 /** BigQueryConfig useTopicSchema. */
2969 public useTopicSchema: boolean;
2970
2971 /** BigQueryConfig writeMetadata. */
2972 public writeMetadata: boolean;
2973
2974 /** BigQueryConfig dropUnknownFields. */
2975 public dropUnknownFields: boolean;
2976
2977 /** BigQueryConfig state. */
2978 public state: (google.pubsub.v1.BigQueryConfig.State|keyof typeof google.pubsub.v1.BigQueryConfig.State);
2979
2980 /**
2981 * Creates a new BigQueryConfig instance using the specified properties.
2982 * @param [properties] Properties to set
2983 * @returns BigQueryConfig instance
2984 */
2985 public static create(properties?: google.pubsub.v1.IBigQueryConfig): google.pubsub.v1.BigQueryConfig;
2986
2987 /**
2988 * Encodes the specified BigQueryConfig message. Does not implicitly {@link google.pubsub.v1.BigQueryConfig.verify|verify} messages.
2989 * @param message BigQueryConfig message or plain object to encode
2990 * @param [writer] Writer to encode to
2991 * @returns Writer
2992 */
2993 public static encode(message: google.pubsub.v1.IBigQueryConfig, writer?: $protobuf.Writer): $protobuf.Writer;
2994
2995 /**
2996 * Encodes the specified BigQueryConfig message, length delimited. Does not implicitly {@link google.pubsub.v1.BigQueryConfig.verify|verify} messages.
2997 * @param message BigQueryConfig message or plain object to encode
2998 * @param [writer] Writer to encode to
2999 * @returns Writer
3000 */
3001 public static encodeDelimited(message: google.pubsub.v1.IBigQueryConfig, writer?: $protobuf.Writer): $protobuf.Writer;
3002
3003 /**
3004 * Decodes a BigQueryConfig message from the specified reader or buffer.
3005 * @param reader Reader or buffer to decode from
3006 * @param [length] Message length if known beforehand
3007 * @returns BigQueryConfig
3008 * @throws {Error} If the payload is not a reader or valid buffer
3009 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3010 */
3011 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.BigQueryConfig;
3012
3013 /**
3014 * Decodes a BigQueryConfig message from the specified reader or buffer, length delimited.
3015 * @param reader Reader or buffer to decode from
3016 * @returns BigQueryConfig
3017 * @throws {Error} If the payload is not a reader or valid buffer
3018 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3019 */
3020 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.BigQueryConfig;
3021
3022 /**
3023 * Verifies a BigQueryConfig message.
3024 * @param message Plain object to verify
3025 * @returns `null` if valid, otherwise the reason why it is not
3026 */
3027 public static verify(message: { [k: string]: any }): (string|null);
3028
3029 /**
3030 * Creates a BigQueryConfig message from a plain object. Also converts values to their respective internal types.
3031 * @param object Plain object
3032 * @returns BigQueryConfig
3033 */
3034 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.BigQueryConfig;
3035
3036 /**
3037 * Creates a plain object from a BigQueryConfig message. Also converts values to other types if specified.
3038 * @param message BigQueryConfig
3039 * @param [options] Conversion options
3040 * @returns Plain object
3041 */
3042 public static toObject(message: google.pubsub.v1.BigQueryConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
3043
3044 /**
3045 * Converts this BigQueryConfig to JSON.
3046 * @returns JSON object
3047 */
3048 public toJSON(): { [k: string]: any };
3049 }
3050
3051 namespace BigQueryConfig {
3052
3053 /** State enum. */
3054 enum State {
3055 STATE_UNSPECIFIED = 0,
3056 ACTIVE = 1,
3057 PERMISSION_DENIED = 2,
3058 NOT_FOUND = 3,
3059 SCHEMA_MISMATCH = 4
3060 }
3061 }
3062
3063 /** Properties of a ReceivedMessage. */
3064 interface IReceivedMessage {
3065
3066 /** ReceivedMessage ackId */
3067 ackId?: (string|null);
3068
3069 /** ReceivedMessage message */
3070 message?: (google.pubsub.v1.IPubsubMessage|null);
3071
3072 /** ReceivedMessage deliveryAttempt */
3073 deliveryAttempt?: (number|null);
3074 }
3075
3076 /** Represents a ReceivedMessage. */
3077 class ReceivedMessage implements IReceivedMessage {
3078
3079 /**
3080 * Constructs a new ReceivedMessage.
3081 * @param [properties] Properties to set
3082 */
3083 constructor(properties?: google.pubsub.v1.IReceivedMessage);
3084
3085 /** ReceivedMessage ackId. */
3086 public ackId: string;
3087
3088 /** ReceivedMessage message. */
3089 public message?: (google.pubsub.v1.IPubsubMessage|null);
3090
3091 /** ReceivedMessage deliveryAttempt. */
3092 public deliveryAttempt: number;
3093
3094 /**
3095 * Creates a new ReceivedMessage instance using the specified properties.
3096 * @param [properties] Properties to set
3097 * @returns ReceivedMessage instance
3098 */
3099 public static create(properties?: google.pubsub.v1.IReceivedMessage): google.pubsub.v1.ReceivedMessage;
3100
3101 /**
3102 * Encodes the specified ReceivedMessage message. Does not implicitly {@link google.pubsub.v1.ReceivedMessage.verify|verify} messages.
3103 * @param message ReceivedMessage message or plain object to encode
3104 * @param [writer] Writer to encode to
3105 * @returns Writer
3106 */
3107 public static encode(message: google.pubsub.v1.IReceivedMessage, writer?: $protobuf.Writer): $protobuf.Writer;
3108
3109 /**
3110 * Encodes the specified ReceivedMessage message, length delimited. Does not implicitly {@link google.pubsub.v1.ReceivedMessage.verify|verify} messages.
3111 * @param message ReceivedMessage message or plain object to encode
3112 * @param [writer] Writer to encode to
3113 * @returns Writer
3114 */
3115 public static encodeDelimited(message: google.pubsub.v1.IReceivedMessage, writer?: $protobuf.Writer): $protobuf.Writer;
3116
3117 /**
3118 * Decodes a ReceivedMessage message from the specified reader or buffer.
3119 * @param reader Reader or buffer to decode from
3120 * @param [length] Message length if known beforehand
3121 * @returns ReceivedMessage
3122 * @throws {Error} If the payload is not a reader or valid buffer
3123 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3124 */
3125 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ReceivedMessage;
3126
3127 /**
3128 * Decodes a ReceivedMessage message from the specified reader or buffer, length delimited.
3129 * @param reader Reader or buffer to decode from
3130 * @returns ReceivedMessage
3131 * @throws {Error} If the payload is not a reader or valid buffer
3132 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3133 */
3134 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ReceivedMessage;
3135
3136 /**
3137 * Verifies a ReceivedMessage message.
3138 * @param message Plain object to verify
3139 * @returns `null` if valid, otherwise the reason why it is not
3140 */
3141 public static verify(message: { [k: string]: any }): (string|null);
3142
3143 /**
3144 * Creates a ReceivedMessage message from a plain object. Also converts values to their respective internal types.
3145 * @param object Plain object
3146 * @returns ReceivedMessage
3147 */
3148 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ReceivedMessage;
3149
3150 /**
3151 * Creates a plain object from a ReceivedMessage message. Also converts values to other types if specified.
3152 * @param message ReceivedMessage
3153 * @param [options] Conversion options
3154 * @returns Plain object
3155 */
3156 public static toObject(message: google.pubsub.v1.ReceivedMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
3157
3158 /**
3159 * Converts this ReceivedMessage to JSON.
3160 * @returns JSON object
3161 */
3162 public toJSON(): { [k: string]: any };
3163 }
3164
3165 /** Properties of a GetSubscriptionRequest. */
3166 interface IGetSubscriptionRequest {
3167
3168 /** GetSubscriptionRequest subscription */
3169 subscription?: (string|null);
3170 }
3171
3172 /** Represents a GetSubscriptionRequest. */
3173 class GetSubscriptionRequest implements IGetSubscriptionRequest {
3174
3175 /**
3176 * Constructs a new GetSubscriptionRequest.
3177 * @param [properties] Properties to set
3178 */
3179 constructor(properties?: google.pubsub.v1.IGetSubscriptionRequest);
3180
3181 /** GetSubscriptionRequest subscription. */
3182 public subscription: string;
3183
3184 /**
3185 * Creates a new GetSubscriptionRequest instance using the specified properties.
3186 * @param [properties] Properties to set
3187 * @returns GetSubscriptionRequest instance
3188 */
3189 public static create(properties?: google.pubsub.v1.IGetSubscriptionRequest): google.pubsub.v1.GetSubscriptionRequest;
3190
3191 /**
3192 * Encodes the specified GetSubscriptionRequest message. Does not implicitly {@link google.pubsub.v1.GetSubscriptionRequest.verify|verify} messages.
3193 * @param message GetSubscriptionRequest message or plain object to encode
3194 * @param [writer] Writer to encode to
3195 * @returns Writer
3196 */
3197 public static encode(message: google.pubsub.v1.IGetSubscriptionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3198
3199 /**
3200 * Encodes the specified GetSubscriptionRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.GetSubscriptionRequest.verify|verify} messages.
3201 * @param message GetSubscriptionRequest message or plain object to encode
3202 * @param [writer] Writer to encode to
3203 * @returns Writer
3204 */
3205 public static encodeDelimited(message: google.pubsub.v1.IGetSubscriptionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3206
3207 /**
3208 * Decodes a GetSubscriptionRequest message from the specified reader or buffer.
3209 * @param reader Reader or buffer to decode from
3210 * @param [length] Message length if known beforehand
3211 * @returns GetSubscriptionRequest
3212 * @throws {Error} If the payload is not a reader or valid buffer
3213 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3214 */
3215 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.GetSubscriptionRequest;
3216
3217 /**
3218 * Decodes a GetSubscriptionRequest message from the specified reader or buffer, length delimited.
3219 * @param reader Reader or buffer to decode from
3220 * @returns GetSubscriptionRequest
3221 * @throws {Error} If the payload is not a reader or valid buffer
3222 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3223 */
3224 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.GetSubscriptionRequest;
3225
3226 /**
3227 * Verifies a GetSubscriptionRequest message.
3228 * @param message Plain object to verify
3229 * @returns `null` if valid, otherwise the reason why it is not
3230 */
3231 public static verify(message: { [k: string]: any }): (string|null);
3232
3233 /**
3234 * Creates a GetSubscriptionRequest message from a plain object. Also converts values to their respective internal types.
3235 * @param object Plain object
3236 * @returns GetSubscriptionRequest
3237 */
3238 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.GetSubscriptionRequest;
3239
3240 /**
3241 * Creates a plain object from a GetSubscriptionRequest message. Also converts values to other types if specified.
3242 * @param message GetSubscriptionRequest
3243 * @param [options] Conversion options
3244 * @returns Plain object
3245 */
3246 public static toObject(message: google.pubsub.v1.GetSubscriptionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
3247
3248 /**
3249 * Converts this GetSubscriptionRequest to JSON.
3250 * @returns JSON object
3251 */
3252 public toJSON(): { [k: string]: any };
3253 }
3254
3255 /** Properties of an UpdateSubscriptionRequest. */
3256 interface IUpdateSubscriptionRequest {
3257
3258 /** UpdateSubscriptionRequest subscription */
3259 subscription?: (google.pubsub.v1.ISubscription|null);
3260
3261 /** UpdateSubscriptionRequest updateMask */
3262 updateMask?: (google.protobuf.IFieldMask|null);
3263 }
3264
3265 /** Represents an UpdateSubscriptionRequest. */
3266 class UpdateSubscriptionRequest implements IUpdateSubscriptionRequest {
3267
3268 /**
3269 * Constructs a new UpdateSubscriptionRequest.
3270 * @param [properties] Properties to set
3271 */
3272 constructor(properties?: google.pubsub.v1.IUpdateSubscriptionRequest);
3273
3274 /** UpdateSubscriptionRequest subscription. */
3275 public subscription?: (google.pubsub.v1.ISubscription|null);
3276
3277 /** UpdateSubscriptionRequest updateMask. */
3278 public updateMask?: (google.protobuf.IFieldMask|null);
3279
3280 /**
3281 * Creates a new UpdateSubscriptionRequest instance using the specified properties.
3282 * @param [properties] Properties to set
3283 * @returns UpdateSubscriptionRequest instance
3284 */
3285 public static create(properties?: google.pubsub.v1.IUpdateSubscriptionRequest): google.pubsub.v1.UpdateSubscriptionRequest;
3286
3287 /**
3288 * Encodes the specified UpdateSubscriptionRequest message. Does not implicitly {@link google.pubsub.v1.UpdateSubscriptionRequest.verify|verify} messages.
3289 * @param message UpdateSubscriptionRequest message or plain object to encode
3290 * @param [writer] Writer to encode to
3291 * @returns Writer
3292 */
3293 public static encode(message: google.pubsub.v1.IUpdateSubscriptionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3294
3295 /**
3296 * Encodes the specified UpdateSubscriptionRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.UpdateSubscriptionRequest.verify|verify} messages.
3297 * @param message UpdateSubscriptionRequest message or plain object to encode
3298 * @param [writer] Writer to encode to
3299 * @returns Writer
3300 */
3301 public static encodeDelimited(message: google.pubsub.v1.IUpdateSubscriptionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3302
3303 /**
3304 * Decodes an UpdateSubscriptionRequest message from the specified reader or buffer.
3305 * @param reader Reader or buffer to decode from
3306 * @param [length] Message length if known beforehand
3307 * @returns UpdateSubscriptionRequest
3308 * @throws {Error} If the payload is not a reader or valid buffer
3309 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3310 */
3311 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.UpdateSubscriptionRequest;
3312
3313 /**
3314 * Decodes an UpdateSubscriptionRequest message from the specified reader or buffer, length delimited.
3315 * @param reader Reader or buffer to decode from
3316 * @returns UpdateSubscriptionRequest
3317 * @throws {Error} If the payload is not a reader or valid buffer
3318 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3319 */
3320 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.UpdateSubscriptionRequest;
3321
3322 /**
3323 * Verifies an UpdateSubscriptionRequest message.
3324 * @param message Plain object to verify
3325 * @returns `null` if valid, otherwise the reason why it is not
3326 */
3327 public static verify(message: { [k: string]: any }): (string|null);
3328
3329 /**
3330 * Creates an UpdateSubscriptionRequest message from a plain object. Also converts values to their respective internal types.
3331 * @param object Plain object
3332 * @returns UpdateSubscriptionRequest
3333 */
3334 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.UpdateSubscriptionRequest;
3335
3336 /**
3337 * Creates a plain object from an UpdateSubscriptionRequest message. Also converts values to other types if specified.
3338 * @param message UpdateSubscriptionRequest
3339 * @param [options] Conversion options
3340 * @returns Plain object
3341 */
3342 public static toObject(message: google.pubsub.v1.UpdateSubscriptionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
3343
3344 /**
3345 * Converts this UpdateSubscriptionRequest to JSON.
3346 * @returns JSON object
3347 */
3348 public toJSON(): { [k: string]: any };
3349 }
3350
3351 /** Properties of a ListSubscriptionsRequest. */
3352 interface IListSubscriptionsRequest {
3353
3354 /** ListSubscriptionsRequest project */
3355 project?: (string|null);
3356
3357 /** ListSubscriptionsRequest pageSize */
3358 pageSize?: (number|null);
3359
3360 /** ListSubscriptionsRequest pageToken */
3361 pageToken?: (string|null);
3362 }
3363
3364 /** Represents a ListSubscriptionsRequest. */
3365 class ListSubscriptionsRequest implements IListSubscriptionsRequest {
3366
3367 /**
3368 * Constructs a new ListSubscriptionsRequest.
3369 * @param [properties] Properties to set
3370 */
3371 constructor(properties?: google.pubsub.v1.IListSubscriptionsRequest);
3372
3373 /** ListSubscriptionsRequest project. */
3374 public project: string;
3375
3376 /** ListSubscriptionsRequest pageSize. */
3377 public pageSize: number;
3378
3379 /** ListSubscriptionsRequest pageToken. */
3380 public pageToken: string;
3381
3382 /**
3383 * Creates a new ListSubscriptionsRequest instance using the specified properties.
3384 * @param [properties] Properties to set
3385 * @returns ListSubscriptionsRequest instance
3386 */
3387 public static create(properties?: google.pubsub.v1.IListSubscriptionsRequest): google.pubsub.v1.ListSubscriptionsRequest;
3388
3389 /**
3390 * Encodes the specified ListSubscriptionsRequest message. Does not implicitly {@link google.pubsub.v1.ListSubscriptionsRequest.verify|verify} messages.
3391 * @param message ListSubscriptionsRequest message or plain object to encode
3392 * @param [writer] Writer to encode to
3393 * @returns Writer
3394 */
3395 public static encode(message: google.pubsub.v1.IListSubscriptionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3396
3397 /**
3398 * Encodes the specified ListSubscriptionsRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.ListSubscriptionsRequest.verify|verify} messages.
3399 * @param message ListSubscriptionsRequest message or plain object to encode
3400 * @param [writer] Writer to encode to
3401 * @returns Writer
3402 */
3403 public static encodeDelimited(message: google.pubsub.v1.IListSubscriptionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3404
3405 /**
3406 * Decodes a ListSubscriptionsRequest message from the specified reader or buffer.
3407 * @param reader Reader or buffer to decode from
3408 * @param [length] Message length if known beforehand
3409 * @returns ListSubscriptionsRequest
3410 * @throws {Error} If the payload is not a reader or valid buffer
3411 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3412 */
3413 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ListSubscriptionsRequest;
3414
3415 /**
3416 * Decodes a ListSubscriptionsRequest message from the specified reader or buffer, length delimited.
3417 * @param reader Reader or buffer to decode from
3418 * @returns ListSubscriptionsRequest
3419 * @throws {Error} If the payload is not a reader or valid buffer
3420 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3421 */
3422 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ListSubscriptionsRequest;
3423
3424 /**
3425 * Verifies a ListSubscriptionsRequest message.
3426 * @param message Plain object to verify
3427 * @returns `null` if valid, otherwise the reason why it is not
3428 */
3429 public static verify(message: { [k: string]: any }): (string|null);
3430
3431 /**
3432 * Creates a ListSubscriptionsRequest message from a plain object. Also converts values to their respective internal types.
3433 * @param object Plain object
3434 * @returns ListSubscriptionsRequest
3435 */
3436 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ListSubscriptionsRequest;
3437
3438 /**
3439 * Creates a plain object from a ListSubscriptionsRequest message. Also converts values to other types if specified.
3440 * @param message ListSubscriptionsRequest
3441 * @param [options] Conversion options
3442 * @returns Plain object
3443 */
3444 public static toObject(message: google.pubsub.v1.ListSubscriptionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
3445
3446 /**
3447 * Converts this ListSubscriptionsRequest to JSON.
3448 * @returns JSON object
3449 */
3450 public toJSON(): { [k: string]: any };
3451 }
3452
3453 /** Properties of a ListSubscriptionsResponse. */
3454 interface IListSubscriptionsResponse {
3455
3456 /** ListSubscriptionsResponse subscriptions */
3457 subscriptions?: (google.pubsub.v1.ISubscription[]|null);
3458
3459 /** ListSubscriptionsResponse nextPageToken */
3460 nextPageToken?: (string|null);
3461 }
3462
3463 /** Represents a ListSubscriptionsResponse. */
3464 class ListSubscriptionsResponse implements IListSubscriptionsResponse {
3465
3466 /**
3467 * Constructs a new ListSubscriptionsResponse.
3468 * @param [properties] Properties to set
3469 */
3470 constructor(properties?: google.pubsub.v1.IListSubscriptionsResponse);
3471
3472 /** ListSubscriptionsResponse subscriptions. */
3473 public subscriptions: google.pubsub.v1.ISubscription[];
3474
3475 /** ListSubscriptionsResponse nextPageToken. */
3476 public nextPageToken: string;
3477
3478 /**
3479 * Creates a new ListSubscriptionsResponse instance using the specified properties.
3480 * @param [properties] Properties to set
3481 * @returns ListSubscriptionsResponse instance
3482 */
3483 public static create(properties?: google.pubsub.v1.IListSubscriptionsResponse): google.pubsub.v1.ListSubscriptionsResponse;
3484
3485 /**
3486 * Encodes the specified ListSubscriptionsResponse message. Does not implicitly {@link google.pubsub.v1.ListSubscriptionsResponse.verify|verify} messages.
3487 * @param message ListSubscriptionsResponse message or plain object to encode
3488 * @param [writer] Writer to encode to
3489 * @returns Writer
3490 */
3491 public static encode(message: google.pubsub.v1.IListSubscriptionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3492
3493 /**
3494 * Encodes the specified ListSubscriptionsResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.ListSubscriptionsResponse.verify|verify} messages.
3495 * @param message ListSubscriptionsResponse message or plain object to encode
3496 * @param [writer] Writer to encode to
3497 * @returns Writer
3498 */
3499 public static encodeDelimited(message: google.pubsub.v1.IListSubscriptionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3500
3501 /**
3502 * Decodes a ListSubscriptionsResponse message from the specified reader or buffer.
3503 * @param reader Reader or buffer to decode from
3504 * @param [length] Message length if known beforehand
3505 * @returns ListSubscriptionsResponse
3506 * @throws {Error} If the payload is not a reader or valid buffer
3507 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3508 */
3509 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ListSubscriptionsResponse;
3510
3511 /**
3512 * Decodes a ListSubscriptionsResponse message from the specified reader or buffer, length delimited.
3513 * @param reader Reader or buffer to decode from
3514 * @returns ListSubscriptionsResponse
3515 * @throws {Error} If the payload is not a reader or valid buffer
3516 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3517 */
3518 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ListSubscriptionsResponse;
3519
3520 /**
3521 * Verifies a ListSubscriptionsResponse message.
3522 * @param message Plain object to verify
3523 * @returns `null` if valid, otherwise the reason why it is not
3524 */
3525 public static verify(message: { [k: string]: any }): (string|null);
3526
3527 /**
3528 * Creates a ListSubscriptionsResponse message from a plain object. Also converts values to their respective internal types.
3529 * @param object Plain object
3530 * @returns ListSubscriptionsResponse
3531 */
3532 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ListSubscriptionsResponse;
3533
3534 /**
3535 * Creates a plain object from a ListSubscriptionsResponse message. Also converts values to other types if specified.
3536 * @param message ListSubscriptionsResponse
3537 * @param [options] Conversion options
3538 * @returns Plain object
3539 */
3540 public static toObject(message: google.pubsub.v1.ListSubscriptionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
3541
3542 /**
3543 * Converts this ListSubscriptionsResponse to JSON.
3544 * @returns JSON object
3545 */
3546 public toJSON(): { [k: string]: any };
3547 }
3548
3549 /** Properties of a DeleteSubscriptionRequest. */
3550 interface IDeleteSubscriptionRequest {
3551
3552 /** DeleteSubscriptionRequest subscription */
3553 subscription?: (string|null);
3554 }
3555
3556 /** Represents a DeleteSubscriptionRequest. */
3557 class DeleteSubscriptionRequest implements IDeleteSubscriptionRequest {
3558
3559 /**
3560 * Constructs a new DeleteSubscriptionRequest.
3561 * @param [properties] Properties to set
3562 */
3563 constructor(properties?: google.pubsub.v1.IDeleteSubscriptionRequest);
3564
3565 /** DeleteSubscriptionRequest subscription. */
3566 public subscription: string;
3567
3568 /**
3569 * Creates a new DeleteSubscriptionRequest instance using the specified properties.
3570 * @param [properties] Properties to set
3571 * @returns DeleteSubscriptionRequest instance
3572 */
3573 public static create(properties?: google.pubsub.v1.IDeleteSubscriptionRequest): google.pubsub.v1.DeleteSubscriptionRequest;
3574
3575 /**
3576 * Encodes the specified DeleteSubscriptionRequest message. Does not implicitly {@link google.pubsub.v1.DeleteSubscriptionRequest.verify|verify} messages.
3577 * @param message DeleteSubscriptionRequest message or plain object to encode
3578 * @param [writer] Writer to encode to
3579 * @returns Writer
3580 */
3581 public static encode(message: google.pubsub.v1.IDeleteSubscriptionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3582
3583 /**
3584 * Encodes the specified DeleteSubscriptionRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.DeleteSubscriptionRequest.verify|verify} messages.
3585 * @param message DeleteSubscriptionRequest message or plain object to encode
3586 * @param [writer] Writer to encode to
3587 * @returns Writer
3588 */
3589 public static encodeDelimited(message: google.pubsub.v1.IDeleteSubscriptionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3590
3591 /**
3592 * Decodes a DeleteSubscriptionRequest message from the specified reader or buffer.
3593 * @param reader Reader or buffer to decode from
3594 * @param [length] Message length if known beforehand
3595 * @returns DeleteSubscriptionRequest
3596 * @throws {Error} If the payload is not a reader or valid buffer
3597 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3598 */
3599 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.DeleteSubscriptionRequest;
3600
3601 /**
3602 * Decodes a DeleteSubscriptionRequest message from the specified reader or buffer, length delimited.
3603 * @param reader Reader or buffer to decode from
3604 * @returns DeleteSubscriptionRequest
3605 * @throws {Error} If the payload is not a reader or valid buffer
3606 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3607 */
3608 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.DeleteSubscriptionRequest;
3609
3610 /**
3611 * Verifies a DeleteSubscriptionRequest message.
3612 * @param message Plain object to verify
3613 * @returns `null` if valid, otherwise the reason why it is not
3614 */
3615 public static verify(message: { [k: string]: any }): (string|null);
3616
3617 /**
3618 * Creates a DeleteSubscriptionRequest message from a plain object. Also converts values to their respective internal types.
3619 * @param object Plain object
3620 * @returns DeleteSubscriptionRequest
3621 */
3622 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.DeleteSubscriptionRequest;
3623
3624 /**
3625 * Creates a plain object from a DeleteSubscriptionRequest message. Also converts values to other types if specified.
3626 * @param message DeleteSubscriptionRequest
3627 * @param [options] Conversion options
3628 * @returns Plain object
3629 */
3630 public static toObject(message: google.pubsub.v1.DeleteSubscriptionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
3631
3632 /**
3633 * Converts this DeleteSubscriptionRequest to JSON.
3634 * @returns JSON object
3635 */
3636 public toJSON(): { [k: string]: any };
3637 }
3638
3639 /** Properties of a ModifyPushConfigRequest. */
3640 interface IModifyPushConfigRequest {
3641
3642 /** ModifyPushConfigRequest subscription */
3643 subscription?: (string|null);
3644
3645 /** ModifyPushConfigRequest pushConfig */
3646 pushConfig?: (google.pubsub.v1.IPushConfig|null);
3647 }
3648
3649 /** Represents a ModifyPushConfigRequest. */
3650 class ModifyPushConfigRequest implements IModifyPushConfigRequest {
3651
3652 /**
3653 * Constructs a new ModifyPushConfigRequest.
3654 * @param [properties] Properties to set
3655 */
3656 constructor(properties?: google.pubsub.v1.IModifyPushConfigRequest);
3657
3658 /** ModifyPushConfigRequest subscription. */
3659 public subscription: string;
3660
3661 /** ModifyPushConfigRequest pushConfig. */
3662 public pushConfig?: (google.pubsub.v1.IPushConfig|null);
3663
3664 /**
3665 * Creates a new ModifyPushConfigRequest instance using the specified properties.
3666 * @param [properties] Properties to set
3667 * @returns ModifyPushConfigRequest instance
3668 */
3669 public static create(properties?: google.pubsub.v1.IModifyPushConfigRequest): google.pubsub.v1.ModifyPushConfigRequest;
3670
3671 /**
3672 * Encodes the specified ModifyPushConfigRequest message. Does not implicitly {@link google.pubsub.v1.ModifyPushConfigRequest.verify|verify} messages.
3673 * @param message ModifyPushConfigRequest message or plain object to encode
3674 * @param [writer] Writer to encode to
3675 * @returns Writer
3676 */
3677 public static encode(message: google.pubsub.v1.IModifyPushConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3678
3679 /**
3680 * Encodes the specified ModifyPushConfigRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.ModifyPushConfigRequest.verify|verify} messages.
3681 * @param message ModifyPushConfigRequest message or plain object to encode
3682 * @param [writer] Writer to encode to
3683 * @returns Writer
3684 */
3685 public static encodeDelimited(message: google.pubsub.v1.IModifyPushConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3686
3687 /**
3688 * Decodes a ModifyPushConfigRequest message from the specified reader or buffer.
3689 * @param reader Reader or buffer to decode from
3690 * @param [length] Message length if known beforehand
3691 * @returns ModifyPushConfigRequest
3692 * @throws {Error} If the payload is not a reader or valid buffer
3693 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3694 */
3695 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ModifyPushConfigRequest;
3696
3697 /**
3698 * Decodes a ModifyPushConfigRequest message from the specified reader or buffer, length delimited.
3699 * @param reader Reader or buffer to decode from
3700 * @returns ModifyPushConfigRequest
3701 * @throws {Error} If the payload is not a reader or valid buffer
3702 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3703 */
3704 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ModifyPushConfigRequest;
3705
3706 /**
3707 * Verifies a ModifyPushConfigRequest message.
3708 * @param message Plain object to verify
3709 * @returns `null` if valid, otherwise the reason why it is not
3710 */
3711 public static verify(message: { [k: string]: any }): (string|null);
3712
3713 /**
3714 * Creates a ModifyPushConfigRequest message from a plain object. Also converts values to their respective internal types.
3715 * @param object Plain object
3716 * @returns ModifyPushConfigRequest
3717 */
3718 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ModifyPushConfigRequest;
3719
3720 /**
3721 * Creates a plain object from a ModifyPushConfigRequest message. Also converts values to other types if specified.
3722 * @param message ModifyPushConfigRequest
3723 * @param [options] Conversion options
3724 * @returns Plain object
3725 */
3726 public static toObject(message: google.pubsub.v1.ModifyPushConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
3727
3728 /**
3729 * Converts this ModifyPushConfigRequest to JSON.
3730 * @returns JSON object
3731 */
3732 public toJSON(): { [k: string]: any };
3733 }
3734
3735 /** Properties of a PullRequest. */
3736 interface IPullRequest {
3737
3738 /** PullRequest subscription */
3739 subscription?: (string|null);
3740
3741 /** PullRequest returnImmediately */
3742 returnImmediately?: (boolean|null);
3743
3744 /** PullRequest maxMessages */
3745 maxMessages?: (number|null);
3746 }
3747
3748 /** Represents a PullRequest. */
3749 class PullRequest implements IPullRequest {
3750
3751 /**
3752 * Constructs a new PullRequest.
3753 * @param [properties] Properties to set
3754 */
3755 constructor(properties?: google.pubsub.v1.IPullRequest);
3756
3757 /** PullRequest subscription. */
3758 public subscription: string;
3759
3760 /** PullRequest returnImmediately. */
3761 public returnImmediately: boolean;
3762
3763 /** PullRequest maxMessages. */
3764 public maxMessages: number;
3765
3766 /**
3767 * Creates a new PullRequest instance using the specified properties.
3768 * @param [properties] Properties to set
3769 * @returns PullRequest instance
3770 */
3771 public static create(properties?: google.pubsub.v1.IPullRequest): google.pubsub.v1.PullRequest;
3772
3773 /**
3774 * Encodes the specified PullRequest message. Does not implicitly {@link google.pubsub.v1.PullRequest.verify|verify} messages.
3775 * @param message PullRequest message or plain object to encode
3776 * @param [writer] Writer to encode to
3777 * @returns Writer
3778 */
3779 public static encode(message: google.pubsub.v1.IPullRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3780
3781 /**
3782 * Encodes the specified PullRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.PullRequest.verify|verify} messages.
3783 * @param message PullRequest message or plain object to encode
3784 * @param [writer] Writer to encode to
3785 * @returns Writer
3786 */
3787 public static encodeDelimited(message: google.pubsub.v1.IPullRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3788
3789 /**
3790 * Decodes a PullRequest message from the specified reader or buffer.
3791 * @param reader Reader or buffer to decode from
3792 * @param [length] Message length if known beforehand
3793 * @returns PullRequest
3794 * @throws {Error} If the payload is not a reader or valid buffer
3795 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3796 */
3797 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.PullRequest;
3798
3799 /**
3800 * Decodes a PullRequest message from the specified reader or buffer, length delimited.
3801 * @param reader Reader or buffer to decode from
3802 * @returns PullRequest
3803 * @throws {Error} If the payload is not a reader or valid buffer
3804 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3805 */
3806 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.PullRequest;
3807
3808 /**
3809 * Verifies a PullRequest message.
3810 * @param message Plain object to verify
3811 * @returns `null` if valid, otherwise the reason why it is not
3812 */
3813 public static verify(message: { [k: string]: any }): (string|null);
3814
3815 /**
3816 * Creates a PullRequest message from a plain object. Also converts values to their respective internal types.
3817 * @param object Plain object
3818 * @returns PullRequest
3819 */
3820 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.PullRequest;
3821
3822 /**
3823 * Creates a plain object from a PullRequest message. Also converts values to other types if specified.
3824 * @param message PullRequest
3825 * @param [options] Conversion options
3826 * @returns Plain object
3827 */
3828 public static toObject(message: google.pubsub.v1.PullRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
3829
3830 /**
3831 * Converts this PullRequest to JSON.
3832 * @returns JSON object
3833 */
3834 public toJSON(): { [k: string]: any };
3835 }
3836
3837 /** Properties of a PullResponse. */
3838 interface IPullResponse {
3839
3840 /** PullResponse receivedMessages */
3841 receivedMessages?: (google.pubsub.v1.IReceivedMessage[]|null);
3842 }
3843
3844 /** Represents a PullResponse. */
3845 class PullResponse implements IPullResponse {
3846
3847 /**
3848 * Constructs a new PullResponse.
3849 * @param [properties] Properties to set
3850 */
3851 constructor(properties?: google.pubsub.v1.IPullResponse);
3852
3853 /** PullResponse receivedMessages. */
3854 public receivedMessages: google.pubsub.v1.IReceivedMessage[];
3855
3856 /**
3857 * Creates a new PullResponse instance using the specified properties.
3858 * @param [properties] Properties to set
3859 * @returns PullResponse instance
3860 */
3861 public static create(properties?: google.pubsub.v1.IPullResponse): google.pubsub.v1.PullResponse;
3862
3863 /**
3864 * Encodes the specified PullResponse message. Does not implicitly {@link google.pubsub.v1.PullResponse.verify|verify} messages.
3865 * @param message PullResponse message or plain object to encode
3866 * @param [writer] Writer to encode to
3867 * @returns Writer
3868 */
3869 public static encode(message: google.pubsub.v1.IPullResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3870
3871 /**
3872 * Encodes the specified PullResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.PullResponse.verify|verify} messages.
3873 * @param message PullResponse message or plain object to encode
3874 * @param [writer] Writer to encode to
3875 * @returns Writer
3876 */
3877 public static encodeDelimited(message: google.pubsub.v1.IPullResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3878
3879 /**
3880 * Decodes a PullResponse message from the specified reader or buffer.
3881 * @param reader Reader or buffer to decode from
3882 * @param [length] Message length if known beforehand
3883 * @returns PullResponse
3884 * @throws {Error} If the payload is not a reader or valid buffer
3885 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3886 */
3887 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.PullResponse;
3888
3889 /**
3890 * Decodes a PullResponse message from the specified reader or buffer, length delimited.
3891 * @param reader Reader or buffer to decode from
3892 * @returns PullResponse
3893 * @throws {Error} If the payload is not a reader or valid buffer
3894 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3895 */
3896 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.PullResponse;
3897
3898 /**
3899 * Verifies a PullResponse message.
3900 * @param message Plain object to verify
3901 * @returns `null` if valid, otherwise the reason why it is not
3902 */
3903 public static verify(message: { [k: string]: any }): (string|null);
3904
3905 /**
3906 * Creates a PullResponse message from a plain object. Also converts values to their respective internal types.
3907 * @param object Plain object
3908 * @returns PullResponse
3909 */
3910 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.PullResponse;
3911
3912 /**
3913 * Creates a plain object from a PullResponse message. Also converts values to other types if specified.
3914 * @param message PullResponse
3915 * @param [options] Conversion options
3916 * @returns Plain object
3917 */
3918 public static toObject(message: google.pubsub.v1.PullResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
3919
3920 /**
3921 * Converts this PullResponse to JSON.
3922 * @returns JSON object
3923 */
3924 public toJSON(): { [k: string]: any };
3925 }
3926
3927 /** Properties of a ModifyAckDeadlineRequest. */
3928 interface IModifyAckDeadlineRequest {
3929
3930 /** ModifyAckDeadlineRequest subscription */
3931 subscription?: (string|null);
3932
3933 /** ModifyAckDeadlineRequest ackIds */
3934 ackIds?: (string[]|null);
3935
3936 /** ModifyAckDeadlineRequest ackDeadlineSeconds */
3937 ackDeadlineSeconds?: (number|null);
3938 }
3939
3940 /** Represents a ModifyAckDeadlineRequest. */
3941 class ModifyAckDeadlineRequest implements IModifyAckDeadlineRequest {
3942
3943 /**
3944 * Constructs a new ModifyAckDeadlineRequest.
3945 * @param [properties] Properties to set
3946 */
3947 constructor(properties?: google.pubsub.v1.IModifyAckDeadlineRequest);
3948
3949 /** ModifyAckDeadlineRequest subscription. */
3950 public subscription: string;
3951
3952 /** ModifyAckDeadlineRequest ackIds. */
3953 public ackIds: string[];
3954
3955 /** ModifyAckDeadlineRequest ackDeadlineSeconds. */
3956 public ackDeadlineSeconds: number;
3957
3958 /**
3959 * Creates a new ModifyAckDeadlineRequest instance using the specified properties.
3960 * @param [properties] Properties to set
3961 * @returns ModifyAckDeadlineRequest instance
3962 */
3963 public static create(properties?: google.pubsub.v1.IModifyAckDeadlineRequest): google.pubsub.v1.ModifyAckDeadlineRequest;
3964
3965 /**
3966 * Encodes the specified ModifyAckDeadlineRequest message. Does not implicitly {@link google.pubsub.v1.ModifyAckDeadlineRequest.verify|verify} messages.
3967 * @param message ModifyAckDeadlineRequest message or plain object to encode
3968 * @param [writer] Writer to encode to
3969 * @returns Writer
3970 */
3971 public static encode(message: google.pubsub.v1.IModifyAckDeadlineRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3972
3973 /**
3974 * Encodes the specified ModifyAckDeadlineRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.ModifyAckDeadlineRequest.verify|verify} messages.
3975 * @param message ModifyAckDeadlineRequest message or plain object to encode
3976 * @param [writer] Writer to encode to
3977 * @returns Writer
3978 */
3979 public static encodeDelimited(message: google.pubsub.v1.IModifyAckDeadlineRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3980
3981 /**
3982 * Decodes a ModifyAckDeadlineRequest message from the specified reader or buffer.
3983 * @param reader Reader or buffer to decode from
3984 * @param [length] Message length if known beforehand
3985 * @returns ModifyAckDeadlineRequest
3986 * @throws {Error} If the payload is not a reader or valid buffer
3987 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3988 */
3989 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ModifyAckDeadlineRequest;
3990
3991 /**
3992 * Decodes a ModifyAckDeadlineRequest message from the specified reader or buffer, length delimited.
3993 * @param reader Reader or buffer to decode from
3994 * @returns ModifyAckDeadlineRequest
3995 * @throws {Error} If the payload is not a reader or valid buffer
3996 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3997 */
3998 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ModifyAckDeadlineRequest;
3999
4000 /**
4001 * Verifies a ModifyAckDeadlineRequest message.
4002 * @param message Plain object to verify
4003 * @returns `null` if valid, otherwise the reason why it is not
4004 */
4005 public static verify(message: { [k: string]: any }): (string|null);
4006
4007 /**
4008 * Creates a ModifyAckDeadlineRequest message from a plain object. Also converts values to their respective internal types.
4009 * @param object Plain object
4010 * @returns ModifyAckDeadlineRequest
4011 */
4012 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ModifyAckDeadlineRequest;
4013
4014 /**
4015 * Creates a plain object from a ModifyAckDeadlineRequest message. Also converts values to other types if specified.
4016 * @param message ModifyAckDeadlineRequest
4017 * @param [options] Conversion options
4018 * @returns Plain object
4019 */
4020 public static toObject(message: google.pubsub.v1.ModifyAckDeadlineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
4021
4022 /**
4023 * Converts this ModifyAckDeadlineRequest to JSON.
4024 * @returns JSON object
4025 */
4026 public toJSON(): { [k: string]: any };
4027 }
4028
4029 /** Properties of an AcknowledgeRequest. */
4030 interface IAcknowledgeRequest {
4031
4032 /** AcknowledgeRequest subscription */
4033 subscription?: (string|null);
4034
4035 /** AcknowledgeRequest ackIds */
4036 ackIds?: (string[]|null);
4037 }
4038
4039 /** Represents an AcknowledgeRequest. */
4040 class AcknowledgeRequest implements IAcknowledgeRequest {
4041
4042 /**
4043 * Constructs a new AcknowledgeRequest.
4044 * @param [properties] Properties to set
4045 */
4046 constructor(properties?: google.pubsub.v1.IAcknowledgeRequest);
4047
4048 /** AcknowledgeRequest subscription. */
4049 public subscription: string;
4050
4051 /** AcknowledgeRequest ackIds. */
4052 public ackIds: string[];
4053
4054 /**
4055 * Creates a new AcknowledgeRequest instance using the specified properties.
4056 * @param [properties] Properties to set
4057 * @returns AcknowledgeRequest instance
4058 */
4059 public static create(properties?: google.pubsub.v1.IAcknowledgeRequest): google.pubsub.v1.AcknowledgeRequest;
4060
4061 /**
4062 * Encodes the specified AcknowledgeRequest message. Does not implicitly {@link google.pubsub.v1.AcknowledgeRequest.verify|verify} messages.
4063 * @param message AcknowledgeRequest message or plain object to encode
4064 * @param [writer] Writer to encode to
4065 * @returns Writer
4066 */
4067 public static encode(message: google.pubsub.v1.IAcknowledgeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4068
4069 /**
4070 * Encodes the specified AcknowledgeRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.AcknowledgeRequest.verify|verify} messages.
4071 * @param message AcknowledgeRequest message or plain object to encode
4072 * @param [writer] Writer to encode to
4073 * @returns Writer
4074 */
4075 public static encodeDelimited(message: google.pubsub.v1.IAcknowledgeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4076
4077 /**
4078 * Decodes an AcknowledgeRequest message from the specified reader or buffer.
4079 * @param reader Reader or buffer to decode from
4080 * @param [length] Message length if known beforehand
4081 * @returns AcknowledgeRequest
4082 * @throws {Error} If the payload is not a reader or valid buffer
4083 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4084 */
4085 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.AcknowledgeRequest;
4086
4087 /**
4088 * Decodes an AcknowledgeRequest message from the specified reader or buffer, length delimited.
4089 * @param reader Reader or buffer to decode from
4090 * @returns AcknowledgeRequest
4091 * @throws {Error} If the payload is not a reader or valid buffer
4092 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4093 */
4094 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.AcknowledgeRequest;
4095
4096 /**
4097 * Verifies an AcknowledgeRequest message.
4098 * @param message Plain object to verify
4099 * @returns `null` if valid, otherwise the reason why it is not
4100 */
4101 public static verify(message: { [k: string]: any }): (string|null);
4102
4103 /**
4104 * Creates an AcknowledgeRequest message from a plain object. Also converts values to their respective internal types.
4105 * @param object Plain object
4106 * @returns AcknowledgeRequest
4107 */
4108 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.AcknowledgeRequest;
4109
4110 /**
4111 * Creates a plain object from an AcknowledgeRequest message. Also converts values to other types if specified.
4112 * @param message AcknowledgeRequest
4113 * @param [options] Conversion options
4114 * @returns Plain object
4115 */
4116 public static toObject(message: google.pubsub.v1.AcknowledgeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
4117
4118 /**
4119 * Converts this AcknowledgeRequest to JSON.
4120 * @returns JSON object
4121 */
4122 public toJSON(): { [k: string]: any };
4123 }
4124
4125 /** Properties of a StreamingPullRequest. */
4126 interface IStreamingPullRequest {
4127
4128 /** StreamingPullRequest subscription */
4129 subscription?: (string|null);
4130
4131 /** StreamingPullRequest ackIds */
4132 ackIds?: (string[]|null);
4133
4134 /** StreamingPullRequest modifyDeadlineSeconds */
4135 modifyDeadlineSeconds?: (number[]|null);
4136
4137 /** StreamingPullRequest modifyDeadlineAckIds */
4138 modifyDeadlineAckIds?: (string[]|null);
4139
4140 /** StreamingPullRequest streamAckDeadlineSeconds */
4141 streamAckDeadlineSeconds?: (number|null);
4142
4143 /** StreamingPullRequest clientId */
4144 clientId?: (string|null);
4145
4146 /** StreamingPullRequest maxOutstandingMessages */
4147 maxOutstandingMessages?: (number|Long|string|null);
4148
4149 /** StreamingPullRequest maxOutstandingBytes */
4150 maxOutstandingBytes?: (number|Long|string|null);
4151 }
4152
4153 /** Represents a StreamingPullRequest. */
4154 class StreamingPullRequest implements IStreamingPullRequest {
4155
4156 /**
4157 * Constructs a new StreamingPullRequest.
4158 * @param [properties] Properties to set
4159 */
4160 constructor(properties?: google.pubsub.v1.IStreamingPullRequest);
4161
4162 /** StreamingPullRequest subscription. */
4163 public subscription: string;
4164
4165 /** StreamingPullRequest ackIds. */
4166 public ackIds: string[];
4167
4168 /** StreamingPullRequest modifyDeadlineSeconds. */
4169 public modifyDeadlineSeconds: number[];
4170
4171 /** StreamingPullRequest modifyDeadlineAckIds. */
4172 public modifyDeadlineAckIds: string[];
4173
4174 /** StreamingPullRequest streamAckDeadlineSeconds. */
4175 public streamAckDeadlineSeconds: number;
4176
4177 /** StreamingPullRequest clientId. */
4178 public clientId: string;
4179
4180 /** StreamingPullRequest maxOutstandingMessages. */
4181 public maxOutstandingMessages: (number|Long|string);
4182
4183 /** StreamingPullRequest maxOutstandingBytes. */
4184 public maxOutstandingBytes: (number|Long|string);
4185
4186 /**
4187 * Creates a new StreamingPullRequest instance using the specified properties.
4188 * @param [properties] Properties to set
4189 * @returns StreamingPullRequest instance
4190 */
4191 public static create(properties?: google.pubsub.v1.IStreamingPullRequest): google.pubsub.v1.StreamingPullRequest;
4192
4193 /**
4194 * Encodes the specified StreamingPullRequest message. Does not implicitly {@link google.pubsub.v1.StreamingPullRequest.verify|verify} messages.
4195 * @param message StreamingPullRequest message or plain object to encode
4196 * @param [writer] Writer to encode to
4197 * @returns Writer
4198 */
4199 public static encode(message: google.pubsub.v1.IStreamingPullRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4200
4201 /**
4202 * Encodes the specified StreamingPullRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.StreamingPullRequest.verify|verify} messages.
4203 * @param message StreamingPullRequest message or plain object to encode
4204 * @param [writer] Writer to encode to
4205 * @returns Writer
4206 */
4207 public static encodeDelimited(message: google.pubsub.v1.IStreamingPullRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4208
4209 /**
4210 * Decodes a StreamingPullRequest message from the specified reader or buffer.
4211 * @param reader Reader or buffer to decode from
4212 * @param [length] Message length if known beforehand
4213 * @returns StreamingPullRequest
4214 * @throws {Error} If the payload is not a reader or valid buffer
4215 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4216 */
4217 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.StreamingPullRequest;
4218
4219 /**
4220 * Decodes a StreamingPullRequest message from the specified reader or buffer, length delimited.
4221 * @param reader Reader or buffer to decode from
4222 * @returns StreamingPullRequest
4223 * @throws {Error} If the payload is not a reader or valid buffer
4224 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4225 */
4226 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.StreamingPullRequest;
4227
4228 /**
4229 * Verifies a StreamingPullRequest message.
4230 * @param message Plain object to verify
4231 * @returns `null` if valid, otherwise the reason why it is not
4232 */
4233 public static verify(message: { [k: string]: any }): (string|null);
4234
4235 /**
4236 * Creates a StreamingPullRequest message from a plain object. Also converts values to their respective internal types.
4237 * @param object Plain object
4238 * @returns StreamingPullRequest
4239 */
4240 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.StreamingPullRequest;
4241
4242 /**
4243 * Creates a plain object from a StreamingPullRequest message. Also converts values to other types if specified.
4244 * @param message StreamingPullRequest
4245 * @param [options] Conversion options
4246 * @returns Plain object
4247 */
4248 public static toObject(message: google.pubsub.v1.StreamingPullRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
4249
4250 /**
4251 * Converts this StreamingPullRequest to JSON.
4252 * @returns JSON object
4253 */
4254 public toJSON(): { [k: string]: any };
4255 }
4256
4257 /** Properties of a StreamingPullResponse. */
4258 interface IStreamingPullResponse {
4259
4260 /** StreamingPullResponse receivedMessages */
4261 receivedMessages?: (google.pubsub.v1.IReceivedMessage[]|null);
4262
4263 /** StreamingPullResponse acknowledgeConfirmation */
4264 acknowledgeConfirmation?: (google.pubsub.v1.StreamingPullResponse.IAcknowledgeConfirmation|null);
4265
4266 /** StreamingPullResponse modifyAckDeadlineConfirmation */
4267 modifyAckDeadlineConfirmation?: (google.pubsub.v1.StreamingPullResponse.IModifyAckDeadlineConfirmation|null);
4268
4269 /** StreamingPullResponse subscriptionProperties */
4270 subscriptionProperties?: (google.pubsub.v1.StreamingPullResponse.ISubscriptionProperties|null);
4271 }
4272
4273 /** Represents a StreamingPullResponse. */
4274 class StreamingPullResponse implements IStreamingPullResponse {
4275
4276 /**
4277 * Constructs a new StreamingPullResponse.
4278 * @param [properties] Properties to set
4279 */
4280 constructor(properties?: google.pubsub.v1.IStreamingPullResponse);
4281
4282 /** StreamingPullResponse receivedMessages. */
4283 public receivedMessages: google.pubsub.v1.IReceivedMessage[];
4284
4285 /** StreamingPullResponse acknowledgeConfirmation. */
4286 public acknowledgeConfirmation?: (google.pubsub.v1.StreamingPullResponse.IAcknowledgeConfirmation|null);
4287
4288 /** StreamingPullResponse modifyAckDeadlineConfirmation. */
4289 public modifyAckDeadlineConfirmation?: (google.pubsub.v1.StreamingPullResponse.IModifyAckDeadlineConfirmation|null);
4290
4291 /** StreamingPullResponse subscriptionProperties. */
4292 public subscriptionProperties?: (google.pubsub.v1.StreamingPullResponse.ISubscriptionProperties|null);
4293
4294 /**
4295 * Creates a new StreamingPullResponse instance using the specified properties.
4296 * @param [properties] Properties to set
4297 * @returns StreamingPullResponse instance
4298 */
4299 public static create(properties?: google.pubsub.v1.IStreamingPullResponse): google.pubsub.v1.StreamingPullResponse;
4300
4301 /**
4302 * Encodes the specified StreamingPullResponse message. Does not implicitly {@link google.pubsub.v1.StreamingPullResponse.verify|verify} messages.
4303 * @param message StreamingPullResponse message or plain object to encode
4304 * @param [writer] Writer to encode to
4305 * @returns Writer
4306 */
4307 public static encode(message: google.pubsub.v1.IStreamingPullResponse, writer?: $protobuf.Writer): $protobuf.Writer;
4308
4309 /**
4310 * Encodes the specified StreamingPullResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.StreamingPullResponse.verify|verify} messages.
4311 * @param message StreamingPullResponse message or plain object to encode
4312 * @param [writer] Writer to encode to
4313 * @returns Writer
4314 */
4315 public static encodeDelimited(message: google.pubsub.v1.IStreamingPullResponse, writer?: $protobuf.Writer): $protobuf.Writer;
4316
4317 /**
4318 * Decodes a StreamingPullResponse message from the specified reader or buffer.
4319 * @param reader Reader or buffer to decode from
4320 * @param [length] Message length if known beforehand
4321 * @returns StreamingPullResponse
4322 * @throws {Error} If the payload is not a reader or valid buffer
4323 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4324 */
4325 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.StreamingPullResponse;
4326
4327 /**
4328 * Decodes a StreamingPullResponse message from the specified reader or buffer, length delimited.
4329 * @param reader Reader or buffer to decode from
4330 * @returns StreamingPullResponse
4331 * @throws {Error} If the payload is not a reader or valid buffer
4332 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4333 */
4334 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.StreamingPullResponse;
4335
4336 /**
4337 * Verifies a StreamingPullResponse message.
4338 * @param message Plain object to verify
4339 * @returns `null` if valid, otherwise the reason why it is not
4340 */
4341 public static verify(message: { [k: string]: any }): (string|null);
4342
4343 /**
4344 * Creates a StreamingPullResponse message from a plain object. Also converts values to their respective internal types.
4345 * @param object Plain object
4346 * @returns StreamingPullResponse
4347 */
4348 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.StreamingPullResponse;
4349
4350 /**
4351 * Creates a plain object from a StreamingPullResponse message. Also converts values to other types if specified.
4352 * @param message StreamingPullResponse
4353 * @param [options] Conversion options
4354 * @returns Plain object
4355 */
4356 public static toObject(message: google.pubsub.v1.StreamingPullResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
4357
4358 /**
4359 * Converts this StreamingPullResponse to JSON.
4360 * @returns JSON object
4361 */
4362 public toJSON(): { [k: string]: any };
4363 }
4364
4365 namespace StreamingPullResponse {
4366
4367 /** Properties of an AcknowledgeConfirmation. */
4368 interface IAcknowledgeConfirmation {
4369
4370 /** AcknowledgeConfirmation ackIds */
4371 ackIds?: (string[]|null);
4372
4373 /** AcknowledgeConfirmation invalidAckIds */
4374 invalidAckIds?: (string[]|null);
4375
4376 /** AcknowledgeConfirmation unorderedAckIds */
4377 unorderedAckIds?: (string[]|null);
4378 }
4379
4380 /** Represents an AcknowledgeConfirmation. */
4381 class AcknowledgeConfirmation implements IAcknowledgeConfirmation {
4382
4383 /**
4384 * Constructs a new AcknowledgeConfirmation.
4385 * @param [properties] Properties to set
4386 */
4387 constructor(properties?: google.pubsub.v1.StreamingPullResponse.IAcknowledgeConfirmation);
4388
4389 /** AcknowledgeConfirmation ackIds. */
4390 public ackIds: string[];
4391
4392 /** AcknowledgeConfirmation invalidAckIds. */
4393 public invalidAckIds: string[];
4394
4395 /** AcknowledgeConfirmation unorderedAckIds. */
4396 public unorderedAckIds: string[];
4397
4398 /**
4399 * Creates a new AcknowledgeConfirmation instance using the specified properties.
4400 * @param [properties] Properties to set
4401 * @returns AcknowledgeConfirmation instance
4402 */
4403 public static create(properties?: google.pubsub.v1.StreamingPullResponse.IAcknowledgeConfirmation): google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation;
4404
4405 /**
4406 * Encodes the specified AcknowledgeConfirmation message. Does not implicitly {@link google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.verify|verify} messages.
4407 * @param message AcknowledgeConfirmation message or plain object to encode
4408 * @param [writer] Writer to encode to
4409 * @returns Writer
4410 */
4411 public static encode(message: google.pubsub.v1.StreamingPullResponse.IAcknowledgeConfirmation, writer?: $protobuf.Writer): $protobuf.Writer;
4412
4413 /**
4414 * Encodes the specified AcknowledgeConfirmation message, length delimited. Does not implicitly {@link google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.verify|verify} messages.
4415 * @param message AcknowledgeConfirmation message or plain object to encode
4416 * @param [writer] Writer to encode to
4417 * @returns Writer
4418 */
4419 public static encodeDelimited(message: google.pubsub.v1.StreamingPullResponse.IAcknowledgeConfirmation, writer?: $protobuf.Writer): $protobuf.Writer;
4420
4421 /**
4422 * Decodes an AcknowledgeConfirmation message from the specified reader or buffer.
4423 * @param reader Reader or buffer to decode from
4424 * @param [length] Message length if known beforehand
4425 * @returns AcknowledgeConfirmation
4426 * @throws {Error} If the payload is not a reader or valid buffer
4427 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4428 */
4429 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation;
4430
4431 /**
4432 * Decodes an AcknowledgeConfirmation message from the specified reader or buffer, length delimited.
4433 * @param reader Reader or buffer to decode from
4434 * @returns AcknowledgeConfirmation
4435 * @throws {Error} If the payload is not a reader or valid buffer
4436 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4437 */
4438 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation;
4439
4440 /**
4441 * Verifies an AcknowledgeConfirmation message.
4442 * @param message Plain object to verify
4443 * @returns `null` if valid, otherwise the reason why it is not
4444 */
4445 public static verify(message: { [k: string]: any }): (string|null);
4446
4447 /**
4448 * Creates an AcknowledgeConfirmation message from a plain object. Also converts values to their respective internal types.
4449 * @param object Plain object
4450 * @returns AcknowledgeConfirmation
4451 */
4452 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation;
4453
4454 /**
4455 * Creates a plain object from an AcknowledgeConfirmation message. Also converts values to other types if specified.
4456 * @param message AcknowledgeConfirmation
4457 * @param [options] Conversion options
4458 * @returns Plain object
4459 */
4460 public static toObject(message: google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation, options?: $protobuf.IConversionOptions): { [k: string]: any };
4461
4462 /**
4463 * Converts this AcknowledgeConfirmation to JSON.
4464 * @returns JSON object
4465 */
4466 public toJSON(): { [k: string]: any };
4467 }
4468
4469 /** Properties of a ModifyAckDeadlineConfirmation. */
4470 interface IModifyAckDeadlineConfirmation {
4471
4472 /** ModifyAckDeadlineConfirmation ackIds */
4473 ackIds?: (string[]|null);
4474
4475 /** ModifyAckDeadlineConfirmation invalidAckIds */
4476 invalidAckIds?: (string[]|null);
4477 }
4478
4479 /** Represents a ModifyAckDeadlineConfirmation. */
4480 class ModifyAckDeadlineConfirmation implements IModifyAckDeadlineConfirmation {
4481
4482 /**
4483 * Constructs a new ModifyAckDeadlineConfirmation.
4484 * @param [properties] Properties to set
4485 */
4486 constructor(properties?: google.pubsub.v1.StreamingPullResponse.IModifyAckDeadlineConfirmation);
4487
4488 /** ModifyAckDeadlineConfirmation ackIds. */
4489 public ackIds: string[];
4490
4491 /** ModifyAckDeadlineConfirmation invalidAckIds. */
4492 public invalidAckIds: string[];
4493
4494 /**
4495 * Creates a new ModifyAckDeadlineConfirmation instance using the specified properties.
4496 * @param [properties] Properties to set
4497 * @returns ModifyAckDeadlineConfirmation instance
4498 */
4499 public static create(properties?: google.pubsub.v1.StreamingPullResponse.IModifyAckDeadlineConfirmation): google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation;
4500
4501 /**
4502 * Encodes the specified ModifyAckDeadlineConfirmation message. Does not implicitly {@link google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.verify|verify} messages.
4503 * @param message ModifyAckDeadlineConfirmation message or plain object to encode
4504 * @param [writer] Writer to encode to
4505 * @returns Writer
4506 */
4507 public static encode(message: google.pubsub.v1.StreamingPullResponse.IModifyAckDeadlineConfirmation, writer?: $protobuf.Writer): $protobuf.Writer;
4508
4509 /**
4510 * Encodes the specified ModifyAckDeadlineConfirmation message, length delimited. Does not implicitly {@link google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.verify|verify} messages.
4511 * @param message ModifyAckDeadlineConfirmation message or plain object to encode
4512 * @param [writer] Writer to encode to
4513 * @returns Writer
4514 */
4515 public static encodeDelimited(message: google.pubsub.v1.StreamingPullResponse.IModifyAckDeadlineConfirmation, writer?: $protobuf.Writer): $protobuf.Writer;
4516
4517 /**
4518 * Decodes a ModifyAckDeadlineConfirmation message from the specified reader or buffer.
4519 * @param reader Reader or buffer to decode from
4520 * @param [length] Message length if known beforehand
4521 * @returns ModifyAckDeadlineConfirmation
4522 * @throws {Error} If the payload is not a reader or valid buffer
4523 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4524 */
4525 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation;
4526
4527 /**
4528 * Decodes a ModifyAckDeadlineConfirmation message from the specified reader or buffer, length delimited.
4529 * @param reader Reader or buffer to decode from
4530 * @returns ModifyAckDeadlineConfirmation
4531 * @throws {Error} If the payload is not a reader or valid buffer
4532 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4533 */
4534 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation;
4535
4536 /**
4537 * Verifies a ModifyAckDeadlineConfirmation message.
4538 * @param message Plain object to verify
4539 * @returns `null` if valid, otherwise the reason why it is not
4540 */
4541 public static verify(message: { [k: string]: any }): (string|null);
4542
4543 /**
4544 * Creates a ModifyAckDeadlineConfirmation message from a plain object. Also converts values to their respective internal types.
4545 * @param object Plain object
4546 * @returns ModifyAckDeadlineConfirmation
4547 */
4548 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation;
4549
4550 /**
4551 * Creates a plain object from a ModifyAckDeadlineConfirmation message. Also converts values to other types if specified.
4552 * @param message ModifyAckDeadlineConfirmation
4553 * @param [options] Conversion options
4554 * @returns Plain object
4555 */
4556 public static toObject(message: google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation, options?: $protobuf.IConversionOptions): { [k: string]: any };
4557
4558 /**
4559 * Converts this ModifyAckDeadlineConfirmation to JSON.
4560 * @returns JSON object
4561 */
4562 public toJSON(): { [k: string]: any };
4563 }
4564
4565 /** Properties of a SubscriptionProperties. */
4566 interface ISubscriptionProperties {
4567
4568 /** SubscriptionProperties exactlyOnceDeliveryEnabled */
4569 exactlyOnceDeliveryEnabled?: (boolean|null);
4570
4571 /** SubscriptionProperties messageOrderingEnabled */
4572 messageOrderingEnabled?: (boolean|null);
4573 }
4574
4575 /** Represents a SubscriptionProperties. */
4576 class SubscriptionProperties implements ISubscriptionProperties {
4577
4578 /**
4579 * Constructs a new SubscriptionProperties.
4580 * @param [properties] Properties to set
4581 */
4582 constructor(properties?: google.pubsub.v1.StreamingPullResponse.ISubscriptionProperties);
4583
4584 /** SubscriptionProperties exactlyOnceDeliveryEnabled. */
4585 public exactlyOnceDeliveryEnabled: boolean;
4586
4587 /** SubscriptionProperties messageOrderingEnabled. */
4588 public messageOrderingEnabled: boolean;
4589
4590 /**
4591 * Creates a new SubscriptionProperties instance using the specified properties.
4592 * @param [properties] Properties to set
4593 * @returns SubscriptionProperties instance
4594 */
4595 public static create(properties?: google.pubsub.v1.StreamingPullResponse.ISubscriptionProperties): google.pubsub.v1.StreamingPullResponse.SubscriptionProperties;
4596
4597 /**
4598 * Encodes the specified SubscriptionProperties message. Does not implicitly {@link google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.verify|verify} messages.
4599 * @param message SubscriptionProperties message or plain object to encode
4600 * @param [writer] Writer to encode to
4601 * @returns Writer
4602 */
4603 public static encode(message: google.pubsub.v1.StreamingPullResponse.ISubscriptionProperties, writer?: $protobuf.Writer): $protobuf.Writer;
4604
4605 /**
4606 * Encodes the specified SubscriptionProperties message, length delimited. Does not implicitly {@link google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.verify|verify} messages.
4607 * @param message SubscriptionProperties message or plain object to encode
4608 * @param [writer] Writer to encode to
4609 * @returns Writer
4610 */
4611 public static encodeDelimited(message: google.pubsub.v1.StreamingPullResponse.ISubscriptionProperties, writer?: $protobuf.Writer): $protobuf.Writer;
4612
4613 /**
4614 * Decodes a SubscriptionProperties message from the specified reader or buffer.
4615 * @param reader Reader or buffer to decode from
4616 * @param [length] Message length if known beforehand
4617 * @returns SubscriptionProperties
4618 * @throws {Error} If the payload is not a reader or valid buffer
4619 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4620 */
4621 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.StreamingPullResponse.SubscriptionProperties;
4622
4623 /**
4624 * Decodes a SubscriptionProperties message from the specified reader or buffer, length delimited.
4625 * @param reader Reader or buffer to decode from
4626 * @returns SubscriptionProperties
4627 * @throws {Error} If the payload is not a reader or valid buffer
4628 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4629 */
4630 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.StreamingPullResponse.SubscriptionProperties;
4631
4632 /**
4633 * Verifies a SubscriptionProperties message.
4634 * @param message Plain object to verify
4635 * @returns `null` if valid, otherwise the reason why it is not
4636 */
4637 public static verify(message: { [k: string]: any }): (string|null);
4638
4639 /**
4640 * Creates a SubscriptionProperties message from a plain object. Also converts values to their respective internal types.
4641 * @param object Plain object
4642 * @returns SubscriptionProperties
4643 */
4644 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.StreamingPullResponse.SubscriptionProperties;
4645
4646 /**
4647 * Creates a plain object from a SubscriptionProperties message. Also converts values to other types if specified.
4648 * @param message SubscriptionProperties
4649 * @param [options] Conversion options
4650 * @returns Plain object
4651 */
4652 public static toObject(message: google.pubsub.v1.StreamingPullResponse.SubscriptionProperties, options?: $protobuf.IConversionOptions): { [k: string]: any };
4653
4654 /**
4655 * Converts this SubscriptionProperties to JSON.
4656 * @returns JSON object
4657 */
4658 public toJSON(): { [k: string]: any };
4659 }
4660 }
4661
4662 /** Properties of a CreateSnapshotRequest. */
4663 interface ICreateSnapshotRequest {
4664
4665 /** CreateSnapshotRequest name */
4666 name?: (string|null);
4667
4668 /** CreateSnapshotRequest subscription */
4669 subscription?: (string|null);
4670
4671 /** CreateSnapshotRequest labels */
4672 labels?: ({ [k: string]: string }|null);
4673 }
4674
4675 /** Represents a CreateSnapshotRequest. */
4676 class CreateSnapshotRequest implements ICreateSnapshotRequest {
4677
4678 /**
4679 * Constructs a new CreateSnapshotRequest.
4680 * @param [properties] Properties to set
4681 */
4682 constructor(properties?: google.pubsub.v1.ICreateSnapshotRequest);
4683
4684 /** CreateSnapshotRequest name. */
4685 public name: string;
4686
4687 /** CreateSnapshotRequest subscription. */
4688 public subscription: string;
4689
4690 /** CreateSnapshotRequest labels. */
4691 public labels: { [k: string]: string };
4692
4693 /**
4694 * Creates a new CreateSnapshotRequest instance using the specified properties.
4695 * @param [properties] Properties to set
4696 * @returns CreateSnapshotRequest instance
4697 */
4698 public static create(properties?: google.pubsub.v1.ICreateSnapshotRequest): google.pubsub.v1.CreateSnapshotRequest;
4699
4700 /**
4701 * Encodes the specified CreateSnapshotRequest message. Does not implicitly {@link google.pubsub.v1.CreateSnapshotRequest.verify|verify} messages.
4702 * @param message CreateSnapshotRequest message or plain object to encode
4703 * @param [writer] Writer to encode to
4704 * @returns Writer
4705 */
4706 public static encode(message: google.pubsub.v1.ICreateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4707
4708 /**
4709 * Encodes the specified CreateSnapshotRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.CreateSnapshotRequest.verify|verify} messages.
4710 * @param message CreateSnapshotRequest message or plain object to encode
4711 * @param [writer] Writer to encode to
4712 * @returns Writer
4713 */
4714 public static encodeDelimited(message: google.pubsub.v1.ICreateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4715
4716 /**
4717 * Decodes a CreateSnapshotRequest message from the specified reader or buffer.
4718 * @param reader Reader or buffer to decode from
4719 * @param [length] Message length if known beforehand
4720 * @returns CreateSnapshotRequest
4721 * @throws {Error} If the payload is not a reader or valid buffer
4722 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4723 */
4724 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.CreateSnapshotRequest;
4725
4726 /**
4727 * Decodes a CreateSnapshotRequest message from the specified reader or buffer, length delimited.
4728 * @param reader Reader or buffer to decode from
4729 * @returns CreateSnapshotRequest
4730 * @throws {Error} If the payload is not a reader or valid buffer
4731 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4732 */
4733 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.CreateSnapshotRequest;
4734
4735 /**
4736 * Verifies a CreateSnapshotRequest message.
4737 * @param message Plain object to verify
4738 * @returns `null` if valid, otherwise the reason why it is not
4739 */
4740 public static verify(message: { [k: string]: any }): (string|null);
4741
4742 /**
4743 * Creates a CreateSnapshotRequest message from a plain object. Also converts values to their respective internal types.
4744 * @param object Plain object
4745 * @returns CreateSnapshotRequest
4746 */
4747 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.CreateSnapshotRequest;
4748
4749 /**
4750 * Creates a plain object from a CreateSnapshotRequest message. Also converts values to other types if specified.
4751 * @param message CreateSnapshotRequest
4752 * @param [options] Conversion options
4753 * @returns Plain object
4754 */
4755 public static toObject(message: google.pubsub.v1.CreateSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
4756
4757 /**
4758 * Converts this CreateSnapshotRequest to JSON.
4759 * @returns JSON object
4760 */
4761 public toJSON(): { [k: string]: any };
4762 }
4763
4764 /** Properties of an UpdateSnapshotRequest. */
4765 interface IUpdateSnapshotRequest {
4766
4767 /** UpdateSnapshotRequest snapshot */
4768 snapshot?: (google.pubsub.v1.ISnapshot|null);
4769
4770 /** UpdateSnapshotRequest updateMask */
4771 updateMask?: (google.protobuf.IFieldMask|null);
4772 }
4773
4774 /** Represents an UpdateSnapshotRequest. */
4775 class UpdateSnapshotRequest implements IUpdateSnapshotRequest {
4776
4777 /**
4778 * Constructs a new UpdateSnapshotRequest.
4779 * @param [properties] Properties to set
4780 */
4781 constructor(properties?: google.pubsub.v1.IUpdateSnapshotRequest);
4782
4783 /** UpdateSnapshotRequest snapshot. */
4784 public snapshot?: (google.pubsub.v1.ISnapshot|null);
4785
4786 /** UpdateSnapshotRequest updateMask. */
4787 public updateMask?: (google.protobuf.IFieldMask|null);
4788
4789 /**
4790 * Creates a new UpdateSnapshotRequest instance using the specified properties.
4791 * @param [properties] Properties to set
4792 * @returns UpdateSnapshotRequest instance
4793 */
4794 public static create(properties?: google.pubsub.v1.IUpdateSnapshotRequest): google.pubsub.v1.UpdateSnapshotRequest;
4795
4796 /**
4797 * Encodes the specified UpdateSnapshotRequest message. Does not implicitly {@link google.pubsub.v1.UpdateSnapshotRequest.verify|verify} messages.
4798 * @param message UpdateSnapshotRequest message or plain object to encode
4799 * @param [writer] Writer to encode to
4800 * @returns Writer
4801 */
4802 public static encode(message: google.pubsub.v1.IUpdateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4803
4804 /**
4805 * Encodes the specified UpdateSnapshotRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.UpdateSnapshotRequest.verify|verify} messages.
4806 * @param message UpdateSnapshotRequest message or plain object to encode
4807 * @param [writer] Writer to encode to
4808 * @returns Writer
4809 */
4810 public static encodeDelimited(message: google.pubsub.v1.IUpdateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4811
4812 /**
4813 * Decodes an UpdateSnapshotRequest message from the specified reader or buffer.
4814 * @param reader Reader or buffer to decode from
4815 * @param [length] Message length if known beforehand
4816 * @returns UpdateSnapshotRequest
4817 * @throws {Error} If the payload is not a reader or valid buffer
4818 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4819 */
4820 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.UpdateSnapshotRequest;
4821
4822 /**
4823 * Decodes an UpdateSnapshotRequest message from the specified reader or buffer, length delimited.
4824 * @param reader Reader or buffer to decode from
4825 * @returns UpdateSnapshotRequest
4826 * @throws {Error} If the payload is not a reader or valid buffer
4827 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4828 */
4829 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.UpdateSnapshotRequest;
4830
4831 /**
4832 * Verifies an UpdateSnapshotRequest message.
4833 * @param message Plain object to verify
4834 * @returns `null` if valid, otherwise the reason why it is not
4835 */
4836 public static verify(message: { [k: string]: any }): (string|null);
4837
4838 /**
4839 * Creates an UpdateSnapshotRequest message from a plain object. Also converts values to their respective internal types.
4840 * @param object Plain object
4841 * @returns UpdateSnapshotRequest
4842 */
4843 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.UpdateSnapshotRequest;
4844
4845 /**
4846 * Creates a plain object from an UpdateSnapshotRequest message. Also converts values to other types if specified.
4847 * @param message UpdateSnapshotRequest
4848 * @param [options] Conversion options
4849 * @returns Plain object
4850 */
4851 public static toObject(message: google.pubsub.v1.UpdateSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
4852
4853 /**
4854 * Converts this UpdateSnapshotRequest to JSON.
4855 * @returns JSON object
4856 */
4857 public toJSON(): { [k: string]: any };
4858 }
4859
4860 /** Properties of a Snapshot. */
4861 interface ISnapshot {
4862
4863 /** Snapshot name */
4864 name?: (string|null);
4865
4866 /** Snapshot topic */
4867 topic?: (string|null);
4868
4869 /** Snapshot expireTime */
4870 expireTime?: (google.protobuf.ITimestamp|null);
4871
4872 /** Snapshot labels */
4873 labels?: ({ [k: string]: string }|null);
4874 }
4875
4876 /** Represents a Snapshot. */
4877 class Snapshot implements ISnapshot {
4878
4879 /**
4880 * Constructs a new Snapshot.
4881 * @param [properties] Properties to set
4882 */
4883 constructor(properties?: google.pubsub.v1.ISnapshot);
4884
4885 /** Snapshot name. */
4886 public name: string;
4887
4888 /** Snapshot topic. */
4889 public topic: string;
4890
4891 /** Snapshot expireTime. */
4892 public expireTime?: (google.protobuf.ITimestamp|null);
4893
4894 /** Snapshot labels. */
4895 public labels: { [k: string]: string };
4896
4897 /**
4898 * Creates a new Snapshot instance using the specified properties.
4899 * @param [properties] Properties to set
4900 * @returns Snapshot instance
4901 */
4902 public static create(properties?: google.pubsub.v1.ISnapshot): google.pubsub.v1.Snapshot;
4903
4904 /**
4905 * Encodes the specified Snapshot message. Does not implicitly {@link google.pubsub.v1.Snapshot.verify|verify} messages.
4906 * @param message Snapshot message or plain object to encode
4907 * @param [writer] Writer to encode to
4908 * @returns Writer
4909 */
4910 public static encode(message: google.pubsub.v1.ISnapshot, writer?: $protobuf.Writer): $protobuf.Writer;
4911
4912 /**
4913 * Encodes the specified Snapshot message, length delimited. Does not implicitly {@link google.pubsub.v1.Snapshot.verify|verify} messages.
4914 * @param message Snapshot message or plain object to encode
4915 * @param [writer] Writer to encode to
4916 * @returns Writer
4917 */
4918 public static encodeDelimited(message: google.pubsub.v1.ISnapshot, writer?: $protobuf.Writer): $protobuf.Writer;
4919
4920 /**
4921 * Decodes a Snapshot message from the specified reader or buffer.
4922 * @param reader Reader or buffer to decode from
4923 * @param [length] Message length if known beforehand
4924 * @returns Snapshot
4925 * @throws {Error} If the payload is not a reader or valid buffer
4926 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4927 */
4928 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.Snapshot;
4929
4930 /**
4931 * Decodes a Snapshot message from the specified reader or buffer, length delimited.
4932 * @param reader Reader or buffer to decode from
4933 * @returns Snapshot
4934 * @throws {Error} If the payload is not a reader or valid buffer
4935 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4936 */
4937 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.Snapshot;
4938
4939 /**
4940 * Verifies a Snapshot message.
4941 * @param message Plain object to verify
4942 * @returns `null` if valid, otherwise the reason why it is not
4943 */
4944 public static verify(message: { [k: string]: any }): (string|null);
4945
4946 /**
4947 * Creates a Snapshot message from a plain object. Also converts values to their respective internal types.
4948 * @param object Plain object
4949 * @returns Snapshot
4950 */
4951 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.Snapshot;
4952
4953 /**
4954 * Creates a plain object from a Snapshot message. Also converts values to other types if specified.
4955 * @param message Snapshot
4956 * @param [options] Conversion options
4957 * @returns Plain object
4958 */
4959 public static toObject(message: google.pubsub.v1.Snapshot, options?: $protobuf.IConversionOptions): { [k: string]: any };
4960
4961 /**
4962 * Converts this Snapshot to JSON.
4963 * @returns JSON object
4964 */
4965 public toJSON(): { [k: string]: any };
4966 }
4967
4968 /** Properties of a GetSnapshotRequest. */
4969 interface IGetSnapshotRequest {
4970
4971 /** GetSnapshotRequest snapshot */
4972 snapshot?: (string|null);
4973 }
4974
4975 /** Represents a GetSnapshotRequest. */
4976 class GetSnapshotRequest implements IGetSnapshotRequest {
4977
4978 /**
4979 * Constructs a new GetSnapshotRequest.
4980 * @param [properties] Properties to set
4981 */
4982 constructor(properties?: google.pubsub.v1.IGetSnapshotRequest);
4983
4984 /** GetSnapshotRequest snapshot. */
4985 public snapshot: string;
4986
4987 /**
4988 * Creates a new GetSnapshotRequest instance using the specified properties.
4989 * @param [properties] Properties to set
4990 * @returns GetSnapshotRequest instance
4991 */
4992 public static create(properties?: google.pubsub.v1.IGetSnapshotRequest): google.pubsub.v1.GetSnapshotRequest;
4993
4994 /**
4995 * Encodes the specified GetSnapshotRequest message. Does not implicitly {@link google.pubsub.v1.GetSnapshotRequest.verify|verify} messages.
4996 * @param message GetSnapshotRequest message or plain object to encode
4997 * @param [writer] Writer to encode to
4998 * @returns Writer
4999 */
5000 public static encode(message: google.pubsub.v1.IGetSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5001
5002 /**
5003 * Encodes the specified GetSnapshotRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.GetSnapshotRequest.verify|verify} messages.
5004 * @param message GetSnapshotRequest message or plain object to encode
5005 * @param [writer] Writer to encode to
5006 * @returns Writer
5007 */
5008 public static encodeDelimited(message: google.pubsub.v1.IGetSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5009
5010 /**
5011 * Decodes a GetSnapshotRequest message from the specified reader or buffer.
5012 * @param reader Reader or buffer to decode from
5013 * @param [length] Message length if known beforehand
5014 * @returns GetSnapshotRequest
5015 * @throws {Error} If the payload is not a reader or valid buffer
5016 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5017 */
5018 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.GetSnapshotRequest;
5019
5020 /**
5021 * Decodes a GetSnapshotRequest message from the specified reader or buffer, length delimited.
5022 * @param reader Reader or buffer to decode from
5023 * @returns GetSnapshotRequest
5024 * @throws {Error} If the payload is not a reader or valid buffer
5025 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5026 */
5027 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.GetSnapshotRequest;
5028
5029 /**
5030 * Verifies a GetSnapshotRequest message.
5031 * @param message Plain object to verify
5032 * @returns `null` if valid, otherwise the reason why it is not
5033 */
5034 public static verify(message: { [k: string]: any }): (string|null);
5035
5036 /**
5037 * Creates a GetSnapshotRequest message from a plain object. Also converts values to their respective internal types.
5038 * @param object Plain object
5039 * @returns GetSnapshotRequest
5040 */
5041 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.GetSnapshotRequest;
5042
5043 /**
5044 * Creates a plain object from a GetSnapshotRequest message. Also converts values to other types if specified.
5045 * @param message GetSnapshotRequest
5046 * @param [options] Conversion options
5047 * @returns Plain object
5048 */
5049 public static toObject(message: google.pubsub.v1.GetSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5050
5051 /**
5052 * Converts this GetSnapshotRequest to JSON.
5053 * @returns JSON object
5054 */
5055 public toJSON(): { [k: string]: any };
5056 }
5057
5058 /** Properties of a ListSnapshotsRequest. */
5059 interface IListSnapshotsRequest {
5060
5061 /** ListSnapshotsRequest project */
5062 project?: (string|null);
5063
5064 /** ListSnapshotsRequest pageSize */
5065 pageSize?: (number|null);
5066
5067 /** ListSnapshotsRequest pageToken */
5068 pageToken?: (string|null);
5069 }
5070
5071 /** Represents a ListSnapshotsRequest. */
5072 class ListSnapshotsRequest implements IListSnapshotsRequest {
5073
5074 /**
5075 * Constructs a new ListSnapshotsRequest.
5076 * @param [properties] Properties to set
5077 */
5078 constructor(properties?: google.pubsub.v1.IListSnapshotsRequest);
5079
5080 /** ListSnapshotsRequest project. */
5081 public project: string;
5082
5083 /** ListSnapshotsRequest pageSize. */
5084 public pageSize: number;
5085
5086 /** ListSnapshotsRequest pageToken. */
5087 public pageToken: string;
5088
5089 /**
5090 * Creates a new ListSnapshotsRequest instance using the specified properties.
5091 * @param [properties] Properties to set
5092 * @returns ListSnapshotsRequest instance
5093 */
5094 public static create(properties?: google.pubsub.v1.IListSnapshotsRequest): google.pubsub.v1.ListSnapshotsRequest;
5095
5096 /**
5097 * Encodes the specified ListSnapshotsRequest message. Does not implicitly {@link google.pubsub.v1.ListSnapshotsRequest.verify|verify} messages.
5098 * @param message ListSnapshotsRequest message or plain object to encode
5099 * @param [writer] Writer to encode to
5100 * @returns Writer
5101 */
5102 public static encode(message: google.pubsub.v1.IListSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5103
5104 /**
5105 * Encodes the specified ListSnapshotsRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.ListSnapshotsRequest.verify|verify} messages.
5106 * @param message ListSnapshotsRequest message or plain object to encode
5107 * @param [writer] Writer to encode to
5108 * @returns Writer
5109 */
5110 public static encodeDelimited(message: google.pubsub.v1.IListSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5111
5112 /**
5113 * Decodes a ListSnapshotsRequest message from the specified reader or buffer.
5114 * @param reader Reader or buffer to decode from
5115 * @param [length] Message length if known beforehand
5116 * @returns ListSnapshotsRequest
5117 * @throws {Error} If the payload is not a reader or valid buffer
5118 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5119 */
5120 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ListSnapshotsRequest;
5121
5122 /**
5123 * Decodes a ListSnapshotsRequest message from the specified reader or buffer, length delimited.
5124 * @param reader Reader or buffer to decode from
5125 * @returns ListSnapshotsRequest
5126 * @throws {Error} If the payload is not a reader or valid buffer
5127 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5128 */
5129 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ListSnapshotsRequest;
5130
5131 /**
5132 * Verifies a ListSnapshotsRequest message.
5133 * @param message Plain object to verify
5134 * @returns `null` if valid, otherwise the reason why it is not
5135 */
5136 public static verify(message: { [k: string]: any }): (string|null);
5137
5138 /**
5139 * Creates a ListSnapshotsRequest message from a plain object. Also converts values to their respective internal types.
5140 * @param object Plain object
5141 * @returns ListSnapshotsRequest
5142 */
5143 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ListSnapshotsRequest;
5144
5145 /**
5146 * Creates a plain object from a ListSnapshotsRequest message. Also converts values to other types if specified.
5147 * @param message ListSnapshotsRequest
5148 * @param [options] Conversion options
5149 * @returns Plain object
5150 */
5151 public static toObject(message: google.pubsub.v1.ListSnapshotsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5152
5153 /**
5154 * Converts this ListSnapshotsRequest to JSON.
5155 * @returns JSON object
5156 */
5157 public toJSON(): { [k: string]: any };
5158 }
5159
5160 /** Properties of a ListSnapshotsResponse. */
5161 interface IListSnapshotsResponse {
5162
5163 /** ListSnapshotsResponse snapshots */
5164 snapshots?: (google.pubsub.v1.ISnapshot[]|null);
5165
5166 /** ListSnapshotsResponse nextPageToken */
5167 nextPageToken?: (string|null);
5168 }
5169
5170 /** Represents a ListSnapshotsResponse. */
5171 class ListSnapshotsResponse implements IListSnapshotsResponse {
5172
5173 /**
5174 * Constructs a new ListSnapshotsResponse.
5175 * @param [properties] Properties to set
5176 */
5177 constructor(properties?: google.pubsub.v1.IListSnapshotsResponse);
5178
5179 /** ListSnapshotsResponse snapshots. */
5180 public snapshots: google.pubsub.v1.ISnapshot[];
5181
5182 /** ListSnapshotsResponse nextPageToken. */
5183 public nextPageToken: string;
5184
5185 /**
5186 * Creates a new ListSnapshotsResponse instance using the specified properties.
5187 * @param [properties] Properties to set
5188 * @returns ListSnapshotsResponse instance
5189 */
5190 public static create(properties?: google.pubsub.v1.IListSnapshotsResponse): google.pubsub.v1.ListSnapshotsResponse;
5191
5192 /**
5193 * Encodes the specified ListSnapshotsResponse message. Does not implicitly {@link google.pubsub.v1.ListSnapshotsResponse.verify|verify} messages.
5194 * @param message ListSnapshotsResponse message or plain object to encode
5195 * @param [writer] Writer to encode to
5196 * @returns Writer
5197 */
5198 public static encode(message: google.pubsub.v1.IListSnapshotsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
5199
5200 /**
5201 * Encodes the specified ListSnapshotsResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.ListSnapshotsResponse.verify|verify} messages.
5202 * @param message ListSnapshotsResponse message or plain object to encode
5203 * @param [writer] Writer to encode to
5204 * @returns Writer
5205 */
5206 public static encodeDelimited(message: google.pubsub.v1.IListSnapshotsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
5207
5208 /**
5209 * Decodes a ListSnapshotsResponse message from the specified reader or buffer.
5210 * @param reader Reader or buffer to decode from
5211 * @param [length] Message length if known beforehand
5212 * @returns ListSnapshotsResponse
5213 * @throws {Error} If the payload is not a reader or valid buffer
5214 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5215 */
5216 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ListSnapshotsResponse;
5217
5218 /**
5219 * Decodes a ListSnapshotsResponse message from the specified reader or buffer, length delimited.
5220 * @param reader Reader or buffer to decode from
5221 * @returns ListSnapshotsResponse
5222 * @throws {Error} If the payload is not a reader or valid buffer
5223 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5224 */
5225 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ListSnapshotsResponse;
5226
5227 /**
5228 * Verifies a ListSnapshotsResponse message.
5229 * @param message Plain object to verify
5230 * @returns `null` if valid, otherwise the reason why it is not
5231 */
5232 public static verify(message: { [k: string]: any }): (string|null);
5233
5234 /**
5235 * Creates a ListSnapshotsResponse message from a plain object. Also converts values to their respective internal types.
5236 * @param object Plain object
5237 * @returns ListSnapshotsResponse
5238 */
5239 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ListSnapshotsResponse;
5240
5241 /**
5242 * Creates a plain object from a ListSnapshotsResponse message. Also converts values to other types if specified.
5243 * @param message ListSnapshotsResponse
5244 * @param [options] Conversion options
5245 * @returns Plain object
5246 */
5247 public static toObject(message: google.pubsub.v1.ListSnapshotsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
5248
5249 /**
5250 * Converts this ListSnapshotsResponse to JSON.
5251 * @returns JSON object
5252 */
5253 public toJSON(): { [k: string]: any };
5254 }
5255
5256 /** Properties of a DeleteSnapshotRequest. */
5257 interface IDeleteSnapshotRequest {
5258
5259 /** DeleteSnapshotRequest snapshot */
5260 snapshot?: (string|null);
5261 }
5262
5263 /** Represents a DeleteSnapshotRequest. */
5264 class DeleteSnapshotRequest implements IDeleteSnapshotRequest {
5265
5266 /**
5267 * Constructs a new DeleteSnapshotRequest.
5268 * @param [properties] Properties to set
5269 */
5270 constructor(properties?: google.pubsub.v1.IDeleteSnapshotRequest);
5271
5272 /** DeleteSnapshotRequest snapshot. */
5273 public snapshot: string;
5274
5275 /**
5276 * Creates a new DeleteSnapshotRequest instance using the specified properties.
5277 * @param [properties] Properties to set
5278 * @returns DeleteSnapshotRequest instance
5279 */
5280 public static create(properties?: google.pubsub.v1.IDeleteSnapshotRequest): google.pubsub.v1.DeleteSnapshotRequest;
5281
5282 /**
5283 * Encodes the specified DeleteSnapshotRequest message. Does not implicitly {@link google.pubsub.v1.DeleteSnapshotRequest.verify|verify} messages.
5284 * @param message DeleteSnapshotRequest message or plain object to encode
5285 * @param [writer] Writer to encode to
5286 * @returns Writer
5287 */
5288 public static encode(message: google.pubsub.v1.IDeleteSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5289
5290 /**
5291 * Encodes the specified DeleteSnapshotRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.DeleteSnapshotRequest.verify|verify} messages.
5292 * @param message DeleteSnapshotRequest message or plain object to encode
5293 * @param [writer] Writer to encode to
5294 * @returns Writer
5295 */
5296 public static encodeDelimited(message: google.pubsub.v1.IDeleteSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5297
5298 /**
5299 * Decodes a DeleteSnapshotRequest message from the specified reader or buffer.
5300 * @param reader Reader or buffer to decode from
5301 * @param [length] Message length if known beforehand
5302 * @returns DeleteSnapshotRequest
5303 * @throws {Error} If the payload is not a reader or valid buffer
5304 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5305 */
5306 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.DeleteSnapshotRequest;
5307
5308 /**
5309 * Decodes a DeleteSnapshotRequest message from the specified reader or buffer, length delimited.
5310 * @param reader Reader or buffer to decode from
5311 * @returns DeleteSnapshotRequest
5312 * @throws {Error} If the payload is not a reader or valid buffer
5313 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5314 */
5315 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.DeleteSnapshotRequest;
5316
5317 /**
5318 * Verifies a DeleteSnapshotRequest message.
5319 * @param message Plain object to verify
5320 * @returns `null` if valid, otherwise the reason why it is not
5321 */
5322 public static verify(message: { [k: string]: any }): (string|null);
5323
5324 /**
5325 * Creates a DeleteSnapshotRequest message from a plain object. Also converts values to their respective internal types.
5326 * @param object Plain object
5327 * @returns DeleteSnapshotRequest
5328 */
5329 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.DeleteSnapshotRequest;
5330
5331 /**
5332 * Creates a plain object from a DeleteSnapshotRequest message. Also converts values to other types if specified.
5333 * @param message DeleteSnapshotRequest
5334 * @param [options] Conversion options
5335 * @returns Plain object
5336 */
5337 public static toObject(message: google.pubsub.v1.DeleteSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5338
5339 /**
5340 * Converts this DeleteSnapshotRequest to JSON.
5341 * @returns JSON object
5342 */
5343 public toJSON(): { [k: string]: any };
5344 }
5345
5346 /** Properties of a SeekRequest. */
5347 interface ISeekRequest {
5348
5349 /** SeekRequest subscription */
5350 subscription?: (string|null);
5351
5352 /** SeekRequest time */
5353 time?: (google.protobuf.ITimestamp|null);
5354
5355 /** SeekRequest snapshot */
5356 snapshot?: (string|null);
5357 }
5358
5359 /** Represents a SeekRequest. */
5360 class SeekRequest implements ISeekRequest {
5361
5362 /**
5363 * Constructs a new SeekRequest.
5364 * @param [properties] Properties to set
5365 */
5366 constructor(properties?: google.pubsub.v1.ISeekRequest);
5367
5368 /** SeekRequest subscription. */
5369 public subscription: string;
5370
5371 /** SeekRequest time. */
5372 public time?: (google.protobuf.ITimestamp|null);
5373
5374 /** SeekRequest snapshot. */
5375 public snapshot?: (string|null);
5376
5377 /** SeekRequest target. */
5378 public target?: ("time"|"snapshot");
5379
5380 /**
5381 * Creates a new SeekRequest instance using the specified properties.
5382 * @param [properties] Properties to set
5383 * @returns SeekRequest instance
5384 */
5385 public static create(properties?: google.pubsub.v1.ISeekRequest): google.pubsub.v1.SeekRequest;
5386
5387 /**
5388 * Encodes the specified SeekRequest message. Does not implicitly {@link google.pubsub.v1.SeekRequest.verify|verify} messages.
5389 * @param message SeekRequest message or plain object to encode
5390 * @param [writer] Writer to encode to
5391 * @returns Writer
5392 */
5393 public static encode(message: google.pubsub.v1.ISeekRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5394
5395 /**
5396 * Encodes the specified SeekRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.SeekRequest.verify|verify} messages.
5397 * @param message SeekRequest message or plain object to encode
5398 * @param [writer] Writer to encode to
5399 * @returns Writer
5400 */
5401 public static encodeDelimited(message: google.pubsub.v1.ISeekRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5402
5403 /**
5404 * Decodes a SeekRequest message from the specified reader or buffer.
5405 * @param reader Reader or buffer to decode from
5406 * @param [length] Message length if known beforehand
5407 * @returns SeekRequest
5408 * @throws {Error} If the payload is not a reader or valid buffer
5409 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5410 */
5411 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.SeekRequest;
5412
5413 /**
5414 * Decodes a SeekRequest message from the specified reader or buffer, length delimited.
5415 * @param reader Reader or buffer to decode from
5416 * @returns SeekRequest
5417 * @throws {Error} If the payload is not a reader or valid buffer
5418 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5419 */
5420 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.SeekRequest;
5421
5422 /**
5423 * Verifies a SeekRequest message.
5424 * @param message Plain object to verify
5425 * @returns `null` if valid, otherwise the reason why it is not
5426 */
5427 public static verify(message: { [k: string]: any }): (string|null);
5428
5429 /**
5430 * Creates a SeekRequest message from a plain object. Also converts values to their respective internal types.
5431 * @param object Plain object
5432 * @returns SeekRequest
5433 */
5434 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.SeekRequest;
5435
5436 /**
5437 * Creates a plain object from a SeekRequest message. Also converts values to other types if specified.
5438 * @param message SeekRequest
5439 * @param [options] Conversion options
5440 * @returns Plain object
5441 */
5442 public static toObject(message: google.pubsub.v1.SeekRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5443
5444 /**
5445 * Converts this SeekRequest to JSON.
5446 * @returns JSON object
5447 */
5448 public toJSON(): { [k: string]: any };
5449 }
5450
5451 /** Properties of a SeekResponse. */
5452 interface ISeekResponse {
5453 }
5454
5455 /** Represents a SeekResponse. */
5456 class SeekResponse implements ISeekResponse {
5457
5458 /**
5459 * Constructs a new SeekResponse.
5460 * @param [properties] Properties to set
5461 */
5462 constructor(properties?: google.pubsub.v1.ISeekResponse);
5463
5464 /**
5465 * Creates a new SeekResponse instance using the specified properties.
5466 * @param [properties] Properties to set
5467 * @returns SeekResponse instance
5468 */
5469 public static create(properties?: google.pubsub.v1.ISeekResponse): google.pubsub.v1.SeekResponse;
5470
5471 /**
5472 * Encodes the specified SeekResponse message. Does not implicitly {@link google.pubsub.v1.SeekResponse.verify|verify} messages.
5473 * @param message SeekResponse message or plain object to encode
5474 * @param [writer] Writer to encode to
5475 * @returns Writer
5476 */
5477 public static encode(message: google.pubsub.v1.ISeekResponse, writer?: $protobuf.Writer): $protobuf.Writer;
5478
5479 /**
5480 * Encodes the specified SeekResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.SeekResponse.verify|verify} messages.
5481 * @param message SeekResponse message or plain object to encode
5482 * @param [writer] Writer to encode to
5483 * @returns Writer
5484 */
5485 public static encodeDelimited(message: google.pubsub.v1.ISeekResponse, writer?: $protobuf.Writer): $protobuf.Writer;
5486
5487 /**
5488 * Decodes a SeekResponse message from the specified reader or buffer.
5489 * @param reader Reader or buffer to decode from
5490 * @param [length] Message length if known beforehand
5491 * @returns SeekResponse
5492 * @throws {Error} If the payload is not a reader or valid buffer
5493 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5494 */
5495 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.SeekResponse;
5496
5497 /**
5498 * Decodes a SeekResponse message from the specified reader or buffer, length delimited.
5499 * @param reader Reader or buffer to decode from
5500 * @returns SeekResponse
5501 * @throws {Error} If the payload is not a reader or valid buffer
5502 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5503 */
5504 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.SeekResponse;
5505
5506 /**
5507 * Verifies a SeekResponse message.
5508 * @param message Plain object to verify
5509 * @returns `null` if valid, otherwise the reason why it is not
5510 */
5511 public static verify(message: { [k: string]: any }): (string|null);
5512
5513 /**
5514 * Creates a SeekResponse message from a plain object. Also converts values to their respective internal types.
5515 * @param object Plain object
5516 * @returns SeekResponse
5517 */
5518 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.SeekResponse;
5519
5520 /**
5521 * Creates a plain object from a SeekResponse message. Also converts values to other types if specified.
5522 * @param message SeekResponse
5523 * @param [options] Conversion options
5524 * @returns Plain object
5525 */
5526 public static toObject(message: google.pubsub.v1.SeekResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
5527
5528 /**
5529 * Converts this SeekResponse to JSON.
5530 * @returns JSON object
5531 */
5532 public toJSON(): { [k: string]: any };
5533 }
5534
5535 /** Represents a SchemaService */
5536 class SchemaService extends $protobuf.rpc.Service {
5537
5538 /**
5539 * Constructs a new SchemaService service.
5540 * @param rpcImpl RPC implementation
5541 * @param [requestDelimited=false] Whether requests are length-delimited
5542 * @param [responseDelimited=false] Whether responses are length-delimited
5543 */
5544 constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
5545
5546 /**
5547 * Creates new SchemaService service using the specified rpc implementation.
5548 * @param rpcImpl RPC implementation
5549 * @param [requestDelimited=false] Whether requests are length-delimited
5550 * @param [responseDelimited=false] Whether responses are length-delimited
5551 * @returns RPC service. Useful where requests and/or responses are streamed.
5552 */
5553 public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SchemaService;
5554
5555 /**
5556 * Calls CreateSchema.
5557 * @param request CreateSchemaRequest message or plain object
5558 * @param callback Node-style callback called with the error, if any, and Schema
5559 */
5560 public createSchema(request: google.pubsub.v1.ICreateSchemaRequest, callback: google.pubsub.v1.SchemaService.CreateSchemaCallback): void;
5561
5562 /**
5563 * Calls CreateSchema.
5564 * @param request CreateSchemaRequest message or plain object
5565 * @returns Promise
5566 */
5567 public createSchema(request: google.pubsub.v1.ICreateSchemaRequest): Promise<google.pubsub.v1.Schema>;
5568
5569 /**
5570 * Calls GetSchema.
5571 * @param request GetSchemaRequest message or plain object
5572 * @param callback Node-style callback called with the error, if any, and Schema
5573 */
5574 public getSchema(request: google.pubsub.v1.IGetSchemaRequest, callback: google.pubsub.v1.SchemaService.GetSchemaCallback): void;
5575
5576 /**
5577 * Calls GetSchema.
5578 * @param request GetSchemaRequest message or plain object
5579 * @returns Promise
5580 */
5581 public getSchema(request: google.pubsub.v1.IGetSchemaRequest): Promise<google.pubsub.v1.Schema>;
5582
5583 /**
5584 * Calls ListSchemas.
5585 * @param request ListSchemasRequest message or plain object
5586 * @param callback Node-style callback called with the error, if any, and ListSchemasResponse
5587 */
5588 public listSchemas(request: google.pubsub.v1.IListSchemasRequest, callback: google.pubsub.v1.SchemaService.ListSchemasCallback): void;
5589
5590 /**
5591 * Calls ListSchemas.
5592 * @param request ListSchemasRequest message or plain object
5593 * @returns Promise
5594 */
5595 public listSchemas(request: google.pubsub.v1.IListSchemasRequest): Promise<google.pubsub.v1.ListSchemasResponse>;
5596
5597 /**
5598 * Calls DeleteSchema.
5599 * @param request DeleteSchemaRequest message or plain object
5600 * @param callback Node-style callback called with the error, if any, and Empty
5601 */
5602 public deleteSchema(request: google.pubsub.v1.IDeleteSchemaRequest, callback: google.pubsub.v1.SchemaService.DeleteSchemaCallback): void;
5603
5604 /**
5605 * Calls DeleteSchema.
5606 * @param request DeleteSchemaRequest message or plain object
5607 * @returns Promise
5608 */
5609 public deleteSchema(request: google.pubsub.v1.IDeleteSchemaRequest): Promise<google.protobuf.Empty>;
5610
5611 /**
5612 * Calls ValidateSchema.
5613 * @param request ValidateSchemaRequest message or plain object
5614 * @param callback Node-style callback called with the error, if any, and ValidateSchemaResponse
5615 */
5616 public validateSchema(request: google.pubsub.v1.IValidateSchemaRequest, callback: google.pubsub.v1.SchemaService.ValidateSchemaCallback): void;
5617
5618 /**
5619 * Calls ValidateSchema.
5620 * @param request ValidateSchemaRequest message or plain object
5621 * @returns Promise
5622 */
5623 public validateSchema(request: google.pubsub.v1.IValidateSchemaRequest): Promise<google.pubsub.v1.ValidateSchemaResponse>;
5624
5625 /**
5626 * Calls ValidateMessage.
5627 * @param request ValidateMessageRequest message or plain object
5628 * @param callback Node-style callback called with the error, if any, and ValidateMessageResponse
5629 */
5630 public validateMessage(request: google.pubsub.v1.IValidateMessageRequest, callback: google.pubsub.v1.SchemaService.ValidateMessageCallback): void;
5631
5632 /**
5633 * Calls ValidateMessage.
5634 * @param request ValidateMessageRequest message or plain object
5635 * @returns Promise
5636 */
5637 public validateMessage(request: google.pubsub.v1.IValidateMessageRequest): Promise<google.pubsub.v1.ValidateMessageResponse>;
5638 }
5639
5640 namespace SchemaService {
5641
5642 /**
5643 * Callback as used by {@link google.pubsub.v1.SchemaService|createSchema}.
5644 * @param error Error, if any
5645 * @param [response] Schema
5646 */
5647 type CreateSchemaCallback = (error: (Error|null), response?: google.pubsub.v1.Schema) => void;
5648
5649 /**
5650 * Callback as used by {@link google.pubsub.v1.SchemaService|getSchema}.
5651 * @param error Error, if any
5652 * @param [response] Schema
5653 */
5654 type GetSchemaCallback = (error: (Error|null), response?: google.pubsub.v1.Schema) => void;
5655
5656 /**
5657 * Callback as used by {@link google.pubsub.v1.SchemaService|listSchemas}.
5658 * @param error Error, if any
5659 * @param [response] ListSchemasResponse
5660 */
5661 type ListSchemasCallback = (error: (Error|null), response?: google.pubsub.v1.ListSchemasResponse) => void;
5662
5663 /**
5664 * Callback as used by {@link google.pubsub.v1.SchemaService|deleteSchema}.
5665 * @param error Error, if any
5666 * @param [response] Empty
5667 */
5668 type DeleteSchemaCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
5669
5670 /**
5671 * Callback as used by {@link google.pubsub.v1.SchemaService|validateSchema}.
5672 * @param error Error, if any
5673 * @param [response] ValidateSchemaResponse
5674 */
5675 type ValidateSchemaCallback = (error: (Error|null), response?: google.pubsub.v1.ValidateSchemaResponse) => void;
5676
5677 /**
5678 * Callback as used by {@link google.pubsub.v1.SchemaService|validateMessage}.
5679 * @param error Error, if any
5680 * @param [response] ValidateMessageResponse
5681 */
5682 type ValidateMessageCallback = (error: (Error|null), response?: google.pubsub.v1.ValidateMessageResponse) => void;
5683 }
5684
5685 /** Properties of a Schema. */
5686 interface ISchema {
5687
5688 /** Schema name */
5689 name?: (string|null);
5690
5691 /** Schema type */
5692 type?: (google.pubsub.v1.Schema.Type|keyof typeof google.pubsub.v1.Schema.Type|null);
5693
5694 /** Schema definition */
5695 definition?: (string|null);
5696 }
5697
5698 /** Represents a Schema. */
5699 class Schema implements ISchema {
5700
5701 /**
5702 * Constructs a new Schema.
5703 * @param [properties] Properties to set
5704 */
5705 constructor(properties?: google.pubsub.v1.ISchema);
5706
5707 /** Schema name. */
5708 public name: string;
5709
5710 /** Schema type. */
5711 public type: (google.pubsub.v1.Schema.Type|keyof typeof google.pubsub.v1.Schema.Type);
5712
5713 /** Schema definition. */
5714 public definition: string;
5715
5716 /**
5717 * Creates a new Schema instance using the specified properties.
5718 * @param [properties] Properties to set
5719 * @returns Schema instance
5720 */
5721 public static create(properties?: google.pubsub.v1.ISchema): google.pubsub.v1.Schema;
5722
5723 /**
5724 * Encodes the specified Schema message. Does not implicitly {@link google.pubsub.v1.Schema.verify|verify} messages.
5725 * @param message Schema message or plain object to encode
5726 * @param [writer] Writer to encode to
5727 * @returns Writer
5728 */
5729 public static encode(message: google.pubsub.v1.ISchema, writer?: $protobuf.Writer): $protobuf.Writer;
5730
5731 /**
5732 * Encodes the specified Schema message, length delimited. Does not implicitly {@link google.pubsub.v1.Schema.verify|verify} messages.
5733 * @param message Schema message or plain object to encode
5734 * @param [writer] Writer to encode to
5735 * @returns Writer
5736 */
5737 public static encodeDelimited(message: google.pubsub.v1.ISchema, writer?: $protobuf.Writer): $protobuf.Writer;
5738
5739 /**
5740 * Decodes a Schema message from the specified reader or buffer.
5741 * @param reader Reader or buffer to decode from
5742 * @param [length] Message length if known beforehand
5743 * @returns Schema
5744 * @throws {Error} If the payload is not a reader or valid buffer
5745 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5746 */
5747 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.Schema;
5748
5749 /**
5750 * Decodes a Schema message from the specified reader or buffer, length delimited.
5751 * @param reader Reader or buffer to decode from
5752 * @returns Schema
5753 * @throws {Error} If the payload is not a reader or valid buffer
5754 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5755 */
5756 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.Schema;
5757
5758 /**
5759 * Verifies a Schema message.
5760 * @param message Plain object to verify
5761 * @returns `null` if valid, otherwise the reason why it is not
5762 */
5763 public static verify(message: { [k: string]: any }): (string|null);
5764
5765 /**
5766 * Creates a Schema message from a plain object. Also converts values to their respective internal types.
5767 * @param object Plain object
5768 * @returns Schema
5769 */
5770 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.Schema;
5771
5772 /**
5773 * Creates a plain object from a Schema message. Also converts values to other types if specified.
5774 * @param message Schema
5775 * @param [options] Conversion options
5776 * @returns Plain object
5777 */
5778 public static toObject(message: google.pubsub.v1.Schema, options?: $protobuf.IConversionOptions): { [k: string]: any };
5779
5780 /**
5781 * Converts this Schema to JSON.
5782 * @returns JSON object
5783 */
5784 public toJSON(): { [k: string]: any };
5785 }
5786
5787 namespace Schema {
5788
5789 /** Type enum. */
5790 enum Type {
5791 TYPE_UNSPECIFIED = 0,
5792 PROTOCOL_BUFFER = 1,
5793 AVRO = 2
5794 }
5795 }
5796
5797 /** Properties of a CreateSchemaRequest. */
5798 interface ICreateSchemaRequest {
5799
5800 /** CreateSchemaRequest parent */
5801 parent?: (string|null);
5802
5803 /** CreateSchemaRequest schema */
5804 schema?: (google.pubsub.v1.ISchema|null);
5805
5806 /** CreateSchemaRequest schemaId */
5807 schemaId?: (string|null);
5808 }
5809
5810 /** Represents a CreateSchemaRequest. */
5811 class CreateSchemaRequest implements ICreateSchemaRequest {
5812
5813 /**
5814 * Constructs a new CreateSchemaRequest.
5815 * @param [properties] Properties to set
5816 */
5817 constructor(properties?: google.pubsub.v1.ICreateSchemaRequest);
5818
5819 /** CreateSchemaRequest parent. */
5820 public parent: string;
5821
5822 /** CreateSchemaRequest schema. */
5823 public schema?: (google.pubsub.v1.ISchema|null);
5824
5825 /** CreateSchemaRequest schemaId. */
5826 public schemaId: string;
5827
5828 /**
5829 * Creates a new CreateSchemaRequest instance using the specified properties.
5830 * @param [properties] Properties to set
5831 * @returns CreateSchemaRequest instance
5832 */
5833 public static create(properties?: google.pubsub.v1.ICreateSchemaRequest): google.pubsub.v1.CreateSchemaRequest;
5834
5835 /**
5836 * Encodes the specified CreateSchemaRequest message. Does not implicitly {@link google.pubsub.v1.CreateSchemaRequest.verify|verify} messages.
5837 * @param message CreateSchemaRequest message or plain object to encode
5838 * @param [writer] Writer to encode to
5839 * @returns Writer
5840 */
5841 public static encode(message: google.pubsub.v1.ICreateSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5842
5843 /**
5844 * Encodes the specified CreateSchemaRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.CreateSchemaRequest.verify|verify} messages.
5845 * @param message CreateSchemaRequest message or plain object to encode
5846 * @param [writer] Writer to encode to
5847 * @returns Writer
5848 */
5849 public static encodeDelimited(message: google.pubsub.v1.ICreateSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5850
5851 /**
5852 * Decodes a CreateSchemaRequest message from the specified reader or buffer.
5853 * @param reader Reader or buffer to decode from
5854 * @param [length] Message length if known beforehand
5855 * @returns CreateSchemaRequest
5856 * @throws {Error} If the payload is not a reader or valid buffer
5857 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5858 */
5859 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.CreateSchemaRequest;
5860
5861 /**
5862 * Decodes a CreateSchemaRequest message from the specified reader or buffer, length delimited.
5863 * @param reader Reader or buffer to decode from
5864 * @returns CreateSchemaRequest
5865 * @throws {Error} If the payload is not a reader or valid buffer
5866 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5867 */
5868 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.CreateSchemaRequest;
5869
5870 /**
5871 * Verifies a CreateSchemaRequest message.
5872 * @param message Plain object to verify
5873 * @returns `null` if valid, otherwise the reason why it is not
5874 */
5875 public static verify(message: { [k: string]: any }): (string|null);
5876
5877 /**
5878 * Creates a CreateSchemaRequest message from a plain object. Also converts values to their respective internal types.
5879 * @param object Plain object
5880 * @returns CreateSchemaRequest
5881 */
5882 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.CreateSchemaRequest;
5883
5884 /**
5885 * Creates a plain object from a CreateSchemaRequest message. Also converts values to other types if specified.
5886 * @param message CreateSchemaRequest
5887 * @param [options] Conversion options
5888 * @returns Plain object
5889 */
5890 public static toObject(message: google.pubsub.v1.CreateSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5891
5892 /**
5893 * Converts this CreateSchemaRequest to JSON.
5894 * @returns JSON object
5895 */
5896 public toJSON(): { [k: string]: any };
5897 }
5898
5899 /** SchemaView enum. */
5900 enum SchemaView {
5901 SCHEMA_VIEW_UNSPECIFIED = 0,
5902 BASIC = 1,
5903 FULL = 2
5904 }
5905
5906 /** Properties of a GetSchemaRequest. */
5907 interface IGetSchemaRequest {
5908
5909 /** GetSchemaRequest name */
5910 name?: (string|null);
5911
5912 /** GetSchemaRequest view */
5913 view?: (google.pubsub.v1.SchemaView|keyof typeof google.pubsub.v1.SchemaView|null);
5914 }
5915
5916 /** Represents a GetSchemaRequest. */
5917 class GetSchemaRequest implements IGetSchemaRequest {
5918
5919 /**
5920 * Constructs a new GetSchemaRequest.
5921 * @param [properties] Properties to set
5922 */
5923 constructor(properties?: google.pubsub.v1.IGetSchemaRequest);
5924
5925 /** GetSchemaRequest name. */
5926 public name: string;
5927
5928 /** GetSchemaRequest view. */
5929 public view: (google.pubsub.v1.SchemaView|keyof typeof google.pubsub.v1.SchemaView);
5930
5931 /**
5932 * Creates a new GetSchemaRequest instance using the specified properties.
5933 * @param [properties] Properties to set
5934 * @returns GetSchemaRequest instance
5935 */
5936 public static create(properties?: google.pubsub.v1.IGetSchemaRequest): google.pubsub.v1.GetSchemaRequest;
5937
5938 /**
5939 * Encodes the specified GetSchemaRequest message. Does not implicitly {@link google.pubsub.v1.GetSchemaRequest.verify|verify} messages.
5940 * @param message GetSchemaRequest message or plain object to encode
5941 * @param [writer] Writer to encode to
5942 * @returns Writer
5943 */
5944 public static encode(message: google.pubsub.v1.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5945
5946 /**
5947 * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.GetSchemaRequest.verify|verify} messages.
5948 * @param message GetSchemaRequest message or plain object to encode
5949 * @param [writer] Writer to encode to
5950 * @returns Writer
5951 */
5952 public static encodeDelimited(message: google.pubsub.v1.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5953
5954 /**
5955 * Decodes a GetSchemaRequest message from the specified reader or buffer.
5956 * @param reader Reader or buffer to decode from
5957 * @param [length] Message length if known beforehand
5958 * @returns GetSchemaRequest
5959 * @throws {Error} If the payload is not a reader or valid buffer
5960 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5961 */
5962 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.GetSchemaRequest;
5963
5964 /**
5965 * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited.
5966 * @param reader Reader or buffer to decode from
5967 * @returns GetSchemaRequest
5968 * @throws {Error} If the payload is not a reader or valid buffer
5969 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5970 */
5971 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.GetSchemaRequest;
5972
5973 /**
5974 * Verifies a GetSchemaRequest message.
5975 * @param message Plain object to verify
5976 * @returns `null` if valid, otherwise the reason why it is not
5977 */
5978 public static verify(message: { [k: string]: any }): (string|null);
5979
5980 /**
5981 * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types.
5982 * @param object Plain object
5983 * @returns GetSchemaRequest
5984 */
5985 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.GetSchemaRequest;
5986
5987 /**
5988 * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified.
5989 * @param message GetSchemaRequest
5990 * @param [options] Conversion options
5991 * @returns Plain object
5992 */
5993 public static toObject(message: google.pubsub.v1.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5994
5995 /**
5996 * Converts this GetSchemaRequest to JSON.
5997 * @returns JSON object
5998 */
5999 public toJSON(): { [k: string]: any };
6000 }
6001
6002 /** Properties of a ListSchemasRequest. */
6003 interface IListSchemasRequest {
6004
6005 /** ListSchemasRequest parent */
6006 parent?: (string|null);
6007
6008 /** ListSchemasRequest view */
6009 view?: (google.pubsub.v1.SchemaView|keyof typeof google.pubsub.v1.SchemaView|null);
6010
6011 /** ListSchemasRequest pageSize */
6012 pageSize?: (number|null);
6013
6014 /** ListSchemasRequest pageToken */
6015 pageToken?: (string|null);
6016 }
6017
6018 /** Represents a ListSchemasRequest. */
6019 class ListSchemasRequest implements IListSchemasRequest {
6020
6021 /**
6022 * Constructs a new ListSchemasRequest.
6023 * @param [properties] Properties to set
6024 */
6025 constructor(properties?: google.pubsub.v1.IListSchemasRequest);
6026
6027 /** ListSchemasRequest parent. */
6028 public parent: string;
6029
6030 /** ListSchemasRequest view. */
6031 public view: (google.pubsub.v1.SchemaView|keyof typeof google.pubsub.v1.SchemaView);
6032
6033 /** ListSchemasRequest pageSize. */
6034 public pageSize: number;
6035
6036 /** ListSchemasRequest pageToken. */
6037 public pageToken: string;
6038
6039 /**
6040 * Creates a new ListSchemasRequest instance using the specified properties.
6041 * @param [properties] Properties to set
6042 * @returns ListSchemasRequest instance
6043 */
6044 public static create(properties?: google.pubsub.v1.IListSchemasRequest): google.pubsub.v1.ListSchemasRequest;
6045
6046 /**
6047 * Encodes the specified ListSchemasRequest message. Does not implicitly {@link google.pubsub.v1.ListSchemasRequest.verify|verify} messages.
6048 * @param message ListSchemasRequest message or plain object to encode
6049 * @param [writer] Writer to encode to
6050 * @returns Writer
6051 */
6052 public static encode(message: google.pubsub.v1.IListSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6053
6054 /**
6055 * Encodes the specified ListSchemasRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.ListSchemasRequest.verify|verify} messages.
6056 * @param message ListSchemasRequest message or plain object to encode
6057 * @param [writer] Writer to encode to
6058 * @returns Writer
6059 */
6060 public static encodeDelimited(message: google.pubsub.v1.IListSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6061
6062 /**
6063 * Decodes a ListSchemasRequest message from the specified reader or buffer.
6064 * @param reader Reader or buffer to decode from
6065 * @param [length] Message length if known beforehand
6066 * @returns ListSchemasRequest
6067 * @throws {Error} If the payload is not a reader or valid buffer
6068 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6069 */
6070 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ListSchemasRequest;
6071
6072 /**
6073 * Decodes a ListSchemasRequest message from the specified reader or buffer, length delimited.
6074 * @param reader Reader or buffer to decode from
6075 * @returns ListSchemasRequest
6076 * @throws {Error} If the payload is not a reader or valid buffer
6077 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6078 */
6079 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ListSchemasRequest;
6080
6081 /**
6082 * Verifies a ListSchemasRequest message.
6083 * @param message Plain object to verify
6084 * @returns `null` if valid, otherwise the reason why it is not
6085 */
6086 public static verify(message: { [k: string]: any }): (string|null);
6087
6088 /**
6089 * Creates a ListSchemasRequest message from a plain object. Also converts values to their respective internal types.
6090 * @param object Plain object
6091 * @returns ListSchemasRequest
6092 */
6093 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ListSchemasRequest;
6094
6095 /**
6096 * Creates a plain object from a ListSchemasRequest message. Also converts values to other types if specified.
6097 * @param message ListSchemasRequest
6098 * @param [options] Conversion options
6099 * @returns Plain object
6100 */
6101 public static toObject(message: google.pubsub.v1.ListSchemasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
6102
6103 /**
6104 * Converts this ListSchemasRequest to JSON.
6105 * @returns JSON object
6106 */
6107 public toJSON(): { [k: string]: any };
6108 }
6109
6110 /** Properties of a ListSchemasResponse. */
6111 interface IListSchemasResponse {
6112
6113 /** ListSchemasResponse schemas */
6114 schemas?: (google.pubsub.v1.ISchema[]|null);
6115
6116 /** ListSchemasResponse nextPageToken */
6117 nextPageToken?: (string|null);
6118 }
6119
6120 /** Represents a ListSchemasResponse. */
6121 class ListSchemasResponse implements IListSchemasResponse {
6122
6123 /**
6124 * Constructs a new ListSchemasResponse.
6125 * @param [properties] Properties to set
6126 */
6127 constructor(properties?: google.pubsub.v1.IListSchemasResponse);
6128
6129 /** ListSchemasResponse schemas. */
6130 public schemas: google.pubsub.v1.ISchema[];
6131
6132 /** ListSchemasResponse nextPageToken. */
6133 public nextPageToken: string;
6134
6135 /**
6136 * Creates a new ListSchemasResponse instance using the specified properties.
6137 * @param [properties] Properties to set
6138 * @returns ListSchemasResponse instance
6139 */
6140 public static create(properties?: google.pubsub.v1.IListSchemasResponse): google.pubsub.v1.ListSchemasResponse;
6141
6142 /**
6143 * Encodes the specified ListSchemasResponse message. Does not implicitly {@link google.pubsub.v1.ListSchemasResponse.verify|verify} messages.
6144 * @param message ListSchemasResponse message or plain object to encode
6145 * @param [writer] Writer to encode to
6146 * @returns Writer
6147 */
6148 public static encode(message: google.pubsub.v1.IListSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer;
6149
6150 /**
6151 * Encodes the specified ListSchemasResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.ListSchemasResponse.verify|verify} messages.
6152 * @param message ListSchemasResponse message or plain object to encode
6153 * @param [writer] Writer to encode to
6154 * @returns Writer
6155 */
6156 public static encodeDelimited(message: google.pubsub.v1.IListSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer;
6157
6158 /**
6159 * Decodes a ListSchemasResponse message from the specified reader or buffer.
6160 * @param reader Reader or buffer to decode from
6161 * @param [length] Message length if known beforehand
6162 * @returns ListSchemasResponse
6163 * @throws {Error} If the payload is not a reader or valid buffer
6164 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6165 */
6166 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ListSchemasResponse;
6167
6168 /**
6169 * Decodes a ListSchemasResponse message from the specified reader or buffer, length delimited.
6170 * @param reader Reader or buffer to decode from
6171 * @returns ListSchemasResponse
6172 * @throws {Error} If the payload is not a reader or valid buffer
6173 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6174 */
6175 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ListSchemasResponse;
6176
6177 /**
6178 * Verifies a ListSchemasResponse message.
6179 * @param message Plain object to verify
6180 * @returns `null` if valid, otherwise the reason why it is not
6181 */
6182 public static verify(message: { [k: string]: any }): (string|null);
6183
6184 /**
6185 * Creates a ListSchemasResponse message from a plain object. Also converts values to their respective internal types.
6186 * @param object Plain object
6187 * @returns ListSchemasResponse
6188 */
6189 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ListSchemasResponse;
6190
6191 /**
6192 * Creates a plain object from a ListSchemasResponse message. Also converts values to other types if specified.
6193 * @param message ListSchemasResponse
6194 * @param [options] Conversion options
6195 * @returns Plain object
6196 */
6197 public static toObject(message: google.pubsub.v1.ListSchemasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
6198
6199 /**
6200 * Converts this ListSchemasResponse to JSON.
6201 * @returns JSON object
6202 */
6203 public toJSON(): { [k: string]: any };
6204 }
6205
6206 /** Properties of a DeleteSchemaRequest. */
6207 interface IDeleteSchemaRequest {
6208
6209 /** DeleteSchemaRequest name */
6210 name?: (string|null);
6211 }
6212
6213 /** Represents a DeleteSchemaRequest. */
6214 class DeleteSchemaRequest implements IDeleteSchemaRequest {
6215
6216 /**
6217 * Constructs a new DeleteSchemaRequest.
6218 * @param [properties] Properties to set
6219 */
6220 constructor(properties?: google.pubsub.v1.IDeleteSchemaRequest);
6221
6222 /** DeleteSchemaRequest name. */
6223 public name: string;
6224
6225 /**
6226 * Creates a new DeleteSchemaRequest instance using the specified properties.
6227 * @param [properties] Properties to set
6228 * @returns DeleteSchemaRequest instance
6229 */
6230 public static create(properties?: google.pubsub.v1.IDeleteSchemaRequest): google.pubsub.v1.DeleteSchemaRequest;
6231
6232 /**
6233 * Encodes the specified DeleteSchemaRequest message. Does not implicitly {@link google.pubsub.v1.DeleteSchemaRequest.verify|verify} messages.
6234 * @param message DeleteSchemaRequest message or plain object to encode
6235 * @param [writer] Writer to encode to
6236 * @returns Writer
6237 */
6238 public static encode(message: google.pubsub.v1.IDeleteSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6239
6240 /**
6241 * Encodes the specified DeleteSchemaRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.DeleteSchemaRequest.verify|verify} messages.
6242 * @param message DeleteSchemaRequest message or plain object to encode
6243 * @param [writer] Writer to encode to
6244 * @returns Writer
6245 */
6246 public static encodeDelimited(message: google.pubsub.v1.IDeleteSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6247
6248 /**
6249 * Decodes a DeleteSchemaRequest message from the specified reader or buffer.
6250 * @param reader Reader or buffer to decode from
6251 * @param [length] Message length if known beforehand
6252 * @returns DeleteSchemaRequest
6253 * @throws {Error} If the payload is not a reader or valid buffer
6254 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6255 */
6256 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.DeleteSchemaRequest;
6257
6258 /**
6259 * Decodes a DeleteSchemaRequest message from the specified reader or buffer, length delimited.
6260 * @param reader Reader or buffer to decode from
6261 * @returns DeleteSchemaRequest
6262 * @throws {Error} If the payload is not a reader or valid buffer
6263 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6264 */
6265 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.DeleteSchemaRequest;
6266
6267 /**
6268 * Verifies a DeleteSchemaRequest message.
6269 * @param message Plain object to verify
6270 * @returns `null` if valid, otherwise the reason why it is not
6271 */
6272 public static verify(message: { [k: string]: any }): (string|null);
6273
6274 /**
6275 * Creates a DeleteSchemaRequest message from a plain object. Also converts values to their respective internal types.
6276 * @param object Plain object
6277 * @returns DeleteSchemaRequest
6278 */
6279 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.DeleteSchemaRequest;
6280
6281 /**
6282 * Creates a plain object from a DeleteSchemaRequest message. Also converts values to other types if specified.
6283 * @param message DeleteSchemaRequest
6284 * @param [options] Conversion options
6285 * @returns Plain object
6286 */
6287 public static toObject(message: google.pubsub.v1.DeleteSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
6288
6289 /**
6290 * Converts this DeleteSchemaRequest to JSON.
6291 * @returns JSON object
6292 */
6293 public toJSON(): { [k: string]: any };
6294 }
6295
6296 /** Properties of a ValidateSchemaRequest. */
6297 interface IValidateSchemaRequest {
6298
6299 /** ValidateSchemaRequest parent */
6300 parent?: (string|null);
6301
6302 /** ValidateSchemaRequest schema */
6303 schema?: (google.pubsub.v1.ISchema|null);
6304 }
6305
6306 /** Represents a ValidateSchemaRequest. */
6307 class ValidateSchemaRequest implements IValidateSchemaRequest {
6308
6309 /**
6310 * Constructs a new ValidateSchemaRequest.
6311 * @param [properties] Properties to set
6312 */
6313 constructor(properties?: google.pubsub.v1.IValidateSchemaRequest);
6314
6315 /** ValidateSchemaRequest parent. */
6316 public parent: string;
6317
6318 /** ValidateSchemaRequest schema. */
6319 public schema?: (google.pubsub.v1.ISchema|null);
6320
6321 /**
6322 * Creates a new ValidateSchemaRequest instance using the specified properties.
6323 * @param [properties] Properties to set
6324 * @returns ValidateSchemaRequest instance
6325 */
6326 public static create(properties?: google.pubsub.v1.IValidateSchemaRequest): google.pubsub.v1.ValidateSchemaRequest;
6327
6328 /**
6329 * Encodes the specified ValidateSchemaRequest message. Does not implicitly {@link google.pubsub.v1.ValidateSchemaRequest.verify|verify} messages.
6330 * @param message ValidateSchemaRequest message or plain object to encode
6331 * @param [writer] Writer to encode to
6332 * @returns Writer
6333 */
6334 public static encode(message: google.pubsub.v1.IValidateSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6335
6336 /**
6337 * Encodes the specified ValidateSchemaRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.ValidateSchemaRequest.verify|verify} messages.
6338 * @param message ValidateSchemaRequest message or plain object to encode
6339 * @param [writer] Writer to encode to
6340 * @returns Writer
6341 */
6342 public static encodeDelimited(message: google.pubsub.v1.IValidateSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6343
6344 /**
6345 * Decodes a ValidateSchemaRequest message from the specified reader or buffer.
6346 * @param reader Reader or buffer to decode from
6347 * @param [length] Message length if known beforehand
6348 * @returns ValidateSchemaRequest
6349 * @throws {Error} If the payload is not a reader or valid buffer
6350 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6351 */
6352 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ValidateSchemaRequest;
6353
6354 /**
6355 * Decodes a ValidateSchemaRequest message from the specified reader or buffer, length delimited.
6356 * @param reader Reader or buffer to decode from
6357 * @returns ValidateSchemaRequest
6358 * @throws {Error} If the payload is not a reader or valid buffer
6359 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6360 */
6361 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ValidateSchemaRequest;
6362
6363 /**
6364 * Verifies a ValidateSchemaRequest message.
6365 * @param message Plain object to verify
6366 * @returns `null` if valid, otherwise the reason why it is not
6367 */
6368 public static verify(message: { [k: string]: any }): (string|null);
6369
6370 /**
6371 * Creates a ValidateSchemaRequest message from a plain object. Also converts values to their respective internal types.
6372 * @param object Plain object
6373 * @returns ValidateSchemaRequest
6374 */
6375 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ValidateSchemaRequest;
6376
6377 /**
6378 * Creates a plain object from a ValidateSchemaRequest message. Also converts values to other types if specified.
6379 * @param message ValidateSchemaRequest
6380 * @param [options] Conversion options
6381 * @returns Plain object
6382 */
6383 public static toObject(message: google.pubsub.v1.ValidateSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
6384
6385 /**
6386 * Converts this ValidateSchemaRequest to JSON.
6387 * @returns JSON object
6388 */
6389 public toJSON(): { [k: string]: any };
6390 }
6391
6392 /** Properties of a ValidateSchemaResponse. */
6393 interface IValidateSchemaResponse {
6394 }
6395
6396 /** Represents a ValidateSchemaResponse. */
6397 class ValidateSchemaResponse implements IValidateSchemaResponse {
6398
6399 /**
6400 * Constructs a new ValidateSchemaResponse.
6401 * @param [properties] Properties to set
6402 */
6403 constructor(properties?: google.pubsub.v1.IValidateSchemaResponse);
6404
6405 /**
6406 * Creates a new ValidateSchemaResponse instance using the specified properties.
6407 * @param [properties] Properties to set
6408 * @returns ValidateSchemaResponse instance
6409 */
6410 public static create(properties?: google.pubsub.v1.IValidateSchemaResponse): google.pubsub.v1.ValidateSchemaResponse;
6411
6412 /**
6413 * Encodes the specified ValidateSchemaResponse message. Does not implicitly {@link google.pubsub.v1.ValidateSchemaResponse.verify|verify} messages.
6414 * @param message ValidateSchemaResponse message or plain object to encode
6415 * @param [writer] Writer to encode to
6416 * @returns Writer
6417 */
6418 public static encode(message: google.pubsub.v1.IValidateSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer;
6419
6420 /**
6421 * Encodes the specified ValidateSchemaResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.ValidateSchemaResponse.verify|verify} messages.
6422 * @param message ValidateSchemaResponse message or plain object to encode
6423 * @param [writer] Writer to encode to
6424 * @returns Writer
6425 */
6426 public static encodeDelimited(message: google.pubsub.v1.IValidateSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer;
6427
6428 /**
6429 * Decodes a ValidateSchemaResponse message from the specified reader or buffer.
6430 * @param reader Reader or buffer to decode from
6431 * @param [length] Message length if known beforehand
6432 * @returns ValidateSchemaResponse
6433 * @throws {Error} If the payload is not a reader or valid buffer
6434 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6435 */
6436 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ValidateSchemaResponse;
6437
6438 /**
6439 * Decodes a ValidateSchemaResponse message from the specified reader or buffer, length delimited.
6440 * @param reader Reader or buffer to decode from
6441 * @returns ValidateSchemaResponse
6442 * @throws {Error} If the payload is not a reader or valid buffer
6443 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6444 */
6445 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ValidateSchemaResponse;
6446
6447 /**
6448 * Verifies a ValidateSchemaResponse message.
6449 * @param message Plain object to verify
6450 * @returns `null` if valid, otherwise the reason why it is not
6451 */
6452 public static verify(message: { [k: string]: any }): (string|null);
6453
6454 /**
6455 * Creates a ValidateSchemaResponse message from a plain object. Also converts values to their respective internal types.
6456 * @param object Plain object
6457 * @returns ValidateSchemaResponse
6458 */
6459 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ValidateSchemaResponse;
6460
6461 /**
6462 * Creates a plain object from a ValidateSchemaResponse message. Also converts values to other types if specified.
6463 * @param message ValidateSchemaResponse
6464 * @param [options] Conversion options
6465 * @returns Plain object
6466 */
6467 public static toObject(message: google.pubsub.v1.ValidateSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
6468
6469 /**
6470 * Converts this ValidateSchemaResponse to JSON.
6471 * @returns JSON object
6472 */
6473 public toJSON(): { [k: string]: any };
6474 }
6475
6476 /** Properties of a ValidateMessageRequest. */
6477 interface IValidateMessageRequest {
6478
6479 /** ValidateMessageRequest parent */
6480 parent?: (string|null);
6481
6482 /** ValidateMessageRequest name */
6483 name?: (string|null);
6484
6485 /** ValidateMessageRequest schema */
6486 schema?: (google.pubsub.v1.ISchema|null);
6487
6488 /** ValidateMessageRequest message */
6489 message?: (Uint8Array|string|null);
6490
6491 /** ValidateMessageRequest encoding */
6492 encoding?: (google.pubsub.v1.Encoding|keyof typeof google.pubsub.v1.Encoding|null);
6493 }
6494
6495 /** Represents a ValidateMessageRequest. */
6496 class ValidateMessageRequest implements IValidateMessageRequest {
6497
6498 /**
6499 * Constructs a new ValidateMessageRequest.
6500 * @param [properties] Properties to set
6501 */
6502 constructor(properties?: google.pubsub.v1.IValidateMessageRequest);
6503
6504 /** ValidateMessageRequest parent. */
6505 public parent: string;
6506
6507 /** ValidateMessageRequest name. */
6508 public name?: (string|null);
6509
6510 /** ValidateMessageRequest schema. */
6511 public schema?: (google.pubsub.v1.ISchema|null);
6512
6513 /** ValidateMessageRequest message. */
6514 public message: (Uint8Array|string);
6515
6516 /** ValidateMessageRequest encoding. */
6517 public encoding: (google.pubsub.v1.Encoding|keyof typeof google.pubsub.v1.Encoding);
6518
6519 /** ValidateMessageRequest schemaSpec. */
6520 public schemaSpec?: ("name"|"schema");
6521
6522 /**
6523 * Creates a new ValidateMessageRequest instance using the specified properties.
6524 * @param [properties] Properties to set
6525 * @returns ValidateMessageRequest instance
6526 */
6527 public static create(properties?: google.pubsub.v1.IValidateMessageRequest): google.pubsub.v1.ValidateMessageRequest;
6528
6529 /**
6530 * Encodes the specified ValidateMessageRequest message. Does not implicitly {@link google.pubsub.v1.ValidateMessageRequest.verify|verify} messages.
6531 * @param message ValidateMessageRequest message or plain object to encode
6532 * @param [writer] Writer to encode to
6533 * @returns Writer
6534 */
6535 public static encode(message: google.pubsub.v1.IValidateMessageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6536
6537 /**
6538 * Encodes the specified ValidateMessageRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.ValidateMessageRequest.verify|verify} messages.
6539 * @param message ValidateMessageRequest message or plain object to encode
6540 * @param [writer] Writer to encode to
6541 * @returns Writer
6542 */
6543 public static encodeDelimited(message: google.pubsub.v1.IValidateMessageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6544
6545 /**
6546 * Decodes a ValidateMessageRequest message from the specified reader or buffer.
6547 * @param reader Reader or buffer to decode from
6548 * @param [length] Message length if known beforehand
6549 * @returns ValidateMessageRequest
6550 * @throws {Error} If the payload is not a reader or valid buffer
6551 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6552 */
6553 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ValidateMessageRequest;
6554
6555 /**
6556 * Decodes a ValidateMessageRequest message from the specified reader or buffer, length delimited.
6557 * @param reader Reader or buffer to decode from
6558 * @returns ValidateMessageRequest
6559 * @throws {Error} If the payload is not a reader or valid buffer
6560 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6561 */
6562 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ValidateMessageRequest;
6563
6564 /**
6565 * Verifies a ValidateMessageRequest message.
6566 * @param message Plain object to verify
6567 * @returns `null` if valid, otherwise the reason why it is not
6568 */
6569 public static verify(message: { [k: string]: any }): (string|null);
6570
6571 /**
6572 * Creates a ValidateMessageRequest message from a plain object. Also converts values to their respective internal types.
6573 * @param object Plain object
6574 * @returns ValidateMessageRequest
6575 */
6576 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ValidateMessageRequest;
6577
6578 /**
6579 * Creates a plain object from a ValidateMessageRequest message. Also converts values to other types if specified.
6580 * @param message ValidateMessageRequest
6581 * @param [options] Conversion options
6582 * @returns Plain object
6583 */
6584 public static toObject(message: google.pubsub.v1.ValidateMessageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
6585
6586 /**
6587 * Converts this ValidateMessageRequest to JSON.
6588 * @returns JSON object
6589 */
6590 public toJSON(): { [k: string]: any };
6591 }
6592
6593 /** Properties of a ValidateMessageResponse. */
6594 interface IValidateMessageResponse {
6595 }
6596
6597 /** Represents a ValidateMessageResponse. */
6598 class ValidateMessageResponse implements IValidateMessageResponse {
6599
6600 /**
6601 * Constructs a new ValidateMessageResponse.
6602 * @param [properties] Properties to set
6603 */
6604 constructor(properties?: google.pubsub.v1.IValidateMessageResponse);
6605
6606 /**
6607 * Creates a new ValidateMessageResponse instance using the specified properties.
6608 * @param [properties] Properties to set
6609 * @returns ValidateMessageResponse instance
6610 */
6611 public static create(properties?: google.pubsub.v1.IValidateMessageResponse): google.pubsub.v1.ValidateMessageResponse;
6612
6613 /**
6614 * Encodes the specified ValidateMessageResponse message. Does not implicitly {@link google.pubsub.v1.ValidateMessageResponse.verify|verify} messages.
6615 * @param message ValidateMessageResponse message or plain object to encode
6616 * @param [writer] Writer to encode to
6617 * @returns Writer
6618 */
6619 public static encode(message: google.pubsub.v1.IValidateMessageResponse, writer?: $protobuf.Writer): $protobuf.Writer;
6620
6621 /**
6622 * Encodes the specified ValidateMessageResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.ValidateMessageResponse.verify|verify} messages.
6623 * @param message ValidateMessageResponse message or plain object to encode
6624 * @param [writer] Writer to encode to
6625 * @returns Writer
6626 */
6627 public static encodeDelimited(message: google.pubsub.v1.IValidateMessageResponse, writer?: $protobuf.Writer): $protobuf.Writer;
6628
6629 /**
6630 * Decodes a ValidateMessageResponse message from the specified reader or buffer.
6631 * @param reader Reader or buffer to decode from
6632 * @param [length] Message length if known beforehand
6633 * @returns ValidateMessageResponse
6634 * @throws {Error} If the payload is not a reader or valid buffer
6635 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6636 */
6637 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ValidateMessageResponse;
6638
6639 /**
6640 * Decodes a ValidateMessageResponse message from the specified reader or buffer, length delimited.
6641 * @param reader Reader or buffer to decode from
6642 * @returns ValidateMessageResponse
6643 * @throws {Error} If the payload is not a reader or valid buffer
6644 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6645 */
6646 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ValidateMessageResponse;
6647
6648 /**
6649 * Verifies a ValidateMessageResponse message.
6650 * @param message Plain object to verify
6651 * @returns `null` if valid, otherwise the reason why it is not
6652 */
6653 public static verify(message: { [k: string]: any }): (string|null);
6654
6655 /**
6656 * Creates a ValidateMessageResponse message from a plain object. Also converts values to their respective internal types.
6657 * @param object Plain object
6658 * @returns ValidateMessageResponse
6659 */
6660 public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ValidateMessageResponse;
6661
6662 /**
6663 * Creates a plain object from a ValidateMessageResponse message. Also converts values to other types if specified.
6664 * @param message ValidateMessageResponse
6665 * @param [options] Conversion options
6666 * @returns Plain object
6667 */
6668 public static toObject(message: google.pubsub.v1.ValidateMessageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
6669
6670 /**
6671 * Converts this ValidateMessageResponse to JSON.
6672 * @returns JSON object
6673 */
6674 public toJSON(): { [k: string]: any };
6675 }
6676
6677 /** Encoding enum. */
6678 enum Encoding {
6679 ENCODING_UNSPECIFIED = 0,
6680 JSON = 1,
6681 BINARY = 2
6682 }
6683 }
6684 }
6685
6686 /** Namespace api. */
6687 namespace api {
6688
6689 /** Properties of a Http. */
6690 interface IHttp {
6691
6692 /** Http rules */
6693 rules?: (google.api.IHttpRule[]|null);
6694
6695 /** Http fullyDecodeReservedExpansion */
6696 fullyDecodeReservedExpansion?: (boolean|null);
6697 }
6698
6699 /** Represents a Http. */
6700 class Http implements IHttp {
6701
6702 /**
6703 * Constructs a new Http.
6704 * @param [properties] Properties to set
6705 */
6706 constructor(properties?: google.api.IHttp);
6707
6708 /** Http rules. */
6709 public rules: google.api.IHttpRule[];
6710
6711 /** Http fullyDecodeReservedExpansion. */
6712 public fullyDecodeReservedExpansion: boolean;
6713
6714 /**
6715 * Creates a new Http instance using the specified properties.
6716 * @param [properties] Properties to set
6717 * @returns Http instance
6718 */
6719 public static create(properties?: google.api.IHttp): google.api.Http;
6720
6721 /**
6722 * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
6723 * @param message Http message or plain object to encode
6724 * @param [writer] Writer to encode to
6725 * @returns Writer
6726 */
6727 public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
6728
6729 /**
6730 * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
6731 * @param message Http message or plain object to encode
6732 * @param [writer] Writer to encode to
6733 * @returns Writer
6734 */
6735 public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
6736
6737 /**
6738 * Decodes a Http message from the specified reader or buffer.
6739 * @param reader Reader or buffer to decode from
6740 * @param [length] Message length if known beforehand
6741 * @returns Http
6742 * @throws {Error} If the payload is not a reader or valid buffer
6743 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6744 */
6745 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
6746
6747 /**
6748 * Decodes a Http message from the specified reader or buffer, length delimited.
6749 * @param reader Reader or buffer to decode from
6750 * @returns Http
6751 * @throws {Error} If the payload is not a reader or valid buffer
6752 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6753 */
6754 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
6755
6756 /**
6757 * Verifies a Http message.
6758 * @param message Plain object to verify
6759 * @returns `null` if valid, otherwise the reason why it is not
6760 */
6761 public static verify(message: { [k: string]: any }): (string|null);
6762
6763 /**
6764 * Creates a Http message from a plain object. Also converts values to their respective internal types.
6765 * @param object Plain object
6766 * @returns Http
6767 */
6768 public static fromObject(object: { [k: string]: any }): google.api.Http;
6769
6770 /**
6771 * Creates a plain object from a Http message. Also converts values to other types if specified.
6772 * @param message Http
6773 * @param [options] Conversion options
6774 * @returns Plain object
6775 */
6776 public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
6777
6778 /**
6779 * Converts this Http to JSON.
6780 * @returns JSON object
6781 */
6782 public toJSON(): { [k: string]: any };
6783 }
6784
6785 /** Properties of a HttpRule. */
6786 interface IHttpRule {
6787
6788 /** HttpRule selector */
6789 selector?: (string|null);
6790
6791 /** HttpRule get */
6792 get?: (string|null);
6793
6794 /** HttpRule put */
6795 put?: (string|null);
6796
6797 /** HttpRule post */
6798 post?: (string|null);
6799
6800 /** HttpRule delete */
6801 "delete"?: (string|null);
6802
6803 /** HttpRule patch */
6804 patch?: (string|null);
6805
6806 /** HttpRule custom */
6807 custom?: (google.api.ICustomHttpPattern|null);
6808
6809 /** HttpRule body */
6810 body?: (string|null);
6811
6812 /** HttpRule responseBody */
6813 responseBody?: (string|null);
6814
6815 /** HttpRule additionalBindings */
6816 additionalBindings?: (google.api.IHttpRule[]|null);
6817 }
6818
6819 /** Represents a HttpRule. */
6820 class HttpRule implements IHttpRule {
6821
6822 /**
6823 * Constructs a new HttpRule.
6824 * @param [properties] Properties to set
6825 */
6826 constructor(properties?: google.api.IHttpRule);
6827
6828 /** HttpRule selector. */
6829 public selector: string;
6830
6831 /** HttpRule get. */
6832 public get?: (string|null);
6833
6834 /** HttpRule put. */
6835 public put?: (string|null);
6836
6837 /** HttpRule post. */
6838 public post?: (string|null);
6839
6840 /** HttpRule delete. */
6841 public delete?: (string|null);
6842
6843 /** HttpRule patch. */
6844 public patch?: (string|null);
6845
6846 /** HttpRule custom. */
6847 public custom?: (google.api.ICustomHttpPattern|null);
6848
6849 /** HttpRule body. */
6850 public body: string;
6851
6852 /** HttpRule responseBody. */
6853 public responseBody: string;
6854
6855 /** HttpRule additionalBindings. */
6856 public additionalBindings: google.api.IHttpRule[];
6857
6858 /** HttpRule pattern. */
6859 public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
6860
6861 /**
6862 * Creates a new HttpRule instance using the specified properties.
6863 * @param [properties] Properties to set
6864 * @returns HttpRule instance
6865 */
6866 public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
6867
6868 /**
6869 * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
6870 * @param message HttpRule message or plain object to encode
6871 * @param [writer] Writer to encode to
6872 * @returns Writer
6873 */
6874 public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
6875
6876 /**
6877 * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
6878 * @param message HttpRule message or plain object to encode
6879 * @param [writer] Writer to encode to
6880 * @returns Writer
6881 */
6882 public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
6883
6884 /**
6885 * Decodes a HttpRule message from the specified reader or buffer.
6886 * @param reader Reader or buffer to decode from
6887 * @param [length] Message length if known beforehand
6888 * @returns HttpRule
6889 * @throws {Error} If the payload is not a reader or valid buffer
6890 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6891 */
6892 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
6893
6894 /**
6895 * Decodes a HttpRule message from the specified reader or buffer, length delimited.
6896 * @param reader Reader or buffer to decode from
6897 * @returns HttpRule
6898 * @throws {Error} If the payload is not a reader or valid buffer
6899 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6900 */
6901 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
6902
6903 /**
6904 * Verifies a HttpRule message.
6905 * @param message Plain object to verify
6906 * @returns `null` if valid, otherwise the reason why it is not
6907 */
6908 public static verify(message: { [k: string]: any }): (string|null);
6909
6910 /**
6911 * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
6912 * @param object Plain object
6913 * @returns HttpRule
6914 */
6915 public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
6916
6917 /**
6918 * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
6919 * @param message HttpRule
6920 * @param [options] Conversion options
6921 * @returns Plain object
6922 */
6923 public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
6924
6925 /**
6926 * Converts this HttpRule to JSON.
6927 * @returns JSON object
6928 */
6929 public toJSON(): { [k: string]: any };
6930 }
6931
6932 /** Properties of a CustomHttpPattern. */
6933 interface ICustomHttpPattern {
6934
6935 /** CustomHttpPattern kind */
6936 kind?: (string|null);
6937
6938 /** CustomHttpPattern path */
6939 path?: (string|null);
6940 }
6941
6942 /** Represents a CustomHttpPattern. */
6943 class CustomHttpPattern implements ICustomHttpPattern {
6944
6945 /**
6946 * Constructs a new CustomHttpPattern.
6947 * @param [properties] Properties to set
6948 */
6949 constructor(properties?: google.api.ICustomHttpPattern);
6950
6951 /** CustomHttpPattern kind. */
6952 public kind: string;
6953
6954 /** CustomHttpPattern path. */
6955 public path: string;
6956
6957 /**
6958 * Creates a new CustomHttpPattern instance using the specified properties.
6959 * @param [properties] Properties to set
6960 * @returns CustomHttpPattern instance
6961 */
6962 public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
6963
6964 /**
6965 * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
6966 * @param message CustomHttpPattern message or plain object to encode
6967 * @param [writer] Writer to encode to
6968 * @returns Writer
6969 */
6970 public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
6971
6972 /**
6973 * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
6974 * @param message CustomHttpPattern message or plain object to encode
6975 * @param [writer] Writer to encode to
6976 * @returns Writer
6977 */
6978 public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
6979
6980 /**
6981 * Decodes a CustomHttpPattern message from the specified reader or buffer.
6982 * @param reader Reader or buffer to decode from
6983 * @param [length] Message length if known beforehand
6984 * @returns CustomHttpPattern
6985 * @throws {Error} If the payload is not a reader or valid buffer
6986 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6987 */
6988 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
6989
6990 /**
6991 * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
6992 * @param reader Reader or buffer to decode from
6993 * @returns CustomHttpPattern
6994 * @throws {Error} If the payload is not a reader or valid buffer
6995 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6996 */
6997 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
6998
6999 /**
7000 * Verifies a CustomHttpPattern message.
7001 * @param message Plain object to verify
7002 * @returns `null` if valid, otherwise the reason why it is not
7003 */
7004 public static verify(message: { [k: string]: any }): (string|null);
7005
7006 /**
7007 * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
7008 * @param object Plain object
7009 * @returns CustomHttpPattern
7010 */
7011 public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
7012
7013 /**
7014 * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
7015 * @param message CustomHttpPattern
7016 * @param [options] Conversion options
7017 * @returns Plain object
7018 */
7019 public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
7020
7021 /**
7022 * Converts this CustomHttpPattern to JSON.
7023 * @returns JSON object
7024 */
7025 public toJSON(): { [k: string]: any };
7026 }
7027
7028 /** FieldBehavior enum. */
7029 enum FieldBehavior {
7030 FIELD_BEHAVIOR_UNSPECIFIED = 0,
7031 OPTIONAL = 1,
7032 REQUIRED = 2,
7033 OUTPUT_ONLY = 3,
7034 INPUT_ONLY = 4,
7035 IMMUTABLE = 5,
7036 UNORDERED_LIST = 6,
7037 NON_EMPTY_DEFAULT = 7
7038 }
7039
7040 /** Properties of a ResourceDescriptor. */
7041 interface IResourceDescriptor {
7042
7043 /** ResourceDescriptor type */
7044 type?: (string|null);
7045
7046 /** ResourceDescriptor pattern */
7047 pattern?: (string[]|null);
7048
7049 /** ResourceDescriptor nameField */
7050 nameField?: (string|null);
7051
7052 /** ResourceDescriptor history */
7053 history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
7054
7055 /** ResourceDescriptor plural */
7056 plural?: (string|null);
7057
7058 /** ResourceDescriptor singular */
7059 singular?: (string|null);
7060
7061 /** ResourceDescriptor style */
7062 style?: (google.api.ResourceDescriptor.Style[]|null);
7063 }
7064
7065 /** Represents a ResourceDescriptor. */
7066 class ResourceDescriptor implements IResourceDescriptor {
7067
7068 /**
7069 * Constructs a new ResourceDescriptor.
7070 * @param [properties] Properties to set
7071 */
7072 constructor(properties?: google.api.IResourceDescriptor);
7073
7074 /** ResourceDescriptor type. */
7075 public type: string;
7076
7077 /** ResourceDescriptor pattern. */
7078 public pattern: string[];
7079
7080 /** ResourceDescriptor nameField. */
7081 public nameField: string;
7082
7083 /** ResourceDescriptor history. */
7084 public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
7085
7086 /** ResourceDescriptor plural. */
7087 public plural: string;
7088
7089 /** ResourceDescriptor singular. */
7090 public singular: string;
7091
7092 /** ResourceDescriptor style. */
7093 public style: google.api.ResourceDescriptor.Style[];
7094
7095 /**
7096 * Creates a new ResourceDescriptor instance using the specified properties.
7097 * @param [properties] Properties to set
7098 * @returns ResourceDescriptor instance
7099 */
7100 public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
7101
7102 /**
7103 * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
7104 * @param message ResourceDescriptor message or plain object to encode
7105 * @param [writer] Writer to encode to
7106 * @returns Writer
7107 */
7108 public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
7109
7110 /**
7111 * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
7112 * @param message ResourceDescriptor message or plain object to encode
7113 * @param [writer] Writer to encode to
7114 * @returns Writer
7115 */
7116 public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
7117
7118 /**
7119 * Decodes a ResourceDescriptor message from the specified reader or buffer.
7120 * @param reader Reader or buffer to decode from
7121 * @param [length] Message length if known beforehand
7122 * @returns ResourceDescriptor
7123 * @throws {Error} If the payload is not a reader or valid buffer
7124 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7125 */
7126 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
7127
7128 /**
7129 * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
7130 * @param reader Reader or buffer to decode from
7131 * @returns ResourceDescriptor
7132 * @throws {Error} If the payload is not a reader or valid buffer
7133 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7134 */
7135 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
7136
7137 /**
7138 * Verifies a ResourceDescriptor message.
7139 * @param message Plain object to verify
7140 * @returns `null` if valid, otherwise the reason why it is not
7141 */
7142 public static verify(message: { [k: string]: any }): (string|null);
7143
7144 /**
7145 * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
7146 * @param object Plain object
7147 * @returns ResourceDescriptor
7148 */
7149 public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
7150
7151 /**
7152 * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
7153 * @param message ResourceDescriptor
7154 * @param [options] Conversion options
7155 * @returns Plain object
7156 */
7157 public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
7158
7159 /**
7160 * Converts this ResourceDescriptor to JSON.
7161 * @returns JSON object
7162 */
7163 public toJSON(): { [k: string]: any };
7164 }
7165
7166 namespace ResourceDescriptor {
7167
7168 /** History enum. */
7169 enum History {
7170 HISTORY_UNSPECIFIED = 0,
7171 ORIGINALLY_SINGLE_PATTERN = 1,
7172 FUTURE_MULTI_PATTERN = 2
7173 }
7174
7175 /** Style enum. */
7176 enum Style {
7177 STYLE_UNSPECIFIED = 0,
7178 DECLARATIVE_FRIENDLY = 1
7179 }
7180 }
7181
7182 /** Properties of a ResourceReference. */
7183 interface IResourceReference {
7184
7185 /** ResourceReference type */
7186 type?: (string|null);
7187
7188 /** ResourceReference childType */
7189 childType?: (string|null);
7190 }
7191
7192 /** Represents a ResourceReference. */
7193 class ResourceReference implements IResourceReference {
7194
7195 /**
7196 * Constructs a new ResourceReference.
7197 * @param [properties] Properties to set
7198 */
7199 constructor(properties?: google.api.IResourceReference);
7200
7201 /** ResourceReference type. */
7202 public type: string;
7203
7204 /** ResourceReference childType. */
7205 public childType: string;
7206
7207 /**
7208 * Creates a new ResourceReference instance using the specified properties.
7209 * @param [properties] Properties to set
7210 * @returns ResourceReference instance
7211 */
7212 public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
7213
7214 /**
7215 * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
7216 * @param message ResourceReference message or plain object to encode
7217 * @param [writer] Writer to encode to
7218 * @returns Writer
7219 */
7220 public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
7221
7222 /**
7223 * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
7224 * @param message ResourceReference message or plain object to encode
7225 * @param [writer] Writer to encode to
7226 * @returns Writer
7227 */
7228 public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
7229
7230 /**
7231 * Decodes a ResourceReference message from the specified reader or buffer.
7232 * @param reader Reader or buffer to decode from
7233 * @param [length] Message length if known beforehand
7234 * @returns ResourceReference
7235 * @throws {Error} If the payload is not a reader or valid buffer
7236 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7237 */
7238 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
7239
7240 /**
7241 * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
7242 * @param reader Reader or buffer to decode from
7243 * @returns ResourceReference
7244 * @throws {Error} If the payload is not a reader or valid buffer
7245 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7246 */
7247 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
7248
7249 /**
7250 * Verifies a ResourceReference message.
7251 * @param message Plain object to verify
7252 * @returns `null` if valid, otherwise the reason why it is not
7253 */
7254 public static verify(message: { [k: string]: any }): (string|null);
7255
7256 /**
7257 * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
7258 * @param object Plain object
7259 * @returns ResourceReference
7260 */
7261 public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
7262
7263 /**
7264 * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
7265 * @param message ResourceReference
7266 * @param [options] Conversion options
7267 * @returns Plain object
7268 */
7269 public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
7270
7271 /**
7272 * Converts this ResourceReference to JSON.
7273 * @returns JSON object
7274 */
7275 public toJSON(): { [k: string]: any };
7276 }
7277 }
7278
7279 /** Namespace protobuf. */
7280 namespace protobuf {
7281
7282 /** Properties of a FileDescriptorSet. */
7283 interface IFileDescriptorSet {
7284
7285 /** FileDescriptorSet file */
7286 file?: (google.protobuf.IFileDescriptorProto[]|null);
7287 }
7288
7289 /** Represents a FileDescriptorSet. */
7290 class FileDescriptorSet implements IFileDescriptorSet {
7291
7292 /**
7293 * Constructs a new FileDescriptorSet.
7294 * @param [properties] Properties to set
7295 */
7296 constructor(properties?: google.protobuf.IFileDescriptorSet);
7297
7298 /** FileDescriptorSet file. */
7299 public file: google.protobuf.IFileDescriptorProto[];
7300
7301 /**
7302 * Creates a new FileDescriptorSet instance using the specified properties.
7303 * @param [properties] Properties to set
7304 * @returns FileDescriptorSet instance
7305 */
7306 public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
7307
7308 /**
7309 * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
7310 * @param message FileDescriptorSet message or plain object to encode
7311 * @param [writer] Writer to encode to
7312 * @returns Writer
7313 */
7314 public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
7315
7316 /**
7317 * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
7318 * @param message FileDescriptorSet message or plain object to encode
7319 * @param [writer] Writer to encode to
7320 * @returns Writer
7321 */
7322 public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
7323
7324 /**
7325 * Decodes a FileDescriptorSet message from the specified reader or buffer.
7326 * @param reader Reader or buffer to decode from
7327 * @param [length] Message length if known beforehand
7328 * @returns FileDescriptorSet
7329 * @throws {Error} If the payload is not a reader or valid buffer
7330 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7331 */
7332 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
7333
7334 /**
7335 * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
7336 * @param reader Reader or buffer to decode from
7337 * @returns FileDescriptorSet
7338 * @throws {Error} If the payload is not a reader or valid buffer
7339 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7340 */
7341 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
7342
7343 /**
7344 * Verifies a FileDescriptorSet message.
7345 * @param message Plain object to verify
7346 * @returns `null` if valid, otherwise the reason why it is not
7347 */
7348 public static verify(message: { [k: string]: any }): (string|null);
7349
7350 /**
7351 * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
7352 * @param object Plain object
7353 * @returns FileDescriptorSet
7354 */
7355 public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
7356
7357 /**
7358 * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
7359 * @param message FileDescriptorSet
7360 * @param [options] Conversion options
7361 * @returns Plain object
7362 */
7363 public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
7364
7365 /**
7366 * Converts this FileDescriptorSet to JSON.
7367 * @returns JSON object
7368 */
7369 public toJSON(): { [k: string]: any };
7370 }
7371
7372 /** Properties of a FileDescriptorProto. */
7373 interface IFileDescriptorProto {
7374
7375 /** FileDescriptorProto name */
7376 name?: (string|null);
7377
7378 /** FileDescriptorProto package */
7379 "package"?: (string|null);
7380
7381 /** FileDescriptorProto dependency */
7382 dependency?: (string[]|null);
7383
7384 /** FileDescriptorProto publicDependency */
7385 publicDependency?: (number[]|null);
7386
7387 /** FileDescriptorProto weakDependency */
7388 weakDependency?: (number[]|null);
7389
7390 /** FileDescriptorProto messageType */
7391 messageType?: (google.protobuf.IDescriptorProto[]|null);
7392
7393 /** FileDescriptorProto enumType */
7394 enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
7395
7396 /** FileDescriptorProto service */
7397 service?: (google.protobuf.IServiceDescriptorProto[]|null);
7398
7399 /** FileDescriptorProto extension */
7400 extension?: (google.protobuf.IFieldDescriptorProto[]|null);
7401
7402 /** FileDescriptorProto options */
7403 options?: (google.protobuf.IFileOptions|null);
7404
7405 /** FileDescriptorProto sourceCodeInfo */
7406 sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
7407
7408 /** FileDescriptorProto syntax */
7409 syntax?: (string|null);
7410 }
7411
7412 /** Represents a FileDescriptorProto. */
7413 class FileDescriptorProto implements IFileDescriptorProto {
7414
7415 /**
7416 * Constructs a new FileDescriptorProto.
7417 * @param [properties] Properties to set
7418 */
7419 constructor(properties?: google.protobuf.IFileDescriptorProto);
7420
7421 /** FileDescriptorProto name. */
7422 public name: string;
7423
7424 /** FileDescriptorProto package. */
7425 public package: string;
7426
7427 /** FileDescriptorProto dependency. */
7428 public dependency: string[];
7429
7430 /** FileDescriptorProto publicDependency. */
7431 public publicDependency: number[];
7432
7433 /** FileDescriptorProto weakDependency. */
7434 public weakDependency: number[];
7435
7436 /** FileDescriptorProto messageType. */
7437 public messageType: google.protobuf.IDescriptorProto[];
7438
7439 /** FileDescriptorProto enumType. */
7440 public enumType: google.protobuf.IEnumDescriptorProto[];
7441
7442 /** FileDescriptorProto service. */
7443 public service: google.protobuf.IServiceDescriptorProto[];
7444
7445 /** FileDescriptorProto extension. */
7446 public extension: google.protobuf.IFieldDescriptorProto[];
7447
7448 /** FileDescriptorProto options. */
7449 public options?: (google.protobuf.IFileOptions|null);
7450
7451 /** FileDescriptorProto sourceCodeInfo. */
7452 public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
7453
7454 /** FileDescriptorProto syntax. */
7455 public syntax: string;
7456
7457 /**
7458 * Creates a new FileDescriptorProto instance using the specified properties.
7459 * @param [properties] Properties to set
7460 * @returns FileDescriptorProto instance
7461 */
7462 public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
7463
7464 /**
7465 * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
7466 * @param message FileDescriptorProto message or plain object to encode
7467 * @param [writer] Writer to encode to
7468 * @returns Writer
7469 */
7470 public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7471
7472 /**
7473 * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
7474 * @param message FileDescriptorProto message or plain object to encode
7475 * @param [writer] Writer to encode to
7476 * @returns Writer
7477 */
7478 public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7479
7480 /**
7481 * Decodes a FileDescriptorProto message from the specified reader or buffer.
7482 * @param reader Reader or buffer to decode from
7483 * @param [length] Message length if known beforehand
7484 * @returns FileDescriptorProto
7485 * @throws {Error} If the payload is not a reader or valid buffer
7486 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7487 */
7488 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
7489
7490 /**
7491 * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
7492 * @param reader Reader or buffer to decode from
7493 * @returns FileDescriptorProto
7494 * @throws {Error} If the payload is not a reader or valid buffer
7495 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7496 */
7497 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
7498
7499 /**
7500 * Verifies a FileDescriptorProto message.
7501 * @param message Plain object to verify
7502 * @returns `null` if valid, otherwise the reason why it is not
7503 */
7504 public static verify(message: { [k: string]: any }): (string|null);
7505
7506 /**
7507 * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
7508 * @param object Plain object
7509 * @returns FileDescriptorProto
7510 */
7511 public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
7512
7513 /**
7514 * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
7515 * @param message FileDescriptorProto
7516 * @param [options] Conversion options
7517 * @returns Plain object
7518 */
7519 public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7520
7521 /**
7522 * Converts this FileDescriptorProto to JSON.
7523 * @returns JSON object
7524 */
7525 public toJSON(): { [k: string]: any };
7526 }
7527
7528 /** Properties of a DescriptorProto. */
7529 interface IDescriptorProto {
7530
7531 /** DescriptorProto name */
7532 name?: (string|null);
7533
7534 /** DescriptorProto field */
7535 field?: (google.protobuf.IFieldDescriptorProto[]|null);
7536
7537 /** DescriptorProto extension */
7538 extension?: (google.protobuf.IFieldDescriptorProto[]|null);
7539
7540 /** DescriptorProto nestedType */
7541 nestedType?: (google.protobuf.IDescriptorProto[]|null);
7542
7543 /** DescriptorProto enumType */
7544 enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
7545
7546 /** DescriptorProto extensionRange */
7547 extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
7548
7549 /** DescriptorProto oneofDecl */
7550 oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
7551
7552 /** DescriptorProto options */
7553 options?: (google.protobuf.IMessageOptions|null);
7554
7555 /** DescriptorProto reservedRange */
7556 reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
7557
7558 /** DescriptorProto reservedName */
7559 reservedName?: (string[]|null);
7560 }
7561
7562 /** Represents a DescriptorProto. */
7563 class DescriptorProto implements IDescriptorProto {
7564
7565 /**
7566 * Constructs a new DescriptorProto.
7567 * @param [properties] Properties to set
7568 */
7569 constructor(properties?: google.protobuf.IDescriptorProto);
7570
7571 /** DescriptorProto name. */
7572 public name: string;
7573
7574 /** DescriptorProto field. */
7575 public field: google.protobuf.IFieldDescriptorProto[];
7576
7577 /** DescriptorProto extension. */
7578 public extension: google.protobuf.IFieldDescriptorProto[];
7579
7580 /** DescriptorProto nestedType. */
7581 public nestedType: google.protobuf.IDescriptorProto[];
7582
7583 /** DescriptorProto enumType. */
7584 public enumType: google.protobuf.IEnumDescriptorProto[];
7585
7586 /** DescriptorProto extensionRange. */
7587 public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
7588
7589 /** DescriptorProto oneofDecl. */
7590 public oneofDecl: google.protobuf.IOneofDescriptorProto[];
7591
7592 /** DescriptorProto options. */
7593 public options?: (google.protobuf.IMessageOptions|null);
7594
7595 /** DescriptorProto reservedRange. */
7596 public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
7597
7598 /** DescriptorProto reservedName. */
7599 public reservedName: string[];
7600
7601 /**
7602 * Creates a new DescriptorProto instance using the specified properties.
7603 * @param [properties] Properties to set
7604 * @returns DescriptorProto instance
7605 */
7606 public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
7607
7608 /**
7609 * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
7610 * @param message DescriptorProto message or plain object to encode
7611 * @param [writer] Writer to encode to
7612 * @returns Writer
7613 */
7614 public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7615
7616 /**
7617 * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
7618 * @param message DescriptorProto message or plain object to encode
7619 * @param [writer] Writer to encode to
7620 * @returns Writer
7621 */
7622 public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7623
7624 /**
7625 * Decodes a DescriptorProto message from the specified reader or buffer.
7626 * @param reader Reader or buffer to decode from
7627 * @param [length] Message length if known beforehand
7628 * @returns DescriptorProto
7629 * @throws {Error} If the payload is not a reader or valid buffer
7630 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7631 */
7632 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
7633
7634 /**
7635 * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
7636 * @param reader Reader or buffer to decode from
7637 * @returns DescriptorProto
7638 * @throws {Error} If the payload is not a reader or valid buffer
7639 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7640 */
7641 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
7642
7643 /**
7644 * Verifies a DescriptorProto message.
7645 * @param message Plain object to verify
7646 * @returns `null` if valid, otherwise the reason why it is not
7647 */
7648 public static verify(message: { [k: string]: any }): (string|null);
7649
7650 /**
7651 * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
7652 * @param object Plain object
7653 * @returns DescriptorProto
7654 */
7655 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
7656
7657 /**
7658 * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
7659 * @param message DescriptorProto
7660 * @param [options] Conversion options
7661 * @returns Plain object
7662 */
7663 public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7664
7665 /**
7666 * Converts this DescriptorProto to JSON.
7667 * @returns JSON object
7668 */
7669 public toJSON(): { [k: string]: any };
7670 }
7671
7672 namespace DescriptorProto {
7673
7674 /** Properties of an ExtensionRange. */
7675 interface IExtensionRange {
7676
7677 /** ExtensionRange start */
7678 start?: (number|null);
7679
7680 /** ExtensionRange end */
7681 end?: (number|null);
7682
7683 /** ExtensionRange options */
7684 options?: (google.protobuf.IExtensionRangeOptions|null);
7685 }
7686
7687 /** Represents an ExtensionRange. */
7688 class ExtensionRange implements IExtensionRange {
7689
7690 /**
7691 * Constructs a new ExtensionRange.
7692 * @param [properties] Properties to set
7693 */
7694 constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
7695
7696 /** ExtensionRange start. */
7697 public start: number;
7698
7699 /** ExtensionRange end. */
7700 public end: number;
7701
7702 /** ExtensionRange options. */
7703 public options?: (google.protobuf.IExtensionRangeOptions|null);
7704
7705 /**
7706 * Creates a new ExtensionRange instance using the specified properties.
7707 * @param [properties] Properties to set
7708 * @returns ExtensionRange instance
7709 */
7710 public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
7711
7712 /**
7713 * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
7714 * @param message ExtensionRange message or plain object to encode
7715 * @param [writer] Writer to encode to
7716 * @returns Writer
7717 */
7718 public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
7719
7720 /**
7721 * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
7722 * @param message ExtensionRange message or plain object to encode
7723 * @param [writer] Writer to encode to
7724 * @returns Writer
7725 */
7726 public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
7727
7728 /**
7729 * Decodes an ExtensionRange message from the specified reader or buffer.
7730 * @param reader Reader or buffer to decode from
7731 * @param [length] Message length if known beforehand
7732 * @returns ExtensionRange
7733 * @throws {Error} If the payload is not a reader or valid buffer
7734 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7735 */
7736 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
7737
7738 /**
7739 * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
7740 * @param reader Reader or buffer to decode from
7741 * @returns ExtensionRange
7742 * @throws {Error} If the payload is not a reader or valid buffer
7743 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7744 */
7745 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
7746
7747 /**
7748 * Verifies an ExtensionRange message.
7749 * @param message Plain object to verify
7750 * @returns `null` if valid, otherwise the reason why it is not
7751 */
7752 public static verify(message: { [k: string]: any }): (string|null);
7753
7754 /**
7755 * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
7756 * @param object Plain object
7757 * @returns ExtensionRange
7758 */
7759 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
7760
7761 /**
7762 * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
7763 * @param message ExtensionRange
7764 * @param [options] Conversion options
7765 * @returns Plain object
7766 */
7767 public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
7768
7769 /**
7770 * Converts this ExtensionRange to JSON.
7771 * @returns JSON object
7772 */
7773 public toJSON(): { [k: string]: any };
7774 }
7775
7776 /** Properties of a ReservedRange. */
7777 interface IReservedRange {
7778
7779 /** ReservedRange start */
7780 start?: (number|null);
7781
7782 /** ReservedRange end */
7783 end?: (number|null);
7784 }
7785
7786 /** Represents a ReservedRange. */
7787 class ReservedRange implements IReservedRange {
7788
7789 /**
7790 * Constructs a new ReservedRange.
7791 * @param [properties] Properties to set
7792 */
7793 constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
7794
7795 /** ReservedRange start. */
7796 public start: number;
7797
7798 /** ReservedRange end. */
7799 public end: number;
7800
7801 /**
7802 * Creates a new ReservedRange instance using the specified properties.
7803 * @param [properties] Properties to set
7804 * @returns ReservedRange instance
7805 */
7806 public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
7807
7808 /**
7809 * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
7810 * @param message ReservedRange message or plain object to encode
7811 * @param [writer] Writer to encode to
7812 * @returns Writer
7813 */
7814 public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
7815
7816 /**
7817 * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
7818 * @param message ReservedRange message or plain object to encode
7819 * @param [writer] Writer to encode to
7820 * @returns Writer
7821 */
7822 public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
7823
7824 /**
7825 * Decodes a ReservedRange message from the specified reader or buffer.
7826 * @param reader Reader or buffer to decode from
7827 * @param [length] Message length if known beforehand
7828 * @returns ReservedRange
7829 * @throws {Error} If the payload is not a reader or valid buffer
7830 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7831 */
7832 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
7833
7834 /**
7835 * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
7836 * @param reader Reader or buffer to decode from
7837 * @returns ReservedRange
7838 * @throws {Error} If the payload is not a reader or valid buffer
7839 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7840 */
7841 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
7842
7843 /**
7844 * Verifies a ReservedRange message.
7845 * @param message Plain object to verify
7846 * @returns `null` if valid, otherwise the reason why it is not
7847 */
7848 public static verify(message: { [k: string]: any }): (string|null);
7849
7850 /**
7851 * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
7852 * @param object Plain object
7853 * @returns ReservedRange
7854 */
7855 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
7856
7857 /**
7858 * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
7859 * @param message ReservedRange
7860 * @param [options] Conversion options
7861 * @returns Plain object
7862 */
7863 public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
7864
7865 /**
7866 * Converts this ReservedRange to JSON.
7867 * @returns JSON object
7868 */
7869 public toJSON(): { [k: string]: any };
7870 }
7871 }
7872
7873 /** Properties of an ExtensionRangeOptions. */
7874 interface IExtensionRangeOptions {
7875
7876 /** ExtensionRangeOptions uninterpretedOption */
7877 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
7878 }
7879
7880 /** Represents an ExtensionRangeOptions. */
7881 class ExtensionRangeOptions implements IExtensionRangeOptions {
7882
7883 /**
7884 * Constructs a new ExtensionRangeOptions.
7885 * @param [properties] Properties to set
7886 */
7887 constructor(properties?: google.protobuf.IExtensionRangeOptions);
7888
7889 /** ExtensionRangeOptions uninterpretedOption. */
7890 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
7891
7892 /**
7893 * Creates a new ExtensionRangeOptions instance using the specified properties.
7894 * @param [properties] Properties to set
7895 * @returns ExtensionRangeOptions instance
7896 */
7897 public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
7898
7899 /**
7900 * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
7901 * @param message ExtensionRangeOptions message or plain object to encode
7902 * @param [writer] Writer to encode to
7903 * @returns Writer
7904 */
7905 public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
7906
7907 /**
7908 * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
7909 * @param message ExtensionRangeOptions message or plain object to encode
7910 * @param [writer] Writer to encode to
7911 * @returns Writer
7912 */
7913 public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
7914
7915 /**
7916 * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
7917 * @param reader Reader or buffer to decode from
7918 * @param [length] Message length if known beforehand
7919 * @returns ExtensionRangeOptions
7920 * @throws {Error} If the payload is not a reader or valid buffer
7921 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7922 */
7923 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
7924
7925 /**
7926 * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
7927 * @param reader Reader or buffer to decode from
7928 * @returns ExtensionRangeOptions
7929 * @throws {Error} If the payload is not a reader or valid buffer
7930 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7931 */
7932 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
7933
7934 /**
7935 * Verifies an ExtensionRangeOptions message.
7936 * @param message Plain object to verify
7937 * @returns `null` if valid, otherwise the reason why it is not
7938 */
7939 public static verify(message: { [k: string]: any }): (string|null);
7940
7941 /**
7942 * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
7943 * @param object Plain object
7944 * @returns ExtensionRangeOptions
7945 */
7946 public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
7947
7948 /**
7949 * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
7950 * @param message ExtensionRangeOptions
7951 * @param [options] Conversion options
7952 * @returns Plain object
7953 */
7954 public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
7955
7956 /**
7957 * Converts this ExtensionRangeOptions to JSON.
7958 * @returns JSON object
7959 */
7960 public toJSON(): { [k: string]: any };
7961 }
7962
7963 /** Properties of a FieldDescriptorProto. */
7964 interface IFieldDescriptorProto {
7965
7966 /** FieldDescriptorProto name */
7967 name?: (string|null);
7968
7969 /** FieldDescriptorProto number */
7970 number?: (number|null);
7971
7972 /** FieldDescriptorProto label */
7973 label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
7974
7975 /** FieldDescriptorProto type */
7976 type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
7977
7978 /** FieldDescriptorProto typeName */
7979 typeName?: (string|null);
7980
7981 /** FieldDescriptorProto extendee */
7982 extendee?: (string|null);
7983
7984 /** FieldDescriptorProto defaultValue */
7985 defaultValue?: (string|null);
7986
7987 /** FieldDescriptorProto oneofIndex */
7988 oneofIndex?: (number|null);
7989
7990 /** FieldDescriptorProto jsonName */
7991 jsonName?: (string|null);
7992
7993 /** FieldDescriptorProto options */
7994 options?: (google.protobuf.IFieldOptions|null);
7995
7996 /** FieldDescriptorProto proto3Optional */
7997 proto3Optional?: (boolean|null);
7998 }
7999
8000 /** Represents a FieldDescriptorProto. */
8001 class FieldDescriptorProto implements IFieldDescriptorProto {
8002
8003 /**
8004 * Constructs a new FieldDescriptorProto.
8005 * @param [properties] Properties to set
8006 */
8007 constructor(properties?: google.protobuf.IFieldDescriptorProto);
8008
8009 /** FieldDescriptorProto name. */
8010 public name: string;
8011
8012 /** FieldDescriptorProto number. */
8013 public number: number;
8014
8015 /** FieldDescriptorProto label. */
8016 public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
8017
8018 /** FieldDescriptorProto type. */
8019 public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
8020
8021 /** FieldDescriptorProto typeName. */
8022 public typeName: string;
8023
8024 /** FieldDescriptorProto extendee. */
8025 public extendee: string;
8026
8027 /** FieldDescriptorProto defaultValue. */
8028 public defaultValue: string;
8029
8030 /** FieldDescriptorProto oneofIndex. */
8031 public oneofIndex: number;
8032
8033 /** FieldDescriptorProto jsonName. */
8034 public jsonName: string;
8035
8036 /** FieldDescriptorProto options. */
8037 public options?: (google.protobuf.IFieldOptions|null);
8038
8039 /** FieldDescriptorProto proto3Optional. */
8040 public proto3Optional: boolean;
8041
8042 /**
8043 * Creates a new FieldDescriptorProto instance using the specified properties.
8044 * @param [properties] Properties to set
8045 * @returns FieldDescriptorProto instance
8046 */
8047 public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
8048
8049 /**
8050 * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
8051 * @param message FieldDescriptorProto message or plain object to encode
8052 * @param [writer] Writer to encode to
8053 * @returns Writer
8054 */
8055 public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8056
8057 /**
8058 * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
8059 * @param message FieldDescriptorProto message or plain object to encode
8060 * @param [writer] Writer to encode to
8061 * @returns Writer
8062 */
8063 public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8064
8065 /**
8066 * Decodes a FieldDescriptorProto message from the specified reader or buffer.
8067 * @param reader Reader or buffer to decode from
8068 * @param [length] Message length if known beforehand
8069 * @returns FieldDescriptorProto
8070 * @throws {Error} If the payload is not a reader or valid buffer
8071 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8072 */
8073 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
8074
8075 /**
8076 * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
8077 * @param reader Reader or buffer to decode from
8078 * @returns FieldDescriptorProto
8079 * @throws {Error} If the payload is not a reader or valid buffer
8080 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8081 */
8082 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
8083
8084 /**
8085 * Verifies a FieldDescriptorProto message.
8086 * @param message Plain object to verify
8087 * @returns `null` if valid, otherwise the reason why it is not
8088 */
8089 public static verify(message: { [k: string]: any }): (string|null);
8090
8091 /**
8092 * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
8093 * @param object Plain object
8094 * @returns FieldDescriptorProto
8095 */
8096 public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
8097
8098 /**
8099 * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
8100 * @param message FieldDescriptorProto
8101 * @param [options] Conversion options
8102 * @returns Plain object
8103 */
8104 public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
8105
8106 /**
8107 * Converts this FieldDescriptorProto to JSON.
8108 * @returns JSON object
8109 */
8110 public toJSON(): { [k: string]: any };
8111 }
8112
8113 namespace FieldDescriptorProto {
8114
8115 /** Type enum. */
8116 enum Type {
8117 TYPE_DOUBLE = 1,
8118 TYPE_FLOAT = 2,
8119 TYPE_INT64 = 3,
8120 TYPE_UINT64 = 4,
8121 TYPE_INT32 = 5,
8122 TYPE_FIXED64 = 6,
8123 TYPE_FIXED32 = 7,
8124 TYPE_BOOL = 8,
8125 TYPE_STRING = 9,
8126 TYPE_GROUP = 10,
8127 TYPE_MESSAGE = 11,
8128 TYPE_BYTES = 12,
8129 TYPE_UINT32 = 13,
8130 TYPE_ENUM = 14,
8131 TYPE_SFIXED32 = 15,
8132 TYPE_SFIXED64 = 16,
8133 TYPE_SINT32 = 17,
8134 TYPE_SINT64 = 18
8135 }
8136
8137 /** Label enum. */
8138 enum Label {
8139 LABEL_OPTIONAL = 1,
8140 LABEL_REQUIRED = 2,
8141 LABEL_REPEATED = 3
8142 }
8143 }
8144
8145 /** Properties of an OneofDescriptorProto. */
8146 interface IOneofDescriptorProto {
8147
8148 /** OneofDescriptorProto name */
8149 name?: (string|null);
8150
8151 /** OneofDescriptorProto options */
8152 options?: (google.protobuf.IOneofOptions|null);
8153 }
8154
8155 /** Represents an OneofDescriptorProto. */
8156 class OneofDescriptorProto implements IOneofDescriptorProto {
8157
8158 /**
8159 * Constructs a new OneofDescriptorProto.
8160 * @param [properties] Properties to set
8161 */
8162 constructor(properties?: google.protobuf.IOneofDescriptorProto);
8163
8164 /** OneofDescriptorProto name. */
8165 public name: string;
8166
8167 /** OneofDescriptorProto options. */
8168 public options?: (google.protobuf.IOneofOptions|null);
8169
8170 /**
8171 * Creates a new OneofDescriptorProto instance using the specified properties.
8172 * @param [properties] Properties to set
8173 * @returns OneofDescriptorProto instance
8174 */
8175 public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
8176
8177 /**
8178 * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
8179 * @param message OneofDescriptorProto message or plain object to encode
8180 * @param [writer] Writer to encode to
8181 * @returns Writer
8182 */
8183 public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8184
8185 /**
8186 * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
8187 * @param message OneofDescriptorProto message or plain object to encode
8188 * @param [writer] Writer to encode to
8189 * @returns Writer
8190 */
8191 public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8192
8193 /**
8194 * Decodes an OneofDescriptorProto message from the specified reader or buffer.
8195 * @param reader Reader or buffer to decode from
8196 * @param [length] Message length if known beforehand
8197 * @returns OneofDescriptorProto
8198 * @throws {Error} If the payload is not a reader or valid buffer
8199 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8200 */
8201 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
8202
8203 /**
8204 * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
8205 * @param reader Reader or buffer to decode from
8206 * @returns OneofDescriptorProto
8207 * @throws {Error} If the payload is not a reader or valid buffer
8208 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8209 */
8210 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
8211
8212 /**
8213 * Verifies an OneofDescriptorProto message.
8214 * @param message Plain object to verify
8215 * @returns `null` if valid, otherwise the reason why it is not
8216 */
8217 public static verify(message: { [k: string]: any }): (string|null);
8218
8219 /**
8220 * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
8221 * @param object Plain object
8222 * @returns OneofDescriptorProto
8223 */
8224 public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
8225
8226 /**
8227 * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
8228 * @param message OneofDescriptorProto
8229 * @param [options] Conversion options
8230 * @returns Plain object
8231 */
8232 public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
8233
8234 /**
8235 * Converts this OneofDescriptorProto to JSON.
8236 * @returns JSON object
8237 */
8238 public toJSON(): { [k: string]: any };
8239 }
8240
8241 /** Properties of an EnumDescriptorProto. */
8242 interface IEnumDescriptorProto {
8243
8244 /** EnumDescriptorProto name */
8245 name?: (string|null);
8246
8247 /** EnumDescriptorProto value */
8248 value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
8249
8250 /** EnumDescriptorProto options */
8251 options?: (google.protobuf.IEnumOptions|null);
8252
8253 /** EnumDescriptorProto reservedRange */
8254 reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
8255
8256 /** EnumDescriptorProto reservedName */
8257 reservedName?: (string[]|null);
8258 }
8259
8260 /** Represents an EnumDescriptorProto. */
8261 class EnumDescriptorProto implements IEnumDescriptorProto {
8262
8263 /**
8264 * Constructs a new EnumDescriptorProto.
8265 * @param [properties] Properties to set
8266 */
8267 constructor(properties?: google.protobuf.IEnumDescriptorProto);
8268
8269 /** EnumDescriptorProto name. */
8270 public name: string;
8271
8272 /** EnumDescriptorProto value. */
8273 public value: google.protobuf.IEnumValueDescriptorProto[];
8274
8275 /** EnumDescriptorProto options. */
8276 public options?: (google.protobuf.IEnumOptions|null);
8277
8278 /** EnumDescriptorProto reservedRange. */
8279 public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
8280
8281 /** EnumDescriptorProto reservedName. */
8282 public reservedName: string[];
8283
8284 /**
8285 * Creates a new EnumDescriptorProto instance using the specified properties.
8286 * @param [properties] Properties to set
8287 * @returns EnumDescriptorProto instance
8288 */
8289 public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
8290
8291 /**
8292 * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
8293 * @param message EnumDescriptorProto message or plain object to encode
8294 * @param [writer] Writer to encode to
8295 * @returns Writer
8296 */
8297 public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8298
8299 /**
8300 * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
8301 * @param message EnumDescriptorProto message or plain object to encode
8302 * @param [writer] Writer to encode to
8303 * @returns Writer
8304 */
8305 public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8306
8307 /**
8308 * Decodes an EnumDescriptorProto message from the specified reader or buffer.
8309 * @param reader Reader or buffer to decode from
8310 * @param [length] Message length if known beforehand
8311 * @returns EnumDescriptorProto
8312 * @throws {Error} If the payload is not a reader or valid buffer
8313 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8314 */
8315 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
8316
8317 /**
8318 * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
8319 * @param reader Reader or buffer to decode from
8320 * @returns EnumDescriptorProto
8321 * @throws {Error} If the payload is not a reader or valid buffer
8322 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8323 */
8324 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
8325
8326 /**
8327 * Verifies an EnumDescriptorProto message.
8328 * @param message Plain object to verify
8329 * @returns `null` if valid, otherwise the reason why it is not
8330 */
8331 public static verify(message: { [k: string]: any }): (string|null);
8332
8333 /**
8334 * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
8335 * @param object Plain object
8336 * @returns EnumDescriptorProto
8337 */
8338 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
8339
8340 /**
8341 * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
8342 * @param message EnumDescriptorProto
8343 * @param [options] Conversion options
8344 * @returns Plain object
8345 */
8346 public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
8347
8348 /**
8349 * Converts this EnumDescriptorProto to JSON.
8350 * @returns JSON object
8351 */
8352 public toJSON(): { [k: string]: any };
8353 }
8354
8355 namespace EnumDescriptorProto {
8356
8357 /** Properties of an EnumReservedRange. */
8358 interface IEnumReservedRange {
8359
8360 /** EnumReservedRange start */
8361 start?: (number|null);
8362
8363 /** EnumReservedRange end */
8364 end?: (number|null);
8365 }
8366
8367 /** Represents an EnumReservedRange. */
8368 class EnumReservedRange implements IEnumReservedRange {
8369
8370 /**
8371 * Constructs a new EnumReservedRange.
8372 * @param [properties] Properties to set
8373 */
8374 constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
8375
8376 /** EnumReservedRange start. */
8377 public start: number;
8378
8379 /** EnumReservedRange end. */
8380 public end: number;
8381
8382 /**
8383 * Creates a new EnumReservedRange instance using the specified properties.
8384 * @param [properties] Properties to set
8385 * @returns EnumReservedRange instance
8386 */
8387 public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
8388
8389 /**
8390 * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
8391 * @param message EnumReservedRange message or plain object to encode
8392 * @param [writer] Writer to encode to
8393 * @returns Writer
8394 */
8395 public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
8396
8397 /**
8398 * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
8399 * @param message EnumReservedRange message or plain object to encode
8400 * @param [writer] Writer to encode to
8401 * @returns Writer
8402 */
8403 public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
8404
8405 /**
8406 * Decodes an EnumReservedRange message from the specified reader or buffer.
8407 * @param reader Reader or buffer to decode from
8408 * @param [length] Message length if known beforehand
8409 * @returns EnumReservedRange
8410 * @throws {Error} If the payload is not a reader or valid buffer
8411 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8412 */
8413 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
8414
8415 /**
8416 * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
8417 * @param reader Reader or buffer to decode from
8418 * @returns EnumReservedRange
8419 * @throws {Error} If the payload is not a reader or valid buffer
8420 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8421 */
8422 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
8423
8424 /**
8425 * Verifies an EnumReservedRange message.
8426 * @param message Plain object to verify
8427 * @returns `null` if valid, otherwise the reason why it is not
8428 */
8429 public static verify(message: { [k: string]: any }): (string|null);
8430
8431 /**
8432 * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
8433 * @param object Plain object
8434 * @returns EnumReservedRange
8435 */
8436 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
8437
8438 /**
8439 * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
8440 * @param message EnumReservedRange
8441 * @param [options] Conversion options
8442 * @returns Plain object
8443 */
8444 public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
8445
8446 /**
8447 * Converts this EnumReservedRange to JSON.
8448 * @returns JSON object
8449 */
8450 public toJSON(): { [k: string]: any };
8451 }
8452 }
8453
8454 /** Properties of an EnumValueDescriptorProto. */
8455 interface IEnumValueDescriptorProto {
8456
8457 /** EnumValueDescriptorProto name */
8458 name?: (string|null);
8459
8460 /** EnumValueDescriptorProto number */
8461 number?: (number|null);
8462
8463 /** EnumValueDescriptorProto options */
8464 options?: (google.protobuf.IEnumValueOptions|null);
8465 }
8466
8467 /** Represents an EnumValueDescriptorProto. */
8468 class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
8469
8470 /**
8471 * Constructs a new EnumValueDescriptorProto.
8472 * @param [properties] Properties to set
8473 */
8474 constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
8475
8476 /** EnumValueDescriptorProto name. */
8477 public name: string;
8478
8479 /** EnumValueDescriptorProto number. */
8480 public number: number;
8481
8482 /** EnumValueDescriptorProto options. */
8483 public options?: (google.protobuf.IEnumValueOptions|null);
8484
8485 /**
8486 * Creates a new EnumValueDescriptorProto instance using the specified properties.
8487 * @param [properties] Properties to set
8488 * @returns EnumValueDescriptorProto instance
8489 */
8490 public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
8491
8492 /**
8493 * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
8494 * @param message EnumValueDescriptorProto message or plain object to encode
8495 * @param [writer] Writer to encode to
8496 * @returns Writer
8497 */
8498 public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8499
8500 /**
8501 * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
8502 * @param message EnumValueDescriptorProto message or plain object to encode
8503 * @param [writer] Writer to encode to
8504 * @returns Writer
8505 */
8506 public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8507
8508 /**
8509 * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
8510 * @param reader Reader or buffer to decode from
8511 * @param [length] Message length if known beforehand
8512 * @returns EnumValueDescriptorProto
8513 * @throws {Error} If the payload is not a reader or valid buffer
8514 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8515 */
8516 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
8517
8518 /**
8519 * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
8520 * @param reader Reader or buffer to decode from
8521 * @returns EnumValueDescriptorProto
8522 * @throws {Error} If the payload is not a reader or valid buffer
8523 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8524 */
8525 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
8526
8527 /**
8528 * Verifies an EnumValueDescriptorProto message.
8529 * @param message Plain object to verify
8530 * @returns `null` if valid, otherwise the reason why it is not
8531 */
8532 public static verify(message: { [k: string]: any }): (string|null);
8533
8534 /**
8535 * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
8536 * @param object Plain object
8537 * @returns EnumValueDescriptorProto
8538 */
8539 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
8540
8541 /**
8542 * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
8543 * @param message EnumValueDescriptorProto
8544 * @param [options] Conversion options
8545 * @returns Plain object
8546 */
8547 public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
8548
8549 /**
8550 * Converts this EnumValueDescriptorProto to JSON.
8551 * @returns JSON object
8552 */
8553 public toJSON(): { [k: string]: any };
8554 }
8555
8556 /** Properties of a ServiceDescriptorProto. */
8557 interface IServiceDescriptorProto {
8558
8559 /** ServiceDescriptorProto name */
8560 name?: (string|null);
8561
8562 /** ServiceDescriptorProto method */
8563 method?: (google.protobuf.IMethodDescriptorProto[]|null);
8564
8565 /** ServiceDescriptorProto options */
8566 options?: (google.protobuf.IServiceOptions|null);
8567 }
8568
8569 /** Represents a ServiceDescriptorProto. */
8570 class ServiceDescriptorProto implements IServiceDescriptorProto {
8571
8572 /**
8573 * Constructs a new ServiceDescriptorProto.
8574 * @param [properties] Properties to set
8575 */
8576 constructor(properties?: google.protobuf.IServiceDescriptorProto);
8577
8578 /** ServiceDescriptorProto name. */
8579 public name: string;
8580
8581 /** ServiceDescriptorProto method. */
8582 public method: google.protobuf.IMethodDescriptorProto[];
8583
8584 /** ServiceDescriptorProto options. */
8585 public options?: (google.protobuf.IServiceOptions|null);
8586
8587 /**
8588 * Creates a new ServiceDescriptorProto instance using the specified properties.
8589 * @param [properties] Properties to set
8590 * @returns ServiceDescriptorProto instance
8591 */
8592 public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
8593
8594 /**
8595 * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
8596 * @param message ServiceDescriptorProto message or plain object to encode
8597 * @param [writer] Writer to encode to
8598 * @returns Writer
8599 */
8600 public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8601
8602 /**
8603 * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
8604 * @param message ServiceDescriptorProto message or plain object to encode
8605 * @param [writer] Writer to encode to
8606 * @returns Writer
8607 */
8608 public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8609
8610 /**
8611 * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
8612 * @param reader Reader or buffer to decode from
8613 * @param [length] Message length if known beforehand
8614 * @returns ServiceDescriptorProto
8615 * @throws {Error} If the payload is not a reader or valid buffer
8616 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8617 */
8618 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
8619
8620 /**
8621 * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
8622 * @param reader Reader or buffer to decode from
8623 * @returns ServiceDescriptorProto
8624 * @throws {Error} If the payload is not a reader or valid buffer
8625 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8626 */
8627 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
8628
8629 /**
8630 * Verifies a ServiceDescriptorProto message.
8631 * @param message Plain object to verify
8632 * @returns `null` if valid, otherwise the reason why it is not
8633 */
8634 public static verify(message: { [k: string]: any }): (string|null);
8635
8636 /**
8637 * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
8638 * @param object Plain object
8639 * @returns ServiceDescriptorProto
8640 */
8641 public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
8642
8643 /**
8644 * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
8645 * @param message ServiceDescriptorProto
8646 * @param [options] Conversion options
8647 * @returns Plain object
8648 */
8649 public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
8650
8651 /**
8652 * Converts this ServiceDescriptorProto to JSON.
8653 * @returns JSON object
8654 */
8655 public toJSON(): { [k: string]: any };
8656 }
8657
8658 /** Properties of a MethodDescriptorProto. */
8659 interface IMethodDescriptorProto {
8660
8661 /** MethodDescriptorProto name */
8662 name?: (string|null);
8663
8664 /** MethodDescriptorProto inputType */
8665 inputType?: (string|null);
8666
8667 /** MethodDescriptorProto outputType */
8668 outputType?: (string|null);
8669
8670 /** MethodDescriptorProto options */
8671 options?: (google.protobuf.IMethodOptions|null);
8672
8673 /** MethodDescriptorProto clientStreaming */
8674 clientStreaming?: (boolean|null);
8675
8676 /** MethodDescriptorProto serverStreaming */
8677 serverStreaming?: (boolean|null);
8678 }
8679
8680 /** Represents a MethodDescriptorProto. */
8681 class MethodDescriptorProto implements IMethodDescriptorProto {
8682
8683 /**
8684 * Constructs a new MethodDescriptorProto.
8685 * @param [properties] Properties to set
8686 */
8687 constructor(properties?: google.protobuf.IMethodDescriptorProto);
8688
8689 /** MethodDescriptorProto name. */
8690 public name: string;
8691
8692 /** MethodDescriptorProto inputType. */
8693 public inputType: string;
8694
8695 /** MethodDescriptorProto outputType. */
8696 public outputType: string;
8697
8698 /** MethodDescriptorProto options. */
8699 public options?: (google.protobuf.IMethodOptions|null);
8700
8701 /** MethodDescriptorProto clientStreaming. */
8702 public clientStreaming: boolean;
8703
8704 /** MethodDescriptorProto serverStreaming. */
8705 public serverStreaming: boolean;
8706
8707 /**
8708 * Creates a new MethodDescriptorProto instance using the specified properties.
8709 * @param [properties] Properties to set
8710 * @returns MethodDescriptorProto instance
8711 */
8712 public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
8713
8714 /**
8715 * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
8716 * @param message MethodDescriptorProto message or plain object to encode
8717 * @param [writer] Writer to encode to
8718 * @returns Writer
8719 */
8720 public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8721
8722 /**
8723 * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
8724 * @param message MethodDescriptorProto message or plain object to encode
8725 * @param [writer] Writer to encode to
8726 * @returns Writer
8727 */
8728 public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8729
8730 /**
8731 * Decodes a MethodDescriptorProto message from the specified reader or buffer.
8732 * @param reader Reader or buffer to decode from
8733 * @param [length] Message length if known beforehand
8734 * @returns MethodDescriptorProto
8735 * @throws {Error} If the payload is not a reader or valid buffer
8736 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8737 */
8738 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
8739
8740 /**
8741 * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
8742 * @param reader Reader or buffer to decode from
8743 * @returns MethodDescriptorProto
8744 * @throws {Error} If the payload is not a reader or valid buffer
8745 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8746 */
8747 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
8748
8749 /**
8750 * Verifies a MethodDescriptorProto message.
8751 * @param message Plain object to verify
8752 * @returns `null` if valid, otherwise the reason why it is not
8753 */
8754 public static verify(message: { [k: string]: any }): (string|null);
8755
8756 /**
8757 * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
8758 * @param object Plain object
8759 * @returns MethodDescriptorProto
8760 */
8761 public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
8762
8763 /**
8764 * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
8765 * @param message MethodDescriptorProto
8766 * @param [options] Conversion options
8767 * @returns Plain object
8768 */
8769 public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
8770
8771 /**
8772 * Converts this MethodDescriptorProto to JSON.
8773 * @returns JSON object
8774 */
8775 public toJSON(): { [k: string]: any };
8776 }
8777
8778 /** Properties of a FileOptions. */
8779 interface IFileOptions {
8780
8781 /** FileOptions javaPackage */
8782 javaPackage?: (string|null);
8783
8784 /** FileOptions javaOuterClassname */
8785 javaOuterClassname?: (string|null);
8786
8787 /** FileOptions javaMultipleFiles */
8788 javaMultipleFiles?: (boolean|null);
8789
8790 /** FileOptions javaGenerateEqualsAndHash */
8791 javaGenerateEqualsAndHash?: (boolean|null);
8792
8793 /** FileOptions javaStringCheckUtf8 */
8794 javaStringCheckUtf8?: (boolean|null);
8795
8796 /** FileOptions optimizeFor */
8797 optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
8798
8799 /** FileOptions goPackage */
8800 goPackage?: (string|null);
8801
8802 /** FileOptions ccGenericServices */
8803 ccGenericServices?: (boolean|null);
8804
8805 /** FileOptions javaGenericServices */
8806 javaGenericServices?: (boolean|null);
8807
8808 /** FileOptions pyGenericServices */
8809 pyGenericServices?: (boolean|null);
8810
8811 /** FileOptions phpGenericServices */
8812 phpGenericServices?: (boolean|null);
8813
8814 /** FileOptions deprecated */
8815 deprecated?: (boolean|null);
8816
8817 /** FileOptions ccEnableArenas */
8818 ccEnableArenas?: (boolean|null);
8819
8820 /** FileOptions objcClassPrefix */
8821 objcClassPrefix?: (string|null);
8822
8823 /** FileOptions csharpNamespace */
8824 csharpNamespace?: (string|null);
8825
8826 /** FileOptions swiftPrefix */
8827 swiftPrefix?: (string|null);
8828
8829 /** FileOptions phpClassPrefix */
8830 phpClassPrefix?: (string|null);
8831
8832 /** FileOptions phpNamespace */
8833 phpNamespace?: (string|null);
8834
8835 /** FileOptions phpMetadataNamespace */
8836 phpMetadataNamespace?: (string|null);
8837
8838 /** FileOptions rubyPackage */
8839 rubyPackage?: (string|null);
8840
8841 /** FileOptions uninterpretedOption */
8842 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8843
8844 /** FileOptions .google.api.resourceDefinition */
8845 ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
8846 }
8847
8848 /** Represents a FileOptions. */
8849 class FileOptions implements IFileOptions {
8850
8851 /**
8852 * Constructs a new FileOptions.
8853 * @param [properties] Properties to set
8854 */
8855 constructor(properties?: google.protobuf.IFileOptions);
8856
8857 /** FileOptions javaPackage. */
8858 public javaPackage: string;
8859
8860 /** FileOptions javaOuterClassname. */
8861 public javaOuterClassname: string;
8862
8863 /** FileOptions javaMultipleFiles. */
8864 public javaMultipleFiles: boolean;
8865
8866 /** FileOptions javaGenerateEqualsAndHash. */
8867 public javaGenerateEqualsAndHash: boolean;
8868
8869 /** FileOptions javaStringCheckUtf8. */
8870 public javaStringCheckUtf8: boolean;
8871
8872 /** FileOptions optimizeFor. */
8873 public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
8874
8875 /** FileOptions goPackage. */
8876 public goPackage: string;
8877
8878 /** FileOptions ccGenericServices. */
8879 public ccGenericServices: boolean;
8880
8881 /** FileOptions javaGenericServices. */
8882 public javaGenericServices: boolean;
8883
8884 /** FileOptions pyGenericServices. */
8885 public pyGenericServices: boolean;
8886
8887 /** FileOptions phpGenericServices. */
8888 public phpGenericServices: boolean;
8889
8890 /** FileOptions deprecated. */
8891 public deprecated: boolean;
8892
8893 /** FileOptions ccEnableArenas. */
8894 public ccEnableArenas: boolean;
8895
8896 /** FileOptions objcClassPrefix. */
8897 public objcClassPrefix: string;
8898
8899 /** FileOptions csharpNamespace. */
8900 public csharpNamespace: string;
8901
8902 /** FileOptions swiftPrefix. */
8903 public swiftPrefix: string;
8904
8905 /** FileOptions phpClassPrefix. */
8906 public phpClassPrefix: string;
8907
8908 /** FileOptions phpNamespace. */
8909 public phpNamespace: string;
8910
8911 /** FileOptions phpMetadataNamespace. */
8912 public phpMetadataNamespace: string;
8913
8914 /** FileOptions rubyPackage. */
8915 public rubyPackage: string;
8916
8917 /** FileOptions uninterpretedOption. */
8918 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8919
8920 /**
8921 * Creates a new FileOptions instance using the specified properties.
8922 * @param [properties] Properties to set
8923 * @returns FileOptions instance
8924 */
8925 public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
8926
8927 /**
8928 * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
8929 * @param message FileOptions message or plain object to encode
8930 * @param [writer] Writer to encode to
8931 * @returns Writer
8932 */
8933 public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8934
8935 /**
8936 * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
8937 * @param message FileOptions message or plain object to encode
8938 * @param [writer] Writer to encode to
8939 * @returns Writer
8940 */
8941 public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8942
8943 /**
8944 * Decodes a FileOptions message from the specified reader or buffer.
8945 * @param reader Reader or buffer to decode from
8946 * @param [length] Message length if known beforehand
8947 * @returns FileOptions
8948 * @throws {Error} If the payload is not a reader or valid buffer
8949 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8950 */
8951 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
8952
8953 /**
8954 * Decodes a FileOptions message from the specified reader or buffer, length delimited.
8955 * @param reader Reader or buffer to decode from
8956 * @returns FileOptions
8957 * @throws {Error} If the payload is not a reader or valid buffer
8958 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8959 */
8960 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
8961
8962 /**
8963 * Verifies a FileOptions message.
8964 * @param message Plain object to verify
8965 * @returns `null` if valid, otherwise the reason why it is not
8966 */
8967 public static verify(message: { [k: string]: any }): (string|null);
8968
8969 /**
8970 * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
8971 * @param object Plain object
8972 * @returns FileOptions
8973 */
8974 public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
8975
8976 /**
8977 * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
8978 * @param message FileOptions
8979 * @param [options] Conversion options
8980 * @returns Plain object
8981 */
8982 public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8983
8984 /**
8985 * Converts this FileOptions to JSON.
8986 * @returns JSON object
8987 */
8988 public toJSON(): { [k: string]: any };
8989 }
8990
8991 namespace FileOptions {
8992
8993 /** OptimizeMode enum. */
8994 enum OptimizeMode {
8995 SPEED = 1,
8996 CODE_SIZE = 2,
8997 LITE_RUNTIME = 3
8998 }
8999 }
9000
9001 /** Properties of a MessageOptions. */
9002 interface IMessageOptions {
9003
9004 /** MessageOptions messageSetWireFormat */
9005 messageSetWireFormat?: (boolean|null);
9006
9007 /** MessageOptions noStandardDescriptorAccessor */
9008 noStandardDescriptorAccessor?: (boolean|null);
9009
9010 /** MessageOptions deprecated */
9011 deprecated?: (boolean|null);
9012
9013 /** MessageOptions mapEntry */
9014 mapEntry?: (boolean|null);
9015
9016 /** MessageOptions uninterpretedOption */
9017 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
9018
9019 /** MessageOptions .google.api.resource */
9020 ".google.api.resource"?: (google.api.IResourceDescriptor|null);
9021 }
9022
9023 /** Represents a MessageOptions. */
9024 class MessageOptions implements IMessageOptions {
9025
9026 /**
9027 * Constructs a new MessageOptions.
9028 * @param [properties] Properties to set
9029 */
9030 constructor(properties?: google.protobuf.IMessageOptions);
9031
9032 /** MessageOptions messageSetWireFormat. */
9033 public messageSetWireFormat: boolean;
9034
9035 /** MessageOptions noStandardDescriptorAccessor. */
9036 public noStandardDescriptorAccessor: boolean;
9037
9038 /** MessageOptions deprecated. */
9039 public deprecated: boolean;
9040
9041 /** MessageOptions mapEntry. */
9042 public mapEntry: boolean;
9043
9044 /** MessageOptions uninterpretedOption. */
9045 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
9046
9047 /**
9048 * Creates a new MessageOptions instance using the specified properties.
9049 * @param [properties] Properties to set
9050 * @returns MessageOptions instance
9051 */
9052 public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
9053
9054 /**
9055 * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
9056 * @param message MessageOptions message or plain object to encode
9057 * @param [writer] Writer to encode to
9058 * @returns Writer
9059 */
9060 public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9061
9062 /**
9063 * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
9064 * @param message MessageOptions message or plain object to encode
9065 * @param [writer] Writer to encode to
9066 * @returns Writer
9067 */
9068 public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9069
9070 /**
9071 * Decodes a MessageOptions message from the specified reader or buffer.
9072 * @param reader Reader or buffer to decode from
9073 * @param [length] Message length if known beforehand
9074 * @returns MessageOptions
9075 * @throws {Error} If the payload is not a reader or valid buffer
9076 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9077 */
9078 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
9079
9080 /**
9081 * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
9082 * @param reader Reader or buffer to decode from
9083 * @returns MessageOptions
9084 * @throws {Error} If the payload is not a reader or valid buffer
9085 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9086 */
9087 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
9088
9089 /**
9090 * Verifies a MessageOptions message.
9091 * @param message Plain object to verify
9092 * @returns `null` if valid, otherwise the reason why it is not
9093 */
9094 public static verify(message: { [k: string]: any }): (string|null);
9095
9096 /**
9097 * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
9098 * @param object Plain object
9099 * @returns MessageOptions
9100 */
9101 public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
9102
9103 /**
9104 * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
9105 * @param message MessageOptions
9106 * @param [options] Conversion options
9107 * @returns Plain object
9108 */
9109 public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
9110
9111 /**
9112 * Converts this MessageOptions to JSON.
9113 * @returns JSON object
9114 */
9115 public toJSON(): { [k: string]: any };
9116 }
9117
9118 /** Properties of a FieldOptions. */
9119 interface IFieldOptions {
9120
9121 /** FieldOptions ctype */
9122 ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
9123
9124 /** FieldOptions packed */
9125 packed?: (boolean|null);
9126
9127 /** FieldOptions jstype */
9128 jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
9129
9130 /** FieldOptions lazy */
9131 lazy?: (boolean|null);
9132
9133 /** FieldOptions unverifiedLazy */
9134 unverifiedLazy?: (boolean|null);
9135
9136 /** FieldOptions deprecated */
9137 deprecated?: (boolean|null);
9138
9139 /** FieldOptions weak */
9140 weak?: (boolean|null);
9141
9142 /** FieldOptions uninterpretedOption */
9143 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
9144
9145 /** FieldOptions .google.api.fieldBehavior */
9146 ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
9147
9148 /** FieldOptions .google.api.resourceReference */
9149 ".google.api.resourceReference"?: (google.api.IResourceReference|null);
9150 }
9151
9152 /** Represents a FieldOptions. */
9153 class FieldOptions implements IFieldOptions {
9154
9155 /**
9156 * Constructs a new FieldOptions.
9157 * @param [properties] Properties to set
9158 */
9159 constructor(properties?: google.protobuf.IFieldOptions);
9160
9161 /** FieldOptions ctype. */
9162 public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
9163
9164 /** FieldOptions packed. */
9165 public packed: boolean;
9166
9167 /** FieldOptions jstype. */
9168 public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
9169
9170 /** FieldOptions lazy. */
9171 public lazy: boolean;
9172
9173 /** FieldOptions unverifiedLazy. */
9174 public unverifiedLazy: boolean;
9175
9176 /** FieldOptions deprecated. */
9177 public deprecated: boolean;
9178
9179 /** FieldOptions weak. */
9180 public weak: boolean;
9181
9182 /** FieldOptions uninterpretedOption. */
9183 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
9184
9185 /**
9186 * Creates a new FieldOptions instance using the specified properties.
9187 * @param [properties] Properties to set
9188 * @returns FieldOptions instance
9189 */
9190 public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
9191
9192 /**
9193 * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
9194 * @param message FieldOptions message or plain object to encode
9195 * @param [writer] Writer to encode to
9196 * @returns Writer
9197 */
9198 public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9199
9200 /**
9201 * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
9202 * @param message FieldOptions message or plain object to encode
9203 * @param [writer] Writer to encode to
9204 * @returns Writer
9205 */
9206 public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9207
9208 /**
9209 * Decodes a FieldOptions message from the specified reader or buffer.
9210 * @param reader Reader or buffer to decode from
9211 * @param [length] Message length if known beforehand
9212 * @returns FieldOptions
9213 * @throws {Error} If the payload is not a reader or valid buffer
9214 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9215 */
9216 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
9217
9218 /**
9219 * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
9220 * @param reader Reader or buffer to decode from
9221 * @returns FieldOptions
9222 * @throws {Error} If the payload is not a reader or valid buffer
9223 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9224 */
9225 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
9226
9227 /**
9228 * Verifies a FieldOptions message.
9229 * @param message Plain object to verify
9230 * @returns `null` if valid, otherwise the reason why it is not
9231 */
9232 public static verify(message: { [k: string]: any }): (string|null);
9233
9234 /**
9235 * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
9236 * @param object Plain object
9237 * @returns FieldOptions
9238 */
9239 public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
9240
9241 /**
9242 * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
9243 * @param message FieldOptions
9244 * @param [options] Conversion options
9245 * @returns Plain object
9246 */
9247 public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
9248
9249 /**
9250 * Converts this FieldOptions to JSON.
9251 * @returns JSON object
9252 */
9253 public toJSON(): { [k: string]: any };
9254 }
9255
9256 namespace FieldOptions {
9257
9258 /** CType enum. */
9259 enum CType {
9260 STRING = 0,
9261 CORD = 1,
9262 STRING_PIECE = 2
9263 }
9264
9265 /** JSType enum. */
9266 enum JSType {
9267 JS_NORMAL = 0,
9268 JS_STRING = 1,
9269 JS_NUMBER = 2
9270 }
9271 }
9272
9273 /** Properties of an OneofOptions. */
9274 interface IOneofOptions {
9275
9276 /** OneofOptions uninterpretedOption */
9277 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
9278 }
9279
9280 /** Represents an OneofOptions. */
9281 class OneofOptions implements IOneofOptions {
9282
9283 /**
9284 * Constructs a new OneofOptions.
9285 * @param [properties] Properties to set
9286 */
9287 constructor(properties?: google.protobuf.IOneofOptions);
9288
9289 /** OneofOptions uninterpretedOption. */
9290 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
9291
9292 /**
9293 * Creates a new OneofOptions instance using the specified properties.
9294 * @param [properties] Properties to set
9295 * @returns OneofOptions instance
9296 */
9297 public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
9298
9299 /**
9300 * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
9301 * @param message OneofOptions message or plain object to encode
9302 * @param [writer] Writer to encode to
9303 * @returns Writer
9304 */
9305 public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9306
9307 /**
9308 * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
9309 * @param message OneofOptions message or plain object to encode
9310 * @param [writer] Writer to encode to
9311 * @returns Writer
9312 */
9313 public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9314
9315 /**
9316 * Decodes an OneofOptions message from the specified reader or buffer.
9317 * @param reader Reader or buffer to decode from
9318 * @param [length] Message length if known beforehand
9319 * @returns OneofOptions
9320 * @throws {Error} If the payload is not a reader or valid buffer
9321 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9322 */
9323 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
9324
9325 /**
9326 * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
9327 * @param reader Reader or buffer to decode from
9328 * @returns OneofOptions
9329 * @throws {Error} If the payload is not a reader or valid buffer
9330 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9331 */
9332 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
9333
9334 /**
9335 * Verifies an OneofOptions message.
9336 * @param message Plain object to verify
9337 * @returns `null` if valid, otherwise the reason why it is not
9338 */
9339 public static verify(message: { [k: string]: any }): (string|null);
9340
9341 /**
9342 * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
9343 * @param object Plain object
9344 * @returns OneofOptions
9345 */
9346 public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
9347
9348 /**
9349 * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
9350 * @param message OneofOptions
9351 * @param [options] Conversion options
9352 * @returns Plain object
9353 */
9354 public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
9355
9356 /**
9357 * Converts this OneofOptions to JSON.
9358 * @returns JSON object
9359 */
9360 public toJSON(): { [k: string]: any };
9361 }
9362
9363 /** Properties of an EnumOptions. */
9364 interface IEnumOptions {
9365
9366 /** EnumOptions allowAlias */
9367 allowAlias?: (boolean|null);
9368
9369 /** EnumOptions deprecated */
9370 deprecated?: (boolean|null);
9371
9372 /** EnumOptions uninterpretedOption */
9373 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
9374 }
9375
9376 /** Represents an EnumOptions. */
9377 class EnumOptions implements IEnumOptions {
9378
9379 /**
9380 * Constructs a new EnumOptions.
9381 * @param [properties] Properties to set
9382 */
9383 constructor(properties?: google.protobuf.IEnumOptions);
9384
9385 /** EnumOptions allowAlias. */
9386 public allowAlias: boolean;
9387
9388 /** EnumOptions deprecated. */
9389 public deprecated: boolean;
9390
9391 /** EnumOptions uninterpretedOption. */
9392 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
9393
9394 /**
9395 * Creates a new EnumOptions instance using the specified properties.
9396 * @param [properties] Properties to set
9397 * @returns EnumOptions instance
9398 */
9399 public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
9400
9401 /**
9402 * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
9403 * @param message EnumOptions message or plain object to encode
9404 * @param [writer] Writer to encode to
9405 * @returns Writer
9406 */
9407 public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9408
9409 /**
9410 * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
9411 * @param message EnumOptions message or plain object to encode
9412 * @param [writer] Writer to encode to
9413 * @returns Writer
9414 */
9415 public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9416
9417 /**
9418 * Decodes an EnumOptions message from the specified reader or buffer.
9419 * @param reader Reader or buffer to decode from
9420 * @param [length] Message length if known beforehand
9421 * @returns EnumOptions
9422 * @throws {Error} If the payload is not a reader or valid buffer
9423 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9424 */
9425 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
9426
9427 /**
9428 * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
9429 * @param reader Reader or buffer to decode from
9430 * @returns EnumOptions
9431 * @throws {Error} If the payload is not a reader or valid buffer
9432 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9433 */
9434 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
9435
9436 /**
9437 * Verifies an EnumOptions message.
9438 * @param message Plain object to verify
9439 * @returns `null` if valid, otherwise the reason why it is not
9440 */
9441 public static verify(message: { [k: string]: any }): (string|null);
9442
9443 /**
9444 * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
9445 * @param object Plain object
9446 * @returns EnumOptions
9447 */
9448 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
9449
9450 /**
9451 * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
9452 * @param message EnumOptions
9453 * @param [options] Conversion options
9454 * @returns Plain object
9455 */
9456 public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
9457
9458 /**
9459 * Converts this EnumOptions to JSON.
9460 * @returns JSON object
9461 */
9462 public toJSON(): { [k: string]: any };
9463 }
9464
9465 /** Properties of an EnumValueOptions. */
9466 interface IEnumValueOptions {
9467
9468 /** EnumValueOptions deprecated */
9469 deprecated?: (boolean|null);
9470
9471 /** EnumValueOptions uninterpretedOption */
9472 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
9473 }
9474
9475 /** Represents an EnumValueOptions. */
9476 class EnumValueOptions implements IEnumValueOptions {
9477
9478 /**
9479 * Constructs a new EnumValueOptions.
9480 * @param [properties] Properties to set
9481 */
9482 constructor(properties?: google.protobuf.IEnumValueOptions);
9483
9484 /** EnumValueOptions deprecated. */
9485 public deprecated: boolean;
9486
9487 /** EnumValueOptions uninterpretedOption. */
9488 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
9489
9490 /**
9491 * Creates a new EnumValueOptions instance using the specified properties.
9492 * @param [properties] Properties to set
9493 * @returns EnumValueOptions instance
9494 */
9495 public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
9496
9497 /**
9498 * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
9499 * @param message EnumValueOptions message or plain object to encode
9500 * @param [writer] Writer to encode to
9501 * @returns Writer
9502 */
9503 public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9504
9505 /**
9506 * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
9507 * @param message EnumValueOptions message or plain object to encode
9508 * @param [writer] Writer to encode to
9509 * @returns Writer
9510 */
9511 public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9512
9513 /**
9514 * Decodes an EnumValueOptions message from the specified reader or buffer.
9515 * @param reader Reader or buffer to decode from
9516 * @param [length] Message length if known beforehand
9517 * @returns EnumValueOptions
9518 * @throws {Error} If the payload is not a reader or valid buffer
9519 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9520 */
9521 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
9522
9523 /**
9524 * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
9525 * @param reader Reader or buffer to decode from
9526 * @returns EnumValueOptions
9527 * @throws {Error} If the payload is not a reader or valid buffer
9528 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9529 */
9530 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
9531
9532 /**
9533 * Verifies an EnumValueOptions message.
9534 * @param message Plain object to verify
9535 * @returns `null` if valid, otherwise the reason why it is not
9536 */
9537 public static verify(message: { [k: string]: any }): (string|null);
9538
9539 /**
9540 * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
9541 * @param object Plain object
9542 * @returns EnumValueOptions
9543 */
9544 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
9545
9546 /**
9547 * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
9548 * @param message EnumValueOptions
9549 * @param [options] Conversion options
9550 * @returns Plain object
9551 */
9552 public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
9553
9554 /**
9555 * Converts this EnumValueOptions to JSON.
9556 * @returns JSON object
9557 */
9558 public toJSON(): { [k: string]: any };
9559 }
9560
9561 /** Properties of a ServiceOptions. */
9562 interface IServiceOptions {
9563
9564 /** ServiceOptions deprecated */
9565 deprecated?: (boolean|null);
9566
9567 /** ServiceOptions uninterpretedOption */
9568 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
9569
9570 /** ServiceOptions .google.api.defaultHost */
9571 ".google.api.defaultHost"?: (string|null);
9572
9573 /** ServiceOptions .google.api.oauthScopes */
9574 ".google.api.oauthScopes"?: (string|null);
9575 }
9576
9577 /** Represents a ServiceOptions. */
9578 class ServiceOptions implements IServiceOptions {
9579
9580 /**
9581 * Constructs a new ServiceOptions.
9582 * @param [properties] Properties to set
9583 */
9584 constructor(properties?: google.protobuf.IServiceOptions);
9585
9586 /** ServiceOptions deprecated. */
9587 public deprecated: boolean;
9588
9589 /** ServiceOptions uninterpretedOption. */
9590 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
9591
9592 /**
9593 * Creates a new ServiceOptions instance using the specified properties.
9594 * @param [properties] Properties to set
9595 * @returns ServiceOptions instance
9596 */
9597 public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
9598
9599 /**
9600 * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
9601 * @param message ServiceOptions message or plain object to encode
9602 * @param [writer] Writer to encode to
9603 * @returns Writer
9604 */
9605 public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9606
9607 /**
9608 * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
9609 * @param message ServiceOptions message or plain object to encode
9610 * @param [writer] Writer to encode to
9611 * @returns Writer
9612 */
9613 public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9614
9615 /**
9616 * Decodes a ServiceOptions message from the specified reader or buffer.
9617 * @param reader Reader or buffer to decode from
9618 * @param [length] Message length if known beforehand
9619 * @returns ServiceOptions
9620 * @throws {Error} If the payload is not a reader or valid buffer
9621 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9622 */
9623 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
9624
9625 /**
9626 * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
9627 * @param reader Reader or buffer to decode from
9628 * @returns ServiceOptions
9629 * @throws {Error} If the payload is not a reader or valid buffer
9630 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9631 */
9632 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
9633
9634 /**
9635 * Verifies a ServiceOptions message.
9636 * @param message Plain object to verify
9637 * @returns `null` if valid, otherwise the reason why it is not
9638 */
9639 public static verify(message: { [k: string]: any }): (string|null);
9640
9641 /**
9642 * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
9643 * @param object Plain object
9644 * @returns ServiceOptions
9645 */
9646 public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
9647
9648 /**
9649 * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
9650 * @param message ServiceOptions
9651 * @param [options] Conversion options
9652 * @returns Plain object
9653 */
9654 public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
9655
9656 /**
9657 * Converts this ServiceOptions to JSON.
9658 * @returns JSON object
9659 */
9660 public toJSON(): { [k: string]: any };
9661 }
9662
9663 /** Properties of a MethodOptions. */
9664 interface IMethodOptions {
9665
9666 /** MethodOptions deprecated */
9667 deprecated?: (boolean|null);
9668
9669 /** MethodOptions idempotencyLevel */
9670 idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
9671
9672 /** MethodOptions uninterpretedOption */
9673 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
9674
9675 /** MethodOptions .google.api.http */
9676 ".google.api.http"?: (google.api.IHttpRule|null);
9677
9678 /** MethodOptions .google.api.methodSignature */
9679 ".google.api.methodSignature"?: (string[]|null);
9680 }
9681
9682 /** Represents a MethodOptions. */
9683 class MethodOptions implements IMethodOptions {
9684
9685 /**
9686 * Constructs a new MethodOptions.
9687 * @param [properties] Properties to set
9688 */
9689 constructor(properties?: google.protobuf.IMethodOptions);
9690
9691 /** MethodOptions deprecated. */
9692 public deprecated: boolean;
9693
9694 /** MethodOptions idempotencyLevel. */
9695 public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
9696
9697 /** MethodOptions uninterpretedOption. */
9698 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
9699
9700 /**
9701 * Creates a new MethodOptions instance using the specified properties.
9702 * @param [properties] Properties to set
9703 * @returns MethodOptions instance
9704 */
9705 public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
9706
9707 /**
9708 * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
9709 * @param message MethodOptions message or plain object to encode
9710 * @param [writer] Writer to encode to
9711 * @returns Writer
9712 */
9713 public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9714
9715 /**
9716 * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
9717 * @param message MethodOptions message or plain object to encode
9718 * @param [writer] Writer to encode to
9719 * @returns Writer
9720 */
9721 public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9722
9723 /**
9724 * Decodes a MethodOptions message from the specified reader or buffer.
9725 * @param reader Reader or buffer to decode from
9726 * @param [length] Message length if known beforehand
9727 * @returns MethodOptions
9728 * @throws {Error} If the payload is not a reader or valid buffer
9729 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9730 */
9731 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
9732
9733 /**
9734 * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
9735 * @param reader Reader or buffer to decode from
9736 * @returns MethodOptions
9737 * @throws {Error} If the payload is not a reader or valid buffer
9738 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9739 */
9740 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
9741
9742 /**
9743 * Verifies a MethodOptions message.
9744 * @param message Plain object to verify
9745 * @returns `null` if valid, otherwise the reason why it is not
9746 */
9747 public static verify(message: { [k: string]: any }): (string|null);
9748
9749 /**
9750 * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
9751 * @param object Plain object
9752 * @returns MethodOptions
9753 */
9754 public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
9755
9756 /**
9757 * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
9758 * @param message MethodOptions
9759 * @param [options] Conversion options
9760 * @returns Plain object
9761 */
9762 public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
9763
9764 /**
9765 * Converts this MethodOptions to JSON.
9766 * @returns JSON object
9767 */
9768 public toJSON(): { [k: string]: any };
9769 }
9770
9771 namespace MethodOptions {
9772
9773 /** IdempotencyLevel enum. */
9774 enum IdempotencyLevel {
9775 IDEMPOTENCY_UNKNOWN = 0,
9776 NO_SIDE_EFFECTS = 1,
9777 IDEMPOTENT = 2
9778 }
9779 }
9780
9781 /** Properties of an UninterpretedOption. */
9782 interface IUninterpretedOption {
9783
9784 /** UninterpretedOption name */
9785 name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
9786
9787 /** UninterpretedOption identifierValue */
9788 identifierValue?: (string|null);
9789
9790 /** UninterpretedOption positiveIntValue */
9791 positiveIntValue?: (number|Long|string|null);
9792
9793 /** UninterpretedOption negativeIntValue */
9794 negativeIntValue?: (number|Long|string|null);
9795
9796 /** UninterpretedOption doubleValue */
9797 doubleValue?: (number|null);
9798
9799 /** UninterpretedOption stringValue */
9800 stringValue?: (Uint8Array|string|null);
9801
9802 /** UninterpretedOption aggregateValue */
9803 aggregateValue?: (string|null);
9804 }
9805
9806 /** Represents an UninterpretedOption. */
9807 class UninterpretedOption implements IUninterpretedOption {
9808
9809 /**
9810 * Constructs a new UninterpretedOption.
9811 * @param [properties] Properties to set
9812 */
9813 constructor(properties?: google.protobuf.IUninterpretedOption);
9814
9815 /** UninterpretedOption name. */
9816 public name: google.protobuf.UninterpretedOption.INamePart[];
9817
9818 /** UninterpretedOption identifierValue. */
9819 public identifierValue: string;
9820
9821 /** UninterpretedOption positiveIntValue. */
9822 public positiveIntValue: (number|Long|string);
9823
9824 /** UninterpretedOption negativeIntValue. */
9825 public negativeIntValue: (number|Long|string);
9826
9827 /** UninterpretedOption doubleValue. */
9828 public doubleValue: number;
9829
9830 /** UninterpretedOption stringValue. */
9831 public stringValue: (Uint8Array|string);
9832
9833 /** UninterpretedOption aggregateValue. */
9834 public aggregateValue: string;
9835
9836 /**
9837 * Creates a new UninterpretedOption instance using the specified properties.
9838 * @param [properties] Properties to set
9839 * @returns UninterpretedOption instance
9840 */
9841 public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
9842
9843 /**
9844 * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
9845 * @param message UninterpretedOption message or plain object to encode
9846 * @param [writer] Writer to encode to
9847 * @returns Writer
9848 */
9849 public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
9850
9851 /**
9852 * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
9853 * @param message UninterpretedOption message or plain object to encode
9854 * @param [writer] Writer to encode to
9855 * @returns Writer
9856 */
9857 public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
9858
9859 /**
9860 * Decodes an UninterpretedOption message from the specified reader or buffer.
9861 * @param reader Reader or buffer to decode from
9862 * @param [length] Message length if known beforehand
9863 * @returns UninterpretedOption
9864 * @throws {Error} If the payload is not a reader or valid buffer
9865 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9866 */
9867 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
9868
9869 /**
9870 * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
9871 * @param reader Reader or buffer to decode from
9872 * @returns UninterpretedOption
9873 * @throws {Error} If the payload is not a reader or valid buffer
9874 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9875 */
9876 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
9877
9878 /**
9879 * Verifies an UninterpretedOption message.
9880 * @param message Plain object to verify
9881 * @returns `null` if valid, otherwise the reason why it is not
9882 */
9883 public static verify(message: { [k: string]: any }): (string|null);
9884
9885 /**
9886 * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
9887 * @param object Plain object
9888 * @returns UninterpretedOption
9889 */
9890 public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
9891
9892 /**
9893 * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
9894 * @param message UninterpretedOption
9895 * @param [options] Conversion options
9896 * @returns Plain object
9897 */
9898 public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
9899
9900 /**
9901 * Converts this UninterpretedOption to JSON.
9902 * @returns JSON object
9903 */
9904 public toJSON(): { [k: string]: any };
9905 }
9906
9907 namespace UninterpretedOption {
9908
9909 /** Properties of a NamePart. */
9910 interface INamePart {
9911
9912 /** NamePart namePart */
9913 namePart: string;
9914
9915 /** NamePart isExtension */
9916 isExtension: boolean;
9917 }
9918
9919 /** Represents a NamePart. */
9920 class NamePart implements INamePart {
9921
9922 /**
9923 * Constructs a new NamePart.
9924 * @param [properties] Properties to set
9925 */
9926 constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
9927
9928 /** NamePart namePart. */
9929 public namePart: string;
9930
9931 /** NamePart isExtension. */
9932 public isExtension: boolean;
9933
9934 /**
9935 * Creates a new NamePart instance using the specified properties.
9936 * @param [properties] Properties to set
9937 * @returns NamePart instance
9938 */
9939 public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
9940
9941 /**
9942 * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
9943 * @param message NamePart message or plain object to encode
9944 * @param [writer] Writer to encode to
9945 * @returns Writer
9946 */
9947 public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
9948
9949 /**
9950 * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
9951 * @param message NamePart message or plain object to encode
9952 * @param [writer] Writer to encode to
9953 * @returns Writer
9954 */
9955 public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
9956
9957 /**
9958 * Decodes a NamePart message from the specified reader or buffer.
9959 * @param reader Reader or buffer to decode from
9960 * @param [length] Message length if known beforehand
9961 * @returns NamePart
9962 * @throws {Error} If the payload is not a reader or valid buffer
9963 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9964 */
9965 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
9966
9967 /**
9968 * Decodes a NamePart message from the specified reader or buffer, length delimited.
9969 * @param reader Reader or buffer to decode from
9970 * @returns NamePart
9971 * @throws {Error} If the payload is not a reader or valid buffer
9972 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9973 */
9974 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
9975
9976 /**
9977 * Verifies a NamePart message.
9978 * @param message Plain object to verify
9979 * @returns `null` if valid, otherwise the reason why it is not
9980 */
9981 public static verify(message: { [k: string]: any }): (string|null);
9982
9983 /**
9984 * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
9985 * @param object Plain object
9986 * @returns NamePart
9987 */
9988 public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
9989
9990 /**
9991 * Creates a plain object from a NamePart message. Also converts values to other types if specified.
9992 * @param message NamePart
9993 * @param [options] Conversion options
9994 * @returns Plain object
9995 */
9996 public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
9997
9998 /**
9999 * Converts this NamePart to JSON.
10000 * @returns JSON object
10001 */
10002 public toJSON(): { [k: string]: any };
10003 }
10004 }
10005
10006 /** Properties of a SourceCodeInfo. */
10007 interface ISourceCodeInfo {
10008
10009 /** SourceCodeInfo location */
10010 location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
10011 }
10012
10013 /** Represents a SourceCodeInfo. */
10014 class SourceCodeInfo implements ISourceCodeInfo {
10015
10016 /**
10017 * Constructs a new SourceCodeInfo.
10018 * @param [properties] Properties to set
10019 */
10020 constructor(properties?: google.protobuf.ISourceCodeInfo);
10021
10022 /** SourceCodeInfo location. */
10023 public location: google.protobuf.SourceCodeInfo.ILocation[];
10024
10025 /**
10026 * Creates a new SourceCodeInfo instance using the specified properties.
10027 * @param [properties] Properties to set
10028 * @returns SourceCodeInfo instance
10029 */
10030 public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
10031
10032 /**
10033 * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
10034 * @param message SourceCodeInfo message or plain object to encode
10035 * @param [writer] Writer to encode to
10036 * @returns Writer
10037 */
10038 public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
10039
10040 /**
10041 * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
10042 * @param message SourceCodeInfo message or plain object to encode
10043 * @param [writer] Writer to encode to
10044 * @returns Writer
10045 */
10046 public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
10047
10048 /**
10049 * Decodes a SourceCodeInfo message from the specified reader or buffer.
10050 * @param reader Reader or buffer to decode from
10051 * @param [length] Message length if known beforehand
10052 * @returns SourceCodeInfo
10053 * @throws {Error} If the payload is not a reader or valid buffer
10054 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10055 */
10056 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
10057
10058 /**
10059 * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
10060 * @param reader Reader or buffer to decode from
10061 * @returns SourceCodeInfo
10062 * @throws {Error} If the payload is not a reader or valid buffer
10063 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10064 */
10065 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
10066
10067 /**
10068 * Verifies a SourceCodeInfo message.
10069 * @param message Plain object to verify
10070 * @returns `null` if valid, otherwise the reason why it is not
10071 */
10072 public static verify(message: { [k: string]: any }): (string|null);
10073
10074 /**
10075 * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
10076 * @param object Plain object
10077 * @returns SourceCodeInfo
10078 */
10079 public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
10080
10081 /**
10082 * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
10083 * @param message SourceCodeInfo
10084 * @param [options] Conversion options
10085 * @returns Plain object
10086 */
10087 public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
10088
10089 /**
10090 * Converts this SourceCodeInfo to JSON.
10091 * @returns JSON object
10092 */
10093 public toJSON(): { [k: string]: any };
10094 }
10095
10096 namespace SourceCodeInfo {
10097
10098 /** Properties of a Location. */
10099 interface ILocation {
10100
10101 /** Location path */
10102 path?: (number[]|null);
10103
10104 /** Location span */
10105 span?: (number[]|null);
10106
10107 /** Location leadingComments */
10108 leadingComments?: (string|null);
10109
10110 /** Location trailingComments */
10111 trailingComments?: (string|null);
10112
10113 /** Location leadingDetachedComments */
10114 leadingDetachedComments?: (string[]|null);
10115 }
10116
10117 /** Represents a Location. */
10118 class Location implements ILocation {
10119
10120 /**
10121 * Constructs a new Location.
10122 * @param [properties] Properties to set
10123 */
10124 constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
10125
10126 /** Location path. */
10127 public path: number[];
10128
10129 /** Location span. */
10130 public span: number[];
10131
10132 /** Location leadingComments. */
10133 public leadingComments: string;
10134
10135 /** Location trailingComments. */
10136 public trailingComments: string;
10137
10138 /** Location leadingDetachedComments. */
10139 public leadingDetachedComments: string[];
10140
10141 /**
10142 * Creates a new Location instance using the specified properties.
10143 * @param [properties] Properties to set
10144 * @returns Location instance
10145 */
10146 public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
10147
10148 /**
10149 * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
10150 * @param message Location message or plain object to encode
10151 * @param [writer] Writer to encode to
10152 * @returns Writer
10153 */
10154 public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
10155
10156 /**
10157 * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
10158 * @param message Location message or plain object to encode
10159 * @param [writer] Writer to encode to
10160 * @returns Writer
10161 */
10162 public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
10163
10164 /**
10165 * Decodes a Location message from the specified reader or buffer.
10166 * @param reader Reader or buffer to decode from
10167 * @param [length] Message length if known beforehand
10168 * @returns Location
10169 * @throws {Error} If the payload is not a reader or valid buffer
10170 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10171 */
10172 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
10173
10174 /**
10175 * Decodes a Location message from the specified reader or buffer, length delimited.
10176 * @param reader Reader or buffer to decode from
10177 * @returns Location
10178 * @throws {Error} If the payload is not a reader or valid buffer
10179 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10180 */
10181 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
10182
10183 /**
10184 * Verifies a Location message.
10185 * @param message Plain object to verify
10186 * @returns `null` if valid, otherwise the reason why it is not
10187 */
10188 public static verify(message: { [k: string]: any }): (string|null);
10189
10190 /**
10191 * Creates a Location message from a plain object. Also converts values to their respective internal types.
10192 * @param object Plain object
10193 * @returns Location
10194 */
10195 public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
10196
10197 /**
10198 * Creates a plain object from a Location message. Also converts values to other types if specified.
10199 * @param message Location
10200 * @param [options] Conversion options
10201 * @returns Plain object
10202 */
10203 public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
10204
10205 /**
10206 * Converts this Location to JSON.
10207 * @returns JSON object
10208 */
10209 public toJSON(): { [k: string]: any };
10210 }
10211 }
10212
10213 /** Properties of a GeneratedCodeInfo. */
10214 interface IGeneratedCodeInfo {
10215
10216 /** GeneratedCodeInfo annotation */
10217 annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
10218 }
10219
10220 /** Represents a GeneratedCodeInfo. */
10221 class GeneratedCodeInfo implements IGeneratedCodeInfo {
10222
10223 /**
10224 * Constructs a new GeneratedCodeInfo.
10225 * @param [properties] Properties to set
10226 */
10227 constructor(properties?: google.protobuf.IGeneratedCodeInfo);
10228
10229 /** GeneratedCodeInfo annotation. */
10230 public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
10231
10232 /**
10233 * Creates a new GeneratedCodeInfo instance using the specified properties.
10234 * @param [properties] Properties to set
10235 * @returns GeneratedCodeInfo instance
10236 */
10237 public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
10238
10239 /**
10240 * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
10241 * @param message GeneratedCodeInfo message or plain object to encode
10242 * @param [writer] Writer to encode to
10243 * @returns Writer
10244 */
10245 public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
10246
10247 /**
10248 * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
10249 * @param message GeneratedCodeInfo message or plain object to encode
10250 * @param [writer] Writer to encode to
10251 * @returns Writer
10252 */
10253 public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
10254
10255 /**
10256 * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
10257 * @param reader Reader or buffer to decode from
10258 * @param [length] Message length if known beforehand
10259 * @returns GeneratedCodeInfo
10260 * @throws {Error} If the payload is not a reader or valid buffer
10261 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10262 */
10263 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
10264
10265 /**
10266 * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
10267 * @param reader Reader or buffer to decode from
10268 * @returns GeneratedCodeInfo
10269 * @throws {Error} If the payload is not a reader or valid buffer
10270 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10271 */
10272 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
10273
10274 /**
10275 * Verifies a GeneratedCodeInfo message.
10276 * @param message Plain object to verify
10277 * @returns `null` if valid, otherwise the reason why it is not
10278 */
10279 public static verify(message: { [k: string]: any }): (string|null);
10280
10281 /**
10282 * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
10283 * @param object Plain object
10284 * @returns GeneratedCodeInfo
10285 */
10286 public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
10287
10288 /**
10289 * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
10290 * @param message GeneratedCodeInfo
10291 * @param [options] Conversion options
10292 * @returns Plain object
10293 */
10294 public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
10295
10296 /**
10297 * Converts this GeneratedCodeInfo to JSON.
10298 * @returns JSON object
10299 */
10300 public toJSON(): { [k: string]: any };
10301 }
10302
10303 namespace GeneratedCodeInfo {
10304
10305 /** Properties of an Annotation. */
10306 interface IAnnotation {
10307
10308 /** Annotation path */
10309 path?: (number[]|null);
10310
10311 /** Annotation sourceFile */
10312 sourceFile?: (string|null);
10313
10314 /** Annotation begin */
10315 begin?: (number|null);
10316
10317 /** Annotation end */
10318 end?: (number|null);
10319 }
10320
10321 /** Represents an Annotation. */
10322 class Annotation implements IAnnotation {
10323
10324 /**
10325 * Constructs a new Annotation.
10326 * @param [properties] Properties to set
10327 */
10328 constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
10329
10330 /** Annotation path. */
10331 public path: number[];
10332
10333 /** Annotation sourceFile. */
10334 public sourceFile: string;
10335
10336 /** Annotation begin. */
10337 public begin: number;
10338
10339 /** Annotation end. */
10340 public end: number;
10341
10342 /**
10343 * Creates a new Annotation instance using the specified properties.
10344 * @param [properties] Properties to set
10345 * @returns Annotation instance
10346 */
10347 public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
10348
10349 /**
10350 * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
10351 * @param message Annotation message or plain object to encode
10352 * @param [writer] Writer to encode to
10353 * @returns Writer
10354 */
10355 public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
10356
10357 /**
10358 * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
10359 * @param message Annotation message or plain object to encode
10360 * @param [writer] Writer to encode to
10361 * @returns Writer
10362 */
10363 public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
10364
10365 /**
10366 * Decodes an Annotation message from the specified reader or buffer.
10367 * @param reader Reader or buffer to decode from
10368 * @param [length] Message length if known beforehand
10369 * @returns Annotation
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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
10374
10375 /**
10376 * Decodes an Annotation message from the specified reader or buffer, length delimited.
10377 * @param reader Reader or buffer to decode from
10378 * @returns Annotation
10379 * @throws {Error} If the payload is not a reader or valid buffer
10380 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10381 */
10382 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
10383
10384 /**
10385 * Verifies an Annotation message.
10386 * @param message Plain object to verify
10387 * @returns `null` if valid, otherwise the reason why it is not
10388 */
10389 public static verify(message: { [k: string]: any }): (string|null);
10390
10391 /**
10392 * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
10393 * @param object Plain object
10394 * @returns Annotation
10395 */
10396 public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
10397
10398 /**
10399 * Creates a plain object from an Annotation message. Also converts values to other types if specified.
10400 * @param message Annotation
10401 * @param [options] Conversion options
10402 * @returns Plain object
10403 */
10404 public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
10405
10406 /**
10407 * Converts this Annotation to JSON.
10408 * @returns JSON object
10409 */
10410 public toJSON(): { [k: string]: any };
10411 }
10412 }
10413
10414 /** Properties of a Duration. */
10415 interface IDuration {
10416
10417 /** Duration seconds */
10418 seconds?: (number|Long|string|null);
10419
10420 /** Duration nanos */
10421 nanos?: (number|null);
10422 }
10423
10424 /** Represents a Duration. */
10425 class Duration implements IDuration {
10426
10427 /**
10428 * Constructs a new Duration.
10429 * @param [properties] Properties to set
10430 */
10431 constructor(properties?: google.protobuf.IDuration);
10432
10433 /** Duration seconds. */
10434 public seconds: (number|Long|string);
10435
10436 /** Duration nanos. */
10437 public nanos: number;
10438
10439 /**
10440 * Creates a new Duration instance using the specified properties.
10441 * @param [properties] Properties to set
10442 * @returns Duration instance
10443 */
10444 public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
10445
10446 /**
10447 * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
10448 * @param message Duration message or plain object to encode
10449 * @param [writer] Writer to encode to
10450 * @returns Writer
10451 */
10452 public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
10453
10454 /**
10455 * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
10456 * @param message Duration message or plain object to encode
10457 * @param [writer] Writer to encode to
10458 * @returns Writer
10459 */
10460 public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
10461
10462 /**
10463 * Decodes a Duration message from the specified reader or buffer.
10464 * @param reader Reader or buffer to decode from
10465 * @param [length] Message length if known beforehand
10466 * @returns Duration
10467 * @throws {Error} If the payload is not a reader or valid buffer
10468 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10469 */
10470 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
10471
10472 /**
10473 * Decodes a Duration message from the specified reader or buffer, length delimited.
10474 * @param reader Reader or buffer to decode from
10475 * @returns Duration
10476 * @throws {Error} If the payload is not a reader or valid buffer
10477 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10478 */
10479 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
10480
10481 /**
10482 * Verifies a Duration message.
10483 * @param message Plain object to verify
10484 * @returns `null` if valid, otherwise the reason why it is not
10485 */
10486 public static verify(message: { [k: string]: any }): (string|null);
10487
10488 /**
10489 * Creates a Duration message from a plain object. Also converts values to their respective internal types.
10490 * @param object Plain object
10491 * @returns Duration
10492 */
10493 public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
10494
10495 /**
10496 * Creates a plain object from a Duration message. Also converts values to other types if specified.
10497 * @param message Duration
10498 * @param [options] Conversion options
10499 * @returns Plain object
10500 */
10501 public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
10502
10503 /**
10504 * Converts this Duration to JSON.
10505 * @returns JSON object
10506 */
10507 public toJSON(): { [k: string]: any };
10508 }
10509
10510 /** Properties of an Empty. */
10511 interface IEmpty {
10512 }
10513
10514 /** Represents an Empty. */
10515 class Empty implements IEmpty {
10516
10517 /**
10518 * Constructs a new Empty.
10519 * @param [properties] Properties to set
10520 */
10521 constructor(properties?: google.protobuf.IEmpty);
10522
10523 /**
10524 * Creates a new Empty instance using the specified properties.
10525 * @param [properties] Properties to set
10526 * @returns Empty instance
10527 */
10528 public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
10529
10530 /**
10531 * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
10532 * @param message Empty message or plain object to encode
10533 * @param [writer] Writer to encode to
10534 * @returns Writer
10535 */
10536 public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
10537
10538 /**
10539 * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
10540 * @param message Empty message or plain object to encode
10541 * @param [writer] Writer to encode to
10542 * @returns Writer
10543 */
10544 public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
10545
10546 /**
10547 * Decodes an Empty message from the specified reader or buffer.
10548 * @param reader Reader or buffer to decode from
10549 * @param [length] Message length if known beforehand
10550 * @returns Empty
10551 * @throws {Error} If the payload is not a reader or valid buffer
10552 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10553 */
10554 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
10555
10556 /**
10557 * Decodes an Empty message from the specified reader or buffer, length delimited.
10558 * @param reader Reader or buffer to decode from
10559 * @returns Empty
10560 * @throws {Error} If the payload is not a reader or valid buffer
10561 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10562 */
10563 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
10564
10565 /**
10566 * Verifies an Empty message.
10567 * @param message Plain object to verify
10568 * @returns `null` if valid, otherwise the reason why it is not
10569 */
10570 public static verify(message: { [k: string]: any }): (string|null);
10571
10572 /**
10573 * Creates an Empty message from a plain object. Also converts values to their respective internal types.
10574 * @param object Plain object
10575 * @returns Empty
10576 */
10577 public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
10578
10579 /**
10580 * Creates a plain object from an Empty message. Also converts values to other types if specified.
10581 * @param message Empty
10582 * @param [options] Conversion options
10583 * @returns Plain object
10584 */
10585 public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
10586
10587 /**
10588 * Converts this Empty to JSON.
10589 * @returns JSON object
10590 */
10591 public toJSON(): { [k: string]: any };
10592 }
10593
10594 /** Properties of a FieldMask. */
10595 interface IFieldMask {
10596
10597 /** FieldMask paths */
10598 paths?: (string[]|null);
10599 }
10600
10601 /** Represents a FieldMask. */
10602 class FieldMask implements IFieldMask {
10603
10604 /**
10605 * Constructs a new FieldMask.
10606 * @param [properties] Properties to set
10607 */
10608 constructor(properties?: google.protobuf.IFieldMask);
10609
10610 /** FieldMask paths. */
10611 public paths: string[];
10612
10613 /**
10614 * Creates a new FieldMask instance using the specified properties.
10615 * @param [properties] Properties to set
10616 * @returns FieldMask instance
10617 */
10618 public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
10619
10620 /**
10621 * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
10622 * @param message FieldMask message or plain object to encode
10623 * @param [writer] Writer to encode to
10624 * @returns Writer
10625 */
10626 public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
10627
10628 /**
10629 * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
10630 * @param message FieldMask message or plain object to encode
10631 * @param [writer] Writer to encode to
10632 * @returns Writer
10633 */
10634 public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
10635
10636 /**
10637 * Decodes a FieldMask message from the specified reader or buffer.
10638 * @param reader Reader or buffer to decode from
10639 * @param [length] Message length if known beforehand
10640 * @returns FieldMask
10641 * @throws {Error} If the payload is not a reader or valid buffer
10642 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10643 */
10644 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
10645
10646 /**
10647 * Decodes a FieldMask message from the specified reader or buffer, length delimited.
10648 * @param reader Reader or buffer to decode from
10649 * @returns FieldMask
10650 * @throws {Error} If the payload is not a reader or valid buffer
10651 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10652 */
10653 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
10654
10655 /**
10656 * Verifies a FieldMask message.
10657 * @param message Plain object to verify
10658 * @returns `null` if valid, otherwise the reason why it is not
10659 */
10660 public static verify(message: { [k: string]: any }): (string|null);
10661
10662 /**
10663 * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
10664 * @param object Plain object
10665 * @returns FieldMask
10666 */
10667 public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
10668
10669 /**
10670 * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
10671 * @param message FieldMask
10672 * @param [options] Conversion options
10673 * @returns Plain object
10674 */
10675 public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
10676
10677 /**
10678 * Converts this FieldMask to JSON.
10679 * @returns JSON object
10680 */
10681 public toJSON(): { [k: string]: any };
10682 }
10683
10684 /** Properties of a Timestamp. */
10685 interface ITimestamp {
10686
10687 /** Timestamp seconds */
10688 seconds?: (number|Long|string|null);
10689
10690 /** Timestamp nanos */
10691 nanos?: (number|null);
10692 }
10693
10694 /** Represents a Timestamp. */
10695 class Timestamp implements ITimestamp {
10696
10697 /**
10698 * Constructs a new Timestamp.
10699 * @param [properties] Properties to set
10700 */
10701 constructor(properties?: google.protobuf.ITimestamp);
10702
10703 /** Timestamp seconds. */
10704 public seconds: (number|Long|string);
10705
10706 /** Timestamp nanos. */
10707 public nanos: number;
10708
10709 /**
10710 * Creates a new Timestamp instance using the specified properties.
10711 * @param [properties] Properties to set
10712 * @returns Timestamp instance
10713 */
10714 public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
10715
10716 /**
10717 * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
10718 * @param message Timestamp message or plain object to encode
10719 * @param [writer] Writer to encode to
10720 * @returns Writer
10721 */
10722 public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
10723
10724 /**
10725 * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
10726 * @param message Timestamp message or plain object to encode
10727 * @param [writer] Writer to encode to
10728 * @returns Writer
10729 */
10730 public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
10731
10732 /**
10733 * Decodes a Timestamp message from the specified reader or buffer.
10734 * @param reader Reader or buffer to decode from
10735 * @param [length] Message length if known beforehand
10736 * @returns Timestamp
10737 * @throws {Error} If the payload is not a reader or valid buffer
10738 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10739 */
10740 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
10741
10742 /**
10743 * Decodes a Timestamp message from the specified reader or buffer, length delimited.
10744 * @param reader Reader or buffer to decode from
10745 * @returns Timestamp
10746 * @throws {Error} If the payload is not a reader or valid buffer
10747 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10748 */
10749 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
10750
10751 /**
10752 * Verifies a Timestamp message.
10753 * @param message Plain object to verify
10754 * @returns `null` if valid, otherwise the reason why it is not
10755 */
10756 public static verify(message: { [k: string]: any }): (string|null);
10757
10758 /**
10759 * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
10760 * @param object Plain object
10761 * @returns Timestamp
10762 */
10763 public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
10764
10765 /**
10766 * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
10767 * @param message Timestamp
10768 * @param [options] Conversion options
10769 * @returns Plain object
10770 */
10771 public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
10772
10773 /**
10774 * Converts this Timestamp to JSON.
10775 * @returns JSON object
10776 */
10777 public toJSON(): { [k: string]: any };
10778 }
10779 }
10780}