UNPKG

617 kBTypeScriptView Raw
1// Copyright 2021 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15import * as Long from "long";
16import {protobuf as $protobuf} from "google-gax";
17/** Namespace google. */
18export namespace google {
19
20 /** Namespace cloud. */
21 namespace cloud {
22
23 /** Namespace speech. */
24 namespace speech {
25
26 /** Namespace v1. */
27 namespace v1 {
28
29 /** Represents a Speech */
30 class Speech extends $protobuf.rpc.Service {
31
32 /**
33 * Constructs a new Speech service.
34 * @param rpcImpl RPC implementation
35 * @param [requestDelimited=false] Whether requests are length-delimited
36 * @param [responseDelimited=false] Whether responses are length-delimited
37 */
38 constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
39
40 /**
41 * Creates new Speech service using the specified rpc implementation.
42 * @param rpcImpl RPC implementation
43 * @param [requestDelimited=false] Whether requests are length-delimited
44 * @param [responseDelimited=false] Whether responses are length-delimited
45 * @returns RPC service. Useful where requests and/or responses are streamed.
46 */
47 public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Speech;
48
49 /**
50 * Calls Recognize.
51 * @param request RecognizeRequest message or plain object
52 * @param callback Node-style callback called with the error, if any, and RecognizeResponse
53 */
54 public recognize(request: google.cloud.speech.v1.IRecognizeRequest, callback: google.cloud.speech.v1.Speech.RecognizeCallback): void;
55
56 /**
57 * Calls Recognize.
58 * @param request RecognizeRequest message or plain object
59 * @returns Promise
60 */
61 public recognize(request: google.cloud.speech.v1.IRecognizeRequest): Promise<google.cloud.speech.v1.RecognizeResponse>;
62
63 /**
64 * Calls LongRunningRecognize.
65 * @param request LongRunningRecognizeRequest message or plain object
66 * @param callback Node-style callback called with the error, if any, and Operation
67 */
68 public longRunningRecognize(request: google.cloud.speech.v1.ILongRunningRecognizeRequest, callback: google.cloud.speech.v1.Speech.LongRunningRecognizeCallback): void;
69
70 /**
71 * Calls LongRunningRecognize.
72 * @param request LongRunningRecognizeRequest message or plain object
73 * @returns Promise
74 */
75 public longRunningRecognize(request: google.cloud.speech.v1.ILongRunningRecognizeRequest): Promise<google.longrunning.Operation>;
76
77 /**
78 * Calls StreamingRecognize.
79 * @param request StreamingRecognizeRequest message or plain object
80 * @param callback Node-style callback called with the error, if any, and StreamingRecognizeResponse
81 */
82 public streamingRecognize(request: google.cloud.speech.v1.IStreamingRecognizeRequest, callback: google.cloud.speech.v1.Speech.StreamingRecognizeCallback): void;
83
84 /**
85 * Calls StreamingRecognize.
86 * @param request StreamingRecognizeRequest message or plain object
87 * @returns Promise
88 */
89 public streamingRecognize(request: google.cloud.speech.v1.IStreamingRecognizeRequest): Promise<google.cloud.speech.v1.StreamingRecognizeResponse>;
90 }
91
92 namespace Speech {
93
94 /**
95 * Callback as used by {@link google.cloud.speech.v1.Speech#recognize}.
96 * @param error Error, if any
97 * @param [response] RecognizeResponse
98 */
99 type RecognizeCallback = (error: (Error|null), response?: google.cloud.speech.v1.RecognizeResponse) => void;
100
101 /**
102 * Callback as used by {@link google.cloud.speech.v1.Speech#longRunningRecognize}.
103 * @param error Error, if any
104 * @param [response] Operation
105 */
106 type LongRunningRecognizeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
107
108 /**
109 * Callback as used by {@link google.cloud.speech.v1.Speech#streamingRecognize}.
110 * @param error Error, if any
111 * @param [response] StreamingRecognizeResponse
112 */
113 type StreamingRecognizeCallback = (error: (Error|null), response?: google.cloud.speech.v1.StreamingRecognizeResponse) => void;
114 }
115
116 /** Properties of a RecognizeRequest. */
117 interface IRecognizeRequest {
118
119 /** RecognizeRequest config */
120 config?: (google.cloud.speech.v1.IRecognitionConfig|null);
121
122 /** RecognizeRequest audio */
123 audio?: (google.cloud.speech.v1.IRecognitionAudio|null);
124 }
125
126 /** Represents a RecognizeRequest. */
127 class RecognizeRequest implements IRecognizeRequest {
128
129 /**
130 * Constructs a new RecognizeRequest.
131 * @param [properties] Properties to set
132 */
133 constructor(properties?: google.cloud.speech.v1.IRecognizeRequest);
134
135 /** RecognizeRequest config. */
136 public config?: (google.cloud.speech.v1.IRecognitionConfig|null);
137
138 /** RecognizeRequest audio. */
139 public audio?: (google.cloud.speech.v1.IRecognitionAudio|null);
140
141 /**
142 * Creates a new RecognizeRequest instance using the specified properties.
143 * @param [properties] Properties to set
144 * @returns RecognizeRequest instance
145 */
146 public static create(properties?: google.cloud.speech.v1.IRecognizeRequest): google.cloud.speech.v1.RecognizeRequest;
147
148 /**
149 * Encodes the specified RecognizeRequest message. Does not implicitly {@link google.cloud.speech.v1.RecognizeRequest.verify|verify} messages.
150 * @param message RecognizeRequest message or plain object to encode
151 * @param [writer] Writer to encode to
152 * @returns Writer
153 */
154 public static encode(message: google.cloud.speech.v1.IRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
155
156 /**
157 * Encodes the specified RecognizeRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1.RecognizeRequest.verify|verify} messages.
158 * @param message RecognizeRequest message or plain object to encode
159 * @param [writer] Writer to encode to
160 * @returns Writer
161 */
162 public static encodeDelimited(message: google.cloud.speech.v1.IRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
163
164 /**
165 * Decodes a RecognizeRequest message from the specified reader or buffer.
166 * @param reader Reader or buffer to decode from
167 * @param [length] Message length if known beforehand
168 * @returns RecognizeRequest
169 * @throws {Error} If the payload is not a reader or valid buffer
170 * @throws {$protobuf.util.ProtocolError} If required fields are missing
171 */
172 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.RecognizeRequest;
173
174 /**
175 * Decodes a RecognizeRequest message from the specified reader or buffer, length delimited.
176 * @param reader Reader or buffer to decode from
177 * @returns RecognizeRequest
178 * @throws {Error} If the payload is not a reader or valid buffer
179 * @throws {$protobuf.util.ProtocolError} If required fields are missing
180 */
181 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.RecognizeRequest;
182
183 /**
184 * Verifies a RecognizeRequest message.
185 * @param message Plain object to verify
186 * @returns `null` if valid, otherwise the reason why it is not
187 */
188 public static verify(message: { [k: string]: any }): (string|null);
189
190 /**
191 * Creates a RecognizeRequest message from a plain object. Also converts values to their respective internal types.
192 * @param object Plain object
193 * @returns RecognizeRequest
194 */
195 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.RecognizeRequest;
196
197 /**
198 * Creates a plain object from a RecognizeRequest message. Also converts values to other types if specified.
199 * @param message RecognizeRequest
200 * @param [options] Conversion options
201 * @returns Plain object
202 */
203 public static toObject(message: google.cloud.speech.v1.RecognizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
204
205 /**
206 * Converts this RecognizeRequest to JSON.
207 * @returns JSON object
208 */
209 public toJSON(): { [k: string]: any };
210 }
211
212 /** Properties of a LongRunningRecognizeRequest. */
213 interface ILongRunningRecognizeRequest {
214
215 /** LongRunningRecognizeRequest config */
216 config?: (google.cloud.speech.v1.IRecognitionConfig|null);
217
218 /** LongRunningRecognizeRequest audio */
219 audio?: (google.cloud.speech.v1.IRecognitionAudio|null);
220 }
221
222 /** Represents a LongRunningRecognizeRequest. */
223 class LongRunningRecognizeRequest implements ILongRunningRecognizeRequest {
224
225 /**
226 * Constructs a new LongRunningRecognizeRequest.
227 * @param [properties] Properties to set
228 */
229 constructor(properties?: google.cloud.speech.v1.ILongRunningRecognizeRequest);
230
231 /** LongRunningRecognizeRequest config. */
232 public config?: (google.cloud.speech.v1.IRecognitionConfig|null);
233
234 /** LongRunningRecognizeRequest audio. */
235 public audio?: (google.cloud.speech.v1.IRecognitionAudio|null);
236
237 /**
238 * Creates a new LongRunningRecognizeRequest instance using the specified properties.
239 * @param [properties] Properties to set
240 * @returns LongRunningRecognizeRequest instance
241 */
242 public static create(properties?: google.cloud.speech.v1.ILongRunningRecognizeRequest): google.cloud.speech.v1.LongRunningRecognizeRequest;
243
244 /**
245 * Encodes the specified LongRunningRecognizeRequest message. Does not implicitly {@link google.cloud.speech.v1.LongRunningRecognizeRequest.verify|verify} messages.
246 * @param message LongRunningRecognizeRequest message or plain object to encode
247 * @param [writer] Writer to encode to
248 * @returns Writer
249 */
250 public static encode(message: google.cloud.speech.v1.ILongRunningRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
251
252 /**
253 * Encodes the specified LongRunningRecognizeRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1.LongRunningRecognizeRequest.verify|verify} messages.
254 * @param message LongRunningRecognizeRequest message or plain object to encode
255 * @param [writer] Writer to encode to
256 * @returns Writer
257 */
258 public static encodeDelimited(message: google.cloud.speech.v1.ILongRunningRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
259
260 /**
261 * Decodes a LongRunningRecognizeRequest message from the specified reader or buffer.
262 * @param reader Reader or buffer to decode from
263 * @param [length] Message length if known beforehand
264 * @returns LongRunningRecognizeRequest
265 * @throws {Error} If the payload is not a reader or valid buffer
266 * @throws {$protobuf.util.ProtocolError} If required fields are missing
267 */
268 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.LongRunningRecognizeRequest;
269
270 /**
271 * Decodes a LongRunningRecognizeRequest message from the specified reader or buffer, length delimited.
272 * @param reader Reader or buffer to decode from
273 * @returns LongRunningRecognizeRequest
274 * @throws {Error} If the payload is not a reader or valid buffer
275 * @throws {$protobuf.util.ProtocolError} If required fields are missing
276 */
277 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.LongRunningRecognizeRequest;
278
279 /**
280 * Verifies a LongRunningRecognizeRequest message.
281 * @param message Plain object to verify
282 * @returns `null` if valid, otherwise the reason why it is not
283 */
284 public static verify(message: { [k: string]: any }): (string|null);
285
286 /**
287 * Creates a LongRunningRecognizeRequest message from a plain object. Also converts values to their respective internal types.
288 * @param object Plain object
289 * @returns LongRunningRecognizeRequest
290 */
291 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.LongRunningRecognizeRequest;
292
293 /**
294 * Creates a plain object from a LongRunningRecognizeRequest message. Also converts values to other types if specified.
295 * @param message LongRunningRecognizeRequest
296 * @param [options] Conversion options
297 * @returns Plain object
298 */
299 public static toObject(message: google.cloud.speech.v1.LongRunningRecognizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
300
301 /**
302 * Converts this LongRunningRecognizeRequest to JSON.
303 * @returns JSON object
304 */
305 public toJSON(): { [k: string]: any };
306 }
307
308 /** Properties of a StreamingRecognizeRequest. */
309 interface IStreamingRecognizeRequest {
310
311 /** StreamingRecognizeRequest streamingConfig */
312 streamingConfig?: (google.cloud.speech.v1.IStreamingRecognitionConfig|null);
313
314 /** StreamingRecognizeRequest audioContent */
315 audioContent?: (Uint8Array|string|null);
316 }
317
318 /** Represents a StreamingRecognizeRequest. */
319 class StreamingRecognizeRequest implements IStreamingRecognizeRequest {
320
321 /**
322 * Constructs a new StreamingRecognizeRequest.
323 * @param [properties] Properties to set
324 */
325 constructor(properties?: google.cloud.speech.v1.IStreamingRecognizeRequest);
326
327 /** StreamingRecognizeRequest streamingConfig. */
328 public streamingConfig?: (google.cloud.speech.v1.IStreamingRecognitionConfig|null);
329
330 /** StreamingRecognizeRequest audioContent. */
331 public audioContent?: (Uint8Array|string|null);
332
333 /** StreamingRecognizeRequest streamingRequest. */
334 public streamingRequest?: ("streamingConfig"|"audioContent");
335
336 /**
337 * Creates a new StreamingRecognizeRequest instance using the specified properties.
338 * @param [properties] Properties to set
339 * @returns StreamingRecognizeRequest instance
340 */
341 public static create(properties?: google.cloud.speech.v1.IStreamingRecognizeRequest): google.cloud.speech.v1.StreamingRecognizeRequest;
342
343 /**
344 * Encodes the specified StreamingRecognizeRequest message. Does not implicitly {@link google.cloud.speech.v1.StreamingRecognizeRequest.verify|verify} messages.
345 * @param message StreamingRecognizeRequest message or plain object to encode
346 * @param [writer] Writer to encode to
347 * @returns Writer
348 */
349 public static encode(message: google.cloud.speech.v1.IStreamingRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
350
351 /**
352 * Encodes the specified StreamingRecognizeRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1.StreamingRecognizeRequest.verify|verify} messages.
353 * @param message StreamingRecognizeRequest message or plain object to encode
354 * @param [writer] Writer to encode to
355 * @returns Writer
356 */
357 public static encodeDelimited(message: google.cloud.speech.v1.IStreamingRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
358
359 /**
360 * Decodes a StreamingRecognizeRequest message from the specified reader or buffer.
361 * @param reader Reader or buffer to decode from
362 * @param [length] Message length if known beforehand
363 * @returns StreamingRecognizeRequest
364 * @throws {Error} If the payload is not a reader or valid buffer
365 * @throws {$protobuf.util.ProtocolError} If required fields are missing
366 */
367 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.StreamingRecognizeRequest;
368
369 /**
370 * Decodes a StreamingRecognizeRequest message from the specified reader or buffer, length delimited.
371 * @param reader Reader or buffer to decode from
372 * @returns StreamingRecognizeRequest
373 * @throws {Error} If the payload is not a reader or valid buffer
374 * @throws {$protobuf.util.ProtocolError} If required fields are missing
375 */
376 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.StreamingRecognizeRequest;
377
378 /**
379 * Verifies a StreamingRecognizeRequest message.
380 * @param message Plain object to verify
381 * @returns `null` if valid, otherwise the reason why it is not
382 */
383 public static verify(message: { [k: string]: any }): (string|null);
384
385 /**
386 * Creates a StreamingRecognizeRequest message from a plain object. Also converts values to their respective internal types.
387 * @param object Plain object
388 * @returns StreamingRecognizeRequest
389 */
390 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.StreamingRecognizeRequest;
391
392 /**
393 * Creates a plain object from a StreamingRecognizeRequest message. Also converts values to other types if specified.
394 * @param message StreamingRecognizeRequest
395 * @param [options] Conversion options
396 * @returns Plain object
397 */
398 public static toObject(message: google.cloud.speech.v1.StreamingRecognizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
399
400 /**
401 * Converts this StreamingRecognizeRequest to JSON.
402 * @returns JSON object
403 */
404 public toJSON(): { [k: string]: any };
405 }
406
407 /** Properties of a StreamingRecognitionConfig. */
408 interface IStreamingRecognitionConfig {
409
410 /** StreamingRecognitionConfig config */
411 config?: (google.cloud.speech.v1.IRecognitionConfig|null);
412
413 /** StreamingRecognitionConfig singleUtterance */
414 singleUtterance?: (boolean|null);
415
416 /** StreamingRecognitionConfig interimResults */
417 interimResults?: (boolean|null);
418 }
419
420 /** Represents a StreamingRecognitionConfig. */
421 class StreamingRecognitionConfig implements IStreamingRecognitionConfig {
422
423 /**
424 * Constructs a new StreamingRecognitionConfig.
425 * @param [properties] Properties to set
426 */
427 constructor(properties?: google.cloud.speech.v1.IStreamingRecognitionConfig);
428
429 /** StreamingRecognitionConfig config. */
430 public config?: (google.cloud.speech.v1.IRecognitionConfig|null);
431
432 /** StreamingRecognitionConfig singleUtterance. */
433 public singleUtterance: boolean;
434
435 /** StreamingRecognitionConfig interimResults. */
436 public interimResults: boolean;
437
438 /**
439 * Creates a new StreamingRecognitionConfig instance using the specified properties.
440 * @param [properties] Properties to set
441 * @returns StreamingRecognitionConfig instance
442 */
443 public static create(properties?: google.cloud.speech.v1.IStreamingRecognitionConfig): google.cloud.speech.v1.StreamingRecognitionConfig;
444
445 /**
446 * Encodes the specified StreamingRecognitionConfig message. Does not implicitly {@link google.cloud.speech.v1.StreamingRecognitionConfig.verify|verify} messages.
447 * @param message StreamingRecognitionConfig message or plain object to encode
448 * @param [writer] Writer to encode to
449 * @returns Writer
450 */
451 public static encode(message: google.cloud.speech.v1.IStreamingRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
452
453 /**
454 * Encodes the specified StreamingRecognitionConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1.StreamingRecognitionConfig.verify|verify} messages.
455 * @param message StreamingRecognitionConfig message or plain object to encode
456 * @param [writer] Writer to encode to
457 * @returns Writer
458 */
459 public static encodeDelimited(message: google.cloud.speech.v1.IStreamingRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
460
461 /**
462 * Decodes a StreamingRecognitionConfig message from the specified reader or buffer.
463 * @param reader Reader or buffer to decode from
464 * @param [length] Message length if known beforehand
465 * @returns StreamingRecognitionConfig
466 * @throws {Error} If the payload is not a reader or valid buffer
467 * @throws {$protobuf.util.ProtocolError} If required fields are missing
468 */
469 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.StreamingRecognitionConfig;
470
471 /**
472 * Decodes a StreamingRecognitionConfig message from the specified reader or buffer, length delimited.
473 * @param reader Reader or buffer to decode from
474 * @returns StreamingRecognitionConfig
475 * @throws {Error} If the payload is not a reader or valid buffer
476 * @throws {$protobuf.util.ProtocolError} If required fields are missing
477 */
478 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.StreamingRecognitionConfig;
479
480 /**
481 * Verifies a StreamingRecognitionConfig message.
482 * @param message Plain object to verify
483 * @returns `null` if valid, otherwise the reason why it is not
484 */
485 public static verify(message: { [k: string]: any }): (string|null);
486
487 /**
488 * Creates a StreamingRecognitionConfig message from a plain object. Also converts values to their respective internal types.
489 * @param object Plain object
490 * @returns StreamingRecognitionConfig
491 */
492 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.StreamingRecognitionConfig;
493
494 /**
495 * Creates a plain object from a StreamingRecognitionConfig message. Also converts values to other types if specified.
496 * @param message StreamingRecognitionConfig
497 * @param [options] Conversion options
498 * @returns Plain object
499 */
500 public static toObject(message: google.cloud.speech.v1.StreamingRecognitionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
501
502 /**
503 * Converts this StreamingRecognitionConfig to JSON.
504 * @returns JSON object
505 */
506 public toJSON(): { [k: string]: any };
507 }
508
509 /** Properties of a RecognitionConfig. */
510 interface IRecognitionConfig {
511
512 /** RecognitionConfig encoding */
513 encoding?: (google.cloud.speech.v1.RecognitionConfig.AudioEncoding|keyof typeof google.cloud.speech.v1.RecognitionConfig.AudioEncoding|null);
514
515 /** RecognitionConfig sampleRateHertz */
516 sampleRateHertz?: (number|null);
517
518 /** RecognitionConfig audioChannelCount */
519 audioChannelCount?: (number|null);
520
521 /** RecognitionConfig enableSeparateRecognitionPerChannel */
522 enableSeparateRecognitionPerChannel?: (boolean|null);
523
524 /** RecognitionConfig languageCode */
525 languageCode?: (string|null);
526
527 /** RecognitionConfig maxAlternatives */
528 maxAlternatives?: (number|null);
529
530 /** RecognitionConfig profanityFilter */
531 profanityFilter?: (boolean|null);
532
533 /** RecognitionConfig speechContexts */
534 speechContexts?: (google.cloud.speech.v1.ISpeechContext[]|null);
535
536 /** RecognitionConfig enableWordTimeOffsets */
537 enableWordTimeOffsets?: (boolean|null);
538
539 /** RecognitionConfig enableAutomaticPunctuation */
540 enableAutomaticPunctuation?: (boolean|null);
541
542 /** RecognitionConfig diarizationConfig */
543 diarizationConfig?: (google.cloud.speech.v1.ISpeakerDiarizationConfig|null);
544
545 /** RecognitionConfig metadata */
546 metadata?: (google.cloud.speech.v1.IRecognitionMetadata|null);
547
548 /** RecognitionConfig model */
549 model?: (string|null);
550
551 /** RecognitionConfig useEnhanced */
552 useEnhanced?: (boolean|null);
553 }
554
555 /** Represents a RecognitionConfig. */
556 class RecognitionConfig implements IRecognitionConfig {
557
558 /**
559 * Constructs a new RecognitionConfig.
560 * @param [properties] Properties to set
561 */
562 constructor(properties?: google.cloud.speech.v1.IRecognitionConfig);
563
564 /** RecognitionConfig encoding. */
565 public encoding: (google.cloud.speech.v1.RecognitionConfig.AudioEncoding|keyof typeof google.cloud.speech.v1.RecognitionConfig.AudioEncoding);
566
567 /** RecognitionConfig sampleRateHertz. */
568 public sampleRateHertz: number;
569
570 /** RecognitionConfig audioChannelCount. */
571 public audioChannelCount: number;
572
573 /** RecognitionConfig enableSeparateRecognitionPerChannel. */
574 public enableSeparateRecognitionPerChannel: boolean;
575
576 /** RecognitionConfig languageCode. */
577 public languageCode: string;
578
579 /** RecognitionConfig maxAlternatives. */
580 public maxAlternatives: number;
581
582 /** RecognitionConfig profanityFilter. */
583 public profanityFilter: boolean;
584
585 /** RecognitionConfig speechContexts. */
586 public speechContexts: google.cloud.speech.v1.ISpeechContext[];
587
588 /** RecognitionConfig enableWordTimeOffsets. */
589 public enableWordTimeOffsets: boolean;
590
591 /** RecognitionConfig enableAutomaticPunctuation. */
592 public enableAutomaticPunctuation: boolean;
593
594 /** RecognitionConfig diarizationConfig. */
595 public diarizationConfig?: (google.cloud.speech.v1.ISpeakerDiarizationConfig|null);
596
597 /** RecognitionConfig metadata. */
598 public metadata?: (google.cloud.speech.v1.IRecognitionMetadata|null);
599
600 /** RecognitionConfig model. */
601 public model: string;
602
603 /** RecognitionConfig useEnhanced. */
604 public useEnhanced: boolean;
605
606 /**
607 * Creates a new RecognitionConfig instance using the specified properties.
608 * @param [properties] Properties to set
609 * @returns RecognitionConfig instance
610 */
611 public static create(properties?: google.cloud.speech.v1.IRecognitionConfig): google.cloud.speech.v1.RecognitionConfig;
612
613 /**
614 * Encodes the specified RecognitionConfig message. Does not implicitly {@link google.cloud.speech.v1.RecognitionConfig.verify|verify} messages.
615 * @param message RecognitionConfig message or plain object to encode
616 * @param [writer] Writer to encode to
617 * @returns Writer
618 */
619 public static encode(message: google.cloud.speech.v1.IRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
620
621 /**
622 * Encodes the specified RecognitionConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1.RecognitionConfig.verify|verify} messages.
623 * @param message RecognitionConfig message or plain object to encode
624 * @param [writer] Writer to encode to
625 * @returns Writer
626 */
627 public static encodeDelimited(message: google.cloud.speech.v1.IRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
628
629 /**
630 * Decodes a RecognitionConfig message from the specified reader or buffer.
631 * @param reader Reader or buffer to decode from
632 * @param [length] Message length if known beforehand
633 * @returns RecognitionConfig
634 * @throws {Error} If the payload is not a reader or valid buffer
635 * @throws {$protobuf.util.ProtocolError} If required fields are missing
636 */
637 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.RecognitionConfig;
638
639 /**
640 * Decodes a RecognitionConfig message from the specified reader or buffer, length delimited.
641 * @param reader Reader or buffer to decode from
642 * @returns RecognitionConfig
643 * @throws {Error} If the payload is not a reader or valid buffer
644 * @throws {$protobuf.util.ProtocolError} If required fields are missing
645 */
646 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.RecognitionConfig;
647
648 /**
649 * Verifies a RecognitionConfig message.
650 * @param message Plain object to verify
651 * @returns `null` if valid, otherwise the reason why it is not
652 */
653 public static verify(message: { [k: string]: any }): (string|null);
654
655 /**
656 * Creates a RecognitionConfig message from a plain object. Also converts values to their respective internal types.
657 * @param object Plain object
658 * @returns RecognitionConfig
659 */
660 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.RecognitionConfig;
661
662 /**
663 * Creates a plain object from a RecognitionConfig message. Also converts values to other types if specified.
664 * @param message RecognitionConfig
665 * @param [options] Conversion options
666 * @returns Plain object
667 */
668 public static toObject(message: google.cloud.speech.v1.RecognitionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
669
670 /**
671 * Converts this RecognitionConfig to JSON.
672 * @returns JSON object
673 */
674 public toJSON(): { [k: string]: any };
675 }
676
677 namespace RecognitionConfig {
678
679 /** AudioEncoding enum. */
680 enum AudioEncoding {
681 ENCODING_UNSPECIFIED = 0,
682 LINEAR16 = 1,
683 FLAC = 2,
684 MULAW = 3,
685 AMR = 4,
686 AMR_WB = 5,
687 OGG_OPUS = 6,
688 SPEEX_WITH_HEADER_BYTE = 7
689 }
690 }
691
692 /** Properties of a SpeakerDiarizationConfig. */
693 interface ISpeakerDiarizationConfig {
694
695 /** SpeakerDiarizationConfig enableSpeakerDiarization */
696 enableSpeakerDiarization?: (boolean|null);
697
698 /** SpeakerDiarizationConfig minSpeakerCount */
699 minSpeakerCount?: (number|null);
700
701 /** SpeakerDiarizationConfig maxSpeakerCount */
702 maxSpeakerCount?: (number|null);
703
704 /** SpeakerDiarizationConfig speakerTag */
705 speakerTag?: (number|null);
706 }
707
708 /** Represents a SpeakerDiarizationConfig. */
709 class SpeakerDiarizationConfig implements ISpeakerDiarizationConfig {
710
711 /**
712 * Constructs a new SpeakerDiarizationConfig.
713 * @param [properties] Properties to set
714 */
715 constructor(properties?: google.cloud.speech.v1.ISpeakerDiarizationConfig);
716
717 /** SpeakerDiarizationConfig enableSpeakerDiarization. */
718 public enableSpeakerDiarization: boolean;
719
720 /** SpeakerDiarizationConfig minSpeakerCount. */
721 public minSpeakerCount: number;
722
723 /** SpeakerDiarizationConfig maxSpeakerCount. */
724 public maxSpeakerCount: number;
725
726 /** SpeakerDiarizationConfig speakerTag. */
727 public speakerTag: number;
728
729 /**
730 * Creates a new SpeakerDiarizationConfig instance using the specified properties.
731 * @param [properties] Properties to set
732 * @returns SpeakerDiarizationConfig instance
733 */
734 public static create(properties?: google.cloud.speech.v1.ISpeakerDiarizationConfig): google.cloud.speech.v1.SpeakerDiarizationConfig;
735
736 /**
737 * Encodes the specified SpeakerDiarizationConfig message. Does not implicitly {@link google.cloud.speech.v1.SpeakerDiarizationConfig.verify|verify} messages.
738 * @param message SpeakerDiarizationConfig message or plain object to encode
739 * @param [writer] Writer to encode to
740 * @returns Writer
741 */
742 public static encode(message: google.cloud.speech.v1.ISpeakerDiarizationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
743
744 /**
745 * Encodes the specified SpeakerDiarizationConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1.SpeakerDiarizationConfig.verify|verify} messages.
746 * @param message SpeakerDiarizationConfig message or plain object to encode
747 * @param [writer] Writer to encode to
748 * @returns Writer
749 */
750 public static encodeDelimited(message: google.cloud.speech.v1.ISpeakerDiarizationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
751
752 /**
753 * Decodes a SpeakerDiarizationConfig message from the specified reader or buffer.
754 * @param reader Reader or buffer to decode from
755 * @param [length] Message length if known beforehand
756 * @returns SpeakerDiarizationConfig
757 * @throws {Error} If the payload is not a reader or valid buffer
758 * @throws {$protobuf.util.ProtocolError} If required fields are missing
759 */
760 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.SpeakerDiarizationConfig;
761
762 /**
763 * Decodes a SpeakerDiarizationConfig message from the specified reader or buffer, length delimited.
764 * @param reader Reader or buffer to decode from
765 * @returns SpeakerDiarizationConfig
766 * @throws {Error} If the payload is not a reader or valid buffer
767 * @throws {$protobuf.util.ProtocolError} If required fields are missing
768 */
769 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.SpeakerDiarizationConfig;
770
771 /**
772 * Verifies a SpeakerDiarizationConfig message.
773 * @param message Plain object to verify
774 * @returns `null` if valid, otherwise the reason why it is not
775 */
776 public static verify(message: { [k: string]: any }): (string|null);
777
778 /**
779 * Creates a SpeakerDiarizationConfig message from a plain object. Also converts values to their respective internal types.
780 * @param object Plain object
781 * @returns SpeakerDiarizationConfig
782 */
783 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.SpeakerDiarizationConfig;
784
785 /**
786 * Creates a plain object from a SpeakerDiarizationConfig message. Also converts values to other types if specified.
787 * @param message SpeakerDiarizationConfig
788 * @param [options] Conversion options
789 * @returns Plain object
790 */
791 public static toObject(message: google.cloud.speech.v1.SpeakerDiarizationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
792
793 /**
794 * Converts this SpeakerDiarizationConfig to JSON.
795 * @returns JSON object
796 */
797 public toJSON(): { [k: string]: any };
798 }
799
800 /** Properties of a RecognitionMetadata. */
801 interface IRecognitionMetadata {
802
803 /** RecognitionMetadata interactionType */
804 interactionType?: (google.cloud.speech.v1.RecognitionMetadata.InteractionType|keyof typeof google.cloud.speech.v1.RecognitionMetadata.InteractionType|null);
805
806 /** RecognitionMetadata industryNaicsCodeOfAudio */
807 industryNaicsCodeOfAudio?: (number|null);
808
809 /** RecognitionMetadata microphoneDistance */
810 microphoneDistance?: (google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance|keyof typeof google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance|null);
811
812 /** RecognitionMetadata originalMediaType */
813 originalMediaType?: (google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType|keyof typeof google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType|null);
814
815 /** RecognitionMetadata recordingDeviceType */
816 recordingDeviceType?: (google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType|keyof typeof google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType|null);
817
818 /** RecognitionMetadata recordingDeviceName */
819 recordingDeviceName?: (string|null);
820
821 /** RecognitionMetadata originalMimeType */
822 originalMimeType?: (string|null);
823
824 /** RecognitionMetadata audioTopic */
825 audioTopic?: (string|null);
826 }
827
828 /** Represents a RecognitionMetadata. */
829 class RecognitionMetadata implements IRecognitionMetadata {
830
831 /**
832 * Constructs a new RecognitionMetadata.
833 * @param [properties] Properties to set
834 */
835 constructor(properties?: google.cloud.speech.v1.IRecognitionMetadata);
836
837 /** RecognitionMetadata interactionType. */
838 public interactionType: (google.cloud.speech.v1.RecognitionMetadata.InteractionType|keyof typeof google.cloud.speech.v1.RecognitionMetadata.InteractionType);
839
840 /** RecognitionMetadata industryNaicsCodeOfAudio. */
841 public industryNaicsCodeOfAudio: number;
842
843 /** RecognitionMetadata microphoneDistance. */
844 public microphoneDistance: (google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance|keyof typeof google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance);
845
846 /** RecognitionMetadata originalMediaType. */
847 public originalMediaType: (google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType|keyof typeof google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType);
848
849 /** RecognitionMetadata recordingDeviceType. */
850 public recordingDeviceType: (google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType|keyof typeof google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType);
851
852 /** RecognitionMetadata recordingDeviceName. */
853 public recordingDeviceName: string;
854
855 /** RecognitionMetadata originalMimeType. */
856 public originalMimeType: string;
857
858 /** RecognitionMetadata audioTopic. */
859 public audioTopic: string;
860
861 /**
862 * Creates a new RecognitionMetadata instance using the specified properties.
863 * @param [properties] Properties to set
864 * @returns RecognitionMetadata instance
865 */
866 public static create(properties?: google.cloud.speech.v1.IRecognitionMetadata): google.cloud.speech.v1.RecognitionMetadata;
867
868 /**
869 * Encodes the specified RecognitionMetadata message. Does not implicitly {@link google.cloud.speech.v1.RecognitionMetadata.verify|verify} messages.
870 * @param message RecognitionMetadata message or plain object to encode
871 * @param [writer] Writer to encode to
872 * @returns Writer
873 */
874 public static encode(message: google.cloud.speech.v1.IRecognitionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
875
876 /**
877 * Encodes the specified RecognitionMetadata message, length delimited. Does not implicitly {@link google.cloud.speech.v1.RecognitionMetadata.verify|verify} messages.
878 * @param message RecognitionMetadata message or plain object to encode
879 * @param [writer] Writer to encode to
880 * @returns Writer
881 */
882 public static encodeDelimited(message: google.cloud.speech.v1.IRecognitionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
883
884 /**
885 * Decodes a RecognitionMetadata message from the specified reader or buffer.
886 * @param reader Reader or buffer to decode from
887 * @param [length] Message length if known beforehand
888 * @returns RecognitionMetadata
889 * @throws {Error} If the payload is not a reader or valid buffer
890 * @throws {$protobuf.util.ProtocolError} If required fields are missing
891 */
892 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.RecognitionMetadata;
893
894 /**
895 * Decodes a RecognitionMetadata message from the specified reader or buffer, length delimited.
896 * @param reader Reader or buffer to decode from
897 * @returns RecognitionMetadata
898 * @throws {Error} If the payload is not a reader or valid buffer
899 * @throws {$protobuf.util.ProtocolError} If required fields are missing
900 */
901 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.RecognitionMetadata;
902
903 /**
904 * Verifies a RecognitionMetadata message.
905 * @param message Plain object to verify
906 * @returns `null` if valid, otherwise the reason why it is not
907 */
908 public static verify(message: { [k: string]: any }): (string|null);
909
910 /**
911 * Creates a RecognitionMetadata message from a plain object. Also converts values to their respective internal types.
912 * @param object Plain object
913 * @returns RecognitionMetadata
914 */
915 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.RecognitionMetadata;
916
917 /**
918 * Creates a plain object from a RecognitionMetadata message. Also converts values to other types if specified.
919 * @param message RecognitionMetadata
920 * @param [options] Conversion options
921 * @returns Plain object
922 */
923 public static toObject(message: google.cloud.speech.v1.RecognitionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
924
925 /**
926 * Converts this RecognitionMetadata to JSON.
927 * @returns JSON object
928 */
929 public toJSON(): { [k: string]: any };
930 }
931
932 namespace RecognitionMetadata {
933
934 /** InteractionType enum. */
935 enum InteractionType {
936 INTERACTION_TYPE_UNSPECIFIED = 0,
937 DISCUSSION = 1,
938 PRESENTATION = 2,
939 PHONE_CALL = 3,
940 VOICEMAIL = 4,
941 PROFESSIONALLY_PRODUCED = 5,
942 VOICE_SEARCH = 6,
943 VOICE_COMMAND = 7,
944 DICTATION = 8
945 }
946
947 /** MicrophoneDistance enum. */
948 enum MicrophoneDistance {
949 MICROPHONE_DISTANCE_UNSPECIFIED = 0,
950 NEARFIELD = 1,
951 MIDFIELD = 2,
952 FARFIELD = 3
953 }
954
955 /** OriginalMediaType enum. */
956 enum OriginalMediaType {
957 ORIGINAL_MEDIA_TYPE_UNSPECIFIED = 0,
958 AUDIO = 1,
959 VIDEO = 2
960 }
961
962 /** RecordingDeviceType enum. */
963 enum RecordingDeviceType {
964 RECORDING_DEVICE_TYPE_UNSPECIFIED = 0,
965 SMARTPHONE = 1,
966 PC = 2,
967 PHONE_LINE = 3,
968 VEHICLE = 4,
969 OTHER_OUTDOOR_DEVICE = 5,
970 OTHER_INDOOR_DEVICE = 6
971 }
972 }
973
974 /** Properties of a SpeechContext. */
975 interface ISpeechContext {
976
977 /** SpeechContext phrases */
978 phrases?: (string[]|null);
979 }
980
981 /** Represents a SpeechContext. */
982 class SpeechContext implements ISpeechContext {
983
984 /**
985 * Constructs a new SpeechContext.
986 * @param [properties] Properties to set
987 */
988 constructor(properties?: google.cloud.speech.v1.ISpeechContext);
989
990 /** SpeechContext phrases. */
991 public phrases: string[];
992
993 /**
994 * Creates a new SpeechContext instance using the specified properties.
995 * @param [properties] Properties to set
996 * @returns SpeechContext instance
997 */
998 public static create(properties?: google.cloud.speech.v1.ISpeechContext): google.cloud.speech.v1.SpeechContext;
999
1000 /**
1001 * Encodes the specified SpeechContext message. Does not implicitly {@link google.cloud.speech.v1.SpeechContext.verify|verify} messages.
1002 * @param message SpeechContext message or plain object to encode
1003 * @param [writer] Writer to encode to
1004 * @returns Writer
1005 */
1006 public static encode(message: google.cloud.speech.v1.ISpeechContext, writer?: $protobuf.Writer): $protobuf.Writer;
1007
1008 /**
1009 * Encodes the specified SpeechContext message, length delimited. Does not implicitly {@link google.cloud.speech.v1.SpeechContext.verify|verify} messages.
1010 * @param message SpeechContext message or plain object to encode
1011 * @param [writer] Writer to encode to
1012 * @returns Writer
1013 */
1014 public static encodeDelimited(message: google.cloud.speech.v1.ISpeechContext, writer?: $protobuf.Writer): $protobuf.Writer;
1015
1016 /**
1017 * Decodes a SpeechContext message from the specified reader or buffer.
1018 * @param reader Reader or buffer to decode from
1019 * @param [length] Message length if known beforehand
1020 * @returns SpeechContext
1021 * @throws {Error} If the payload is not a reader or valid buffer
1022 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1023 */
1024 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.SpeechContext;
1025
1026 /**
1027 * Decodes a SpeechContext message from the specified reader or buffer, length delimited.
1028 * @param reader Reader or buffer to decode from
1029 * @returns SpeechContext
1030 * @throws {Error} If the payload is not a reader or valid buffer
1031 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1032 */
1033 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.SpeechContext;
1034
1035 /**
1036 * Verifies a SpeechContext message.
1037 * @param message Plain object to verify
1038 * @returns `null` if valid, otherwise the reason why it is not
1039 */
1040 public static verify(message: { [k: string]: any }): (string|null);
1041
1042 /**
1043 * Creates a SpeechContext message from a plain object. Also converts values to their respective internal types.
1044 * @param object Plain object
1045 * @returns SpeechContext
1046 */
1047 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.SpeechContext;
1048
1049 /**
1050 * Creates a plain object from a SpeechContext message. Also converts values to other types if specified.
1051 * @param message SpeechContext
1052 * @param [options] Conversion options
1053 * @returns Plain object
1054 */
1055 public static toObject(message: google.cloud.speech.v1.SpeechContext, options?: $protobuf.IConversionOptions): { [k: string]: any };
1056
1057 /**
1058 * Converts this SpeechContext to JSON.
1059 * @returns JSON object
1060 */
1061 public toJSON(): { [k: string]: any };
1062 }
1063
1064 /** Properties of a RecognitionAudio. */
1065 interface IRecognitionAudio {
1066
1067 /** RecognitionAudio content */
1068 content?: (Uint8Array|string|null);
1069
1070 /** RecognitionAudio uri */
1071 uri?: (string|null);
1072 }
1073
1074 /** Represents a RecognitionAudio. */
1075 class RecognitionAudio implements IRecognitionAudio {
1076
1077 /**
1078 * Constructs a new RecognitionAudio.
1079 * @param [properties] Properties to set
1080 */
1081 constructor(properties?: google.cloud.speech.v1.IRecognitionAudio);
1082
1083 /** RecognitionAudio content. */
1084 public content?: (Uint8Array|string|null);
1085
1086 /** RecognitionAudio uri. */
1087 public uri?: (string|null);
1088
1089 /** RecognitionAudio audioSource. */
1090 public audioSource?: ("content"|"uri");
1091
1092 /**
1093 * Creates a new RecognitionAudio instance using the specified properties.
1094 * @param [properties] Properties to set
1095 * @returns RecognitionAudio instance
1096 */
1097 public static create(properties?: google.cloud.speech.v1.IRecognitionAudio): google.cloud.speech.v1.RecognitionAudio;
1098
1099 /**
1100 * Encodes the specified RecognitionAudio message. Does not implicitly {@link google.cloud.speech.v1.RecognitionAudio.verify|verify} messages.
1101 * @param message RecognitionAudio message or plain object to encode
1102 * @param [writer] Writer to encode to
1103 * @returns Writer
1104 */
1105 public static encode(message: google.cloud.speech.v1.IRecognitionAudio, writer?: $protobuf.Writer): $protobuf.Writer;
1106
1107 /**
1108 * Encodes the specified RecognitionAudio message, length delimited. Does not implicitly {@link google.cloud.speech.v1.RecognitionAudio.verify|verify} messages.
1109 * @param message RecognitionAudio message or plain object to encode
1110 * @param [writer] Writer to encode to
1111 * @returns Writer
1112 */
1113 public static encodeDelimited(message: google.cloud.speech.v1.IRecognitionAudio, writer?: $protobuf.Writer): $protobuf.Writer;
1114
1115 /**
1116 * Decodes a RecognitionAudio message from the specified reader or buffer.
1117 * @param reader Reader or buffer to decode from
1118 * @param [length] Message length if known beforehand
1119 * @returns RecognitionAudio
1120 * @throws {Error} If the payload is not a reader or valid buffer
1121 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1122 */
1123 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.RecognitionAudio;
1124
1125 /**
1126 * Decodes a RecognitionAudio message from the specified reader or buffer, length delimited.
1127 * @param reader Reader or buffer to decode from
1128 * @returns RecognitionAudio
1129 * @throws {Error} If the payload is not a reader or valid buffer
1130 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1131 */
1132 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.RecognitionAudio;
1133
1134 /**
1135 * Verifies a RecognitionAudio message.
1136 * @param message Plain object to verify
1137 * @returns `null` if valid, otherwise the reason why it is not
1138 */
1139 public static verify(message: { [k: string]: any }): (string|null);
1140
1141 /**
1142 * Creates a RecognitionAudio message from a plain object. Also converts values to their respective internal types.
1143 * @param object Plain object
1144 * @returns RecognitionAudio
1145 */
1146 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.RecognitionAudio;
1147
1148 /**
1149 * Creates a plain object from a RecognitionAudio message. Also converts values to other types if specified.
1150 * @param message RecognitionAudio
1151 * @param [options] Conversion options
1152 * @returns Plain object
1153 */
1154 public static toObject(message: google.cloud.speech.v1.RecognitionAudio, options?: $protobuf.IConversionOptions): { [k: string]: any };
1155
1156 /**
1157 * Converts this RecognitionAudio to JSON.
1158 * @returns JSON object
1159 */
1160 public toJSON(): { [k: string]: any };
1161 }
1162
1163 /** Properties of a RecognizeResponse. */
1164 interface IRecognizeResponse {
1165
1166 /** RecognizeResponse results */
1167 results?: (google.cloud.speech.v1.ISpeechRecognitionResult[]|null);
1168
1169 /** RecognizeResponse totalBilledTime */
1170 totalBilledTime?: (google.protobuf.IDuration|null);
1171 }
1172
1173 /** Represents a RecognizeResponse. */
1174 class RecognizeResponse implements IRecognizeResponse {
1175
1176 /**
1177 * Constructs a new RecognizeResponse.
1178 * @param [properties] Properties to set
1179 */
1180 constructor(properties?: google.cloud.speech.v1.IRecognizeResponse);
1181
1182 /** RecognizeResponse results. */
1183 public results: google.cloud.speech.v1.ISpeechRecognitionResult[];
1184
1185 /** RecognizeResponse totalBilledTime. */
1186 public totalBilledTime?: (google.protobuf.IDuration|null);
1187
1188 /**
1189 * Creates a new RecognizeResponse instance using the specified properties.
1190 * @param [properties] Properties to set
1191 * @returns RecognizeResponse instance
1192 */
1193 public static create(properties?: google.cloud.speech.v1.IRecognizeResponse): google.cloud.speech.v1.RecognizeResponse;
1194
1195 /**
1196 * Encodes the specified RecognizeResponse message. Does not implicitly {@link google.cloud.speech.v1.RecognizeResponse.verify|verify} messages.
1197 * @param message RecognizeResponse message or plain object to encode
1198 * @param [writer] Writer to encode to
1199 * @returns Writer
1200 */
1201 public static encode(message: google.cloud.speech.v1.IRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
1202
1203 /**
1204 * Encodes the specified RecognizeResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1.RecognizeResponse.verify|verify} messages.
1205 * @param message RecognizeResponse message or plain object to encode
1206 * @param [writer] Writer to encode to
1207 * @returns Writer
1208 */
1209 public static encodeDelimited(message: google.cloud.speech.v1.IRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
1210
1211 /**
1212 * Decodes a RecognizeResponse message from the specified reader or buffer.
1213 * @param reader Reader or buffer to decode from
1214 * @param [length] Message length if known beforehand
1215 * @returns RecognizeResponse
1216 * @throws {Error} If the payload is not a reader or valid buffer
1217 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1218 */
1219 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.RecognizeResponse;
1220
1221 /**
1222 * Decodes a RecognizeResponse message from the specified reader or buffer, length delimited.
1223 * @param reader Reader or buffer to decode from
1224 * @returns RecognizeResponse
1225 * @throws {Error} If the payload is not a reader or valid buffer
1226 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1227 */
1228 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.RecognizeResponse;
1229
1230 /**
1231 * Verifies a RecognizeResponse message.
1232 * @param message Plain object to verify
1233 * @returns `null` if valid, otherwise the reason why it is not
1234 */
1235 public static verify(message: { [k: string]: any }): (string|null);
1236
1237 /**
1238 * Creates a RecognizeResponse message from a plain object. Also converts values to their respective internal types.
1239 * @param object Plain object
1240 * @returns RecognizeResponse
1241 */
1242 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.RecognizeResponse;
1243
1244 /**
1245 * Creates a plain object from a RecognizeResponse message. Also converts values to other types if specified.
1246 * @param message RecognizeResponse
1247 * @param [options] Conversion options
1248 * @returns Plain object
1249 */
1250 public static toObject(message: google.cloud.speech.v1.RecognizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
1251
1252 /**
1253 * Converts this RecognizeResponse to JSON.
1254 * @returns JSON object
1255 */
1256 public toJSON(): { [k: string]: any };
1257 }
1258
1259 /** Properties of a LongRunningRecognizeResponse. */
1260 interface ILongRunningRecognizeResponse {
1261
1262 /** LongRunningRecognizeResponse results */
1263 results?: (google.cloud.speech.v1.ISpeechRecognitionResult[]|null);
1264
1265 /** LongRunningRecognizeResponse totalBilledTime */
1266 totalBilledTime?: (google.protobuf.IDuration|null);
1267 }
1268
1269 /** Represents a LongRunningRecognizeResponse. */
1270 class LongRunningRecognizeResponse implements ILongRunningRecognizeResponse {
1271
1272 /**
1273 * Constructs a new LongRunningRecognizeResponse.
1274 * @param [properties] Properties to set
1275 */
1276 constructor(properties?: google.cloud.speech.v1.ILongRunningRecognizeResponse);
1277
1278 /** LongRunningRecognizeResponse results. */
1279 public results: google.cloud.speech.v1.ISpeechRecognitionResult[];
1280
1281 /** LongRunningRecognizeResponse totalBilledTime. */
1282 public totalBilledTime?: (google.protobuf.IDuration|null);
1283
1284 /**
1285 * Creates a new LongRunningRecognizeResponse instance using the specified properties.
1286 * @param [properties] Properties to set
1287 * @returns LongRunningRecognizeResponse instance
1288 */
1289 public static create(properties?: google.cloud.speech.v1.ILongRunningRecognizeResponse): google.cloud.speech.v1.LongRunningRecognizeResponse;
1290
1291 /**
1292 * Encodes the specified LongRunningRecognizeResponse message. Does not implicitly {@link google.cloud.speech.v1.LongRunningRecognizeResponse.verify|verify} messages.
1293 * @param message LongRunningRecognizeResponse message or plain object to encode
1294 * @param [writer] Writer to encode to
1295 * @returns Writer
1296 */
1297 public static encode(message: google.cloud.speech.v1.ILongRunningRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
1298
1299 /**
1300 * Encodes the specified LongRunningRecognizeResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1.LongRunningRecognizeResponse.verify|verify} messages.
1301 * @param message LongRunningRecognizeResponse message or plain object to encode
1302 * @param [writer] Writer to encode to
1303 * @returns Writer
1304 */
1305 public static encodeDelimited(message: google.cloud.speech.v1.ILongRunningRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
1306
1307 /**
1308 * Decodes a LongRunningRecognizeResponse message from the specified reader or buffer.
1309 * @param reader Reader or buffer to decode from
1310 * @param [length] Message length if known beforehand
1311 * @returns LongRunningRecognizeResponse
1312 * @throws {Error} If the payload is not a reader or valid buffer
1313 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1314 */
1315 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.LongRunningRecognizeResponse;
1316
1317 /**
1318 * Decodes a LongRunningRecognizeResponse message from the specified reader or buffer, length delimited.
1319 * @param reader Reader or buffer to decode from
1320 * @returns LongRunningRecognizeResponse
1321 * @throws {Error} If the payload is not a reader or valid buffer
1322 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1323 */
1324 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.LongRunningRecognizeResponse;
1325
1326 /**
1327 * Verifies a LongRunningRecognizeResponse message.
1328 * @param message Plain object to verify
1329 * @returns `null` if valid, otherwise the reason why it is not
1330 */
1331 public static verify(message: { [k: string]: any }): (string|null);
1332
1333 /**
1334 * Creates a LongRunningRecognizeResponse message from a plain object. Also converts values to their respective internal types.
1335 * @param object Plain object
1336 * @returns LongRunningRecognizeResponse
1337 */
1338 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.LongRunningRecognizeResponse;
1339
1340 /**
1341 * Creates a plain object from a LongRunningRecognizeResponse message. Also converts values to other types if specified.
1342 * @param message LongRunningRecognizeResponse
1343 * @param [options] Conversion options
1344 * @returns Plain object
1345 */
1346 public static toObject(message: google.cloud.speech.v1.LongRunningRecognizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
1347
1348 /**
1349 * Converts this LongRunningRecognizeResponse to JSON.
1350 * @returns JSON object
1351 */
1352 public toJSON(): { [k: string]: any };
1353 }
1354
1355 /** Properties of a LongRunningRecognizeMetadata. */
1356 interface ILongRunningRecognizeMetadata {
1357
1358 /** LongRunningRecognizeMetadata progressPercent */
1359 progressPercent?: (number|null);
1360
1361 /** LongRunningRecognizeMetadata startTime */
1362 startTime?: (google.protobuf.ITimestamp|null);
1363
1364 /** LongRunningRecognizeMetadata lastUpdateTime */
1365 lastUpdateTime?: (google.protobuf.ITimestamp|null);
1366
1367 /** LongRunningRecognizeMetadata uri */
1368 uri?: (string|null);
1369 }
1370
1371 /** Represents a LongRunningRecognizeMetadata. */
1372 class LongRunningRecognizeMetadata implements ILongRunningRecognizeMetadata {
1373
1374 /**
1375 * Constructs a new LongRunningRecognizeMetadata.
1376 * @param [properties] Properties to set
1377 */
1378 constructor(properties?: google.cloud.speech.v1.ILongRunningRecognizeMetadata);
1379
1380 /** LongRunningRecognizeMetadata progressPercent. */
1381 public progressPercent: number;
1382
1383 /** LongRunningRecognizeMetadata startTime. */
1384 public startTime?: (google.protobuf.ITimestamp|null);
1385
1386 /** LongRunningRecognizeMetadata lastUpdateTime. */
1387 public lastUpdateTime?: (google.protobuf.ITimestamp|null);
1388
1389 /** LongRunningRecognizeMetadata uri. */
1390 public uri: string;
1391
1392 /**
1393 * Creates a new LongRunningRecognizeMetadata instance using the specified properties.
1394 * @param [properties] Properties to set
1395 * @returns LongRunningRecognizeMetadata instance
1396 */
1397 public static create(properties?: google.cloud.speech.v1.ILongRunningRecognizeMetadata): google.cloud.speech.v1.LongRunningRecognizeMetadata;
1398
1399 /**
1400 * Encodes the specified LongRunningRecognizeMetadata message. Does not implicitly {@link google.cloud.speech.v1.LongRunningRecognizeMetadata.verify|verify} messages.
1401 * @param message LongRunningRecognizeMetadata message or plain object to encode
1402 * @param [writer] Writer to encode to
1403 * @returns Writer
1404 */
1405 public static encode(message: google.cloud.speech.v1.ILongRunningRecognizeMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
1406
1407 /**
1408 * Encodes the specified LongRunningRecognizeMetadata message, length delimited. Does not implicitly {@link google.cloud.speech.v1.LongRunningRecognizeMetadata.verify|verify} messages.
1409 * @param message LongRunningRecognizeMetadata message or plain object to encode
1410 * @param [writer] Writer to encode to
1411 * @returns Writer
1412 */
1413 public static encodeDelimited(message: google.cloud.speech.v1.ILongRunningRecognizeMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
1414
1415 /**
1416 * Decodes a LongRunningRecognizeMetadata message from the specified reader or buffer.
1417 * @param reader Reader or buffer to decode from
1418 * @param [length] Message length if known beforehand
1419 * @returns LongRunningRecognizeMetadata
1420 * @throws {Error} If the payload is not a reader or valid buffer
1421 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1422 */
1423 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.LongRunningRecognizeMetadata;
1424
1425 /**
1426 * Decodes a LongRunningRecognizeMetadata message from the specified reader or buffer, length delimited.
1427 * @param reader Reader or buffer to decode from
1428 * @returns LongRunningRecognizeMetadata
1429 * @throws {Error} If the payload is not a reader or valid buffer
1430 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1431 */
1432 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.LongRunningRecognizeMetadata;
1433
1434 /**
1435 * Verifies a LongRunningRecognizeMetadata message.
1436 * @param message Plain object to verify
1437 * @returns `null` if valid, otherwise the reason why it is not
1438 */
1439 public static verify(message: { [k: string]: any }): (string|null);
1440
1441 /**
1442 * Creates a LongRunningRecognizeMetadata message from a plain object. Also converts values to their respective internal types.
1443 * @param object Plain object
1444 * @returns LongRunningRecognizeMetadata
1445 */
1446 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.LongRunningRecognizeMetadata;
1447
1448 /**
1449 * Creates a plain object from a LongRunningRecognizeMetadata message. Also converts values to other types if specified.
1450 * @param message LongRunningRecognizeMetadata
1451 * @param [options] Conversion options
1452 * @returns Plain object
1453 */
1454 public static toObject(message: google.cloud.speech.v1.LongRunningRecognizeMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
1455
1456 /**
1457 * Converts this LongRunningRecognizeMetadata to JSON.
1458 * @returns JSON object
1459 */
1460 public toJSON(): { [k: string]: any };
1461 }
1462
1463 /** Properties of a StreamingRecognizeResponse. */
1464 interface IStreamingRecognizeResponse {
1465
1466 /** StreamingRecognizeResponse error */
1467 error?: (google.rpc.IStatus|null);
1468
1469 /** StreamingRecognizeResponse results */
1470 results?: (google.cloud.speech.v1.IStreamingRecognitionResult[]|null);
1471
1472 /** StreamingRecognizeResponse speechEventType */
1473 speechEventType?: (google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType|keyof typeof google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType|null);
1474
1475 /** StreamingRecognizeResponse totalBilledTime */
1476 totalBilledTime?: (google.protobuf.IDuration|null);
1477 }
1478
1479 /** Represents a StreamingRecognizeResponse. */
1480 class StreamingRecognizeResponse implements IStreamingRecognizeResponse {
1481
1482 /**
1483 * Constructs a new StreamingRecognizeResponse.
1484 * @param [properties] Properties to set
1485 */
1486 constructor(properties?: google.cloud.speech.v1.IStreamingRecognizeResponse);
1487
1488 /** StreamingRecognizeResponse error. */
1489 public error?: (google.rpc.IStatus|null);
1490
1491 /** StreamingRecognizeResponse results. */
1492 public results: google.cloud.speech.v1.IStreamingRecognitionResult[];
1493
1494 /** StreamingRecognizeResponse speechEventType. */
1495 public speechEventType: (google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType|keyof typeof google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType);
1496
1497 /** StreamingRecognizeResponse totalBilledTime. */
1498 public totalBilledTime?: (google.protobuf.IDuration|null);
1499
1500 /**
1501 * Creates a new StreamingRecognizeResponse instance using the specified properties.
1502 * @param [properties] Properties to set
1503 * @returns StreamingRecognizeResponse instance
1504 */
1505 public static create(properties?: google.cloud.speech.v1.IStreamingRecognizeResponse): google.cloud.speech.v1.StreamingRecognizeResponse;
1506
1507 /**
1508 * Encodes the specified StreamingRecognizeResponse message. Does not implicitly {@link google.cloud.speech.v1.StreamingRecognizeResponse.verify|verify} messages.
1509 * @param message StreamingRecognizeResponse message or plain object to encode
1510 * @param [writer] Writer to encode to
1511 * @returns Writer
1512 */
1513 public static encode(message: google.cloud.speech.v1.IStreamingRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
1514
1515 /**
1516 * Encodes the specified StreamingRecognizeResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1.StreamingRecognizeResponse.verify|verify} messages.
1517 * @param message StreamingRecognizeResponse message or plain object to encode
1518 * @param [writer] Writer to encode to
1519 * @returns Writer
1520 */
1521 public static encodeDelimited(message: google.cloud.speech.v1.IStreamingRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
1522
1523 /**
1524 * Decodes a StreamingRecognizeResponse message from the specified reader or buffer.
1525 * @param reader Reader or buffer to decode from
1526 * @param [length] Message length if known beforehand
1527 * @returns StreamingRecognizeResponse
1528 * @throws {Error} If the payload is not a reader or valid buffer
1529 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1530 */
1531 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.StreamingRecognizeResponse;
1532
1533 /**
1534 * Decodes a StreamingRecognizeResponse message from the specified reader or buffer, length delimited.
1535 * @param reader Reader or buffer to decode from
1536 * @returns StreamingRecognizeResponse
1537 * @throws {Error} If the payload is not a reader or valid buffer
1538 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1539 */
1540 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.StreamingRecognizeResponse;
1541
1542 /**
1543 * Verifies a StreamingRecognizeResponse message.
1544 * @param message Plain object to verify
1545 * @returns `null` if valid, otherwise the reason why it is not
1546 */
1547 public static verify(message: { [k: string]: any }): (string|null);
1548
1549 /**
1550 * Creates a StreamingRecognizeResponse message from a plain object. Also converts values to their respective internal types.
1551 * @param object Plain object
1552 * @returns StreamingRecognizeResponse
1553 */
1554 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.StreamingRecognizeResponse;
1555
1556 /**
1557 * Creates a plain object from a StreamingRecognizeResponse message. Also converts values to other types if specified.
1558 * @param message StreamingRecognizeResponse
1559 * @param [options] Conversion options
1560 * @returns Plain object
1561 */
1562 public static toObject(message: google.cloud.speech.v1.StreamingRecognizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
1563
1564 /**
1565 * Converts this StreamingRecognizeResponse to JSON.
1566 * @returns JSON object
1567 */
1568 public toJSON(): { [k: string]: any };
1569 }
1570
1571 namespace StreamingRecognizeResponse {
1572
1573 /** SpeechEventType enum. */
1574 enum SpeechEventType {
1575 SPEECH_EVENT_UNSPECIFIED = 0,
1576 END_OF_SINGLE_UTTERANCE = 1
1577 }
1578 }
1579
1580 /** Properties of a StreamingRecognitionResult. */
1581 interface IStreamingRecognitionResult {
1582
1583 /** StreamingRecognitionResult alternatives */
1584 alternatives?: (google.cloud.speech.v1.ISpeechRecognitionAlternative[]|null);
1585
1586 /** StreamingRecognitionResult isFinal */
1587 isFinal?: (boolean|null);
1588
1589 /** StreamingRecognitionResult stability */
1590 stability?: (number|null);
1591
1592 /** StreamingRecognitionResult resultEndTime */
1593 resultEndTime?: (google.protobuf.IDuration|null);
1594
1595 /** StreamingRecognitionResult channelTag */
1596 channelTag?: (number|null);
1597
1598 /** StreamingRecognitionResult languageCode */
1599 languageCode?: (string|null);
1600 }
1601
1602 /** Represents a StreamingRecognitionResult. */
1603 class StreamingRecognitionResult implements IStreamingRecognitionResult {
1604
1605 /**
1606 * Constructs a new StreamingRecognitionResult.
1607 * @param [properties] Properties to set
1608 */
1609 constructor(properties?: google.cloud.speech.v1.IStreamingRecognitionResult);
1610
1611 /** StreamingRecognitionResult alternatives. */
1612 public alternatives: google.cloud.speech.v1.ISpeechRecognitionAlternative[];
1613
1614 /** StreamingRecognitionResult isFinal. */
1615 public isFinal: boolean;
1616
1617 /** StreamingRecognitionResult stability. */
1618 public stability: number;
1619
1620 /** StreamingRecognitionResult resultEndTime. */
1621 public resultEndTime?: (google.protobuf.IDuration|null);
1622
1623 /** StreamingRecognitionResult channelTag. */
1624 public channelTag: number;
1625
1626 /** StreamingRecognitionResult languageCode. */
1627 public languageCode: string;
1628
1629 /**
1630 * Creates a new StreamingRecognitionResult instance using the specified properties.
1631 * @param [properties] Properties to set
1632 * @returns StreamingRecognitionResult instance
1633 */
1634 public static create(properties?: google.cloud.speech.v1.IStreamingRecognitionResult): google.cloud.speech.v1.StreamingRecognitionResult;
1635
1636 /**
1637 * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.speech.v1.StreamingRecognitionResult.verify|verify} messages.
1638 * @param message StreamingRecognitionResult message or plain object to encode
1639 * @param [writer] Writer to encode to
1640 * @returns Writer
1641 */
1642 public static encode(message: google.cloud.speech.v1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
1643
1644 /**
1645 * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.speech.v1.StreamingRecognitionResult.verify|verify} messages.
1646 * @param message StreamingRecognitionResult message or plain object to encode
1647 * @param [writer] Writer to encode to
1648 * @returns Writer
1649 */
1650 public static encodeDelimited(message: google.cloud.speech.v1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
1651
1652 /**
1653 * Decodes a StreamingRecognitionResult message from the specified reader or buffer.
1654 * @param reader Reader or buffer to decode from
1655 * @param [length] Message length if known beforehand
1656 * @returns StreamingRecognitionResult
1657 * @throws {Error} If the payload is not a reader or valid buffer
1658 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1659 */
1660 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.StreamingRecognitionResult;
1661
1662 /**
1663 * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited.
1664 * @param reader Reader or buffer to decode from
1665 * @returns StreamingRecognitionResult
1666 * @throws {Error} If the payload is not a reader or valid buffer
1667 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1668 */
1669 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.StreamingRecognitionResult;
1670
1671 /**
1672 * Verifies a StreamingRecognitionResult message.
1673 * @param message Plain object to verify
1674 * @returns `null` if valid, otherwise the reason why it is not
1675 */
1676 public static verify(message: { [k: string]: any }): (string|null);
1677
1678 /**
1679 * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types.
1680 * @param object Plain object
1681 * @returns StreamingRecognitionResult
1682 */
1683 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.StreamingRecognitionResult;
1684
1685 /**
1686 * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified.
1687 * @param message StreamingRecognitionResult
1688 * @param [options] Conversion options
1689 * @returns Plain object
1690 */
1691 public static toObject(message: google.cloud.speech.v1.StreamingRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
1692
1693 /**
1694 * Converts this StreamingRecognitionResult to JSON.
1695 * @returns JSON object
1696 */
1697 public toJSON(): { [k: string]: any };
1698 }
1699
1700 /** Properties of a SpeechRecognitionResult. */
1701 interface ISpeechRecognitionResult {
1702
1703 /** SpeechRecognitionResult alternatives */
1704 alternatives?: (google.cloud.speech.v1.ISpeechRecognitionAlternative[]|null);
1705
1706 /** SpeechRecognitionResult channelTag */
1707 channelTag?: (number|null);
1708 }
1709
1710 /** Represents a SpeechRecognitionResult. */
1711 class SpeechRecognitionResult implements ISpeechRecognitionResult {
1712
1713 /**
1714 * Constructs a new SpeechRecognitionResult.
1715 * @param [properties] Properties to set
1716 */
1717 constructor(properties?: google.cloud.speech.v1.ISpeechRecognitionResult);
1718
1719 /** SpeechRecognitionResult alternatives. */
1720 public alternatives: google.cloud.speech.v1.ISpeechRecognitionAlternative[];
1721
1722 /** SpeechRecognitionResult channelTag. */
1723 public channelTag: number;
1724
1725 /**
1726 * Creates a new SpeechRecognitionResult instance using the specified properties.
1727 * @param [properties] Properties to set
1728 * @returns SpeechRecognitionResult instance
1729 */
1730 public static create(properties?: google.cloud.speech.v1.ISpeechRecognitionResult): google.cloud.speech.v1.SpeechRecognitionResult;
1731
1732 /**
1733 * Encodes the specified SpeechRecognitionResult message. Does not implicitly {@link google.cloud.speech.v1.SpeechRecognitionResult.verify|verify} messages.
1734 * @param message SpeechRecognitionResult message or plain object to encode
1735 * @param [writer] Writer to encode to
1736 * @returns Writer
1737 */
1738 public static encode(message: google.cloud.speech.v1.ISpeechRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
1739
1740 /**
1741 * Encodes the specified SpeechRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.speech.v1.SpeechRecognitionResult.verify|verify} messages.
1742 * @param message SpeechRecognitionResult message or plain object to encode
1743 * @param [writer] Writer to encode to
1744 * @returns Writer
1745 */
1746 public static encodeDelimited(message: google.cloud.speech.v1.ISpeechRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
1747
1748 /**
1749 * Decodes a SpeechRecognitionResult message from the specified reader or buffer.
1750 * @param reader Reader or buffer to decode from
1751 * @param [length] Message length if known beforehand
1752 * @returns SpeechRecognitionResult
1753 * @throws {Error} If the payload is not a reader or valid buffer
1754 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1755 */
1756 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.SpeechRecognitionResult;
1757
1758 /**
1759 * Decodes a SpeechRecognitionResult message from the specified reader or buffer, length delimited.
1760 * @param reader Reader or buffer to decode from
1761 * @returns SpeechRecognitionResult
1762 * @throws {Error} If the payload is not a reader or valid buffer
1763 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1764 */
1765 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.SpeechRecognitionResult;
1766
1767 /**
1768 * Verifies a SpeechRecognitionResult message.
1769 * @param message Plain object to verify
1770 * @returns `null` if valid, otherwise the reason why it is not
1771 */
1772 public static verify(message: { [k: string]: any }): (string|null);
1773
1774 /**
1775 * Creates a SpeechRecognitionResult message from a plain object. Also converts values to their respective internal types.
1776 * @param object Plain object
1777 * @returns SpeechRecognitionResult
1778 */
1779 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.SpeechRecognitionResult;
1780
1781 /**
1782 * Creates a plain object from a SpeechRecognitionResult message. Also converts values to other types if specified.
1783 * @param message SpeechRecognitionResult
1784 * @param [options] Conversion options
1785 * @returns Plain object
1786 */
1787 public static toObject(message: google.cloud.speech.v1.SpeechRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
1788
1789 /**
1790 * Converts this SpeechRecognitionResult to JSON.
1791 * @returns JSON object
1792 */
1793 public toJSON(): { [k: string]: any };
1794 }
1795
1796 /** Properties of a SpeechRecognitionAlternative. */
1797 interface ISpeechRecognitionAlternative {
1798
1799 /** SpeechRecognitionAlternative transcript */
1800 transcript?: (string|null);
1801
1802 /** SpeechRecognitionAlternative confidence */
1803 confidence?: (number|null);
1804
1805 /** SpeechRecognitionAlternative words */
1806 words?: (google.cloud.speech.v1.IWordInfo[]|null);
1807 }
1808
1809 /** Represents a SpeechRecognitionAlternative. */
1810 class SpeechRecognitionAlternative implements ISpeechRecognitionAlternative {
1811
1812 /**
1813 * Constructs a new SpeechRecognitionAlternative.
1814 * @param [properties] Properties to set
1815 */
1816 constructor(properties?: google.cloud.speech.v1.ISpeechRecognitionAlternative);
1817
1818 /** SpeechRecognitionAlternative transcript. */
1819 public transcript: string;
1820
1821 /** SpeechRecognitionAlternative confidence. */
1822 public confidence: number;
1823
1824 /** SpeechRecognitionAlternative words. */
1825 public words: google.cloud.speech.v1.IWordInfo[];
1826
1827 /**
1828 * Creates a new SpeechRecognitionAlternative instance using the specified properties.
1829 * @param [properties] Properties to set
1830 * @returns SpeechRecognitionAlternative instance
1831 */
1832 public static create(properties?: google.cloud.speech.v1.ISpeechRecognitionAlternative): google.cloud.speech.v1.SpeechRecognitionAlternative;
1833
1834 /**
1835 * Encodes the specified SpeechRecognitionAlternative message. Does not implicitly {@link google.cloud.speech.v1.SpeechRecognitionAlternative.verify|verify} messages.
1836 * @param message SpeechRecognitionAlternative message or plain object to encode
1837 * @param [writer] Writer to encode to
1838 * @returns Writer
1839 */
1840 public static encode(message: google.cloud.speech.v1.ISpeechRecognitionAlternative, writer?: $protobuf.Writer): $protobuf.Writer;
1841
1842 /**
1843 * Encodes the specified SpeechRecognitionAlternative message, length delimited. Does not implicitly {@link google.cloud.speech.v1.SpeechRecognitionAlternative.verify|verify} messages.
1844 * @param message SpeechRecognitionAlternative message or plain object to encode
1845 * @param [writer] Writer to encode to
1846 * @returns Writer
1847 */
1848 public static encodeDelimited(message: google.cloud.speech.v1.ISpeechRecognitionAlternative, writer?: $protobuf.Writer): $protobuf.Writer;
1849
1850 /**
1851 * Decodes a SpeechRecognitionAlternative message from the specified reader or buffer.
1852 * @param reader Reader or buffer to decode from
1853 * @param [length] Message length if known beforehand
1854 * @returns SpeechRecognitionAlternative
1855 * @throws {Error} If the payload is not a reader or valid buffer
1856 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1857 */
1858 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.SpeechRecognitionAlternative;
1859
1860 /**
1861 * Decodes a SpeechRecognitionAlternative message from the specified reader or buffer, length delimited.
1862 * @param reader Reader or buffer to decode from
1863 * @returns SpeechRecognitionAlternative
1864 * @throws {Error} If the payload is not a reader or valid buffer
1865 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1866 */
1867 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.SpeechRecognitionAlternative;
1868
1869 /**
1870 * Verifies a SpeechRecognitionAlternative message.
1871 * @param message Plain object to verify
1872 * @returns `null` if valid, otherwise the reason why it is not
1873 */
1874 public static verify(message: { [k: string]: any }): (string|null);
1875
1876 /**
1877 * Creates a SpeechRecognitionAlternative message from a plain object. Also converts values to their respective internal types.
1878 * @param object Plain object
1879 * @returns SpeechRecognitionAlternative
1880 */
1881 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.SpeechRecognitionAlternative;
1882
1883 /**
1884 * Creates a plain object from a SpeechRecognitionAlternative message. Also converts values to other types if specified.
1885 * @param message SpeechRecognitionAlternative
1886 * @param [options] Conversion options
1887 * @returns Plain object
1888 */
1889 public static toObject(message: google.cloud.speech.v1.SpeechRecognitionAlternative, options?: $protobuf.IConversionOptions): { [k: string]: any };
1890
1891 /**
1892 * Converts this SpeechRecognitionAlternative to JSON.
1893 * @returns JSON object
1894 */
1895 public toJSON(): { [k: string]: any };
1896 }
1897
1898 /** Properties of a WordInfo. */
1899 interface IWordInfo {
1900
1901 /** WordInfo startTime */
1902 startTime?: (google.protobuf.IDuration|null);
1903
1904 /** WordInfo endTime */
1905 endTime?: (google.protobuf.IDuration|null);
1906
1907 /** WordInfo word */
1908 word?: (string|null);
1909
1910 /** WordInfo speakerTag */
1911 speakerTag?: (number|null);
1912 }
1913
1914 /** Represents a WordInfo. */
1915 class WordInfo implements IWordInfo {
1916
1917 /**
1918 * Constructs a new WordInfo.
1919 * @param [properties] Properties to set
1920 */
1921 constructor(properties?: google.cloud.speech.v1.IWordInfo);
1922
1923 /** WordInfo startTime. */
1924 public startTime?: (google.protobuf.IDuration|null);
1925
1926 /** WordInfo endTime. */
1927 public endTime?: (google.protobuf.IDuration|null);
1928
1929 /** WordInfo word. */
1930 public word: string;
1931
1932 /** WordInfo speakerTag. */
1933 public speakerTag: number;
1934
1935 /**
1936 * Creates a new WordInfo instance using the specified properties.
1937 * @param [properties] Properties to set
1938 * @returns WordInfo instance
1939 */
1940 public static create(properties?: google.cloud.speech.v1.IWordInfo): google.cloud.speech.v1.WordInfo;
1941
1942 /**
1943 * Encodes the specified WordInfo message. Does not implicitly {@link google.cloud.speech.v1.WordInfo.verify|verify} messages.
1944 * @param message WordInfo message or plain object to encode
1945 * @param [writer] Writer to encode to
1946 * @returns Writer
1947 */
1948 public static encode(message: google.cloud.speech.v1.IWordInfo, writer?: $protobuf.Writer): $protobuf.Writer;
1949
1950 /**
1951 * Encodes the specified WordInfo message, length delimited. Does not implicitly {@link google.cloud.speech.v1.WordInfo.verify|verify} messages.
1952 * @param message WordInfo message or plain object to encode
1953 * @param [writer] Writer to encode to
1954 * @returns Writer
1955 */
1956 public static encodeDelimited(message: google.cloud.speech.v1.IWordInfo, writer?: $protobuf.Writer): $protobuf.Writer;
1957
1958 /**
1959 * Decodes a WordInfo message from the specified reader or buffer.
1960 * @param reader Reader or buffer to decode from
1961 * @param [length] Message length if known beforehand
1962 * @returns WordInfo
1963 * @throws {Error} If the payload is not a reader or valid buffer
1964 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1965 */
1966 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.WordInfo;
1967
1968 /**
1969 * Decodes a WordInfo message from the specified reader or buffer, length delimited.
1970 * @param reader Reader or buffer to decode from
1971 * @returns WordInfo
1972 * @throws {Error} If the payload is not a reader or valid buffer
1973 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1974 */
1975 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.WordInfo;
1976
1977 /**
1978 * Verifies a WordInfo message.
1979 * @param message Plain object to verify
1980 * @returns `null` if valid, otherwise the reason why it is not
1981 */
1982 public static verify(message: { [k: string]: any }): (string|null);
1983
1984 /**
1985 * Creates a WordInfo message from a plain object. Also converts values to their respective internal types.
1986 * @param object Plain object
1987 * @returns WordInfo
1988 */
1989 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.WordInfo;
1990
1991 /**
1992 * Creates a plain object from a WordInfo message. Also converts values to other types if specified.
1993 * @param message WordInfo
1994 * @param [options] Conversion options
1995 * @returns Plain object
1996 */
1997 public static toObject(message: google.cloud.speech.v1.WordInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
1998
1999 /**
2000 * Converts this WordInfo to JSON.
2001 * @returns JSON object
2002 */
2003 public toJSON(): { [k: string]: any };
2004 }
2005 }
2006
2007 /** Namespace v1p1beta1. */
2008 namespace v1p1beta1 {
2009
2010 /** Represents a Speech */
2011 class Speech extends $protobuf.rpc.Service {
2012
2013 /**
2014 * Constructs a new Speech service.
2015 * @param rpcImpl RPC implementation
2016 * @param [requestDelimited=false] Whether requests are length-delimited
2017 * @param [responseDelimited=false] Whether responses are length-delimited
2018 */
2019 constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
2020
2021 /**
2022 * Creates new Speech service using the specified rpc implementation.
2023 * @param rpcImpl RPC implementation
2024 * @param [requestDelimited=false] Whether requests are length-delimited
2025 * @param [responseDelimited=false] Whether responses are length-delimited
2026 * @returns RPC service. Useful where requests and/or responses are streamed.
2027 */
2028 public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Speech;
2029
2030 /**
2031 * Calls Recognize.
2032 * @param request RecognizeRequest message or plain object
2033 * @param callback Node-style callback called with the error, if any, and RecognizeResponse
2034 */
2035 public recognize(request: google.cloud.speech.v1p1beta1.IRecognizeRequest, callback: google.cloud.speech.v1p1beta1.Speech.RecognizeCallback): void;
2036
2037 /**
2038 * Calls Recognize.
2039 * @param request RecognizeRequest message or plain object
2040 * @returns Promise
2041 */
2042 public recognize(request: google.cloud.speech.v1p1beta1.IRecognizeRequest): Promise<google.cloud.speech.v1p1beta1.RecognizeResponse>;
2043
2044 /**
2045 * Calls LongRunningRecognize.
2046 * @param request LongRunningRecognizeRequest message or plain object
2047 * @param callback Node-style callback called with the error, if any, and Operation
2048 */
2049 public longRunningRecognize(request: google.cloud.speech.v1p1beta1.ILongRunningRecognizeRequest, callback: google.cloud.speech.v1p1beta1.Speech.LongRunningRecognizeCallback): void;
2050
2051 /**
2052 * Calls LongRunningRecognize.
2053 * @param request LongRunningRecognizeRequest message or plain object
2054 * @returns Promise
2055 */
2056 public longRunningRecognize(request: google.cloud.speech.v1p1beta1.ILongRunningRecognizeRequest): Promise<google.longrunning.Operation>;
2057
2058 /**
2059 * Calls StreamingRecognize.
2060 * @param request StreamingRecognizeRequest message or plain object
2061 * @param callback Node-style callback called with the error, if any, and StreamingRecognizeResponse
2062 */
2063 public streamingRecognize(request: google.cloud.speech.v1p1beta1.IStreamingRecognizeRequest, callback: google.cloud.speech.v1p1beta1.Speech.StreamingRecognizeCallback): void;
2064
2065 /**
2066 * Calls StreamingRecognize.
2067 * @param request StreamingRecognizeRequest message or plain object
2068 * @returns Promise
2069 */
2070 public streamingRecognize(request: google.cloud.speech.v1p1beta1.IStreamingRecognizeRequest): Promise<google.cloud.speech.v1p1beta1.StreamingRecognizeResponse>;
2071 }
2072
2073 namespace Speech {
2074
2075 /**
2076 * Callback as used by {@link google.cloud.speech.v1p1beta1.Speech#recognize}.
2077 * @param error Error, if any
2078 * @param [response] RecognizeResponse
2079 */
2080 type RecognizeCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.RecognizeResponse) => void;
2081
2082 /**
2083 * Callback as used by {@link google.cloud.speech.v1p1beta1.Speech#longRunningRecognize}.
2084 * @param error Error, if any
2085 * @param [response] Operation
2086 */
2087 type LongRunningRecognizeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
2088
2089 /**
2090 * Callback as used by {@link google.cloud.speech.v1p1beta1.Speech#streamingRecognize}.
2091 * @param error Error, if any
2092 * @param [response] StreamingRecognizeResponse
2093 */
2094 type StreamingRecognizeCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) => void;
2095 }
2096
2097 /** Properties of a RecognizeRequest. */
2098 interface IRecognizeRequest {
2099
2100 /** RecognizeRequest config */
2101 config?: (google.cloud.speech.v1p1beta1.IRecognitionConfig|null);
2102
2103 /** RecognizeRequest audio */
2104 audio?: (google.cloud.speech.v1p1beta1.IRecognitionAudio|null);
2105 }
2106
2107 /** Represents a RecognizeRequest. */
2108 class RecognizeRequest implements IRecognizeRequest {
2109
2110 /**
2111 * Constructs a new RecognizeRequest.
2112 * @param [properties] Properties to set
2113 */
2114 constructor(properties?: google.cloud.speech.v1p1beta1.IRecognizeRequest);
2115
2116 /** RecognizeRequest config. */
2117 public config?: (google.cloud.speech.v1p1beta1.IRecognitionConfig|null);
2118
2119 /** RecognizeRequest audio. */
2120 public audio?: (google.cloud.speech.v1p1beta1.IRecognitionAudio|null);
2121
2122 /**
2123 * Creates a new RecognizeRequest instance using the specified properties.
2124 * @param [properties] Properties to set
2125 * @returns RecognizeRequest instance
2126 */
2127 public static create(properties?: google.cloud.speech.v1p1beta1.IRecognizeRequest): google.cloud.speech.v1p1beta1.RecognizeRequest;
2128
2129 /**
2130 * Encodes the specified RecognizeRequest message. Does not implicitly {@link google.cloud.speech.v1p1beta1.RecognizeRequest.verify|verify} messages.
2131 * @param message RecognizeRequest message or plain object to encode
2132 * @param [writer] Writer to encode to
2133 * @returns Writer
2134 */
2135 public static encode(message: google.cloud.speech.v1p1beta1.IRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2136
2137 /**
2138 * Encodes the specified RecognizeRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.RecognizeRequest.verify|verify} messages.
2139 * @param message RecognizeRequest message or plain object to encode
2140 * @param [writer] Writer to encode to
2141 * @returns Writer
2142 */
2143 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2144
2145 /**
2146 * Decodes a RecognizeRequest message from the specified reader or buffer.
2147 * @param reader Reader or buffer to decode from
2148 * @param [length] Message length if known beforehand
2149 * @returns RecognizeRequest
2150 * @throws {Error} If the payload is not a reader or valid buffer
2151 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2152 */
2153 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.RecognizeRequest;
2154
2155 /**
2156 * Decodes a RecognizeRequest message from the specified reader or buffer, length delimited.
2157 * @param reader Reader or buffer to decode from
2158 * @returns RecognizeRequest
2159 * @throws {Error} If the payload is not a reader or valid buffer
2160 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2161 */
2162 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.RecognizeRequest;
2163
2164 /**
2165 * Verifies a RecognizeRequest message.
2166 * @param message Plain object to verify
2167 * @returns `null` if valid, otherwise the reason why it is not
2168 */
2169 public static verify(message: { [k: string]: any }): (string|null);
2170
2171 /**
2172 * Creates a RecognizeRequest message from a plain object. Also converts values to their respective internal types.
2173 * @param object Plain object
2174 * @returns RecognizeRequest
2175 */
2176 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.RecognizeRequest;
2177
2178 /**
2179 * Creates a plain object from a RecognizeRequest message. Also converts values to other types if specified.
2180 * @param message RecognizeRequest
2181 * @param [options] Conversion options
2182 * @returns Plain object
2183 */
2184 public static toObject(message: google.cloud.speech.v1p1beta1.RecognizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
2185
2186 /**
2187 * Converts this RecognizeRequest to JSON.
2188 * @returns JSON object
2189 */
2190 public toJSON(): { [k: string]: any };
2191 }
2192
2193 /** Properties of a LongRunningRecognizeRequest. */
2194 interface ILongRunningRecognizeRequest {
2195
2196 /** LongRunningRecognizeRequest config */
2197 config?: (google.cloud.speech.v1p1beta1.IRecognitionConfig|null);
2198
2199 /** LongRunningRecognizeRequest audio */
2200 audio?: (google.cloud.speech.v1p1beta1.IRecognitionAudio|null);
2201
2202 /** LongRunningRecognizeRequest outputConfig */
2203 outputConfig?: (google.cloud.speech.v1p1beta1.ITranscriptOutputConfig|null);
2204 }
2205
2206 /** Represents a LongRunningRecognizeRequest. */
2207 class LongRunningRecognizeRequest implements ILongRunningRecognizeRequest {
2208
2209 /**
2210 * Constructs a new LongRunningRecognizeRequest.
2211 * @param [properties] Properties to set
2212 */
2213 constructor(properties?: google.cloud.speech.v1p1beta1.ILongRunningRecognizeRequest);
2214
2215 /** LongRunningRecognizeRequest config. */
2216 public config?: (google.cloud.speech.v1p1beta1.IRecognitionConfig|null);
2217
2218 /** LongRunningRecognizeRequest audio. */
2219 public audio?: (google.cloud.speech.v1p1beta1.IRecognitionAudio|null);
2220
2221 /** LongRunningRecognizeRequest outputConfig. */
2222 public outputConfig?: (google.cloud.speech.v1p1beta1.ITranscriptOutputConfig|null);
2223
2224 /**
2225 * Creates a new LongRunningRecognizeRequest instance using the specified properties.
2226 * @param [properties] Properties to set
2227 * @returns LongRunningRecognizeRequest instance
2228 */
2229 public static create(properties?: google.cloud.speech.v1p1beta1.ILongRunningRecognizeRequest): google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest;
2230
2231 /**
2232 * Encodes the specified LongRunningRecognizeRequest message. Does not implicitly {@link google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.verify|verify} messages.
2233 * @param message LongRunningRecognizeRequest message or plain object to encode
2234 * @param [writer] Writer to encode to
2235 * @returns Writer
2236 */
2237 public static encode(message: google.cloud.speech.v1p1beta1.ILongRunningRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2238
2239 /**
2240 * Encodes the specified LongRunningRecognizeRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.verify|verify} messages.
2241 * @param message LongRunningRecognizeRequest message or plain object to encode
2242 * @param [writer] Writer to encode to
2243 * @returns Writer
2244 */
2245 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ILongRunningRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2246
2247 /**
2248 * Decodes a LongRunningRecognizeRequest message from the specified reader or buffer.
2249 * @param reader Reader or buffer to decode from
2250 * @param [length] Message length if known beforehand
2251 * @returns LongRunningRecognizeRequest
2252 * @throws {Error} If the payload is not a reader or valid buffer
2253 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2254 */
2255 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest;
2256
2257 /**
2258 * Decodes a LongRunningRecognizeRequest message from the specified reader or buffer, length delimited.
2259 * @param reader Reader or buffer to decode from
2260 * @returns LongRunningRecognizeRequest
2261 * @throws {Error} If the payload is not a reader or valid buffer
2262 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2263 */
2264 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest;
2265
2266 /**
2267 * Verifies a LongRunningRecognizeRequest message.
2268 * @param message Plain object to verify
2269 * @returns `null` if valid, otherwise the reason why it is not
2270 */
2271 public static verify(message: { [k: string]: any }): (string|null);
2272
2273 /**
2274 * Creates a LongRunningRecognizeRequest message from a plain object. Also converts values to their respective internal types.
2275 * @param object Plain object
2276 * @returns LongRunningRecognizeRequest
2277 */
2278 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest;
2279
2280 /**
2281 * Creates a plain object from a LongRunningRecognizeRequest message. Also converts values to other types if specified.
2282 * @param message LongRunningRecognizeRequest
2283 * @param [options] Conversion options
2284 * @returns Plain object
2285 */
2286 public static toObject(message: google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
2287
2288 /**
2289 * Converts this LongRunningRecognizeRequest to JSON.
2290 * @returns JSON object
2291 */
2292 public toJSON(): { [k: string]: any };
2293 }
2294
2295 /** Properties of a TranscriptOutputConfig. */
2296 interface ITranscriptOutputConfig {
2297
2298 /** TranscriptOutputConfig gcsUri */
2299 gcsUri?: (string|null);
2300 }
2301
2302 /** Represents a TranscriptOutputConfig. */
2303 class TranscriptOutputConfig implements ITranscriptOutputConfig {
2304
2305 /**
2306 * Constructs a new TranscriptOutputConfig.
2307 * @param [properties] Properties to set
2308 */
2309 constructor(properties?: google.cloud.speech.v1p1beta1.ITranscriptOutputConfig);
2310
2311 /** TranscriptOutputConfig gcsUri. */
2312 public gcsUri?: (string|null);
2313
2314 /** TranscriptOutputConfig outputType. */
2315 public outputType?: "gcsUri";
2316
2317 /**
2318 * Creates a new TranscriptOutputConfig instance using the specified properties.
2319 * @param [properties] Properties to set
2320 * @returns TranscriptOutputConfig instance
2321 */
2322 public static create(properties?: google.cloud.speech.v1p1beta1.ITranscriptOutputConfig): google.cloud.speech.v1p1beta1.TranscriptOutputConfig;
2323
2324 /**
2325 * Encodes the specified TranscriptOutputConfig message. Does not implicitly {@link google.cloud.speech.v1p1beta1.TranscriptOutputConfig.verify|verify} messages.
2326 * @param message TranscriptOutputConfig message or plain object to encode
2327 * @param [writer] Writer to encode to
2328 * @returns Writer
2329 */
2330 public static encode(message: google.cloud.speech.v1p1beta1.ITranscriptOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
2331
2332 /**
2333 * Encodes the specified TranscriptOutputConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.TranscriptOutputConfig.verify|verify} messages.
2334 * @param message TranscriptOutputConfig message or plain object to encode
2335 * @param [writer] Writer to encode to
2336 * @returns Writer
2337 */
2338 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ITranscriptOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
2339
2340 /**
2341 * Decodes a TranscriptOutputConfig message from the specified reader or buffer.
2342 * @param reader Reader or buffer to decode from
2343 * @param [length] Message length if known beforehand
2344 * @returns TranscriptOutputConfig
2345 * @throws {Error} If the payload is not a reader or valid buffer
2346 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2347 */
2348 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.TranscriptOutputConfig;
2349
2350 /**
2351 * Decodes a TranscriptOutputConfig message from the specified reader or buffer, length delimited.
2352 * @param reader Reader or buffer to decode from
2353 * @returns TranscriptOutputConfig
2354 * @throws {Error} If the payload is not a reader or valid buffer
2355 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2356 */
2357 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.TranscriptOutputConfig;
2358
2359 /**
2360 * Verifies a TranscriptOutputConfig message.
2361 * @param message Plain object to verify
2362 * @returns `null` if valid, otherwise the reason why it is not
2363 */
2364 public static verify(message: { [k: string]: any }): (string|null);
2365
2366 /**
2367 * Creates a TranscriptOutputConfig message from a plain object. Also converts values to their respective internal types.
2368 * @param object Plain object
2369 * @returns TranscriptOutputConfig
2370 */
2371 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.TranscriptOutputConfig;
2372
2373 /**
2374 * Creates a plain object from a TranscriptOutputConfig message. Also converts values to other types if specified.
2375 * @param message TranscriptOutputConfig
2376 * @param [options] Conversion options
2377 * @returns Plain object
2378 */
2379 public static toObject(message: google.cloud.speech.v1p1beta1.TranscriptOutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
2380
2381 /**
2382 * Converts this TranscriptOutputConfig to JSON.
2383 * @returns JSON object
2384 */
2385 public toJSON(): { [k: string]: any };
2386 }
2387
2388 /** Properties of a StreamingRecognizeRequest. */
2389 interface IStreamingRecognizeRequest {
2390
2391 /** StreamingRecognizeRequest streamingConfig */
2392 streamingConfig?: (google.cloud.speech.v1p1beta1.IStreamingRecognitionConfig|null);
2393
2394 /** StreamingRecognizeRequest audioContent */
2395 audioContent?: (Uint8Array|string|null);
2396 }
2397
2398 /** Represents a StreamingRecognizeRequest. */
2399 class StreamingRecognizeRequest implements IStreamingRecognizeRequest {
2400
2401 /**
2402 * Constructs a new StreamingRecognizeRequest.
2403 * @param [properties] Properties to set
2404 */
2405 constructor(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognizeRequest);
2406
2407 /** StreamingRecognizeRequest streamingConfig. */
2408 public streamingConfig?: (google.cloud.speech.v1p1beta1.IStreamingRecognitionConfig|null);
2409
2410 /** StreamingRecognizeRequest audioContent. */
2411 public audioContent?: (Uint8Array|string|null);
2412
2413 /** StreamingRecognizeRequest streamingRequest. */
2414 public streamingRequest?: ("streamingConfig"|"audioContent");
2415
2416 /**
2417 * Creates a new StreamingRecognizeRequest instance using the specified properties.
2418 * @param [properties] Properties to set
2419 * @returns StreamingRecognizeRequest instance
2420 */
2421 public static create(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognizeRequest): google.cloud.speech.v1p1beta1.StreamingRecognizeRequest;
2422
2423 /**
2424 * Encodes the specified StreamingRecognizeRequest message. Does not implicitly {@link google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.verify|verify} messages.
2425 * @param message StreamingRecognizeRequest message or plain object to encode
2426 * @param [writer] Writer to encode to
2427 * @returns Writer
2428 */
2429 public static encode(message: google.cloud.speech.v1p1beta1.IStreamingRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2430
2431 /**
2432 * Encodes the specified StreamingRecognizeRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.verify|verify} messages.
2433 * @param message StreamingRecognizeRequest message or plain object to encode
2434 * @param [writer] Writer to encode to
2435 * @returns Writer
2436 */
2437 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IStreamingRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2438
2439 /**
2440 * Decodes a StreamingRecognizeRequest message from the specified reader or buffer.
2441 * @param reader Reader or buffer to decode from
2442 * @param [length] Message length if known beforehand
2443 * @returns StreamingRecognizeRequest
2444 * @throws {Error} If the payload is not a reader or valid buffer
2445 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2446 */
2447 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.StreamingRecognizeRequest;
2448
2449 /**
2450 * Decodes a StreamingRecognizeRequest message from the specified reader or buffer, length delimited.
2451 * @param reader Reader or buffer to decode from
2452 * @returns StreamingRecognizeRequest
2453 * @throws {Error} If the payload is not a reader or valid buffer
2454 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2455 */
2456 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.StreamingRecognizeRequest;
2457
2458 /**
2459 * Verifies a StreamingRecognizeRequest message.
2460 * @param message Plain object to verify
2461 * @returns `null` if valid, otherwise the reason why it is not
2462 */
2463 public static verify(message: { [k: string]: any }): (string|null);
2464
2465 /**
2466 * Creates a StreamingRecognizeRequest message from a plain object. Also converts values to their respective internal types.
2467 * @param object Plain object
2468 * @returns StreamingRecognizeRequest
2469 */
2470 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.StreamingRecognizeRequest;
2471
2472 /**
2473 * Creates a plain object from a StreamingRecognizeRequest message. Also converts values to other types if specified.
2474 * @param message StreamingRecognizeRequest
2475 * @param [options] Conversion options
2476 * @returns Plain object
2477 */
2478 public static toObject(message: google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
2479
2480 /**
2481 * Converts this StreamingRecognizeRequest to JSON.
2482 * @returns JSON object
2483 */
2484 public toJSON(): { [k: string]: any };
2485 }
2486
2487 /** Properties of a StreamingRecognitionConfig. */
2488 interface IStreamingRecognitionConfig {
2489
2490 /** StreamingRecognitionConfig config */
2491 config?: (google.cloud.speech.v1p1beta1.IRecognitionConfig|null);
2492
2493 /** StreamingRecognitionConfig singleUtterance */
2494 singleUtterance?: (boolean|null);
2495
2496 /** StreamingRecognitionConfig interimResults */
2497 interimResults?: (boolean|null);
2498 }
2499
2500 /** Represents a StreamingRecognitionConfig. */
2501 class StreamingRecognitionConfig implements IStreamingRecognitionConfig {
2502
2503 /**
2504 * Constructs a new StreamingRecognitionConfig.
2505 * @param [properties] Properties to set
2506 */
2507 constructor(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognitionConfig);
2508
2509 /** StreamingRecognitionConfig config. */
2510 public config?: (google.cloud.speech.v1p1beta1.IRecognitionConfig|null);
2511
2512 /** StreamingRecognitionConfig singleUtterance. */
2513 public singleUtterance: boolean;
2514
2515 /** StreamingRecognitionConfig interimResults. */
2516 public interimResults: boolean;
2517
2518 /**
2519 * Creates a new StreamingRecognitionConfig instance using the specified properties.
2520 * @param [properties] Properties to set
2521 * @returns StreamingRecognitionConfig instance
2522 */
2523 public static create(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognitionConfig): google.cloud.speech.v1p1beta1.StreamingRecognitionConfig;
2524
2525 /**
2526 * Encodes the specified StreamingRecognitionConfig message. Does not implicitly {@link google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.verify|verify} messages.
2527 * @param message StreamingRecognitionConfig message or plain object to encode
2528 * @param [writer] Writer to encode to
2529 * @returns Writer
2530 */
2531 public static encode(message: google.cloud.speech.v1p1beta1.IStreamingRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
2532
2533 /**
2534 * Encodes the specified StreamingRecognitionConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.verify|verify} messages.
2535 * @param message StreamingRecognitionConfig message or plain object to encode
2536 * @param [writer] Writer to encode to
2537 * @returns Writer
2538 */
2539 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IStreamingRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
2540
2541 /**
2542 * Decodes a StreamingRecognitionConfig message from the specified reader or buffer.
2543 * @param reader Reader or buffer to decode from
2544 * @param [length] Message length if known beforehand
2545 * @returns StreamingRecognitionConfig
2546 * @throws {Error} If the payload is not a reader or valid buffer
2547 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2548 */
2549 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.StreamingRecognitionConfig;
2550
2551 /**
2552 * Decodes a StreamingRecognitionConfig message from the specified reader or buffer, length delimited.
2553 * @param reader Reader or buffer to decode from
2554 * @returns StreamingRecognitionConfig
2555 * @throws {Error} If the payload is not a reader or valid buffer
2556 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2557 */
2558 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.StreamingRecognitionConfig;
2559
2560 /**
2561 * Verifies a StreamingRecognitionConfig message.
2562 * @param message Plain object to verify
2563 * @returns `null` if valid, otherwise the reason why it is not
2564 */
2565 public static verify(message: { [k: string]: any }): (string|null);
2566
2567 /**
2568 * Creates a StreamingRecognitionConfig message from a plain object. Also converts values to their respective internal types.
2569 * @param object Plain object
2570 * @returns StreamingRecognitionConfig
2571 */
2572 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.StreamingRecognitionConfig;
2573
2574 /**
2575 * Creates a plain object from a StreamingRecognitionConfig message. Also converts values to other types if specified.
2576 * @param message StreamingRecognitionConfig
2577 * @param [options] Conversion options
2578 * @returns Plain object
2579 */
2580 public static toObject(message: google.cloud.speech.v1p1beta1.StreamingRecognitionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
2581
2582 /**
2583 * Converts this StreamingRecognitionConfig to JSON.
2584 * @returns JSON object
2585 */
2586 public toJSON(): { [k: string]: any };
2587 }
2588
2589 /** Properties of a RecognitionConfig. */
2590 interface IRecognitionConfig {
2591
2592 /** RecognitionConfig encoding */
2593 encoding?: (google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding|keyof typeof google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding|null);
2594
2595 /** RecognitionConfig sampleRateHertz */
2596 sampleRateHertz?: (number|null);
2597
2598 /** RecognitionConfig audioChannelCount */
2599 audioChannelCount?: (number|null);
2600
2601 /** RecognitionConfig enableSeparateRecognitionPerChannel */
2602 enableSeparateRecognitionPerChannel?: (boolean|null);
2603
2604 /** RecognitionConfig languageCode */
2605 languageCode?: (string|null);
2606
2607 /** RecognitionConfig alternativeLanguageCodes */
2608 alternativeLanguageCodes?: (string[]|null);
2609
2610 /** RecognitionConfig maxAlternatives */
2611 maxAlternatives?: (number|null);
2612
2613 /** RecognitionConfig profanityFilter */
2614 profanityFilter?: (boolean|null);
2615
2616 /** RecognitionConfig adaptation */
2617 adaptation?: (google.cloud.speech.v1p1beta1.ISpeechAdaptation|null);
2618
2619 /** RecognitionConfig transcriptNormalization */
2620 transcriptNormalization?: (google.cloud.speech.v1p1beta1.ITranscriptNormalization|null);
2621
2622 /** RecognitionConfig speechContexts */
2623 speechContexts?: (google.cloud.speech.v1p1beta1.ISpeechContext[]|null);
2624
2625 /** RecognitionConfig enableWordTimeOffsets */
2626 enableWordTimeOffsets?: (boolean|null);
2627
2628 /** RecognitionConfig enableWordConfidence */
2629 enableWordConfidence?: (boolean|null);
2630
2631 /** RecognitionConfig enableAutomaticPunctuation */
2632 enableAutomaticPunctuation?: (boolean|null);
2633
2634 /** RecognitionConfig enableSpokenPunctuation */
2635 enableSpokenPunctuation?: (google.protobuf.IBoolValue|null);
2636
2637 /** RecognitionConfig enableSpokenEmojis */
2638 enableSpokenEmojis?: (google.protobuf.IBoolValue|null);
2639
2640 /** RecognitionConfig enableSpeakerDiarization */
2641 enableSpeakerDiarization?: (boolean|null);
2642
2643 /** RecognitionConfig diarizationSpeakerCount */
2644 diarizationSpeakerCount?: (number|null);
2645
2646 /** RecognitionConfig diarizationConfig */
2647 diarizationConfig?: (google.cloud.speech.v1p1beta1.ISpeakerDiarizationConfig|null);
2648
2649 /** RecognitionConfig metadata */
2650 metadata?: (google.cloud.speech.v1p1beta1.IRecognitionMetadata|null);
2651
2652 /** RecognitionConfig model */
2653 model?: (string|null);
2654
2655 /** RecognitionConfig useEnhanced */
2656 useEnhanced?: (boolean|null);
2657 }
2658
2659 /** Represents a RecognitionConfig. */
2660 class RecognitionConfig implements IRecognitionConfig {
2661
2662 /**
2663 * Constructs a new RecognitionConfig.
2664 * @param [properties] Properties to set
2665 */
2666 constructor(properties?: google.cloud.speech.v1p1beta1.IRecognitionConfig);
2667
2668 /** RecognitionConfig encoding. */
2669 public encoding: (google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding|keyof typeof google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding);
2670
2671 /** RecognitionConfig sampleRateHertz. */
2672 public sampleRateHertz: number;
2673
2674 /** RecognitionConfig audioChannelCount. */
2675 public audioChannelCount: number;
2676
2677 /** RecognitionConfig enableSeparateRecognitionPerChannel. */
2678 public enableSeparateRecognitionPerChannel: boolean;
2679
2680 /** RecognitionConfig languageCode. */
2681 public languageCode: string;
2682
2683 /** RecognitionConfig alternativeLanguageCodes. */
2684 public alternativeLanguageCodes: string[];
2685
2686 /** RecognitionConfig maxAlternatives. */
2687 public maxAlternatives: number;
2688
2689 /** RecognitionConfig profanityFilter. */
2690 public profanityFilter: boolean;
2691
2692 /** RecognitionConfig adaptation. */
2693 public adaptation?: (google.cloud.speech.v1p1beta1.ISpeechAdaptation|null);
2694
2695 /** RecognitionConfig transcriptNormalization. */
2696 public transcriptNormalization?: (google.cloud.speech.v1p1beta1.ITranscriptNormalization|null);
2697
2698 /** RecognitionConfig speechContexts. */
2699 public speechContexts: google.cloud.speech.v1p1beta1.ISpeechContext[];
2700
2701 /** RecognitionConfig enableWordTimeOffsets. */
2702 public enableWordTimeOffsets: boolean;
2703
2704 /** RecognitionConfig enableWordConfidence. */
2705 public enableWordConfidence: boolean;
2706
2707 /** RecognitionConfig enableAutomaticPunctuation. */
2708 public enableAutomaticPunctuation: boolean;
2709
2710 /** RecognitionConfig enableSpokenPunctuation. */
2711 public enableSpokenPunctuation?: (google.protobuf.IBoolValue|null);
2712
2713 /** RecognitionConfig enableSpokenEmojis. */
2714 public enableSpokenEmojis?: (google.protobuf.IBoolValue|null);
2715
2716 /** RecognitionConfig enableSpeakerDiarization. */
2717 public enableSpeakerDiarization: boolean;
2718
2719 /** RecognitionConfig diarizationSpeakerCount. */
2720 public diarizationSpeakerCount: number;
2721
2722 /** RecognitionConfig diarizationConfig. */
2723 public diarizationConfig?: (google.cloud.speech.v1p1beta1.ISpeakerDiarizationConfig|null);
2724
2725 /** RecognitionConfig metadata. */
2726 public metadata?: (google.cloud.speech.v1p1beta1.IRecognitionMetadata|null);
2727
2728 /** RecognitionConfig model. */
2729 public model: string;
2730
2731 /** RecognitionConfig useEnhanced. */
2732 public useEnhanced: boolean;
2733
2734 /**
2735 * Creates a new RecognitionConfig instance using the specified properties.
2736 * @param [properties] Properties to set
2737 * @returns RecognitionConfig instance
2738 */
2739 public static create(properties?: google.cloud.speech.v1p1beta1.IRecognitionConfig): google.cloud.speech.v1p1beta1.RecognitionConfig;
2740
2741 /**
2742 * Encodes the specified RecognitionConfig message. Does not implicitly {@link google.cloud.speech.v1p1beta1.RecognitionConfig.verify|verify} messages.
2743 * @param message RecognitionConfig message or plain object to encode
2744 * @param [writer] Writer to encode to
2745 * @returns Writer
2746 */
2747 public static encode(message: google.cloud.speech.v1p1beta1.IRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
2748
2749 /**
2750 * Encodes the specified RecognitionConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.RecognitionConfig.verify|verify} messages.
2751 * @param message RecognitionConfig message or plain object to encode
2752 * @param [writer] Writer to encode to
2753 * @returns Writer
2754 */
2755 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
2756
2757 /**
2758 * Decodes a RecognitionConfig message from the specified reader or buffer.
2759 * @param reader Reader or buffer to decode from
2760 * @param [length] Message length if known beforehand
2761 * @returns RecognitionConfig
2762 * @throws {Error} If the payload is not a reader or valid buffer
2763 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2764 */
2765 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.RecognitionConfig;
2766
2767 /**
2768 * Decodes a RecognitionConfig message from the specified reader or buffer, length delimited.
2769 * @param reader Reader or buffer to decode from
2770 * @returns RecognitionConfig
2771 * @throws {Error} If the payload is not a reader or valid buffer
2772 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2773 */
2774 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.RecognitionConfig;
2775
2776 /**
2777 * Verifies a RecognitionConfig message.
2778 * @param message Plain object to verify
2779 * @returns `null` if valid, otherwise the reason why it is not
2780 */
2781 public static verify(message: { [k: string]: any }): (string|null);
2782
2783 /**
2784 * Creates a RecognitionConfig message from a plain object. Also converts values to their respective internal types.
2785 * @param object Plain object
2786 * @returns RecognitionConfig
2787 */
2788 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.RecognitionConfig;
2789
2790 /**
2791 * Creates a plain object from a RecognitionConfig message. Also converts values to other types if specified.
2792 * @param message RecognitionConfig
2793 * @param [options] Conversion options
2794 * @returns Plain object
2795 */
2796 public static toObject(message: google.cloud.speech.v1p1beta1.RecognitionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
2797
2798 /**
2799 * Converts this RecognitionConfig to JSON.
2800 * @returns JSON object
2801 */
2802 public toJSON(): { [k: string]: any };
2803 }
2804
2805 namespace RecognitionConfig {
2806
2807 /** AudioEncoding enum. */
2808 enum AudioEncoding {
2809 ENCODING_UNSPECIFIED = 0,
2810 LINEAR16 = 1,
2811 FLAC = 2,
2812 MULAW = 3,
2813 AMR = 4,
2814 AMR_WB = 5,
2815 OGG_OPUS = 6,
2816 SPEEX_WITH_HEADER_BYTE = 7,
2817 MP3 = 8,
2818 WEBM_OPUS = 9
2819 }
2820 }
2821
2822 /** Properties of a SpeakerDiarizationConfig. */
2823 interface ISpeakerDiarizationConfig {
2824
2825 /** SpeakerDiarizationConfig enableSpeakerDiarization */
2826 enableSpeakerDiarization?: (boolean|null);
2827
2828 /** SpeakerDiarizationConfig minSpeakerCount */
2829 minSpeakerCount?: (number|null);
2830
2831 /** SpeakerDiarizationConfig maxSpeakerCount */
2832 maxSpeakerCount?: (number|null);
2833
2834 /** SpeakerDiarizationConfig speakerTag */
2835 speakerTag?: (number|null);
2836 }
2837
2838 /** Represents a SpeakerDiarizationConfig. */
2839 class SpeakerDiarizationConfig implements ISpeakerDiarizationConfig {
2840
2841 /**
2842 * Constructs a new SpeakerDiarizationConfig.
2843 * @param [properties] Properties to set
2844 */
2845 constructor(properties?: google.cloud.speech.v1p1beta1.ISpeakerDiarizationConfig);
2846
2847 /** SpeakerDiarizationConfig enableSpeakerDiarization. */
2848 public enableSpeakerDiarization: boolean;
2849
2850 /** SpeakerDiarizationConfig minSpeakerCount. */
2851 public minSpeakerCount: number;
2852
2853 /** SpeakerDiarizationConfig maxSpeakerCount. */
2854 public maxSpeakerCount: number;
2855
2856 /** SpeakerDiarizationConfig speakerTag. */
2857 public speakerTag: number;
2858
2859 /**
2860 * Creates a new SpeakerDiarizationConfig instance using the specified properties.
2861 * @param [properties] Properties to set
2862 * @returns SpeakerDiarizationConfig instance
2863 */
2864 public static create(properties?: google.cloud.speech.v1p1beta1.ISpeakerDiarizationConfig): google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig;
2865
2866 /**
2867 * Encodes the specified SpeakerDiarizationConfig message. Does not implicitly {@link google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.verify|verify} messages.
2868 * @param message SpeakerDiarizationConfig message or plain object to encode
2869 * @param [writer] Writer to encode to
2870 * @returns Writer
2871 */
2872 public static encode(message: google.cloud.speech.v1p1beta1.ISpeakerDiarizationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
2873
2874 /**
2875 * Encodes the specified SpeakerDiarizationConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.verify|verify} messages.
2876 * @param message SpeakerDiarizationConfig message or plain object to encode
2877 * @param [writer] Writer to encode to
2878 * @returns Writer
2879 */
2880 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ISpeakerDiarizationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
2881
2882 /**
2883 * Decodes a SpeakerDiarizationConfig message from the specified reader or buffer.
2884 * @param reader Reader or buffer to decode from
2885 * @param [length] Message length if known beforehand
2886 * @returns SpeakerDiarizationConfig
2887 * @throws {Error} If the payload is not a reader or valid buffer
2888 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2889 */
2890 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig;
2891
2892 /**
2893 * Decodes a SpeakerDiarizationConfig message from the specified reader or buffer, length delimited.
2894 * @param reader Reader or buffer to decode from
2895 * @returns SpeakerDiarizationConfig
2896 * @throws {Error} If the payload is not a reader or valid buffer
2897 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2898 */
2899 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig;
2900
2901 /**
2902 * Verifies a SpeakerDiarizationConfig message.
2903 * @param message Plain object to verify
2904 * @returns `null` if valid, otherwise the reason why it is not
2905 */
2906 public static verify(message: { [k: string]: any }): (string|null);
2907
2908 /**
2909 * Creates a SpeakerDiarizationConfig message from a plain object. Also converts values to their respective internal types.
2910 * @param object Plain object
2911 * @returns SpeakerDiarizationConfig
2912 */
2913 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig;
2914
2915 /**
2916 * Creates a plain object from a SpeakerDiarizationConfig message. Also converts values to other types if specified.
2917 * @param message SpeakerDiarizationConfig
2918 * @param [options] Conversion options
2919 * @returns Plain object
2920 */
2921 public static toObject(message: google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
2922
2923 /**
2924 * Converts this SpeakerDiarizationConfig to JSON.
2925 * @returns JSON object
2926 */
2927 public toJSON(): { [k: string]: any };
2928 }
2929
2930 /** Properties of a RecognitionMetadata. */
2931 interface IRecognitionMetadata {
2932
2933 /** RecognitionMetadata interactionType */
2934 interactionType?: (google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType|null);
2935
2936 /** RecognitionMetadata industryNaicsCodeOfAudio */
2937 industryNaicsCodeOfAudio?: (number|null);
2938
2939 /** RecognitionMetadata microphoneDistance */
2940 microphoneDistance?: (google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance|null);
2941
2942 /** RecognitionMetadata originalMediaType */
2943 originalMediaType?: (google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType|null);
2944
2945 /** RecognitionMetadata recordingDeviceType */
2946 recordingDeviceType?: (google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType|null);
2947
2948 /** RecognitionMetadata recordingDeviceName */
2949 recordingDeviceName?: (string|null);
2950
2951 /** RecognitionMetadata originalMimeType */
2952 originalMimeType?: (string|null);
2953
2954 /** RecognitionMetadata obfuscatedId */
2955 obfuscatedId?: (number|Long|string|null);
2956
2957 /** RecognitionMetadata audioTopic */
2958 audioTopic?: (string|null);
2959 }
2960
2961 /** Represents a RecognitionMetadata. */
2962 class RecognitionMetadata implements IRecognitionMetadata {
2963
2964 /**
2965 * Constructs a new RecognitionMetadata.
2966 * @param [properties] Properties to set
2967 */
2968 constructor(properties?: google.cloud.speech.v1p1beta1.IRecognitionMetadata);
2969
2970 /** RecognitionMetadata interactionType. */
2971 public interactionType: (google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType);
2972
2973 /** RecognitionMetadata industryNaicsCodeOfAudio. */
2974 public industryNaicsCodeOfAudio: number;
2975
2976 /** RecognitionMetadata microphoneDistance. */
2977 public microphoneDistance: (google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance);
2978
2979 /** RecognitionMetadata originalMediaType. */
2980 public originalMediaType: (google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType);
2981
2982 /** RecognitionMetadata recordingDeviceType. */
2983 public recordingDeviceType: (google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType);
2984
2985 /** RecognitionMetadata recordingDeviceName. */
2986 public recordingDeviceName: string;
2987
2988 /** RecognitionMetadata originalMimeType. */
2989 public originalMimeType: string;
2990
2991 /** RecognitionMetadata obfuscatedId. */
2992 public obfuscatedId: (number|Long|string);
2993
2994 /** RecognitionMetadata audioTopic. */
2995 public audioTopic: string;
2996
2997 /**
2998 * Creates a new RecognitionMetadata instance using the specified properties.
2999 * @param [properties] Properties to set
3000 * @returns RecognitionMetadata instance
3001 */
3002 public static create(properties?: google.cloud.speech.v1p1beta1.IRecognitionMetadata): google.cloud.speech.v1p1beta1.RecognitionMetadata;
3003
3004 /**
3005 * Encodes the specified RecognitionMetadata message. Does not implicitly {@link google.cloud.speech.v1p1beta1.RecognitionMetadata.verify|verify} messages.
3006 * @param message RecognitionMetadata message or plain object to encode
3007 * @param [writer] Writer to encode to
3008 * @returns Writer
3009 */
3010 public static encode(message: google.cloud.speech.v1p1beta1.IRecognitionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
3011
3012 /**
3013 * Encodes the specified RecognitionMetadata message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.RecognitionMetadata.verify|verify} messages.
3014 * @param message RecognitionMetadata message or plain object to encode
3015 * @param [writer] Writer to encode to
3016 * @returns Writer
3017 */
3018 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IRecognitionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
3019
3020 /**
3021 * Decodes a RecognitionMetadata message from the specified reader or buffer.
3022 * @param reader Reader or buffer to decode from
3023 * @param [length] Message length if known beforehand
3024 * @returns RecognitionMetadata
3025 * @throws {Error} If the payload is not a reader or valid buffer
3026 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3027 */
3028 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.RecognitionMetadata;
3029
3030 /**
3031 * Decodes a RecognitionMetadata message from the specified reader or buffer, length delimited.
3032 * @param reader Reader or buffer to decode from
3033 * @returns RecognitionMetadata
3034 * @throws {Error} If the payload is not a reader or valid buffer
3035 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3036 */
3037 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.RecognitionMetadata;
3038
3039 /**
3040 * Verifies a RecognitionMetadata message.
3041 * @param message Plain object to verify
3042 * @returns `null` if valid, otherwise the reason why it is not
3043 */
3044 public static verify(message: { [k: string]: any }): (string|null);
3045
3046 /**
3047 * Creates a RecognitionMetadata message from a plain object. Also converts values to their respective internal types.
3048 * @param object Plain object
3049 * @returns RecognitionMetadata
3050 */
3051 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.RecognitionMetadata;
3052
3053 /**
3054 * Creates a plain object from a RecognitionMetadata message. Also converts values to other types if specified.
3055 * @param message RecognitionMetadata
3056 * @param [options] Conversion options
3057 * @returns Plain object
3058 */
3059 public static toObject(message: google.cloud.speech.v1p1beta1.RecognitionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
3060
3061 /**
3062 * Converts this RecognitionMetadata to JSON.
3063 * @returns JSON object
3064 */
3065 public toJSON(): { [k: string]: any };
3066 }
3067
3068 namespace RecognitionMetadata {
3069
3070 /** InteractionType enum. */
3071 enum InteractionType {
3072 INTERACTION_TYPE_UNSPECIFIED = 0,
3073 DISCUSSION = 1,
3074 PRESENTATION = 2,
3075 PHONE_CALL = 3,
3076 VOICEMAIL = 4,
3077 PROFESSIONALLY_PRODUCED = 5,
3078 VOICE_SEARCH = 6,
3079 VOICE_COMMAND = 7,
3080 DICTATION = 8
3081 }
3082
3083 /** MicrophoneDistance enum. */
3084 enum MicrophoneDistance {
3085 MICROPHONE_DISTANCE_UNSPECIFIED = 0,
3086 NEARFIELD = 1,
3087 MIDFIELD = 2,
3088 FARFIELD = 3
3089 }
3090
3091 /** OriginalMediaType enum. */
3092 enum OriginalMediaType {
3093 ORIGINAL_MEDIA_TYPE_UNSPECIFIED = 0,
3094 AUDIO = 1,
3095 VIDEO = 2
3096 }
3097
3098 /** RecordingDeviceType enum. */
3099 enum RecordingDeviceType {
3100 RECORDING_DEVICE_TYPE_UNSPECIFIED = 0,
3101 SMARTPHONE = 1,
3102 PC = 2,
3103 PHONE_LINE = 3,
3104 VEHICLE = 4,
3105 OTHER_OUTDOOR_DEVICE = 5,
3106 OTHER_INDOOR_DEVICE = 6
3107 }
3108 }
3109
3110 /** Properties of a SpeechContext. */
3111 interface ISpeechContext {
3112
3113 /** SpeechContext phrases */
3114 phrases?: (string[]|null);
3115
3116 /** SpeechContext boost */
3117 boost?: (number|null);
3118 }
3119
3120 /** Represents a SpeechContext. */
3121 class SpeechContext implements ISpeechContext {
3122
3123 /**
3124 * Constructs a new SpeechContext.
3125 * @param [properties] Properties to set
3126 */
3127 constructor(properties?: google.cloud.speech.v1p1beta1.ISpeechContext);
3128
3129 /** SpeechContext phrases. */
3130 public phrases: string[];
3131
3132 /** SpeechContext boost. */
3133 public boost: number;
3134
3135 /**
3136 * Creates a new SpeechContext instance using the specified properties.
3137 * @param [properties] Properties to set
3138 * @returns SpeechContext instance
3139 */
3140 public static create(properties?: google.cloud.speech.v1p1beta1.ISpeechContext): google.cloud.speech.v1p1beta1.SpeechContext;
3141
3142 /**
3143 * Encodes the specified SpeechContext message. Does not implicitly {@link google.cloud.speech.v1p1beta1.SpeechContext.verify|verify} messages.
3144 * @param message SpeechContext message or plain object to encode
3145 * @param [writer] Writer to encode to
3146 * @returns Writer
3147 */
3148 public static encode(message: google.cloud.speech.v1p1beta1.ISpeechContext, writer?: $protobuf.Writer): $protobuf.Writer;
3149
3150 /**
3151 * Encodes the specified SpeechContext message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.SpeechContext.verify|verify} messages.
3152 * @param message SpeechContext message or plain object to encode
3153 * @param [writer] Writer to encode to
3154 * @returns Writer
3155 */
3156 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ISpeechContext, writer?: $protobuf.Writer): $protobuf.Writer;
3157
3158 /**
3159 * Decodes a SpeechContext message from the specified reader or buffer.
3160 * @param reader Reader or buffer to decode from
3161 * @param [length] Message length if known beforehand
3162 * @returns SpeechContext
3163 * @throws {Error} If the payload is not a reader or valid buffer
3164 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3165 */
3166 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.SpeechContext;
3167
3168 /**
3169 * Decodes a SpeechContext message from the specified reader or buffer, length delimited.
3170 * @param reader Reader or buffer to decode from
3171 * @returns SpeechContext
3172 * @throws {Error} If the payload is not a reader or valid buffer
3173 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3174 */
3175 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.SpeechContext;
3176
3177 /**
3178 * Verifies a SpeechContext message.
3179 * @param message Plain object to verify
3180 * @returns `null` if valid, otherwise the reason why it is not
3181 */
3182 public static verify(message: { [k: string]: any }): (string|null);
3183
3184 /**
3185 * Creates a SpeechContext message from a plain object. Also converts values to their respective internal types.
3186 * @param object Plain object
3187 * @returns SpeechContext
3188 */
3189 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.SpeechContext;
3190
3191 /**
3192 * Creates a plain object from a SpeechContext message. Also converts values to other types if specified.
3193 * @param message SpeechContext
3194 * @param [options] Conversion options
3195 * @returns Plain object
3196 */
3197 public static toObject(message: google.cloud.speech.v1p1beta1.SpeechContext, options?: $protobuf.IConversionOptions): { [k: string]: any };
3198
3199 /**
3200 * Converts this SpeechContext to JSON.
3201 * @returns JSON object
3202 */
3203 public toJSON(): { [k: string]: any };
3204 }
3205
3206 /** Properties of a RecognitionAudio. */
3207 interface IRecognitionAudio {
3208
3209 /** RecognitionAudio content */
3210 content?: (Uint8Array|string|null);
3211
3212 /** RecognitionAudio uri */
3213 uri?: (string|null);
3214 }
3215
3216 /** Represents a RecognitionAudio. */
3217 class RecognitionAudio implements IRecognitionAudio {
3218
3219 /**
3220 * Constructs a new RecognitionAudio.
3221 * @param [properties] Properties to set
3222 */
3223 constructor(properties?: google.cloud.speech.v1p1beta1.IRecognitionAudio);
3224
3225 /** RecognitionAudio content. */
3226 public content?: (Uint8Array|string|null);
3227
3228 /** RecognitionAudio uri. */
3229 public uri?: (string|null);
3230
3231 /** RecognitionAudio audioSource. */
3232 public audioSource?: ("content"|"uri");
3233
3234 /**
3235 * Creates a new RecognitionAudio instance using the specified properties.
3236 * @param [properties] Properties to set
3237 * @returns RecognitionAudio instance
3238 */
3239 public static create(properties?: google.cloud.speech.v1p1beta1.IRecognitionAudio): google.cloud.speech.v1p1beta1.RecognitionAudio;
3240
3241 /**
3242 * Encodes the specified RecognitionAudio message. Does not implicitly {@link google.cloud.speech.v1p1beta1.RecognitionAudio.verify|verify} messages.
3243 * @param message RecognitionAudio message or plain object to encode
3244 * @param [writer] Writer to encode to
3245 * @returns Writer
3246 */
3247 public static encode(message: google.cloud.speech.v1p1beta1.IRecognitionAudio, writer?: $protobuf.Writer): $protobuf.Writer;
3248
3249 /**
3250 * Encodes the specified RecognitionAudio message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.RecognitionAudio.verify|verify} messages.
3251 * @param message RecognitionAudio message or plain object to encode
3252 * @param [writer] Writer to encode to
3253 * @returns Writer
3254 */
3255 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IRecognitionAudio, writer?: $protobuf.Writer): $protobuf.Writer;
3256
3257 /**
3258 * Decodes a RecognitionAudio 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 RecognitionAudio
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.cloud.speech.v1p1beta1.RecognitionAudio;
3266
3267 /**
3268 * Decodes a RecognitionAudio message from the specified reader or buffer, length delimited.
3269 * @param reader Reader or buffer to decode from
3270 * @returns RecognitionAudio
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.cloud.speech.v1p1beta1.RecognitionAudio;
3275
3276 /**
3277 * Verifies a RecognitionAudio 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 RecognitionAudio message from a plain object. Also converts values to their respective internal types.
3285 * @param object Plain object
3286 * @returns RecognitionAudio
3287 */
3288 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.RecognitionAudio;
3289
3290 /**
3291 * Creates a plain object from a RecognitionAudio message. Also converts values to other types if specified.
3292 * @param message RecognitionAudio
3293 * @param [options] Conversion options
3294 * @returns Plain object
3295 */
3296 public static toObject(message: google.cloud.speech.v1p1beta1.RecognitionAudio, options?: $protobuf.IConversionOptions): { [k: string]: any };
3297
3298 /**
3299 * Converts this RecognitionAudio to JSON.
3300 * @returns JSON object
3301 */
3302 public toJSON(): { [k: string]: any };
3303 }
3304
3305 /** Properties of a RecognizeResponse. */
3306 interface IRecognizeResponse {
3307
3308 /** RecognizeResponse results */
3309 results?: (google.cloud.speech.v1p1beta1.ISpeechRecognitionResult[]|null);
3310
3311 /** RecognizeResponse totalBilledTime */
3312 totalBilledTime?: (google.protobuf.IDuration|null);
3313 }
3314
3315 /** Represents a RecognizeResponse. */
3316 class RecognizeResponse implements IRecognizeResponse {
3317
3318 /**
3319 * Constructs a new RecognizeResponse.
3320 * @param [properties] Properties to set
3321 */
3322 constructor(properties?: google.cloud.speech.v1p1beta1.IRecognizeResponse);
3323
3324 /** RecognizeResponse results. */
3325 public results: google.cloud.speech.v1p1beta1.ISpeechRecognitionResult[];
3326
3327 /** RecognizeResponse totalBilledTime. */
3328 public totalBilledTime?: (google.protobuf.IDuration|null);
3329
3330 /**
3331 * Creates a new RecognizeResponse instance using the specified properties.
3332 * @param [properties] Properties to set
3333 * @returns RecognizeResponse instance
3334 */
3335 public static create(properties?: google.cloud.speech.v1p1beta1.IRecognizeResponse): google.cloud.speech.v1p1beta1.RecognizeResponse;
3336
3337 /**
3338 * Encodes the specified RecognizeResponse message. Does not implicitly {@link google.cloud.speech.v1p1beta1.RecognizeResponse.verify|verify} messages.
3339 * @param message RecognizeResponse message or plain object to encode
3340 * @param [writer] Writer to encode to
3341 * @returns Writer
3342 */
3343 public static encode(message: google.cloud.speech.v1p1beta1.IRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3344
3345 /**
3346 * Encodes the specified RecognizeResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.RecognizeResponse.verify|verify} messages.
3347 * @param message RecognizeResponse message or plain object to encode
3348 * @param [writer] Writer to encode to
3349 * @returns Writer
3350 */
3351 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3352
3353 /**
3354 * Decodes a RecognizeResponse 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 RecognizeResponse
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.cloud.speech.v1p1beta1.RecognizeResponse;
3362
3363 /**
3364 * Decodes a RecognizeResponse message from the specified reader or buffer, length delimited.
3365 * @param reader Reader or buffer to decode from
3366 * @returns RecognizeResponse
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.cloud.speech.v1p1beta1.RecognizeResponse;
3371
3372 /**
3373 * Verifies a RecognizeResponse 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 RecognizeResponse message from a plain object. Also converts values to their respective internal types.
3381 * @param object Plain object
3382 * @returns RecognizeResponse
3383 */
3384 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.RecognizeResponse;
3385
3386 /**
3387 * Creates a plain object from a RecognizeResponse message. Also converts values to other types if specified.
3388 * @param message RecognizeResponse
3389 * @param [options] Conversion options
3390 * @returns Plain object
3391 */
3392 public static toObject(message: google.cloud.speech.v1p1beta1.RecognizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
3393
3394 /**
3395 * Converts this RecognizeResponse to JSON.
3396 * @returns JSON object
3397 */
3398 public toJSON(): { [k: string]: any };
3399 }
3400
3401 /** Properties of a LongRunningRecognizeResponse. */
3402 interface ILongRunningRecognizeResponse {
3403
3404 /** LongRunningRecognizeResponse results */
3405 results?: (google.cloud.speech.v1p1beta1.ISpeechRecognitionResult[]|null);
3406
3407 /** LongRunningRecognizeResponse totalBilledTime */
3408 totalBilledTime?: (google.protobuf.IDuration|null);
3409
3410 /** LongRunningRecognizeResponse outputConfig */
3411 outputConfig?: (google.cloud.speech.v1p1beta1.ITranscriptOutputConfig|null);
3412
3413 /** LongRunningRecognizeResponse outputError */
3414 outputError?: (google.rpc.IStatus|null);
3415 }
3416
3417 /** Represents a LongRunningRecognizeResponse. */
3418 class LongRunningRecognizeResponse implements ILongRunningRecognizeResponse {
3419
3420 /**
3421 * Constructs a new LongRunningRecognizeResponse.
3422 * @param [properties] Properties to set
3423 */
3424 constructor(properties?: google.cloud.speech.v1p1beta1.ILongRunningRecognizeResponse);
3425
3426 /** LongRunningRecognizeResponse results. */
3427 public results: google.cloud.speech.v1p1beta1.ISpeechRecognitionResult[];
3428
3429 /** LongRunningRecognizeResponse totalBilledTime. */
3430 public totalBilledTime?: (google.protobuf.IDuration|null);
3431
3432 /** LongRunningRecognizeResponse outputConfig. */
3433 public outputConfig?: (google.cloud.speech.v1p1beta1.ITranscriptOutputConfig|null);
3434
3435 /** LongRunningRecognizeResponse outputError. */
3436 public outputError?: (google.rpc.IStatus|null);
3437
3438 /**
3439 * Creates a new LongRunningRecognizeResponse instance using the specified properties.
3440 * @param [properties] Properties to set
3441 * @returns LongRunningRecognizeResponse instance
3442 */
3443 public static create(properties?: google.cloud.speech.v1p1beta1.ILongRunningRecognizeResponse): google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse;
3444
3445 /**
3446 * Encodes the specified LongRunningRecognizeResponse message. Does not implicitly {@link google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.verify|verify} messages.
3447 * @param message LongRunningRecognizeResponse message or plain object to encode
3448 * @param [writer] Writer to encode to
3449 * @returns Writer
3450 */
3451 public static encode(message: google.cloud.speech.v1p1beta1.ILongRunningRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3452
3453 /**
3454 * Encodes the specified LongRunningRecognizeResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.verify|verify} messages.
3455 * @param message LongRunningRecognizeResponse message or plain object to encode
3456 * @param [writer] Writer to encode to
3457 * @returns Writer
3458 */
3459 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ILongRunningRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3460
3461 /**
3462 * Decodes a LongRunningRecognizeResponse message from the specified reader or buffer.
3463 * @param reader Reader or buffer to decode from
3464 * @param [length] Message length if known beforehand
3465 * @returns LongRunningRecognizeResponse
3466 * @throws {Error} If the payload is not a reader or valid buffer
3467 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3468 */
3469 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse;
3470
3471 /**
3472 * Decodes a LongRunningRecognizeResponse message from the specified reader or buffer, length delimited.
3473 * @param reader Reader or buffer to decode from
3474 * @returns LongRunningRecognizeResponse
3475 * @throws {Error} If the payload is not a reader or valid buffer
3476 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3477 */
3478 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse;
3479
3480 /**
3481 * Verifies a LongRunningRecognizeResponse message.
3482 * @param message Plain object to verify
3483 * @returns `null` if valid, otherwise the reason why it is not
3484 */
3485 public static verify(message: { [k: string]: any }): (string|null);
3486
3487 /**
3488 * Creates a LongRunningRecognizeResponse message from a plain object. Also converts values to their respective internal types.
3489 * @param object Plain object
3490 * @returns LongRunningRecognizeResponse
3491 */
3492 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse;
3493
3494 /**
3495 * Creates a plain object from a LongRunningRecognizeResponse message. Also converts values to other types if specified.
3496 * @param message LongRunningRecognizeResponse
3497 * @param [options] Conversion options
3498 * @returns Plain object
3499 */
3500 public static toObject(message: google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
3501
3502 /**
3503 * Converts this LongRunningRecognizeResponse to JSON.
3504 * @returns JSON object
3505 */
3506 public toJSON(): { [k: string]: any };
3507 }
3508
3509 /** Properties of a LongRunningRecognizeMetadata. */
3510 interface ILongRunningRecognizeMetadata {
3511
3512 /** LongRunningRecognizeMetadata progressPercent */
3513 progressPercent?: (number|null);
3514
3515 /** LongRunningRecognizeMetadata startTime */
3516 startTime?: (google.protobuf.ITimestamp|null);
3517
3518 /** LongRunningRecognizeMetadata lastUpdateTime */
3519 lastUpdateTime?: (google.protobuf.ITimestamp|null);
3520
3521 /** LongRunningRecognizeMetadata uri */
3522 uri?: (string|null);
3523
3524 /** LongRunningRecognizeMetadata outputConfig */
3525 outputConfig?: (google.cloud.speech.v1p1beta1.ITranscriptOutputConfig|null);
3526 }
3527
3528 /** Represents a LongRunningRecognizeMetadata. */
3529 class LongRunningRecognizeMetadata implements ILongRunningRecognizeMetadata {
3530
3531 /**
3532 * Constructs a new LongRunningRecognizeMetadata.
3533 * @param [properties] Properties to set
3534 */
3535 constructor(properties?: google.cloud.speech.v1p1beta1.ILongRunningRecognizeMetadata);
3536
3537 /** LongRunningRecognizeMetadata progressPercent. */
3538 public progressPercent: number;
3539
3540 /** LongRunningRecognizeMetadata startTime. */
3541 public startTime?: (google.protobuf.ITimestamp|null);
3542
3543 /** LongRunningRecognizeMetadata lastUpdateTime. */
3544 public lastUpdateTime?: (google.protobuf.ITimestamp|null);
3545
3546 /** LongRunningRecognizeMetadata uri. */
3547 public uri: string;
3548
3549 /** LongRunningRecognizeMetadata outputConfig. */
3550 public outputConfig?: (google.cloud.speech.v1p1beta1.ITranscriptOutputConfig|null);
3551
3552 /**
3553 * Creates a new LongRunningRecognizeMetadata instance using the specified properties.
3554 * @param [properties] Properties to set
3555 * @returns LongRunningRecognizeMetadata instance
3556 */
3557 public static create(properties?: google.cloud.speech.v1p1beta1.ILongRunningRecognizeMetadata): google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata;
3558
3559 /**
3560 * Encodes the specified LongRunningRecognizeMetadata message. Does not implicitly {@link google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.verify|verify} messages.
3561 * @param message LongRunningRecognizeMetadata message or plain object to encode
3562 * @param [writer] Writer to encode to
3563 * @returns Writer
3564 */
3565 public static encode(message: google.cloud.speech.v1p1beta1.ILongRunningRecognizeMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
3566
3567 /**
3568 * Encodes the specified LongRunningRecognizeMetadata message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.verify|verify} messages.
3569 * @param message LongRunningRecognizeMetadata message or plain object to encode
3570 * @param [writer] Writer to encode to
3571 * @returns Writer
3572 */
3573 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ILongRunningRecognizeMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
3574
3575 /**
3576 * Decodes a LongRunningRecognizeMetadata message from the specified reader or buffer.
3577 * @param reader Reader or buffer to decode from
3578 * @param [length] Message length if known beforehand
3579 * @returns LongRunningRecognizeMetadata
3580 * @throws {Error} If the payload is not a reader or valid buffer
3581 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3582 */
3583 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata;
3584
3585 /**
3586 * Decodes a LongRunningRecognizeMetadata message from the specified reader or buffer, length delimited.
3587 * @param reader Reader or buffer to decode from
3588 * @returns LongRunningRecognizeMetadata
3589 * @throws {Error} If the payload is not a reader or valid buffer
3590 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3591 */
3592 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata;
3593
3594 /**
3595 * Verifies a LongRunningRecognizeMetadata message.
3596 * @param message Plain object to verify
3597 * @returns `null` if valid, otherwise the reason why it is not
3598 */
3599 public static verify(message: { [k: string]: any }): (string|null);
3600
3601 /**
3602 * Creates a LongRunningRecognizeMetadata message from a plain object. Also converts values to their respective internal types.
3603 * @param object Plain object
3604 * @returns LongRunningRecognizeMetadata
3605 */
3606 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata;
3607
3608 /**
3609 * Creates a plain object from a LongRunningRecognizeMetadata message. Also converts values to other types if specified.
3610 * @param message LongRunningRecognizeMetadata
3611 * @param [options] Conversion options
3612 * @returns Plain object
3613 */
3614 public static toObject(message: google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
3615
3616 /**
3617 * Converts this LongRunningRecognizeMetadata to JSON.
3618 * @returns JSON object
3619 */
3620 public toJSON(): { [k: string]: any };
3621 }
3622
3623 /** Properties of a StreamingRecognizeResponse. */
3624 interface IStreamingRecognizeResponse {
3625
3626 /** StreamingRecognizeResponse error */
3627 error?: (google.rpc.IStatus|null);
3628
3629 /** StreamingRecognizeResponse results */
3630 results?: (google.cloud.speech.v1p1beta1.IStreamingRecognitionResult[]|null);
3631
3632 /** StreamingRecognizeResponse speechEventType */
3633 speechEventType?: (google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType|keyof typeof google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType|null);
3634
3635 /** StreamingRecognizeResponse totalBilledTime */
3636 totalBilledTime?: (google.protobuf.IDuration|null);
3637 }
3638
3639 /** Represents a StreamingRecognizeResponse. */
3640 class StreamingRecognizeResponse implements IStreamingRecognizeResponse {
3641
3642 /**
3643 * Constructs a new StreamingRecognizeResponse.
3644 * @param [properties] Properties to set
3645 */
3646 constructor(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognizeResponse);
3647
3648 /** StreamingRecognizeResponse error. */
3649 public error?: (google.rpc.IStatus|null);
3650
3651 /** StreamingRecognizeResponse results. */
3652 public results: google.cloud.speech.v1p1beta1.IStreamingRecognitionResult[];
3653
3654 /** StreamingRecognizeResponse speechEventType. */
3655 public speechEventType: (google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType|keyof typeof google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType);
3656
3657 /** StreamingRecognizeResponse totalBilledTime. */
3658 public totalBilledTime?: (google.protobuf.IDuration|null);
3659
3660 /**
3661 * Creates a new StreamingRecognizeResponse instance using the specified properties.
3662 * @param [properties] Properties to set
3663 * @returns StreamingRecognizeResponse instance
3664 */
3665 public static create(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognizeResponse): google.cloud.speech.v1p1beta1.StreamingRecognizeResponse;
3666
3667 /**
3668 * Encodes the specified StreamingRecognizeResponse message. Does not implicitly {@link google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.verify|verify} messages.
3669 * @param message StreamingRecognizeResponse message or plain object to encode
3670 * @param [writer] Writer to encode to
3671 * @returns Writer
3672 */
3673 public static encode(message: google.cloud.speech.v1p1beta1.IStreamingRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3674
3675 /**
3676 * Encodes the specified StreamingRecognizeResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.verify|verify} messages.
3677 * @param message StreamingRecognizeResponse message or plain object to encode
3678 * @param [writer] Writer to encode to
3679 * @returns Writer
3680 */
3681 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IStreamingRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3682
3683 /**
3684 * Decodes a StreamingRecognizeResponse message from the specified reader or buffer.
3685 * @param reader Reader or buffer to decode from
3686 * @param [length] Message length if known beforehand
3687 * @returns StreamingRecognizeResponse
3688 * @throws {Error} If the payload is not a reader or valid buffer
3689 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3690 */
3691 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.StreamingRecognizeResponse;
3692
3693 /**
3694 * Decodes a StreamingRecognizeResponse message from the specified reader or buffer, length delimited.
3695 * @param reader Reader or buffer to decode from
3696 * @returns StreamingRecognizeResponse
3697 * @throws {Error} If the payload is not a reader or valid buffer
3698 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3699 */
3700 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.StreamingRecognizeResponse;
3701
3702 /**
3703 * Verifies a StreamingRecognizeResponse message.
3704 * @param message Plain object to verify
3705 * @returns `null` if valid, otherwise the reason why it is not
3706 */
3707 public static verify(message: { [k: string]: any }): (string|null);
3708
3709 /**
3710 * Creates a StreamingRecognizeResponse message from a plain object. Also converts values to their respective internal types.
3711 * @param object Plain object
3712 * @returns StreamingRecognizeResponse
3713 */
3714 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.StreamingRecognizeResponse;
3715
3716 /**
3717 * Creates a plain object from a StreamingRecognizeResponse message. Also converts values to other types if specified.
3718 * @param message StreamingRecognizeResponse
3719 * @param [options] Conversion options
3720 * @returns Plain object
3721 */
3722 public static toObject(message: google.cloud.speech.v1p1beta1.StreamingRecognizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
3723
3724 /**
3725 * Converts this StreamingRecognizeResponse to JSON.
3726 * @returns JSON object
3727 */
3728 public toJSON(): { [k: string]: any };
3729 }
3730
3731 namespace StreamingRecognizeResponse {
3732
3733 /** SpeechEventType enum. */
3734 enum SpeechEventType {
3735 SPEECH_EVENT_UNSPECIFIED = 0,
3736 END_OF_SINGLE_UTTERANCE = 1
3737 }
3738 }
3739
3740 /** Properties of a StreamingRecognitionResult. */
3741 interface IStreamingRecognitionResult {
3742
3743 /** StreamingRecognitionResult alternatives */
3744 alternatives?: (google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative[]|null);
3745
3746 /** StreamingRecognitionResult isFinal */
3747 isFinal?: (boolean|null);
3748
3749 /** StreamingRecognitionResult stability */
3750 stability?: (number|null);
3751
3752 /** StreamingRecognitionResult resultEndTime */
3753 resultEndTime?: (google.protobuf.IDuration|null);
3754
3755 /** StreamingRecognitionResult channelTag */
3756 channelTag?: (number|null);
3757
3758 /** StreamingRecognitionResult languageCode */
3759 languageCode?: (string|null);
3760 }
3761
3762 /** Represents a StreamingRecognitionResult. */
3763 class StreamingRecognitionResult implements IStreamingRecognitionResult {
3764
3765 /**
3766 * Constructs a new StreamingRecognitionResult.
3767 * @param [properties] Properties to set
3768 */
3769 constructor(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognitionResult);
3770
3771 /** StreamingRecognitionResult alternatives. */
3772 public alternatives: google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative[];
3773
3774 /** StreamingRecognitionResult isFinal. */
3775 public isFinal: boolean;
3776
3777 /** StreamingRecognitionResult stability. */
3778 public stability: number;
3779
3780 /** StreamingRecognitionResult resultEndTime. */
3781 public resultEndTime?: (google.protobuf.IDuration|null);
3782
3783 /** StreamingRecognitionResult channelTag. */
3784 public channelTag: number;
3785
3786 /** StreamingRecognitionResult languageCode. */
3787 public languageCode: string;
3788
3789 /**
3790 * Creates a new StreamingRecognitionResult instance using the specified properties.
3791 * @param [properties] Properties to set
3792 * @returns StreamingRecognitionResult instance
3793 */
3794 public static create(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognitionResult): google.cloud.speech.v1p1beta1.StreamingRecognitionResult;
3795
3796 /**
3797 * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.speech.v1p1beta1.StreamingRecognitionResult.verify|verify} messages.
3798 * @param message StreamingRecognitionResult message or plain object to encode
3799 * @param [writer] Writer to encode to
3800 * @returns Writer
3801 */
3802 public static encode(message: google.cloud.speech.v1p1beta1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
3803
3804 /**
3805 * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.StreamingRecognitionResult.verify|verify} messages.
3806 * @param message StreamingRecognitionResult message or plain object to encode
3807 * @param [writer] Writer to encode to
3808 * @returns Writer
3809 */
3810 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
3811
3812 /**
3813 * Decodes a StreamingRecognitionResult message from the specified reader or buffer.
3814 * @param reader Reader or buffer to decode from
3815 * @param [length] Message length if known beforehand
3816 * @returns StreamingRecognitionResult
3817 * @throws {Error} If the payload is not a reader or valid buffer
3818 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3819 */
3820 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.StreamingRecognitionResult;
3821
3822 /**
3823 * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited.
3824 * @param reader Reader or buffer to decode from
3825 * @returns StreamingRecognitionResult
3826 * @throws {Error} If the payload is not a reader or valid buffer
3827 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3828 */
3829 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.StreamingRecognitionResult;
3830
3831 /**
3832 * Verifies a StreamingRecognitionResult message.
3833 * @param message Plain object to verify
3834 * @returns `null` if valid, otherwise the reason why it is not
3835 */
3836 public static verify(message: { [k: string]: any }): (string|null);
3837
3838 /**
3839 * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types.
3840 * @param object Plain object
3841 * @returns StreamingRecognitionResult
3842 */
3843 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.StreamingRecognitionResult;
3844
3845 /**
3846 * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified.
3847 * @param message StreamingRecognitionResult
3848 * @param [options] Conversion options
3849 * @returns Plain object
3850 */
3851 public static toObject(message: google.cloud.speech.v1p1beta1.StreamingRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
3852
3853 /**
3854 * Converts this StreamingRecognitionResult to JSON.
3855 * @returns JSON object
3856 */
3857 public toJSON(): { [k: string]: any };
3858 }
3859
3860 /** Properties of a SpeechRecognitionResult. */
3861 interface ISpeechRecognitionResult {
3862
3863 /** SpeechRecognitionResult alternatives */
3864 alternatives?: (google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative[]|null);
3865
3866 /** SpeechRecognitionResult channelTag */
3867 channelTag?: (number|null);
3868
3869 /** SpeechRecognitionResult languageCode */
3870 languageCode?: (string|null);
3871 }
3872
3873 /** Represents a SpeechRecognitionResult. */
3874 class SpeechRecognitionResult implements ISpeechRecognitionResult {
3875
3876 /**
3877 * Constructs a new SpeechRecognitionResult.
3878 * @param [properties] Properties to set
3879 */
3880 constructor(properties?: google.cloud.speech.v1p1beta1.ISpeechRecognitionResult);
3881
3882 /** SpeechRecognitionResult alternatives. */
3883 public alternatives: google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative[];
3884
3885 /** SpeechRecognitionResult channelTag. */
3886 public channelTag: number;
3887
3888 /** SpeechRecognitionResult languageCode. */
3889 public languageCode: string;
3890
3891 /**
3892 * Creates a new SpeechRecognitionResult instance using the specified properties.
3893 * @param [properties] Properties to set
3894 * @returns SpeechRecognitionResult instance
3895 */
3896 public static create(properties?: google.cloud.speech.v1p1beta1.ISpeechRecognitionResult): google.cloud.speech.v1p1beta1.SpeechRecognitionResult;
3897
3898 /**
3899 * Encodes the specified SpeechRecognitionResult message. Does not implicitly {@link google.cloud.speech.v1p1beta1.SpeechRecognitionResult.verify|verify} messages.
3900 * @param message SpeechRecognitionResult message or plain object to encode
3901 * @param [writer] Writer to encode to
3902 * @returns Writer
3903 */
3904 public static encode(message: google.cloud.speech.v1p1beta1.ISpeechRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
3905
3906 /**
3907 * Encodes the specified SpeechRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.SpeechRecognitionResult.verify|verify} messages.
3908 * @param message SpeechRecognitionResult message or plain object to encode
3909 * @param [writer] Writer to encode to
3910 * @returns Writer
3911 */
3912 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ISpeechRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
3913
3914 /**
3915 * Decodes a SpeechRecognitionResult message from the specified reader or buffer.
3916 * @param reader Reader or buffer to decode from
3917 * @param [length] Message length if known beforehand
3918 * @returns SpeechRecognitionResult
3919 * @throws {Error} If the payload is not a reader or valid buffer
3920 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3921 */
3922 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.SpeechRecognitionResult;
3923
3924 /**
3925 * Decodes a SpeechRecognitionResult message from the specified reader or buffer, length delimited.
3926 * @param reader Reader or buffer to decode from
3927 * @returns SpeechRecognitionResult
3928 * @throws {Error} If the payload is not a reader or valid buffer
3929 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3930 */
3931 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.SpeechRecognitionResult;
3932
3933 /**
3934 * Verifies a SpeechRecognitionResult message.
3935 * @param message Plain object to verify
3936 * @returns `null` if valid, otherwise the reason why it is not
3937 */
3938 public static verify(message: { [k: string]: any }): (string|null);
3939
3940 /**
3941 * Creates a SpeechRecognitionResult message from a plain object. Also converts values to their respective internal types.
3942 * @param object Plain object
3943 * @returns SpeechRecognitionResult
3944 */
3945 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.SpeechRecognitionResult;
3946
3947 /**
3948 * Creates a plain object from a SpeechRecognitionResult message. Also converts values to other types if specified.
3949 * @param message SpeechRecognitionResult
3950 * @param [options] Conversion options
3951 * @returns Plain object
3952 */
3953 public static toObject(message: google.cloud.speech.v1p1beta1.SpeechRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
3954
3955 /**
3956 * Converts this SpeechRecognitionResult to JSON.
3957 * @returns JSON object
3958 */
3959 public toJSON(): { [k: string]: any };
3960 }
3961
3962 /** Properties of a SpeechRecognitionAlternative. */
3963 interface ISpeechRecognitionAlternative {
3964
3965 /** SpeechRecognitionAlternative transcript */
3966 transcript?: (string|null);
3967
3968 /** SpeechRecognitionAlternative confidence */
3969 confidence?: (number|null);
3970
3971 /** SpeechRecognitionAlternative words */
3972 words?: (google.cloud.speech.v1p1beta1.IWordInfo[]|null);
3973 }
3974
3975 /** Represents a SpeechRecognitionAlternative. */
3976 class SpeechRecognitionAlternative implements ISpeechRecognitionAlternative {
3977
3978 /**
3979 * Constructs a new SpeechRecognitionAlternative.
3980 * @param [properties] Properties to set
3981 */
3982 constructor(properties?: google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative);
3983
3984 /** SpeechRecognitionAlternative transcript. */
3985 public transcript: string;
3986
3987 /** SpeechRecognitionAlternative confidence. */
3988 public confidence: number;
3989
3990 /** SpeechRecognitionAlternative words. */
3991 public words: google.cloud.speech.v1p1beta1.IWordInfo[];
3992
3993 /**
3994 * Creates a new SpeechRecognitionAlternative instance using the specified properties.
3995 * @param [properties] Properties to set
3996 * @returns SpeechRecognitionAlternative instance
3997 */
3998 public static create(properties?: google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative): google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative;
3999
4000 /**
4001 * Encodes the specified SpeechRecognitionAlternative message. Does not implicitly {@link google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.verify|verify} messages.
4002 * @param message SpeechRecognitionAlternative message or plain object to encode
4003 * @param [writer] Writer to encode to
4004 * @returns Writer
4005 */
4006 public static encode(message: google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative, writer?: $protobuf.Writer): $protobuf.Writer;
4007
4008 /**
4009 * Encodes the specified SpeechRecognitionAlternative message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.verify|verify} messages.
4010 * @param message SpeechRecognitionAlternative message or plain object to encode
4011 * @param [writer] Writer to encode to
4012 * @returns Writer
4013 */
4014 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative, writer?: $protobuf.Writer): $protobuf.Writer;
4015
4016 /**
4017 * Decodes a SpeechRecognitionAlternative message from the specified reader or buffer.
4018 * @param reader Reader or buffer to decode from
4019 * @param [length] Message length if known beforehand
4020 * @returns SpeechRecognitionAlternative
4021 * @throws {Error} If the payload is not a reader or valid buffer
4022 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4023 */
4024 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative;
4025
4026 /**
4027 * Decodes a SpeechRecognitionAlternative message from the specified reader or buffer, length delimited.
4028 * @param reader Reader or buffer to decode from
4029 * @returns SpeechRecognitionAlternative
4030 * @throws {Error} If the payload is not a reader or valid buffer
4031 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4032 */
4033 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative;
4034
4035 /**
4036 * Verifies a SpeechRecognitionAlternative message.
4037 * @param message Plain object to verify
4038 * @returns `null` if valid, otherwise the reason why it is not
4039 */
4040 public static verify(message: { [k: string]: any }): (string|null);
4041
4042 /**
4043 * Creates a SpeechRecognitionAlternative message from a plain object. Also converts values to their respective internal types.
4044 * @param object Plain object
4045 * @returns SpeechRecognitionAlternative
4046 */
4047 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative;
4048
4049 /**
4050 * Creates a plain object from a SpeechRecognitionAlternative message. Also converts values to other types if specified.
4051 * @param message SpeechRecognitionAlternative
4052 * @param [options] Conversion options
4053 * @returns Plain object
4054 */
4055 public static toObject(message: google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, options?: $protobuf.IConversionOptions): { [k: string]: any };
4056
4057 /**
4058 * Converts this SpeechRecognitionAlternative to JSON.
4059 * @returns JSON object
4060 */
4061 public toJSON(): { [k: string]: any };
4062 }
4063
4064 /** Properties of a WordInfo. */
4065 interface IWordInfo {
4066
4067 /** WordInfo startTime */
4068 startTime?: (google.protobuf.IDuration|null);
4069
4070 /** WordInfo endTime */
4071 endTime?: (google.protobuf.IDuration|null);
4072
4073 /** WordInfo word */
4074 word?: (string|null);
4075
4076 /** WordInfo confidence */
4077 confidence?: (number|null);
4078
4079 /** WordInfo speakerTag */
4080 speakerTag?: (number|null);
4081 }
4082
4083 /** Represents a WordInfo. */
4084 class WordInfo implements IWordInfo {
4085
4086 /**
4087 * Constructs a new WordInfo.
4088 * @param [properties] Properties to set
4089 */
4090 constructor(properties?: google.cloud.speech.v1p1beta1.IWordInfo);
4091
4092 /** WordInfo startTime. */
4093 public startTime?: (google.protobuf.IDuration|null);
4094
4095 /** WordInfo endTime. */
4096 public endTime?: (google.protobuf.IDuration|null);
4097
4098 /** WordInfo word. */
4099 public word: string;
4100
4101 /** WordInfo confidence. */
4102 public confidence: number;
4103
4104 /** WordInfo speakerTag. */
4105 public speakerTag: number;
4106
4107 /**
4108 * Creates a new WordInfo instance using the specified properties.
4109 * @param [properties] Properties to set
4110 * @returns WordInfo instance
4111 */
4112 public static create(properties?: google.cloud.speech.v1p1beta1.IWordInfo): google.cloud.speech.v1p1beta1.WordInfo;
4113
4114 /**
4115 * Encodes the specified WordInfo message. Does not implicitly {@link google.cloud.speech.v1p1beta1.WordInfo.verify|verify} messages.
4116 * @param message WordInfo message or plain object to encode
4117 * @param [writer] Writer to encode to
4118 * @returns Writer
4119 */
4120 public static encode(message: google.cloud.speech.v1p1beta1.IWordInfo, writer?: $protobuf.Writer): $protobuf.Writer;
4121
4122 /**
4123 * Encodes the specified WordInfo message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.WordInfo.verify|verify} messages.
4124 * @param message WordInfo message or plain object to encode
4125 * @param [writer] Writer to encode to
4126 * @returns Writer
4127 */
4128 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IWordInfo, writer?: $protobuf.Writer): $protobuf.Writer;
4129
4130 /**
4131 * Decodes a WordInfo message from the specified reader or buffer.
4132 * @param reader Reader or buffer to decode from
4133 * @param [length] Message length if known beforehand
4134 * @returns WordInfo
4135 * @throws {Error} If the payload is not a reader or valid buffer
4136 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4137 */
4138 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.WordInfo;
4139
4140 /**
4141 * Decodes a WordInfo message from the specified reader or buffer, length delimited.
4142 * @param reader Reader or buffer to decode from
4143 * @returns WordInfo
4144 * @throws {Error} If the payload is not a reader or valid buffer
4145 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4146 */
4147 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.WordInfo;
4148
4149 /**
4150 * Verifies a WordInfo message.
4151 * @param message Plain object to verify
4152 * @returns `null` if valid, otherwise the reason why it is not
4153 */
4154 public static verify(message: { [k: string]: any }): (string|null);
4155
4156 /**
4157 * Creates a WordInfo message from a plain object. Also converts values to their respective internal types.
4158 * @param object Plain object
4159 * @returns WordInfo
4160 */
4161 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.WordInfo;
4162
4163 /**
4164 * Creates a plain object from a WordInfo message. Also converts values to other types if specified.
4165 * @param message WordInfo
4166 * @param [options] Conversion options
4167 * @returns Plain object
4168 */
4169 public static toObject(message: google.cloud.speech.v1p1beta1.WordInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
4170
4171 /**
4172 * Converts this WordInfo to JSON.
4173 * @returns JSON object
4174 */
4175 public toJSON(): { [k: string]: any };
4176 }
4177
4178 /** Properties of a CustomClass. */
4179 interface ICustomClass {
4180
4181 /** CustomClass name */
4182 name?: (string|null);
4183
4184 /** CustomClass customClassId */
4185 customClassId?: (string|null);
4186
4187 /** CustomClass items */
4188 items?: (google.cloud.speech.v1p1beta1.CustomClass.IClassItem[]|null);
4189 }
4190
4191 /** Represents a CustomClass. */
4192 class CustomClass implements ICustomClass {
4193
4194 /**
4195 * Constructs a new CustomClass.
4196 * @param [properties] Properties to set
4197 */
4198 constructor(properties?: google.cloud.speech.v1p1beta1.ICustomClass);
4199
4200 /** CustomClass name. */
4201 public name: string;
4202
4203 /** CustomClass customClassId. */
4204 public customClassId: string;
4205
4206 /** CustomClass items. */
4207 public items: google.cloud.speech.v1p1beta1.CustomClass.IClassItem[];
4208
4209 /**
4210 * Creates a new CustomClass instance using the specified properties.
4211 * @param [properties] Properties to set
4212 * @returns CustomClass instance
4213 */
4214 public static create(properties?: google.cloud.speech.v1p1beta1.ICustomClass): google.cloud.speech.v1p1beta1.CustomClass;
4215
4216 /**
4217 * Encodes the specified CustomClass message. Does not implicitly {@link google.cloud.speech.v1p1beta1.CustomClass.verify|verify} messages.
4218 * @param message CustomClass message or plain object to encode
4219 * @param [writer] Writer to encode to
4220 * @returns Writer
4221 */
4222 public static encode(message: google.cloud.speech.v1p1beta1.ICustomClass, writer?: $protobuf.Writer): $protobuf.Writer;
4223
4224 /**
4225 * Encodes the specified CustomClass message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.CustomClass.verify|verify} messages.
4226 * @param message CustomClass message or plain object to encode
4227 * @param [writer] Writer to encode to
4228 * @returns Writer
4229 */
4230 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ICustomClass, writer?: $protobuf.Writer): $protobuf.Writer;
4231
4232 /**
4233 * Decodes a CustomClass message from the specified reader or buffer.
4234 * @param reader Reader or buffer to decode from
4235 * @param [length] Message length if known beforehand
4236 * @returns CustomClass
4237 * @throws {Error} If the payload is not a reader or valid buffer
4238 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4239 */
4240 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.CustomClass;
4241
4242 /**
4243 * Decodes a CustomClass message from the specified reader or buffer, length delimited.
4244 * @param reader Reader or buffer to decode from
4245 * @returns CustomClass
4246 * @throws {Error} If the payload is not a reader or valid buffer
4247 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4248 */
4249 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.CustomClass;
4250
4251 /**
4252 * Verifies a CustomClass message.
4253 * @param message Plain object to verify
4254 * @returns `null` if valid, otherwise the reason why it is not
4255 */
4256 public static verify(message: { [k: string]: any }): (string|null);
4257
4258 /**
4259 * Creates a CustomClass message from a plain object. Also converts values to their respective internal types.
4260 * @param object Plain object
4261 * @returns CustomClass
4262 */
4263 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.CustomClass;
4264
4265 /**
4266 * Creates a plain object from a CustomClass message. Also converts values to other types if specified.
4267 * @param message CustomClass
4268 * @param [options] Conversion options
4269 * @returns Plain object
4270 */
4271 public static toObject(message: google.cloud.speech.v1p1beta1.CustomClass, options?: $protobuf.IConversionOptions): { [k: string]: any };
4272
4273 /**
4274 * Converts this CustomClass to JSON.
4275 * @returns JSON object
4276 */
4277 public toJSON(): { [k: string]: any };
4278 }
4279
4280 namespace CustomClass {
4281
4282 /** Properties of a ClassItem. */
4283 interface IClassItem {
4284
4285 /** ClassItem value */
4286 value?: (string|null);
4287 }
4288
4289 /** Represents a ClassItem. */
4290 class ClassItem implements IClassItem {
4291
4292 /**
4293 * Constructs a new ClassItem.
4294 * @param [properties] Properties to set
4295 */
4296 constructor(properties?: google.cloud.speech.v1p1beta1.CustomClass.IClassItem);
4297
4298 /** ClassItem value. */
4299 public value: string;
4300
4301 /**
4302 * Creates a new ClassItem instance using the specified properties.
4303 * @param [properties] Properties to set
4304 * @returns ClassItem instance
4305 */
4306 public static create(properties?: google.cloud.speech.v1p1beta1.CustomClass.IClassItem): google.cloud.speech.v1p1beta1.CustomClass.ClassItem;
4307
4308 /**
4309 * Encodes the specified ClassItem message. Does not implicitly {@link google.cloud.speech.v1p1beta1.CustomClass.ClassItem.verify|verify} messages.
4310 * @param message ClassItem message or plain object to encode
4311 * @param [writer] Writer to encode to
4312 * @returns Writer
4313 */
4314 public static encode(message: google.cloud.speech.v1p1beta1.CustomClass.IClassItem, writer?: $protobuf.Writer): $protobuf.Writer;
4315
4316 /**
4317 * Encodes the specified ClassItem message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.CustomClass.ClassItem.verify|verify} messages.
4318 * @param message ClassItem message or plain object to encode
4319 * @param [writer] Writer to encode to
4320 * @returns Writer
4321 */
4322 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.CustomClass.IClassItem, writer?: $protobuf.Writer): $protobuf.Writer;
4323
4324 /**
4325 * Decodes a ClassItem message from the specified reader or buffer.
4326 * @param reader Reader or buffer to decode from
4327 * @param [length] Message length if known beforehand
4328 * @returns ClassItem
4329 * @throws {Error} If the payload is not a reader or valid buffer
4330 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4331 */
4332 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.CustomClass.ClassItem;
4333
4334 /**
4335 * Decodes a ClassItem message from the specified reader or buffer, length delimited.
4336 * @param reader Reader or buffer to decode from
4337 * @returns ClassItem
4338 * @throws {Error} If the payload is not a reader or valid buffer
4339 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4340 */
4341 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.CustomClass.ClassItem;
4342
4343 /**
4344 * Verifies a ClassItem message.
4345 * @param message Plain object to verify
4346 * @returns `null` if valid, otherwise the reason why it is not
4347 */
4348 public static verify(message: { [k: string]: any }): (string|null);
4349
4350 /**
4351 * Creates a ClassItem message from a plain object. Also converts values to their respective internal types.
4352 * @param object Plain object
4353 * @returns ClassItem
4354 */
4355 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.CustomClass.ClassItem;
4356
4357 /**
4358 * Creates a plain object from a ClassItem message. Also converts values to other types if specified.
4359 * @param message ClassItem
4360 * @param [options] Conversion options
4361 * @returns Plain object
4362 */
4363 public static toObject(message: google.cloud.speech.v1p1beta1.CustomClass.ClassItem, options?: $protobuf.IConversionOptions): { [k: string]: any };
4364
4365 /**
4366 * Converts this ClassItem to JSON.
4367 * @returns JSON object
4368 */
4369 public toJSON(): { [k: string]: any };
4370 }
4371 }
4372
4373 /** Properties of a PhraseSet. */
4374 interface IPhraseSet {
4375
4376 /** PhraseSet name */
4377 name?: (string|null);
4378
4379 /** PhraseSet phrases */
4380 phrases?: (google.cloud.speech.v1p1beta1.PhraseSet.IPhrase[]|null);
4381
4382 /** PhraseSet boost */
4383 boost?: (number|null);
4384 }
4385
4386 /** Represents a PhraseSet. */
4387 class PhraseSet implements IPhraseSet {
4388
4389 /**
4390 * Constructs a new PhraseSet.
4391 * @param [properties] Properties to set
4392 */
4393 constructor(properties?: google.cloud.speech.v1p1beta1.IPhraseSet);
4394
4395 /** PhraseSet name. */
4396 public name: string;
4397
4398 /** PhraseSet phrases. */
4399 public phrases: google.cloud.speech.v1p1beta1.PhraseSet.IPhrase[];
4400
4401 /** PhraseSet boost. */
4402 public boost: number;
4403
4404 /**
4405 * Creates a new PhraseSet instance using the specified properties.
4406 * @param [properties] Properties to set
4407 * @returns PhraseSet instance
4408 */
4409 public static create(properties?: google.cloud.speech.v1p1beta1.IPhraseSet): google.cloud.speech.v1p1beta1.PhraseSet;
4410
4411 /**
4412 * Encodes the specified PhraseSet message. Does not implicitly {@link google.cloud.speech.v1p1beta1.PhraseSet.verify|verify} messages.
4413 * @param message PhraseSet message or plain object to encode
4414 * @param [writer] Writer to encode to
4415 * @returns Writer
4416 */
4417 public static encode(message: google.cloud.speech.v1p1beta1.IPhraseSet, writer?: $protobuf.Writer): $protobuf.Writer;
4418
4419 /**
4420 * Encodes the specified PhraseSet message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.PhraseSet.verify|verify} messages.
4421 * @param message PhraseSet message or plain object to encode
4422 * @param [writer] Writer to encode to
4423 * @returns Writer
4424 */
4425 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IPhraseSet, writer?: $protobuf.Writer): $protobuf.Writer;
4426
4427 /**
4428 * Decodes a PhraseSet message from the specified reader or buffer.
4429 * @param reader Reader or buffer to decode from
4430 * @param [length] Message length if known beforehand
4431 * @returns PhraseSet
4432 * @throws {Error} If the payload is not a reader or valid buffer
4433 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4434 */
4435 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.PhraseSet;
4436
4437 /**
4438 * Decodes a PhraseSet message from the specified reader or buffer, length delimited.
4439 * @param reader Reader or buffer to decode from
4440 * @returns PhraseSet
4441 * @throws {Error} If the payload is not a reader or valid buffer
4442 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4443 */
4444 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.PhraseSet;
4445
4446 /**
4447 * Verifies a PhraseSet message.
4448 * @param message Plain object to verify
4449 * @returns `null` if valid, otherwise the reason why it is not
4450 */
4451 public static verify(message: { [k: string]: any }): (string|null);
4452
4453 /**
4454 * Creates a PhraseSet message from a plain object. Also converts values to their respective internal types.
4455 * @param object Plain object
4456 * @returns PhraseSet
4457 */
4458 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.PhraseSet;
4459
4460 /**
4461 * Creates a plain object from a PhraseSet message. Also converts values to other types if specified.
4462 * @param message PhraseSet
4463 * @param [options] Conversion options
4464 * @returns Plain object
4465 */
4466 public static toObject(message: google.cloud.speech.v1p1beta1.PhraseSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
4467
4468 /**
4469 * Converts this PhraseSet to JSON.
4470 * @returns JSON object
4471 */
4472 public toJSON(): { [k: string]: any };
4473 }
4474
4475 namespace PhraseSet {
4476
4477 /** Properties of a Phrase. */
4478 interface IPhrase {
4479
4480 /** Phrase value */
4481 value?: (string|null);
4482
4483 /** Phrase boost */
4484 boost?: (number|null);
4485 }
4486
4487 /** Represents a Phrase. */
4488 class Phrase implements IPhrase {
4489
4490 /**
4491 * Constructs a new Phrase.
4492 * @param [properties] Properties to set
4493 */
4494 constructor(properties?: google.cloud.speech.v1p1beta1.PhraseSet.IPhrase);
4495
4496 /** Phrase value. */
4497 public value: string;
4498
4499 /** Phrase boost. */
4500 public boost: number;
4501
4502 /**
4503 * Creates a new Phrase instance using the specified properties.
4504 * @param [properties] Properties to set
4505 * @returns Phrase instance
4506 */
4507 public static create(properties?: google.cloud.speech.v1p1beta1.PhraseSet.IPhrase): google.cloud.speech.v1p1beta1.PhraseSet.Phrase;
4508
4509 /**
4510 * Encodes the specified Phrase message. Does not implicitly {@link google.cloud.speech.v1p1beta1.PhraseSet.Phrase.verify|verify} messages.
4511 * @param message Phrase message or plain object to encode
4512 * @param [writer] Writer to encode to
4513 * @returns Writer
4514 */
4515 public static encode(message: google.cloud.speech.v1p1beta1.PhraseSet.IPhrase, writer?: $protobuf.Writer): $protobuf.Writer;
4516
4517 /**
4518 * Encodes the specified Phrase message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.PhraseSet.Phrase.verify|verify} messages.
4519 * @param message Phrase message or plain object to encode
4520 * @param [writer] Writer to encode to
4521 * @returns Writer
4522 */
4523 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.PhraseSet.IPhrase, writer?: $protobuf.Writer): $protobuf.Writer;
4524
4525 /**
4526 * Decodes a Phrase message from the specified reader or buffer.
4527 * @param reader Reader or buffer to decode from
4528 * @param [length] Message length if known beforehand
4529 * @returns Phrase
4530 * @throws {Error} If the payload is not a reader or valid buffer
4531 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4532 */
4533 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.PhraseSet.Phrase;
4534
4535 /**
4536 * Decodes a Phrase message from the specified reader or buffer, length delimited.
4537 * @param reader Reader or buffer to decode from
4538 * @returns Phrase
4539 * @throws {Error} If the payload is not a reader or valid buffer
4540 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4541 */
4542 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.PhraseSet.Phrase;
4543
4544 /**
4545 * Verifies a Phrase message.
4546 * @param message Plain object to verify
4547 * @returns `null` if valid, otherwise the reason why it is not
4548 */
4549 public static verify(message: { [k: string]: any }): (string|null);
4550
4551 /**
4552 * Creates a Phrase message from a plain object. Also converts values to their respective internal types.
4553 * @param object Plain object
4554 * @returns Phrase
4555 */
4556 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.PhraseSet.Phrase;
4557
4558 /**
4559 * Creates a plain object from a Phrase message. Also converts values to other types if specified.
4560 * @param message Phrase
4561 * @param [options] Conversion options
4562 * @returns Plain object
4563 */
4564 public static toObject(message: google.cloud.speech.v1p1beta1.PhraseSet.Phrase, options?: $protobuf.IConversionOptions): { [k: string]: any };
4565
4566 /**
4567 * Converts this Phrase to JSON.
4568 * @returns JSON object
4569 */
4570 public toJSON(): { [k: string]: any };
4571 }
4572 }
4573
4574 /** Properties of a SpeechAdaptation. */
4575 interface ISpeechAdaptation {
4576
4577 /** SpeechAdaptation phraseSets */
4578 phraseSets?: (google.cloud.speech.v1p1beta1.IPhraseSet[]|null);
4579
4580 /** SpeechAdaptation phraseSetReferences */
4581 phraseSetReferences?: (string[]|null);
4582
4583 /** SpeechAdaptation customClasses */
4584 customClasses?: (google.cloud.speech.v1p1beta1.ICustomClass[]|null);
4585 }
4586
4587 /** Represents a SpeechAdaptation. */
4588 class SpeechAdaptation implements ISpeechAdaptation {
4589
4590 /**
4591 * Constructs a new SpeechAdaptation.
4592 * @param [properties] Properties to set
4593 */
4594 constructor(properties?: google.cloud.speech.v1p1beta1.ISpeechAdaptation);
4595
4596 /** SpeechAdaptation phraseSets. */
4597 public phraseSets: google.cloud.speech.v1p1beta1.IPhraseSet[];
4598
4599 /** SpeechAdaptation phraseSetReferences. */
4600 public phraseSetReferences: string[];
4601
4602 /** SpeechAdaptation customClasses. */
4603 public customClasses: google.cloud.speech.v1p1beta1.ICustomClass[];
4604
4605 /**
4606 * Creates a new SpeechAdaptation instance using the specified properties.
4607 * @param [properties] Properties to set
4608 * @returns SpeechAdaptation instance
4609 */
4610 public static create(properties?: google.cloud.speech.v1p1beta1.ISpeechAdaptation): google.cloud.speech.v1p1beta1.SpeechAdaptation;
4611
4612 /**
4613 * Encodes the specified SpeechAdaptation message. Does not implicitly {@link google.cloud.speech.v1p1beta1.SpeechAdaptation.verify|verify} messages.
4614 * @param message SpeechAdaptation message or plain object to encode
4615 * @param [writer] Writer to encode to
4616 * @returns Writer
4617 */
4618 public static encode(message: google.cloud.speech.v1p1beta1.ISpeechAdaptation, writer?: $protobuf.Writer): $protobuf.Writer;
4619
4620 /**
4621 * Encodes the specified SpeechAdaptation message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.SpeechAdaptation.verify|verify} messages.
4622 * @param message SpeechAdaptation message or plain object to encode
4623 * @param [writer] Writer to encode to
4624 * @returns Writer
4625 */
4626 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ISpeechAdaptation, writer?: $protobuf.Writer): $protobuf.Writer;
4627
4628 /**
4629 * Decodes a SpeechAdaptation message from the specified reader or buffer.
4630 * @param reader Reader or buffer to decode from
4631 * @param [length] Message length if known beforehand
4632 * @returns SpeechAdaptation
4633 * @throws {Error} If the payload is not a reader or valid buffer
4634 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4635 */
4636 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.SpeechAdaptation;
4637
4638 /**
4639 * Decodes a SpeechAdaptation message from the specified reader or buffer, length delimited.
4640 * @param reader Reader or buffer to decode from
4641 * @returns SpeechAdaptation
4642 * @throws {Error} If the payload is not a reader or valid buffer
4643 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4644 */
4645 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.SpeechAdaptation;
4646
4647 /**
4648 * Verifies a SpeechAdaptation message.
4649 * @param message Plain object to verify
4650 * @returns `null` if valid, otherwise the reason why it is not
4651 */
4652 public static verify(message: { [k: string]: any }): (string|null);
4653
4654 /**
4655 * Creates a SpeechAdaptation message from a plain object. Also converts values to their respective internal types.
4656 * @param object Plain object
4657 * @returns SpeechAdaptation
4658 */
4659 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.SpeechAdaptation;
4660
4661 /**
4662 * Creates a plain object from a SpeechAdaptation message. Also converts values to other types if specified.
4663 * @param message SpeechAdaptation
4664 * @param [options] Conversion options
4665 * @returns Plain object
4666 */
4667 public static toObject(message: google.cloud.speech.v1p1beta1.SpeechAdaptation, options?: $protobuf.IConversionOptions): { [k: string]: any };
4668
4669 /**
4670 * Converts this SpeechAdaptation to JSON.
4671 * @returns JSON object
4672 */
4673 public toJSON(): { [k: string]: any };
4674 }
4675
4676 /** Properties of a TranscriptNormalization. */
4677 interface ITranscriptNormalization {
4678
4679 /** TranscriptNormalization entries */
4680 entries?: (google.cloud.speech.v1p1beta1.TranscriptNormalization.IEntry[]|null);
4681 }
4682
4683 /** Represents a TranscriptNormalization. */
4684 class TranscriptNormalization implements ITranscriptNormalization {
4685
4686 /**
4687 * Constructs a new TranscriptNormalization.
4688 * @param [properties] Properties to set
4689 */
4690 constructor(properties?: google.cloud.speech.v1p1beta1.ITranscriptNormalization);
4691
4692 /** TranscriptNormalization entries. */
4693 public entries: google.cloud.speech.v1p1beta1.TranscriptNormalization.IEntry[];
4694
4695 /**
4696 * Creates a new TranscriptNormalization instance using the specified properties.
4697 * @param [properties] Properties to set
4698 * @returns TranscriptNormalization instance
4699 */
4700 public static create(properties?: google.cloud.speech.v1p1beta1.ITranscriptNormalization): google.cloud.speech.v1p1beta1.TranscriptNormalization;
4701
4702 /**
4703 * Encodes the specified TranscriptNormalization message. Does not implicitly {@link google.cloud.speech.v1p1beta1.TranscriptNormalization.verify|verify} messages.
4704 * @param message TranscriptNormalization message or plain object to encode
4705 * @param [writer] Writer to encode to
4706 * @returns Writer
4707 */
4708 public static encode(message: google.cloud.speech.v1p1beta1.ITranscriptNormalization, writer?: $protobuf.Writer): $protobuf.Writer;
4709
4710 /**
4711 * Encodes the specified TranscriptNormalization message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.TranscriptNormalization.verify|verify} messages.
4712 * @param message TranscriptNormalization message or plain object to encode
4713 * @param [writer] Writer to encode to
4714 * @returns Writer
4715 */
4716 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ITranscriptNormalization, writer?: $protobuf.Writer): $protobuf.Writer;
4717
4718 /**
4719 * Decodes a TranscriptNormalization message from the specified reader or buffer.
4720 * @param reader Reader or buffer to decode from
4721 * @param [length] Message length if known beforehand
4722 * @returns TranscriptNormalization
4723 * @throws {Error} If the payload is not a reader or valid buffer
4724 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4725 */
4726 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.TranscriptNormalization;
4727
4728 /**
4729 * Decodes a TranscriptNormalization message from the specified reader or buffer, length delimited.
4730 * @param reader Reader or buffer to decode from
4731 * @returns TranscriptNormalization
4732 * @throws {Error} If the payload is not a reader or valid buffer
4733 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4734 */
4735 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.TranscriptNormalization;
4736
4737 /**
4738 * Verifies a TranscriptNormalization message.
4739 * @param message Plain object to verify
4740 * @returns `null` if valid, otherwise the reason why it is not
4741 */
4742 public static verify(message: { [k: string]: any }): (string|null);
4743
4744 /**
4745 * Creates a TranscriptNormalization message from a plain object. Also converts values to their respective internal types.
4746 * @param object Plain object
4747 * @returns TranscriptNormalization
4748 */
4749 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.TranscriptNormalization;
4750
4751 /**
4752 * Creates a plain object from a TranscriptNormalization message. Also converts values to other types if specified.
4753 * @param message TranscriptNormalization
4754 * @param [options] Conversion options
4755 * @returns Plain object
4756 */
4757 public static toObject(message: google.cloud.speech.v1p1beta1.TranscriptNormalization, options?: $protobuf.IConversionOptions): { [k: string]: any };
4758
4759 /**
4760 * Converts this TranscriptNormalization to JSON.
4761 * @returns JSON object
4762 */
4763 public toJSON(): { [k: string]: any };
4764 }
4765
4766 namespace TranscriptNormalization {
4767
4768 /** Properties of an Entry. */
4769 interface IEntry {
4770
4771 /** Entry search */
4772 search?: (string|null);
4773
4774 /** Entry replace */
4775 replace?: (string|null);
4776
4777 /** Entry caseSensitive */
4778 caseSensitive?: (boolean|null);
4779 }
4780
4781 /** Represents an Entry. */
4782 class Entry implements IEntry {
4783
4784 /**
4785 * Constructs a new Entry.
4786 * @param [properties] Properties to set
4787 */
4788 constructor(properties?: google.cloud.speech.v1p1beta1.TranscriptNormalization.IEntry);
4789
4790 /** Entry search. */
4791 public search: string;
4792
4793 /** Entry replace. */
4794 public replace: string;
4795
4796 /** Entry caseSensitive. */
4797 public caseSensitive: boolean;
4798
4799 /**
4800 * Creates a new Entry instance using the specified properties.
4801 * @param [properties] Properties to set
4802 * @returns Entry instance
4803 */
4804 public static create(properties?: google.cloud.speech.v1p1beta1.TranscriptNormalization.IEntry): google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry;
4805
4806 /**
4807 * Encodes the specified Entry message. Does not implicitly {@link google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.verify|verify} messages.
4808 * @param message Entry message or plain object to encode
4809 * @param [writer] Writer to encode to
4810 * @returns Writer
4811 */
4812 public static encode(message: google.cloud.speech.v1p1beta1.TranscriptNormalization.IEntry, writer?: $protobuf.Writer): $protobuf.Writer;
4813
4814 /**
4815 * Encodes the specified Entry message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.verify|verify} messages.
4816 * @param message Entry message or plain object to encode
4817 * @param [writer] Writer to encode to
4818 * @returns Writer
4819 */
4820 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.TranscriptNormalization.IEntry, writer?: $protobuf.Writer): $protobuf.Writer;
4821
4822 /**
4823 * Decodes an Entry message from the specified reader or buffer.
4824 * @param reader Reader or buffer to decode from
4825 * @param [length] Message length if known beforehand
4826 * @returns Entry
4827 * @throws {Error} If the payload is not a reader or valid buffer
4828 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4829 */
4830 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry;
4831
4832 /**
4833 * Decodes an Entry message from the specified reader or buffer, length delimited.
4834 * @param reader Reader or buffer to decode from
4835 * @returns Entry
4836 * @throws {Error} If the payload is not a reader or valid buffer
4837 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4838 */
4839 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry;
4840
4841 /**
4842 * Verifies an Entry message.
4843 * @param message Plain object to verify
4844 * @returns `null` if valid, otherwise the reason why it is not
4845 */
4846 public static verify(message: { [k: string]: any }): (string|null);
4847
4848 /**
4849 * Creates an Entry message from a plain object. Also converts values to their respective internal types.
4850 * @param object Plain object
4851 * @returns Entry
4852 */
4853 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry;
4854
4855 /**
4856 * Creates a plain object from an Entry message. Also converts values to other types if specified.
4857 * @param message Entry
4858 * @param [options] Conversion options
4859 * @returns Plain object
4860 */
4861 public static toObject(message: google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry, options?: $protobuf.IConversionOptions): { [k: string]: any };
4862
4863 /**
4864 * Converts this Entry to JSON.
4865 * @returns JSON object
4866 */
4867 public toJSON(): { [k: string]: any };
4868 }
4869 }
4870
4871 /** Represents an Adaptation */
4872 class Adaptation extends $protobuf.rpc.Service {
4873
4874 /**
4875 * Constructs a new Adaptation service.
4876 * @param rpcImpl RPC implementation
4877 * @param [requestDelimited=false] Whether requests are length-delimited
4878 * @param [responseDelimited=false] Whether responses are length-delimited
4879 */
4880 constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
4881
4882 /**
4883 * Creates new Adaptation service using the specified rpc implementation.
4884 * @param rpcImpl RPC implementation
4885 * @param [requestDelimited=false] Whether requests are length-delimited
4886 * @param [responseDelimited=false] Whether responses are length-delimited
4887 * @returns RPC service. Useful where requests and/or responses are streamed.
4888 */
4889 public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Adaptation;
4890
4891 /**
4892 * Calls CreatePhraseSet.
4893 * @param request CreatePhraseSetRequest message or plain object
4894 * @param callback Node-style callback called with the error, if any, and PhraseSet
4895 */
4896 public createPhraseSet(request: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.CreatePhraseSetCallback): void;
4897
4898 /**
4899 * Calls CreatePhraseSet.
4900 * @param request CreatePhraseSetRequest message or plain object
4901 * @returns Promise
4902 */
4903 public createPhraseSet(request: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.PhraseSet>;
4904
4905 /**
4906 * Calls GetPhraseSet.
4907 * @param request GetPhraseSetRequest message or plain object
4908 * @param callback Node-style callback called with the error, if any, and PhraseSet
4909 */
4910 public getPhraseSet(request: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.GetPhraseSetCallback): void;
4911
4912 /**
4913 * Calls GetPhraseSet.
4914 * @param request GetPhraseSetRequest message or plain object
4915 * @returns Promise
4916 */
4917 public getPhraseSet(request: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.PhraseSet>;
4918
4919 /**
4920 * Calls ListPhraseSet.
4921 * @param request ListPhraseSetRequest message or plain object
4922 * @param callback Node-style callback called with the error, if any, and ListPhraseSetResponse
4923 */
4924 public listPhraseSet(request: google.cloud.speech.v1p1beta1.IListPhraseSetRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.ListPhraseSetCallback): void;
4925
4926 /**
4927 * Calls ListPhraseSet.
4928 * @param request ListPhraseSetRequest message or plain object
4929 * @returns Promise
4930 */
4931 public listPhraseSet(request: google.cloud.speech.v1p1beta1.IListPhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.ListPhraseSetResponse>;
4932
4933 /**
4934 * Calls UpdatePhraseSet.
4935 * @param request UpdatePhraseSetRequest message or plain object
4936 * @param callback Node-style callback called with the error, if any, and PhraseSet
4937 */
4938 public updatePhraseSet(request: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.UpdatePhraseSetCallback): void;
4939
4940 /**
4941 * Calls UpdatePhraseSet.
4942 * @param request UpdatePhraseSetRequest message or plain object
4943 * @returns Promise
4944 */
4945 public updatePhraseSet(request: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.PhraseSet>;
4946
4947 /**
4948 * Calls DeletePhraseSet.
4949 * @param request DeletePhraseSetRequest message or plain object
4950 * @param callback Node-style callback called with the error, if any, and Empty
4951 */
4952 public deletePhraseSet(request: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.DeletePhraseSetCallback): void;
4953
4954 /**
4955 * Calls DeletePhraseSet.
4956 * @param request DeletePhraseSetRequest message or plain object
4957 * @returns Promise
4958 */
4959 public deletePhraseSet(request: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest): Promise<google.protobuf.Empty>;
4960
4961 /**
4962 * Calls CreateCustomClass.
4963 * @param request CreateCustomClassRequest message or plain object
4964 * @param callback Node-style callback called with the error, if any, and CustomClass
4965 */
4966 public createCustomClass(request: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.CreateCustomClassCallback): void;
4967
4968 /**
4969 * Calls CreateCustomClass.
4970 * @param request CreateCustomClassRequest message or plain object
4971 * @returns Promise
4972 */
4973 public createCustomClass(request: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest): Promise<google.cloud.speech.v1p1beta1.CustomClass>;
4974
4975 /**
4976 * Calls GetCustomClass.
4977 * @param request GetCustomClassRequest message or plain object
4978 * @param callback Node-style callback called with the error, if any, and CustomClass
4979 */
4980 public getCustomClass(request: google.cloud.speech.v1p1beta1.IGetCustomClassRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.GetCustomClassCallback): void;
4981
4982 /**
4983 * Calls GetCustomClass.
4984 * @param request GetCustomClassRequest message or plain object
4985 * @returns Promise
4986 */
4987 public getCustomClass(request: google.cloud.speech.v1p1beta1.IGetCustomClassRequest): Promise<google.cloud.speech.v1p1beta1.CustomClass>;
4988
4989 /**
4990 * Calls ListCustomClasses.
4991 * @param request ListCustomClassesRequest message or plain object
4992 * @param callback Node-style callback called with the error, if any, and ListCustomClassesResponse
4993 */
4994 public listCustomClasses(request: google.cloud.speech.v1p1beta1.IListCustomClassesRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.ListCustomClassesCallback): void;
4995
4996 /**
4997 * Calls ListCustomClasses.
4998 * @param request ListCustomClassesRequest message or plain object
4999 * @returns Promise
5000 */
5001 public listCustomClasses(request: google.cloud.speech.v1p1beta1.IListCustomClassesRequest): Promise<google.cloud.speech.v1p1beta1.ListCustomClassesResponse>;
5002
5003 /**
5004 * Calls UpdateCustomClass.
5005 * @param request UpdateCustomClassRequest message or plain object
5006 * @param callback Node-style callback called with the error, if any, and CustomClass
5007 */
5008 public updateCustomClass(request: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.UpdateCustomClassCallback): void;
5009
5010 /**
5011 * Calls UpdateCustomClass.
5012 * @param request UpdateCustomClassRequest message or plain object
5013 * @returns Promise
5014 */
5015 public updateCustomClass(request: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest): Promise<google.cloud.speech.v1p1beta1.CustomClass>;
5016
5017 /**
5018 * Calls DeleteCustomClass.
5019 * @param request DeleteCustomClassRequest message or plain object
5020 * @param callback Node-style callback called with the error, if any, and Empty
5021 */
5022 public deleteCustomClass(request: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClassCallback): void;
5023
5024 /**
5025 * Calls DeleteCustomClass.
5026 * @param request DeleteCustomClassRequest message or plain object
5027 * @returns Promise
5028 */
5029 public deleteCustomClass(request: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest): Promise<google.protobuf.Empty>;
5030 }
5031
5032 namespace Adaptation {
5033
5034 /**
5035 * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#createPhraseSet}.
5036 * @param error Error, if any
5037 * @param [response] PhraseSet
5038 */
5039 type CreatePhraseSetCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.PhraseSet) => void;
5040
5041 /**
5042 * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#getPhraseSet}.
5043 * @param error Error, if any
5044 * @param [response] PhraseSet
5045 */
5046 type GetPhraseSetCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.PhraseSet) => void;
5047
5048 /**
5049 * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#listPhraseSet}.
5050 * @param error Error, if any
5051 * @param [response] ListPhraseSetResponse
5052 */
5053 type ListPhraseSetCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.ListPhraseSetResponse) => void;
5054
5055 /**
5056 * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#updatePhraseSet}.
5057 * @param error Error, if any
5058 * @param [response] PhraseSet
5059 */
5060 type UpdatePhraseSetCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.PhraseSet) => void;
5061
5062 /**
5063 * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#deletePhraseSet}.
5064 * @param error Error, if any
5065 * @param [response] Empty
5066 */
5067 type DeletePhraseSetCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
5068
5069 /**
5070 * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#createCustomClass}.
5071 * @param error Error, if any
5072 * @param [response] CustomClass
5073 */
5074 type CreateCustomClassCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.CustomClass) => void;
5075
5076 /**
5077 * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#getCustomClass}.
5078 * @param error Error, if any
5079 * @param [response] CustomClass
5080 */
5081 type GetCustomClassCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.CustomClass) => void;
5082
5083 /**
5084 * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#listCustomClasses}.
5085 * @param error Error, if any
5086 * @param [response] ListCustomClassesResponse
5087 */
5088 type ListCustomClassesCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.ListCustomClassesResponse) => void;
5089
5090 /**
5091 * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#updateCustomClass}.
5092 * @param error Error, if any
5093 * @param [response] CustomClass
5094 */
5095 type UpdateCustomClassCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.CustomClass) => void;
5096
5097 /**
5098 * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#deleteCustomClass}.
5099 * @param error Error, if any
5100 * @param [response] Empty
5101 */
5102 type DeleteCustomClassCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
5103 }
5104
5105 /** Properties of a CreatePhraseSetRequest. */
5106 interface ICreatePhraseSetRequest {
5107
5108 /** CreatePhraseSetRequest parent */
5109 parent?: (string|null);
5110
5111 /** CreatePhraseSetRequest phraseSetId */
5112 phraseSetId?: (string|null);
5113
5114 /** CreatePhraseSetRequest phraseSet */
5115 phraseSet?: (google.cloud.speech.v1p1beta1.IPhraseSet|null);
5116 }
5117
5118 /** Represents a CreatePhraseSetRequest. */
5119 class CreatePhraseSetRequest implements ICreatePhraseSetRequest {
5120
5121 /**
5122 * Constructs a new CreatePhraseSetRequest.
5123 * @param [properties] Properties to set
5124 */
5125 constructor(properties?: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest);
5126
5127 /** CreatePhraseSetRequest parent. */
5128 public parent: string;
5129
5130 /** CreatePhraseSetRequest phraseSetId. */
5131 public phraseSetId: string;
5132
5133 /** CreatePhraseSetRequest phraseSet. */
5134 public phraseSet?: (google.cloud.speech.v1p1beta1.IPhraseSet|null);
5135
5136 /**
5137 * Creates a new CreatePhraseSetRequest instance using the specified properties.
5138 * @param [properties] Properties to set
5139 * @returns CreatePhraseSetRequest instance
5140 */
5141 public static create(properties?: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest): google.cloud.speech.v1p1beta1.CreatePhraseSetRequest;
5142
5143 /**
5144 * Encodes the specified CreatePhraseSetRequest message. Does not implicitly {@link google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.verify|verify} messages.
5145 * @param message CreatePhraseSetRequest message or plain object to encode
5146 * @param [writer] Writer to encode to
5147 * @returns Writer
5148 */
5149 public static encode(message: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5150
5151 /**
5152 * Encodes the specified CreatePhraseSetRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.verify|verify} messages.
5153 * @param message CreatePhraseSetRequest message or plain object to encode
5154 * @param [writer] Writer to encode to
5155 * @returns Writer
5156 */
5157 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5158
5159 /**
5160 * Decodes a CreatePhraseSetRequest message from the specified reader or buffer.
5161 * @param reader Reader or buffer to decode from
5162 * @param [length] Message length if known beforehand
5163 * @returns CreatePhraseSetRequest
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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.CreatePhraseSetRequest;
5168
5169 /**
5170 * Decodes a CreatePhraseSetRequest message from the specified reader or buffer, length delimited.
5171 * @param reader Reader or buffer to decode from
5172 * @returns CreatePhraseSetRequest
5173 * @throws {Error} If the payload is not a reader or valid buffer
5174 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5175 */
5176 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.CreatePhraseSetRequest;
5177
5178 /**
5179 * Verifies a CreatePhraseSetRequest message.
5180 * @param message Plain object to verify
5181 * @returns `null` if valid, otherwise the reason why it is not
5182 */
5183 public static verify(message: { [k: string]: any }): (string|null);
5184
5185 /**
5186 * Creates a CreatePhraseSetRequest message from a plain object. Also converts values to their respective internal types.
5187 * @param object Plain object
5188 * @returns CreatePhraseSetRequest
5189 */
5190 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.CreatePhraseSetRequest;
5191
5192 /**
5193 * Creates a plain object from a CreatePhraseSetRequest message. Also converts values to other types if specified.
5194 * @param message CreatePhraseSetRequest
5195 * @param [options] Conversion options
5196 * @returns Plain object
5197 */
5198 public static toObject(message: google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5199
5200 /**
5201 * Converts this CreatePhraseSetRequest to JSON.
5202 * @returns JSON object
5203 */
5204 public toJSON(): { [k: string]: any };
5205 }
5206
5207 /** Properties of an UpdatePhraseSetRequest. */
5208 interface IUpdatePhraseSetRequest {
5209
5210 /** UpdatePhraseSetRequest phraseSet */
5211 phraseSet?: (google.cloud.speech.v1p1beta1.IPhraseSet|null);
5212
5213 /** UpdatePhraseSetRequest updateMask */
5214 updateMask?: (google.protobuf.IFieldMask|null);
5215 }
5216
5217 /** Represents an UpdatePhraseSetRequest. */
5218 class UpdatePhraseSetRequest implements IUpdatePhraseSetRequest {
5219
5220 /**
5221 * Constructs a new UpdatePhraseSetRequest.
5222 * @param [properties] Properties to set
5223 */
5224 constructor(properties?: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest);
5225
5226 /** UpdatePhraseSetRequest phraseSet. */
5227 public phraseSet?: (google.cloud.speech.v1p1beta1.IPhraseSet|null);
5228
5229 /** UpdatePhraseSetRequest updateMask. */
5230 public updateMask?: (google.protobuf.IFieldMask|null);
5231
5232 /**
5233 * Creates a new UpdatePhraseSetRequest instance using the specified properties.
5234 * @param [properties] Properties to set
5235 * @returns UpdatePhraseSetRequest instance
5236 */
5237 public static create(properties?: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest): google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest;
5238
5239 /**
5240 * Encodes the specified UpdatePhraseSetRequest message. Does not implicitly {@link google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.verify|verify} messages.
5241 * @param message UpdatePhraseSetRequest message or plain object to encode
5242 * @param [writer] Writer to encode to
5243 * @returns Writer
5244 */
5245 public static encode(message: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5246
5247 /**
5248 * Encodes the specified UpdatePhraseSetRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.verify|verify} messages.
5249 * @param message UpdatePhraseSetRequest message or plain object to encode
5250 * @param [writer] Writer to encode to
5251 * @returns Writer
5252 */
5253 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5254
5255 /**
5256 * Decodes an UpdatePhraseSetRequest 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 UpdatePhraseSetRequest
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.cloud.speech.v1p1beta1.UpdatePhraseSetRequest;
5264
5265 /**
5266 * Decodes an UpdatePhraseSetRequest message from the specified reader or buffer, length delimited.
5267 * @param reader Reader or buffer to decode from
5268 * @returns UpdatePhraseSetRequest
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.cloud.speech.v1p1beta1.UpdatePhraseSetRequest;
5273
5274 /**
5275 * Verifies an UpdatePhraseSetRequest 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 an UpdatePhraseSetRequest message from a plain object. Also converts values to their respective internal types.
5283 * @param object Plain object
5284 * @returns UpdatePhraseSetRequest
5285 */
5286 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest;
5287
5288 /**
5289 * Creates a plain object from an UpdatePhraseSetRequest message. Also converts values to other types if specified.
5290 * @param message UpdatePhraseSetRequest
5291 * @param [options] Conversion options
5292 * @returns Plain object
5293 */
5294 public static toObject(message: google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5295
5296 /**
5297 * Converts this UpdatePhraseSetRequest to JSON.
5298 * @returns JSON object
5299 */
5300 public toJSON(): { [k: string]: any };
5301 }
5302
5303 /** Properties of a GetPhraseSetRequest. */
5304 interface IGetPhraseSetRequest {
5305
5306 /** GetPhraseSetRequest name */
5307 name?: (string|null);
5308 }
5309
5310 /** Represents a GetPhraseSetRequest. */
5311 class GetPhraseSetRequest implements IGetPhraseSetRequest {
5312
5313 /**
5314 * Constructs a new GetPhraseSetRequest.
5315 * @param [properties] Properties to set
5316 */
5317 constructor(properties?: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest);
5318
5319 /** GetPhraseSetRequest name. */
5320 public name: string;
5321
5322 /**
5323 * Creates a new GetPhraseSetRequest instance using the specified properties.
5324 * @param [properties] Properties to set
5325 * @returns GetPhraseSetRequest instance
5326 */
5327 public static create(properties?: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest): google.cloud.speech.v1p1beta1.GetPhraseSetRequest;
5328
5329 /**
5330 * Encodes the specified GetPhraseSetRequest message. Does not implicitly {@link google.cloud.speech.v1p1beta1.GetPhraseSetRequest.verify|verify} messages.
5331 * @param message GetPhraseSetRequest message or plain object to encode
5332 * @param [writer] Writer to encode to
5333 * @returns Writer
5334 */
5335 public static encode(message: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5336
5337 /**
5338 * Encodes the specified GetPhraseSetRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.GetPhraseSetRequest.verify|verify} messages.
5339 * @param message GetPhraseSetRequest message or plain object to encode
5340 * @param [writer] Writer to encode to
5341 * @returns Writer
5342 */
5343 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5344
5345 /**
5346 * Decodes a GetPhraseSetRequest message from the specified reader or buffer.
5347 * @param reader Reader or buffer to decode from
5348 * @param [length] Message length if known beforehand
5349 * @returns GetPhraseSetRequest
5350 * @throws {Error} If the payload is not a reader or valid buffer
5351 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5352 */
5353 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.GetPhraseSetRequest;
5354
5355 /**
5356 * Decodes a GetPhraseSetRequest message from the specified reader or buffer, length delimited.
5357 * @param reader Reader or buffer to decode from
5358 * @returns GetPhraseSetRequest
5359 * @throws {Error} If the payload is not a reader or valid buffer
5360 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5361 */
5362 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.GetPhraseSetRequest;
5363
5364 /**
5365 * Verifies a GetPhraseSetRequest message.
5366 * @param message Plain object to verify
5367 * @returns `null` if valid, otherwise the reason why it is not
5368 */
5369 public static verify(message: { [k: string]: any }): (string|null);
5370
5371 /**
5372 * Creates a GetPhraseSetRequest message from a plain object. Also converts values to their respective internal types.
5373 * @param object Plain object
5374 * @returns GetPhraseSetRequest
5375 */
5376 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.GetPhraseSetRequest;
5377
5378 /**
5379 * Creates a plain object from a GetPhraseSetRequest message. Also converts values to other types if specified.
5380 * @param message GetPhraseSetRequest
5381 * @param [options] Conversion options
5382 * @returns Plain object
5383 */
5384 public static toObject(message: google.cloud.speech.v1p1beta1.GetPhraseSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5385
5386 /**
5387 * Converts this GetPhraseSetRequest to JSON.
5388 * @returns JSON object
5389 */
5390 public toJSON(): { [k: string]: any };
5391 }
5392
5393 /** Properties of a ListPhraseSetRequest. */
5394 interface IListPhraseSetRequest {
5395
5396 /** ListPhraseSetRequest parent */
5397 parent?: (string|null);
5398
5399 /** ListPhraseSetRequest pageSize */
5400 pageSize?: (number|null);
5401
5402 /** ListPhraseSetRequest pageToken */
5403 pageToken?: (string|null);
5404 }
5405
5406 /** Represents a ListPhraseSetRequest. */
5407 class ListPhraseSetRequest implements IListPhraseSetRequest {
5408
5409 /**
5410 * Constructs a new ListPhraseSetRequest.
5411 * @param [properties] Properties to set
5412 */
5413 constructor(properties?: google.cloud.speech.v1p1beta1.IListPhraseSetRequest);
5414
5415 /** ListPhraseSetRequest parent. */
5416 public parent: string;
5417
5418 /** ListPhraseSetRequest pageSize. */
5419 public pageSize: number;
5420
5421 /** ListPhraseSetRequest pageToken. */
5422 public pageToken: string;
5423
5424 /**
5425 * Creates a new ListPhraseSetRequest instance using the specified properties.
5426 * @param [properties] Properties to set
5427 * @returns ListPhraseSetRequest instance
5428 */
5429 public static create(properties?: google.cloud.speech.v1p1beta1.IListPhraseSetRequest): google.cloud.speech.v1p1beta1.ListPhraseSetRequest;
5430
5431 /**
5432 * Encodes the specified ListPhraseSetRequest message. Does not implicitly {@link google.cloud.speech.v1p1beta1.ListPhraseSetRequest.verify|verify} messages.
5433 * @param message ListPhraseSetRequest message or plain object to encode
5434 * @param [writer] Writer to encode to
5435 * @returns Writer
5436 */
5437 public static encode(message: google.cloud.speech.v1p1beta1.IListPhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5438
5439 /**
5440 * Encodes the specified ListPhraseSetRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.ListPhraseSetRequest.verify|verify} messages.
5441 * @param message ListPhraseSetRequest message or plain object to encode
5442 * @param [writer] Writer to encode to
5443 * @returns Writer
5444 */
5445 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IListPhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5446
5447 /**
5448 * Decodes a ListPhraseSetRequest message from the specified reader or buffer.
5449 * @param reader Reader or buffer to decode from
5450 * @param [length] Message length if known beforehand
5451 * @returns ListPhraseSetRequest
5452 * @throws {Error} If the payload is not a reader or valid buffer
5453 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5454 */
5455 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.ListPhraseSetRequest;
5456
5457 /**
5458 * Decodes a ListPhraseSetRequest message from the specified reader or buffer, length delimited.
5459 * @param reader Reader or buffer to decode from
5460 * @returns ListPhraseSetRequest
5461 * @throws {Error} If the payload is not a reader or valid buffer
5462 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5463 */
5464 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.ListPhraseSetRequest;
5465
5466 /**
5467 * Verifies a ListPhraseSetRequest message.
5468 * @param message Plain object to verify
5469 * @returns `null` if valid, otherwise the reason why it is not
5470 */
5471 public static verify(message: { [k: string]: any }): (string|null);
5472
5473 /**
5474 * Creates a ListPhraseSetRequest message from a plain object. Also converts values to their respective internal types.
5475 * @param object Plain object
5476 * @returns ListPhraseSetRequest
5477 */
5478 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.ListPhraseSetRequest;
5479
5480 /**
5481 * Creates a plain object from a ListPhraseSetRequest message. Also converts values to other types if specified.
5482 * @param message ListPhraseSetRequest
5483 * @param [options] Conversion options
5484 * @returns Plain object
5485 */
5486 public static toObject(message: google.cloud.speech.v1p1beta1.ListPhraseSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5487
5488 /**
5489 * Converts this ListPhraseSetRequest to JSON.
5490 * @returns JSON object
5491 */
5492 public toJSON(): { [k: string]: any };
5493 }
5494
5495 /** Properties of a ListPhraseSetResponse. */
5496 interface IListPhraseSetResponse {
5497
5498 /** ListPhraseSetResponse phraseSets */
5499 phraseSets?: (google.cloud.speech.v1p1beta1.IPhraseSet[]|null);
5500
5501 /** ListPhraseSetResponse nextPageToken */
5502 nextPageToken?: (string|null);
5503 }
5504
5505 /** Represents a ListPhraseSetResponse. */
5506 class ListPhraseSetResponse implements IListPhraseSetResponse {
5507
5508 /**
5509 * Constructs a new ListPhraseSetResponse.
5510 * @param [properties] Properties to set
5511 */
5512 constructor(properties?: google.cloud.speech.v1p1beta1.IListPhraseSetResponse);
5513
5514 /** ListPhraseSetResponse phraseSets. */
5515 public phraseSets: google.cloud.speech.v1p1beta1.IPhraseSet[];
5516
5517 /** ListPhraseSetResponse nextPageToken. */
5518 public nextPageToken: string;
5519
5520 /**
5521 * Creates a new ListPhraseSetResponse instance using the specified properties.
5522 * @param [properties] Properties to set
5523 * @returns ListPhraseSetResponse instance
5524 */
5525 public static create(properties?: google.cloud.speech.v1p1beta1.IListPhraseSetResponse): google.cloud.speech.v1p1beta1.ListPhraseSetResponse;
5526
5527 /**
5528 * Encodes the specified ListPhraseSetResponse message. Does not implicitly {@link google.cloud.speech.v1p1beta1.ListPhraseSetResponse.verify|verify} messages.
5529 * @param message ListPhraseSetResponse message or plain object to encode
5530 * @param [writer] Writer to encode to
5531 * @returns Writer
5532 */
5533 public static encode(message: google.cloud.speech.v1p1beta1.IListPhraseSetResponse, writer?: $protobuf.Writer): $protobuf.Writer;
5534
5535 /**
5536 * Encodes the specified ListPhraseSetResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.ListPhraseSetResponse.verify|verify} messages.
5537 * @param message ListPhraseSetResponse message or plain object to encode
5538 * @param [writer] Writer to encode to
5539 * @returns Writer
5540 */
5541 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IListPhraseSetResponse, writer?: $protobuf.Writer): $protobuf.Writer;
5542
5543 /**
5544 * Decodes a ListPhraseSetResponse message from the specified reader or buffer.
5545 * @param reader Reader or buffer to decode from
5546 * @param [length] Message length if known beforehand
5547 * @returns ListPhraseSetResponse
5548 * @throws {Error} If the payload is not a reader or valid buffer
5549 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5550 */
5551 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.ListPhraseSetResponse;
5552
5553 /**
5554 * Decodes a ListPhraseSetResponse message from the specified reader or buffer, length delimited.
5555 * @param reader Reader or buffer to decode from
5556 * @returns ListPhraseSetResponse
5557 * @throws {Error} If the payload is not a reader or valid buffer
5558 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5559 */
5560 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.ListPhraseSetResponse;
5561
5562 /**
5563 * Verifies a ListPhraseSetResponse message.
5564 * @param message Plain object to verify
5565 * @returns `null` if valid, otherwise the reason why it is not
5566 */
5567 public static verify(message: { [k: string]: any }): (string|null);
5568
5569 /**
5570 * Creates a ListPhraseSetResponse message from a plain object. Also converts values to their respective internal types.
5571 * @param object Plain object
5572 * @returns ListPhraseSetResponse
5573 */
5574 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.ListPhraseSetResponse;
5575
5576 /**
5577 * Creates a plain object from a ListPhraseSetResponse message. Also converts values to other types if specified.
5578 * @param message ListPhraseSetResponse
5579 * @param [options] Conversion options
5580 * @returns Plain object
5581 */
5582 public static toObject(message: google.cloud.speech.v1p1beta1.ListPhraseSetResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
5583
5584 /**
5585 * Converts this ListPhraseSetResponse to JSON.
5586 * @returns JSON object
5587 */
5588 public toJSON(): { [k: string]: any };
5589 }
5590
5591 /** Properties of a DeletePhraseSetRequest. */
5592 interface IDeletePhraseSetRequest {
5593
5594 /** DeletePhraseSetRequest name */
5595 name?: (string|null);
5596 }
5597
5598 /** Represents a DeletePhraseSetRequest. */
5599 class DeletePhraseSetRequest implements IDeletePhraseSetRequest {
5600
5601 /**
5602 * Constructs a new DeletePhraseSetRequest.
5603 * @param [properties] Properties to set
5604 */
5605 constructor(properties?: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest);
5606
5607 /** DeletePhraseSetRequest name. */
5608 public name: string;
5609
5610 /**
5611 * Creates a new DeletePhraseSetRequest instance using the specified properties.
5612 * @param [properties] Properties to set
5613 * @returns DeletePhraseSetRequest instance
5614 */
5615 public static create(properties?: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest): google.cloud.speech.v1p1beta1.DeletePhraseSetRequest;
5616
5617 /**
5618 * Encodes the specified DeletePhraseSetRequest message. Does not implicitly {@link google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.verify|verify} messages.
5619 * @param message DeletePhraseSetRequest message or plain object to encode
5620 * @param [writer] Writer to encode to
5621 * @returns Writer
5622 */
5623 public static encode(message: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5624
5625 /**
5626 * Encodes the specified DeletePhraseSetRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.verify|verify} messages.
5627 * @param message DeletePhraseSetRequest message or plain object to encode
5628 * @param [writer] Writer to encode to
5629 * @returns Writer
5630 */
5631 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5632
5633 /**
5634 * Decodes a DeletePhraseSetRequest message from the specified reader or buffer.
5635 * @param reader Reader or buffer to decode from
5636 * @param [length] Message length if known beforehand
5637 * @returns DeletePhraseSetRequest
5638 * @throws {Error} If the payload is not a reader or valid buffer
5639 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5640 */
5641 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.DeletePhraseSetRequest;
5642
5643 /**
5644 * Decodes a DeletePhraseSetRequest message from the specified reader or buffer, length delimited.
5645 * @param reader Reader or buffer to decode from
5646 * @returns DeletePhraseSetRequest
5647 * @throws {Error} If the payload is not a reader or valid buffer
5648 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5649 */
5650 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.DeletePhraseSetRequest;
5651
5652 /**
5653 * Verifies a DeletePhraseSetRequest message.
5654 * @param message Plain object to verify
5655 * @returns `null` if valid, otherwise the reason why it is not
5656 */
5657 public static verify(message: { [k: string]: any }): (string|null);
5658
5659 /**
5660 * Creates a DeletePhraseSetRequest message from a plain object. Also converts values to their respective internal types.
5661 * @param object Plain object
5662 * @returns DeletePhraseSetRequest
5663 */
5664 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.DeletePhraseSetRequest;
5665
5666 /**
5667 * Creates a plain object from a DeletePhraseSetRequest message. Also converts values to other types if specified.
5668 * @param message DeletePhraseSetRequest
5669 * @param [options] Conversion options
5670 * @returns Plain object
5671 */
5672 public static toObject(message: google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5673
5674 /**
5675 * Converts this DeletePhraseSetRequest to JSON.
5676 * @returns JSON object
5677 */
5678 public toJSON(): { [k: string]: any };
5679 }
5680
5681 /** Properties of a CreateCustomClassRequest. */
5682 interface ICreateCustomClassRequest {
5683
5684 /** CreateCustomClassRequest parent */
5685 parent?: (string|null);
5686
5687 /** CreateCustomClassRequest customClassId */
5688 customClassId?: (string|null);
5689
5690 /** CreateCustomClassRequest customClass */
5691 customClass?: (google.cloud.speech.v1p1beta1.ICustomClass|null);
5692 }
5693
5694 /** Represents a CreateCustomClassRequest. */
5695 class CreateCustomClassRequest implements ICreateCustomClassRequest {
5696
5697 /**
5698 * Constructs a new CreateCustomClassRequest.
5699 * @param [properties] Properties to set
5700 */
5701 constructor(properties?: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest);
5702
5703 /** CreateCustomClassRequest parent. */
5704 public parent: string;
5705
5706 /** CreateCustomClassRequest customClassId. */
5707 public customClassId: string;
5708
5709 /** CreateCustomClassRequest customClass. */
5710 public customClass?: (google.cloud.speech.v1p1beta1.ICustomClass|null);
5711
5712 /**
5713 * Creates a new CreateCustomClassRequest instance using the specified properties.
5714 * @param [properties] Properties to set
5715 * @returns CreateCustomClassRequest instance
5716 */
5717 public static create(properties?: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest): google.cloud.speech.v1p1beta1.CreateCustomClassRequest;
5718
5719 /**
5720 * Encodes the specified CreateCustomClassRequest message. Does not implicitly {@link google.cloud.speech.v1p1beta1.CreateCustomClassRequest.verify|verify} messages.
5721 * @param message CreateCustomClassRequest message or plain object to encode
5722 * @param [writer] Writer to encode to
5723 * @returns Writer
5724 */
5725 public static encode(message: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5726
5727 /**
5728 * Encodes the specified CreateCustomClassRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.CreateCustomClassRequest.verify|verify} messages.
5729 * @param message CreateCustomClassRequest message or plain object to encode
5730 * @param [writer] Writer to encode to
5731 * @returns Writer
5732 */
5733 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5734
5735 /**
5736 * Decodes a CreateCustomClassRequest message from the specified reader or buffer.
5737 * @param reader Reader or buffer to decode from
5738 * @param [length] Message length if known beforehand
5739 * @returns CreateCustomClassRequest
5740 * @throws {Error} If the payload is not a reader or valid buffer
5741 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5742 */
5743 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.CreateCustomClassRequest;
5744
5745 /**
5746 * Decodes a CreateCustomClassRequest message from the specified reader or buffer, length delimited.
5747 * @param reader Reader or buffer to decode from
5748 * @returns CreateCustomClassRequest
5749 * @throws {Error} If the payload is not a reader or valid buffer
5750 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5751 */
5752 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.CreateCustomClassRequest;
5753
5754 /**
5755 * Verifies a CreateCustomClassRequest message.
5756 * @param message Plain object to verify
5757 * @returns `null` if valid, otherwise the reason why it is not
5758 */
5759 public static verify(message: { [k: string]: any }): (string|null);
5760
5761 /**
5762 * Creates a CreateCustomClassRequest message from a plain object. Also converts values to their respective internal types.
5763 * @param object Plain object
5764 * @returns CreateCustomClassRequest
5765 */
5766 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.CreateCustomClassRequest;
5767
5768 /**
5769 * Creates a plain object from a CreateCustomClassRequest message. Also converts values to other types if specified.
5770 * @param message CreateCustomClassRequest
5771 * @param [options] Conversion options
5772 * @returns Plain object
5773 */
5774 public static toObject(message: google.cloud.speech.v1p1beta1.CreateCustomClassRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5775
5776 /**
5777 * Converts this CreateCustomClassRequest to JSON.
5778 * @returns JSON object
5779 */
5780 public toJSON(): { [k: string]: any };
5781 }
5782
5783 /** Properties of an UpdateCustomClassRequest. */
5784 interface IUpdateCustomClassRequest {
5785
5786 /** UpdateCustomClassRequest customClass */
5787 customClass?: (google.cloud.speech.v1p1beta1.ICustomClass|null);
5788
5789 /** UpdateCustomClassRequest updateMask */
5790 updateMask?: (google.protobuf.IFieldMask|null);
5791 }
5792
5793 /** Represents an UpdateCustomClassRequest. */
5794 class UpdateCustomClassRequest implements IUpdateCustomClassRequest {
5795
5796 /**
5797 * Constructs a new UpdateCustomClassRequest.
5798 * @param [properties] Properties to set
5799 */
5800 constructor(properties?: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest);
5801
5802 /** UpdateCustomClassRequest customClass. */
5803 public customClass?: (google.cloud.speech.v1p1beta1.ICustomClass|null);
5804
5805 /** UpdateCustomClassRequest updateMask. */
5806 public updateMask?: (google.protobuf.IFieldMask|null);
5807
5808 /**
5809 * Creates a new UpdateCustomClassRequest instance using the specified properties.
5810 * @param [properties] Properties to set
5811 * @returns UpdateCustomClassRequest instance
5812 */
5813 public static create(properties?: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest): google.cloud.speech.v1p1beta1.UpdateCustomClassRequest;
5814
5815 /**
5816 * Encodes the specified UpdateCustomClassRequest message. Does not implicitly {@link google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.verify|verify} messages.
5817 * @param message UpdateCustomClassRequest message or plain object to encode
5818 * @param [writer] Writer to encode to
5819 * @returns Writer
5820 */
5821 public static encode(message: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5822
5823 /**
5824 * Encodes the specified UpdateCustomClassRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.verify|verify} messages.
5825 * @param message UpdateCustomClassRequest message or plain object to encode
5826 * @param [writer] Writer to encode to
5827 * @returns Writer
5828 */
5829 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5830
5831 /**
5832 * Decodes an UpdateCustomClassRequest message from the specified reader or buffer.
5833 * @param reader Reader or buffer to decode from
5834 * @param [length] Message length if known beforehand
5835 * @returns UpdateCustomClassRequest
5836 * @throws {Error} If the payload is not a reader or valid buffer
5837 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5838 */
5839 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.UpdateCustomClassRequest;
5840
5841 /**
5842 * Decodes an UpdateCustomClassRequest message from the specified reader or buffer, length delimited.
5843 * @param reader Reader or buffer to decode from
5844 * @returns UpdateCustomClassRequest
5845 * @throws {Error} If the payload is not a reader or valid buffer
5846 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5847 */
5848 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.UpdateCustomClassRequest;
5849
5850 /**
5851 * Verifies an UpdateCustomClassRequest message.
5852 * @param message Plain object to verify
5853 * @returns `null` if valid, otherwise the reason why it is not
5854 */
5855 public static verify(message: { [k: string]: any }): (string|null);
5856
5857 /**
5858 * Creates an UpdateCustomClassRequest message from a plain object. Also converts values to their respective internal types.
5859 * @param object Plain object
5860 * @returns UpdateCustomClassRequest
5861 */
5862 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.UpdateCustomClassRequest;
5863
5864 /**
5865 * Creates a plain object from an UpdateCustomClassRequest message. Also converts values to other types if specified.
5866 * @param message UpdateCustomClassRequest
5867 * @param [options] Conversion options
5868 * @returns Plain object
5869 */
5870 public static toObject(message: google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5871
5872 /**
5873 * Converts this UpdateCustomClassRequest to JSON.
5874 * @returns JSON object
5875 */
5876 public toJSON(): { [k: string]: any };
5877 }
5878
5879 /** Properties of a GetCustomClassRequest. */
5880 interface IGetCustomClassRequest {
5881
5882 /** GetCustomClassRequest name */
5883 name?: (string|null);
5884 }
5885
5886 /** Represents a GetCustomClassRequest. */
5887 class GetCustomClassRequest implements IGetCustomClassRequest {
5888
5889 /**
5890 * Constructs a new GetCustomClassRequest.
5891 * @param [properties] Properties to set
5892 */
5893 constructor(properties?: google.cloud.speech.v1p1beta1.IGetCustomClassRequest);
5894
5895 /** GetCustomClassRequest name. */
5896 public name: string;
5897
5898 /**
5899 * Creates a new GetCustomClassRequest instance using the specified properties.
5900 * @param [properties] Properties to set
5901 * @returns GetCustomClassRequest instance
5902 */
5903 public static create(properties?: google.cloud.speech.v1p1beta1.IGetCustomClassRequest): google.cloud.speech.v1p1beta1.GetCustomClassRequest;
5904
5905 /**
5906 * Encodes the specified GetCustomClassRequest message. Does not implicitly {@link google.cloud.speech.v1p1beta1.GetCustomClassRequest.verify|verify} messages.
5907 * @param message GetCustomClassRequest message or plain object to encode
5908 * @param [writer] Writer to encode to
5909 * @returns Writer
5910 */
5911 public static encode(message: google.cloud.speech.v1p1beta1.IGetCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5912
5913 /**
5914 * Encodes the specified GetCustomClassRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.GetCustomClassRequest.verify|verify} messages.
5915 * @param message GetCustomClassRequest message or plain object to encode
5916 * @param [writer] Writer to encode to
5917 * @returns Writer
5918 */
5919 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IGetCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5920
5921 /**
5922 * Decodes a GetCustomClassRequest message from the specified reader or buffer.
5923 * @param reader Reader or buffer to decode from
5924 * @param [length] Message length if known beforehand
5925 * @returns GetCustomClassRequest
5926 * @throws {Error} If the payload is not a reader or valid buffer
5927 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5928 */
5929 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.GetCustomClassRequest;
5930
5931 /**
5932 * Decodes a GetCustomClassRequest message from the specified reader or buffer, length delimited.
5933 * @param reader Reader or buffer to decode from
5934 * @returns GetCustomClassRequest
5935 * @throws {Error} If the payload is not a reader or valid buffer
5936 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5937 */
5938 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.GetCustomClassRequest;
5939
5940 /**
5941 * Verifies a GetCustomClassRequest message.
5942 * @param message Plain object to verify
5943 * @returns `null` if valid, otherwise the reason why it is not
5944 */
5945 public static verify(message: { [k: string]: any }): (string|null);
5946
5947 /**
5948 * Creates a GetCustomClassRequest message from a plain object. Also converts values to their respective internal types.
5949 * @param object Plain object
5950 * @returns GetCustomClassRequest
5951 */
5952 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.GetCustomClassRequest;
5953
5954 /**
5955 * Creates a plain object from a GetCustomClassRequest message. Also converts values to other types if specified.
5956 * @param message GetCustomClassRequest
5957 * @param [options] Conversion options
5958 * @returns Plain object
5959 */
5960 public static toObject(message: google.cloud.speech.v1p1beta1.GetCustomClassRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5961
5962 /**
5963 * Converts this GetCustomClassRequest to JSON.
5964 * @returns JSON object
5965 */
5966 public toJSON(): { [k: string]: any };
5967 }
5968
5969 /** Properties of a ListCustomClassesRequest. */
5970 interface IListCustomClassesRequest {
5971
5972 /** ListCustomClassesRequest parent */
5973 parent?: (string|null);
5974
5975 /** ListCustomClassesRequest pageSize */
5976 pageSize?: (number|null);
5977
5978 /** ListCustomClassesRequest pageToken */
5979 pageToken?: (string|null);
5980 }
5981
5982 /** Represents a ListCustomClassesRequest. */
5983 class ListCustomClassesRequest implements IListCustomClassesRequest {
5984
5985 /**
5986 * Constructs a new ListCustomClassesRequest.
5987 * @param [properties] Properties to set
5988 */
5989 constructor(properties?: google.cloud.speech.v1p1beta1.IListCustomClassesRequest);
5990
5991 /** ListCustomClassesRequest parent. */
5992 public parent: string;
5993
5994 /** ListCustomClassesRequest pageSize. */
5995 public pageSize: number;
5996
5997 /** ListCustomClassesRequest pageToken. */
5998 public pageToken: string;
5999
6000 /**
6001 * Creates a new ListCustomClassesRequest instance using the specified properties.
6002 * @param [properties] Properties to set
6003 * @returns ListCustomClassesRequest instance
6004 */
6005 public static create(properties?: google.cloud.speech.v1p1beta1.IListCustomClassesRequest): google.cloud.speech.v1p1beta1.ListCustomClassesRequest;
6006
6007 /**
6008 * Encodes the specified ListCustomClassesRequest message. Does not implicitly {@link google.cloud.speech.v1p1beta1.ListCustomClassesRequest.verify|verify} messages.
6009 * @param message ListCustomClassesRequest message or plain object to encode
6010 * @param [writer] Writer to encode to
6011 * @returns Writer
6012 */
6013 public static encode(message: google.cloud.speech.v1p1beta1.IListCustomClassesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6014
6015 /**
6016 * Encodes the specified ListCustomClassesRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.ListCustomClassesRequest.verify|verify} messages.
6017 * @param message ListCustomClassesRequest message or plain object to encode
6018 * @param [writer] Writer to encode to
6019 * @returns Writer
6020 */
6021 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IListCustomClassesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6022
6023 /**
6024 * Decodes a ListCustomClassesRequest message from the specified reader or buffer.
6025 * @param reader Reader or buffer to decode from
6026 * @param [length] Message length if known beforehand
6027 * @returns ListCustomClassesRequest
6028 * @throws {Error} If the payload is not a reader or valid buffer
6029 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6030 */
6031 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.ListCustomClassesRequest;
6032
6033 /**
6034 * Decodes a ListCustomClassesRequest message from the specified reader or buffer, length delimited.
6035 * @param reader Reader or buffer to decode from
6036 * @returns ListCustomClassesRequest
6037 * @throws {Error} If the payload is not a reader or valid buffer
6038 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6039 */
6040 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.ListCustomClassesRequest;
6041
6042 /**
6043 * Verifies a ListCustomClassesRequest message.
6044 * @param message Plain object to verify
6045 * @returns `null` if valid, otherwise the reason why it is not
6046 */
6047 public static verify(message: { [k: string]: any }): (string|null);
6048
6049 /**
6050 * Creates a ListCustomClassesRequest message from a plain object. Also converts values to their respective internal types.
6051 * @param object Plain object
6052 * @returns ListCustomClassesRequest
6053 */
6054 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.ListCustomClassesRequest;
6055
6056 /**
6057 * Creates a plain object from a ListCustomClassesRequest message. Also converts values to other types if specified.
6058 * @param message ListCustomClassesRequest
6059 * @param [options] Conversion options
6060 * @returns Plain object
6061 */
6062 public static toObject(message: google.cloud.speech.v1p1beta1.ListCustomClassesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
6063
6064 /**
6065 * Converts this ListCustomClassesRequest to JSON.
6066 * @returns JSON object
6067 */
6068 public toJSON(): { [k: string]: any };
6069 }
6070
6071 /** Properties of a ListCustomClassesResponse. */
6072 interface IListCustomClassesResponse {
6073
6074 /** ListCustomClassesResponse customClasses */
6075 customClasses?: (google.cloud.speech.v1p1beta1.ICustomClass[]|null);
6076
6077 /** ListCustomClassesResponse nextPageToken */
6078 nextPageToken?: (string|null);
6079 }
6080
6081 /** Represents a ListCustomClassesResponse. */
6082 class ListCustomClassesResponse implements IListCustomClassesResponse {
6083
6084 /**
6085 * Constructs a new ListCustomClassesResponse.
6086 * @param [properties] Properties to set
6087 */
6088 constructor(properties?: google.cloud.speech.v1p1beta1.IListCustomClassesResponse);
6089
6090 /** ListCustomClassesResponse customClasses. */
6091 public customClasses: google.cloud.speech.v1p1beta1.ICustomClass[];
6092
6093 /** ListCustomClassesResponse nextPageToken. */
6094 public nextPageToken: string;
6095
6096 /**
6097 * Creates a new ListCustomClassesResponse instance using the specified properties.
6098 * @param [properties] Properties to set
6099 * @returns ListCustomClassesResponse instance
6100 */
6101 public static create(properties?: google.cloud.speech.v1p1beta1.IListCustomClassesResponse): google.cloud.speech.v1p1beta1.ListCustomClassesResponse;
6102
6103 /**
6104 * Encodes the specified ListCustomClassesResponse message. Does not implicitly {@link google.cloud.speech.v1p1beta1.ListCustomClassesResponse.verify|verify} messages.
6105 * @param message ListCustomClassesResponse message or plain object to encode
6106 * @param [writer] Writer to encode to
6107 * @returns Writer
6108 */
6109 public static encode(message: google.cloud.speech.v1p1beta1.IListCustomClassesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
6110
6111 /**
6112 * Encodes the specified ListCustomClassesResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.ListCustomClassesResponse.verify|verify} messages.
6113 * @param message ListCustomClassesResponse message or plain object to encode
6114 * @param [writer] Writer to encode to
6115 * @returns Writer
6116 */
6117 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IListCustomClassesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
6118
6119 /**
6120 * Decodes a ListCustomClassesResponse message from the specified reader or buffer.
6121 * @param reader Reader or buffer to decode from
6122 * @param [length] Message length if known beforehand
6123 * @returns ListCustomClassesResponse
6124 * @throws {Error} If the payload is not a reader or valid buffer
6125 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6126 */
6127 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.ListCustomClassesResponse;
6128
6129 /**
6130 * Decodes a ListCustomClassesResponse message from the specified reader or buffer, length delimited.
6131 * @param reader Reader or buffer to decode from
6132 * @returns ListCustomClassesResponse
6133 * @throws {Error} If the payload is not a reader or valid buffer
6134 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6135 */
6136 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.ListCustomClassesResponse;
6137
6138 /**
6139 * Verifies a ListCustomClassesResponse message.
6140 * @param message Plain object to verify
6141 * @returns `null` if valid, otherwise the reason why it is not
6142 */
6143 public static verify(message: { [k: string]: any }): (string|null);
6144
6145 /**
6146 * Creates a ListCustomClassesResponse message from a plain object. Also converts values to their respective internal types.
6147 * @param object Plain object
6148 * @returns ListCustomClassesResponse
6149 */
6150 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.ListCustomClassesResponse;
6151
6152 /**
6153 * Creates a plain object from a ListCustomClassesResponse message. Also converts values to other types if specified.
6154 * @param message ListCustomClassesResponse
6155 * @param [options] Conversion options
6156 * @returns Plain object
6157 */
6158 public static toObject(message: google.cloud.speech.v1p1beta1.ListCustomClassesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
6159
6160 /**
6161 * Converts this ListCustomClassesResponse to JSON.
6162 * @returns JSON object
6163 */
6164 public toJSON(): { [k: string]: any };
6165 }
6166
6167 /** Properties of a DeleteCustomClassRequest. */
6168 interface IDeleteCustomClassRequest {
6169
6170 /** DeleteCustomClassRequest name */
6171 name?: (string|null);
6172 }
6173
6174 /** Represents a DeleteCustomClassRequest. */
6175 class DeleteCustomClassRequest implements IDeleteCustomClassRequest {
6176
6177 /**
6178 * Constructs a new DeleteCustomClassRequest.
6179 * @param [properties] Properties to set
6180 */
6181 constructor(properties?: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest);
6182
6183 /** DeleteCustomClassRequest name. */
6184 public name: string;
6185
6186 /**
6187 * Creates a new DeleteCustomClassRequest instance using the specified properties.
6188 * @param [properties] Properties to set
6189 * @returns DeleteCustomClassRequest instance
6190 */
6191 public static create(properties?: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest): google.cloud.speech.v1p1beta1.DeleteCustomClassRequest;
6192
6193 /**
6194 * Encodes the specified DeleteCustomClassRequest message. Does not implicitly {@link google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.verify|verify} messages.
6195 * @param message DeleteCustomClassRequest message or plain object to encode
6196 * @param [writer] Writer to encode to
6197 * @returns Writer
6198 */
6199 public static encode(message: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6200
6201 /**
6202 * Encodes the specified DeleteCustomClassRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.verify|verify} messages.
6203 * @param message DeleteCustomClassRequest message or plain object to encode
6204 * @param [writer] Writer to encode to
6205 * @returns Writer
6206 */
6207 public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6208
6209 /**
6210 * Decodes a DeleteCustomClassRequest message from the specified reader or buffer.
6211 * @param reader Reader or buffer to decode from
6212 * @param [length] Message length if known beforehand
6213 * @returns DeleteCustomClassRequest
6214 * @throws {Error} If the payload is not a reader or valid buffer
6215 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6216 */
6217 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.DeleteCustomClassRequest;
6218
6219 /**
6220 * Decodes a DeleteCustomClassRequest message from the specified reader or buffer, length delimited.
6221 * @param reader Reader or buffer to decode from
6222 * @returns DeleteCustomClassRequest
6223 * @throws {Error} If the payload is not a reader or valid buffer
6224 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6225 */
6226 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.DeleteCustomClassRequest;
6227
6228 /**
6229 * Verifies a DeleteCustomClassRequest message.
6230 * @param message Plain object to verify
6231 * @returns `null` if valid, otherwise the reason why it is not
6232 */
6233 public static verify(message: { [k: string]: any }): (string|null);
6234
6235 /**
6236 * Creates a DeleteCustomClassRequest message from a plain object. Also converts values to their respective internal types.
6237 * @param object Plain object
6238 * @returns DeleteCustomClassRequest
6239 */
6240 public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.DeleteCustomClassRequest;
6241
6242 /**
6243 * Creates a plain object from a DeleteCustomClassRequest message. Also converts values to other types if specified.
6244 * @param message DeleteCustomClassRequest
6245 * @param [options] Conversion options
6246 * @returns Plain object
6247 */
6248 public static toObject(message: google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
6249
6250 /**
6251 * Converts this DeleteCustomClassRequest to JSON.
6252 * @returns JSON object
6253 */
6254 public toJSON(): { [k: string]: any };
6255 }
6256 }
6257 }
6258 }
6259
6260 /** Namespace api. */
6261 namespace api {
6262
6263 /** Properties of a Http. */
6264 interface IHttp {
6265
6266 /** Http rules */
6267 rules?: (google.api.IHttpRule[]|null);
6268
6269 /** Http fullyDecodeReservedExpansion */
6270 fullyDecodeReservedExpansion?: (boolean|null);
6271 }
6272
6273 /** Represents a Http. */
6274 class Http implements IHttp {
6275
6276 /**
6277 * Constructs a new Http.
6278 * @param [properties] Properties to set
6279 */
6280 constructor(properties?: google.api.IHttp);
6281
6282 /** Http rules. */
6283 public rules: google.api.IHttpRule[];
6284
6285 /** Http fullyDecodeReservedExpansion. */
6286 public fullyDecodeReservedExpansion: boolean;
6287
6288 /**
6289 * Creates a new Http instance using the specified properties.
6290 * @param [properties] Properties to set
6291 * @returns Http instance
6292 */
6293 public static create(properties?: google.api.IHttp): google.api.Http;
6294
6295 /**
6296 * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
6297 * @param message Http message or plain object to encode
6298 * @param [writer] Writer to encode to
6299 * @returns Writer
6300 */
6301 public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
6302
6303 /**
6304 * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
6305 * @param message Http message or plain object to encode
6306 * @param [writer] Writer to encode to
6307 * @returns Writer
6308 */
6309 public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
6310
6311 /**
6312 * Decodes a Http message from the specified reader or buffer.
6313 * @param reader Reader or buffer to decode from
6314 * @param [length] Message length if known beforehand
6315 * @returns Http
6316 * @throws {Error} If the payload is not a reader or valid buffer
6317 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6318 */
6319 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
6320
6321 /**
6322 * Decodes a Http message from the specified reader or buffer, length delimited.
6323 * @param reader Reader or buffer to decode from
6324 * @returns Http
6325 * @throws {Error} If the payload is not a reader or valid buffer
6326 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6327 */
6328 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
6329
6330 /**
6331 * Verifies a Http message.
6332 * @param message Plain object to verify
6333 * @returns `null` if valid, otherwise the reason why it is not
6334 */
6335 public static verify(message: { [k: string]: any }): (string|null);
6336
6337 /**
6338 * Creates a Http message from a plain object. Also converts values to their respective internal types.
6339 * @param object Plain object
6340 * @returns Http
6341 */
6342 public static fromObject(object: { [k: string]: any }): google.api.Http;
6343
6344 /**
6345 * Creates a plain object from a Http message. Also converts values to other types if specified.
6346 * @param message Http
6347 * @param [options] Conversion options
6348 * @returns Plain object
6349 */
6350 public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
6351
6352 /**
6353 * Converts this Http to JSON.
6354 * @returns JSON object
6355 */
6356 public toJSON(): { [k: string]: any };
6357 }
6358
6359 /** Properties of a HttpRule. */
6360 interface IHttpRule {
6361
6362 /** HttpRule selector */
6363 selector?: (string|null);
6364
6365 /** HttpRule get */
6366 get?: (string|null);
6367
6368 /** HttpRule put */
6369 put?: (string|null);
6370
6371 /** HttpRule post */
6372 post?: (string|null);
6373
6374 /** HttpRule delete */
6375 "delete"?: (string|null);
6376
6377 /** HttpRule patch */
6378 patch?: (string|null);
6379
6380 /** HttpRule custom */
6381 custom?: (google.api.ICustomHttpPattern|null);
6382
6383 /** HttpRule body */
6384 body?: (string|null);
6385
6386 /** HttpRule responseBody */
6387 responseBody?: (string|null);
6388
6389 /** HttpRule additionalBindings */
6390 additionalBindings?: (google.api.IHttpRule[]|null);
6391 }
6392
6393 /** Represents a HttpRule. */
6394 class HttpRule implements IHttpRule {
6395
6396 /**
6397 * Constructs a new HttpRule.
6398 * @param [properties] Properties to set
6399 */
6400 constructor(properties?: google.api.IHttpRule);
6401
6402 /** HttpRule selector. */
6403 public selector: string;
6404
6405 /** HttpRule get. */
6406 public get?: (string|null);
6407
6408 /** HttpRule put. */
6409 public put?: (string|null);
6410
6411 /** HttpRule post. */
6412 public post?: (string|null);
6413
6414 /** HttpRule delete. */
6415 public delete?: (string|null);
6416
6417 /** HttpRule patch. */
6418 public patch?: (string|null);
6419
6420 /** HttpRule custom. */
6421 public custom?: (google.api.ICustomHttpPattern|null);
6422
6423 /** HttpRule body. */
6424 public body: string;
6425
6426 /** HttpRule responseBody. */
6427 public responseBody: string;
6428
6429 /** HttpRule additionalBindings. */
6430 public additionalBindings: google.api.IHttpRule[];
6431
6432 /** HttpRule pattern. */
6433 public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
6434
6435 /**
6436 * Creates a new HttpRule instance using the specified properties.
6437 * @param [properties] Properties to set
6438 * @returns HttpRule instance
6439 */
6440 public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
6441
6442 /**
6443 * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
6444 * @param message HttpRule message or plain object to encode
6445 * @param [writer] Writer to encode to
6446 * @returns Writer
6447 */
6448 public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
6449
6450 /**
6451 * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
6452 * @param message HttpRule message or plain object to encode
6453 * @param [writer] Writer to encode to
6454 * @returns Writer
6455 */
6456 public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
6457
6458 /**
6459 * Decodes a HttpRule message from the specified reader or buffer.
6460 * @param reader Reader or buffer to decode from
6461 * @param [length] Message length if known beforehand
6462 * @returns HttpRule
6463 * @throws {Error} If the payload is not a reader or valid buffer
6464 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6465 */
6466 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
6467
6468 /**
6469 * Decodes a HttpRule message from the specified reader or buffer, length delimited.
6470 * @param reader Reader or buffer to decode from
6471 * @returns HttpRule
6472 * @throws {Error} If the payload is not a reader or valid buffer
6473 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6474 */
6475 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
6476
6477 /**
6478 * Verifies a HttpRule message.
6479 * @param message Plain object to verify
6480 * @returns `null` if valid, otherwise the reason why it is not
6481 */
6482 public static verify(message: { [k: string]: any }): (string|null);
6483
6484 /**
6485 * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
6486 * @param object Plain object
6487 * @returns HttpRule
6488 */
6489 public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
6490
6491 /**
6492 * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
6493 * @param message HttpRule
6494 * @param [options] Conversion options
6495 * @returns Plain object
6496 */
6497 public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
6498
6499 /**
6500 * Converts this HttpRule to JSON.
6501 * @returns JSON object
6502 */
6503 public toJSON(): { [k: string]: any };
6504 }
6505
6506 /** Properties of a CustomHttpPattern. */
6507 interface ICustomHttpPattern {
6508
6509 /** CustomHttpPattern kind */
6510 kind?: (string|null);
6511
6512 /** CustomHttpPattern path */
6513 path?: (string|null);
6514 }
6515
6516 /** Represents a CustomHttpPattern. */
6517 class CustomHttpPattern implements ICustomHttpPattern {
6518
6519 /**
6520 * Constructs a new CustomHttpPattern.
6521 * @param [properties] Properties to set
6522 */
6523 constructor(properties?: google.api.ICustomHttpPattern);
6524
6525 /** CustomHttpPattern kind. */
6526 public kind: string;
6527
6528 /** CustomHttpPattern path. */
6529 public path: string;
6530
6531 /**
6532 * Creates a new CustomHttpPattern instance using the specified properties.
6533 * @param [properties] Properties to set
6534 * @returns CustomHttpPattern instance
6535 */
6536 public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
6537
6538 /**
6539 * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
6540 * @param message CustomHttpPattern message or plain object to encode
6541 * @param [writer] Writer to encode to
6542 * @returns Writer
6543 */
6544 public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
6545
6546 /**
6547 * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
6548 * @param message CustomHttpPattern message or plain object to encode
6549 * @param [writer] Writer to encode to
6550 * @returns Writer
6551 */
6552 public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
6553
6554 /**
6555 * Decodes a CustomHttpPattern message from the specified reader or buffer.
6556 * @param reader Reader or buffer to decode from
6557 * @param [length] Message length if known beforehand
6558 * @returns CustomHttpPattern
6559 * @throws {Error} If the payload is not a reader or valid buffer
6560 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6561 */
6562 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
6563
6564 /**
6565 * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
6566 * @param reader Reader or buffer to decode from
6567 * @returns CustomHttpPattern
6568 * @throws {Error} If the payload is not a reader or valid buffer
6569 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6570 */
6571 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
6572
6573 /**
6574 * Verifies a CustomHttpPattern message.
6575 * @param message Plain object to verify
6576 * @returns `null` if valid, otherwise the reason why it is not
6577 */
6578 public static verify(message: { [k: string]: any }): (string|null);
6579
6580 /**
6581 * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
6582 * @param object Plain object
6583 * @returns CustomHttpPattern
6584 */
6585 public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
6586
6587 /**
6588 * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
6589 * @param message CustomHttpPattern
6590 * @param [options] Conversion options
6591 * @returns Plain object
6592 */
6593 public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
6594
6595 /**
6596 * Converts this CustomHttpPattern to JSON.
6597 * @returns JSON object
6598 */
6599 public toJSON(): { [k: string]: any };
6600 }
6601
6602 /** FieldBehavior enum. */
6603 enum FieldBehavior {
6604 FIELD_BEHAVIOR_UNSPECIFIED = 0,
6605 OPTIONAL = 1,
6606 REQUIRED = 2,
6607 OUTPUT_ONLY = 3,
6608 INPUT_ONLY = 4,
6609 IMMUTABLE = 5,
6610 UNORDERED_LIST = 6
6611 }
6612
6613 /** Properties of a ResourceDescriptor. */
6614 interface IResourceDescriptor {
6615
6616 /** ResourceDescriptor type */
6617 type?: (string|null);
6618
6619 /** ResourceDescriptor pattern */
6620 pattern?: (string[]|null);
6621
6622 /** ResourceDescriptor nameField */
6623 nameField?: (string|null);
6624
6625 /** ResourceDescriptor history */
6626 history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
6627
6628 /** ResourceDescriptor plural */
6629 plural?: (string|null);
6630
6631 /** ResourceDescriptor singular */
6632 singular?: (string|null);
6633
6634 /** ResourceDescriptor style */
6635 style?: (google.api.ResourceDescriptor.Style[]|null);
6636 }
6637
6638 /** Represents a ResourceDescriptor. */
6639 class ResourceDescriptor implements IResourceDescriptor {
6640
6641 /**
6642 * Constructs a new ResourceDescriptor.
6643 * @param [properties] Properties to set
6644 */
6645 constructor(properties?: google.api.IResourceDescriptor);
6646
6647 /** ResourceDescriptor type. */
6648 public type: string;
6649
6650 /** ResourceDescriptor pattern. */
6651 public pattern: string[];
6652
6653 /** ResourceDescriptor nameField. */
6654 public nameField: string;
6655
6656 /** ResourceDescriptor history. */
6657 public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
6658
6659 /** ResourceDescriptor plural. */
6660 public plural: string;
6661
6662 /** ResourceDescriptor singular. */
6663 public singular: string;
6664
6665 /** ResourceDescriptor style. */
6666 public style: google.api.ResourceDescriptor.Style[];
6667
6668 /**
6669 * Creates a new ResourceDescriptor instance using the specified properties.
6670 * @param [properties] Properties to set
6671 * @returns ResourceDescriptor instance
6672 */
6673 public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
6674
6675 /**
6676 * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
6677 * @param message ResourceDescriptor message or plain object to encode
6678 * @param [writer] Writer to encode to
6679 * @returns Writer
6680 */
6681 public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
6682
6683 /**
6684 * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
6685 * @param message ResourceDescriptor message or plain object to encode
6686 * @param [writer] Writer to encode to
6687 * @returns Writer
6688 */
6689 public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
6690
6691 /**
6692 * Decodes a ResourceDescriptor message from the specified reader or buffer.
6693 * @param reader Reader or buffer to decode from
6694 * @param [length] Message length if known beforehand
6695 * @returns ResourceDescriptor
6696 * @throws {Error} If the payload is not a reader or valid buffer
6697 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6698 */
6699 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
6700
6701 /**
6702 * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
6703 * @param reader Reader or buffer to decode from
6704 * @returns ResourceDescriptor
6705 * @throws {Error} If the payload is not a reader or valid buffer
6706 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6707 */
6708 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
6709
6710 /**
6711 * Verifies a ResourceDescriptor message.
6712 * @param message Plain object to verify
6713 * @returns `null` if valid, otherwise the reason why it is not
6714 */
6715 public static verify(message: { [k: string]: any }): (string|null);
6716
6717 /**
6718 * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
6719 * @param object Plain object
6720 * @returns ResourceDescriptor
6721 */
6722 public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
6723
6724 /**
6725 * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
6726 * @param message ResourceDescriptor
6727 * @param [options] Conversion options
6728 * @returns Plain object
6729 */
6730 public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
6731
6732 /**
6733 * Converts this ResourceDescriptor to JSON.
6734 * @returns JSON object
6735 */
6736 public toJSON(): { [k: string]: any };
6737 }
6738
6739 namespace ResourceDescriptor {
6740
6741 /** History enum. */
6742 enum History {
6743 HISTORY_UNSPECIFIED = 0,
6744 ORIGINALLY_SINGLE_PATTERN = 1,
6745 FUTURE_MULTI_PATTERN = 2
6746 }
6747
6748 /** Style enum. */
6749 enum Style {
6750 STYLE_UNSPECIFIED = 0,
6751 DECLARATIVE_FRIENDLY = 1
6752 }
6753 }
6754
6755 /** Properties of a ResourceReference. */
6756 interface IResourceReference {
6757
6758 /** ResourceReference type */
6759 type?: (string|null);
6760
6761 /** ResourceReference childType */
6762 childType?: (string|null);
6763 }
6764
6765 /** Represents a ResourceReference. */
6766 class ResourceReference implements IResourceReference {
6767
6768 /**
6769 * Constructs a new ResourceReference.
6770 * @param [properties] Properties to set
6771 */
6772 constructor(properties?: google.api.IResourceReference);
6773
6774 /** ResourceReference type. */
6775 public type: string;
6776
6777 /** ResourceReference childType. */
6778 public childType: string;
6779
6780 /**
6781 * Creates a new ResourceReference instance using the specified properties.
6782 * @param [properties] Properties to set
6783 * @returns ResourceReference instance
6784 */
6785 public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
6786
6787 /**
6788 * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
6789 * @param message ResourceReference message or plain object to encode
6790 * @param [writer] Writer to encode to
6791 * @returns Writer
6792 */
6793 public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
6794
6795 /**
6796 * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
6797 * @param message ResourceReference message or plain object to encode
6798 * @param [writer] Writer to encode to
6799 * @returns Writer
6800 */
6801 public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
6802
6803 /**
6804 * Decodes a ResourceReference message from the specified reader or buffer.
6805 * @param reader Reader or buffer to decode from
6806 * @param [length] Message length if known beforehand
6807 * @returns ResourceReference
6808 * @throws {Error} If the payload is not a reader or valid buffer
6809 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6810 */
6811 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
6812
6813 /**
6814 * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
6815 * @param reader Reader or buffer to decode from
6816 * @returns ResourceReference
6817 * @throws {Error} If the payload is not a reader or valid buffer
6818 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6819 */
6820 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
6821
6822 /**
6823 * Verifies a ResourceReference message.
6824 * @param message Plain object to verify
6825 * @returns `null` if valid, otherwise the reason why it is not
6826 */
6827 public static verify(message: { [k: string]: any }): (string|null);
6828
6829 /**
6830 * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
6831 * @param object Plain object
6832 * @returns ResourceReference
6833 */
6834 public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
6835
6836 /**
6837 * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
6838 * @param message ResourceReference
6839 * @param [options] Conversion options
6840 * @returns Plain object
6841 */
6842 public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
6843
6844 /**
6845 * Converts this ResourceReference to JSON.
6846 * @returns JSON object
6847 */
6848 public toJSON(): { [k: string]: any };
6849 }
6850 }
6851
6852 /** Namespace protobuf. */
6853 namespace protobuf {
6854
6855 /** Properties of a FileDescriptorSet. */
6856 interface IFileDescriptorSet {
6857
6858 /** FileDescriptorSet file */
6859 file?: (google.protobuf.IFileDescriptorProto[]|null);
6860 }
6861
6862 /** Represents a FileDescriptorSet. */
6863 class FileDescriptorSet implements IFileDescriptorSet {
6864
6865 /**
6866 * Constructs a new FileDescriptorSet.
6867 * @param [properties] Properties to set
6868 */
6869 constructor(properties?: google.protobuf.IFileDescriptorSet);
6870
6871 /** FileDescriptorSet file. */
6872 public file: google.protobuf.IFileDescriptorProto[];
6873
6874 /**
6875 * Creates a new FileDescriptorSet instance using the specified properties.
6876 * @param [properties] Properties to set
6877 * @returns FileDescriptorSet instance
6878 */
6879 public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
6880
6881 /**
6882 * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
6883 * @param message FileDescriptorSet message or plain object to encode
6884 * @param [writer] Writer to encode to
6885 * @returns Writer
6886 */
6887 public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
6888
6889 /**
6890 * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
6891 * @param message FileDescriptorSet message or plain object to encode
6892 * @param [writer] Writer to encode to
6893 * @returns Writer
6894 */
6895 public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
6896
6897 /**
6898 * Decodes a FileDescriptorSet message from the specified reader or buffer.
6899 * @param reader Reader or buffer to decode from
6900 * @param [length] Message length if known beforehand
6901 * @returns FileDescriptorSet
6902 * @throws {Error} If the payload is not a reader or valid buffer
6903 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6904 */
6905 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
6906
6907 /**
6908 * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
6909 * @param reader Reader or buffer to decode from
6910 * @returns FileDescriptorSet
6911 * @throws {Error} If the payload is not a reader or valid buffer
6912 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6913 */
6914 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
6915
6916 /**
6917 * Verifies a FileDescriptorSet message.
6918 * @param message Plain object to verify
6919 * @returns `null` if valid, otherwise the reason why it is not
6920 */
6921 public static verify(message: { [k: string]: any }): (string|null);
6922
6923 /**
6924 * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
6925 * @param object Plain object
6926 * @returns FileDescriptorSet
6927 */
6928 public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
6929
6930 /**
6931 * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
6932 * @param message FileDescriptorSet
6933 * @param [options] Conversion options
6934 * @returns Plain object
6935 */
6936 public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
6937
6938 /**
6939 * Converts this FileDescriptorSet to JSON.
6940 * @returns JSON object
6941 */
6942 public toJSON(): { [k: string]: any };
6943 }
6944
6945 /** Properties of a FileDescriptorProto. */
6946 interface IFileDescriptorProto {
6947
6948 /** FileDescriptorProto name */
6949 name?: (string|null);
6950
6951 /** FileDescriptorProto package */
6952 "package"?: (string|null);
6953
6954 /** FileDescriptorProto dependency */
6955 dependency?: (string[]|null);
6956
6957 /** FileDescriptorProto publicDependency */
6958 publicDependency?: (number[]|null);
6959
6960 /** FileDescriptorProto weakDependency */
6961 weakDependency?: (number[]|null);
6962
6963 /** FileDescriptorProto messageType */
6964 messageType?: (google.protobuf.IDescriptorProto[]|null);
6965
6966 /** FileDescriptorProto enumType */
6967 enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
6968
6969 /** FileDescriptorProto service */
6970 service?: (google.protobuf.IServiceDescriptorProto[]|null);
6971
6972 /** FileDescriptorProto extension */
6973 extension?: (google.protobuf.IFieldDescriptorProto[]|null);
6974
6975 /** FileDescriptorProto options */
6976 options?: (google.protobuf.IFileOptions|null);
6977
6978 /** FileDescriptorProto sourceCodeInfo */
6979 sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
6980
6981 /** FileDescriptorProto syntax */
6982 syntax?: (string|null);
6983 }
6984
6985 /** Represents a FileDescriptorProto. */
6986 class FileDescriptorProto implements IFileDescriptorProto {
6987
6988 /**
6989 * Constructs a new FileDescriptorProto.
6990 * @param [properties] Properties to set
6991 */
6992 constructor(properties?: google.protobuf.IFileDescriptorProto);
6993
6994 /** FileDescriptorProto name. */
6995 public name: string;
6996
6997 /** FileDescriptorProto package. */
6998 public package: string;
6999
7000 /** FileDescriptorProto dependency. */
7001 public dependency: string[];
7002
7003 /** FileDescriptorProto publicDependency. */
7004 public publicDependency: number[];
7005
7006 /** FileDescriptorProto weakDependency. */
7007 public weakDependency: number[];
7008
7009 /** FileDescriptorProto messageType. */
7010 public messageType: google.protobuf.IDescriptorProto[];
7011
7012 /** FileDescriptorProto enumType. */
7013 public enumType: google.protobuf.IEnumDescriptorProto[];
7014
7015 /** FileDescriptorProto service. */
7016 public service: google.protobuf.IServiceDescriptorProto[];
7017
7018 /** FileDescriptorProto extension. */
7019 public extension: google.protobuf.IFieldDescriptorProto[];
7020
7021 /** FileDescriptorProto options. */
7022 public options?: (google.protobuf.IFileOptions|null);
7023
7024 /** FileDescriptorProto sourceCodeInfo. */
7025 public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
7026
7027 /** FileDescriptorProto syntax. */
7028 public syntax: string;
7029
7030 /**
7031 * Creates a new FileDescriptorProto instance using the specified properties.
7032 * @param [properties] Properties to set
7033 * @returns FileDescriptorProto instance
7034 */
7035 public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
7036
7037 /**
7038 * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
7039 * @param message FileDescriptorProto message or plain object to encode
7040 * @param [writer] Writer to encode to
7041 * @returns Writer
7042 */
7043 public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7044
7045 /**
7046 * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
7047 * @param message FileDescriptorProto message or plain object to encode
7048 * @param [writer] Writer to encode to
7049 * @returns Writer
7050 */
7051 public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7052
7053 /**
7054 * Decodes a FileDescriptorProto message from the specified reader or buffer.
7055 * @param reader Reader or buffer to decode from
7056 * @param [length] Message length if known beforehand
7057 * @returns FileDescriptorProto
7058 * @throws {Error} If the payload is not a reader or valid buffer
7059 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7060 */
7061 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
7062
7063 /**
7064 * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
7065 * @param reader Reader or buffer to decode from
7066 * @returns FileDescriptorProto
7067 * @throws {Error} If the payload is not a reader or valid buffer
7068 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7069 */
7070 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
7071
7072 /**
7073 * Verifies a FileDescriptorProto message.
7074 * @param message Plain object to verify
7075 * @returns `null` if valid, otherwise the reason why it is not
7076 */
7077 public static verify(message: { [k: string]: any }): (string|null);
7078
7079 /**
7080 * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
7081 * @param object Plain object
7082 * @returns FileDescriptorProto
7083 */
7084 public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
7085
7086 /**
7087 * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
7088 * @param message FileDescriptorProto
7089 * @param [options] Conversion options
7090 * @returns Plain object
7091 */
7092 public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7093
7094 /**
7095 * Converts this FileDescriptorProto to JSON.
7096 * @returns JSON object
7097 */
7098 public toJSON(): { [k: string]: any };
7099 }
7100
7101 /** Properties of a DescriptorProto. */
7102 interface IDescriptorProto {
7103
7104 /** DescriptorProto name */
7105 name?: (string|null);
7106
7107 /** DescriptorProto field */
7108 field?: (google.protobuf.IFieldDescriptorProto[]|null);
7109
7110 /** DescriptorProto extension */
7111 extension?: (google.protobuf.IFieldDescriptorProto[]|null);
7112
7113 /** DescriptorProto nestedType */
7114 nestedType?: (google.protobuf.IDescriptorProto[]|null);
7115
7116 /** DescriptorProto enumType */
7117 enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
7118
7119 /** DescriptorProto extensionRange */
7120 extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
7121
7122 /** DescriptorProto oneofDecl */
7123 oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
7124
7125 /** DescriptorProto options */
7126 options?: (google.protobuf.IMessageOptions|null);
7127
7128 /** DescriptorProto reservedRange */
7129 reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
7130
7131 /** DescriptorProto reservedName */
7132 reservedName?: (string[]|null);
7133 }
7134
7135 /** Represents a DescriptorProto. */
7136 class DescriptorProto implements IDescriptorProto {
7137
7138 /**
7139 * Constructs a new DescriptorProto.
7140 * @param [properties] Properties to set
7141 */
7142 constructor(properties?: google.protobuf.IDescriptorProto);
7143
7144 /** DescriptorProto name. */
7145 public name: string;
7146
7147 /** DescriptorProto field. */
7148 public field: google.protobuf.IFieldDescriptorProto[];
7149
7150 /** DescriptorProto extension. */
7151 public extension: google.protobuf.IFieldDescriptorProto[];
7152
7153 /** DescriptorProto nestedType. */
7154 public nestedType: google.protobuf.IDescriptorProto[];
7155
7156 /** DescriptorProto enumType. */
7157 public enumType: google.protobuf.IEnumDescriptorProto[];
7158
7159 /** DescriptorProto extensionRange. */
7160 public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
7161
7162 /** DescriptorProto oneofDecl. */
7163 public oneofDecl: google.protobuf.IOneofDescriptorProto[];
7164
7165 /** DescriptorProto options. */
7166 public options?: (google.protobuf.IMessageOptions|null);
7167
7168 /** DescriptorProto reservedRange. */
7169 public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
7170
7171 /** DescriptorProto reservedName. */
7172 public reservedName: string[];
7173
7174 /**
7175 * Creates a new DescriptorProto instance using the specified properties.
7176 * @param [properties] Properties to set
7177 * @returns DescriptorProto instance
7178 */
7179 public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
7180
7181 /**
7182 * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
7183 * @param message DescriptorProto message or plain object to encode
7184 * @param [writer] Writer to encode to
7185 * @returns Writer
7186 */
7187 public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7188
7189 /**
7190 * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
7191 * @param message DescriptorProto message or plain object to encode
7192 * @param [writer] Writer to encode to
7193 * @returns Writer
7194 */
7195 public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7196
7197 /**
7198 * Decodes a DescriptorProto message from the specified reader or buffer.
7199 * @param reader Reader or buffer to decode from
7200 * @param [length] Message length if known beforehand
7201 * @returns DescriptorProto
7202 * @throws {Error} If the payload is not a reader or valid buffer
7203 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7204 */
7205 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
7206
7207 /**
7208 * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
7209 * @param reader Reader or buffer to decode from
7210 * @returns DescriptorProto
7211 * @throws {Error} If the payload is not a reader or valid buffer
7212 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7213 */
7214 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
7215
7216 /**
7217 * Verifies a DescriptorProto message.
7218 * @param message Plain object to verify
7219 * @returns `null` if valid, otherwise the reason why it is not
7220 */
7221 public static verify(message: { [k: string]: any }): (string|null);
7222
7223 /**
7224 * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
7225 * @param object Plain object
7226 * @returns DescriptorProto
7227 */
7228 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
7229
7230 /**
7231 * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
7232 * @param message DescriptorProto
7233 * @param [options] Conversion options
7234 * @returns Plain object
7235 */
7236 public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7237
7238 /**
7239 * Converts this DescriptorProto to JSON.
7240 * @returns JSON object
7241 */
7242 public toJSON(): { [k: string]: any };
7243 }
7244
7245 namespace DescriptorProto {
7246
7247 /** Properties of an ExtensionRange. */
7248 interface IExtensionRange {
7249
7250 /** ExtensionRange start */
7251 start?: (number|null);
7252
7253 /** ExtensionRange end */
7254 end?: (number|null);
7255
7256 /** ExtensionRange options */
7257 options?: (google.protobuf.IExtensionRangeOptions|null);
7258 }
7259
7260 /** Represents an ExtensionRange. */
7261 class ExtensionRange implements IExtensionRange {
7262
7263 /**
7264 * Constructs a new ExtensionRange.
7265 * @param [properties] Properties to set
7266 */
7267 constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
7268
7269 /** ExtensionRange start. */
7270 public start: number;
7271
7272 /** ExtensionRange end. */
7273 public end: number;
7274
7275 /** ExtensionRange options. */
7276 public options?: (google.protobuf.IExtensionRangeOptions|null);
7277
7278 /**
7279 * Creates a new ExtensionRange instance using the specified properties.
7280 * @param [properties] Properties to set
7281 * @returns ExtensionRange instance
7282 */
7283 public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
7284
7285 /**
7286 * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
7287 * @param message ExtensionRange message or plain object to encode
7288 * @param [writer] Writer to encode to
7289 * @returns Writer
7290 */
7291 public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
7292
7293 /**
7294 * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
7295 * @param message ExtensionRange message or plain object to encode
7296 * @param [writer] Writer to encode to
7297 * @returns Writer
7298 */
7299 public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
7300
7301 /**
7302 * Decodes an ExtensionRange message from the specified reader or buffer.
7303 * @param reader Reader or buffer to decode from
7304 * @param [length] Message length if known beforehand
7305 * @returns ExtensionRange
7306 * @throws {Error} If the payload is not a reader or valid buffer
7307 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7308 */
7309 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
7310
7311 /**
7312 * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
7313 * @param reader Reader or buffer to decode from
7314 * @returns ExtensionRange
7315 * @throws {Error} If the payload is not a reader or valid buffer
7316 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7317 */
7318 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
7319
7320 /**
7321 * Verifies an ExtensionRange message.
7322 * @param message Plain object to verify
7323 * @returns `null` if valid, otherwise the reason why it is not
7324 */
7325 public static verify(message: { [k: string]: any }): (string|null);
7326
7327 /**
7328 * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
7329 * @param object Plain object
7330 * @returns ExtensionRange
7331 */
7332 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
7333
7334 /**
7335 * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
7336 * @param message ExtensionRange
7337 * @param [options] Conversion options
7338 * @returns Plain object
7339 */
7340 public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
7341
7342 /**
7343 * Converts this ExtensionRange to JSON.
7344 * @returns JSON object
7345 */
7346 public toJSON(): { [k: string]: any };
7347 }
7348
7349 /** Properties of a ReservedRange. */
7350 interface IReservedRange {
7351
7352 /** ReservedRange start */
7353 start?: (number|null);
7354
7355 /** ReservedRange end */
7356 end?: (number|null);
7357 }
7358
7359 /** Represents a ReservedRange. */
7360 class ReservedRange implements IReservedRange {
7361
7362 /**
7363 * Constructs a new ReservedRange.
7364 * @param [properties] Properties to set
7365 */
7366 constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
7367
7368 /** ReservedRange start. */
7369 public start: number;
7370
7371 /** ReservedRange end. */
7372 public end: number;
7373
7374 /**
7375 * Creates a new ReservedRange instance using the specified properties.
7376 * @param [properties] Properties to set
7377 * @returns ReservedRange instance
7378 */
7379 public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
7380
7381 /**
7382 * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
7383 * @param message ReservedRange message or plain object to encode
7384 * @param [writer] Writer to encode to
7385 * @returns Writer
7386 */
7387 public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
7388
7389 /**
7390 * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
7391 * @param message ReservedRange message or plain object to encode
7392 * @param [writer] Writer to encode to
7393 * @returns Writer
7394 */
7395 public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
7396
7397 /**
7398 * Decodes a ReservedRange message from the specified reader or buffer.
7399 * @param reader Reader or buffer to decode from
7400 * @param [length] Message length if known beforehand
7401 * @returns ReservedRange
7402 * @throws {Error} If the payload is not a reader or valid buffer
7403 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7404 */
7405 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
7406
7407 /**
7408 * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
7409 * @param reader Reader or buffer to decode from
7410 * @returns ReservedRange
7411 * @throws {Error} If the payload is not a reader or valid buffer
7412 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7413 */
7414 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
7415
7416 /**
7417 * Verifies a ReservedRange message.
7418 * @param message Plain object to verify
7419 * @returns `null` if valid, otherwise the reason why it is not
7420 */
7421 public static verify(message: { [k: string]: any }): (string|null);
7422
7423 /**
7424 * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
7425 * @param object Plain object
7426 * @returns ReservedRange
7427 */
7428 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
7429
7430 /**
7431 * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
7432 * @param message ReservedRange
7433 * @param [options] Conversion options
7434 * @returns Plain object
7435 */
7436 public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
7437
7438 /**
7439 * Converts this ReservedRange to JSON.
7440 * @returns JSON object
7441 */
7442 public toJSON(): { [k: string]: any };
7443 }
7444 }
7445
7446 /** Properties of an ExtensionRangeOptions. */
7447 interface IExtensionRangeOptions {
7448
7449 /** ExtensionRangeOptions uninterpretedOption */
7450 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
7451 }
7452
7453 /** Represents an ExtensionRangeOptions. */
7454 class ExtensionRangeOptions implements IExtensionRangeOptions {
7455
7456 /**
7457 * Constructs a new ExtensionRangeOptions.
7458 * @param [properties] Properties to set
7459 */
7460 constructor(properties?: google.protobuf.IExtensionRangeOptions);
7461
7462 /** ExtensionRangeOptions uninterpretedOption. */
7463 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
7464
7465 /**
7466 * Creates a new ExtensionRangeOptions instance using the specified properties.
7467 * @param [properties] Properties to set
7468 * @returns ExtensionRangeOptions instance
7469 */
7470 public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
7471
7472 /**
7473 * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
7474 * @param message ExtensionRangeOptions message or plain object to encode
7475 * @param [writer] Writer to encode to
7476 * @returns Writer
7477 */
7478 public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
7479
7480 /**
7481 * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
7482 * @param message ExtensionRangeOptions message or plain object to encode
7483 * @param [writer] Writer to encode to
7484 * @returns Writer
7485 */
7486 public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
7487
7488 /**
7489 * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
7490 * @param reader Reader or buffer to decode from
7491 * @param [length] Message length if known beforehand
7492 * @returns ExtensionRangeOptions
7493 * @throws {Error} If the payload is not a reader or valid buffer
7494 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7495 */
7496 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
7497
7498 /**
7499 * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
7500 * @param reader Reader or buffer to decode from
7501 * @returns ExtensionRangeOptions
7502 * @throws {Error} If the payload is not a reader or valid buffer
7503 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7504 */
7505 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
7506
7507 /**
7508 * Verifies an ExtensionRangeOptions message.
7509 * @param message Plain object to verify
7510 * @returns `null` if valid, otherwise the reason why it is not
7511 */
7512 public static verify(message: { [k: string]: any }): (string|null);
7513
7514 /**
7515 * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
7516 * @param object Plain object
7517 * @returns ExtensionRangeOptions
7518 */
7519 public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
7520
7521 /**
7522 * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
7523 * @param message ExtensionRangeOptions
7524 * @param [options] Conversion options
7525 * @returns Plain object
7526 */
7527 public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
7528
7529 /**
7530 * Converts this ExtensionRangeOptions to JSON.
7531 * @returns JSON object
7532 */
7533 public toJSON(): { [k: string]: any };
7534 }
7535
7536 /** Properties of a FieldDescriptorProto. */
7537 interface IFieldDescriptorProto {
7538
7539 /** FieldDescriptorProto name */
7540 name?: (string|null);
7541
7542 /** FieldDescriptorProto number */
7543 number?: (number|null);
7544
7545 /** FieldDescriptorProto label */
7546 label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
7547
7548 /** FieldDescriptorProto type */
7549 type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
7550
7551 /** FieldDescriptorProto typeName */
7552 typeName?: (string|null);
7553
7554 /** FieldDescriptorProto extendee */
7555 extendee?: (string|null);
7556
7557 /** FieldDescriptorProto defaultValue */
7558 defaultValue?: (string|null);
7559
7560 /** FieldDescriptorProto oneofIndex */
7561 oneofIndex?: (number|null);
7562
7563 /** FieldDescriptorProto jsonName */
7564 jsonName?: (string|null);
7565
7566 /** FieldDescriptorProto options */
7567 options?: (google.protobuf.IFieldOptions|null);
7568
7569 /** FieldDescriptorProto proto3Optional */
7570 proto3Optional?: (boolean|null);
7571 }
7572
7573 /** Represents a FieldDescriptorProto. */
7574 class FieldDescriptorProto implements IFieldDescriptorProto {
7575
7576 /**
7577 * Constructs a new FieldDescriptorProto.
7578 * @param [properties] Properties to set
7579 */
7580 constructor(properties?: google.protobuf.IFieldDescriptorProto);
7581
7582 /** FieldDescriptorProto name. */
7583 public name: string;
7584
7585 /** FieldDescriptorProto number. */
7586 public number: number;
7587
7588 /** FieldDescriptorProto label. */
7589 public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
7590
7591 /** FieldDescriptorProto type. */
7592 public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
7593
7594 /** FieldDescriptorProto typeName. */
7595 public typeName: string;
7596
7597 /** FieldDescriptorProto extendee. */
7598 public extendee: string;
7599
7600 /** FieldDescriptorProto defaultValue. */
7601 public defaultValue: string;
7602
7603 /** FieldDescriptorProto oneofIndex. */
7604 public oneofIndex: number;
7605
7606 /** FieldDescriptorProto jsonName. */
7607 public jsonName: string;
7608
7609 /** FieldDescriptorProto options. */
7610 public options?: (google.protobuf.IFieldOptions|null);
7611
7612 /** FieldDescriptorProto proto3Optional. */
7613 public proto3Optional: boolean;
7614
7615 /**
7616 * Creates a new FieldDescriptorProto instance using the specified properties.
7617 * @param [properties] Properties to set
7618 * @returns FieldDescriptorProto instance
7619 */
7620 public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
7621
7622 /**
7623 * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
7624 * @param message FieldDescriptorProto message or plain object to encode
7625 * @param [writer] Writer to encode to
7626 * @returns Writer
7627 */
7628 public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7629
7630 /**
7631 * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
7632 * @param message FieldDescriptorProto message or plain object to encode
7633 * @param [writer] Writer to encode to
7634 * @returns Writer
7635 */
7636 public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7637
7638 /**
7639 * Decodes a FieldDescriptorProto message from the specified reader or buffer.
7640 * @param reader Reader or buffer to decode from
7641 * @param [length] Message length if known beforehand
7642 * @returns FieldDescriptorProto
7643 * @throws {Error} If the payload is not a reader or valid buffer
7644 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7645 */
7646 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
7647
7648 /**
7649 * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
7650 * @param reader Reader or buffer to decode from
7651 * @returns FieldDescriptorProto
7652 * @throws {Error} If the payload is not a reader or valid buffer
7653 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7654 */
7655 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
7656
7657 /**
7658 * Verifies a FieldDescriptorProto message.
7659 * @param message Plain object to verify
7660 * @returns `null` if valid, otherwise the reason why it is not
7661 */
7662 public static verify(message: { [k: string]: any }): (string|null);
7663
7664 /**
7665 * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
7666 * @param object Plain object
7667 * @returns FieldDescriptorProto
7668 */
7669 public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
7670
7671 /**
7672 * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
7673 * @param message FieldDescriptorProto
7674 * @param [options] Conversion options
7675 * @returns Plain object
7676 */
7677 public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7678
7679 /**
7680 * Converts this FieldDescriptorProto to JSON.
7681 * @returns JSON object
7682 */
7683 public toJSON(): { [k: string]: any };
7684 }
7685
7686 namespace FieldDescriptorProto {
7687
7688 /** Type enum. */
7689 enum Type {
7690 TYPE_DOUBLE = 1,
7691 TYPE_FLOAT = 2,
7692 TYPE_INT64 = 3,
7693 TYPE_UINT64 = 4,
7694 TYPE_INT32 = 5,
7695 TYPE_FIXED64 = 6,
7696 TYPE_FIXED32 = 7,
7697 TYPE_BOOL = 8,
7698 TYPE_STRING = 9,
7699 TYPE_GROUP = 10,
7700 TYPE_MESSAGE = 11,
7701 TYPE_BYTES = 12,
7702 TYPE_UINT32 = 13,
7703 TYPE_ENUM = 14,
7704 TYPE_SFIXED32 = 15,
7705 TYPE_SFIXED64 = 16,
7706 TYPE_SINT32 = 17,
7707 TYPE_SINT64 = 18
7708 }
7709
7710 /** Label enum. */
7711 enum Label {
7712 LABEL_OPTIONAL = 1,
7713 LABEL_REQUIRED = 2,
7714 LABEL_REPEATED = 3
7715 }
7716 }
7717
7718 /** Properties of an OneofDescriptorProto. */
7719 interface IOneofDescriptorProto {
7720
7721 /** OneofDescriptorProto name */
7722 name?: (string|null);
7723
7724 /** OneofDescriptorProto options */
7725 options?: (google.protobuf.IOneofOptions|null);
7726 }
7727
7728 /** Represents an OneofDescriptorProto. */
7729 class OneofDescriptorProto implements IOneofDescriptorProto {
7730
7731 /**
7732 * Constructs a new OneofDescriptorProto.
7733 * @param [properties] Properties to set
7734 */
7735 constructor(properties?: google.protobuf.IOneofDescriptorProto);
7736
7737 /** OneofDescriptorProto name. */
7738 public name: string;
7739
7740 /** OneofDescriptorProto options. */
7741 public options?: (google.protobuf.IOneofOptions|null);
7742
7743 /**
7744 * Creates a new OneofDescriptorProto instance using the specified properties.
7745 * @param [properties] Properties to set
7746 * @returns OneofDescriptorProto instance
7747 */
7748 public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
7749
7750 /**
7751 * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
7752 * @param message OneofDescriptorProto message or plain object to encode
7753 * @param [writer] Writer to encode to
7754 * @returns Writer
7755 */
7756 public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7757
7758 /**
7759 * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
7760 * @param message OneofDescriptorProto message or plain object to encode
7761 * @param [writer] Writer to encode to
7762 * @returns Writer
7763 */
7764 public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7765
7766 /**
7767 * Decodes an OneofDescriptorProto message from the specified reader or buffer.
7768 * @param reader Reader or buffer to decode from
7769 * @param [length] Message length if known beforehand
7770 * @returns OneofDescriptorProto
7771 * @throws {Error} If the payload is not a reader or valid buffer
7772 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7773 */
7774 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
7775
7776 /**
7777 * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
7778 * @param reader Reader or buffer to decode from
7779 * @returns OneofDescriptorProto
7780 * @throws {Error} If the payload is not a reader or valid buffer
7781 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7782 */
7783 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
7784
7785 /**
7786 * Verifies an OneofDescriptorProto message.
7787 * @param message Plain object to verify
7788 * @returns `null` if valid, otherwise the reason why it is not
7789 */
7790 public static verify(message: { [k: string]: any }): (string|null);
7791
7792 /**
7793 * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
7794 * @param object Plain object
7795 * @returns OneofDescriptorProto
7796 */
7797 public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
7798
7799 /**
7800 * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
7801 * @param message OneofDescriptorProto
7802 * @param [options] Conversion options
7803 * @returns Plain object
7804 */
7805 public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7806
7807 /**
7808 * Converts this OneofDescriptorProto to JSON.
7809 * @returns JSON object
7810 */
7811 public toJSON(): { [k: string]: any };
7812 }
7813
7814 /** Properties of an EnumDescriptorProto. */
7815 interface IEnumDescriptorProto {
7816
7817 /** EnumDescriptorProto name */
7818 name?: (string|null);
7819
7820 /** EnumDescriptorProto value */
7821 value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
7822
7823 /** EnumDescriptorProto options */
7824 options?: (google.protobuf.IEnumOptions|null);
7825
7826 /** EnumDescriptorProto reservedRange */
7827 reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
7828
7829 /** EnumDescriptorProto reservedName */
7830 reservedName?: (string[]|null);
7831 }
7832
7833 /** Represents an EnumDescriptorProto. */
7834 class EnumDescriptorProto implements IEnumDescriptorProto {
7835
7836 /**
7837 * Constructs a new EnumDescriptorProto.
7838 * @param [properties] Properties to set
7839 */
7840 constructor(properties?: google.protobuf.IEnumDescriptorProto);
7841
7842 /** EnumDescriptorProto name. */
7843 public name: string;
7844
7845 /** EnumDescriptorProto value. */
7846 public value: google.protobuf.IEnumValueDescriptorProto[];
7847
7848 /** EnumDescriptorProto options. */
7849 public options?: (google.protobuf.IEnumOptions|null);
7850
7851 /** EnumDescriptorProto reservedRange. */
7852 public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
7853
7854 /** EnumDescriptorProto reservedName. */
7855 public reservedName: string[];
7856
7857 /**
7858 * Creates a new EnumDescriptorProto instance using the specified properties.
7859 * @param [properties] Properties to set
7860 * @returns EnumDescriptorProto instance
7861 */
7862 public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
7863
7864 /**
7865 * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
7866 * @param message EnumDescriptorProto message or plain object to encode
7867 * @param [writer] Writer to encode to
7868 * @returns Writer
7869 */
7870 public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7871
7872 /**
7873 * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
7874 * @param message EnumDescriptorProto message or plain object to encode
7875 * @param [writer] Writer to encode to
7876 * @returns Writer
7877 */
7878 public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7879
7880 /**
7881 * Decodes an EnumDescriptorProto message from the specified reader or buffer.
7882 * @param reader Reader or buffer to decode from
7883 * @param [length] Message length if known beforehand
7884 * @returns EnumDescriptorProto
7885 * @throws {Error} If the payload is not a reader or valid buffer
7886 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7887 */
7888 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
7889
7890 /**
7891 * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
7892 * @param reader Reader or buffer to decode from
7893 * @returns EnumDescriptorProto
7894 * @throws {Error} If the payload is not a reader or valid buffer
7895 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7896 */
7897 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
7898
7899 /**
7900 * Verifies an EnumDescriptorProto message.
7901 * @param message Plain object to verify
7902 * @returns `null` if valid, otherwise the reason why it is not
7903 */
7904 public static verify(message: { [k: string]: any }): (string|null);
7905
7906 /**
7907 * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
7908 * @param object Plain object
7909 * @returns EnumDescriptorProto
7910 */
7911 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
7912
7913 /**
7914 * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
7915 * @param message EnumDescriptorProto
7916 * @param [options] Conversion options
7917 * @returns Plain object
7918 */
7919 public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7920
7921 /**
7922 * Converts this EnumDescriptorProto to JSON.
7923 * @returns JSON object
7924 */
7925 public toJSON(): { [k: string]: any };
7926 }
7927
7928 namespace EnumDescriptorProto {
7929
7930 /** Properties of an EnumReservedRange. */
7931 interface IEnumReservedRange {
7932
7933 /** EnumReservedRange start */
7934 start?: (number|null);
7935
7936 /** EnumReservedRange end */
7937 end?: (number|null);
7938 }
7939
7940 /** Represents an EnumReservedRange. */
7941 class EnumReservedRange implements IEnumReservedRange {
7942
7943 /**
7944 * Constructs a new EnumReservedRange.
7945 * @param [properties] Properties to set
7946 */
7947 constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
7948
7949 /** EnumReservedRange start. */
7950 public start: number;
7951
7952 /** EnumReservedRange end. */
7953 public end: number;
7954
7955 /**
7956 * Creates a new EnumReservedRange instance using the specified properties.
7957 * @param [properties] Properties to set
7958 * @returns EnumReservedRange instance
7959 */
7960 public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
7961
7962 /**
7963 * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
7964 * @param message EnumReservedRange message or plain object to encode
7965 * @param [writer] Writer to encode to
7966 * @returns Writer
7967 */
7968 public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
7969
7970 /**
7971 * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
7972 * @param message EnumReservedRange message or plain object to encode
7973 * @param [writer] Writer to encode to
7974 * @returns Writer
7975 */
7976 public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
7977
7978 /**
7979 * Decodes an EnumReservedRange message from the specified reader or buffer.
7980 * @param reader Reader or buffer to decode from
7981 * @param [length] Message length if known beforehand
7982 * @returns EnumReservedRange
7983 * @throws {Error} If the payload is not a reader or valid buffer
7984 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7985 */
7986 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
7987
7988 /**
7989 * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
7990 * @param reader Reader or buffer to decode from
7991 * @returns EnumReservedRange
7992 * @throws {Error} If the payload is not a reader or valid buffer
7993 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7994 */
7995 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
7996
7997 /**
7998 * Verifies an EnumReservedRange message.
7999 * @param message Plain object to verify
8000 * @returns `null` if valid, otherwise the reason why it is not
8001 */
8002 public static verify(message: { [k: string]: any }): (string|null);
8003
8004 /**
8005 * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
8006 * @param object Plain object
8007 * @returns EnumReservedRange
8008 */
8009 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
8010
8011 /**
8012 * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
8013 * @param message EnumReservedRange
8014 * @param [options] Conversion options
8015 * @returns Plain object
8016 */
8017 public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
8018
8019 /**
8020 * Converts this EnumReservedRange to JSON.
8021 * @returns JSON object
8022 */
8023 public toJSON(): { [k: string]: any };
8024 }
8025 }
8026
8027 /** Properties of an EnumValueDescriptorProto. */
8028 interface IEnumValueDescriptorProto {
8029
8030 /** EnumValueDescriptorProto name */
8031 name?: (string|null);
8032
8033 /** EnumValueDescriptorProto number */
8034 number?: (number|null);
8035
8036 /** EnumValueDescriptorProto options */
8037 options?: (google.protobuf.IEnumValueOptions|null);
8038 }
8039
8040 /** Represents an EnumValueDescriptorProto. */
8041 class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
8042
8043 /**
8044 * Constructs a new EnumValueDescriptorProto.
8045 * @param [properties] Properties to set
8046 */
8047 constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
8048
8049 /** EnumValueDescriptorProto name. */
8050 public name: string;
8051
8052 /** EnumValueDescriptorProto number. */
8053 public number: number;
8054
8055 /** EnumValueDescriptorProto options. */
8056 public options?: (google.protobuf.IEnumValueOptions|null);
8057
8058 /**
8059 * Creates a new EnumValueDescriptorProto instance using the specified properties.
8060 * @param [properties] Properties to set
8061 * @returns EnumValueDescriptorProto instance
8062 */
8063 public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
8064
8065 /**
8066 * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
8067 * @param message EnumValueDescriptorProto message or plain object to encode
8068 * @param [writer] Writer to encode to
8069 * @returns Writer
8070 */
8071 public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8072
8073 /**
8074 * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
8075 * @param message EnumValueDescriptorProto message or plain object to encode
8076 * @param [writer] Writer to encode to
8077 * @returns Writer
8078 */
8079 public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8080
8081 /**
8082 * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
8083 * @param reader Reader or buffer to decode from
8084 * @param [length] Message length if known beforehand
8085 * @returns EnumValueDescriptorProto
8086 * @throws {Error} If the payload is not a reader or valid buffer
8087 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8088 */
8089 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
8090
8091 /**
8092 * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
8093 * @param reader Reader or buffer to decode from
8094 * @returns EnumValueDescriptorProto
8095 * @throws {Error} If the payload is not a reader or valid buffer
8096 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8097 */
8098 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
8099
8100 /**
8101 * Verifies an EnumValueDescriptorProto message.
8102 * @param message Plain object to verify
8103 * @returns `null` if valid, otherwise the reason why it is not
8104 */
8105 public static verify(message: { [k: string]: any }): (string|null);
8106
8107 /**
8108 * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
8109 * @param object Plain object
8110 * @returns EnumValueDescriptorProto
8111 */
8112 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
8113
8114 /**
8115 * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
8116 * @param message EnumValueDescriptorProto
8117 * @param [options] Conversion options
8118 * @returns Plain object
8119 */
8120 public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
8121
8122 /**
8123 * Converts this EnumValueDescriptorProto to JSON.
8124 * @returns JSON object
8125 */
8126 public toJSON(): { [k: string]: any };
8127 }
8128
8129 /** Properties of a ServiceDescriptorProto. */
8130 interface IServiceDescriptorProto {
8131
8132 /** ServiceDescriptorProto name */
8133 name?: (string|null);
8134
8135 /** ServiceDescriptorProto method */
8136 method?: (google.protobuf.IMethodDescriptorProto[]|null);
8137
8138 /** ServiceDescriptorProto options */
8139 options?: (google.protobuf.IServiceOptions|null);
8140 }
8141
8142 /** Represents a ServiceDescriptorProto. */
8143 class ServiceDescriptorProto implements IServiceDescriptorProto {
8144
8145 /**
8146 * Constructs a new ServiceDescriptorProto.
8147 * @param [properties] Properties to set
8148 */
8149 constructor(properties?: google.protobuf.IServiceDescriptorProto);
8150
8151 /** ServiceDescriptorProto name. */
8152 public name: string;
8153
8154 /** ServiceDescriptorProto method. */
8155 public method: google.protobuf.IMethodDescriptorProto[];
8156
8157 /** ServiceDescriptorProto options. */
8158 public options?: (google.protobuf.IServiceOptions|null);
8159
8160 /**
8161 * Creates a new ServiceDescriptorProto instance using the specified properties.
8162 * @param [properties] Properties to set
8163 * @returns ServiceDescriptorProto instance
8164 */
8165 public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
8166
8167 /**
8168 * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
8169 * @param message ServiceDescriptorProto message or plain object to encode
8170 * @param [writer] Writer to encode to
8171 * @returns Writer
8172 */
8173 public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8174
8175 /**
8176 * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
8177 * @param message ServiceDescriptorProto message or plain object to encode
8178 * @param [writer] Writer to encode to
8179 * @returns Writer
8180 */
8181 public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8182
8183 /**
8184 * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
8185 * @param reader Reader or buffer to decode from
8186 * @param [length] Message length if known beforehand
8187 * @returns ServiceDescriptorProto
8188 * @throws {Error} If the payload is not a reader or valid buffer
8189 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8190 */
8191 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
8192
8193 /**
8194 * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
8195 * @param reader Reader or buffer to decode from
8196 * @returns ServiceDescriptorProto
8197 * @throws {Error} If the payload is not a reader or valid buffer
8198 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8199 */
8200 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
8201
8202 /**
8203 * Verifies a ServiceDescriptorProto message.
8204 * @param message Plain object to verify
8205 * @returns `null` if valid, otherwise the reason why it is not
8206 */
8207 public static verify(message: { [k: string]: any }): (string|null);
8208
8209 /**
8210 * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
8211 * @param object Plain object
8212 * @returns ServiceDescriptorProto
8213 */
8214 public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
8215
8216 /**
8217 * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
8218 * @param message ServiceDescriptorProto
8219 * @param [options] Conversion options
8220 * @returns Plain object
8221 */
8222 public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
8223
8224 /**
8225 * Converts this ServiceDescriptorProto to JSON.
8226 * @returns JSON object
8227 */
8228 public toJSON(): { [k: string]: any };
8229 }
8230
8231 /** Properties of a MethodDescriptorProto. */
8232 interface IMethodDescriptorProto {
8233
8234 /** MethodDescriptorProto name */
8235 name?: (string|null);
8236
8237 /** MethodDescriptorProto inputType */
8238 inputType?: (string|null);
8239
8240 /** MethodDescriptorProto outputType */
8241 outputType?: (string|null);
8242
8243 /** MethodDescriptorProto options */
8244 options?: (google.protobuf.IMethodOptions|null);
8245
8246 /** MethodDescriptorProto clientStreaming */
8247 clientStreaming?: (boolean|null);
8248
8249 /** MethodDescriptorProto serverStreaming */
8250 serverStreaming?: (boolean|null);
8251 }
8252
8253 /** Represents a MethodDescriptorProto. */
8254 class MethodDescriptorProto implements IMethodDescriptorProto {
8255
8256 /**
8257 * Constructs a new MethodDescriptorProto.
8258 * @param [properties] Properties to set
8259 */
8260 constructor(properties?: google.protobuf.IMethodDescriptorProto);
8261
8262 /** MethodDescriptorProto name. */
8263 public name: string;
8264
8265 /** MethodDescriptorProto inputType. */
8266 public inputType: string;
8267
8268 /** MethodDescriptorProto outputType. */
8269 public outputType: string;
8270
8271 /** MethodDescriptorProto options. */
8272 public options?: (google.protobuf.IMethodOptions|null);
8273
8274 /** MethodDescriptorProto clientStreaming. */
8275 public clientStreaming: boolean;
8276
8277 /** MethodDescriptorProto serverStreaming. */
8278 public serverStreaming: boolean;
8279
8280 /**
8281 * Creates a new MethodDescriptorProto instance using the specified properties.
8282 * @param [properties] Properties to set
8283 * @returns MethodDescriptorProto instance
8284 */
8285 public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
8286
8287 /**
8288 * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
8289 * @param message MethodDescriptorProto message or plain object to encode
8290 * @param [writer] Writer to encode to
8291 * @returns Writer
8292 */
8293 public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8294
8295 /**
8296 * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
8297 * @param message MethodDescriptorProto message or plain object to encode
8298 * @param [writer] Writer to encode to
8299 * @returns Writer
8300 */
8301 public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8302
8303 /**
8304 * Decodes a MethodDescriptorProto message from the specified reader or buffer.
8305 * @param reader Reader or buffer to decode from
8306 * @param [length] Message length if known beforehand
8307 * @returns MethodDescriptorProto
8308 * @throws {Error} If the payload is not a reader or valid buffer
8309 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8310 */
8311 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
8312
8313 /**
8314 * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
8315 * @param reader Reader or buffer to decode from
8316 * @returns MethodDescriptorProto
8317 * @throws {Error} If the payload is not a reader or valid buffer
8318 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8319 */
8320 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
8321
8322 /**
8323 * Verifies a MethodDescriptorProto message.
8324 * @param message Plain object to verify
8325 * @returns `null` if valid, otherwise the reason why it is not
8326 */
8327 public static verify(message: { [k: string]: any }): (string|null);
8328
8329 /**
8330 * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
8331 * @param object Plain object
8332 * @returns MethodDescriptorProto
8333 */
8334 public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
8335
8336 /**
8337 * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
8338 * @param message MethodDescriptorProto
8339 * @param [options] Conversion options
8340 * @returns Plain object
8341 */
8342 public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
8343
8344 /**
8345 * Converts this MethodDescriptorProto to JSON.
8346 * @returns JSON object
8347 */
8348 public toJSON(): { [k: string]: any };
8349 }
8350
8351 /** Properties of a FileOptions. */
8352 interface IFileOptions {
8353
8354 /** FileOptions javaPackage */
8355 javaPackage?: (string|null);
8356
8357 /** FileOptions javaOuterClassname */
8358 javaOuterClassname?: (string|null);
8359
8360 /** FileOptions javaMultipleFiles */
8361 javaMultipleFiles?: (boolean|null);
8362
8363 /** FileOptions javaGenerateEqualsAndHash */
8364 javaGenerateEqualsAndHash?: (boolean|null);
8365
8366 /** FileOptions javaStringCheckUtf8 */
8367 javaStringCheckUtf8?: (boolean|null);
8368
8369 /** FileOptions optimizeFor */
8370 optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
8371
8372 /** FileOptions goPackage */
8373 goPackage?: (string|null);
8374
8375 /** FileOptions ccGenericServices */
8376 ccGenericServices?: (boolean|null);
8377
8378 /** FileOptions javaGenericServices */
8379 javaGenericServices?: (boolean|null);
8380
8381 /** FileOptions pyGenericServices */
8382 pyGenericServices?: (boolean|null);
8383
8384 /** FileOptions phpGenericServices */
8385 phpGenericServices?: (boolean|null);
8386
8387 /** FileOptions deprecated */
8388 deprecated?: (boolean|null);
8389
8390 /** FileOptions ccEnableArenas */
8391 ccEnableArenas?: (boolean|null);
8392
8393 /** FileOptions objcClassPrefix */
8394 objcClassPrefix?: (string|null);
8395
8396 /** FileOptions csharpNamespace */
8397 csharpNamespace?: (string|null);
8398
8399 /** FileOptions swiftPrefix */
8400 swiftPrefix?: (string|null);
8401
8402 /** FileOptions phpClassPrefix */
8403 phpClassPrefix?: (string|null);
8404
8405 /** FileOptions phpNamespace */
8406 phpNamespace?: (string|null);
8407
8408 /** FileOptions phpMetadataNamespace */
8409 phpMetadataNamespace?: (string|null);
8410
8411 /** FileOptions rubyPackage */
8412 rubyPackage?: (string|null);
8413
8414 /** FileOptions uninterpretedOption */
8415 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8416
8417 /** FileOptions .google.api.resourceDefinition */
8418 ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
8419 }
8420
8421 /** Represents a FileOptions. */
8422 class FileOptions implements IFileOptions {
8423
8424 /**
8425 * Constructs a new FileOptions.
8426 * @param [properties] Properties to set
8427 */
8428 constructor(properties?: google.protobuf.IFileOptions);
8429
8430 /** FileOptions javaPackage. */
8431 public javaPackage: string;
8432
8433 /** FileOptions javaOuterClassname. */
8434 public javaOuterClassname: string;
8435
8436 /** FileOptions javaMultipleFiles. */
8437 public javaMultipleFiles: boolean;
8438
8439 /** FileOptions javaGenerateEqualsAndHash. */
8440 public javaGenerateEqualsAndHash: boolean;
8441
8442 /** FileOptions javaStringCheckUtf8. */
8443 public javaStringCheckUtf8: boolean;
8444
8445 /** FileOptions optimizeFor. */
8446 public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
8447
8448 /** FileOptions goPackage. */
8449 public goPackage: string;
8450
8451 /** FileOptions ccGenericServices. */
8452 public ccGenericServices: boolean;
8453
8454 /** FileOptions javaGenericServices. */
8455 public javaGenericServices: boolean;
8456
8457 /** FileOptions pyGenericServices. */
8458 public pyGenericServices: boolean;
8459
8460 /** FileOptions phpGenericServices. */
8461 public phpGenericServices: boolean;
8462
8463 /** FileOptions deprecated. */
8464 public deprecated: boolean;
8465
8466 /** FileOptions ccEnableArenas. */
8467 public ccEnableArenas: boolean;
8468
8469 /** FileOptions objcClassPrefix. */
8470 public objcClassPrefix: string;
8471
8472 /** FileOptions csharpNamespace. */
8473 public csharpNamespace: string;
8474
8475 /** FileOptions swiftPrefix. */
8476 public swiftPrefix: string;
8477
8478 /** FileOptions phpClassPrefix. */
8479 public phpClassPrefix: string;
8480
8481 /** FileOptions phpNamespace. */
8482 public phpNamespace: string;
8483
8484 /** FileOptions phpMetadataNamespace. */
8485 public phpMetadataNamespace: string;
8486
8487 /** FileOptions rubyPackage. */
8488 public rubyPackage: string;
8489
8490 /** FileOptions uninterpretedOption. */
8491 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8492
8493 /**
8494 * Creates a new FileOptions instance using the specified properties.
8495 * @param [properties] Properties to set
8496 * @returns FileOptions instance
8497 */
8498 public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
8499
8500 /**
8501 * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
8502 * @param message FileOptions message or plain object to encode
8503 * @param [writer] Writer to encode to
8504 * @returns Writer
8505 */
8506 public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8507
8508 /**
8509 * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
8510 * @param message FileOptions message or plain object to encode
8511 * @param [writer] Writer to encode to
8512 * @returns Writer
8513 */
8514 public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8515
8516 /**
8517 * Decodes a FileOptions message from the specified reader or buffer.
8518 * @param reader Reader or buffer to decode from
8519 * @param [length] Message length if known beforehand
8520 * @returns FileOptions
8521 * @throws {Error} If the payload is not a reader or valid buffer
8522 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8523 */
8524 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
8525
8526 /**
8527 * Decodes a FileOptions message from the specified reader or buffer, length delimited.
8528 * @param reader Reader or buffer to decode from
8529 * @returns FileOptions
8530 * @throws {Error} If the payload is not a reader or valid buffer
8531 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8532 */
8533 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
8534
8535 /**
8536 * Verifies a FileOptions message.
8537 * @param message Plain object to verify
8538 * @returns `null` if valid, otherwise the reason why it is not
8539 */
8540 public static verify(message: { [k: string]: any }): (string|null);
8541
8542 /**
8543 * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
8544 * @param object Plain object
8545 * @returns FileOptions
8546 */
8547 public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
8548
8549 /**
8550 * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
8551 * @param message FileOptions
8552 * @param [options] Conversion options
8553 * @returns Plain object
8554 */
8555 public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8556
8557 /**
8558 * Converts this FileOptions to JSON.
8559 * @returns JSON object
8560 */
8561 public toJSON(): { [k: string]: any };
8562 }
8563
8564 namespace FileOptions {
8565
8566 /** OptimizeMode enum. */
8567 enum OptimizeMode {
8568 SPEED = 1,
8569 CODE_SIZE = 2,
8570 LITE_RUNTIME = 3
8571 }
8572 }
8573
8574 /** Properties of a MessageOptions. */
8575 interface IMessageOptions {
8576
8577 /** MessageOptions messageSetWireFormat */
8578 messageSetWireFormat?: (boolean|null);
8579
8580 /** MessageOptions noStandardDescriptorAccessor */
8581 noStandardDescriptorAccessor?: (boolean|null);
8582
8583 /** MessageOptions deprecated */
8584 deprecated?: (boolean|null);
8585
8586 /** MessageOptions mapEntry */
8587 mapEntry?: (boolean|null);
8588
8589 /** MessageOptions uninterpretedOption */
8590 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8591
8592 /** MessageOptions .google.api.resource */
8593 ".google.api.resource"?: (google.api.IResourceDescriptor|null);
8594 }
8595
8596 /** Represents a MessageOptions. */
8597 class MessageOptions implements IMessageOptions {
8598
8599 /**
8600 * Constructs a new MessageOptions.
8601 * @param [properties] Properties to set
8602 */
8603 constructor(properties?: google.protobuf.IMessageOptions);
8604
8605 /** MessageOptions messageSetWireFormat. */
8606 public messageSetWireFormat: boolean;
8607
8608 /** MessageOptions noStandardDescriptorAccessor. */
8609 public noStandardDescriptorAccessor: boolean;
8610
8611 /** MessageOptions deprecated. */
8612 public deprecated: boolean;
8613
8614 /** MessageOptions mapEntry. */
8615 public mapEntry: boolean;
8616
8617 /** MessageOptions uninterpretedOption. */
8618 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8619
8620 /**
8621 * Creates a new MessageOptions instance using the specified properties.
8622 * @param [properties] Properties to set
8623 * @returns MessageOptions instance
8624 */
8625 public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
8626
8627 /**
8628 * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
8629 * @param message MessageOptions message or plain object to encode
8630 * @param [writer] Writer to encode to
8631 * @returns Writer
8632 */
8633 public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8634
8635 /**
8636 * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
8637 * @param message MessageOptions message or plain object to encode
8638 * @param [writer] Writer to encode to
8639 * @returns Writer
8640 */
8641 public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8642
8643 /**
8644 * Decodes a MessageOptions message from the specified reader or buffer.
8645 * @param reader Reader or buffer to decode from
8646 * @param [length] Message length if known beforehand
8647 * @returns MessageOptions
8648 * @throws {Error} If the payload is not a reader or valid buffer
8649 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8650 */
8651 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
8652
8653 /**
8654 * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
8655 * @param reader Reader or buffer to decode from
8656 * @returns MessageOptions
8657 * @throws {Error} If the payload is not a reader or valid buffer
8658 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8659 */
8660 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
8661
8662 /**
8663 * Verifies a MessageOptions message.
8664 * @param message Plain object to verify
8665 * @returns `null` if valid, otherwise the reason why it is not
8666 */
8667 public static verify(message: { [k: string]: any }): (string|null);
8668
8669 /**
8670 * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
8671 * @param object Plain object
8672 * @returns MessageOptions
8673 */
8674 public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
8675
8676 /**
8677 * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
8678 * @param message MessageOptions
8679 * @param [options] Conversion options
8680 * @returns Plain object
8681 */
8682 public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8683
8684 /**
8685 * Converts this MessageOptions to JSON.
8686 * @returns JSON object
8687 */
8688 public toJSON(): { [k: string]: any };
8689 }
8690
8691 /** Properties of a FieldOptions. */
8692 interface IFieldOptions {
8693
8694 /** FieldOptions ctype */
8695 ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
8696
8697 /** FieldOptions packed */
8698 packed?: (boolean|null);
8699
8700 /** FieldOptions jstype */
8701 jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
8702
8703 /** FieldOptions lazy */
8704 lazy?: (boolean|null);
8705
8706 /** FieldOptions deprecated */
8707 deprecated?: (boolean|null);
8708
8709 /** FieldOptions weak */
8710 weak?: (boolean|null);
8711
8712 /** FieldOptions uninterpretedOption */
8713 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8714
8715 /** FieldOptions .google.api.fieldBehavior */
8716 ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
8717
8718 /** FieldOptions .google.api.resourceReference */
8719 ".google.api.resourceReference"?: (google.api.IResourceReference|null);
8720 }
8721
8722 /** Represents a FieldOptions. */
8723 class FieldOptions implements IFieldOptions {
8724
8725 /**
8726 * Constructs a new FieldOptions.
8727 * @param [properties] Properties to set
8728 */
8729 constructor(properties?: google.protobuf.IFieldOptions);
8730
8731 /** FieldOptions ctype. */
8732 public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
8733
8734 /** FieldOptions packed. */
8735 public packed: boolean;
8736
8737 /** FieldOptions jstype. */
8738 public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
8739
8740 /** FieldOptions lazy. */
8741 public lazy: boolean;
8742
8743 /** FieldOptions deprecated. */
8744 public deprecated: boolean;
8745
8746 /** FieldOptions weak. */
8747 public weak: boolean;
8748
8749 /** FieldOptions uninterpretedOption. */
8750 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8751
8752 /**
8753 * Creates a new FieldOptions instance using the specified properties.
8754 * @param [properties] Properties to set
8755 * @returns FieldOptions instance
8756 */
8757 public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
8758
8759 /**
8760 * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
8761 * @param message FieldOptions message or plain object to encode
8762 * @param [writer] Writer to encode to
8763 * @returns Writer
8764 */
8765 public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8766
8767 /**
8768 * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
8769 * @param message FieldOptions message or plain object to encode
8770 * @param [writer] Writer to encode to
8771 * @returns Writer
8772 */
8773 public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8774
8775 /**
8776 * Decodes a FieldOptions message from the specified reader or buffer.
8777 * @param reader Reader or buffer to decode from
8778 * @param [length] Message length if known beforehand
8779 * @returns FieldOptions
8780 * @throws {Error} If the payload is not a reader or valid buffer
8781 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8782 */
8783 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
8784
8785 /**
8786 * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
8787 * @param reader Reader or buffer to decode from
8788 * @returns FieldOptions
8789 * @throws {Error} If the payload is not a reader or valid buffer
8790 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8791 */
8792 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
8793
8794 /**
8795 * Verifies a FieldOptions message.
8796 * @param message Plain object to verify
8797 * @returns `null` if valid, otherwise the reason why it is not
8798 */
8799 public static verify(message: { [k: string]: any }): (string|null);
8800
8801 /**
8802 * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
8803 * @param object Plain object
8804 * @returns FieldOptions
8805 */
8806 public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
8807
8808 /**
8809 * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
8810 * @param message FieldOptions
8811 * @param [options] Conversion options
8812 * @returns Plain object
8813 */
8814 public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8815
8816 /**
8817 * Converts this FieldOptions to JSON.
8818 * @returns JSON object
8819 */
8820 public toJSON(): { [k: string]: any };
8821 }
8822
8823 namespace FieldOptions {
8824
8825 /** CType enum. */
8826 enum CType {
8827 STRING = 0,
8828 CORD = 1,
8829 STRING_PIECE = 2
8830 }
8831
8832 /** JSType enum. */
8833 enum JSType {
8834 JS_NORMAL = 0,
8835 JS_STRING = 1,
8836 JS_NUMBER = 2
8837 }
8838 }
8839
8840 /** Properties of an OneofOptions. */
8841 interface IOneofOptions {
8842
8843 /** OneofOptions uninterpretedOption */
8844 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8845 }
8846
8847 /** Represents an OneofOptions. */
8848 class OneofOptions implements IOneofOptions {
8849
8850 /**
8851 * Constructs a new OneofOptions.
8852 * @param [properties] Properties to set
8853 */
8854 constructor(properties?: google.protobuf.IOneofOptions);
8855
8856 /** OneofOptions uninterpretedOption. */
8857 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8858
8859 /**
8860 * Creates a new OneofOptions instance using the specified properties.
8861 * @param [properties] Properties to set
8862 * @returns OneofOptions instance
8863 */
8864 public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
8865
8866 /**
8867 * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
8868 * @param message OneofOptions message or plain object to encode
8869 * @param [writer] Writer to encode to
8870 * @returns Writer
8871 */
8872 public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8873
8874 /**
8875 * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
8876 * @param message OneofOptions message or plain object to encode
8877 * @param [writer] Writer to encode to
8878 * @returns Writer
8879 */
8880 public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8881
8882 /**
8883 * Decodes an OneofOptions message from the specified reader or buffer.
8884 * @param reader Reader or buffer to decode from
8885 * @param [length] Message length if known beforehand
8886 * @returns OneofOptions
8887 * @throws {Error} If the payload is not a reader or valid buffer
8888 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8889 */
8890 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
8891
8892 /**
8893 * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
8894 * @param reader Reader or buffer to decode from
8895 * @returns OneofOptions
8896 * @throws {Error} If the payload is not a reader or valid buffer
8897 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8898 */
8899 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
8900
8901 /**
8902 * Verifies an OneofOptions message.
8903 * @param message Plain object to verify
8904 * @returns `null` if valid, otherwise the reason why it is not
8905 */
8906 public static verify(message: { [k: string]: any }): (string|null);
8907
8908 /**
8909 * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
8910 * @param object Plain object
8911 * @returns OneofOptions
8912 */
8913 public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
8914
8915 /**
8916 * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
8917 * @param message OneofOptions
8918 * @param [options] Conversion options
8919 * @returns Plain object
8920 */
8921 public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8922
8923 /**
8924 * Converts this OneofOptions to JSON.
8925 * @returns JSON object
8926 */
8927 public toJSON(): { [k: string]: any };
8928 }
8929
8930 /** Properties of an EnumOptions. */
8931 interface IEnumOptions {
8932
8933 /** EnumOptions allowAlias */
8934 allowAlias?: (boolean|null);
8935
8936 /** EnumOptions deprecated */
8937 deprecated?: (boolean|null);
8938
8939 /** EnumOptions uninterpretedOption */
8940 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8941 }
8942
8943 /** Represents an EnumOptions. */
8944 class EnumOptions implements IEnumOptions {
8945
8946 /**
8947 * Constructs a new EnumOptions.
8948 * @param [properties] Properties to set
8949 */
8950 constructor(properties?: google.protobuf.IEnumOptions);
8951
8952 /** EnumOptions allowAlias. */
8953 public allowAlias: boolean;
8954
8955 /** EnumOptions deprecated. */
8956 public deprecated: boolean;
8957
8958 /** EnumOptions uninterpretedOption. */
8959 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8960
8961 /**
8962 * Creates a new EnumOptions instance using the specified properties.
8963 * @param [properties] Properties to set
8964 * @returns EnumOptions instance
8965 */
8966 public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
8967
8968 /**
8969 * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
8970 * @param message EnumOptions message or plain object to encode
8971 * @param [writer] Writer to encode to
8972 * @returns Writer
8973 */
8974 public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8975
8976 /**
8977 * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
8978 * @param message EnumOptions message or plain object to encode
8979 * @param [writer] Writer to encode to
8980 * @returns Writer
8981 */
8982 public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8983
8984 /**
8985 * Decodes an EnumOptions message from the specified reader or buffer.
8986 * @param reader Reader or buffer to decode from
8987 * @param [length] Message length if known beforehand
8988 * @returns EnumOptions
8989 * @throws {Error} If the payload is not a reader or valid buffer
8990 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8991 */
8992 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
8993
8994 /**
8995 * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
8996 * @param reader Reader or buffer to decode from
8997 * @returns EnumOptions
8998 * @throws {Error} If the payload is not a reader or valid buffer
8999 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9000 */
9001 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
9002
9003 /**
9004 * Verifies an EnumOptions message.
9005 * @param message Plain object to verify
9006 * @returns `null` if valid, otherwise the reason why it is not
9007 */
9008 public static verify(message: { [k: string]: any }): (string|null);
9009
9010 /**
9011 * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
9012 * @param object Plain object
9013 * @returns EnumOptions
9014 */
9015 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
9016
9017 /**
9018 * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
9019 * @param message EnumOptions
9020 * @param [options] Conversion options
9021 * @returns Plain object
9022 */
9023 public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
9024
9025 /**
9026 * Converts this EnumOptions to JSON.
9027 * @returns JSON object
9028 */
9029 public toJSON(): { [k: string]: any };
9030 }
9031
9032 /** Properties of an EnumValueOptions. */
9033 interface IEnumValueOptions {
9034
9035 /** EnumValueOptions deprecated */
9036 deprecated?: (boolean|null);
9037
9038 /** EnumValueOptions uninterpretedOption */
9039 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
9040 }
9041
9042 /** Represents an EnumValueOptions. */
9043 class EnumValueOptions implements IEnumValueOptions {
9044
9045 /**
9046 * Constructs a new EnumValueOptions.
9047 * @param [properties] Properties to set
9048 */
9049 constructor(properties?: google.protobuf.IEnumValueOptions);
9050
9051 /** EnumValueOptions deprecated. */
9052 public deprecated: boolean;
9053
9054 /** EnumValueOptions uninterpretedOption. */
9055 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
9056
9057 /**
9058 * Creates a new EnumValueOptions instance using the specified properties.
9059 * @param [properties] Properties to set
9060 * @returns EnumValueOptions instance
9061 */
9062 public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
9063
9064 /**
9065 * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
9066 * @param message EnumValueOptions message or plain object to encode
9067 * @param [writer] Writer to encode to
9068 * @returns Writer
9069 */
9070 public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9071
9072 /**
9073 * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
9074 * @param message EnumValueOptions message or plain object to encode
9075 * @param [writer] Writer to encode to
9076 * @returns Writer
9077 */
9078 public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9079
9080 /**
9081 * Decodes an EnumValueOptions message from the specified reader or buffer.
9082 * @param reader Reader or buffer to decode from
9083 * @param [length] Message length if known beforehand
9084 * @returns EnumValueOptions
9085 * @throws {Error} If the payload is not a reader or valid buffer
9086 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9087 */
9088 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
9089
9090 /**
9091 * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
9092 * @param reader Reader or buffer to decode from
9093 * @returns EnumValueOptions
9094 * @throws {Error} If the payload is not a reader or valid buffer
9095 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9096 */
9097 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
9098
9099 /**
9100 * Verifies an EnumValueOptions message.
9101 * @param message Plain object to verify
9102 * @returns `null` if valid, otherwise the reason why it is not
9103 */
9104 public static verify(message: { [k: string]: any }): (string|null);
9105
9106 /**
9107 * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
9108 * @param object Plain object
9109 * @returns EnumValueOptions
9110 */
9111 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
9112
9113 /**
9114 * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
9115 * @param message EnumValueOptions
9116 * @param [options] Conversion options
9117 * @returns Plain object
9118 */
9119 public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
9120
9121 /**
9122 * Converts this EnumValueOptions to JSON.
9123 * @returns JSON object
9124 */
9125 public toJSON(): { [k: string]: any };
9126 }
9127
9128 /** Properties of a ServiceOptions. */
9129 interface IServiceOptions {
9130
9131 /** ServiceOptions deprecated */
9132 deprecated?: (boolean|null);
9133
9134 /** ServiceOptions uninterpretedOption */
9135 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
9136
9137 /** ServiceOptions .google.api.defaultHost */
9138 ".google.api.defaultHost"?: (string|null);
9139
9140 /** ServiceOptions .google.api.oauthScopes */
9141 ".google.api.oauthScopes"?: (string|null);
9142 }
9143
9144 /** Represents a ServiceOptions. */
9145 class ServiceOptions implements IServiceOptions {
9146
9147 /**
9148 * Constructs a new ServiceOptions.
9149 * @param [properties] Properties to set
9150 */
9151 constructor(properties?: google.protobuf.IServiceOptions);
9152
9153 /** ServiceOptions deprecated. */
9154 public deprecated: boolean;
9155
9156 /** ServiceOptions uninterpretedOption. */
9157 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
9158
9159 /**
9160 * Creates a new ServiceOptions instance using the specified properties.
9161 * @param [properties] Properties to set
9162 * @returns ServiceOptions instance
9163 */
9164 public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
9165
9166 /**
9167 * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
9168 * @param message ServiceOptions message or plain object to encode
9169 * @param [writer] Writer to encode to
9170 * @returns Writer
9171 */
9172 public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9173
9174 /**
9175 * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
9176 * @param message ServiceOptions message or plain object to encode
9177 * @param [writer] Writer to encode to
9178 * @returns Writer
9179 */
9180 public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9181
9182 /**
9183 * Decodes a ServiceOptions message from the specified reader or buffer.
9184 * @param reader Reader or buffer to decode from
9185 * @param [length] Message length if known beforehand
9186 * @returns ServiceOptions
9187 * @throws {Error} If the payload is not a reader or valid buffer
9188 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9189 */
9190 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
9191
9192 /**
9193 * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
9194 * @param reader Reader or buffer to decode from
9195 * @returns ServiceOptions
9196 * @throws {Error} If the payload is not a reader or valid buffer
9197 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9198 */
9199 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
9200
9201 /**
9202 * Verifies a ServiceOptions message.
9203 * @param message Plain object to verify
9204 * @returns `null` if valid, otherwise the reason why it is not
9205 */
9206 public static verify(message: { [k: string]: any }): (string|null);
9207
9208 /**
9209 * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
9210 * @param object Plain object
9211 * @returns ServiceOptions
9212 */
9213 public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
9214
9215 /**
9216 * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
9217 * @param message ServiceOptions
9218 * @param [options] Conversion options
9219 * @returns Plain object
9220 */
9221 public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
9222
9223 /**
9224 * Converts this ServiceOptions to JSON.
9225 * @returns JSON object
9226 */
9227 public toJSON(): { [k: string]: any };
9228 }
9229
9230 /** Properties of a MethodOptions. */
9231 interface IMethodOptions {
9232
9233 /** MethodOptions deprecated */
9234 deprecated?: (boolean|null);
9235
9236 /** MethodOptions idempotencyLevel */
9237 idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
9238
9239 /** MethodOptions uninterpretedOption */
9240 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
9241
9242 /** MethodOptions .google.api.http */
9243 ".google.api.http"?: (google.api.IHttpRule|null);
9244
9245 /** MethodOptions .google.api.methodSignature */
9246 ".google.api.methodSignature"?: (string[]|null);
9247
9248 /** MethodOptions .google.longrunning.operationInfo */
9249 ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
9250 }
9251
9252 /** Represents a MethodOptions. */
9253 class MethodOptions implements IMethodOptions {
9254
9255 /**
9256 * Constructs a new MethodOptions.
9257 * @param [properties] Properties to set
9258 */
9259 constructor(properties?: google.protobuf.IMethodOptions);
9260
9261 /** MethodOptions deprecated. */
9262 public deprecated: boolean;
9263
9264 /** MethodOptions idempotencyLevel. */
9265 public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
9266
9267 /** MethodOptions uninterpretedOption. */
9268 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
9269
9270 /**
9271 * Creates a new MethodOptions instance using the specified properties.
9272 * @param [properties] Properties to set
9273 * @returns MethodOptions instance
9274 */
9275 public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
9276
9277 /**
9278 * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
9279 * @param message MethodOptions message or plain object to encode
9280 * @param [writer] Writer to encode to
9281 * @returns Writer
9282 */
9283 public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9284
9285 /**
9286 * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
9287 * @param message MethodOptions message or plain object to encode
9288 * @param [writer] Writer to encode to
9289 * @returns Writer
9290 */
9291 public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9292
9293 /**
9294 * Decodes a MethodOptions message from the specified reader or buffer.
9295 * @param reader Reader or buffer to decode from
9296 * @param [length] Message length if known beforehand
9297 * @returns MethodOptions
9298 * @throws {Error} If the payload is not a reader or valid buffer
9299 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9300 */
9301 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
9302
9303 /**
9304 * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
9305 * @param reader Reader or buffer to decode from
9306 * @returns MethodOptions
9307 * @throws {Error} If the payload is not a reader or valid buffer
9308 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9309 */
9310 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
9311
9312 /**
9313 * Verifies a MethodOptions message.
9314 * @param message Plain object to verify
9315 * @returns `null` if valid, otherwise the reason why it is not
9316 */
9317 public static verify(message: { [k: string]: any }): (string|null);
9318
9319 /**
9320 * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
9321 * @param object Plain object
9322 * @returns MethodOptions
9323 */
9324 public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
9325
9326 /**
9327 * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
9328 * @param message MethodOptions
9329 * @param [options] Conversion options
9330 * @returns Plain object
9331 */
9332 public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
9333
9334 /**
9335 * Converts this MethodOptions to JSON.
9336 * @returns JSON object
9337 */
9338 public toJSON(): { [k: string]: any };
9339 }
9340
9341 namespace MethodOptions {
9342
9343 /** IdempotencyLevel enum. */
9344 enum IdempotencyLevel {
9345 IDEMPOTENCY_UNKNOWN = 0,
9346 NO_SIDE_EFFECTS = 1,
9347 IDEMPOTENT = 2
9348 }
9349 }
9350
9351 /** Properties of an UninterpretedOption. */
9352 interface IUninterpretedOption {
9353
9354 /** UninterpretedOption name */
9355 name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
9356
9357 /** UninterpretedOption identifierValue */
9358 identifierValue?: (string|null);
9359
9360 /** UninterpretedOption positiveIntValue */
9361 positiveIntValue?: (number|Long|string|null);
9362
9363 /** UninterpretedOption negativeIntValue */
9364 negativeIntValue?: (number|Long|string|null);
9365
9366 /** UninterpretedOption doubleValue */
9367 doubleValue?: (number|null);
9368
9369 /** UninterpretedOption stringValue */
9370 stringValue?: (Uint8Array|string|null);
9371
9372 /** UninterpretedOption aggregateValue */
9373 aggregateValue?: (string|null);
9374 }
9375
9376 /** Represents an UninterpretedOption. */
9377 class UninterpretedOption implements IUninterpretedOption {
9378
9379 /**
9380 * Constructs a new UninterpretedOption.
9381 * @param [properties] Properties to set
9382 */
9383 constructor(properties?: google.protobuf.IUninterpretedOption);
9384
9385 /** UninterpretedOption name. */
9386 public name: google.protobuf.UninterpretedOption.INamePart[];
9387
9388 /** UninterpretedOption identifierValue. */
9389 public identifierValue: string;
9390
9391 /** UninterpretedOption positiveIntValue. */
9392 public positiveIntValue: (number|Long|string);
9393
9394 /** UninterpretedOption negativeIntValue. */
9395 public negativeIntValue: (number|Long|string);
9396
9397 /** UninterpretedOption doubleValue. */
9398 public doubleValue: number;
9399
9400 /** UninterpretedOption stringValue. */
9401 public stringValue: (Uint8Array|string);
9402
9403 /** UninterpretedOption aggregateValue. */
9404 public aggregateValue: string;
9405
9406 /**
9407 * Creates a new UninterpretedOption instance using the specified properties.
9408 * @param [properties] Properties to set
9409 * @returns UninterpretedOption instance
9410 */
9411 public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
9412
9413 /**
9414 * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
9415 * @param message UninterpretedOption message or plain object to encode
9416 * @param [writer] Writer to encode to
9417 * @returns Writer
9418 */
9419 public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
9420
9421 /**
9422 * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
9423 * @param message UninterpretedOption message or plain object to encode
9424 * @param [writer] Writer to encode to
9425 * @returns Writer
9426 */
9427 public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
9428
9429 /**
9430 * Decodes an UninterpretedOption message from the specified reader or buffer.
9431 * @param reader Reader or buffer to decode from
9432 * @param [length] Message length if known beforehand
9433 * @returns UninterpretedOption
9434 * @throws {Error} If the payload is not a reader or valid buffer
9435 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9436 */
9437 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
9438
9439 /**
9440 * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
9441 * @param reader Reader or buffer to decode from
9442 * @returns UninterpretedOption
9443 * @throws {Error} If the payload is not a reader or valid buffer
9444 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9445 */
9446 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
9447
9448 /**
9449 * Verifies an UninterpretedOption message.
9450 * @param message Plain object to verify
9451 * @returns `null` if valid, otherwise the reason why it is not
9452 */
9453 public static verify(message: { [k: string]: any }): (string|null);
9454
9455 /**
9456 * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
9457 * @param object Plain object
9458 * @returns UninterpretedOption
9459 */
9460 public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
9461
9462 /**
9463 * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
9464 * @param message UninterpretedOption
9465 * @param [options] Conversion options
9466 * @returns Plain object
9467 */
9468 public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
9469
9470 /**
9471 * Converts this UninterpretedOption to JSON.
9472 * @returns JSON object
9473 */
9474 public toJSON(): { [k: string]: any };
9475 }
9476
9477 namespace UninterpretedOption {
9478
9479 /** Properties of a NamePart. */
9480 interface INamePart {
9481
9482 /** NamePart namePart */
9483 namePart: string;
9484
9485 /** NamePart isExtension */
9486 isExtension: boolean;
9487 }
9488
9489 /** Represents a NamePart. */
9490 class NamePart implements INamePart {
9491
9492 /**
9493 * Constructs a new NamePart.
9494 * @param [properties] Properties to set
9495 */
9496 constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
9497
9498 /** NamePart namePart. */
9499 public namePart: string;
9500
9501 /** NamePart isExtension. */
9502 public isExtension: boolean;
9503
9504 /**
9505 * Creates a new NamePart instance using the specified properties.
9506 * @param [properties] Properties to set
9507 * @returns NamePart instance
9508 */
9509 public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
9510
9511 /**
9512 * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
9513 * @param message NamePart message or plain object to encode
9514 * @param [writer] Writer to encode to
9515 * @returns Writer
9516 */
9517 public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
9518
9519 /**
9520 * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
9521 * @param message NamePart message or plain object to encode
9522 * @param [writer] Writer to encode to
9523 * @returns Writer
9524 */
9525 public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
9526
9527 /**
9528 * Decodes a NamePart message from the specified reader or buffer.
9529 * @param reader Reader or buffer to decode from
9530 * @param [length] Message length if known beforehand
9531 * @returns NamePart
9532 * @throws {Error} If the payload is not a reader or valid buffer
9533 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9534 */
9535 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
9536
9537 /**
9538 * Decodes a NamePart message from the specified reader or buffer, length delimited.
9539 * @param reader Reader or buffer to decode from
9540 * @returns NamePart
9541 * @throws {Error} If the payload is not a reader or valid buffer
9542 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9543 */
9544 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
9545
9546 /**
9547 * Verifies a NamePart message.
9548 * @param message Plain object to verify
9549 * @returns `null` if valid, otherwise the reason why it is not
9550 */
9551 public static verify(message: { [k: string]: any }): (string|null);
9552
9553 /**
9554 * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
9555 * @param object Plain object
9556 * @returns NamePart
9557 */
9558 public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
9559
9560 /**
9561 * Creates a plain object from a NamePart message. Also converts values to other types if specified.
9562 * @param message NamePart
9563 * @param [options] Conversion options
9564 * @returns Plain object
9565 */
9566 public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
9567
9568 /**
9569 * Converts this NamePart to JSON.
9570 * @returns JSON object
9571 */
9572 public toJSON(): { [k: string]: any };
9573 }
9574 }
9575
9576 /** Properties of a SourceCodeInfo. */
9577 interface ISourceCodeInfo {
9578
9579 /** SourceCodeInfo location */
9580 location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
9581 }
9582
9583 /** Represents a SourceCodeInfo. */
9584 class SourceCodeInfo implements ISourceCodeInfo {
9585
9586 /**
9587 * Constructs a new SourceCodeInfo.
9588 * @param [properties] Properties to set
9589 */
9590 constructor(properties?: google.protobuf.ISourceCodeInfo);
9591
9592 /** SourceCodeInfo location. */
9593 public location: google.protobuf.SourceCodeInfo.ILocation[];
9594
9595 /**
9596 * Creates a new SourceCodeInfo instance using the specified properties.
9597 * @param [properties] Properties to set
9598 * @returns SourceCodeInfo instance
9599 */
9600 public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
9601
9602 /**
9603 * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
9604 * @param message SourceCodeInfo message or plain object to encode
9605 * @param [writer] Writer to encode to
9606 * @returns Writer
9607 */
9608 public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
9609
9610 /**
9611 * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
9612 * @param message SourceCodeInfo message or plain object to encode
9613 * @param [writer] Writer to encode to
9614 * @returns Writer
9615 */
9616 public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
9617
9618 /**
9619 * Decodes a SourceCodeInfo message from the specified reader or buffer.
9620 * @param reader Reader or buffer to decode from
9621 * @param [length] Message length if known beforehand
9622 * @returns SourceCodeInfo
9623 * @throws {Error} If the payload is not a reader or valid buffer
9624 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9625 */
9626 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
9627
9628 /**
9629 * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
9630 * @param reader Reader or buffer to decode from
9631 * @returns SourceCodeInfo
9632 * @throws {Error} If the payload is not a reader or valid buffer
9633 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9634 */
9635 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
9636
9637 /**
9638 * Verifies a SourceCodeInfo message.
9639 * @param message Plain object to verify
9640 * @returns `null` if valid, otherwise the reason why it is not
9641 */
9642 public static verify(message: { [k: string]: any }): (string|null);
9643
9644 /**
9645 * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
9646 * @param object Plain object
9647 * @returns SourceCodeInfo
9648 */
9649 public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
9650
9651 /**
9652 * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
9653 * @param message SourceCodeInfo
9654 * @param [options] Conversion options
9655 * @returns Plain object
9656 */
9657 public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
9658
9659 /**
9660 * Converts this SourceCodeInfo to JSON.
9661 * @returns JSON object
9662 */
9663 public toJSON(): { [k: string]: any };
9664 }
9665
9666 namespace SourceCodeInfo {
9667
9668 /** Properties of a Location. */
9669 interface ILocation {
9670
9671 /** Location path */
9672 path?: (number[]|null);
9673
9674 /** Location span */
9675 span?: (number[]|null);
9676
9677 /** Location leadingComments */
9678 leadingComments?: (string|null);
9679
9680 /** Location trailingComments */
9681 trailingComments?: (string|null);
9682
9683 /** Location leadingDetachedComments */
9684 leadingDetachedComments?: (string[]|null);
9685 }
9686
9687 /** Represents a Location. */
9688 class Location implements ILocation {
9689
9690 /**
9691 * Constructs a new Location.
9692 * @param [properties] Properties to set
9693 */
9694 constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
9695
9696 /** Location path. */
9697 public path: number[];
9698
9699 /** Location span. */
9700 public span: number[];
9701
9702 /** Location leadingComments. */
9703 public leadingComments: string;
9704
9705 /** Location trailingComments. */
9706 public trailingComments: string;
9707
9708 /** Location leadingDetachedComments. */
9709 public leadingDetachedComments: string[];
9710
9711 /**
9712 * Creates a new Location instance using the specified properties.
9713 * @param [properties] Properties to set
9714 * @returns Location instance
9715 */
9716 public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
9717
9718 /**
9719 * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
9720 * @param message Location message or plain object to encode
9721 * @param [writer] Writer to encode to
9722 * @returns Writer
9723 */
9724 public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
9725
9726 /**
9727 * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
9728 * @param message Location message or plain object to encode
9729 * @param [writer] Writer to encode to
9730 * @returns Writer
9731 */
9732 public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
9733
9734 /**
9735 * Decodes a Location message from the specified reader or buffer.
9736 * @param reader Reader or buffer to decode from
9737 * @param [length] Message length if known beforehand
9738 * @returns Location
9739 * @throws {Error} If the payload is not a reader or valid buffer
9740 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9741 */
9742 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
9743
9744 /**
9745 * Decodes a Location message from the specified reader or buffer, length delimited.
9746 * @param reader Reader or buffer to decode from
9747 * @returns Location
9748 * @throws {Error} If the payload is not a reader or valid buffer
9749 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9750 */
9751 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
9752
9753 /**
9754 * Verifies a Location message.
9755 * @param message Plain object to verify
9756 * @returns `null` if valid, otherwise the reason why it is not
9757 */
9758 public static verify(message: { [k: string]: any }): (string|null);
9759
9760 /**
9761 * Creates a Location message from a plain object. Also converts values to their respective internal types.
9762 * @param object Plain object
9763 * @returns Location
9764 */
9765 public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
9766
9767 /**
9768 * Creates a plain object from a Location message. Also converts values to other types if specified.
9769 * @param message Location
9770 * @param [options] Conversion options
9771 * @returns Plain object
9772 */
9773 public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
9774
9775 /**
9776 * Converts this Location to JSON.
9777 * @returns JSON object
9778 */
9779 public toJSON(): { [k: string]: any };
9780 }
9781 }
9782
9783 /** Properties of a GeneratedCodeInfo. */
9784 interface IGeneratedCodeInfo {
9785
9786 /** GeneratedCodeInfo annotation */
9787 annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
9788 }
9789
9790 /** Represents a GeneratedCodeInfo. */
9791 class GeneratedCodeInfo implements IGeneratedCodeInfo {
9792
9793 /**
9794 * Constructs a new GeneratedCodeInfo.
9795 * @param [properties] Properties to set
9796 */
9797 constructor(properties?: google.protobuf.IGeneratedCodeInfo);
9798
9799 /** GeneratedCodeInfo annotation. */
9800 public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
9801
9802 /**
9803 * Creates a new GeneratedCodeInfo instance using the specified properties.
9804 * @param [properties] Properties to set
9805 * @returns GeneratedCodeInfo instance
9806 */
9807 public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
9808
9809 /**
9810 * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
9811 * @param message GeneratedCodeInfo message or plain object to encode
9812 * @param [writer] Writer to encode to
9813 * @returns Writer
9814 */
9815 public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
9816
9817 /**
9818 * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
9819 * @param message GeneratedCodeInfo message or plain object to encode
9820 * @param [writer] Writer to encode to
9821 * @returns Writer
9822 */
9823 public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
9824
9825 /**
9826 * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
9827 * @param reader Reader or buffer to decode from
9828 * @param [length] Message length if known beforehand
9829 * @returns GeneratedCodeInfo
9830 * @throws {Error} If the payload is not a reader or valid buffer
9831 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9832 */
9833 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
9834
9835 /**
9836 * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
9837 * @param reader Reader or buffer to decode from
9838 * @returns GeneratedCodeInfo
9839 * @throws {Error} If the payload is not a reader or valid buffer
9840 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9841 */
9842 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
9843
9844 /**
9845 * Verifies a GeneratedCodeInfo message.
9846 * @param message Plain object to verify
9847 * @returns `null` if valid, otherwise the reason why it is not
9848 */
9849 public static verify(message: { [k: string]: any }): (string|null);
9850
9851 /**
9852 * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
9853 * @param object Plain object
9854 * @returns GeneratedCodeInfo
9855 */
9856 public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
9857
9858 /**
9859 * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
9860 * @param message GeneratedCodeInfo
9861 * @param [options] Conversion options
9862 * @returns Plain object
9863 */
9864 public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
9865
9866 /**
9867 * Converts this GeneratedCodeInfo to JSON.
9868 * @returns JSON object
9869 */
9870 public toJSON(): { [k: string]: any };
9871 }
9872
9873 namespace GeneratedCodeInfo {
9874
9875 /** Properties of an Annotation. */
9876 interface IAnnotation {
9877
9878 /** Annotation path */
9879 path?: (number[]|null);
9880
9881 /** Annotation sourceFile */
9882 sourceFile?: (string|null);
9883
9884 /** Annotation begin */
9885 begin?: (number|null);
9886
9887 /** Annotation end */
9888 end?: (number|null);
9889 }
9890
9891 /** Represents an Annotation. */
9892 class Annotation implements IAnnotation {
9893
9894 /**
9895 * Constructs a new Annotation.
9896 * @param [properties] Properties to set
9897 */
9898 constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
9899
9900 /** Annotation path. */
9901 public path: number[];
9902
9903 /** Annotation sourceFile. */
9904 public sourceFile: string;
9905
9906 /** Annotation begin. */
9907 public begin: number;
9908
9909 /** Annotation end. */
9910 public end: number;
9911
9912 /**
9913 * Creates a new Annotation instance using the specified properties.
9914 * @param [properties] Properties to set
9915 * @returns Annotation instance
9916 */
9917 public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
9918
9919 /**
9920 * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
9921 * @param message Annotation message or plain object to encode
9922 * @param [writer] Writer to encode to
9923 * @returns Writer
9924 */
9925 public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
9926
9927 /**
9928 * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
9929 * @param message Annotation message or plain object to encode
9930 * @param [writer] Writer to encode to
9931 * @returns Writer
9932 */
9933 public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
9934
9935 /**
9936 * Decodes an Annotation message from the specified reader or buffer.
9937 * @param reader Reader or buffer to decode from
9938 * @param [length] Message length if known beforehand
9939 * @returns Annotation
9940 * @throws {Error} If the payload is not a reader or valid buffer
9941 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9942 */
9943 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
9944
9945 /**
9946 * Decodes an Annotation message from the specified reader or buffer, length delimited.
9947 * @param reader Reader or buffer to decode from
9948 * @returns Annotation
9949 * @throws {Error} If the payload is not a reader or valid buffer
9950 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9951 */
9952 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
9953
9954 /**
9955 * Verifies an Annotation message.
9956 * @param message Plain object to verify
9957 * @returns `null` if valid, otherwise the reason why it is not
9958 */
9959 public static verify(message: { [k: string]: any }): (string|null);
9960
9961 /**
9962 * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
9963 * @param object Plain object
9964 * @returns Annotation
9965 */
9966 public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
9967
9968 /**
9969 * Creates a plain object from an Annotation message. Also converts values to other types if specified.
9970 * @param message Annotation
9971 * @param [options] Conversion options
9972 * @returns Plain object
9973 */
9974 public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
9975
9976 /**
9977 * Converts this Annotation to JSON.
9978 * @returns JSON object
9979 */
9980 public toJSON(): { [k: string]: any };
9981 }
9982 }
9983
9984 /** Properties of an Any. */
9985 interface IAny {
9986
9987 /** Any type_url */
9988 type_url?: (string|null);
9989
9990 /** Any value */
9991 value?: (Uint8Array|string|null);
9992 }
9993
9994 /** Represents an Any. */
9995 class Any implements IAny {
9996
9997 /**
9998 * Constructs a new Any.
9999 * @param [properties] Properties to set
10000 */
10001 constructor(properties?: google.protobuf.IAny);
10002
10003 /** Any type_url. */
10004 public type_url: string;
10005
10006 /** Any value. */
10007 public value: (Uint8Array|string);
10008
10009 /**
10010 * Creates a new Any instance using the specified properties.
10011 * @param [properties] Properties to set
10012 * @returns Any instance
10013 */
10014 public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
10015
10016 /**
10017 * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
10018 * @param message Any message or plain object to encode
10019 * @param [writer] Writer to encode to
10020 * @returns Writer
10021 */
10022 public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
10023
10024 /**
10025 * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
10026 * @param message Any message or plain object to encode
10027 * @param [writer] Writer to encode to
10028 * @returns Writer
10029 */
10030 public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
10031
10032 /**
10033 * Decodes an Any message from the specified reader or buffer.
10034 * @param reader Reader or buffer to decode from
10035 * @param [length] Message length if known beforehand
10036 * @returns Any
10037 * @throws {Error} If the payload is not a reader or valid buffer
10038 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10039 */
10040 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
10041
10042 /**
10043 * Decodes an Any message from the specified reader or buffer, length delimited.
10044 * @param reader Reader or buffer to decode from
10045 * @returns Any
10046 * @throws {Error} If the payload is not a reader or valid buffer
10047 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10048 */
10049 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
10050
10051 /**
10052 * Verifies an Any message.
10053 * @param message Plain object to verify
10054 * @returns `null` if valid, otherwise the reason why it is not
10055 */
10056 public static verify(message: { [k: string]: any }): (string|null);
10057
10058 /**
10059 * Creates an Any message from a plain object. Also converts values to their respective internal types.
10060 * @param object Plain object
10061 * @returns Any
10062 */
10063 public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
10064
10065 /**
10066 * Creates a plain object from an Any message. Also converts values to other types if specified.
10067 * @param message Any
10068 * @param [options] Conversion options
10069 * @returns Plain object
10070 */
10071 public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
10072
10073 /**
10074 * Converts this Any to JSON.
10075 * @returns JSON object
10076 */
10077 public toJSON(): { [k: string]: any };
10078 }
10079
10080 /** Properties of a Duration. */
10081 interface IDuration {
10082
10083 /** Duration seconds */
10084 seconds?: (number|Long|string|null);
10085
10086 /** Duration nanos */
10087 nanos?: (number|null);
10088 }
10089
10090 /** Represents a Duration. */
10091 class Duration implements IDuration {
10092
10093 /**
10094 * Constructs a new Duration.
10095 * @param [properties] Properties to set
10096 */
10097 constructor(properties?: google.protobuf.IDuration);
10098
10099 /** Duration seconds. */
10100 public seconds: (number|Long|string);
10101
10102 /** Duration nanos. */
10103 public nanos: number;
10104
10105 /**
10106 * Creates a new Duration instance using the specified properties.
10107 * @param [properties] Properties to set
10108 * @returns Duration instance
10109 */
10110 public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
10111
10112 /**
10113 * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
10114 * @param message Duration message or plain object to encode
10115 * @param [writer] Writer to encode to
10116 * @returns Writer
10117 */
10118 public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
10119
10120 /**
10121 * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
10122 * @param message Duration message or plain object to encode
10123 * @param [writer] Writer to encode to
10124 * @returns Writer
10125 */
10126 public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
10127
10128 /**
10129 * Decodes a Duration message from the specified reader or buffer.
10130 * @param reader Reader or buffer to decode from
10131 * @param [length] Message length if known beforehand
10132 * @returns Duration
10133 * @throws {Error} If the payload is not a reader or valid buffer
10134 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10135 */
10136 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
10137
10138 /**
10139 * Decodes a Duration message from the specified reader or buffer, length delimited.
10140 * @param reader Reader or buffer to decode from
10141 * @returns Duration
10142 * @throws {Error} If the payload is not a reader or valid buffer
10143 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10144 */
10145 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
10146
10147 /**
10148 * Verifies a Duration message.
10149 * @param message Plain object to verify
10150 * @returns `null` if valid, otherwise the reason why it is not
10151 */
10152 public static verify(message: { [k: string]: any }): (string|null);
10153
10154 /**
10155 * Creates a Duration message from a plain object. Also converts values to their respective internal types.
10156 * @param object Plain object
10157 * @returns Duration
10158 */
10159 public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
10160
10161 /**
10162 * Creates a plain object from a Duration message. Also converts values to other types if specified.
10163 * @param message Duration
10164 * @param [options] Conversion options
10165 * @returns Plain object
10166 */
10167 public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
10168
10169 /**
10170 * Converts this Duration to JSON.
10171 * @returns JSON object
10172 */
10173 public toJSON(): { [k: string]: any };
10174 }
10175
10176 /** Properties of an Empty. */
10177 interface IEmpty {
10178 }
10179
10180 /** Represents an Empty. */
10181 class Empty implements IEmpty {
10182
10183 /**
10184 * Constructs a new Empty.
10185 * @param [properties] Properties to set
10186 */
10187 constructor(properties?: google.protobuf.IEmpty);
10188
10189 /**
10190 * Creates a new Empty instance using the specified properties.
10191 * @param [properties] Properties to set
10192 * @returns Empty instance
10193 */
10194 public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
10195
10196 /**
10197 * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
10198 * @param message Empty message or plain object to encode
10199 * @param [writer] Writer to encode to
10200 * @returns Writer
10201 */
10202 public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
10203
10204 /**
10205 * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
10206 * @param message Empty message or plain object to encode
10207 * @param [writer] Writer to encode to
10208 * @returns Writer
10209 */
10210 public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
10211
10212 /**
10213 * Decodes an Empty message from the specified reader or buffer.
10214 * @param reader Reader or buffer to decode from
10215 * @param [length] Message length if known beforehand
10216 * @returns Empty
10217 * @throws {Error} If the payload is not a reader or valid buffer
10218 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10219 */
10220 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
10221
10222 /**
10223 * Decodes an Empty message from the specified reader or buffer, length delimited.
10224 * @param reader Reader or buffer to decode from
10225 * @returns Empty
10226 * @throws {Error} If the payload is not a reader or valid buffer
10227 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10228 */
10229 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
10230
10231 /**
10232 * Verifies an Empty message.
10233 * @param message Plain object to verify
10234 * @returns `null` if valid, otherwise the reason why it is not
10235 */
10236 public static verify(message: { [k: string]: any }): (string|null);
10237
10238 /**
10239 * Creates an Empty message from a plain object. Also converts values to their respective internal types.
10240 * @param object Plain object
10241 * @returns Empty
10242 */
10243 public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
10244
10245 /**
10246 * Creates a plain object from an Empty message. Also converts values to other types if specified.
10247 * @param message Empty
10248 * @param [options] Conversion options
10249 * @returns Plain object
10250 */
10251 public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
10252
10253 /**
10254 * Converts this Empty to JSON.
10255 * @returns JSON object
10256 */
10257 public toJSON(): { [k: string]: any };
10258 }
10259
10260 /** Properties of a Timestamp. */
10261 interface ITimestamp {
10262
10263 /** Timestamp seconds */
10264 seconds?: (number|Long|string|null);
10265
10266 /** Timestamp nanos */
10267 nanos?: (number|null);
10268 }
10269
10270 /** Represents a Timestamp. */
10271 class Timestamp implements ITimestamp {
10272
10273 /**
10274 * Constructs a new Timestamp.
10275 * @param [properties] Properties to set
10276 */
10277 constructor(properties?: google.protobuf.ITimestamp);
10278
10279 /** Timestamp seconds. */
10280 public seconds: (number|Long|string);
10281
10282 /** Timestamp nanos. */
10283 public nanos: number;
10284
10285 /**
10286 * Creates a new Timestamp instance using the specified properties.
10287 * @param [properties] Properties to set
10288 * @returns Timestamp instance
10289 */
10290 public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
10291
10292 /**
10293 * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
10294 * @param message Timestamp message or plain object to encode
10295 * @param [writer] Writer to encode to
10296 * @returns Writer
10297 */
10298 public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
10299
10300 /**
10301 * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
10302 * @param message Timestamp message or plain object to encode
10303 * @param [writer] Writer to encode to
10304 * @returns Writer
10305 */
10306 public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
10307
10308 /**
10309 * Decodes a Timestamp 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 Timestamp
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.Timestamp;
10317
10318 /**
10319 * Decodes a Timestamp message from the specified reader or buffer, length delimited.
10320 * @param reader Reader or buffer to decode from
10321 * @returns Timestamp
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.Timestamp;
10326
10327 /**
10328 * Verifies a Timestamp 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 Timestamp message from a plain object. Also converts values to their respective internal types.
10336 * @param object Plain object
10337 * @returns Timestamp
10338 */
10339 public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
10340
10341 /**
10342 * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
10343 * @param message Timestamp
10344 * @param [options] Conversion options
10345 * @returns Plain object
10346 */
10347 public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
10348
10349 /**
10350 * Converts this Timestamp to JSON.
10351 * @returns JSON object
10352 */
10353 public toJSON(): { [k: string]: any };
10354 }
10355
10356 /** Properties of a DoubleValue. */
10357 interface IDoubleValue {
10358
10359 /** DoubleValue value */
10360 value?: (number|null);
10361 }
10362
10363 /** Represents a DoubleValue. */
10364 class DoubleValue implements IDoubleValue {
10365
10366 /**
10367 * Constructs a new DoubleValue.
10368 * @param [properties] Properties to set
10369 */
10370 constructor(properties?: google.protobuf.IDoubleValue);
10371
10372 /** DoubleValue value. */
10373 public value: number;
10374
10375 /**
10376 * Creates a new DoubleValue instance using the specified properties.
10377 * @param [properties] Properties to set
10378 * @returns DoubleValue instance
10379 */
10380 public static create(properties?: google.protobuf.IDoubleValue): google.protobuf.DoubleValue;
10381
10382 /**
10383 * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
10384 * @param message DoubleValue message or plain object to encode
10385 * @param [writer] Writer to encode to
10386 * @returns Writer
10387 */
10388 public static encode(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
10389
10390 /**
10391 * Encodes the specified DoubleValue message, length delimited. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
10392 * @param message DoubleValue message or plain object to encode
10393 * @param [writer] Writer to encode to
10394 * @returns Writer
10395 */
10396 public static encodeDelimited(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
10397
10398 /**
10399 * Decodes a DoubleValue message from the specified reader or buffer.
10400 * @param reader Reader or buffer to decode from
10401 * @param [length] Message length if known beforehand
10402 * @returns DoubleValue
10403 * @throws {Error} If the payload is not a reader or valid buffer
10404 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10405 */
10406 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DoubleValue;
10407
10408 /**
10409 * Decodes a DoubleValue message from the specified reader or buffer, length delimited.
10410 * @param reader Reader or buffer to decode from
10411 * @returns DoubleValue
10412 * @throws {Error} If the payload is not a reader or valid buffer
10413 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10414 */
10415 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DoubleValue;
10416
10417 /**
10418 * Verifies a DoubleValue message.
10419 * @param message Plain object to verify
10420 * @returns `null` if valid, otherwise the reason why it is not
10421 */
10422 public static verify(message: { [k: string]: any }): (string|null);
10423
10424 /**
10425 * Creates a DoubleValue message from a plain object. Also converts values to their respective internal types.
10426 * @param object Plain object
10427 * @returns DoubleValue
10428 */
10429 public static fromObject(object: { [k: string]: any }): google.protobuf.DoubleValue;
10430
10431 /**
10432 * Creates a plain object from a DoubleValue message. Also converts values to other types if specified.
10433 * @param message DoubleValue
10434 * @param [options] Conversion options
10435 * @returns Plain object
10436 */
10437 public static toObject(message: google.protobuf.DoubleValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
10438
10439 /**
10440 * Converts this DoubleValue to JSON.
10441 * @returns JSON object
10442 */
10443 public toJSON(): { [k: string]: any };
10444 }
10445
10446 /** Properties of a FloatValue. */
10447 interface IFloatValue {
10448
10449 /** FloatValue value */
10450 value?: (number|null);
10451 }
10452
10453 /** Represents a FloatValue. */
10454 class FloatValue implements IFloatValue {
10455
10456 /**
10457 * Constructs a new FloatValue.
10458 * @param [properties] Properties to set
10459 */
10460 constructor(properties?: google.protobuf.IFloatValue);
10461
10462 /** FloatValue value. */
10463 public value: number;
10464
10465 /**
10466 * Creates a new FloatValue instance using the specified properties.
10467 * @param [properties] Properties to set
10468 * @returns FloatValue instance
10469 */
10470 public static create(properties?: google.protobuf.IFloatValue): google.protobuf.FloatValue;
10471
10472 /**
10473 * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
10474 * @param message FloatValue message or plain object to encode
10475 * @param [writer] Writer to encode to
10476 * @returns Writer
10477 */
10478 public static encode(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
10479
10480 /**
10481 * Encodes the specified FloatValue message, length delimited. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
10482 * @param message FloatValue message or plain object to encode
10483 * @param [writer] Writer to encode to
10484 * @returns Writer
10485 */
10486 public static encodeDelimited(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
10487
10488 /**
10489 * Decodes a FloatValue message from the specified reader or buffer.
10490 * @param reader Reader or buffer to decode from
10491 * @param [length] Message length if known beforehand
10492 * @returns FloatValue
10493 * @throws {Error} If the payload is not a reader or valid buffer
10494 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10495 */
10496 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FloatValue;
10497
10498 /**
10499 * Decodes a FloatValue message from the specified reader or buffer, length delimited.
10500 * @param reader Reader or buffer to decode from
10501 * @returns FloatValue
10502 * @throws {Error} If the payload is not a reader or valid buffer
10503 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10504 */
10505 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FloatValue;
10506
10507 /**
10508 * Verifies a FloatValue message.
10509 * @param message Plain object to verify
10510 * @returns `null` if valid, otherwise the reason why it is not
10511 */
10512 public static verify(message: { [k: string]: any }): (string|null);
10513
10514 /**
10515 * Creates a FloatValue message from a plain object. Also converts values to their respective internal types.
10516 * @param object Plain object
10517 * @returns FloatValue
10518 */
10519 public static fromObject(object: { [k: string]: any }): google.protobuf.FloatValue;
10520
10521 /**
10522 * Creates a plain object from a FloatValue message. Also converts values to other types if specified.
10523 * @param message FloatValue
10524 * @param [options] Conversion options
10525 * @returns Plain object
10526 */
10527 public static toObject(message: google.protobuf.FloatValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
10528
10529 /**
10530 * Converts this FloatValue to JSON.
10531 * @returns JSON object
10532 */
10533 public toJSON(): { [k: string]: any };
10534 }
10535
10536 /** Properties of an Int64Value. */
10537 interface IInt64Value {
10538
10539 /** Int64Value value */
10540 value?: (number|Long|string|null);
10541 }
10542
10543 /** Represents an Int64Value. */
10544 class Int64Value implements IInt64Value {
10545
10546 /**
10547 * Constructs a new Int64Value.
10548 * @param [properties] Properties to set
10549 */
10550 constructor(properties?: google.protobuf.IInt64Value);
10551
10552 /** Int64Value value. */
10553 public value: (number|Long|string);
10554
10555 /**
10556 * Creates a new Int64Value instance using the specified properties.
10557 * @param [properties] Properties to set
10558 * @returns Int64Value instance
10559 */
10560 public static create(properties?: google.protobuf.IInt64Value): google.protobuf.Int64Value;
10561
10562 /**
10563 * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
10564 * @param message Int64Value message or plain object to encode
10565 * @param [writer] Writer to encode to
10566 * @returns Writer
10567 */
10568 public static encode(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
10569
10570 /**
10571 * Encodes the specified Int64Value message, length delimited. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
10572 * @param message Int64Value message or plain object to encode
10573 * @param [writer] Writer to encode to
10574 * @returns Writer
10575 */
10576 public static encodeDelimited(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
10577
10578 /**
10579 * Decodes an Int64Value 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 Int64Value
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.Int64Value;
10587
10588 /**
10589 * Decodes an Int64Value message from the specified reader or buffer, length delimited.
10590 * @param reader Reader or buffer to decode from
10591 * @returns Int64Value
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.Int64Value;
10596
10597 /**
10598 * Verifies an Int64Value 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 an Int64Value message from a plain object. Also converts values to their respective internal types.
10606 * @param object Plain object
10607 * @returns Int64Value
10608 */
10609 public static fromObject(object: { [k: string]: any }): google.protobuf.Int64Value;
10610
10611 /**
10612 * Creates a plain object from an Int64Value message. Also converts values to other types if specified.
10613 * @param message Int64Value
10614 * @param [options] Conversion options
10615 * @returns Plain object
10616 */
10617 public static toObject(message: google.protobuf.Int64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
10618
10619 /**
10620 * Converts this Int64Value to JSON.
10621 * @returns JSON object
10622 */
10623 public toJSON(): { [k: string]: any };
10624 }
10625
10626 /** Properties of a UInt64Value. */
10627 interface IUInt64Value {
10628
10629 /** UInt64Value value */
10630 value?: (number|Long|string|null);
10631 }
10632
10633 /** Represents a UInt64Value. */
10634 class UInt64Value implements IUInt64Value {
10635
10636 /**
10637 * Constructs a new UInt64Value.
10638 * @param [properties] Properties to set
10639 */
10640 constructor(properties?: google.protobuf.IUInt64Value);
10641
10642 /** UInt64Value value. */
10643 public value: (number|Long|string);
10644
10645 /**
10646 * Creates a new UInt64Value instance using the specified properties.
10647 * @param [properties] Properties to set
10648 * @returns UInt64Value instance
10649 */
10650 public static create(properties?: google.protobuf.IUInt64Value): google.protobuf.UInt64Value;
10651
10652 /**
10653 * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
10654 * @param message UInt64Value message or plain object to encode
10655 * @param [writer] Writer to encode to
10656 * @returns Writer
10657 */
10658 public static encode(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
10659
10660 /**
10661 * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
10662 * @param message UInt64Value message or plain object to encode
10663 * @param [writer] Writer to encode to
10664 * @returns Writer
10665 */
10666 public static encodeDelimited(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
10667
10668 /**
10669 * Decodes a UInt64Value message from the specified reader or buffer.
10670 * @param reader Reader or buffer to decode from
10671 * @param [length] Message length if known beforehand
10672 * @returns UInt64Value
10673 * @throws {Error} If the payload is not a reader or valid buffer
10674 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10675 */
10676 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt64Value;
10677
10678 /**
10679 * Decodes a UInt64Value message from the specified reader or buffer, length delimited.
10680 * @param reader Reader or buffer to decode from
10681 * @returns UInt64Value
10682 * @throws {Error} If the payload is not a reader or valid buffer
10683 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10684 */
10685 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UInt64Value;
10686
10687 /**
10688 * Verifies a UInt64Value message.
10689 * @param message Plain object to verify
10690 * @returns `null` if valid, otherwise the reason why it is not
10691 */
10692 public static verify(message: { [k: string]: any }): (string|null);
10693
10694 /**
10695 * Creates a UInt64Value message from a plain object. Also converts values to their respective internal types.
10696 * @param object Plain object
10697 * @returns UInt64Value
10698 */
10699 public static fromObject(object: { [k: string]: any }): google.protobuf.UInt64Value;
10700
10701 /**
10702 * Creates a plain object from a UInt64Value message. Also converts values to other types if specified.
10703 * @param message UInt64Value
10704 * @param [options] Conversion options
10705 * @returns Plain object
10706 */
10707 public static toObject(message: google.protobuf.UInt64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
10708
10709 /**
10710 * Converts this UInt64Value to JSON.
10711 * @returns JSON object
10712 */
10713 public toJSON(): { [k: string]: any };
10714 }
10715
10716 /** Properties of an Int32Value. */
10717 interface IInt32Value {
10718
10719 /** Int32Value value */
10720 value?: (number|null);
10721 }
10722
10723 /** Represents an Int32Value. */
10724 class Int32Value implements IInt32Value {
10725
10726 /**
10727 * Constructs a new Int32Value.
10728 * @param [properties] Properties to set
10729 */
10730 constructor(properties?: google.protobuf.IInt32Value);
10731
10732 /** Int32Value value. */
10733 public value: number;
10734
10735 /**
10736 * Creates a new Int32Value instance using the specified properties.
10737 * @param [properties] Properties to set
10738 * @returns Int32Value instance
10739 */
10740 public static create(properties?: google.protobuf.IInt32Value): google.protobuf.Int32Value;
10741
10742 /**
10743 * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
10744 * @param message Int32Value message or plain object to encode
10745 * @param [writer] Writer to encode to
10746 * @returns Writer
10747 */
10748 public static encode(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
10749
10750 /**
10751 * Encodes the specified Int32Value message, length delimited. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
10752 * @param message Int32Value message or plain object to encode
10753 * @param [writer] Writer to encode to
10754 * @returns Writer
10755 */
10756 public static encodeDelimited(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
10757
10758 /**
10759 * Decodes an Int32Value message from the specified reader or buffer.
10760 * @param reader Reader or buffer to decode from
10761 * @param [length] Message length if known beforehand
10762 * @returns Int32Value
10763 * @throws {Error} If the payload is not a reader or valid buffer
10764 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10765 */
10766 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int32Value;
10767
10768 /**
10769 * Decodes an Int32Value message from the specified reader or buffer, length delimited.
10770 * @param reader Reader or buffer to decode from
10771 * @returns Int32Value
10772 * @throws {Error} If the payload is not a reader or valid buffer
10773 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10774 */
10775 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Int32Value;
10776
10777 /**
10778 * Verifies an Int32Value message.
10779 * @param message Plain object to verify
10780 * @returns `null` if valid, otherwise the reason why it is not
10781 */
10782 public static verify(message: { [k: string]: any }): (string|null);
10783
10784 /**
10785 * Creates an Int32Value message from a plain object. Also converts values to their respective internal types.
10786 * @param object Plain object
10787 * @returns Int32Value
10788 */
10789 public static fromObject(object: { [k: string]: any }): google.protobuf.Int32Value;
10790
10791 /**
10792 * Creates a plain object from an Int32Value message. Also converts values to other types if specified.
10793 * @param message Int32Value
10794 * @param [options] Conversion options
10795 * @returns Plain object
10796 */
10797 public static toObject(message: google.protobuf.Int32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
10798
10799 /**
10800 * Converts this Int32Value to JSON.
10801 * @returns JSON object
10802 */
10803 public toJSON(): { [k: string]: any };
10804 }
10805
10806 /** Properties of a UInt32Value. */
10807 interface IUInt32Value {
10808
10809 /** UInt32Value value */
10810 value?: (number|null);
10811 }
10812
10813 /** Represents a UInt32Value. */
10814 class UInt32Value implements IUInt32Value {
10815
10816 /**
10817 * Constructs a new UInt32Value.
10818 * @param [properties] Properties to set
10819 */
10820 constructor(properties?: google.protobuf.IUInt32Value);
10821
10822 /** UInt32Value value. */
10823 public value: number;
10824
10825 /**
10826 * Creates a new UInt32Value instance using the specified properties.
10827 * @param [properties] Properties to set
10828 * @returns UInt32Value instance
10829 */
10830 public static create(properties?: google.protobuf.IUInt32Value): google.protobuf.UInt32Value;
10831
10832 /**
10833 * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
10834 * @param message UInt32Value message or plain object to encode
10835 * @param [writer] Writer to encode to
10836 * @returns Writer
10837 */
10838 public static encode(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
10839
10840 /**
10841 * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
10842 * @param message UInt32Value message or plain object to encode
10843 * @param [writer] Writer to encode to
10844 * @returns Writer
10845 */
10846 public static encodeDelimited(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
10847
10848 /**
10849 * Decodes a UInt32Value message from the specified reader or buffer.
10850 * @param reader Reader or buffer to decode from
10851 * @param [length] Message length if known beforehand
10852 * @returns UInt32Value
10853 * @throws {Error} If the payload is not a reader or valid buffer
10854 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10855 */
10856 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt32Value;
10857
10858 /**
10859 * Decodes a UInt32Value message from the specified reader or buffer, length delimited.
10860 * @param reader Reader or buffer to decode from
10861 * @returns UInt32Value
10862 * @throws {Error} If the payload is not a reader or valid buffer
10863 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10864 */
10865 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UInt32Value;
10866
10867 /**
10868 * Verifies a UInt32Value message.
10869 * @param message Plain object to verify
10870 * @returns `null` if valid, otherwise the reason why it is not
10871 */
10872 public static verify(message: { [k: string]: any }): (string|null);
10873
10874 /**
10875 * Creates a UInt32Value message from a plain object. Also converts values to their respective internal types.
10876 * @param object Plain object
10877 * @returns UInt32Value
10878 */
10879 public static fromObject(object: { [k: string]: any }): google.protobuf.UInt32Value;
10880
10881 /**
10882 * Creates a plain object from a UInt32Value message. Also converts values to other types if specified.
10883 * @param message UInt32Value
10884 * @param [options] Conversion options
10885 * @returns Plain object
10886 */
10887 public static toObject(message: google.protobuf.UInt32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
10888
10889 /**
10890 * Converts this UInt32Value to JSON.
10891 * @returns JSON object
10892 */
10893 public toJSON(): { [k: string]: any };
10894 }
10895
10896 /** Properties of a BoolValue. */
10897 interface IBoolValue {
10898
10899 /** BoolValue value */
10900 value?: (boolean|null);
10901 }
10902
10903 /** Represents a BoolValue. */
10904 class BoolValue implements IBoolValue {
10905
10906 /**
10907 * Constructs a new BoolValue.
10908 * @param [properties] Properties to set
10909 */
10910 constructor(properties?: google.protobuf.IBoolValue);
10911
10912 /** BoolValue value. */
10913 public value: boolean;
10914
10915 /**
10916 * Creates a new BoolValue instance using the specified properties.
10917 * @param [properties] Properties to set
10918 * @returns BoolValue instance
10919 */
10920 public static create(properties?: google.protobuf.IBoolValue): google.protobuf.BoolValue;
10921
10922 /**
10923 * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
10924 * @param message BoolValue message or plain object to encode
10925 * @param [writer] Writer to encode to
10926 * @returns Writer
10927 */
10928 public static encode(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
10929
10930 /**
10931 * Encodes the specified BoolValue message, length delimited. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
10932 * @param message BoolValue message or plain object to encode
10933 * @param [writer] Writer to encode to
10934 * @returns Writer
10935 */
10936 public static encodeDelimited(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
10937
10938 /**
10939 * Decodes a BoolValue message from the specified reader or buffer.
10940 * @param reader Reader or buffer to decode from
10941 * @param [length] Message length if known beforehand
10942 * @returns BoolValue
10943 * @throws {Error} If the payload is not a reader or valid buffer
10944 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10945 */
10946 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BoolValue;
10947
10948 /**
10949 * Decodes a BoolValue message from the specified reader or buffer, length delimited.
10950 * @param reader Reader or buffer to decode from
10951 * @returns BoolValue
10952 * @throws {Error} If the payload is not a reader or valid buffer
10953 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10954 */
10955 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.BoolValue;
10956
10957 /**
10958 * Verifies a BoolValue message.
10959 * @param message Plain object to verify
10960 * @returns `null` if valid, otherwise the reason why it is not
10961 */
10962 public static verify(message: { [k: string]: any }): (string|null);
10963
10964 /**
10965 * Creates a BoolValue message from a plain object. Also converts values to their respective internal types.
10966 * @param object Plain object
10967 * @returns BoolValue
10968 */
10969 public static fromObject(object: { [k: string]: any }): google.protobuf.BoolValue;
10970
10971 /**
10972 * Creates a plain object from a BoolValue message. Also converts values to other types if specified.
10973 * @param message BoolValue
10974 * @param [options] Conversion options
10975 * @returns Plain object
10976 */
10977 public static toObject(message: google.protobuf.BoolValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
10978
10979 /**
10980 * Converts this BoolValue to JSON.
10981 * @returns JSON object
10982 */
10983 public toJSON(): { [k: string]: any };
10984 }
10985
10986 /** Properties of a StringValue. */
10987 interface IStringValue {
10988
10989 /** StringValue value */
10990 value?: (string|null);
10991 }
10992
10993 /** Represents a StringValue. */
10994 class StringValue implements IStringValue {
10995
10996 /**
10997 * Constructs a new StringValue.
10998 * @param [properties] Properties to set
10999 */
11000 constructor(properties?: google.protobuf.IStringValue);
11001
11002 /** StringValue value. */
11003 public value: string;
11004
11005 /**
11006 * Creates a new StringValue instance using the specified properties.
11007 * @param [properties] Properties to set
11008 * @returns StringValue instance
11009 */
11010 public static create(properties?: google.protobuf.IStringValue): google.protobuf.StringValue;
11011
11012 /**
11013 * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
11014 * @param message StringValue message or plain object to encode
11015 * @param [writer] Writer to encode to
11016 * @returns Writer
11017 */
11018 public static encode(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
11019
11020 /**
11021 * Encodes the specified StringValue message, length delimited. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
11022 * @param message StringValue message or plain object to encode
11023 * @param [writer] Writer to encode to
11024 * @returns Writer
11025 */
11026 public static encodeDelimited(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
11027
11028 /**
11029 * Decodes a StringValue message from the specified reader or buffer.
11030 * @param reader Reader or buffer to decode from
11031 * @param [length] Message length if known beforehand
11032 * @returns StringValue
11033 * @throws {Error} If the payload is not a reader or valid buffer
11034 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11035 */
11036 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.StringValue;
11037
11038 /**
11039 * Decodes a StringValue message from the specified reader or buffer, length delimited.
11040 * @param reader Reader or buffer to decode from
11041 * @returns StringValue
11042 * @throws {Error} If the payload is not a reader or valid buffer
11043 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11044 */
11045 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.StringValue;
11046
11047 /**
11048 * Verifies a StringValue message.
11049 * @param message Plain object to verify
11050 * @returns `null` if valid, otherwise the reason why it is not
11051 */
11052 public static verify(message: { [k: string]: any }): (string|null);
11053
11054 /**
11055 * Creates a StringValue message from a plain object. Also converts values to their respective internal types.
11056 * @param object Plain object
11057 * @returns StringValue
11058 */
11059 public static fromObject(object: { [k: string]: any }): google.protobuf.StringValue;
11060
11061 /**
11062 * Creates a plain object from a StringValue message. Also converts values to other types if specified.
11063 * @param message StringValue
11064 * @param [options] Conversion options
11065 * @returns Plain object
11066 */
11067 public static toObject(message: google.protobuf.StringValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
11068
11069 /**
11070 * Converts this StringValue to JSON.
11071 * @returns JSON object
11072 */
11073 public toJSON(): { [k: string]: any };
11074 }
11075
11076 /** Properties of a BytesValue. */
11077 interface IBytesValue {
11078
11079 /** BytesValue value */
11080 value?: (Uint8Array|string|null);
11081 }
11082
11083 /** Represents a BytesValue. */
11084 class BytesValue implements IBytesValue {
11085
11086 /**
11087 * Constructs a new BytesValue.
11088 * @param [properties] Properties to set
11089 */
11090 constructor(properties?: google.protobuf.IBytesValue);
11091
11092 /** BytesValue value. */
11093 public value: (Uint8Array|string);
11094
11095 /**
11096 * Creates a new BytesValue instance using the specified properties.
11097 * @param [properties] Properties to set
11098 * @returns BytesValue instance
11099 */
11100 public static create(properties?: google.protobuf.IBytesValue): google.protobuf.BytesValue;
11101
11102 /**
11103 * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
11104 * @param message BytesValue message or plain object to encode
11105 * @param [writer] Writer to encode to
11106 * @returns Writer
11107 */
11108 public static encode(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
11109
11110 /**
11111 * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
11112 * @param message BytesValue message or plain object to encode
11113 * @param [writer] Writer to encode to
11114 * @returns Writer
11115 */
11116 public static encodeDelimited(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
11117
11118 /**
11119 * Decodes a BytesValue message from the specified reader or buffer.
11120 * @param reader Reader or buffer to decode from
11121 * @param [length] Message length if known beforehand
11122 * @returns BytesValue
11123 * @throws {Error} If the payload is not a reader or valid buffer
11124 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11125 */
11126 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BytesValue;
11127
11128 /**
11129 * Decodes a BytesValue message from the specified reader or buffer, length delimited.
11130 * @param reader Reader or buffer to decode from
11131 * @returns BytesValue
11132 * @throws {Error} If the payload is not a reader or valid buffer
11133 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11134 */
11135 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.BytesValue;
11136
11137 /**
11138 * Verifies a BytesValue message.
11139 * @param message Plain object to verify
11140 * @returns `null` if valid, otherwise the reason why it is not
11141 */
11142 public static verify(message: { [k: string]: any }): (string|null);
11143
11144 /**
11145 * Creates a BytesValue message from a plain object. Also converts values to their respective internal types.
11146 * @param object Plain object
11147 * @returns BytesValue
11148 */
11149 public static fromObject(object: { [k: string]: any }): google.protobuf.BytesValue;
11150
11151 /**
11152 * Creates a plain object from a BytesValue message. Also converts values to other types if specified.
11153 * @param message BytesValue
11154 * @param [options] Conversion options
11155 * @returns Plain object
11156 */
11157 public static toObject(message: google.protobuf.BytesValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
11158
11159 /**
11160 * Converts this BytesValue to JSON.
11161 * @returns JSON object
11162 */
11163 public toJSON(): { [k: string]: any };
11164 }
11165
11166 /** Properties of a FieldMask. */
11167 interface IFieldMask {
11168
11169 /** FieldMask paths */
11170 paths?: (string[]|null);
11171 }
11172
11173 /** Represents a FieldMask. */
11174 class FieldMask implements IFieldMask {
11175
11176 /**
11177 * Constructs a new FieldMask.
11178 * @param [properties] Properties to set
11179 */
11180 constructor(properties?: google.protobuf.IFieldMask);
11181
11182 /** FieldMask paths. */
11183 public paths: string[];
11184
11185 /**
11186 * Creates a new FieldMask instance using the specified properties.
11187 * @param [properties] Properties to set
11188 * @returns FieldMask instance
11189 */
11190 public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
11191
11192 /**
11193 * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
11194 * @param message FieldMask message or plain object to encode
11195 * @param [writer] Writer to encode to
11196 * @returns Writer
11197 */
11198 public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
11199
11200 /**
11201 * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
11202 * @param message FieldMask message or plain object to encode
11203 * @param [writer] Writer to encode to
11204 * @returns Writer
11205 */
11206 public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
11207
11208 /**
11209 * Decodes a FieldMask message from the specified reader or buffer.
11210 * @param reader Reader or buffer to decode from
11211 * @param [length] Message length if known beforehand
11212 * @returns FieldMask
11213 * @throws {Error} If the payload is not a reader or valid buffer
11214 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11215 */
11216 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
11217
11218 /**
11219 * Decodes a FieldMask message from the specified reader or buffer, length delimited.
11220 * @param reader Reader or buffer to decode from
11221 * @returns FieldMask
11222 * @throws {Error} If the payload is not a reader or valid buffer
11223 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11224 */
11225 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
11226
11227 /**
11228 * Verifies a FieldMask message.
11229 * @param message Plain object to verify
11230 * @returns `null` if valid, otherwise the reason why it is not
11231 */
11232 public static verify(message: { [k: string]: any }): (string|null);
11233
11234 /**
11235 * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
11236 * @param object Plain object
11237 * @returns FieldMask
11238 */
11239 public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
11240
11241 /**
11242 * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
11243 * @param message FieldMask
11244 * @param [options] Conversion options
11245 * @returns Plain object
11246 */
11247 public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
11248
11249 /**
11250 * Converts this FieldMask to JSON.
11251 * @returns JSON object
11252 */
11253 public toJSON(): { [k: string]: any };
11254 }
11255 }
11256
11257 /** Namespace longrunning. */
11258 namespace longrunning {
11259
11260 /** Represents an Operations */
11261 class Operations extends $protobuf.rpc.Service {
11262
11263 /**
11264 * Constructs a new Operations service.
11265 * @param rpcImpl RPC implementation
11266 * @param [requestDelimited=false] Whether requests are length-delimited
11267 * @param [responseDelimited=false] Whether responses are length-delimited
11268 */
11269 constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
11270
11271 /**
11272 * Creates new Operations service using the specified rpc implementation.
11273 * @param rpcImpl RPC implementation
11274 * @param [requestDelimited=false] Whether requests are length-delimited
11275 * @param [responseDelimited=false] Whether responses are length-delimited
11276 * @returns RPC service. Useful where requests and/or responses are streamed.
11277 */
11278 public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations;
11279
11280 /**
11281 * Calls ListOperations.
11282 * @param request ListOperationsRequest message or plain object
11283 * @param callback Node-style callback called with the error, if any, and ListOperationsResponse
11284 */
11285 public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void;
11286
11287 /**
11288 * Calls ListOperations.
11289 * @param request ListOperationsRequest message or plain object
11290 * @returns Promise
11291 */
11292 public listOperations(request: google.longrunning.IListOperationsRequest): Promise<google.longrunning.ListOperationsResponse>;
11293
11294 /**
11295 * Calls GetOperation.
11296 * @param request GetOperationRequest message or plain object
11297 * @param callback Node-style callback called with the error, if any, and Operation
11298 */
11299 public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void;
11300
11301 /**
11302 * Calls GetOperation.
11303 * @param request GetOperationRequest message or plain object
11304 * @returns Promise
11305 */
11306 public getOperation(request: google.longrunning.IGetOperationRequest): Promise<google.longrunning.Operation>;
11307
11308 /**
11309 * Calls DeleteOperation.
11310 * @param request DeleteOperationRequest message or plain object
11311 * @param callback Node-style callback called with the error, if any, and Empty
11312 */
11313 public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void;
11314
11315 /**
11316 * Calls DeleteOperation.
11317 * @param request DeleteOperationRequest message or plain object
11318 * @returns Promise
11319 */
11320 public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise<google.protobuf.Empty>;
11321
11322 /**
11323 * Calls CancelOperation.
11324 * @param request CancelOperationRequest message or plain object
11325 * @param callback Node-style callback called with the error, if any, and Empty
11326 */
11327 public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void;
11328
11329 /**
11330 * Calls CancelOperation.
11331 * @param request CancelOperationRequest message or plain object
11332 * @returns Promise
11333 */
11334 public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise<google.protobuf.Empty>;
11335
11336 /**
11337 * Calls WaitOperation.
11338 * @param request WaitOperationRequest message or plain object
11339 * @param callback Node-style callback called with the error, if any, and Operation
11340 */
11341 public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void;
11342
11343 /**
11344 * Calls WaitOperation.
11345 * @param request WaitOperationRequest message or plain object
11346 * @returns Promise
11347 */
11348 public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise<google.longrunning.Operation>;
11349 }
11350
11351 namespace Operations {
11352
11353 /**
11354 * Callback as used by {@link google.longrunning.Operations#listOperations}.
11355 * @param error Error, if any
11356 * @param [response] ListOperationsResponse
11357 */
11358 type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
11359
11360 /**
11361 * Callback as used by {@link google.longrunning.Operations#getOperation}.
11362 * @param error Error, if any
11363 * @param [response] Operation
11364 */
11365 type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
11366
11367 /**
11368 * Callback as used by {@link google.longrunning.Operations#deleteOperation}.
11369 * @param error Error, if any
11370 * @param [response] Empty
11371 */
11372 type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
11373
11374 /**
11375 * Callback as used by {@link google.longrunning.Operations#cancelOperation}.
11376 * @param error Error, if any
11377 * @param [response] Empty
11378 */
11379 type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
11380
11381 /**
11382 * Callback as used by {@link google.longrunning.Operations#waitOperation}.
11383 * @param error Error, if any
11384 * @param [response] Operation
11385 */
11386 type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
11387 }
11388
11389 /** Properties of an Operation. */
11390 interface IOperation {
11391
11392 /** Operation name */
11393 name?: (string|null);
11394
11395 /** Operation metadata */
11396 metadata?: (google.protobuf.IAny|null);
11397
11398 /** Operation done */
11399 done?: (boolean|null);
11400
11401 /** Operation error */
11402 error?: (google.rpc.IStatus|null);
11403
11404 /** Operation response */
11405 response?: (google.protobuf.IAny|null);
11406 }
11407
11408 /** Represents an Operation. */
11409 class Operation implements IOperation {
11410
11411 /**
11412 * Constructs a new Operation.
11413 * @param [properties] Properties to set
11414 */
11415 constructor(properties?: google.longrunning.IOperation);
11416
11417 /** Operation name. */
11418 public name: string;
11419
11420 /** Operation metadata. */
11421 public metadata?: (google.protobuf.IAny|null);
11422
11423 /** Operation done. */
11424 public done: boolean;
11425
11426 /** Operation error. */
11427 public error?: (google.rpc.IStatus|null);
11428
11429 /** Operation response. */
11430 public response?: (google.protobuf.IAny|null);
11431
11432 /** Operation result. */
11433 public result?: ("error"|"response");
11434
11435 /**
11436 * Creates a new Operation instance using the specified properties.
11437 * @param [properties] Properties to set
11438 * @returns Operation instance
11439 */
11440 public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation;
11441
11442 /**
11443 * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
11444 * @param message Operation message or plain object to encode
11445 * @param [writer] Writer to encode to
11446 * @returns Writer
11447 */
11448 public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
11449
11450 /**
11451 * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
11452 * @param message Operation message or plain object to encode
11453 * @param [writer] Writer to encode to
11454 * @returns Writer
11455 */
11456 public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
11457
11458 /**
11459 * Decodes an Operation message from the specified reader or buffer.
11460 * @param reader Reader or buffer to decode from
11461 * @param [length] Message length if known beforehand
11462 * @returns Operation
11463 * @throws {Error} If the payload is not a reader or valid buffer
11464 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11465 */
11466 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.Operation;
11467
11468 /**
11469 * Decodes an Operation message from the specified reader or buffer, length delimited.
11470 * @param reader Reader or buffer to decode from
11471 * @returns Operation
11472 * @throws {Error} If the payload is not a reader or valid buffer
11473 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11474 */
11475 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.Operation;
11476
11477 /**
11478 * Verifies an Operation message.
11479 * @param message Plain object to verify
11480 * @returns `null` if valid, otherwise the reason why it is not
11481 */
11482 public static verify(message: { [k: string]: any }): (string|null);
11483
11484 /**
11485 * Creates an Operation message from a plain object. Also converts values to their respective internal types.
11486 * @param object Plain object
11487 * @returns Operation
11488 */
11489 public static fromObject(object: { [k: string]: any }): google.longrunning.Operation;
11490
11491 /**
11492 * Creates a plain object from an Operation message. Also converts values to other types if specified.
11493 * @param message Operation
11494 * @param [options] Conversion options
11495 * @returns Plain object
11496 */
11497 public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
11498
11499 /**
11500 * Converts this Operation to JSON.
11501 * @returns JSON object
11502 */
11503 public toJSON(): { [k: string]: any };
11504 }
11505
11506 /** Properties of a GetOperationRequest. */
11507 interface IGetOperationRequest {
11508
11509 /** GetOperationRequest name */
11510 name?: (string|null);
11511 }
11512
11513 /** Represents a GetOperationRequest. */
11514 class GetOperationRequest implements IGetOperationRequest {
11515
11516 /**
11517 * Constructs a new GetOperationRequest.
11518 * @param [properties] Properties to set
11519 */
11520 constructor(properties?: google.longrunning.IGetOperationRequest);
11521
11522 /** GetOperationRequest name. */
11523 public name: string;
11524
11525 /**
11526 * Creates a new GetOperationRequest instance using the specified properties.
11527 * @param [properties] Properties to set
11528 * @returns GetOperationRequest instance
11529 */
11530 public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest;
11531
11532 /**
11533 * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
11534 * @param message GetOperationRequest message or plain object to encode
11535 * @param [writer] Writer to encode to
11536 * @returns Writer
11537 */
11538 public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
11539
11540 /**
11541 * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
11542 * @param message GetOperationRequest message or plain object to encode
11543 * @param [writer] Writer to encode to
11544 * @returns Writer
11545 */
11546 public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
11547
11548 /**
11549 * Decodes a GetOperationRequest message from the specified reader or buffer.
11550 * @param reader Reader or buffer to decode from
11551 * @param [length] Message length if known beforehand
11552 * @returns GetOperationRequest
11553 * @throws {Error} If the payload is not a reader or valid buffer
11554 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11555 */
11556 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.GetOperationRequest;
11557
11558 /**
11559 * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
11560 * @param reader Reader or buffer to decode from
11561 * @returns GetOperationRequest
11562 * @throws {Error} If the payload is not a reader or valid buffer
11563 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11564 */
11565 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.GetOperationRequest;
11566
11567 /**
11568 * Verifies a GetOperationRequest message.
11569 * @param message Plain object to verify
11570 * @returns `null` if valid, otherwise the reason why it is not
11571 */
11572 public static verify(message: { [k: string]: any }): (string|null);
11573
11574 /**
11575 * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types.
11576 * @param object Plain object
11577 * @returns GetOperationRequest
11578 */
11579 public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest;
11580
11581 /**
11582 * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
11583 * @param message GetOperationRequest
11584 * @param [options] Conversion options
11585 * @returns Plain object
11586 */
11587 public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
11588
11589 /**
11590 * Converts this GetOperationRequest to JSON.
11591 * @returns JSON object
11592 */
11593 public toJSON(): { [k: string]: any };
11594 }
11595
11596 /** Properties of a ListOperationsRequest. */
11597 interface IListOperationsRequest {
11598
11599 /** ListOperationsRequest name */
11600 name?: (string|null);
11601
11602 /** ListOperationsRequest filter */
11603 filter?: (string|null);
11604
11605 /** ListOperationsRequest pageSize */
11606 pageSize?: (number|null);
11607
11608 /** ListOperationsRequest pageToken */
11609 pageToken?: (string|null);
11610 }
11611
11612 /** Represents a ListOperationsRequest. */
11613 class ListOperationsRequest implements IListOperationsRequest {
11614
11615 /**
11616 * Constructs a new ListOperationsRequest.
11617 * @param [properties] Properties to set
11618 */
11619 constructor(properties?: google.longrunning.IListOperationsRequest);
11620
11621 /** ListOperationsRequest name. */
11622 public name: string;
11623
11624 /** ListOperationsRequest filter. */
11625 public filter: string;
11626
11627 /** ListOperationsRequest pageSize. */
11628 public pageSize: number;
11629
11630 /** ListOperationsRequest pageToken. */
11631 public pageToken: string;
11632
11633 /**
11634 * Creates a new ListOperationsRequest instance using the specified properties.
11635 * @param [properties] Properties to set
11636 * @returns ListOperationsRequest instance
11637 */
11638 public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest;
11639
11640 /**
11641 * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
11642 * @param message ListOperationsRequest message or plain object to encode
11643 * @param [writer] Writer to encode to
11644 * @returns Writer
11645 */
11646 public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
11647
11648 /**
11649 * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
11650 * @param message ListOperationsRequest message or plain object to encode
11651 * @param [writer] Writer to encode to
11652 * @returns Writer
11653 */
11654 public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
11655
11656 /**
11657 * Decodes a ListOperationsRequest message from the specified reader or buffer.
11658 * @param reader Reader or buffer to decode from
11659 * @param [length] Message length if known beforehand
11660 * @returns ListOperationsRequest
11661 * @throws {Error} If the payload is not a reader or valid buffer
11662 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11663 */
11664 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsRequest;
11665
11666 /**
11667 * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
11668 * @param reader Reader or buffer to decode from
11669 * @returns ListOperationsRequest
11670 * @throws {Error} If the payload is not a reader or valid buffer
11671 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11672 */
11673 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsRequest;
11674
11675 /**
11676 * Verifies a ListOperationsRequest message.
11677 * @param message Plain object to verify
11678 * @returns `null` if valid, otherwise the reason why it is not
11679 */
11680 public static verify(message: { [k: string]: any }): (string|null);
11681
11682 /**
11683 * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
11684 * @param object Plain object
11685 * @returns ListOperationsRequest
11686 */
11687 public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest;
11688
11689 /**
11690 * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
11691 * @param message ListOperationsRequest
11692 * @param [options] Conversion options
11693 * @returns Plain object
11694 */
11695 public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
11696
11697 /**
11698 * Converts this ListOperationsRequest to JSON.
11699 * @returns JSON object
11700 */
11701 public toJSON(): { [k: string]: any };
11702 }
11703
11704 /** Properties of a ListOperationsResponse. */
11705 interface IListOperationsResponse {
11706
11707 /** ListOperationsResponse operations */
11708 operations?: (google.longrunning.IOperation[]|null);
11709
11710 /** ListOperationsResponse nextPageToken */
11711 nextPageToken?: (string|null);
11712 }
11713
11714 /** Represents a ListOperationsResponse. */
11715 class ListOperationsResponse implements IListOperationsResponse {
11716
11717 /**
11718 * Constructs a new ListOperationsResponse.
11719 * @param [properties] Properties to set
11720 */
11721 constructor(properties?: google.longrunning.IListOperationsResponse);
11722
11723 /** ListOperationsResponse operations. */
11724 public operations: google.longrunning.IOperation[];
11725
11726 /** ListOperationsResponse nextPageToken. */
11727 public nextPageToken: string;
11728
11729 /**
11730 * Creates a new ListOperationsResponse instance using the specified properties.
11731 * @param [properties] Properties to set
11732 * @returns ListOperationsResponse instance
11733 */
11734 public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse;
11735
11736 /**
11737 * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
11738 * @param message ListOperationsResponse message or plain object to encode
11739 * @param [writer] Writer to encode to
11740 * @returns Writer
11741 */
11742 public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
11743
11744 /**
11745 * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
11746 * @param message ListOperationsResponse message or plain object to encode
11747 * @param [writer] Writer to encode to
11748 * @returns Writer
11749 */
11750 public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
11751
11752 /**
11753 * Decodes a ListOperationsResponse message from the specified reader or buffer.
11754 * @param reader Reader or buffer to decode from
11755 * @param [length] Message length if known beforehand
11756 * @returns ListOperationsResponse
11757 * @throws {Error} If the payload is not a reader or valid buffer
11758 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11759 */
11760 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsResponse;
11761
11762 /**
11763 * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
11764 * @param reader Reader or buffer to decode from
11765 * @returns ListOperationsResponse
11766 * @throws {Error} If the payload is not a reader or valid buffer
11767 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11768 */
11769 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsResponse;
11770
11771 /**
11772 * Verifies a ListOperationsResponse message.
11773 * @param message Plain object to verify
11774 * @returns `null` if valid, otherwise the reason why it is not
11775 */
11776 public static verify(message: { [k: string]: any }): (string|null);
11777
11778 /**
11779 * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
11780 * @param object Plain object
11781 * @returns ListOperationsResponse
11782 */
11783 public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse;
11784
11785 /**
11786 * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
11787 * @param message ListOperationsResponse
11788 * @param [options] Conversion options
11789 * @returns Plain object
11790 */
11791 public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
11792
11793 /**
11794 * Converts this ListOperationsResponse to JSON.
11795 * @returns JSON object
11796 */
11797 public toJSON(): { [k: string]: any };
11798 }
11799
11800 /** Properties of a CancelOperationRequest. */
11801 interface ICancelOperationRequest {
11802
11803 /** CancelOperationRequest name */
11804 name?: (string|null);
11805 }
11806
11807 /** Represents a CancelOperationRequest. */
11808 class CancelOperationRequest implements ICancelOperationRequest {
11809
11810 /**
11811 * Constructs a new CancelOperationRequest.
11812 * @param [properties] Properties to set
11813 */
11814 constructor(properties?: google.longrunning.ICancelOperationRequest);
11815
11816 /** CancelOperationRequest name. */
11817 public name: string;
11818
11819 /**
11820 * Creates a new CancelOperationRequest instance using the specified properties.
11821 * @param [properties] Properties to set
11822 * @returns CancelOperationRequest instance
11823 */
11824 public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest;
11825
11826 /**
11827 * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
11828 * @param message CancelOperationRequest message or plain object to encode
11829 * @param [writer] Writer to encode to
11830 * @returns Writer
11831 */
11832 public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
11833
11834 /**
11835 * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
11836 * @param message CancelOperationRequest message or plain object to encode
11837 * @param [writer] Writer to encode to
11838 * @returns Writer
11839 */
11840 public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
11841
11842 /**
11843 * Decodes a CancelOperationRequest message from the specified reader or buffer.
11844 * @param reader Reader or buffer to decode from
11845 * @param [length] Message length if known beforehand
11846 * @returns CancelOperationRequest
11847 * @throws {Error} If the payload is not a reader or valid buffer
11848 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11849 */
11850 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.CancelOperationRequest;
11851
11852 /**
11853 * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
11854 * @param reader Reader or buffer to decode from
11855 * @returns CancelOperationRequest
11856 * @throws {Error} If the payload is not a reader or valid buffer
11857 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11858 */
11859 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.CancelOperationRequest;
11860
11861 /**
11862 * Verifies a CancelOperationRequest message.
11863 * @param message Plain object to verify
11864 * @returns `null` if valid, otherwise the reason why it is not
11865 */
11866 public static verify(message: { [k: string]: any }): (string|null);
11867
11868 /**
11869 * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
11870 * @param object Plain object
11871 * @returns CancelOperationRequest
11872 */
11873 public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest;
11874
11875 /**
11876 * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
11877 * @param message CancelOperationRequest
11878 * @param [options] Conversion options
11879 * @returns Plain object
11880 */
11881 public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
11882
11883 /**
11884 * Converts this CancelOperationRequest to JSON.
11885 * @returns JSON object
11886 */
11887 public toJSON(): { [k: string]: any };
11888 }
11889
11890 /** Properties of a DeleteOperationRequest. */
11891 interface IDeleteOperationRequest {
11892
11893 /** DeleteOperationRequest name */
11894 name?: (string|null);
11895 }
11896
11897 /** Represents a DeleteOperationRequest. */
11898 class DeleteOperationRequest implements IDeleteOperationRequest {
11899
11900 /**
11901 * Constructs a new DeleteOperationRequest.
11902 * @param [properties] Properties to set
11903 */
11904 constructor(properties?: google.longrunning.IDeleteOperationRequest);
11905
11906 /** DeleteOperationRequest name. */
11907 public name: string;
11908
11909 /**
11910 * Creates a new DeleteOperationRequest instance using the specified properties.
11911 * @param [properties] Properties to set
11912 * @returns DeleteOperationRequest instance
11913 */
11914 public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest;
11915
11916 /**
11917 * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
11918 * @param message DeleteOperationRequest message or plain object to encode
11919 * @param [writer] Writer to encode to
11920 * @returns Writer
11921 */
11922 public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
11923
11924 /**
11925 * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
11926 * @param message DeleteOperationRequest message or plain object to encode
11927 * @param [writer] Writer to encode to
11928 * @returns Writer
11929 */
11930 public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
11931
11932 /**
11933 * Decodes a DeleteOperationRequest message from the specified reader or buffer.
11934 * @param reader Reader or buffer to decode from
11935 * @param [length] Message length if known beforehand
11936 * @returns DeleteOperationRequest
11937 * @throws {Error} If the payload is not a reader or valid buffer
11938 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11939 */
11940 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.DeleteOperationRequest;
11941
11942 /**
11943 * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
11944 * @param reader Reader or buffer to decode from
11945 * @returns DeleteOperationRequest
11946 * @throws {Error} If the payload is not a reader or valid buffer
11947 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11948 */
11949 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.DeleteOperationRequest;
11950
11951 /**
11952 * Verifies a DeleteOperationRequest message.
11953 * @param message Plain object to verify
11954 * @returns `null` if valid, otherwise the reason why it is not
11955 */
11956 public static verify(message: { [k: string]: any }): (string|null);
11957
11958 /**
11959 * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
11960 * @param object Plain object
11961 * @returns DeleteOperationRequest
11962 */
11963 public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest;
11964
11965 /**
11966 * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
11967 * @param message DeleteOperationRequest
11968 * @param [options] Conversion options
11969 * @returns Plain object
11970 */
11971 public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
11972
11973 /**
11974 * Converts this DeleteOperationRequest to JSON.
11975 * @returns JSON object
11976 */
11977 public toJSON(): { [k: string]: any };
11978 }
11979
11980 /** Properties of a WaitOperationRequest. */
11981 interface IWaitOperationRequest {
11982
11983 /** WaitOperationRequest name */
11984 name?: (string|null);
11985
11986 /** WaitOperationRequest timeout */
11987 timeout?: (google.protobuf.IDuration|null);
11988 }
11989
11990 /** Represents a WaitOperationRequest. */
11991 class WaitOperationRequest implements IWaitOperationRequest {
11992
11993 /**
11994 * Constructs a new WaitOperationRequest.
11995 * @param [properties] Properties to set
11996 */
11997 constructor(properties?: google.longrunning.IWaitOperationRequest);
11998
11999 /** WaitOperationRequest name. */
12000 public name: string;
12001
12002 /** WaitOperationRequest timeout. */
12003 public timeout?: (google.protobuf.IDuration|null);
12004
12005 /**
12006 * Creates a new WaitOperationRequest instance using the specified properties.
12007 * @param [properties] Properties to set
12008 * @returns WaitOperationRequest instance
12009 */
12010 public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest;
12011
12012 /**
12013 * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
12014 * @param message WaitOperationRequest message or plain object to encode
12015 * @param [writer] Writer to encode to
12016 * @returns Writer
12017 */
12018 public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
12019
12020 /**
12021 * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
12022 * @param message WaitOperationRequest message or plain object to encode
12023 * @param [writer] Writer to encode to
12024 * @returns Writer
12025 */
12026 public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
12027
12028 /**
12029 * Decodes a WaitOperationRequest message from the specified reader or buffer.
12030 * @param reader Reader or buffer to decode from
12031 * @param [length] Message length if known beforehand
12032 * @returns WaitOperationRequest
12033 * @throws {Error} If the payload is not a reader or valid buffer
12034 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12035 */
12036 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.WaitOperationRequest;
12037
12038 /**
12039 * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
12040 * @param reader Reader or buffer to decode from
12041 * @returns WaitOperationRequest
12042 * @throws {Error} If the payload is not a reader or valid buffer
12043 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12044 */
12045 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.WaitOperationRequest;
12046
12047 /**
12048 * Verifies a WaitOperationRequest message.
12049 * @param message Plain object to verify
12050 * @returns `null` if valid, otherwise the reason why it is not
12051 */
12052 public static verify(message: { [k: string]: any }): (string|null);
12053
12054 /**
12055 * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
12056 * @param object Plain object
12057 * @returns WaitOperationRequest
12058 */
12059 public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest;
12060
12061 /**
12062 * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
12063 * @param message WaitOperationRequest
12064 * @param [options] Conversion options
12065 * @returns Plain object
12066 */
12067 public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
12068
12069 /**
12070 * Converts this WaitOperationRequest to JSON.
12071 * @returns JSON object
12072 */
12073 public toJSON(): { [k: string]: any };
12074 }
12075
12076 /** Properties of an OperationInfo. */
12077 interface IOperationInfo {
12078
12079 /** OperationInfo responseType */
12080 responseType?: (string|null);
12081
12082 /** OperationInfo metadataType */
12083 metadataType?: (string|null);
12084 }
12085
12086 /** Represents an OperationInfo. */
12087 class OperationInfo implements IOperationInfo {
12088
12089 /**
12090 * Constructs a new OperationInfo.
12091 * @param [properties] Properties to set
12092 */
12093 constructor(properties?: google.longrunning.IOperationInfo);
12094
12095 /** OperationInfo responseType. */
12096 public responseType: string;
12097
12098 /** OperationInfo metadataType. */
12099 public metadataType: string;
12100
12101 /**
12102 * Creates a new OperationInfo instance using the specified properties.
12103 * @param [properties] Properties to set
12104 * @returns OperationInfo instance
12105 */
12106 public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo;
12107
12108 /**
12109 * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
12110 * @param message OperationInfo message or plain object to encode
12111 * @param [writer] Writer to encode to
12112 * @returns Writer
12113 */
12114 public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
12115
12116 /**
12117 * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
12118 * @param message OperationInfo message or plain object to encode
12119 * @param [writer] Writer to encode to
12120 * @returns Writer
12121 */
12122 public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
12123
12124 /**
12125 * Decodes an OperationInfo message from the specified reader or buffer.
12126 * @param reader Reader or buffer to decode from
12127 * @param [length] Message length if known beforehand
12128 * @returns OperationInfo
12129 * @throws {Error} If the payload is not a reader or valid buffer
12130 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12131 */
12132 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.OperationInfo;
12133
12134 /**
12135 * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
12136 * @param reader Reader or buffer to decode from
12137 * @returns OperationInfo
12138 * @throws {Error} If the payload is not a reader or valid buffer
12139 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12140 */
12141 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.OperationInfo;
12142
12143 /**
12144 * Verifies an OperationInfo message.
12145 * @param message Plain object to verify
12146 * @returns `null` if valid, otherwise the reason why it is not
12147 */
12148 public static verify(message: { [k: string]: any }): (string|null);
12149
12150 /**
12151 * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
12152 * @param object Plain object
12153 * @returns OperationInfo
12154 */
12155 public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo;
12156
12157 /**
12158 * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
12159 * @param message OperationInfo
12160 * @param [options] Conversion options
12161 * @returns Plain object
12162 */
12163 public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
12164
12165 /**
12166 * Converts this OperationInfo to JSON.
12167 * @returns JSON object
12168 */
12169 public toJSON(): { [k: string]: any };
12170 }
12171 }
12172
12173 /** Namespace rpc. */
12174 namespace rpc {
12175
12176 /** Properties of a Status. */
12177 interface IStatus {
12178
12179 /** Status code */
12180 code?: (number|null);
12181
12182 /** Status message */
12183 message?: (string|null);
12184
12185 /** Status details */
12186 details?: (google.protobuf.IAny[]|null);
12187 }
12188
12189 /** Represents a Status. */
12190 class Status implements IStatus {
12191
12192 /**
12193 * Constructs a new Status.
12194 * @param [properties] Properties to set
12195 */
12196 constructor(properties?: google.rpc.IStatus);
12197
12198 /** Status code. */
12199 public code: number;
12200
12201 /** Status message. */
12202 public message: string;
12203
12204 /** Status details. */
12205 public details: google.protobuf.IAny[];
12206
12207 /**
12208 * Creates a new Status instance using the specified properties.
12209 * @param [properties] Properties to set
12210 * @returns Status instance
12211 */
12212 public static create(properties?: google.rpc.IStatus): google.rpc.Status;
12213
12214 /**
12215 * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
12216 * @param message Status message or plain object to encode
12217 * @param [writer] Writer to encode to
12218 * @returns Writer
12219 */
12220 public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
12221
12222 /**
12223 * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
12224 * @param message Status message or plain object to encode
12225 * @param [writer] Writer to encode to
12226 * @returns Writer
12227 */
12228 public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
12229
12230 /**
12231 * Decodes a Status message from the specified reader or buffer.
12232 * @param reader Reader or buffer to decode from
12233 * @param [length] Message length if known beforehand
12234 * @returns Status
12235 * @throws {Error} If the payload is not a reader or valid buffer
12236 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12237 */
12238 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
12239
12240 /**
12241 * Decodes a Status message from the specified reader or buffer, length delimited.
12242 * @param reader Reader or buffer to decode from
12243 * @returns Status
12244 * @throws {Error} If the payload is not a reader or valid buffer
12245 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12246 */
12247 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
12248
12249 /**
12250 * Verifies a Status message.
12251 * @param message Plain object to verify
12252 * @returns `null` if valid, otherwise the reason why it is not
12253 */
12254 public static verify(message: { [k: string]: any }): (string|null);
12255
12256 /**
12257 * Creates a Status message from a plain object. Also converts values to their respective internal types.
12258 * @param object Plain object
12259 * @returns Status
12260 */
12261 public static fromObject(object: { [k: string]: any }): google.rpc.Status;
12262
12263 /**
12264 * Creates a plain object from a Status message. Also converts values to other types if specified.
12265 * @param message Status
12266 * @param [options] Conversion options
12267 * @returns Plain object
12268 */
12269 public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
12270
12271 /**
12272 * Converts this Status to JSON.
12273 * @returns JSON object
12274 */
12275 public toJSON(): { [k: string]: any };
12276 }
12277 }
12278}