UNPKG

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